/* Nuit Privé — landing page. Same palette and type as the app: Cormorant Garamond for display,
   Jost for everything else, ivory on noir with champagne accents. */

:root {
  --noir: #080808;
  --noir-2: #0f0e0d;
  --ivoire: #ede8dd;
  --secondary: #c2bcb0;
  --muted: #9e988c;
  --champagne: #c9a961;
  --hairline: rgba(237, 232, 221, 0.12);
  --gutter: clamp(20px, 4vw, 56px);
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bar-h: 72px;
  --grain: 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'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.4 -.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--noir); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--noir);
  color: var(--ivoire);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
::selection { background: var(--champagne); color: var(--noir); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 12px; z-index: 100; background: var(--ivoire); color: var(--noir); padding: 10px 16px; border-radius: 999px; }

/* Shared type */
.kicker {
  margin: 0 0 18px;
  color: var(--muted);
  font: 500 12px/1.4 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.display {
  margin: 0;
  font: 500 clamp(40px, 6.2vw, 92px)/1.02 var(--display);
  letter-spacing: -0.01em;
  color: var(--ivoire);
}
.display em, .hero__title em, .invitation__title em { font-weight: 400; color: var(--secondary); }
.lede { max-width: 34ch; margin: 24px 0 0; color: var(--secondary); font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 32px;
  border-radius: 999px;
  background: var(--ivoire); color: var(--noir);
  font: 600 14px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  transition: transform .5s var(--ease), background .3s;
}
.pill:hover { transform: translateY(-2px); background: #fff; }
.pill:active { transform: scale(.98); }
.pill--small { min-height: 42px; padding: 0 20px; font-size: 12px; }

/* Header: the wordmark spans the viewport, then docks. */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--bar-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  pointer-events: none;
  /* A real colour on the fixed bar: iOS Safari tints its toolbars from it. */
  background-color: rgb(8 8 8 / var(--bar-bg, 0));
}
.bar::before {
  content: ""; position: absolute; inset: 0;
  border-bottom: 1px solid var(--hairline);
  opacity: var(--bar-bg, 0);
  transition: opacity .4s;
}
.wordmark {
  position: absolute; left: var(--gutter); top: 18px; z-index: 1;
  display: flex; align-items: baseline; gap: 0.32em;
  font: 500 var(--wm-size, 20vw)/0.86 var(--sans);
  letter-spacing: 0.06em;
  white-space: nowrap;
  transform-origin: 0 0;
  transform: translate3d(0, var(--wm-y, 0px), 0) scale(var(--wm-scale, 1));
  will-change: transform;
  pointer-events: auto;
}
.wordmark__prive { color: var(--champagne); }
.bar__nav {
  position: relative; z-index: 1;
  margin-left: auto;
  display: flex; align-items: center; gap: 34px;
  font: 500 12px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--secondary);
  opacity: var(--nav-o, 0); transform: translateY(calc((1 - var(--nav-o, 0)) * -8px));
  pointer-events: auto;
}
.bar__nav a:not(.pill):hover { color: var(--ivoire); }

/* I. Hero */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gutter) clamp(36px, 7vh, 80px);
  overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: -8% 0 0; margin: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: drift 26s var(--ease) both;
  filter: saturate(.85) contrast(1.04);
}
@keyframes drift { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(8,8,8,.78) 0%, rgba(8,8,8,.08) 28%, rgba(8,8,8,.24) 56%, rgba(8,8,8,.96) 100%),
    linear-gradient(to right, rgba(8,8,8,.6) 0%, rgba(8,8,8,.15) 55%, transparent 80%),
    radial-gradient(120% 80% at 50% 40%, transparent 40%, rgba(8,8,8,.5) 100%);
}
.hero__content { max-width: 980px; }
.hero__title {
  margin: 0;
  font: 500 clamp(52px, 8.4vw, 132px)/0.98 var(--display);
  letter-spacing: -0.015em;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; margin-top: 40px; }
.hero__note { color: var(--muted); font-size: 14px; letter-spacing: .04em; }
.hero__caption {
  position: absolute; right: var(--gutter); bottom: clamp(36px, 7vh, 80px);
  margin: 0; color: var(--muted); font: 400 italic 17px var(--display); letter-spacing: .02em;
}

/* II. Manifesto */
.manifesto { padding: clamp(100px, 16vh, 180px) var(--gutter); max-width: 1320px; margin: 0 auto; }
.manifesto__text {
  margin: 0;
  font: 500 clamp(34px, 4.8vw, 72px)/1.14 var(--display);
  letter-spacing: -0.01em;
}
.manifesto__text .w { opacity: .14; transition: opacity .6s var(--ease); }
.manifesto__text .w.is-lit { opacity: 1; }

/* III. Lineage — vertical scroll drives a horizontal track on wide screens. */
.lineage { position: relative; height: var(--lineage-h, 360vh); }
.lineage__sticky {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: flex; align-items: center; gap: clamp(40px, 5vw, 96px);
  padding-left: var(--gutter);
}
.lineage__intro { flex: 0 0 min(420px, 34vw); position: relative; z-index: 2; }
/* The photographs pass behind a soft edge instead of sliding under the intro text. */
.lineage__window {
  flex: 1; min-width: 0; align-self: stretch;
  display: flex; align-items: center; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 72px, #000 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 72px, #000 100%);
}
.lineage__track {
  display: flex; align-items: center; gap: clamp(24px, 3vw, 48px);
  padding-right: var(--gutter);
  transform: translate3d(var(--track-x, 0px), 0, 0);
  will-change: transform;
}
.plate { flex: 0 0 auto; margin: 0; width: clamp(320px, 42vw, 680px); }
.plate--tall { width: clamp(280px, 30vw, 480px); }
.plate img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 2px;
  filter: saturate(.9) sepia(.08);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.8);
}
.plate--tall img { aspect-ratio: 4 / 5; }
.plate figcaption, .portrait figcaption {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 14px; color: var(--muted);
  font: 400 italic 17px var(--display);
}

/* IV. Company */
.company { padding: clamp(100px, 14vh, 160px) var(--gutter); max-width: 1440px; margin: 0 auto; }
.company__intro { margin-bottom: clamp(48px, 7vh, 88px); }
.company__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(40px, auto);
  gap: clamp(16px, 2vw, 32px);
  align-items: start;
}
.portrait { margin: 0; }
.portrait img { width: 100%; object-fit: cover; border-radius: 2px; filter: contrast(1.05); }
.portrait figcaption { justify-content: flex-start; }
.portrait--a { grid-column: 1 / span 4; }
.portrait--a { grid-row: 1; }
.portrait--c { grid-column: 6 / span 3; grid-row: 1; margin-top: 14vh !important; }
.portrait--h { grid-column: 10 / span 3; grid-row: 1; margin-top: 4vh !important; }
.company__quote { grid-column: 3 / span 8 !important; grid-row: 2; margin: 8vh 0 0 !important; text-align: center; }
.portrait--a img { aspect-ratio: 3 / 4; }
.portrait--b { grid-column: 6 / span 3; margin-top: 18vh; }
.portrait--b img { aspect-ratio: 3 / 4.2; }

.portrait--c img { aspect-ratio: 3 / 4.4; }
.company__quote { grid-column: 2 / span 5; margin: 10vh 0 0; }
.company__quote p { margin: 0; font: 400 italic clamp(30px, 3.4vw, 52px)/1.15 var(--display); color: var(--ivoire); }
.company__quote footer { margin-top: 18px; color: var(--muted); font: 500 12px var(--sans); letter-spacing: .24em; text-transform: uppercase; }
.portrait--d { grid-column: 7 / span 6; margin-top: 6vh; }
.portrait--d img { aspect-ratio: 16 / 10; }
.portrait--e { grid-column: 2 / span 3; margin-top: -6vh; }
.portrait--e img { aspect-ratio: 3 / 4.4; }
.portrait--f { grid-column: 7 / span 3; margin-top: 4vh; }
.portrait--g { grid-column: 1 / span 6; margin-top: 8vh; }
.portrait--g img { aspect-ratio: 16 / 11; }

.portrait--h img { aspect-ratio: 3 / 4.2; }
.portrait--f img { aspect-ratio: 3 / 4.2; }

/* V. App — device pinned, story scrolls beside it. */
.app {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter);
  padding: 0 var(--gutter);
  max-width: 1440px; margin: 0 auto;
}
.app__sticky { position: sticky; top: 0; height: 100svh; background-color: var(--noir); display: flex; align-items: center; justify-content: center; }
.app__device { position: relative; width: min(360px, 30vw); aspect-ratio: 760 / 1571; }
.app__device::after {
  content: ""; position: absolute; inset: 6% -30% -8%; z-index: -1;
  background: radial-gradient(closest-side, rgba(201,169,97,.10), transparent 70%);
}
.app__screen {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transform: translateY(16px) scale(.985);
  transition: opacity .8s var(--ease), transform .9s var(--ease);
  filter: drop-shadow(0 50px 70px rgba(0,0,0,.65));
}
.app__screen.is-active { opacity: 1; transform: none; }
.app__steps { padding: 22vh 0 14vh; }
.app__intro { margin-bottom: 10vh; }
.step { min-height: 58vh; display: flex; flex-direction: column; justify-content: center; max-width: 30rem; opacity: .28; transition: opacity .6s var(--ease); }
.step.is-active { opacity: 1; }
.step__no { color: var(--champagne); font: 500 italic 22px var(--display); }
.step h3 { margin: 12px 0 16px; font: 500 clamp(32px, 3.4vw, 52px)/1.06 var(--display); }
.step p { margin: 0; color: var(--secondary); font-size: 18px; }
.step__device { display: none; }

/* VI. Card */
.card-section {
  display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: var(--gutter);
  padding: clamp(90px, 12vh, 150px) var(--gutter);
  max-width: 1440px; margin: 0 auto;
}
.card-stage { perspective: 1400px; display: flex; justify-content: center; }
.tcard {
  --rx: 0deg; --ry: 0deg; --lx: 50%; --ly: 30%;
  position: relative; width: min(560px, 100%); aspect-ratio: 1.586;
  border-radius: 22px; overflow: hidden;
  background:
    radial-gradient(120% 90% at var(--lx) var(--ly), #34343a 0%, #1a1a1d 38%, #0b0b0c 72%, #202024 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(0,0,0,.6),
    0 2px 0 rgba(255,255,255,.04), 0 60px 90px -30px rgba(0,0,0,.85);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .9s var(--ease);
}
.tcard.is-tracking { transition: transform .12s linear; }
.tcard__grain {
  position: absolute; inset: 0; opacity: .35; mix-blend-mode: overlay;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.07) 0 1px, transparent 1px 2px, rgba(0,0,0,.18) 2px 3px, transparent 3px 5px);
}
.tcard__sheen {
  position: absolute; inset: -40%;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.13) 48%, rgba(255,255,255,.05) 53%, transparent 62%);
  transform: translateX(calc((var(--lx-n, .5) - .5) * 40%));
  mix-blend-mode: screen;
}
.tcard__glint {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.22) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: glint 6.5s 1.2s var(--ease) infinite;
  mix-blend-mode: screen;
}
@keyframes glint { 0% { transform: translateX(-120%); } 26%, 100% { transform: translateX(120%); } }
.tcard__face {
  position: absolute; inset: 0; padding: 7% 8%;
  display: flex; flex-direction: column; justify-content: space-between;
}
.tcard__brand { display: flex; flex-direction: column; gap: 8px; }
.tcard__nuit, .tcard__name, .tcard__meta span:last-child {
  background: linear-gradient(to bottom, #f1eee8, #b9b5ae);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 -1px 0 rgba(0,0,0,.6);
}
.tcard__nuit { font: 500 clamp(22px, 2.6vw, 34px)/1 var(--sans); letter-spacing: .36em; }
.tcard__prive, .tcard__meta span:first-child {
  background: linear-gradient(110deg, #9e7f45, #ecd291 45%, #b3924f);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font: 600 clamp(9px, .9vw, 12px)/1 var(--sans); letter-spacing: .5em;
}
.tcard__name { display: block; font: 500 clamp(24px, 2.6vw, 36px)/1.1 var(--display); }
.tcard__meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; }
.tcard__meta span:first-child { letter-spacing: .26em; }
.tcard__meta span:last-child { font: 500 clamp(12px, 1.1vw, 15px) var(--sans); letter-spacing: .16em; }

/* VII. Ritual */
.ritual { padding: clamp(100px, 16vh, 180px) var(--gutter); max-width: 1440px; margin: 0 auto; border-top: 1px solid var(--hairline); }
.ritual__head { margin-bottom: clamp(56px, 8vh, 96px); }
.ritual__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 48px); }
.ritual__list li { padding-top: 28px; border-top: 1px solid var(--hairline); }
.ritual__no { color: var(--champagne); font: 500 italic 24px var(--display); }
.ritual__list h3 { margin: 14px 0 12px; font: 500 34px/1.1 var(--display); }
.ritual__list p { margin: 0; color: var(--secondary); }

/* VIII. Cities */
.cities { position: relative; min-height: 92svh; display: flex; align-items: center; padding: 0 var(--gutter); overflow: hidden; isolation: isolate; }
.cities__media { position: absolute; inset: -12% 0; margin: 0; z-index: -2; }
.cities__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); }
.cities__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,8,8,.92) 0%, rgba(8,8,8,.55) 55%, rgba(8,8,8,.25) 100%), linear-gradient(to bottom, var(--noir), transparent 18%, transparent 82%, var(--noir)); }
.cities__names { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .3em; font: 500 clamp(56px, 10vw, 168px)/0.95 var(--display); letter-spacing: -0.02em; }
.cities__dot { color: var(--champagne); }

/* IX. Invitation */
.invitation { padding: clamp(110px, 18vh, 200px) var(--gutter); text-align: center; }
.card-section__ritual { margin: 28px 0 0; color: var(--champagne); font: 500 12px/1.6 var(--sans); letter-spacing: .26em; text-transform: uppercase; }
.invitation__title { margin: 0 auto; max-width: 16ch; font: 500 clamp(44px, 6.4vw, 104px)/1.02 var(--display); letter-spacing: -0.015em; }
.invitation__actions { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 48px; }

/* Footer: the wordmark again, edge to edge. */
.footer { padding: 0 var(--gutter) 40px; border-top: 1px solid var(--hairline); overflow: hidden; }
.footer__mark {
  font: 500 var(--wm-size, 20vw)/0.9 var(--sans); letter-spacing: 0.06em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(237,232,221,.34);
  margin: 6vh 0 4vh;
}
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; color: var(--muted); font-size: 14px; }
.footer__row p { margin: 0; }
.footer__row nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__row nav a:hover { color: var(--ivoire); }
.footer__credits { margin: 24px 0 0; color: rgba(158,152,140,.7); font-size: 12px; max-width: 70ch; }

/* Darkroom: photographs develop like a print in the tray, from pale paper to full tone, with fine grain. */
.develop { position: relative; overflow: hidden; border-radius: 2px; background: #e9e2d2; isolation: isolate; }
.develop img {
  filter: brightness(1.9) contrast(.32) sepia(.55) blur(1.5px);
  opacity: .55;
  transform: scale(1.035);
  transition: filter 2.6s var(--ease), opacity 1.8s var(--ease), transform 3.2s var(--ease);
}
.develop.is-developed img { filter: none; opacity: 1; transform: none; }
.plate .develop.is-developed img { filter: saturate(.9) sepia(.08); }
.develop::after {
  content: ""; position: absolute; inset: -50%; z-index: 1; pointer-events: none;
  background-image: var(--grain);
  opacity: .5; mix-blend-mode: overlay;
  transition: opacity 2.4s var(--ease);
  animation: grain 1.1s steps(6) infinite;
}
.develop.is-developed::after { opacity: .16; }
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); }
}
.plate .develop img, .portrait .develop img { border-radius: 0; box-shadow: none; }
.plate .develop { box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }

/* III½. Century — the year turns back as you scroll; each era's photograph develops in its turn. */
.century { position: relative; height: calc(var(--eras) * 60vh + 100vh); }
.century__sticky {
  position: sticky; top: 0; height: 100svh; overflow: hidden; background-color: var(--noir);
  display: grid; grid-template-columns: 1fr minmax(0, 44vw); align-items: center;
  gap: clamp(24px, 4vw, 72px); padding: 0 var(--gutter);
}
.century__head { position: absolute; top: calc(var(--bar-h) + 4vh); left: var(--gutter); z-index: 3; }
.century__title { margin: 0; font: 500 clamp(28px, 3vw, 44px)/1.05 var(--display); color: var(--secondary); }
.century__year {
  position: relative; z-index: 1; align-self: center;
  font: 500 clamp(120px, 21vw, 360px)/.82 var(--display);
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums tabular-nums;
  color: rgba(237,232,221,.05); -webkit-text-stroke: 1.2px rgba(201,169,97,.7);
  user-select: none;
}
.century__year span { display: block; transform: translateY(var(--year-shift, 0)); }
.century__stage { position: relative; z-index: 2; width: 100%; max-width: 760px; aspect-ratio: 4 / 3; justify-self: end; }
.era {
  position: absolute; inset: 0; margin: 0;
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transform: translateY(40px) scale(.97);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
  pointer-events: none;
}
.era.is-current { opacity: 1; transform: none; }
.era.is-past { opacity: 0; transform: translateY(-40px) scale(.97); }
.era__media { width: 100%; aspect-ratio: 4 / 3; box-shadow: 0 60px 90px -40px rgba(0,0,0,.9); }
.era__media img { width: 100%; height: 100%; object-fit: cover; }
.era--tall .era__media { width: 62%; aspect-ratio: 3 / 4; margin: 0 auto; }
.era--device .era__media { background: transparent; box-shadow: none; width: 40%; aspect-ratio: 760 / 1571; margin: 0 auto; overflow: visible; }
.era--device .era__media::after { display: none; }
.era--device .era__media img { object-fit: contain; filter: drop-shadow(0 50px 60px rgba(0,0,0,.7)); }
.era--tall figcaption, .era--device figcaption { width: 62%; margin-left: auto; margin-right: auto; }
.era figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 18px; }
.era__place { font: 500 12px var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--champagne); white-space: nowrap; }
.era__line { font: 400 italic clamp(18px, 1.5vw, 22px) var(--display); color: var(--secondary); text-align: right; }
.century__rail { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 5vh; height: 1px; background: var(--hairline); z-index: 3; }
.century__rail span { position: absolute; inset: 0 auto 0 0; width: calc(var(--century-p, 0) * 100%); background: var(--champagne); }


/* By candlelight: a warm pool of light reveals the salon; the rest of the room stays in shadow.
   The shadow is one small pre-drawn layer, scaled and moved with transform, so the light costs no repaint. */
.candle { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: #050403; contain: strict; }
.candle__room { position: absolute; inset: 0; opacity: 0; transition: opacity 2.4s var(--ease); }
.candle.is-lit .candle__room { opacity: 1; }
.candle__room picture, .candle__room img { display: block; width: 100%; height: 100%; object-fit: cover; }
.candle__room img { filter: sepia(.18) saturate(1.05) brightness(1.08) contrast(1.04); }
/* 800px square drawn once; the lit pool is 72px in radius, the rest falls to near black and still covers
   the screen at the smallest scale. */
.candle__dark, .candle__glow {
  position: absolute; left: 0; top: 0; width: 800px; height: 800px; margin: -400px 0 0 -400px;
  pointer-events: none; will-change: transform; transform: translate3d(50vw, 42vh, 0) scale(6);
}
.candle__dark {
  background: radial-gradient(closest-side, rgba(5,4,3,0) 0%, rgba(5,4,3,.07) 5%, rgba(5,4,3,.42) 9.9%, rgba(5,4,3,.76) 14%, rgba(5,4,3,.93) 18%, rgba(5,4,3,.93) 100%);
}
.candle__glow {
  opacity: .7;
  background: radial-gradient(closest-side, rgba(255,186,105,.16), rgba(255,160,80,.05) 9%, transparent 15%);
}
.hero { cursor: default; }
.hero__hint { color: var(--champagne); font-style: normal; font: 500 11px var(--sans); letter-spacing: .22em; text-transform: uppercase; }
@media (hover: none) { .hero__hint::before { content: "Touch to light the room"; } .hero__hint { font-size: 0; } .hero__hint::before { font-size: 11px; } }

/* Hero picture fills the frame without distortion. */
.hero__media picture { display: block; width: 100%; height: 100%; }

/* Invitation: champagne poured, kept dark so the words lead. */
.invitation__media { position: absolute; inset: 0; z-index: -2; }
.invitation__media img { width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: saturate(.85); }
.invitation__media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 50%, rgba(8,8,8,.35), var(--noir) 100%), linear-gradient(to bottom, var(--noir), transparent 22%, transparent 78%, var(--noir)); }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease) var(--delay, 0s), transform 1.1s var(--ease) var(--delay, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
[data-parallax] { will-change: transform; }

/* Tablet */
@media (max-width: 1080px) {
  .bar__nav a:not(.pill) { display: none; }
  .ritual__list { grid-template-columns: repeat(2, 1fr); }
  .card-section { grid-template-columns: 1fr; }
  .card-stage { order: -1; }
}

/* Phone: natural vertical flow, swipeable gallery, devices inline with each step. */
@media (max-width: 760px) {
  :root { --bar-h: 64px; }
  body { font-size: 16px; }
  .wordmark { top: 14px; }
  .hero__caption { display: none; }
  .lineage { height: auto; }
  .lineage__sticky { position: static; height: auto; flex-direction: column; align-items: stretch; padding: 110px 0 90px; }
  .lineage__intro { flex: none; padding: 0 var(--gutter); margin-bottom: 40px; }
  .lineage__window { -webkit-mask-image: none; mask-image: none; overflow: visible; }
  .lineage__track { transform: none !important; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .lineage__track::-webkit-scrollbar { display: none; }
  .plate, .plate--tall { width: 80vw; scroll-snap-align: center; }
  .company__grid { display: flex; flex-direction: column; gap: 48px; }
  .portrait { margin: 0 !important; transform: none !important; }
  .portrait--b, .portrait--e { align-self: flex-end; width: 78%; }
  .portrait--c, .portrait--f { width: 78%; }
  .company__quote { margin: 12px 0 !important; }
  .app { grid-template-columns: 1fr; }
  .app__sticky { display: none; }
  .app__steps { padding: 100px 0 40px; }
  .app__intro { margin-bottom: 40px; }
  .step { min-height: auto; opacity: 1; margin-bottom: 80px; }
  .step__device { display: block; width: min(300px, 76vw); margin: 40px auto 0; filter: drop-shadow(0 40px 50px rgba(0,0,0,.6)); }
  .ritual__list { grid-template-columns: 1fr; }
  .century { height: calc(var(--eras) * 55vh + 100vh); }
  .century__sticky { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; align-content: start; gap: 8px; padding-top: calc(var(--bar-h) + 28px); }
  .century__head { position: static; }
  .century__stage { width: 100%; justify-self: center; }
  .century__year { font-size: 30vw; justify-self: start; }
  .era--tall .era__media { width: 70%; }
  .era--device .era__media { width: 56%; }
  .era--tall figcaption, .era--device figcaption { width: 86%; }
  .era figcaption { flex-direction: column; align-items: flex-start; gap: 6px; }
  .era__line { text-align: left; }
  .portrait--c { align-self: flex-end; width: 78%; }
  .portrait--h { width: 78%; }
  .company__quote { text-align: left; }
  .cities__names { flex-direction: column; gap: 0; }
  .cities__dot { display: none; }
}

/* Respect reduced motion: everything visible, nothing drifts. */
@media (prefers-reduced-motion: reduce) {
  .candle__room { opacity: 1; } .candle__dark, .candle__glow { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .manifesto__text .w { opacity: 1; }
  [data-parallax] { transform: none !important; }
  .develop img { filter: none; opacity: 1; transform: none; }
  .develop::after { opacity: .12; }
  .era { opacity: 1; transform: none; position: relative; inset: auto; margin-bottom: 48px; }
  .century { height: auto; }
  .century__sticky { position: static; height: auto; padding: 120px var(--gutter); }
  .century__year { display: none; }
  .century__head { position: static; margin-bottom: 48px; }
  .century__stage { aspect-ratio: auto; }
  .century__rail { display: none; }
}
