/* ==========================================================================
   anakajaia.com — "Dusk"
   Themes: [data-theme="day" | "dusk" | "night"] on <html>
   Type:   Fraunces (display) + Instrument Sans (UI), self-hosted
   ========================================================================== */

/* ---------- fonts ---------- */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/fraunces-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 100 900; font-display: swap; src: url('/fonts/fraunces-italic.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/instrument-sans-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: italic; font-weight: 400 700; font-display: swap; src: url('/fonts/instrument-sans-italic.woff2') format('woff2'); }

/* ---------- tokens ---------- */
/* Registered so they interpolate: the page and viewer take on a work's colour smoothly. */
@property --ambient { syntax: '<color>'; inherits: true; initial-value: #808080; }
@property --ambient-amt { syntax: '<percentage>'; inherits: true; initial-value: 0%; }
@property --work-color { syntax: '<color>'; inherits: true; initial-value: #20263a; }

:root {
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(1.1rem, 4vw, 3.5rem);
  --header-h: 4.25rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .6s;
  --radius: 2px;
  --pxcm: 2.2px;           /* wall stage: pixels per centimetre */
  --mx: 50vw; --my: 40vh;  /* lamp position */
  color-scheme: dark;
}
:root[data-theme="dusk"] {
  --bg: #101627; --bg-2: #171e33; --bg-3: #1f2742;
  --fg: #efe7d8; --fg-2: #cfc7b8; --muted: #8e93a6;
  --accent: #f0b25a; --accent-2: #e8a58c; --accent-ink: #1b1408;
  --line: rgba(239, 231, 216, .14); --line-strong: rgba(239, 231, 216, .32);
  --glow: rgba(240, 178, 90, .30); --lamp-blend: screen;
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 8px 20px -8px rgba(0, 0, 0, .5);
  --veil: linear-gradient(180deg, rgba(16, 22, 39, .1) 0%, rgba(16, 22, 39, .0) 40%, rgba(16, 22, 39, .92) 100%);
  --wall: #2a2f45; --floor: #1a1f33;
  --prop-filter: brightness(.86) saturate(.85) contrast(.92); --viewer-bg: #0b0f1c; --wall-light: rgba(255, 226, 182, .16); --ambient-strength: 11%;
}
:root[data-theme="night"] {
  --bg: #07090f; --bg-2: #0d1017; --bg-3: #141822;
  --fg: #e7e1d5; --fg-2: #c3bcae; --muted: #7d8190;
  --accent: #e9a84a; --accent-2: #d9927a; --accent-ink: #1b1408;
  --line: rgba(231, 225, 213, .12); --line-strong: rgba(231, 225, 213, .3);
  --glow: rgba(233, 168, 74, .38); --lamp-blend: screen;
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, .9), 0 8px 20px -8px rgba(0, 0, 0, .7);
  --veil: linear-gradient(180deg, rgba(7, 9, 15, .2) 0%, rgba(7, 9, 15, .05) 40%, rgba(7, 9, 15, .95) 100%);
  --wall: #1c1f2b; --floor: #101219;
  --prop-filter: brightness(.7) saturate(.8) contrast(.9); --viewer-bg: #040509; --wall-light: rgba(255, 220, 168, .2); --ambient-strength: 12%;
}
:root[data-theme="day"] {
  --bg: #f2ede3; --bg-2: #e9e3d6; --bg-3: #ddd6c6;
  --fg: #171a22; --fg-2: #3d414c; --muted: #6f7380;
  --accent: #b8621c; --accent-2: #c9855f; --accent-ink: #fff8ee;
  --line: rgba(23, 26, 34, .14); --line-strong: rgba(23, 26, 34, .35);
  --glow: rgba(255, 210, 140, .45); --lamp-blend: multiply;
  --shadow: 0 30px 60px -24px rgba(40, 30, 10, .45), 0 8px 20px -10px rgba(40, 30, 10, .3);
  --veil: linear-gradient(180deg, rgba(242, 237, 227, .0) 0%, rgba(242, 237, 227, .0) 28%, rgba(242, 237, 227, .72) 58%, rgba(242, 237, 227, .97) 100%);
  --wall: #e4ded1; --floor: #cfc7b6;
  --prop-filter: saturate(.85) contrast(.9) brightness(1.02); --viewer-bg: #ece6da; --wall-light: rgba(255, 252, 244, .55); --ambient-strength: 6%;
  color-scheme: light;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable;
  background: var(--bg);
  transition: --ambient 1.8s var(--ease), --ambient-amt 1.8s var(--ease);
}
html.has-ambient { --ambient-amt: var(--ambient-strength); }
body {
  margin: 0; color: var(--fg);
  background: color-mix(in oklab, var(--bg), var(--ambient) var(--ambient-amt));
  font-family: var(--font-body); font-size: 1rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .8s var(--ease), color .8s var(--ease);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius); }
::selection { background: var(--accent); color: var(--accent-ink); }
.skip { position: absolute; left: -999px; top: 0; padding: .6rem 1rem; background: var(--accent); color: var(--accent-ink); z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* cross-document page fade (browsers that support it) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 260ms var(--ease) both vt-out; }
::view-transition-new(root) { animation: 420ms var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- type ---------- */
.display {
  font-family: var(--font-display); font-weight: 340; line-height: .98; letter-spacing: -.02em;
  font-variation-settings: 'opsz' 144, 'SOFT' 40, 'WONK' 1;
  text-wrap: balance;
}
.eyebrow {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 1rem;
}
.text-link {
  display: inline-flex; gap: .5rem; align-items: baseline; font-size: .95rem;
  border-bottom: 1px solid var(--line-strong); padding-bottom: .15rem; transition: border-color .3s, gap .3s var(--ease);
}
.text-link:hover { border-color: var(--accent); gap: .9rem; }
.work-title { font-family: var(--font-display); font-style: italic; font-weight: 400; font-variation-settings: 'opsz' 36, 'SOFT' 60; letter-spacing: -.005em; }
.work-cap { font-size: .78rem; color: var(--muted); letter-spacing: .01em; }
.work-cap .cap-size { white-space: nowrap; }
.section-head { padding: 0 var(--gutter); margin-bottom: clamp(2rem, 5vw, 4rem); }
.section-head .display { font-size: clamp(2.6rem, 7vw, 6rem); }
.section-lede { max-width: 42ch; color: var(--fg-2); margin-top: 1.2rem; font-size: 1.02rem; }
.section-lede em { font-style: normal; color: var(--accent); }

/* ---------- atmosphere: grain + lamp ---------- */
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%; pointer-events: none; z-index: 60; opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 300px 300px; mix-blend-mode: overlay;
  animation: grain 9s steps(8) infinite;
}
:root[data-theme="day"] .grain { opacity: .08; mix-blend-mode: multiply; }
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-1%, -1%); } 100% { transform: translate(3%, 3%); }
}
.lamp {
  position: fixed; inset: 0; pointer-events: none; z-index: 55; opacity: 0; transition: opacity 1.2s var(--ease);
  background: radial-gradient(420px circle at var(--mx) var(--my), var(--glow), rgba(0, 0, 0, 0) 62%);
  mix-blend-mode: var(--lamp-blend);
}
body.has-pointer .lamp { opacity: 1; }
body.viewer-open .lamp { opacity: .35; }

/* ---------- header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 70; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter);
  transition: transform .5s var(--ease);
}
.site-header::before { content: ''; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); opacity: 0; transition: opacity .5s; }
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }
.brand-name { font-family: var(--font-display); font-style: italic; font-weight: 450; font-size: 1.35rem; letter-spacing: -.01em; font-variation-settings: 'opsz' 40, 'SOFT' 80; }
.site-nav { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.7rem); font-size: .86rem; letter-spacing: .01em; }
.site-nav a { position: relative; padding: .3rem 0; color: var(--fg-2); transition: color .3s; }
.site-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--accent); transition: right .35s var(--ease); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--fg); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { right: 0; }
.theme-toggle { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border: 1px solid var(--line); border-radius: 50%; margin-left: .3rem; position: relative; transition: border-color .3s, transform .5s var(--ease); }
.theme-toggle:hover { border-color: var(--accent); transform: rotate(25deg); }
.theme-ico { position: absolute; font-size: .95rem; opacity: 0; transition: opacity .3s, transform .5s var(--ease); transform: scale(.5); }
:root[data-theme="day"] .theme-day, :root[data-theme="dusk"] .theme-dusk, :root[data-theme="night"] .theme-night { opacity: 1; transform: scale(1); color: var(--accent); }
.nav-toggle { display: none; width: 2.75rem; height: 2.75rem; margin-right: -.4rem; position: relative; z-index: 2; }
.nav-toggle span { position: absolute; left: .65rem; right: .65rem; height: 1px; background: var(--fg); transition: transform .4s var(--ease), top .4s var(--ease); }
.nav-toggle span:first-child { top: calc(50% - 4px); } .nav-toggle span:last-child { top: calc(50% + 4px); }
.nav-toggle[aria-expanded="true"] span:first-child { top: 50%; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 50%; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 0; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(20px);
    flex-direction: column; align-items: flex-start; justify-content: center; padding: var(--gutter); gap: .6rem;
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav a { font-family: var(--font-display); font-size: clamp(2rem, 9vw, 3.2rem); font-weight: 350; letter-spacing: -.02em; color: var(--fg); transform: translateY(14px); opacity: 0; transition: transform .6s var(--ease-out), opacity .6s; transition-delay: calc(var(--i, 0) * 45ms); }
  .site-nav.is-open a { transform: none; opacity: 1; }
  .site-nav a::after { display: none; }
  .theme-toggle { margin: 1.5rem 0 0; width: 2.8rem; height: 2.8rem; }
}

main { min-height: 100vh; }
body:not(.page-home) main { padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 5rem)); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: clip; display: grid; align-items: end; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform: scale(1.12); animation: hero-zoom 9s var(--ease-out) forwards; will-change: transform; }
:root[data-theme="day"] .hero-media img { filter: brightness(1.04) contrast(.98); }
@keyframes hero-zoom { to { transform: scale(1); } }
.hero-veil { position: absolute; inset: 0; background: var(--veil); pointer-events: none; }
.hero-text { position: relative; padding: 0 var(--gutter) clamp(6rem, 14vh, 9rem); }
.hero-eyebrow { color: var(--fg-2); opacity: 0; animation: rise 1s var(--ease-out) .4s forwards; }
.hero-title { font-family: var(--font-display); font-weight: 300; font-size: clamp(4rem, 15vw, 13rem); line-height: .86; letter-spacing: -.035em; font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 1; margin-left: -.04em; }
.hero-word { display: inline-block; opacity: 0; transform: translateY(.35em) rotate(1.5deg); animation: word-in 1.3s var(--ease-out) forwards; transform-origin: 0 100%; }
.hero-word:nth-child(2) { animation-delay: .18s; font-style: italic; font-weight: 340; }
@keyframes word-in { to { opacity: 1; transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-sub { font-family: var(--font-display); font-style: italic; font-size: clamp(1.1rem, 2.2vw, 1.6rem); color: var(--fg-2); margin-top: 1.2rem; opacity: 0; animation: rise 1.2s var(--ease-out) .9s forwards; font-variation-settings: 'opsz' 36, 'SOFT' 100; }
.hero-work { position: absolute; right: var(--gutter); bottom: 2.2rem; display: flex; flex-direction: column; align-items: flex-end; text-align: right; max-width: 40vw; opacity: 0; animation: rise 1s var(--ease-out) 1.4s forwards; }
.hero-work .work-title { font-size: 1rem; }
.hero-work:hover .work-title { color: var(--accent); }
.scroll-cue { position: absolute; left: var(--gutter); bottom: 2.2rem; display: flex; align-items: center; gap: .8rem; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); opacity: 0; animation: rise 1s var(--ease-out) 1.8s forwards; }
.cue-line { width: 3.5rem; height: 1px; background: var(--line-strong); position: relative; overflow: hidden; }
.cue-line::after { content: ''; position: absolute; inset: 0; background: var(--accent); transform: translateX(-100%); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 40% { transform: translateX(0); } 100% { transform: translateX(100%); } }
@media (max-aspect-ratio: 1/1) { .hero-media img { object-position: 74% 50%; } }
@media (max-width: 720px) { .hero-work { position: static; align-items: flex-start; text-align: left; max-width: none; padding: 0 var(--gutter) 5.5rem; margin-top: -4.5rem; } .scroll-cue { bottom: 1.6rem; } }

/* ---------- strip: horizontal Dusk series ---------- */
.strip { position: relative; }
.strip-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.strip-head { padding: 0 var(--gutter); position: absolute; top: calc(var(--header-h) + .5rem); left: 0; right: 0; z-index: 2; pointer-events: none; }
.strip-head .display { font-size: clamp(3rem, 9vw, 7.5rem); }
.strip-lede { max-width: 38ch; color: var(--fg-2); margin-top: .8rem; font-size: .95rem; }
.strip-track { display: flex; align-items: center; gap: clamp(2rem, 5vw, 5rem); padding: 12vh var(--gutter) 0 max(var(--gutter), 30vw); will-change: transform; width: max-content; }
.strip-item { flex: 0 0 auto; width: clamp(240px, 30vw, 520px); position: relative; }
.strip-item a { display: block; box-shadow: var(--shadow); }
.strip-item img { width: 100%; aspect-ratio: attr(width) / attr(height); transition: transform .7s var(--ease), filter .7s; }
.strip-item:hover img { transform: scale(1.02); }
.strip-item figcaption { display: flex; flex-direction: column; margin-top: .9rem; gap: .1rem; }
.strip-item:nth-child(even) { transform: translateY(5vh); }
.strip-item:nth-child(3n) { transform: translateY(-3vh); }
.strip-end { flex: 0 0 auto; display: flex; flex-direction: column; gap: 1rem; padding: 0 2rem 0 0; margin-right: 10vw; color: var(--fg); }
.strip-end .display { font-size: clamp(1.8rem, 3.6vw, 3rem); }
.strip-end-arrow { font-size: 2rem; color: var(--accent); transition: transform .4s var(--ease); }
.strip-end:hover .strip-end-arrow { transform: translateX(.6rem); }
@media (max-width: 860px), (prefers-reduced-motion: reduce) {
  .strip-pin { position: static; height: auto; overflow: visible; }
  .strip-head { position: static; padding-top: 3rem; margin-bottom: 1.8rem; }
  .strip-track { overflow-x: auto; scroll-snap-type: x mandatory; padding: 1rem var(--gutter) 2rem; gap: 1.4rem; width: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; transform: none !important; }
  .strip-track::-webkit-scrollbar { display: none; }
  .strip-item { width: 78vw; scroll-snap-align: center; transform: none !important; }
  .strip-end { scroll-snap-align: center; margin-right: 0; }
}

/* ---------- statement teaser ---------- */
.teaser { padding: clamp(5rem, 16vh, 12rem) var(--gutter); max-width: 62rem; margin: 0 auto; text-align: center; }
.teaser-quote p { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.7rem, 4.2vw, 3.4rem); line-height: 1.18; letter-spacing: -.015em; font-variation-settings: 'opsz' 96, 'SOFT' 80; }
.js .reveal-words .w { display: inline-block; opacity: .12; transition: opacity .8s var(--ease); transition-delay: calc(var(--i) * 28ms); }
.js .reveal-words.in-view .w { opacity: 1; }
.teaser .text-link { margin-top: 2.5rem; }

/* ---------- rooms ---------- */
.rooms { padding: clamp(3rem, 8vw, 6rem) 0; }
.rooms-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.room { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--bg); padding: var(--gutter); min-height: 52vh; overflow: hidden; transition: background-color .5s; }
.room:hover { background: var(--bg-2); }
.room-imgs { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.room-img { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease), transform 1.2s var(--ease); transform: scale(1.04); }
.room-img.is-active { opacity: 1; transform: none; }
.room-img img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; background: transparent !important; }
.room-text { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; padding-right: 2.5rem; }
.room-title { font-family: var(--font-display); font-weight: 350; font-size: clamp(1.7rem, 3.2vw, 2.6rem); letter-spacing: -.02em; font-variation-settings: 'opsz' 96, 'SOFT' 50; }
.room-meta { font-size: .8rem; color: var(--muted); text-align: right; max-width: 24ch; }
.room-lede { display: none; }
.room-arrow { position: absolute; right: var(--gutter); bottom: calc(var(--gutter) + .2rem); color: var(--accent); font-size: 1.4rem; transition: transform .4s var(--ease); }
.room:hover .room-arrow { transform: translateX(.5rem); }
@media (min-width: 1100px) { .room-lede { display: inline; } .room-meta { max-width: 34ch; } }
@media (max-width: 720px) { .rooms-grid { grid-template-columns: 1fr; } .room { min-height: 0; } }

/* ---------- wall (home) ---------- */
.wall { padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 8rem); }
.wall-stage {
  position: relative; margin: 0 var(--gutter); height: calc(230 * var(--pxcm) + 3rem); border-radius: 6px;
  background: linear-gradient(180deg, var(--wall), color-mix(in srgb, var(--wall) 70%, var(--bg)));
  display: flex; align-items: flex-end; justify-content: center; gap: calc(28 * var(--pxcm)); padding: 0 var(--gutter) 3rem; overflow: hidden;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, .25);
}
.wall-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 3rem; background: var(--floor); border-top: 1px solid var(--line); }
.wall-figure { position: relative; z-index: 1; flex: 0 0 auto; height: calc(180 * var(--pxcm)); width: calc(60 * var(--pxcm)); color: color-mix(in srgb, var(--fg) 38%, var(--wall)); display: flex; flex-direction: column; align-items: center; margin-bottom: 0; }
.wall-figure svg { width: 100%; height: 100%; }
.wall-stage > .wall-figure { margin-bottom: -1.1rem; }   /* stands on the floor, in front of the wall */
.wall-figure-label { position: absolute; top: -1.6rem; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.wall-work { position: relative; z-index: 1; width: calc(var(--cmw) * var(--pxcm)); height: calc(var(--cmh) * var(--pxcm)); margin-bottom: calc((150 - var(--cmh) / 2) * var(--pxcm)); box-shadow: var(--shadow); transition: transform .5s var(--ease); flex: 0 0 auto; }
.wall-work img { width: 100%; height: 100%; object-fit: cover; }
.wall-work:hover { transform: translateY(-4px); z-index: 2; }
.wall-label { position: absolute; left: 0; top: calc(100% + .5rem); font-size: .68rem; line-height: 1.3; color: var(--muted); white-space: nowrap; }
.wall-work:nth-child(3) .wall-label, .wall-work:nth-child(4) .wall-label { top: auto; bottom: calc(100% + .5rem); }
.wall-hint { display: none; }
@media (max-width: 900px) { :root { --pxcm: 1.25px; } .wall-stage { gap: calc(16 * var(--pxcm)); } }
/* Phones: keep a legible scale and let the visitor walk along the wall instead of shrinking it. */
@media (max-width: 560px) {
  :root { --pxcm: 1.45px; }
  .wall-stage {
    justify-content: flex-start; gap: calc(26 * var(--pxcm)); padding: 0 1.5rem 3rem; margin: 0;  border-radius: 0;
    overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    background:
      linear-gradient(to top, var(--floor) 3rem, color-mix(in srgb, var(--fg) 14%, var(--floor)) 3rem, color-mix(in srgb, var(--fg) 14%, var(--floor)) calc(3rem + 1px), transparent calc(3rem + 1px)) local,
      linear-gradient(180deg, var(--wall), color-mix(in srgb, var(--wall) 70%, var(--bg))) local;
  }
  .wall-stage::-webkit-scrollbar { display: none; }
  .wall-floor { display: none; }
  .wall-stage > .wall-work:last-of-type { margin-right: 1.5rem; }
  .wall-label { font-size: .64rem; }
  .wall-hint { display: flex; justify-content: flex-end; gap: .5rem; padding: .9rem var(--gutter) 0; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .wall-hint span { color: var(--accent); animation: nudge 2.4s var(--ease) infinite; }
}
@keyframes nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateX(5px); } }

/* ---------- works pages ---------- */
.works-head { padding: 0 var(--gutter); margin-bottom: clamp(2rem, 5vw, 4rem); display: grid; grid-template-columns: 1fr auto; gap: 1rem 3rem; align-items: end; }
.works-head .eyebrow, .works-head .display, .works-lede, .works-meta { grid-column: 1; }
.works-head .display { font-size: clamp(3.2rem, 11vw, 9rem); }
.works-lede { color: var(--fg-2); max-width: 42ch; margin-top: 1.2rem; font-size: 1.05rem; }
.works-meta { font-size: .76rem; letter-spacing: .06em; color: var(--muted); margin-top: .8rem; white-space: pre-wrap; }
.works-tools { grid-column: 2; grid-row: 1 / span 4; display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: .2rem; align-self: end; }
.works-tools button { padding: .5rem 1rem; border-radius: 999px; font-size: .8rem; color: var(--muted); transition: background-color .3s, color .3s; }
.works-tools button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.works-intro { padding: 0 var(--gutter); margin: -1rem 0 3rem; font-family: var(--font-display); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--fg-2); max-width: 46ch; font-variation-settings: 'opsz' 36, 'SOFT' 100; }
@media (max-width: 720px) { .works-head { grid-template-columns: 1fr; } .works-tools { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 1rem; } }

.salon { padding: 0 var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 5vw, 4.5rem); }
.work { position: relative; transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), width .6s var(--ease); }
.js .work { opacity: 0; transform: translateY(24px); }
.js .work.in-view { opacity: 1; transform: none; }
.work-link { display: block; box-shadow: var(--shadow); overflow: hidden; background: var(--bg-2); }
.work-link img { width: 100%; transition: transform 1.2s var(--ease), opacity .6s; }
.work:hover .work-link img { transform: scale(1.025); }
.work figcaption { display: grid; grid-template-columns: auto 1fr; gap: .1rem .7rem; margin-top: .8rem; align-items: baseline; }
.work-num { font-size: .68rem; color: var(--muted); letter-spacing: .1em; grid-row: 1 / span 2; padding-top: .25rem; }
.work figcaption .work-title { font-size: 1rem; }
.work figcaption .work-cap { grid-column: 2; }
.work-wall { grid-column: 2; justify-self: start; display: inline-flex; align-items: center; gap: .4rem; margin-top: .25rem; padding: .35rem 0; font-size: .76rem; letter-spacing: .01em; color: var(--accent); opacity: .85; transition: opacity .3s, gap .3s var(--ease); }
.work-wall:hover { opacity: 1; gap: .55rem; }
/* relative scale: width follows the physical size */
.salon[data-layout="salon"] .work { width: min(100%, calc(4.5rem + var(--cm) * 3px)); }
.salon[data-layout="salon"] .work.is-large { flex-basis: 100%; }
@media (max-width: 900px) { .salon[data-layout="salon"] .work { width: min(100%, calc(5rem + var(--cm) * 2.2px)); } }
/* uniform grid */
.salon[data-layout="grid"] { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); align-items: start; gap: clamp(2rem, 4vw, 3.5rem) clamp(1.2rem, 3vw, 2.5rem); }
.salon[data-layout="grid"] .work-link { aspect-ratio: 4 / 3; display: grid; place-items: center; box-shadow: none; background: transparent; }
.salon[data-layout="grid"] .work-link img { max-height: 100%; width: auto; max-width: 100%; box-shadow: var(--shadow); }
.page-production .salon[data-layout="grid"] { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.page-production .salon[data-layout="grid"] .work-link { aspect-ratio: 16 / 9; background: #f4f1ea; padding: .55rem; box-shadow: var(--shadow); transform: rotate(calc((var(--i) - 3) * .4deg)); transition: transform .5s var(--ease); }
.page-production .work:hover .work-link { transform: rotate(0deg) scale(1.01); }
.page-production .salon[data-layout="grid"] .work-link img { box-shadow: none; }
/* Phones: one column. Width still follows the real size (compressed, see works.mjs --mw) and the
   works alternate sides like a hang, so a 20 cm canvas stays legible next to a 2 m one. */
@media (max-width: 640px) {
  .salon[data-layout="salon"] { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: clamp(3rem, 13vw, 4.25rem); }
  .salon[data-layout="salon"] .work, .salon[data-layout="salon"] .work.is-large { width: calc(var(--mw, 1) * 100%); flex-basis: auto; }
  .salon[data-layout="salon"] .work:nth-child(even) { align-self: flex-end; }
  .salon[data-layout="grid"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem .9rem; }
  .salon[data-layout="grid"] .work-cap, .salon[data-layout="grid"] .work-wall { display: none; }
  .salon[data-layout="grid"] .work figcaption { gap: .1rem .45rem; margin-top: .6rem; }
  .salon[data-layout="grid"] .work figcaption .work-title { font-size: .92rem; line-height: 1.25; }
  .page-production .salon[data-layout="grid"] { grid-template-columns: 1fr; }
  .works-tools { margin-top: 1.4rem; }
}
@media (pointer: coarse) { .works-tools button { min-height: 2.75rem; padding: .5rem 1.15rem; } }
.works-next { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; padding: clamp(4rem, 10vw, 8rem) var(--gutter) clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); margin-top: clamp(4rem, 10vw, 8rem); }
.works-next a { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 350; letter-spacing: -.02em; color: var(--fg-2); transition: color .3s; }
.works-next a:hover { color: var(--accent); }

/* ---------- viewer ---------- */
/* The backdrop is a pseudo-element so the painting itself never fades: it travels in from its
   thumbnail fully opaque while the room darkens around it. The backdrop is lit by the work's colour. */
.viewer {
  position: fixed; inset: 0; z-index: 90; height: 100dvh;
  display: grid; grid-template-columns: 1fr minmax(260px, 24vw); grid-template-rows: minmax(0, 1fr);
  overscroll-behavior: contain; --drag: 0;
  transition: --work-color 1.1s var(--ease);
}
.viewer[hidden] { display: none; }
.viewer::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 95% at 38% 46%, color-mix(in oklab, var(--work-color) 18%, var(--viewer-bg)) 0%, transparent 72%),
    var(--viewer-bg);
  opacity: 0; transition: opacity .45s var(--ease);
}
.viewer.is-open::before { opacity: calc(1 - var(--drag) * .75); }
body.viewer-open { overflow: hidden; }

.viewer-info, .viewer-close, .viewer-prev, .viewer-next, .viewer-progress {
  transition: opacity .35s var(--ease), transform .45s var(--ease-out), visibility .35s;
}
.viewer:not(.is-open) :is(.viewer-info, .viewer-close, .viewer-prev, .viewer-next, .viewer-progress) { opacity: 0; }
.viewer.is-bare :is(.viewer-info, .viewer-close, .viewer-prev, .viewer-next, .viewer-progress) { opacity: 0; visibility: hidden; }
.viewer.is-bare .viewer-info { transform: translateY(14px); }
.viewer.is-dragging :is(.viewer-info, .viewer-close, .viewer-prev, .viewer-next, .viewer-progress) { opacity: calc(1 - var(--drag) * 2); }

.viewer-progress { position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 3; background: var(--line); }
.viewer-progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); transition: transform .5s var(--ease-out); }

.viewer-stage {
  position: relative; display: grid; place-items: center; padding: clamp(1rem, 5vh, 4rem);
  overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.viewer-img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  box-shadow: var(--shadow); transform-origin: 50% 50%; will-change: transform;
  -webkit-user-drag: none; cursor: zoom-in;
}
.viewer.is-zoomed .viewer-img { cursor: grab; box-shadow: none; }
.viewer.is-zoomed .viewer-stage:active .viewer-img { cursor: grabbing; }

.viewer-info { padding: clamp(1.5rem, 5vh, 4rem) clamp(1.2rem, 3vw, 2.5rem); border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; gap: .6rem; }
/* View switch: Close-up | On the wall, at the top of the panel on wide screens, in the thumb zone on phones */
.viewer-mode { position: relative; align-self: flex-start; display: inline-flex; gap: .15rem; padding: .22rem; margin-bottom: 1.8rem; border: 1px solid var(--line-strong); border-radius: 999px; }
.viewer-mode[hidden] { display: none; }
.viewer-mode button { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1rem; border-radius: 999px; font-size: .82rem; color: var(--fg-2); transition: background-color .3s, color .3s; }
.viewer-mode button[data-mode="wall"] { color: var(--accent); }
.viewer-mode button:hover { color: var(--fg); }
.viewer-mode button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.viewer-mode button[data-mode="wall"][aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.icon-figure { width: .5rem; height: 1.1rem; flex: none; }
.viewer-nudge { position: absolute; left: 50%; bottom: calc(100% + .7rem); translate: -50% 4px; padding: .55rem .85rem; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-size: .76rem; white-space: nowrap; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .45); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .45s var(--ease), translate .45s var(--ease-out), visibility .45s; }
.viewer-nudge::after { content: ''; position: absolute; left: 66%; top: 100%; border: 6px solid transparent; border-top-color: var(--accent); }
.viewer.show-nudge .viewer-nudge { opacity: 1; visibility: visible; translate: -50% 0; }
.viewer-details-label { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.viewer-details-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; margin-bottom: 1.8rem; }
.viewer-detail { aspect-ratio: 1; overflow: hidden; border-radius: 2px; background: var(--bg-2); outline: 1px solid var(--line); outline-offset: 0; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .6); transition: outline-color .3s, outline-offset .3s var(--ease); cursor: zoom-in; }
.viewer-detail img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.viewer-detail:hover img { transform: scale(1.07); }
.viewer-detail[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 3px; cursor: zoom-out; }
.viewer.is-wall .viewer-details { display: none; }
/* hovering a tile shows where it is: the rest of the work dims a little */
.viewer-spot { position: absolute; z-index: 1; pointer-events: none; border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 0 0 200vmax rgba(0, 0, 0, .3); animation: vfade .3s var(--ease-out); }
.viewer-count { font-size: .7rem; letter-spacing: .14em; color: var(--muted); font-variant-numeric: tabular-nums; }
.viewer-title { font-family: var(--font-display); font-style: italic; font-weight: 380; font-size: clamp(1.6rem, 2.4vw, 2.4rem); line-height: 1.05; letter-spacing: -.015em; font-variation-settings: 'opsz' 72, 'SOFT' 60; }
.viewer-caption { color: var(--fg-2); font-size: .9rem; }
.viewer-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.2rem; }
.viewer-link { display: inline-flex; align-items: center; font-size: .8rem; padding: .55rem 1rem; border: 1px solid var(--line-strong); border-radius: 999px; transition: background-color .3s, color .3s, border-color .3s; }
.viewer-link:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.viewer-close, .viewer-prev, .viewer-next { position: absolute; z-index: 3; width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: color-mix(in srgb, var(--viewer-bg) 55%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 1.1rem; }
.viewer-close:hover, .viewer-prev:hover, .viewer-next:hover { border-color: var(--accent); }
.viewer-close { top: max(1rem, env(safe-area-inset-top)); right: 1rem; font-size: 1.5rem; }
.viewer-prev { left: 1rem; top: 50%; translate: 0 -50%; }
.viewer-next { right: calc(max(260px, 24vw) + 1rem); top: 50%; translate: 0 -50%; }
.viewer-hint { position: absolute; z-index: 3; left: 50%; top: calc(env(safe-area-inset-top) + 1.35rem); translate: -50% 0; padding: .55rem 1rem; border-radius: 999px; background: color-mix(in srgb, var(--viewer-bg) 70%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line); font-size: .74rem; color: var(--fg-2); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .6s var(--ease); }
.viewer.show-hint .viewer-hint { opacity: 1; }

/* ---------- see it on a wall ---------- */
/* Positions are computed in JS from centimetres (a camera frames each work); CSS only paints. */
.viewer.is-wall .viewer-stage { padding: 0; place-items: stretch; }
.wall-bg { position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in oklab, var(--wall), white 3%), var(--wall) 55%, color-mix(in oklab, var(--wall), black 12%)); }
.wall-room-floor { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, var(--floor), color-mix(in oklab, var(--floor), black 25%)); }
.wall-room-floor::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: var(--skirt, 8px); translate: 0 -100%; background: color-mix(in oklab, var(--wall), black 10%); border-bottom: 1px solid var(--line); }
.wall-light { position: absolute; pointer-events: none; background: radial-gradient(closest-side, var(--wall-light), transparent); }
.wall-world, .wall-hang { position: absolute; inset: 0; }
.wall-hang { will-change: transform; }
.wall-plant { position: absolute; pointer-events: none; }
.wall-plant img { width: 100%; height: 100%; display: block; }
/* The visitor and the vase are painted objects in the same room: one shared treatment per theme. */
.wall-figure svg, .wall-plant img { filter: var(--prop-filter); }
.wall-plant::after { content: ''; position: absolute; left: 57%; bottom: -2.2%; width: 70%; height: 5.5%; translate: -50% 0; background: radial-gradient(closest-side, rgba(0, 0, 0, .42), transparent); z-index: -1; }
.wall-world .wall-figure { position: absolute; margin: 0; display: block; color: color-mix(in srgb, var(--fg) 30%, var(--wall)); }
.wall-world .wall-figure svg { width: 100%; height: 100%; display: block; }
.wall-world .wall-figure-label { top: auto; bottom: calc(100% + .35rem); left: 50%; translate: -50% 0; }
.wall-piece { position: absolute; cursor: zoom-in; box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 30px -10px rgba(0, 0, 0, .55), 0 40px 80px -30px rgba(0, 0, 0, .45); }
.wall-piece img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wall-dim { position: absolute; color: var(--muted); font-size: .66rem; letter-spacing: .1em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wall-dim::before { content: ''; position: absolute; background: var(--line-strong); }
.wall-dim-w { display: flex; justify-content: center; padding-top: .45rem; }
.wall-dim-w::before { left: 0; right: 0; top: 0; height: 1px; }
.wall-dim-h { display: flex; align-items: center; padding-left: .55rem; }
.wall-dim-h::before { top: 0; bottom: 0; left: 0; width: 1px; }
.wall-dim-w::after, .wall-dim-h::after { content: ''; position: absolute; border: 0 solid var(--line-strong); }
.wall-dim-w::after { left: 0; right: 0; top: -3px; height: 7px; border-left-width: 1px; border-right-width: 1px; }
.wall-dim-h::after { top: 0; bottom: 0; left: -3px; width: 7px; border-top-width: 1px; border-bottom-width: 1px; }

@media (max-width: 860px) {
  .viewer { grid-template-columns: minmax(0, 1fr); }
  .viewer-stage { grid-area: 1 / 1; padding: calc(env(safe-area-inset-top) + 3.9rem) .5rem calc(env(safe-area-inset-bottom) + 7.25rem); }
  .viewer-info {
    grid-area: 1 / 1; align-self: end; position: relative; z-index: 2; pointer-events: none;
    border: 0; gap: .25rem; padding: 3rem calc(var(--gutter) + 7rem) calc(env(safe-area-inset-bottom) + 1rem) var(--gutter);
    background: linear-gradient(to top, color-mix(in srgb, var(--viewer-bg) 94%, transparent) 50%, transparent);
  }
  .viewer-info > * { pointer-events: auto; }
  .viewer-title { font-size: 1.35rem; }
  .viewer-caption { font-size: .82rem; }
  .viewer-actions { margin-top: .7rem; }
  .viewer-link { display: none; }
  .viewer-details-label { display: none; }
  .viewer-mode { order: 10; margin: .75rem 0 0; }
  .viewer-mode button { min-height: 2.6rem; padding: .45rem .95rem; }
  .viewer-nudge { left: 0; translate: 0 4px; }
  .viewer.show-nudge .viewer-nudge { translate: 0 0; }
  .viewer-nudge::after { left: 72%; }
  .viewer-details-row { grid-template-columns: repeat(3, 3.5rem); gap: .5rem; margin-bottom: .85rem; }
  .viewer.has-details:not(.is-wall) .viewer-stage { padding-bottom: calc(env(safe-area-inset-bottom) + 11rem); }
  .viewer-close { right: .75rem; width: 2.75rem; height: 2.75rem; }
  .viewer-prev, .viewer-next { top: auto; translate: none; bottom: calc(env(safe-area-inset-bottom) + 1rem); width: 2.75rem; height: 2.75rem; }
  .viewer-prev { left: auto; right: calc(var(--gutter) + 3.25rem); }
  .viewer-next { right: var(--gutter); }
}

/* ---------- bio ---------- */
.statement { padding: 0 var(--gutter) clamp(4rem, 10vw, 8rem); }
.statement-title { font-size: clamp(2.6rem, 8vw, 7.5rem); max-width: 14ch; }
.statement-title span { display: inline-block; opacity: 0; transform: translateY(.3em); animation: word-in 1.2s var(--ease-out) forwards; }
.statement-title span:nth-child(2) { animation-delay: .12s; font-style: italic; }
.statement-title span:nth-child(3) { animation-delay: .24s; }
.statement-grid { display: grid; grid-template-columns: minmax(0, 60ch) 1fr; gap: clamp(3rem, 8vw, 8rem); margin-top: clamp(3rem, 7vw, 6rem); align-items: start; }
.statement-body { font-family: var(--font-display); font-weight: 340; font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.5; font-variation-settings: 'opsz' 24, 'SOFT' 60; }
.statement-p + .statement-p { margin-top: 1.6em; }
.has-dropcap::first-letter { font-size: 3.6em; float: left; line-height: .78; padding: .08em .12em 0 0; font-style: italic; color: var(--accent); font-weight: 300; }
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].in-view { opacity: 1; transform: none; }
.facts { margin-top: 3.5rem; border-top: 1px solid var(--line); font-family: var(--font-body); font-size: .9rem; }
.fact { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.fact dt { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.fact dd { color: var(--fg-2); }
.fact .dot { color: var(--accent); }
.statement-cta { margin-top: 2.5rem; font-family: var(--font-body); font-size: 1rem; }
.statement-aside { display: flex; flex-direction: column; gap: clamp(3rem, 9vw, 8rem); padding-top: 4rem; }
.margin-work { max-width: 22rem; will-change: transform; }
.margin-work:nth-child(even) { align-self: flex-end; }
.margin-work a { display: block; box-shadow: var(--shadow); }
.margin-work figcaption { display: flex; flex-direction: column; margin-top: .7rem; }
@media (max-width: 900px) { .statement-grid { grid-template-columns: 1fr; } .statement-aside { flex-direction: row; flex-wrap: wrap; padding-top: 0; gap: 2rem; } .margin-work { max-width: calc(50% - 1rem); align-self: auto !important; transform: none !important; } .fact { grid-template-columns: 1fr; gap: .3rem; } }

/* ---------- contact / 404 ---------- */
body.page-contact main { padding-top: 0; }
.contact { position: relative; min-height: 100svh; display: grid; align-items: center; padding: calc(var(--header-h) + 3rem) var(--gutter) 5rem; overflow: clip; }
.contact-bg { position: absolute; inset: 0; z-index: 0; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: saturate(.9); transform: scale(1.06); animation: hero-zoom 12s var(--ease-out) forwards; }
.contact::before { content: ''; position: absolute; inset: 0; z-index: 1; background: var(--veil); }
:root[data-theme="day"] .contact-bg img { opacity: .4; }
.contact-card { position: relative; z-index: 2; max-width: 52rem; }
.contact-intro { font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 340; color: var(--fg-2); margin-bottom: 2.5rem; font-variation-settings: 'opsz' 48, 'SOFT' 80; }
.contact-row { display: grid; grid-template-columns: 6rem 1fr auto; align-items: baseline; gap: 1rem; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.contact-row:last-of-type { border-bottom: 1px solid var(--line); }
.contact-k { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact-v { font-size: clamp(1.5rem, 4.4vw, 3.6rem); word-break: break-all; transition: color .3s; }
.contact-v:hover { color: var(--accent); }
.copy-btn { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line-strong); border-radius: 999px; padding: .4rem .8rem; transition: all .3s; }
.copy-btn:hover, .copy-btn.is-done { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.contact-time { margin-top: 2rem; color: var(--muted); font-size: .9rem; }
.contact-credit { position: absolute; z-index: 2; right: var(--gutter); bottom: 1.6rem; font-size: .74rem; color: var(--muted); }
.lost .display { font-size: clamp(3rem, 10vw, 8rem); margin-bottom: 1rem; }
@media (max-width: 640px) { .contact-row { grid-template-columns: 1fr; gap: .4rem; } .copy-btn { justify-self: start; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) max(2rem, env(safe-area-inset-bottom)); font-size: .84rem; color: var(--muted); }
.page-contact .site-footer { border-top: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-col { display: flex; flex-direction: column; gap: .3rem; }
.footer-name { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--fg); }
.footer-link { color: var(--fg-2); width: fit-content; border-bottom: 1px solid transparent; transition: border-color .3s, color .3s; }
.footer-link:hover { color: var(--fg); border-color: var(--accent); }
.footer-clock { text-align: right; }
.tbilisi-time { color: var(--accent); font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } .footer-clock { text-align: left; } }

/* ---------- image loading ---------- */
.js img[loading="lazy"] { opacity: 0; transition: opacity .7s var(--ease); }
.js img[loading="lazy"].is-loaded { opacity: 1; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .grain { animation: none; } .lamp { display: none; }
  .hero-word, .hero-eyebrow, .hero-sub, .hero-work, .scroll-cue, .statement-title span, [data-reveal], .work, .reveal-words .w { opacity: 1 !important; transform: none !important; }
  html { transition: none; } .wall-hint span { animation: none; }
  img[loading="lazy"] { opacity: 1; }
}
@media (hover: none) { .lamp { display: none; } }
@media print { .grain, .lamp, .site-header, .viewer, .scroll-cue { display: none !important; } body { background: #fff; color: #000; } }
