:root {
  --bg: #0a0705;
  --paper: #f2eadf;
  --muted: rgba(242, 234, 223, .56);
  --line: rgba(242, 234, 223, .16);
  --amber: #f3a556;
  --orange: #d8702d;
  --reveal: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: Inter, Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; }

.site { min-height: 100vh; overflow: clip; background: #0a0705; }

.nav {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 25px 4.2vw;
  mix-blend-mode: difference;
  color: white;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.brand {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .42em;
  font-size: 15px;
}
.nav-note {
  font-size: 9px;
  letter-spacing: .24em;
  opacity: .55;
}
.nav-link {
  justify-self: end;
  color: inherit;
  text-decoration: none;
  font-size: 9px;
  letter-spacing: .24em;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 52%, rgba(87,52,27,.11), transparent 28%),
    linear-gradient(180deg, #0c0907 0%, #070504 100%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 40;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.44), transparent 14%, transparent 86%, rgba(0,0,0,.44)),
    radial-gradient(circle at center, transparent 34%, rgba(0,0,0,.32) 82%);
  opacity: calc(1 - (var(--reveal) * .55));
  transition: opacity 1.2s ease;
}

.hero-copy {
  position: absolute;
  z-index: 25;
  top: 17vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, 86vw);
  text-align: center;
  pointer-events: none;
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1);
}
.eyebrow {
  margin: 0 0 16px;
  font-size: 9px;
  letter-spacing: .27em;
  color: rgba(242,234,223,.42);
}
.hero-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 7vw, 104px);
  line-height: .92;
  font-weight: 400;
  letter-spacing: -.045em;
}
.hero-sub {
  margin: 18px 0 0;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: .13em;
  color: rgba(242,234,223,.45);
}

.lamp-switch {
  position: relative;
  z-index: 30;
  width: min(400px, 31vw);
  min-width: 250px;
  margin-top: 10vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  outline: none;
}
.lamp-frame {
  position: relative;
  display: block;
  border-radius: 38px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.55);
  transform: translateZ(0) scale(.985);
  transition: transform .8s cubic-bezier(.2,.8,.2,1), box-shadow 1s ease;
}
.hero-lamp {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: saturate(.9) contrast(1.02) brightness(.92);
  transform: scale(1.03);
  transition: filter 1.2s ease, transform 1.5s cubic-bezier(.2,.8,.2,1);
}
.lamp-darkener {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 49%, rgba(22,16,12,.3), rgba(4,3,2,.9) 65%),
    rgba(0,0,0,.56);
  opacity: calc(.88 - (var(--reveal) * .82));
  transition: opacity 1.15s cubic-bezier(.2,.8,.2,1);
}
.lamp-halo {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 48%;
  width: 180%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(calc(.7 + (var(--reveal) * .3)));
  border-radius: 50%;
  opacity: calc(var(--reveal) * .95);
  background: radial-gradient(circle, rgba(255,186,103,.35), rgba(234,117,41,.14) 36%, transparent 68%);
  filter: blur(26px);
  transition: opacity 1s ease, transform 1.4s cubic-bezier(.2,.8,.2,1);
}
.switch-copy {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  font-size: 8px;
  letter-spacing: .22em;
  color: rgba(242,234,223,.52);
}
.switch-dot {
  width: 6px;
  height: 6px;
  border: 1px solid rgba(242,234,223,.55);
  border-radius: 50%;
  background: rgba(242,234,223,.04);
  transition: background .5s ease, box-shadow .5s ease;
}
.lamp-switch:hover .lamp-frame { transform: scale(1); }
.lamp-switch:focus-visible .lamp-frame { outline: 1px solid rgba(242,234,223,.65); outline-offset: 7px; }

.site.lights-on .lamp-frame {
  transform: scale(1);
  box-shadow: 0 45px 140px rgba(238,118,41,.19);
}
.site.lights-on .hero-lamp {
  filter: saturate(1.08) contrast(1.02) brightness(1.08);
  transform: scale(1);
}
.site.lights-on .switch-dot {
  background: #ffd4a0;
  box-shadow: 0 0 16px rgba(255,173,89,.9);
}
.site.lights-on .hero-copy {
  opacity: .24;
  transform: translateX(-50%) translateY(-10px);
}

.ambient {
  position: absolute;
  z-index: 1;
  width: 52vw;
  height: 80vh;
  top: 20vh;
  opacity: calc(var(--reveal) * .22);
  filter: blur(60px);
  transition: opacity 1.5s ease;
  pointer-events: none;
}
.ambient-left { left: -26vw; background: radial-gradient(circle at center, rgba(203,115,54,.45), transparent 62%); }
.ambient-right { right: -26vw; background: radial-gradient(circle at center, rgba(203,115,54,.45), transparent 62%); }

.room-wash {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 58%;
  width: 90vw;
  height: 70vh;
  transform: translate(-50%, -50%) scale(calc(.72 + (var(--reveal) * .28)));
  border-radius: 50%;
  opacity: calc(var(--reveal) * .72);
  background: radial-gradient(ellipse at center, rgba(211,108,42,.14), rgba(125,65,27,.04) 44%, transparent 72%);
  filter: blur(20px);
  transition: opacity 1.4s ease, transform 1.5s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}
.floor-glow {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: -9vh;
  width: 75vw;
  height: 30vh;
  transform: translateX(-50%);
  border-radius: 50%;
  opacity: calc(var(--reveal) * .35);
  background: radial-gradient(ellipse, rgba(218,117,47,.33), transparent 68%);
  filter: blur(35px);
  transition: opacity 1.5s ease;
  pointer-events: none;
}

.side-gallery {
  position: absolute;
  z-index: 15;
  top: 50%;
  transform: translateY(-45%);
  display: grid;
  grid-template-columns: repeat(2, minmax(80px, 145px));
  gap: 14px;
  width: min(27vw, 330px);
  opacity: var(--reveal);
  pointer-events: none;
  transition: opacity 1.1s ease 120ms, transform 1.25s cubic-bezier(.16,.84,.24,1);
}
.side-gallery-left {
  left: 4vw;
  transform: translateY(-45%) translateX(calc((1 - var(--reveal)) * -70px));
}
.side-gallery-right {
  right: 4vw;
  transform: translateY(-45%) translateX(calc((1 - var(--reveal)) * 70px));
}
.site.lights-on .side-gallery { pointer-events: auto; }
.side-card {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: .74;
  background: #15100d;
  cursor: pointer;
  opacity: .88;
  transform: translateZ(0);
  transition: opacity .25s ease, transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}
.side-card:nth-child(even) { margin-top: 32px; }
.side-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) brightness(.77); transition: filter .35s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.side-card::after {
  content: attr(data-label);
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.72);
  font-size: 7px;
  letter-spacing: .13em;
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}
.side-card:hover { opacity: 1; transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.side-card:hover img { filter: saturate(1) brightness(.94); transform: scale(1.035); }
.side-card:hover::after { opacity: 1; transform: translateY(0); }

.scroll-cue {
  position: absolute;
  z-index: 25;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  font-size: 8px;
  letter-spacing: .23em;
  color: rgba(242,234,223,.28);
  opacity: calc(var(--reveal) * 1);
  transition: opacity 1s ease .5s;
}

.collection {
  position: relative;
  z-index: 5;
  padding: 120px 5vw 130px;
  background: #efe7dc;
  color: #17130f;
}
.collection-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: end;
  margin-bottom: 70px;
}
.collection-head p {
  margin: 0 0 8px;
  font-size: 9px;
  letter-spacing: .24em;
  color: rgba(23,19,15,.52);
}
.collection-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(48px, 7vw, 104px);
  line-height: .9;
  letter-spacing: -.05em;
}
.collection-head em { font-weight: 400; color: #a95d38; }
.collection-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr .75fr;
  gap: 18px;
}
.collection-card { margin: 0; }
.collection-card img {
  width: 100%;
  height: min(62vh, 620px);
  object-fit: cover;
  border-radius: 3px;
  background: #ddd;
}
.collection-card:not(.collection-card-wide) img { height: min(52vh, 520px); }
.collection-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(23,19,15,.15);
  margin-top: 10px;
  font-size: 9px;
  letter-spacing: .15em;
  color: rgba(23,19,15,.62);
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  padding: 28px 4.5vw 34px;
  background: #18120e;
  color: rgba(242,234,223,.5);
  font-size: 8px;
  letter-spacing: .2em;
}
.footer span:last-child { justify-self: end; }

.viewer {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 6vh 7vw;
  background: rgba(6,4,3,.91);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s;
}
.viewer.open { opacity: 1; visibility: visible; }
.viewer img {
  max-width: min(78vw, 900px);
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 35px 100px rgba(0,0,0,.4);
}
.viewer-close {
  position: absolute;
  top: 26px;
  right: 30px;
  border: 0;
  background: transparent;
  color: white;
  font-size: 8px;
  letter-spacing: .22em;
  cursor: pointer;
}
.viewer-caption {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.65);
  font-size: 8px;
  letter-spacing: .2em;
}

@media (max-width: 1000px) {
  .hero-copy { top: 15vh; }
  .lamp-switch { width: min(360px, 42vw); }
  .side-gallery { grid-template-columns: 1fr; width: 120px; gap: 10px; }
  .side-card:nth-child(even) { margin-top: 0; }
  .side-card:nth-child(n+4) { display: none; }
  .collection-head { grid-template-columns: 1fr; gap: 26px; }
  .collection-grid { grid-template-columns: 1.2fr .8fr; }
  .collection-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav { padding: max(20px, env(safe-area-inset-top)) 20px 18px; grid-template-columns: 1fr 1fr; }
  .nav-note { display: none; }
  .hero { align-items: center; }
  .hero-copy { top: 13vh; width: 88vw; }
  .hero-copy h1 { font-size: clamp(44px, 14vw, 72px); }
  .hero-sub { font-size: 9px; max-width: 290px; margin-left: auto; margin-right: auto; }
  .lamp-switch { width: min(66vw, 330px); min-width: 0; margin-top: 7vh; }
  .lamp-frame { border-radius: 26px; }
  .switch-copy { margin-top: 14px; }

  .side-gallery {
    top: auto;
    bottom: 7.5vh;
    width: auto;
    display: flex;
    gap: 8px;
    transform: none !important;
  }
  .side-gallery-left { left: 14px; right: 50%; justify-content: flex-end; padding-right: 4px; }
  .side-gallery-right { left: 50%; right: 14px; justify-content: flex-start; padding-left: 4px; }
  .side-card { width: 58px; aspect-ratio: .72; border-radius: 10px; }
  .side-card:nth-child(n+3) { display: none; }
  .side-card::after { display: none; }
  .scroll-cue { display: none; }

  .collection { padding: 86px 20px 90px; }
  .collection-head { margin-bottom: 42px; }
  .collection-grid { grid-template-columns: 1fr; }
  .collection-card:last-child { grid-column: auto; }
  .collection-card img,
  .collection-card:not(.collection-card-wide) img { height: 64vh; min-height: 430px; }
  .footer { grid-template-columns: 1fr auto; padding-left: 20px; padding-right: 20px; }
  .footer span:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

/* ==========================================================
   V3 — SCROLL STORY
========================================================== */

.manifesto {
  position: relative;
  min-height: 150vh;
  background: #18110c;
  color: var(--paper);
}

.manifesto-pin {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: grid;
  place-content: center;
  overflow: hidden;
  padding: 12vh 7vw;
}

.manifesto-kicker {
  margin: 0 0 28px;
  font-size: 9px;
  letter-spacing: .28em;
  color: rgba(242,234,223,.42);
}

.manifesto-title {
  position: relative;
  z-index: 2;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(66px, 11.3vw, 176px);
  line-height: .78;
  font-weight: 400;
  letter-spacing: -.065em;
}

.reveal-line {
  display: block;
  transform: translateX(calc(var(--scroll-shift, 0) * -8vw));
  transition: transform .1s linear;
}

.accent-line {
  padding-left: 12vw;
  color: #cf8052;
  font-style: italic;
  transform: translateX(calc(var(--scroll-shift, 0) * 9vw));
}

.manifesto-copy {
  position: relative;
  z-index: 2;
  width: min(560px, 76vw);
  margin: 46px 0 0 auto;
  font-size: clamp(14px, 1.35vw, 20px);
  line-height: 1.65;
  color: rgba(242,234,223,.62);
}

.orbit-word {
  position: absolute;
  right: -4vw;
  top: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(100px, 19vw, 300px);
  white-space: nowrap;
  color: rgba(242,234,223,.025);
  transform: translateY(-50%) rotate(-8deg) translateX(calc(var(--scroll-shift, 0) * -15vw));
  pointer-events: none;
}

.story {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #efe7dc;
  color: #17130f;
  border-top: 1px solid rgba(23,19,15,.12);
}

.story-panel {
  position: relative;
  min-height: 72vh;
  padding: 70px 4.5vw 80px;
  border-right: 1px solid rgba(23,19,15,.13);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.story-panel:last-child { border-right: 0; }

.story-number {
  position: absolute;
  top: 44px;
  left: 4.5vw;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(56px, 7vw, 110px);
  color: rgba(23,19,15,.08);
}

.story-label {
  margin: 0 0 16px;
  font-size: 8px;
  letter-spacing: .26em;
  color: rgba(23,19,15,.45);
}

.story-panel h3 {
  margin: 0 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 4vw, 62px);
  line-height: .95;
  font-weight: 400;
  letter-spacing: -.04em;
}

.story-panel > p:last-child {
  margin: 0;
  max-width: 340px;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(23,19,15,.6);
}

.closing {
  position: relative;
  min-height: 82vh;
  display: grid;
  place-content: center;
  text-align: center;
  overflow: hidden;
  padding: 100px 24px;
  background: #0a0705;
  color: var(--paper);
}

.closing-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 65vw;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224,116,49,.18), rgba(194,88,34,.05) 40%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.closing-small,
.closing h2,
.closing-link { position: relative; z-index: 2; }

.closing-small {
  margin: 0 0 25px;
  font-size: 8px;
  letter-spacing: .28em;
  color: rgba(242,234,223,.4);
}

.closing h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 9vw, 140px);
  line-height: .84;
  font-weight: 400;
  letter-spacing: -.055em;
}

.closing h2 em { color: #cf8052; font-weight: 400; }

.closing-link {
  width: fit-content;
  margin: 44px auto 0;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(242,234,223,.25);
  color: rgba(242,234,223,.62);
  text-decoration: none;
  font-size: 8px;
  letter-spacing: .22em;
  transition: color .25s ease, border-color .25s ease;
}

.closing-link:hover { color: white; border-color: white; }

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity .8s ease, transform .9s cubic-bezier(.16,.84,.24,1);
}

.reveal-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

.footer {
  align-items: start;
  grid-template-columns: 1fr auto 1.5fr;
  gap: 24px;
}

.footer-brand { font-weight: 700; letter-spacing: .36em; }
.footer-meta { justify-self: center; }
.footer-legal {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}
.footer-legal a {
  color: inherit;
  text-decoration: none;
}
.footer-legal a:hover { color: var(--paper); }

@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; }
  .story-panel {
    min-height: 54vh;
    border-right: 0;
    border-bottom: 1px solid rgba(23,19,15,.13);
  }
  .manifesto { min-height: 125vh; }
  .manifesto-title { font-size: clamp(58px, 16vw, 118px); }
  .accent-line { padding-left: 5vw; }
  .footer { grid-template-columns: 1fr auto; }
  .footer-meta { display: none; }
  .footer-legal { max-width: 65vw; }
}

@media (max-width: 600px) {
  .manifesto-pin { padding-left: 20px; padding-right: 20px; }
  .manifesto-copy { margin-left: 0; width: 90%; }
  .story-panel { padding-left: 20px; padding-right: 20px; }
  .story-number { left: 20px; }
  .footer { display: block; padding: 32px 20px 38px; }
  .footer-brand { margin-bottom: 28px; }
  .footer-legal { max-width: none; justify-content: flex-start; line-height: 1.8; }
}
