/* ==========================================================================
   Manvika Garg — gallery site
   ========================================================================== */

:root {
  --font-body: "Newsreader", "Times New Roman", Times, serif;
  --font-display: "Londrina Solid", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --fs-chrome: .6875rem;
  --track-chrome: .14em;
  --fs-body: 1rem;
  --fs-lede: clamp(1rem, 2vw, 1.25rem);
  --fs-h1: clamp(2rem, 7vw, 5rem);
  --fs-h2: clamp(1.5rem, 4vw, 2.5rem);

  --edge: clamp(.9rem, 2vw, 1.6rem);
  --edge-wide: clamp(1rem, 3vw, 2.4rem);
  --page-max: 72rem;
  --page-gutter: clamp(1rem, 3vw, 2.4rem);
  --bar-h: 67px;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-pill: 999px;

  --blur-chrome: 8px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.2, .7, .2, 1);
  --ease-in-out: cubic-bezier(.6, 0, .4, 1);
  --dur-fast: .16s;
  --dur-base: .32s;
  --dur-slow: .64s;

  --z-stage: 0;
  --z-chrome: 10;
  --z-header: 20;
  --z-overlay: 30;
  --z-modal: 40;

  color-scheme: light;
  --bg: #f2f2f0;
  --ink: #111110;
  --dim: #686865;
  --line: color-mix(in srgb, #111110 14%, transparent);
  --panel: color-mix(in srgb, #111110 4%, #f2f2f0);
  --focus: #111110;
  --chrome-bg: color-mix(in srgb, #f2f2f0 72%, transparent);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000;
  --ink: #fff;
  --dim: #8a8a83;
  --line: color-mix(in srgb, #fff 14%, transparent);
  --panel: color-mix(in srgb, #fff 4%, #000);
  --focus: #fff;
  --chrome-bg: color-mix(in srgb, #000 72%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: fixed; left: var(--edge); top: -100px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: .5rem 1rem;
}
.skip:focus { top: var(--edge); }

.kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-chrome);
  letter-spacing: var(--track-chrome);
  text-transform: uppercase;
  color: var(--dim);
  line-height: 1.5;
}

.display {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: .95;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 16px 17px;
  background: var(--chrome-bg);
  -webkit-backdrop-filter: blur(var(--blur-chrome));
  backdrop-filter: blur(var(--blur-chrome));
  border-bottom: 1px solid var(--line);
  transition: opacity .5s .12s, transform .5s .12s, background-color var(--dur-base);
}
html[data-booting] .top { opacity: 0; transform: translateY(-.5rem); transition-delay: 0s; }

.nav { display: flex; align-items: center; gap: 22px; min-width: 0; }
.logo { display: inline-flex; color: var(--ink); }
.logo svg { display: block; }
.links { display: flex; align-items: center; gap: 16px; }
.links a, .help-toggle {
  font-size: 1.0625rem; line-height: 24px;
  transition: opacity var(--dur-base) var(--ease-out);
}
.links:hover a, .links:hover .help-toggle { opacity: .45; }
.links a:hover, .links .help-toggle:hover, .links a[aria-current="page"] { opacity: 1; }

.actions { display: flex; align-items: center; gap: 14px; }

.icon-btn {
  position: relative;
  display: inline-grid; place-items: center;
  width: 28px; height: 28px;
  color: var(--ink);
  transition: opacity var(--dur-base) var(--ease-out);
}
.icon-btn:hover { opacity: .6; }
#theme-toggle .i-sun { display: none; }
:root[data-theme="light"] #theme-toggle .i-sun { display: block; }
:root[data-theme="light"] #theme-toggle .i-moon { display: none; }

.saved-count {
  position: absolute; right: -4px; top: -2px;
  min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: var(--radius-pill);
  background: var(--ink); color: var(--bg);
  font: 500 9px/15px var(--font-mono);
  text-align: center;
}

.menu-btn { display: none; }

/* Help */
.help { position: relative; }
.help-panel {
  position: absolute; top: calc(100% + 22px); left: -1rem;
  width: 22rem; padding: 1.1rem 1.1rem .6rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: 0 18px 40px -18px rgb(0 0 0 / .35);
  animation: drop var(--dur-base) var(--ease-out);
}
.help-address { display: inline-block; margin: .3rem 0 .2rem; font-size: 1.25rem; border-bottom: 1px solid var(--line); }
.help-hint { color: var(--dim); font-size: .875rem; margin-bottom: .8rem; }
.help-topics li + li { border-top: 1px solid var(--line); }
.help-topic { display: grid; grid-template-columns: 1fr auto; padding: .65rem 0; gap: 0 1rem; }
.help-topic-title { font-size: 1rem; }
.help-topic-note { grid-column: 1; color: var(--dim); font-size: .8125rem; line-height: 1.35; }
.help-topic-arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; transition: transform var(--dur-base) var(--ease-out); }
.help-topic:hover .help-topic-arrow { transform: translateX(4px); }

@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* Search */
.search { position: relative; }
.search-trigger { display: none; width: 28px; height: 28px; place-items: center; }
.search-field {
  display: flex; align-items: center; gap: 8px;
  height: 26px; padding: 0 4px 0 10px;
  border: 1px solid var(--ink); border-radius: var(--radius-pill);
  cursor: text;
  transition: width var(--dur-base) var(--ease-out);
}
.search-field input {
  width: 3.4rem; border: 0; outline: 0; background: none; color: var(--ink);
  font: 400 14px/21px var(--font-body); padding: 0;
  transition: width var(--dur-base) var(--ease-out);
}
.search-field input::placeholder { color: var(--dim); opacity: 1; }
.search-field input::-webkit-search-cancel-button { display: none; }
.search.is-open .search-field input { width: 13rem; }
.search-field kbd {
  font: 400 10px/16px var(--font-body); color: var(--dim);
  padding: 0 6px; border-radius: var(--radius-pill); background: var(--panel); border: 1px solid var(--line);
  white-space: nowrap;
}
.search-results {
  position: absolute; right: 0; top: calc(100% + 20px);
  width: min(24rem, calc(100vw - 2 * var(--edge)));
  max-height: min(70dvh, 30rem); overflow: auto;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: 0 18px 40px -18px rgb(0 0 0 / .35);
  padding: .4rem;
  animation: drop var(--dur-base) var(--ease-out);
}
.search-group { padding: .6rem .6rem .3rem; }
.result {
  display: grid; grid-template-columns: 36px 1fr; gap: .2rem .8rem; align-items: center;
  padding: .45rem .6rem; border-radius: var(--radius-md);
}
.result[aria-selected="true"], .result:hover { background: var(--panel); }
.result img { width: 36px; height: 46px; object-fit: cover; grid-row: span 2; }
.result-title { font-size: 1rem; line-height: 1.2; }
.result-meta { font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--track-chrome); text-transform: uppercase; color: var(--dim); }
.result.no-img { grid-template-columns: 1fr; }
.search-empty { padding: 1rem .6rem; color: var(--dim); }

/* Mobile sheet */
.sheet {
  position: fixed; inset: 0; z-index: calc(var(--z-header) + 5);
  background: #0c0c0b; color: #fff;
  animation: fade var(--dur-base) var(--ease-out);
}
.sheet .logo, .sheet .icon-btn { color: #fff; }
.sheet-top { display: flex; justify-content: space-between; align-items: center; padding: 1rem var(--edge); height: var(--bar-h); }
.sheet-panel {
  display: flex; flex-direction: column; gap: .35rem;
  padding: 2rem var(--edge);
  font-size: clamp(2rem, 9vw, 2.6rem); line-height: 1.15;
}
.sheet-panel a { opacity: 0; animation: rise .5s var(--ease-out) forwards; }
.sheet-panel a:nth-child(2) { animation-delay: .04s; }
.sheet-panel a:nth-child(3) { animation-delay: .08s; }
.sheet-panel a:nth-child(4) { animation-delay: .12s; }
.sheet-panel a:nth-child(5) { animation-delay: .16s; }

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   View switch (Gallery / List)
   -------------------------------------------------------------------------- */
.switches {
  position: fixed; z-index: var(--z-chrome);
  top: calc(var(--bar-h) + 10px); right: var(--edge);
  transition: opacity var(--dur-slow) var(--ease-out);
}
html[data-booting] .switches { opacity: 0; }
.switch {
  display: inline-flex; padding: 3px; gap: 2px;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--chrome-bg);
  -webkit-backdrop-filter: blur(var(--blur-chrome)); backdrop-filter: blur(var(--blur-chrome));
}
.switch button {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--track-chrome); text-transform: uppercase;
  padding: 6px 13px; border-radius: var(--radius-pill); color: var(--dim);
  transition: background-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.switch button:hover { color: var(--ink); }
.switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* --------------------------------------------------------------------------
   3D room
   -------------------------------------------------------------------------- */
.stage {
  position: fixed; inset: 0; z-index: var(--z-stage);
  visibility: hidden; opacity: 0;
  transition: opacity .9s var(--ease-out), visibility 0s .9s;
  cursor: grab;
  touch-action: none;
}
html[data-scene] .stage { visibility: visible; opacity: 1; transition: opacity .9s var(--ease-out); }
.stage.is-dragging { cursor: grabbing; }
.stage.is-pointing { cursor: pointer; }
#room-canvas { display: block; width: 100%; height: 100%; }
.veil {
  position: absolute; inset: 0; pointer-events: none;
  background: var(--bg);
  transition: opacity 1.4s var(--ease-out) .2s;
}
.stage.is-ready .veil { opacity: 0; }

.room-ui {
  position: fixed; inset: auto 0 0 0; z-index: var(--z-chrome);
  pointer-events: none;
  padding: 0 var(--edge) calc(var(--edge) + 18px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end;
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
html[data-booting] .room-ui { opacity: 0; transform: translateY(.6rem); }
.room-caption {
  grid-column: 2; text-align: center; pointer-events: auto;
  color: var(--ink);
  max-width: min(34rem, 60vw);
  text-shadow: 0 0 18px var(--bg), 0 0 6px var(--bg);
}
.room-caption .kicker { margin-bottom: .4rem; }
/* When the camera is up against the (always light) wall, the caption turns dark */
.room-ui.on-wall { --ink: #111110; --dim: #686865; --bg: #ecebe6; --line: rgb(17 17 16 / .14); }
.room-ui .room-caption, .room-ui .room-hint span, .room-ui .round-btn { transition: color .6s var(--ease-out), text-shadow .6s var(--ease-out), background-color .6s; }
.room-title {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.4rem, 2.6vw, 1.75rem); line-height: 1; letter-spacing: .01em;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.room-title.is-swapping { opacity: 0; transform: translateY(6px); }
.room-enter {
  display: inline-block; margin-top: .75rem;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--track-chrome); text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: 1px;
  transition: opacity var(--dur-base);
}
.room-enter[hidden] { display: none; }
.room-enter:hover { opacity: .6; }
.room-controls {
  grid-column: 3; justify-self: end; text-align: right;
  display: flex; flex-direction: column; align-items: flex-end; gap: 1.6rem;
}
.room-arrows { display: flex; gap: 10px; pointer-events: auto; }
.round-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 13px;
  color: var(--ink);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform var(--dur-base) var(--ease-out), background-color var(--dur-base);
}
.round-btn:hover { transform: scale(1.06); background: color-mix(in srgb, var(--bg) 85%, transparent); }
.round-btn:active { transform: scale(.96); }
.room-hint span {
  display: block;
  font-family: var(--font-mono); font-size: var(--fs-chrome); letter-spacing: var(--track-chrome); text-transform: uppercase;
  color: var(--dim); line-height: 1.9;
  text-shadow: 0 0 12px var(--bg);
}
.room-hint span + span { opacity: .75; }

/* --------------------------------------------------------------------------
   Pages
   -------------------------------------------------------------------------- */
main { position: relative; z-index: 1; outline: none; }
main.is-leaving { opacity: 0; transition: opacity .22s var(--ease-out); }
main.is-entering { animation: page-in .5s var(--ease-out); }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } }

.page {
  padding: calc(var(--bar-h) + 4.2rem) var(--page-gutter) 5rem;
  max-width: calc(var(--page-max) + 2 * var(--page-gutter));
  margin: 0 auto;
}

.foot {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  padding: 1.4rem var(--page-gutter) calc(1.4rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: var(--fs-chrome); letter-spacing: var(--track-chrome); text-transform: uppercase; color: var(--dim);
}
.foot nav { display: flex; gap: 1.4rem; }
.foot a:hover { color: var(--ink); }

/* Reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--reveal-delay, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- List view (index + collection) ---------- */
.list-page { padding-top: calc(var(--bar-h) + 4.5rem); }
.list-head {
  display: flex; align-items: baseline; gap: 1rem;
  padding-bottom: .7rem; border-bottom: 1px solid var(--line);
}
.list-head h2 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 1.375rem; line-height: 1; letter-spacing: .01em; }
.list-head .all { margin-left: auto; font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--track-chrome); text-transform: uppercase; color: var(--ink); }
.list-head .all:hover { opacity: .6; }
.list-rows li { border-bottom: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: minmax(0, 18rem) 1fr auto; gap: 1.6rem; align-items: center;
  padding: 1.3rem 0;
}
.row-media { display: flex; height: clamp(11rem, 26vw, 17rem); }
.row-media img {
  height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: left center;
  transition: transform .9s var(--ease-out);
  box-shadow: 0 12px 28px -18px rgb(0 0 0 / .5);
}
.row:hover .row-media img { transform: scale(1.025); }
.row-title { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.15; }
.row-meta { margin-top: .5rem; }
.row-arrow { font-family: var(--font-mono); font-size: 12px; padding-right: 2.2rem; transition: transform var(--dur-base) var(--ease-out); }
.row:hover .row-arrow { transform: translateX(6px); }
.list-blank { padding: 3rem 0 1rem; color: var(--dim); }

/* ---------- Clothesline (collection gallery) ---------- */
.line-page { position: fixed; inset: 0; overflow: hidden; touch-action: pan-y; }
.line-head {
  position: absolute; left: 50%; top: calc(var(--bar-h) + 1.4rem); transform: translateX(-50%);
  width: min(40rem, calc(100vw - 2 * var(--edge) - 12rem)); text-align: center; z-index: 3;
}
.line-head .back { display: inline-block; margin-bottom: .45rem; }
.line-head .back:hover { color: var(--ink); }
.line-head h1 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.6rem, 3.2vw, 2.25rem); line-height: 1; letter-spacing: .01em; }
.line-desc {
  margin: .9rem auto 0; max-width: 34rem;
  font-family: var(--font-mono); font-size: 11px; line-height: 1.75; color: var(--dim);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.line-desc.is-open { -webkit-line-clamp: unset; display: block; }
.more-btn {
  margin-top: .45rem;
  font-family: var(--font-body); font-size: .875rem; font-style: italic;
  border-bottom: 1px solid var(--line);
}
.line-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.line-svg path { fill: none; stroke: var(--ink); stroke-width: 1.1; opacity: .75; }
.sheets { position: absolute; inset: 0; z-index: 2; cursor: grab; }
.sheets.is-dragging { cursor: grabbing; }
.hang {
  position: absolute; left: 0; top: 0;
  transform-origin: 50% 0;
  will-change: transform;
}
.hang img {
  display: block; height: 100%; width: 100%; object-fit: cover;
  box-shadow: 0 22px 40px -22px rgb(0 0 0 / .55), 0 2px 6px rgb(0 0 0 / .12);
  user-select: none; -webkit-user-drag: none; pointer-events: none;
}
.hang::before, .hang::after {
  content: ""; position: absolute; top: -9px; width: 6px; height: 16px;
  background: var(--ink); border-radius: 1px; z-index: 1;
}
.hang::before { left: 14%; }
.hang::after { right: 14%; }
.line-foot {
  position: absolute; left: var(--edge); right: var(--edge); bottom: calc(var(--edge) + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1rem; z-index: 3;
}
.line-now { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1; letter-spacing: .01em; }
.line-now span { color: var(--dim); }
.line-count { display: flex; align-items: center; gap: .6rem; justify-content: flex-end; }
.line-count i { display: block; width: 2.4rem; height: 1px; background: var(--ink); opacity: .4; }
.sway { display: flex; align-items: center; gap: .8rem; margin-top: 1.4rem; }
.sway input[type=range] { -webkit-appearance: none; appearance: none; width: 5.5rem; height: 16px; background: none; }
.sway input[type=range]::-webkit-slider-runnable-track { height: 1px; background: var(--ink); opacity: .6; }
.sway input[type=range]::-moz-range-track { height: 1px; background: var(--ink); opacity: .6; }
.sway input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); margin-top: -5px; }
.sway input[type=range]::-moz-range-thumb { width: 11px; height: 11px; border: 0; border-radius: 50%; background: var(--ink); }
.line-tap { text-align: right; margin-top: 1.4rem; }

/* ---------- Artwork page ---------- */
.pdp {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 clamp(2rem, 6vw, 5.9rem);
  align-items: start;
  padding-top: calc(var(--bar-h) + 2.2rem);
}
.pdp-media { position: sticky; top: calc(var(--bar-h) + 1.5rem); display: flex; flex-direction: column; gap: 14px; }
.pdp-shot { position: relative; cursor: zoom-in; overflow: hidden; }
.pdp-shot img {
  width: 100%; height: auto; max-height: calc(100dvh - var(--bar-h) - 7rem); object-fit: contain; object-position: left top;
  box-shadow: 0 22px 50px -28px rgb(0 0 0 / .6);
}
.pdp-tools { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; font-size: 1rem; }
.pdp-tools .count { font-family: var(--font-body); }
.pdp-tools .ar-btn { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.0625rem; }
.ar-btn .cube {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--bg);
}
.pdp-tools .save-btn { justify-self: end; }
.save-btn svg path { transition: fill var(--dur-base); }
.save-btn[aria-pressed="true"] svg path { fill: currentColor; }

.pdp-info { padding-top: .4rem; padding-bottom: 4rem; }
.crumb { display: inline-block; font-size: 1.0625rem; color: var(--dim); margin-bottom: .9rem; transition: color var(--dur-base); }
.crumb:hover { color: var(--ink); }
.pdp-info h1 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: .98; letter-spacing: .01em; }
.pdp-info h2 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1; letter-spacing: .01em; margin-top: 1.2rem; }
.pdp-desc { margin-top: 1rem; font-size: 1.0625rem; line-height: 1.32; max-width: 34rem; }
.pdp-desc .more-btn { border: 0; font-size: 1.0625rem; }
.facts { margin-top: 2rem; display: grid; gap: 1.1rem; }
.fact-label { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: .9375rem; letter-spacing: .02em; }
.fact-label span { font-family: var(--font-body); font-weight: 400; text-transform: none; font-size: 1rem; letter-spacing: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: .55rem; }
.chip {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 1rem; letter-spacing: .02em;
  padding: .55rem .85rem; border: 2px solid var(--ink); border-radius: var(--radius-sm);
}
.chip.off { border: 1px dashed var(--line); color: var(--dim); }
.btn-solid {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 1.25rem; letter-spacing: .02em;
  background: var(--ink); color: var(--bg);
  padding: 1rem 1.6rem; border-radius: var(--radius-sm);
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base);
}
.btn-solid:hover { opacity: .88; }
.btn-solid:active { transform: scale(.985); }
.btn-ghost {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--track-chrome); text-transform: uppercase;
  padding: .8rem 1rem;
}
.pdp-cta { margin-top: 2.4rem; display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: center; }
.pdp-cta .btn-solid { width: 100%; min-height: 68px; font-size: 1.5rem; }
.pdp-cta .save-big {
  display: inline-flex; align-items: center; gap: .55rem; font-size: 1.0625rem; padding: 0 .4rem;
}
.acc { margin-top: 2.6rem; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 0; font-size: 1.25rem;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary i { font-style: normal; font-size: 1.6rem; font-weight: 300; line-height: 1; transition: transform var(--dur-base) var(--ease-out); }
.acc details[open] summary i { transform: rotate(45deg); }
.acc .acc-body { padding: 0 0 1.3rem; max-width: 36rem; color: color-mix(in srgb, var(--ink) 82%, var(--bg)); }
.acc .acc-body p + p { margin-top: .8rem; }

.more-works { margin-top: 6rem; }
.more-works .list-head { margin-bottom: 1.4rem; }

/* ---------- Grid (works, saved) ---------- */
.page-title { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: var(--fs-h1); line-height: .92; letter-spacing: .01em; }
.page-sub { margin-top: .9rem; }
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr));
  gap: 3rem clamp(1.2rem, 3vw, 2.4rem);
  margin-top: 2.6rem;
}
.card { display: block; }
.card-media { aspect-ratio: 3 / 4; display: flex; align-items: flex-end; justify-content: center; background: var(--panel); padding: 12%; overflow: hidden; }
.card-media img {
  max-height: 100%; width: auto; object-fit: contain;
  box-shadow: 0 16px 30px -16px rgb(0 0 0 / .45);
  transition: transform .9s var(--ease-out);
}
.card:hover .card-media img { transform: translateY(-4px) scale(1.02); }
.card-title { margin-top: .8rem; font-size: 1.125rem; line-height: 1.2; }
.card-meta { margin-top: .25rem; }
.collection-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2.6rem; padding: clamp(1.2rem, 3vw, 2rem); background: var(--panel); align-items: center;
}
.collection-card .fan { position: relative; height: clamp(14rem, 32vw, 22rem); }
.collection-card .fan img {
  position: absolute; bottom: 0; left: 50%; height: 88%; width: auto;
  box-shadow: 0 18px 34px -18px rgb(0 0 0 / .55);
  transition: transform .9s var(--ease-out);
}
.collection-card h2 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: var(--fs-h2); line-height: .98; }
.collection-card p.desc { margin-top: 1rem; max-width: 30rem; color: color-mix(in srgb, var(--ink) 82%, var(--bg)); }
.collection-card .room-enter { margin-top: 1.4rem; }
.empty { margin-top: 2.6rem; padding: 4rem 1rem; text-align: center; border: 1px dashed var(--line); color: var(--dim); }
.empty a { color: var(--ink); border-bottom: 1px solid var(--line); }

/* ---------- Info ---------- */
.info-hero {
  position: relative;
  min-height: calc(100dvh - var(--bar-h));
  padding-top: var(--bar-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.info-quote {
  position: absolute; left: 50%; top: calc(var(--bar-h) + 1.6rem); transform: translateX(-50%); z-index: 2;
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase; white-space: nowrap;
  font-size: clamp(1.6rem, 4.4vw, 3.6rem); line-height: 1;
  text-shadow: 0 0 28px var(--bg);
}
.info-name {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.4rem, 7.4vw, 6.6rem); line-height: .9; letter-spacing: .01em;
  position: relative; z-index: 2;
}
.info-name.left { justify-self: end; margin-right: -2vw; }
.info-name.right { justify-self: start; margin-left: -2vw; }
/* Arched portrait: echoes the arched spotlights on the gallery wall */
.portrait {
  position: relative;
  width: min(34vw, 27rem, calc((100dvh - var(--bar-h) - 9rem) * .8));
  aspect-ratio: 4 / 5;
  margin-top: 4.2rem !important;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 72%, transparent 100%);
  mask-image: linear-gradient(#000 72%, transparent 100%);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 50%; filter: saturate(.95) contrast(1.02); }
.portrait::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08), inset 0 30px 60px -30px rgb(0 0 0 / .35);
}
.info-body { max-width: 31rem; margin: 0 auto; padding: 1rem var(--page-gutter) 0; text-align: center; font-size: 1.0625rem; line-height: 1.45; }
.info-body p + p { margin-top: 1.1rem; }
.info-body .kicker { margin-bottom: 1.2rem; }
.info-pull {
  max-width: 50rem; margin: 5rem auto 0; padding: 0 var(--page-gutter);
  text-align: center;
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.6rem, 3.6vw, 2.8rem); line-height: 1;
}
.info-cta { text-align: center; margin: 3.2rem 0 6rem; }

/* --------------------------------------------------------------------------
   Newsletter card
   -------------------------------------------------------------------------- */
.news {
  position: fixed; z-index: var(--z-overlay);
  bottom: var(--edge); left: var(--edge);
  width: min(21.5rem, calc(100vw - 2 * var(--edge)));
  padding: 1.1rem 1.1rem .9rem;
  background: #000; color: #fff;
  border: 1px solid rgb(255 255 255 / .12); border-radius: var(--radius-md);
  box-shadow: 0 24px 60px -24px rgb(0 0 0 / .6);
  transform-origin: 50% 100%;
  animation: set-down .8s linear(0, .22 7%, .58 17%, .86 28%, 1.02 40%, 1.035 48%, 1.01 62%, .998 76%, 1) both;
}
.news.is-leaving { animation: lift-off .45s cubic-bezier(.6, 0, .4, 1) forwards; }
@keyframes set-down { from { opacity: 0; transform: perspective(1100px) translateY(30px) rotateX(18deg); } }
@keyframes lift-off { to { opacity: 0; transform: perspective(1100px) translateY(24px) rotateX(-14deg); } }
.news .kicker { color: #9c9b96; }
.news-close { position: absolute; top: .9rem; right: .9rem; width: 22px; height: 22px; display: grid; place-items: center; color: #9c9b96; }
.news-close:hover { color: #fff; }
.news-title { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 1.7rem; line-height: 1; margin: .35rem 0 .5rem; }
.news-text { color: rgb(255 255 255 / .82); font-size: .98rem; line-height: 1.35; }
.news-form {
  display: flex; align-items: center; margin-top: 1rem; padding: 4px 4px 4px 14px;
  border: 1px solid rgb(255 255 255 / .4); border-radius: var(--radius-pill);
}
.news-form:focus-within { border-color: #fff; }
.news-form input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font: 400 1rem/1.5 var(--font-body); }
.news-form input::placeholder { color: rgb(255 255 255 / .45); }
.news-form button { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #000; font-family: var(--font-mono); transition: transform var(--dur-base) var(--ease-out); }
.news-form button:hover { transform: translateX(2px); }
.news-small { margin-top: .6rem; padding-left: 14px; font-size: .82rem; color: rgb(255 255 255 / .6); }

/* --------------------------------------------------------------------------
   Modals
   -------------------------------------------------------------------------- */
.modal {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: grid; place-items: center; padding: var(--edge);
  background: rgb(0 0 0 / .62);
  animation: fade var(--dur-base) var(--ease-out);
}
.modal-box {
  width: min(24rem, 100%); padding: 1.6rem 1.6rem 1.4rem; text-align: center;
  background: #000; color: #fff; border: 1px solid rgb(255 255 255 / .2);
  animation: rise .5s var(--ease-out);
}
.modal-title { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 1.75rem; line-height: 1; }
.modal-text { margin-top: .7rem; color: rgb(255 255 255 / .82); font-size: .98rem; line-height: 1.35; }
.qr { width: 196px; height: 196px; margin: 1.3rem auto; padding: 10px; background: #fff; }
.qr svg, .qr img { width: 100%; height: 100%; display: block; }
.modal-url { margin: -.6rem 0 .9rem; font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; color: rgb(255 255 255 / .45); word-break: break-all; }
.modal-small { color: rgb(255 255 255 / .55); font-size: .9rem; margin-bottom: 1.1rem; }
.modal .btn-solid { background: #fff; color: #000; font-size: 1rem; padding: .7rem 1.2rem; }
.modal .modal-close { color: rgb(255 255 255 / .7); display: block; margin: .6rem auto 0; }

.ar-sheet { position: fixed; inset: 0; z-index: var(--z-modal); background: var(--bg); display: grid; grid-template-rows: 1fr auto; }
.ar-stage model-viewer { width: 100%; height: 100%; --poster-color: transparent; background: none; }
.ar-bar { display: grid; gap: .6rem; padding: 1rem var(--edge) calc(1rem + env(safe-area-inset-bottom)); text-align: center; border-top: 1px solid var(--line); }

.lightbox {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: var(--bg); overflow: hidden; cursor: zoom-in;
  display: grid; place-items: center;
  animation: fade var(--dur-base) var(--ease-out);
}
.lightbox img { max-width: calc(100vw - 2 * var(--edge)); max-height: calc(100dvh - 5rem); object-fit: contain; transition: transform .5s var(--ease-out); user-select: none; -webkit-user-drag: none; }
.lightbox.is-zoomed { cursor: zoom-out; }
.lightbox.is-zoomed img { transition: none; }
.lightbox-close { position: absolute; top: var(--edge); right: var(--edge); }
.lightbox-hint { position: absolute; bottom: var(--edge); left: 50%; transform: translateX(-50%); }

/* --------------------------------------------------------------------------
   Phone
   -------------------------------------------------------------------------- */
@media (max-width: 720px) {
  .links { display: none; }
  .menu-btn { display: inline-grid; }
  .actions { gap: 10px; }
  .search-trigger { display: inline-grid; }
  .search-field { display: none; }
  .search.is-open .search-field {
    display: flex; position: fixed; left: var(--edge); right: var(--edge); top: calc(var(--bar-h) + 8px);
    height: 44px; padding: 0 14px; background: var(--bg);
  }
  .search.is-open .search-field input { width: 100%; font-size: 16px; }
  .search.is-open .search-field kbd { display: none; }
  .search-results { position: fixed; left: var(--edge); right: var(--edge); width: auto; top: calc(var(--bar-h) + 60px); }

  .switches { top: calc(var(--bar-h) + 12px); }

  .room-ui { grid-template-columns: 1fr; justify-items: center; padding-bottom: calc(1.6rem + env(safe-area-inset-bottom)); }
  .room-caption { grid-column: 1; max-width: 100%; }
  .room-title { font-size: 1.75rem; }
  .room-controls { grid-column: 1; justify-self: center; align-items: center; text-align: center; margin-top: 1.4rem; gap: 1.2rem; }

  .row { grid-template-columns: 38% 1fr auto; gap: 1rem; }
  .row-media { height: 9.5rem; }
  .row-arrow { padding-right: 0; }

  .line-head { width: calc(100vw - 2 * var(--edge)); top: calc(var(--bar-h) + 3.6rem); }
  .line-foot { grid-template-columns: 1fr; }
  .line-count { justify-content: flex-start; }
  .line-tap { text-align: left; margin-top: .6rem; }

  .pdp { grid-template-columns: 1fr; padding-top: calc(var(--bar-h) + 1.2rem); }
  .pdp-media { position: static; }
  .pdp-shot img { max-height: none; }
  .pdp-info { padding-top: 2rem; }
  .pdp-cta { grid-template-columns: 1fr; }

  .collection-card { grid-template-columns: 1fr; }

  .info-hero { grid-template-columns: 1fr; justify-items: center; min-height: auto; padding-top: calc(var(--bar-h) + 1rem); }
  .info-quote { position: static; transform: none; order: 0; font-size: 1.5rem; margin: 1rem 0 .4rem; }
  .info-name.left, .info-name.right { justify-self: center; margin: 0; font-size: 3.4rem; }
  .info-name.left { order: 1; }
  .portrait { order: 2; width: 100%; margin-top: -1rem; }
  .info-name.right { order: 3; margin-top: -1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
