/* Rashmi Anchan: paintings
   The page is the gallery wall: html background follows the room in view (--bg set from JS). */

:root {
  --paper: #efe9df;
  --ink-dark: #221d19;
  --ink-light: #f4eee6;
  --bg: var(--paper);
  --ink: var(--ink-dark);
  --accent: #a0404e;
  --serif: "Fraunces", "Hoefler Text", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --gutter: clamp(20px, 4.5vw, 72px);
  --header-h: 76px;
}

html[data-ink="light"] {
  --ink: var(--ink-light);
  --accent: #eab3a8;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background-color: var(--bg);
  color: var(--ink);
  transition: background-color 1.3s var(--ease), color 1.3s var(--ease);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html.viewer-open { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* paper grain lives behind content, so it never sits on top of a painting */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("/images/grain.png") repeat;
  background-size: 256px;
  opacity: .055;
  pointer-events: none;
}

img { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
em { font-style: italic; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: fixed;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  border-radius: 999px;
  transition: top .3s var(--ease);
}
.skip:focus { top: 16px; }

/* ---------- shared type ---------- */

.eyebrow {
  margin: 0;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .72;
}

.section-head { text-align: center; }
.section-head--left { text-align: left; }

.section-title {
  margin: .35em 0 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 5.4vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  font-variation-settings: "SOFT" 60;
}
.section-title em,
.room__title em,
.hero__last em,
.contact__title em,
.intro__statement em {
  font-weight: 350;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  padding: 1em 1.7em;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.button:hover { background: var(--ink); color: var(--bg); }

.link-button {
  padding: 0 0 .35em;
  border: 0;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-size .5s var(--ease), opacity .3s;
}
.link-button:hover { background-size: 30% 1px; }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  transition: background-color 1.3s var(--ease), height .5s var(--ease), box-shadow .5s;
}
html.scrolled .site-header {
  --header-h: 60px;
  background-color: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark em { font-weight: 350; font-variation-settings: "SOFT" 100, "WONK" 1; }
.wordmark__mono { display: none; }

.site-nav { display: flex; gap: clamp(1rem, 2.6vw, 2.4rem); }
.site-nav a {
  position: relative;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .4em 0;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(32px, 5vw, 96px);
  padding: calc(var(--header-h) + 5vh) var(--gutter) 11vh;
}

.hero__name {
  margin: .35em 0 .4em;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.8rem, 10.6vw, 10.5rem);
  line-height: .88;
  letter-spacing: -.035em;
  font-variation-settings: "SOFT" 40;
}
.hero__first { display: block; }
.hero__last {
  display: block;
  padding-left: .55em;
}

.hero__lede {
  max-width: 31ch;
  margin: 0 0 2.4em;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.45vw, 1.35rem);
  font-weight: 300;
  line-height: 1.55;
  opacity: .86;
}

.hero__niche-wrap {
  justify-self: center;
  width: min(100%, 470px, calc((100svh - var(--header-h) - 22vh) * .8));
  display: flex;
  flex-direction: column;
  align-items: center;
}

.niche {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  cursor: pointer;
}
.niche::after { /* soft floor shadow grounding the niche */
  content: "";
  position: absolute;
  left: -8%; right: -8%;
  bottom: -18px;
  height: 22px;
  background: radial-gradient(closest-side, rgba(40, 25, 20, .22), transparent);
  pointer-events: none;
}
.niche__fallback {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--niche, #8e5854);
  border-radius: 50% 50% 0 0 / 40% 40% 0 0;
  box-shadow: inset 0 0 70px rgba(0, 0, 0, .28);
  transition: background-color .8s var(--ease);
}
.niche__fallback img {
  position: absolute;
  left: 11%; top: 22%;
  width: 78%; height: 65%;
  object-fit: contain;
  filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .35));
  transition: opacity .6s var(--ease);
}
.niche__gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .8s var(--ease);
}
.gl-ready .niche__gl { opacity: 1; }
.gl-ready .niche__fallback { opacity: 0; transition: opacity .8s .2s; }

.niche__caption {
  display: flex;
  align-items: baseline;
  gap: .8em;
  margin-top: 38px;
  min-height: 1.6em;
  text-align: center;
}
.niche__no {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  opacity: .6;
}
.niche__title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08rem;
  font-variation-settings: "SOFT" 100;
  transition: opacity .5s var(--ease);
}
.niche__title.is-changing { opacity: 0; }

.niche__dots { display: flex; gap: 4px; margin-top: 12px; }
.niche__dots button {
  position: relative;
  width: 24px; height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.niche__dots button::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: .55;
  transition: background-color .4s, opacity .4s, transform .4s var(--ease);
}
.niche__dots button[aria-current="true"]::before {
  background: currentColor;
  opacity: 1;
  transform: scale(1.15);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 1px;
  height: 56px;
  overflow: hidden;
  background: color-mix(in srgb, currentColor 22%, transparent);
}
.scroll-cue span {
  position: absolute;
  inset: 0;
  background: currentColor;
  transform: translateY(-100%);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: translateY(-100%); }
  55%, 100% { transform: translateY(100%); }
}

/* ---------- intro ---------- */

.intro {
  padding: 16vh var(--gutter) 18vh;
  text-align: center;
}
.intro__stroke {
  display: block;
  width: 150px;
  height: 14px;
  margin: 0 auto 2.2rem;
  fill: var(--accent);
  opacity: .7;
}
.intro__statement {
  max-width: 21ch;
  margin: 0 auto;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 4vw, 3.5rem);
  line-height: 1.16;
  letter-spacing: -.015em;
  font-variation-settings: "SOFT" 50;
}

/* ---------- rooms ---------- */

.room {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(28px, 5vw, 100px);
  padding: 10vh var(--gutter);
}
.room--flip { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.room--flip .room__art { order: 2; }
.room--flip .room__text { justify-self: end; }

.room__art {
  margin: 0;
  justify-self: center;
  width: min(100%, calc(80svh * .8));
}
.room__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.room__open img {
  display: block;
  width: 100%;
  height: auto;
  /* feather the photograph into the page; widths are per-image and stop short of the painting */
  --mx: linear-gradient(to right, transparent 0, rgba(0,0,0,.4) calc(var(--fx) * .45), #000 var(--fx), #000 calc(100% - var(--fx)), rgba(0,0,0,.4) calc(100% - var(--fx) * .45), transparent 100%);
  --my: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.4) calc(var(--ft) * .45), #000 var(--ft), #000 calc(100% - var(--fb)), rgba(0,0,0,.4) calc(100% - var(--fb) * .45), transparent 100%);
  -webkit-mask-image: var(--mx), var(--my);
  -webkit-mask-composite: source-in;
  mask-image: var(--mx), var(--my);
  mask-composite: intersect;
}

.room__text {
  position: relative;
  isolation: isolate;
  max-width: 30rem;
}
.room__numeral {
  position: absolute;
  z-index: -1;
  top: -.62em;
  left: -.12em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(8rem, 17vw, 16rem);
  line-height: 1;
  letter-spacing: -.04em;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  opacity: .075;
  pointer-events: none;
  user-select: none;
}
.room__no {
  margin: 0;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .8;
}
.room__no span { opacity: .55; }
.room__title {
  margin: .45em 0 .3em;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 4.7vw, 4.6rem);
  line-height: 1;
  letter-spacing: -.025em;
  font-variation-settings: "SOFT" 50;
}
.room__medium {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  opacity: .78;
}
.room__desc {
  max-width: 36ch;
  margin: 1.6em 0 2.2em;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.2vw, 1.18rem);
  font-weight: 300;
  line-height: 1.7;
  opacity: .9;
}
.room__actions { display: flex; flex-wrap: wrap; gap: 1.2em 2.2em; }

/* side index of rooms */
.room-index {
  position: fixed;
  right: calc(var(--gutter) * .5);
  top: 50%;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s var(--ease), visibility .6s;
}
html.in-works .room-index { opacity: 1; visibility: visible; }
.room-index a {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 12px;
  padding: 3px 0;
  text-decoration: none;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
}
.room-index span { opacity: .45; transition: opacity .4s; }
.room-index span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 1px;
  margin-right: 8px;
  vertical-align: middle;
  background: currentColor;
  transition: width .5s var(--ease);
}
.room-index em {
  font-family: var(--serif);
  font-size: .92rem;
  letter-spacing: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .4s, transform .5s var(--ease);
  pointer-events: none;
}
.room-index a:hover em,
.room-index a:focus-visible em { opacity: .9; transform: none; }
.room-index a.is-active span { opacity: 1; }
.room-index a.is-active span::before { width: 26px; }

/* ---------- salon ---------- */

.salon { padding: 16vh var(--gutter) 20vh; }
.salon__wall {
  display: flex;
  flex-direction: column;
  gap: calc(9vh + 3.5rem);
  margin-top: 11vh;
}
.salon__row {
  display: flex;
  justify-content: center;
  align-items: center; /* hung on a common centre line */
  gap: clamp(28px, 4.2vw, 76px);
}
.salon__work {
  --u: clamp(9px, 1.85vw, 27px);
  position: relative;
  width: calc(var(--in) * var(--u));
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.salon__work img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow:
    0 1px 1px rgba(40, 25, 20, .10),
    0 12px 22px -10px rgba(40, 25, 20, .38),
    0 34px 60px -34px rgba(40, 25, 20, .45);
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
}
.salon__work:hover img,
.salon__work:focus-visible img {
  transform: translateY(-6px);
  box-shadow:
    0 1px 1px rgba(40, 25, 20, .10),
    0 22px 32px -12px rgba(40, 25, 20, .42),
    0 50px 80px -40px rgba(40, 25, 20, .5);
}
.salon__label {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .62;
  text-align: center;
}
.salon__label em {
  display: block;
  margin-bottom: 2px;
  font-family: var(--serif);
  font-size: .98rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  opacity: 1;
}

/* ---------- about ---------- */

.about { padding: 16vh var(--gutter) 10vh; }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 7vw, 120px);
  max-width: 1180px;
  margin: 0 auto;
}
.about__body p {
  max-width: 38em;
  margin: 0 0 1.2em;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  font-weight: 300;
  line-height: 1.75;
}
.about__body .about__lead {
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  line-height: 1.35;
  letter-spacing: -.01em;
  margin-top: 1.4em;
}

/* illustrated stickers of the artist: gentle bob, wiggle on hover */
.stickers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 4vw, 72px);
  max-width: 1180px;
  margin: 12vh auto 0;
  padding: 0;
  list-style: none;
}
.sticker {
  width: clamp(220px, 23vw, 310px);
  animation: bob 6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.sticker:nth-child(2) { margin-top: 8vh; }
.sticker figure {
  margin: 0;
  rotate: var(--r, 0deg);
  transform-origin: 50% 85%;
  transition: scale .55s cubic-bezier(.34, 1.56, .64, 1);
}
.sticker figure:hover {
  scale: 1.06;
  animation: wiggle .75s ease-in-out;
}
.sticker img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 20px rgba(60, 40, 30, .14));
}
.sticker figcaption {
  margin: 8px -3rem 0;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08rem;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  opacity: .78;
}
@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
@keyframes wiggle {
  0%, 100% { rotate: var(--r, 0deg); }
  25% { rotate: calc(var(--r, 0deg) - 5deg); }
  50% { rotate: calc(var(--r, 0deg) + 4deg); }
  75% { rotate: calc(var(--r, 0deg) - 2deg); }
}
.js .pop {
  opacity: 0;
  scale: .6;
  transition: opacity .6s var(--ease), scale .9s cubic-bezier(.34, 1.56, .64, 1);
  transition-delay: calc(var(--i, 0) * 140ms);
}
.js .pop.is-in { opacity: 1; scale: 1; }

/* ---------- contact ---------- */

.contact {
  padding: 12vh var(--gutter) 20vh;
  text-align: center;
}
.contact__title {
  margin: .15em 0 .3em;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(4rem, 13vw, 11rem);
  line-height: .9;
  letter-spacing: -.04em;
}
.contact__email {
  position: relative;
  isolation: isolate;
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 3.4vw, 2.6rem);
  font-variation-settings: "SOFT" 100;
  text-decoration: none;
  padding: 0 .2em;
}
.contact__email svg {
  position: absolute;
  z-index: -1;
  left: 0;
  bottom: .02em;
  width: 100%;
  height: .5em;
  fill: var(--accent);
  opacity: .5;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s cubic-bezier(.6, .05, .25, 1);
}
.contact__email.is-in svg { clip-path: inset(0 0 0 0); transition-delay: .5s; }
.contact__email:hover svg { opacity: .8; }

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 28px var(--gutter) 34px;
  border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  font-size: .76rem;
  opacity: .78;
}
.site-footer p { margin: 0; max-width: 60ch; }
.site-footer a { text-decoration: none; white-space: nowrap; }

/* ---------- viewer ---------- */

.viewer {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #17130f;
  color: #efe9df;
  overflow: hidden;
}
.viewer[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  animation: viewer-in .55s var(--ease);
}
.viewer::backdrop { background: rgba(12, 9, 7, .7); }
@keyframes viewer-in { from { opacity: 0; } }

.viewer__top,
.viewer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(16px, 3vw, 36px);
}
.viewer__bottom { align-items: flex-end; flex-wrap: wrap; padding-bottom: max(22px, env(safe-area-inset-bottom)); }
.viewer__count {
  margin: 0;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  opacity: .7;
}
.viewer__close,
.viewer__nav {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(239, 233, 223, .28);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color .3s, border-color .3s;
}
.viewer__close:hover,
.viewer__nav:hover { background: rgba(239, 233, 223, .1); border-color: rgba(239, 233, 223, .6); }
.viewer__close svg,
.viewer__nav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.viewer__stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(8px, 2vw, 32px);
  min-height: 0;
  padding: 0 clamp(12px, 3vw, 36px);
  touch-action: pan-y;
}
.viewer__figure {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
  margin: 0;
}
.viewer__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .7);
  transition: opacity .25s var(--ease), transform .5s var(--ease);
}
.viewer__img.is-loading { opacity: 0; transform: scale(.985); }

.viewer__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.1;
  font-variation-settings: "SOFT" 60;
}
.viewer__medium {
  margin: .25em 0 0;
  font-family: var(--serif);
  font-style: italic;
  opacity: .7;
}
.viewer__views { display: flex; flex-wrap: wrap; gap: 8px; }
.viewer__views button {
  padding: .7em 1.15em;
  border: 1px solid rgba(239, 233, 223, .26);
  border-radius: 999px;
  background: transparent;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.viewer__views button:hover { border-color: rgba(239, 233, 223, .6); }
.viewer__views button[aria-pressed="true"] { background: #efe9df; color: #17130f; border-color: #efe9df; }

/* ---------- cursor bubble (fine pointers only; native cursor stays) ---------- */

.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    left: 0; top: 0;
    z-index: 45;
    pointer-events: none;
  }
  .cursor span {
    position: absolute;
    left: -44px; top: -44px;
    width: 88px; height: 88px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--ink) 88%, transparent);
    color: var(--bg);
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    transform: scale(0);
    transition: transform .45s var(--ease), background-color 1.3s var(--ease), color 1.3s var(--ease);
  }
  .cursor.on span { transform: scale(1); }
}

/* ---------- reveal on scroll (only when JS is running) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.1s var(--ease), transform 1.3s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

.js .room__open {
  opacity: 0;
  transform: translateY(46px) scale(.985);
  transition: opacity 1.4s var(--ease), transform 1.6s var(--ease);
}
.js .room__art.is-in .room__open { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .room-index { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .hero {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 44px;
    padding-top: calc(var(--header-h) + 6vh);
    padding-bottom: 14vh;
  }
  .hero__niche-wrap { width: min(76vw, 380px); }
  .hero__name { font-size: min(19.5vw, 8rem); }
  .hero__lede { margin-bottom: 2em; }
  .hero { padding-bottom: 8vh; }
  .scroll-cue { display: none; }
  .intro { padding: 12vh var(--gutter) 10vh; }

  .room,
  .room--flip {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 36px;
    padding: 9vh var(--gutter) 11vh;
  }
  .room--flip .room__art { order: 0; }
  .room--flip .room__text { justify-self: start; }
  .room__art { width: min(100%, 560px); }
  .room__numeral { font-size: 7.5rem; top: -.5em; }

  .about__grid { grid-template-columns: 1fr; gap: 8px; }

  .stickers {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 8vh;
  }
  .sticker { width: min(64vw, 320px); }
  .sticker:nth-child(2) { margin-top: 0; }
  .sticker figcaption { margin: 8px 0 0; }
  .sticker:nth-child(odd) { align-self: flex-start; }
  .sticker:nth-child(even) { align-self: flex-end; }

  .salon__wall { gap: 56px; margin-top: 8vh; }
  .salon__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 56px 22px;
  }
  .salon__work {
    width: calc((var(--in) + 6) / 18.5 * 100%);
    justify-self: center;
  }
  .salon__label {
    position: static;
    display: block;
    width: 42vw;
    margin: 14px 0 0 calc(50% - 21vw);
    transform: none;
    white-space: normal;
    letter-spacing: .1em;
  }
}

@media (max-width: 560px) {
  .wordmark__full { display: none; }
  .wordmark__mono { display: inline; font-size: 1.35rem; }
  .site-nav { gap: 1.1rem; }
  .site-nav a { font-size: .66rem; letter-spacing: .14em; }
  .hero__last { padding-left: .35em; }
  .viewer__nav { width: 40px; height: 40px; }
  .viewer__views button { padding: .65em .9em; font-size: .62rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal, .js .room__open { opacity: 1; transform: none; }
  .js .pop { opacity: 1; scale: 1; }
  .sticker { animation: none; }
}
