/* Advisor Connect brochure - dark editorial. One accent (AdvisorLab gold),
   a display serif, an ivory page-in-the-dark. Transforms only in motion. */

:root {
  --ink: #0a0a0c;
  --ink-2: #131317;
  --ink-3: #1c1c22;
  --line: rgba(242, 236, 223, 0.12);
  --paper: #f2ecdf;
  --paper-2: #cfc8b8;
  --muted: #8f8a7e;
  --gold: #c9a227;
  --gold-2: #e5c65a;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --rail-w: 56px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.kicker {
  font: 500 12px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 18px;
}
.lede { font-size: 19px; line-height: 1.6; color: var(--paper-2); max-width: 62ch; }
.fine { font-size: 12.5px; color: var(--muted); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; margin: 0; }

#grain {
  position: fixed; inset: -50%; pointer-events: none; z-index: 60; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@keyframes grain { 0%{transform:translate(0,0)} 50%{transform:translate(-3%,2%)} 100%{transform:translate(2%,-3%)} }
@media (prefers-reduced-motion: reduce) { #grain { animation: none; } }

/* ---------------------------------------------------------------- header */
#top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
}
.wordmark { font-family: var(--serif); font-size: 24px; letter-spacing: .01em; }
.wordmark .wm-b { color: var(--gold); font-style: italic; }
.wordmark em { font: 400 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-left: 12px; font-style: normal; }
#topnav { display: flex; gap: 22px; font-size: 13px; letter-spacing: .06em; }
#topnav a { opacity: .75; } #topnav a:hover { opacity: 1; }
#topnav .pill { border: 1px solid currentColor; border-radius: 999px; padding: 7px 14px; opacity: 1; }
@media (max-width: 720px) { #topnav a:not(.pill) { display: none; } .wordmark em { display: none; } }

/* ------------------------------------------------------------------ hero */
#hero {
  position: relative; min-height: 100vh; display: grid; place-items: center;
  padding: 120px 28px 90px; overflow: hidden; isolation: isolate;
}
#mosaic {
  position: absolute; inset: -10% -10% -10% -10%; z-index: -1; opacity: .16;
  display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px;
  transform: rotate(-6deg) scale(1.12);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
  animation: drift 90s linear infinite alternate;
}
@keyframes drift { from { transform: rotate(-6deg) scale(1.12) translateY(-2%); } to { transform: rotate(-6deg) scale(1.12) translateY(2%); } }
@media (prefers-reduced-motion: reduce) { #mosaic { animation: none; } }
#mosaic img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: saturate(.7); }
.hero-inner { text-align: center; max-width: 900px; }
#hero-line { font-size: clamp(44px, 8vw, 104px); line-height: .98; font-weight: 400; }
#hero-line i { font-style: italic; color: var(--gold-2); }
#hero .lede { margin: 26px auto 0; }
#stats { list-style: none; margin: 56px 0 0; padding: 0; display: flex; justify-content: center; gap: clamp(22px, 5vw, 64px); flex-wrap: wrap; }
#stats li { text-align: center; }
#stats b { display: block; font: 500 clamp(34px, 5vw, 56px)/1 var(--serif); color: var(--paper); font-variant-numeric: tabular-nums; }
#stats span { display: block; margin-top: 8px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: grid; justify-items: center; gap: 12px; }
.scroll-hint i { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: hint 2.2s ease-in-out infinite; }
@keyframes hint { 0%,100%{transform:scaleY(.4);transform-origin:top;opacity:.4} 50%{transform:scaleY(1);opacity:1} }

/* ---------------------------------------------------------------- motion */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .9s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.kicker { position: relative; }
.kicker.reveal::before, #hero-kicker::before { content: ""; display: inline-block; vertical-align: middle; width: 0; height: 1px; background: var(--gold); margin-right: 0; transition: width .8s cubic-bezier(.2,.7,.2,1) calc(var(--d, 0ms) + 200ms), margin .8s cubic-bezier(.2,.7,.2,1) calc(var(--d, 0ms) + 200ms); }
.kicker.reveal.in::before, body.ready #hero-kicker::before { width: 28px; margin-right: 12px; }
#hero-line .w { display: inline-block; opacity: 0; transform: translateY(.45em) rotate(1.5deg); transition: opacity .9s cubic-bezier(.2,.7,.2,1) var(--d), transform .9s cubic-bezier(.2,.7,.2,1) var(--d); }
body.ready #hero-line .w { opacity: 1; transform: none; }
#hero .lede, #stats, .scroll-hint { opacity: 0; transform: translateY(18px); transition: opacity 1s ease 700ms, transform 1s ease 700ms; }
#stats { transition-delay: 950ms; } .scroll-hint { transition-delay: 1400ms; }
body.ready #hero .lede, body.ready #stats, body.ready .scroll-hint { opacity: 1; transform: none; }
#aurora { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
#aurora::before, #aurora::after { content: ""; position: absolute; width: 60vw; height: 60vw; border-radius: 50%; filter: blur(80px); opacity: .18; will-change: transform; }
#aurora::before { background: radial-gradient(circle, #c9a227, transparent 60%); left: -10vw; top: -10vw; animation: aur1 22s ease-in-out infinite alternate; }
#aurora::after { background: radial-gradient(circle, #3b4a7a, transparent 60%); right: -15vw; bottom: -20vw; animation: aur2 26s ease-in-out infinite alternate; }
@keyframes aur1 { from { transform: translate(0,0) scale(1); } to { transform: translate(18vw, 12vh) scale(1.15); } }
@keyframes aur2 { from { transform: translate(0,0) scale(1.1); } to { transform: translate(-16vw, -14vh) scale(.95); } }
.stage.rest .info > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.stage.rest .info > :nth-child(2) { animation-delay: 60ms; } .stage.rest .info > :nth-child(3) { animation-delay: 120ms; }
.stage.rest .info > :nth-child(4) { animation-delay: 180ms; } .stage.rest .info > :nth-child(5) { animation-delay: 240ms; }
.stage.rest .info > :nth-child(6) { animation-delay: 300ms; } .stage.rest .info > :nth-child(7) { animation-delay: 360ms; } .stage.rest .info > :nth-child(8) { animation-delay: 420ms; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.stage.rest .pic { transition: transform .35s ease, box-shadow .35s ease; }
.stage.rest .pic img, .stage.rest .pic video { animation: breathe 22s ease-in-out infinite alternate; }   /* a still hero reads as a thumbnail; a breathing one reads as footage */
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.035); } }
.tilting { transition: transform .12s ease-out !important; }
.yn-card { transition: transform .35s ease; transform-style: preserve-3d; }
@media (prefers-reduced-motion: reduce) {
  .reveal, #hero-line .w, #hero .lede, #stats, .scroll-hint { opacity: 1; transform: none; transition: none; }
  .stage.rest .info > * { animation: none; } #aurora::before, #aurora::after { animation: none; } .stage.rest .pic img, .stage.rest .pic video, .gal-frame .poster, .gal-frame.near .mat::before { animation: none; }
}

/* ----------------------------------------------------------------- chain */
#chain { position: relative; background: var(--ink); }   /* one screen tall; the deck plays over it */
#stages { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
#stages.off { display: none; }
.stage {
  position: absolute; inset: 0; visibility: hidden; pointer-events: none;   /* hidden by visibility, not display: a sheet toggling display:none re-created its layer and showed one blank frame */
  background: var(--ink);
}
.stage.live { visibility: visible; will-change: opacity; contain: layout paint; }
.stage.live .bg { will-change: transform; }
.stage.live .zoom, .stage.live .info, .stage.live .strip { backface-visibility: hidden; }
.stage .bg {
  position: absolute; inset: -12%; opacity: .13; z-index: 0;
  display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px;
  transform: rotate(-6deg) scale(1.12);
  mask-image: radial-gradient(ellipse at 62% 50%, #000 15%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 62% 50%, #000 15%, transparent 70%);
  animation: drift 80s linear infinite alternate; animation-play-state: paused;
}
.stage.live .bg { animation-play-state: running; }
.stage .bg img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.stage .bg { filter: saturate(.6); }   /* one filter on the field, not forty on its cards */
.stage[data-kind="video"] .bg img { aspect-ratio: 9 / 16; }
.stage .zoom, .stage .info, .stage .strip { z-index: 1; }
@media (prefers-reduced-motion: reduce) { .stage .bg { animation: none; } }
.stage.rest { pointer-events: auto; }
.stage .zoom {
  position: absolute; left: 50%; top: 50%; transform-origin: 50% 50%;
  will-change: transform, opacity;
}
.stage .pic {
  position: relative; border-radius: 6px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 0 1px var(--line);
  background: var(--ink-2); cursor: zoom-in;
}
.stage .pic img, .stage .pic video { width: 100%; height: 100%; object-fit: cover; }
.stage .pic .play { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; background: rgba(10,10,12,.6); border: 1px solid var(--line); display: grid; place-items: center; }
.stage .pic .play::after { content: ""; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent var(--paper); margin-left: 3px; }
.stage .info {
  position: absolute; left: clamp(24px, 6vw, 96px); top: 50%; transform: translateY(-50%);
  width: min(520px, 42vw); will-change: transform, opacity;
}
.stage .num { font: 400 13px var(--sans); letter-spacing: .18em; color: var(--muted); margin: 0 0 14px; }
.stage .num b { color: var(--gold); font-weight: 500; }
.stage h2 { font-size: clamp(34px, 3.8vw, 56px); line-height: 1.02; }
.stage .headline { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.9vw, 27px); color: var(--gold-2); margin: 18px 0 0; line-height: 1.25; }
.stage .blurb { margin: 22px 0 0; color: var(--paper-2); font-size: 15.5px; max-width: 52ch; }
.stage .who { margin: 14px 0 0; color: var(--muted); font-size: 13.5px; }
.stage .meta { display: flex; gap: 18px; margin: 26px 0 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); flex-wrap: wrap; }
.stage .meta b { color: var(--paper); font-weight: 500; }
.stage .cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 11px 18px; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold-2); font-size: 13px; letter-spacing: .08em; }
.stage .cta:hover { background: var(--gold); color: var(--ink); }
.stage .lines { margin: 26px 0 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.stage .lines li { padding: 6px 0 6px 16px; font-family: var(--serif); font-size: 17px; line-height: 1.3; color: var(--paper-2); }
.stage .lines li::before { content: "\201C"; color: var(--gold); margin-right: 2px; }
.stage .strip {
  position: absolute; right: clamp(24px, 6vw, 96px); bottom: 34px; display: flex; gap: 8px;
  will-change: transform, opacity; transition: transform .35s, opacity .35s;
}
.stage .strip button { width: 64px; height: 64px; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); opacity: .85; transition: opacity .2s, transform .2s; }
.stage .strip button:hover { opacity: 1; transform: translateY(-3px); border-color: var(--gold); }
.stage .strip img { width: 100%; height: 100%; object-fit: cover; }
.stage .strip button.more { display: grid; place-items: center; font: 500 14px var(--sans); color: var(--gold-2); background: rgba(201,162,39,.08); letter-spacing: .04em; }
.stage[data-kind="video"] .strip button { width: 44px; height: 78px; }

/* category gate */
.stage.gate .info { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(760px, 86vw); text-align: center; }
.stage.gate h2 { font-size: clamp(56px, 10vw, 150px); line-height: .95; font-weight: 400; }
.stage.gate .gate-n { font-family: var(--serif); font-style: italic; font-size: clamp(60px, 14vw, 220px); color: transparent; -webkit-text-stroke: 1px var(--gold); opacity: .45; line-height: 1; margin: 0; }
.stage.gate .blurb { margin: 22px auto 0; font-size: 18px; }
.stage.gate .meta { justify-content: center; }

@media (max-width: 880px) {
  .stage .info { left: 20px; right: 20px; top: auto; bottom: 88px; transform: none; width: auto; }
  .stage h2 { font-size: 30px; } .stage .headline { font-size: 18px; }
  .stage .blurb, .stage .who, .stage .lines { display: none; }
  .stage .meta { margin-top: 12px; } .stage .cta { margin-top: 14px; padding: 9px 14px; }
  .stage .strip { right: 20px; left: 20px; bottom: 20px; overflow-x: auto; }
  .stage .strip button { flex: 0 0 auto; width: 48px; height: 48px; }
  .stage .zoom { top: 30%; }
  .stage .info { bottom: 96px; }
}

/* ------------------------------------------------------------------ rail */
#rail {
  position: fixed; right: 0; top: 0; bottom: 0; width: var(--rail-w); z-index: 40;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  opacity: 0; transition: opacity .35s; pointer-events: none;
}
#rail.on { opacity: 1; pointer-events: auto; }
.rail-filter { display: grid; gap: 4px; }
.rail-filter button { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 4px 0; writing-mode: vertical-rl; transform: rotate(180deg); }
.rail-filter button.on { color: var(--gold); }
#rail-dots { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
#rail-dots li { width: 6px; height: 6px; border-radius: 50%; background: var(--line); cursor: pointer; transition: transform .2s, background .2s; }
#rail-dots li.cat { width: 10px; height: 1px; border-radius: 0; background: var(--gold); opacity: .6; margin: 4px 0; cursor: default; }
#rail-dots li.on { background: var(--gold); transform: scale(1.7); }
#rail-dots li.hide { display: none; }
#rail-dots li:hover { background: var(--paper); }
.rail-tip { position: absolute; right: calc(var(--rail-w) + 4px); top: 50%; transform: translateY(-50%); font-size: 12px; white-space: nowrap; background: var(--ink-3); border: 1px solid var(--line); padding: 6px 10px; border-radius: 4px; opacity: 0; pointer-events: none; transition: opacity .15s; }
.rail-tip.on { opacity: 1; }
@media (max-width: 720px) { #rail { display: none; } }

/* ----------------------------------------------------------------- bands */
.band { position: relative; padding: clamp(80px, 12vh, 160px) 28px; background: var(--ink); }
.band.alt { background: var(--ink-2); }
.band-inner { max-width: 1100px; margin: 0 auto; }
.band-inner.wide { max-width: 1320px; }

/* the library: every bundle at once */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; margin-top: 44px; }
.gallery.reels { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.tile { text-align: left; display: grid; gap: 10px; align-content: start; border-radius: 6px; padding: 0; }
.tile .cover { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--ink-3); box-shadow: 0 0 0 1px var(--line); transition: transform .35s ease, box-shadow .35s ease; }
.gallery.reels .tile .cover { aspect-ratio: 9 / 16; }
.tile .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover .cover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 0 1px var(--gold); }
.tile:hover .cover img { transform: scale(1.04); }
.tile .cover .n { position: absolute; top: 10px; left: 10px; font: 500 11px var(--sans); letter-spacing: .14em; color: var(--gold-2); background: rgba(10,10,12,.7); padding: 4px 7px; border-radius: 3px; }
.tile .cover .play { position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(10,10,12,.65); border: 1px solid var(--line); display: grid; place-items: center; }
.tile .cover .play::after { content: ""; border-style: solid; border-width: 5px 0 5px 9px; border-color: transparent transparent transparent var(--paper); margin-left: 2px; }
.tile h3 { font-size: 20px; line-height: 1.15; }
.tile .sub { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tile .sub b { color: var(--paper-2); font-weight: 500; }

/* questions */
.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 22px 0; font: 500 clamp(20px, 2vw, 26px)/1.25 var(--serif); color: var(--paper); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 28px/1 var(--serif); color: var(--gold); transition: transform .25s; flex: 0 0 auto; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: -6px 0 24px; color: var(--paper-2); font-size: 15.5px; max-width: 70ch; }
.band h2 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.05; max-width: 20ch; }
.band .lede { margin-top: 22px; }

#yn-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 40px 0 34px; }
#yn-form label { display: grid; gap: 8px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
#yn-form input { background: var(--ink-3); border: 1px solid var(--line); border-radius: 6px; color: var(--paper); font: 16px var(--sans); padding: 12px 14px; }
#yn-form input:focus { outline: 1px solid var(--gold); }
#yn-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 28px; }
.yn-card { position: relative; border-radius: 6px; overflow: hidden; background: var(--ink-3); box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px var(--line); }
.yn-card canvas { width: 100%; height: auto; display: block; }
.yn-card figcaption { padding: 12px 14px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line); }
#yn-fine { margin-top: 18px; }

#how-steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; counter-reset: step; }
#how-steps li { border-top: 1px solid var(--line); padding-top: 22px; }
#how-steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); font: italic 500 44px/1 var(--serif); color: var(--gold); display: block; margin-bottom: 14px; }
#how-steps h3 { font-size: 26px; margin-bottom: 10px; }
#how-steps p { margin: 0; color: var(--paper-2); font-size: 15px; }
.compliance { margin-top: 72px; padding: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--ink); max-width: 820px; }
.compliance p:last-child { margin: 0; color: var(--paper-2); font-size: 15.5px; }

.contact-card { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; padding: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--ink-2); }
.contact-card .who { display: grid; gap: 4px; }
.contact-card strong { font: 500 30px/1.1 var(--serif); }
.contact-card .who span { color: var(--muted); font-size: 14px; }
.ways { display: flex; gap: 12px; flex-wrap: wrap; }
.ways a { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold-2); font-size: 13.5px; letter-spacing: .06em; }
.ways a.primary { background: var(--gold); color: var(--ink); }
.ways a:hover { background: var(--gold-2); color: var(--ink); }

footer { padding: 40px 28px 60px; color: var(--muted); font-size: 12.5px; text-align: center; border-top: 1px solid var(--line); }
footer p { margin: 4px 0; }

/* -------------------------------------------------------------- lightbox
   The samples hang in a GALLERY: a corridor in real 3D, the pictures on its
   walls, and the viewer walks down it. One scalar - how far along the walk -
   sets the camera; the room turns to face each picture as the walker
   arrives at it. */
#lightbox { position: fixed; inset: 0; z-index: 80; background: #08080a; overflow: hidden; }
#lightbox[hidden] { display: none; }
.gal-room { position: absolute; inset: 0; perspective: 1100px; perspective-origin: 50% 46%; overflow: hidden;
  background: linear-gradient(180deg, #0a0a0c 0%, #0d0d10 30%, #08080a 46%, #101014 62%, #141418 100%); }   /* the lid and the ground, in 2D: a real floor and ceiling plane broke the compositor's sorting where they met the walls */
.gal-world { position: absolute; left: 50%; top: 46%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.gal-world > * { position: absolute; transform-style: preserve-3d; }
.gal-wall { top: 0; left: 0; transform-origin: 0 0; backface-visibility: hidden; background-color: #121216; }
.gal-wall::after { content: ""; position: absolute; left: 0; right: 0; top: 68%; height: 1px; background: rgba(201,162,39,.16); pointer-events: none; }   /* the dado line */
.gal-floor, .gal-ceil { top: 0; left: 0; transform-origin: 0 0; backface-visibility: hidden; background-color: #101014; }
.gal-floor::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.35) 0, rgba(201,162,39,.05) 50%, rgba(0,0,0,.35) 100%); pointer-events: none; }   /* the ground reads a shade darker than the walls */
.gal-ceil::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.3); pointer-events: none; }
.gal-end { display: grid; place-items: center; text-align: center; background: linear-gradient(180deg, #16161b, #0e0e11); border-left: 1px solid rgba(201,162,39,.2); border-right: 1px solid rgba(201,162,39,.2); }
.gal-end p { font: 400 12px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.gal-end h3 { font-size: 72px; line-height: 1; color: var(--paper); max-width: 80%; }
.gal-end small { display: block; margin-top: 18px; font: 400 13px var(--sans); letter-spacing: .12em; color: var(--gold-2); }
.gal-end small b { font-weight: 500; color: var(--paper); font-variant-numeric: tabular-nums; }
.gal-end h3.typing::after { content: ""; display: inline-block; width: 2px; height: .85em; margin-left: 4px; background: var(--gold); vertical-align: -0.05em; animation: caret .8s steps(2) infinite; }
@keyframes caret { to { opacity: 0; } }
.gal-frame { transform-style: flat; backface-visibility: visible; cursor: pointer; }   /* FLAT: one plane (its coplanar children were sorted against the wall one by one). NO will-change and backfaces VISIBLE: with either, the GPU compositor left the picture the walker stood before unpainted at 4K - measured in Savio's own Chrome. The walker never sees a back: a passed picture is hidden. */
.gal-frame .light { position: absolute; left: 50%; bottom: 100%; width: 100%; height: 34%; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse at 50% 100%, rgba(255,241,200,.14), transparent 65%); opacity: 0; transition: opacity .6s; }
.gal-frame .pool { position: absolute; left: 50%; top: 100%; width: 100%; height: 26%; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,241,200,.08), transparent 65%); opacity: 0; transition: opacity .6s; }
.gal-frame.near .light, .gal-frame.near .pool { opacity: 1; transition-delay: .2s; }   /* the spotlight blooms just after the walker settles */
/* ONE hand: every arrival in the gallery moves on the same curve */
:root { --gal-ease: cubic-bezier(.2,.7,.2,1); }
.gal-frame .mat { position: absolute; inset: 0; background: #ebe5d6; padding: 18px; box-shadow: 0 0 0 2px #2a2419, 0 0 0 3px rgba(201,162,39,.55); overflow: hidden;
  transition: transform .6s var(--gal-ease); }
.gal-frame.near .mat { transform: scale(1.015); }   /* the presentation beat: the picture lifts a little as the walker stops before it */
.gal-frame .mat::before { content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%; z-index: 2; pointer-events: none;   /* a sheen of light crosses the print once on arrival */
  background: linear-gradient(105deg, transparent 0, rgba(255,250,235,0) 30%, rgba(255,250,235,.22) 50%, rgba(255,250,235,0) 70%, transparent 100%); transform: translateX(0) skewX(-8deg); opacity: 0; }
.gal-frame.near .mat::before { animation: sheen 1.1s var(--gal-ease) .35s 1 both; }
@keyframes sheen { 0% { transform: translateX(0) skewX(-8deg); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateX(420%) skewX(-8deg); opacity: 0; } }
/* a reel wakes as the walker approaches: its poster pushes in slowly, and the video fades in over it when it plays */
.gal-frame .poster { position: absolute; left: 18px; top: 18px; right: 18px; bottom: 18px; width: auto; height: auto; object-fit: cover; z-index: 1; transition: opacity .8s var(--gal-ease); }
.gal-frame.coming .poster, .gal-frame.near .poster { animation: kenburns 5s ease-out both; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }
.gal-frame.playing .poster { opacity: 0; }
.gal-frame[data-t="vid"].near .mat { box-shadow: 0 0 0 2px #2a2419, 0 0 0 3px rgba(201,162,39,.55), 0 0 34px rgba(255,241,200,.28); }   /* a screen turning on */
.gal-frame .mat::after { content: ""; position: absolute; inset: -3px; box-shadow: 0 0 0 3px var(--gold); opacity: 0; transition: opacity .5s; pointer-events: none; }   /* the ring brightens without re-painting the shadow mid-walk */
.gal-frame.near .mat::after { opacity: 1; }
.gal-frame .mat img, .gal-frame .mat video { display: block; width: 100%; height: 100%; object-fit: cover; background: #111; }
.gal-frame .plaque { position: absolute; left: 50%; top: calc(100% + 26px); transform: translate(-50%, -14px); opacity: 0; white-space: nowrap;
  transition: transform .6s var(--gal-ease) .25s, opacity .5s var(--gal-ease) .25s; }   /* the plaque slides up from behind the frame once the walker has arrived */
.gal-frame.near .plaque { transform: translate(-50%, 0); opacity: 1; }
  font: 400 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #e8d9a0; padding: 6px 14px;
  background: linear-gradient(180deg, #3a3020, #221c12); border: 1px solid rgba(201,162,39,.45); border-radius: 2px; }
.gal-frame .plaque b { font-weight: 500; color: var(--gold-2); margin-right: 8px; }
.gal-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(4,4,6,.75) 100%); }
#lightbox.open .gal-room { animation: galin 1.1s ease both; }
@keyframes galin { from { opacity: 0; } to { opacity: 1; } }
.lb-cap { position: absolute; left: 24px; top: 26px; display: flex; flex-direction: column; gap: 4px; color: var(--paper-2); font-size: 13px; z-index: 2; pointer-events: none; }
.lb-cap strong { font: 500 24px var(--serif); color: var(--paper); }
.lb-cap #lb-file { color: var(--muted); font-size: 12px; }
.gal-hint { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); margin: 0; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); opacity: .85; pointer-events: none; z-index: 2; white-space: nowrap; }
.lb-thumbs { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; gap: 6px; justify-content: center; padding: 6px 20px 0; overflow-x: auto; z-index: 2; }
.lb-thumbs button { width: 54px; height: 54px; border-radius: 3px; overflow: hidden; opacity: .5; border: 1px solid transparent; flex: 0 0 auto; transition: opacity .3s; }
.lb-thumbs button.on { opacity: 1; border-color: var(--gold); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lb-close { position: absolute; top: 20px; right: 18px; font-size: 34px; line-height: 1; color: var(--paper); opacity: .7; width: 44px; height: 44px; z-index: 3; }
.lb-pause { position: absolute; top: 22px; right: 70px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; opacity: .8; z-index: 3; }
.lb-pause span { display: none; }
.ic-pause { width: 10px; height: 12px; border-left: 3px solid var(--paper); border-right: 3px solid var(--paper); }
.ic-play { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--paper); margin-left: 3px; }
#lightbox:not(.paused) .ic-pause, #lightbox.paused .ic-play { display: block; }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); font-size: 54px; font-family: var(--serif); color: var(--paper); opacity: .55; width: 64px; height: 90px; z-index: 3; }
.lb-arrow:hover, .lb-close:hover, .lb-pause:hover { opacity: 1; }
.lb-arrow.prev { left: 8px; } .lb-arrow.next { right: 8px; }
@media (max-width: 900px) { .lb-arrow { display: none; } .gal-end h3 { font-size: 48px; } .lb-cap strong { font-size: 19px; } .gal-hint { bottom: 88px; } }
@media (prefers-reduced-motion: reduce) { #lightbox.open .gal-room { animation: none; } }

/* -------------------------------------------------------------- order */
.order-form { margin-top: 28px; max-width: 880px; }
.o-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 18px; }
.o-fields label { display: grid; gap: 6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.o-fields label.wide { grid-column: 1 / -1; }
.o-fields input { font: 400 15.5px var(--sans); color: var(--paper); background: var(--ink-3); border: 1px solid var(--line); border-radius: 6px; padding: 11px 13px; outline: none; transition: border-color .2s; }
.o-fields input:focus { border-color: var(--gold); }
.o-bundles-label { margin: 26px 0 10px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.o-bundles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 18px; }
.o-bundles h4 { grid-column: 1 / -1; margin: 12px 0 2px; font: 400 13px var(--serif); font-style: italic; color: var(--gold-2); letter-spacing: .04em; }
.o-bundles label { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--paper-2); padding: 5px 0; cursor: pointer; }
.o-bundles input { accent-color: var(--gold); width: 16px; height: 16px; }
.o-bundles label.on { color: var(--paper); }
.o-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 26px; }
.o-submit { padding: 13px 22px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: 13.5px; letter-spacing: .06em; border: 1px solid var(--gold); }
.o-submit:hover { background: var(--gold-2); } .o-submit[disabled] { opacity: .6; }
.o-wa { padding: 12px 20px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold-2); font-size: 13.5px; letter-spacing: .06em; }
.o-wa:hover { background: var(--gold); color: var(--ink); }
.o-status { margin-top: 16px; font-size: 14.5px; color: var(--paper); } .o-status.bad { color: #e0a080; }
.stage .cta.ghost { background: transparent; margin-left: 10px; }
.stage .share { margin-left: 10px; margin-top: 28px; display: inline-flex; align-items: center; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 12.5px; letter-spacing: .06em; }
.stage .share:hover { border-color: var(--gold); color: var(--gold-2); }
.toast { position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 20px); background: var(--ink-3); border: 1px solid var(--gold); color: var(--paper); padding: 10px 18px; border-radius: 999px; font-size: 13px; opacity: 0; transition: opacity .3s, transform .3s; z-index: 120; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.gal-end .end-order { display: inline-block; margin-top: 26px; padding: 12px 22px; border-radius: 999px; background: var(--gold); color: var(--ink); font: 500 13px var(--sans); letter-spacing: .08em; cursor: pointer; }
@media (max-width: 720px) { .o-fields { grid-template-columns: 1fr; } }
