/* NOCTAIRE V2 — dark cinematic luxury. Colours sampled from the approved visuals. */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/cormorant.woff2) format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/cormorant-italic.woff2) format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url(../fonts/jost.woff2) format('woff2');
}

:root {
  --night: #0a0302;      /* the set's background */
  --night-2: #140605;    /* shadowed backdrop */
  --night-3: #1d0c08;
  --navy: #0d1222;       /* the closing's moonlit night */
  --ember: #ca4710;      /* the juice where light passes */
  --gold: #c9a46c;       /* brushed collar, used sparingly */
  --ink: #f1e6d8;
  --ink-soft: #cdbfae;
  --ink-mute: #a4927f;
  --line: rgba(201, 164, 108, 0.28);

  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Jost', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 5rem);
  /* The page's width follows the screen's HEIGHT too, so a short laptop and an ultrawide keep
     the proportions of a 16:10 screen instead of zooming or stretching the sections. */
  --wrap: min(1680px, 165vh);
  --pad-x: max(var(--gutter), (100% - var(--wrap)) / 2);
  --section-y: clamp(4.5rem, min(10vw, 15vh), 9rem);
  --hero-pad: var(--gutter);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
/* Ultrawide: the hero's words stay with the picture (a 2:1 stage) instead of hugging the screen's edges. */
@media (min-aspect-ratio: 2/1) and (min-width: 1600px) {
  :root { --hero-pad: calc((100vw - 200vh) / 2 + var(--gutter)); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 300 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
picture { display: block; }
figure { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.6rem 1rem; background: var(--ink); color: var(--night);
  font: 400 0.8rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* --- type: sizes follow the smaller of the screen's width and height ---------------- */

.eyebrow {
  margin: 0 0 1.25rem;
  font: 400 0.72rem/1.4 var(--sans);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.display {
  margin: 0;
  font: 300 clamp(2.6rem, min(5.6vw, 10.5vh), 6rem)/0.9 var(--serif);
  letter-spacing: 0.14em;
  margin-right: -0.14em;
}
.headline {
  margin: 0;
  font: 300 clamp(1.6rem, min(4.6vw, 7.6vh), 4.1rem)/1.04 var(--serif);
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.headline--large { font-size: clamp(1.9rem, min(6vw, 9.6vh), 5.6rem); }
.headline em, .section-title em, .statement em { font-style: italic; color: var(--ink-soft); }
.section-title {
  margin: 0 0 1.5rem;
  font: 300 clamp(2.1rem, min(5.2vw, 8.8vh), 4.9rem)/1 var(--serif);
  text-wrap: balance;
}
.lede {
  margin: 1.4rem 0 0;
  max-width: 26rem;
  font: 300 clamp(1.02rem, 1.3vw, 1.18rem)/1.6 var(--sans);
  color: var(--ink-soft);
}
.body { margin: 0; max-width: 32rem; color: var(--ink-soft); }
.meta {
  margin: 0;
  font: 400 0.72rem/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-mute);
}

.button {
  display: inline-flex; align-items: center; gap: 0.9rem;
  margin-top: 2.2rem;
  min-height: 3rem; padding: 0.95rem 1.7rem 0.95rem 1.8rem;
  border: 1px solid var(--gold);
  color: var(--ink); text-decoration: none;
  font: 400 0.78rem/1 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; white-space: nowrap;
  background: rgba(10, 3, 2, 0.35);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.button::after { content: ''; width: 1.6rem; height: 1px; background: currentColor; transition: width 0.4s var(--ease); }
.button:hover { background: var(--gold); color: var(--night); }
.button:hover::after { width: 2.2rem; }
.text-link {
  font: 400 0.78rem/1 var(--sans); letter-spacing: 0.26em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-soft);
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.text-link:hover { color: var(--ink); border-color: var(--gold); }

/* --- header ---------------------------------------------------------------- */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: max(1.1rem, env(safe-area-inset-top)) var(--gutter) 1.1rem;
  background: linear-gradient(to bottom, rgba(10, 3, 2, 0.7), rgba(10, 3, 2, 0));
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.wordmark {
  font: 400 1.02rem/1 var(--serif); letter-spacing: 0.42em; text-decoration: none;
  margin-right: -0.42em; padding: 0.6rem 0;
}
.site-header ul, .site-footer ul { display: flex; gap: clamp(1.1rem, 3vw, 2.6rem); margin: 0; padding: 0; list-style: none; }
.site-header nav a, .site-footer nav a {
  display: inline-block; padding: 0.7rem 0;
  font: 400 0.7rem/1 var(--sans); letter-spacing: 0.28em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-soft);
}
.site-header nav a:hover, .site-footer nav a:hover { color: var(--gold); }

/* --- hero: sticky stage + chapters that scroll over it ----------------------- */

/* The stage's negative margin lets it overhang the hero by a screen: clip it there,
   and keep the following sections above it where `clip` is not supported. */
.hero { position: relative; background: var(--night); overflow: clip; }
main > section:not(.hero), .site-footer { position: relative; z-index: 2; background-color: var(--night); }

/*
 * The stage is a size container, so its pictures are FRAMED from its size instead of
 * simply covering it. V3: the film, its poster and the hold still share one frame, built
 * for the product: the bottle, 84 % of the frame's height, stands about 70 % of the
 * screen's height, whole and clear of the header, at any width. The film's and the
 * still's edges are blended into the night colour, so a frame smaller than the screen
 * never shows an edge. Portrait screens stack instead (further down): the bottle stands
 * under the header and the words sit below it.
 */
.stage {
  position: sticky; top: 0;
  isolation: isolate;
  container-type: size;
  height: 100vh; height: 100lvh;
  margin-bottom: -100vh; margin-bottom: -100lvh;
  overflow: hidden;
  background: var(--night);
  --head: 4.25rem;
  --frame-h: 83cqh;
  --frame-w: calc(var(--frame-h) * 1.7917);
  --frame-top: calc(50cqh + var(--head) / 2 - var(--frame-h) / 2);
}
.stage-poster, .stage-video, .stage-reveal {
  position: absolute; top: var(--frame-top); left: calc(50% - var(--frame-w) / 2);
  width: var(--frame-w); height: var(--frame-h);
}
.stage-poster img, .stage-reveal img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
}
/* The frame can be wider than the screen: the page-wide `max-width: 100%` would cut the film short. */
.stage-video { max-width: none; object-fit: cover; opacity: 0; transform-origin: 50% 50%; will-change: transform, opacity; }
.stage-video.is-live { opacity: 1; }
.stage-poster img { transform-origin: 50% 50%; }
.stage.is-still .stage-video { display: none; }
/* The hold: the sharper anchor still, faded in by the script over the film's last, clean frames. */
.stage-reveal { opacity: 0; transform-origin: 50% 50%; will-change: transform, opacity; }
/* Keeps text readable over the bright centre without dimming the product. */
.stage-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, rgba(10, 3, 2, 0.72) 0%, rgba(10, 3, 2, 0.12) 34%, rgba(10, 3, 2, 0) 50%, rgba(10, 3, 2, 0.12) 66%, rgba(10, 3, 2, 0.72) 100%),
    linear-gradient(to bottom, rgba(10, 3, 2, 0.45) 0%, rgba(10, 3, 2, 0) 22%, rgba(10, 3, 2, 0) 70%, rgba(10, 3, 2, 0.75) 100%);
}

.chapter {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  min-height: 100vh; min-height: 100svh;
  padding: clamp(4rem, 14vh, 7rem) var(--hero-pad);
}
.chapter--3 { min-height: 110vh; min-height: 110svh; }
.chapter--reveal { min-height: 120vh; min-height: 120svh; align-items: flex-end; padding-bottom: 20vh; }
.align-end { justify-content: flex-end; }
/* The words keep to the side of the bottle: never wider than the room left beside it
   (at its closest the bottle is 28 % of the screen's height wide, centred). */
.chapter-inner {
  max-width: min(30rem, 34vw, calc(50vw - 14vh - var(--hero-pad) - 1.5rem));
  text-shadow: 0 1px 24px rgba(10, 3, 2, 0.6);
}
.chapter--1 .chapter-inner { max-width: none; }
.align-end .chapter-inner { text-align: right; }
.align-end .lede { margin-left: auto; }

.scroll-cue {
  display: flex; align-items: center; gap: 0.9rem;
  margin: clamp(1.6rem, 5vh, 3.2rem) 0 0;
  font: 400 0.68rem/1 var(--sans); letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-mute);
}
.scroll-cue span { width: 3rem; height: 1px; background: var(--gold); transform-origin: left; animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleX(0); } 55% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

/* --- prologue: the breath after the film -------------------------------------- */

.prologue {
  display: grid; align-content: center; justify-items: center;
  min-height: 86vh; min-height: 86svh;
  padding: clamp(4rem, 14vh, 7rem) var(--pad-x);
  text-align: center;
  background:
    radial-gradient(ellipse 50% 60% at 50% 0%, rgba(202, 71, 16, 0.10), rgba(10, 3, 2, 0) 70%),
    var(--night);
}
/* The film's last frame dissolves into this section instead of ending on a hard edge. */
.prologue::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 22vh; pointer-events: none;
  background: linear-gradient(to bottom, rgba(10, 3, 2, 0), var(--night));
}
.eyebrow--centre { display: inline-flex; align-items: center; gap: 1.2rem; margin-bottom: clamp(1.6rem, 5vh, 2.6rem); }
.rule { display: inline-block; width: clamp(2rem, 6vw, 4.5rem); height: 1px; background: var(--line); }
.statement {
  margin: 0 auto; max-width: 18ch;
  font: 300 clamp(1.9rem, min(5vw, 8.2vh), 4.6rem)/1.08 var(--serif);
  text-wrap: balance;
}

/* --- I. the fragrance: three notes, three scenes ---------------------------------------- */

.scent { padding: var(--section-y) var(--pad-x) clamp(5rem, min(12vw, 16vh), 10rem); overflow-x: clip; }  /* the jasmine's glow may reach past the screen's edge */
.scent-head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1rem 4rem; align-items: end;
  margin-bottom: clamp(3.5rem, min(8vw, 12vh), 7rem);
}
.scent-head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.scent-head .section-title { margin: 0; }

/* Each note is a scene at its own scale: large (rose), tall (jasmine), panoramic (amber). */
.notes { display: grid; gap: clamp(5rem, min(12vw, 18vh), 11rem); margin: 0; padding: 0; list-style: none; }
.note {
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2vw, 2rem); align-items: center;
}
.note-scene { margin: 0; overflow: hidden; }
.note-scene img { width: 100%; height: 100%; object-fit: cover; }
.note-copy { position: relative; z-index: 1; text-shadow: 0 2px 30px rgba(10, 3, 2, 0.85); }
.note-numeral {
  display: flex; align-items: center; gap: 1rem;
  margin: 0 0 1.1rem; font: italic 300 1.35rem/1 var(--serif); color: var(--gold);
}
.note-numeral::after { content: ''; width: 3rem; height: 1px; background: var(--line); }
.note-name { margin: 0; font: 300 clamp(2.3rem, min(4.4vw, 7.4vh), 4.4rem)/1.02 var(--serif); text-wrap: balance; }
.note-line { margin: 1.2rem 0 0; max-width: 24rem; font-size: 1.02rem; line-height: 1.65; color: var(--ink-soft); }

/* I. The rose: a large scene on the right; the words sit in the darkness on its left
   (the picture's left edge is blended into the page). */
.note--rose .note-scene { grid-column: 4 / -1; grid-row: 1; aspect-ratio: 3 / 2; }
.note--rose .note-copy { grid-column: 1 / 6; grid-row: 1; }

/* II. The jasmine: a tall moonlit panel on the left; the night turns cool for a moment. */
.note--jasmine .note-scene { grid-column: 1 / 6; aspect-ratio: 4 / 5; }
.note--jasmine .note-copy { grid-column: 7 / -1; }
.note--jasmine::before {
  content: ''; position: absolute; inset: -18% -20%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 42% 50% at 26% 50%, rgba(46, 70, 118, 0.24), rgba(10, 3, 2, 0) 70%);
}

/* III. The amber: a panoramic band across the screen (up to 1920 px) that rises out of the dark;
   the words over its shadowed left side. */
.note--amber { display: block; margin-inline: calc(50% - 50vw); }
.note--amber .note-scene { max-width: 1920px; height: min(42.4vw, 76vh); margin: 0 auto; }
.note--amber .note-scene img { object-position: 55% 62%; }
.note--amber .note-copy {
  position: absolute; top: 0; bottom: 0; left: max(var(--gutter), (100vw - var(--wrap)) / 2);
  width: min(26rem, 30vw);
  display: flex; flex-direction: column; justify-content: center;
}

/* --- II. the bottle: the whole object, studied --------------------------------------------- */

.bottle { padding: var(--section-y) 0; background: linear-gradient(to bottom, var(--night), var(--night-2) 50%, var(--night)); }
.bottle-study {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(3.5rem, 7vw, 7rem); align-items: center;
  padding: 0 var(--pad-x);
}
/* The whole picture is always shown, never cropped: it is sized to the screen's height. */
.bottle-visual { position: relative; justify-self: end; width: min(100%, 64vh); }
.bottle-portrait { aspect-ratio: 1600 / 1986; overflow: hidden; }
.bottle-portrait img { width: 100%; height: 100%; object-fit: cover; }
.anatomy { margin: clamp(1.6rem, 4vh, 2.4rem) 0 0; display: grid; gap: 0; }
.anatomy div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.anatomy div:last-child { border-bottom: 1px solid var(--line); }
.anatomy dt { font: 400 0.68rem/1.9 var(--sans); letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.anatomy dd { margin: 0; color: var(--ink-soft); }

/* --- III. the ritual: an evening scene, the words set in its dark side --------------------- */

/* The frame is at most 73 % of the screen's height (172vh wide at 21:9). The night deepens towards the closing. */
.ritual {
  --ritual-pad: max(var(--gutter), (100% - min(1680px, 172vh)) / 2);
  position: relative; padding: var(--section-y) var(--ritual-pad);
  background: linear-gradient(to bottom, var(--night) 62%, var(--navy));
}
.ritual-frame { aspect-ratio: 2560 / 1086; overflow: hidden; }
.ritual-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.ritual-copy {
  position: absolute; top: var(--section-y); bottom: var(--section-y); right: calc(var(--ritual-pad) + clamp(1.5rem, 3.5vw, 3.5rem));
  width: min(30rem, (100% - 2 * var(--ritual-pad)) * 0.33);
  display: flex; flex-direction: column; justify-content: center;
  text-shadow: 0 2px 24px rgba(10, 3, 2, 0.75);
}
.ritual-copy .eyebrow { margin: 0 0 1rem; }
.ritual-copy .section-title { margin: 0 0 clamp(1.2rem, 3.5vh, 2rem); }
.ritual-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.ritual-steps li { padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.98rem; line-height: 1.5; }
.ritual-steps span { display: block; margin-bottom: 0.5rem; font: italic 300 1.2rem/1 var(--serif); color: var(--gold); }

/* --- closing: night has fallen ---------------------------------------------------------- */

/* The scene is framed like the hero's anchor: it covers the screen but grows to at most 106 % of
   its height, so the bottle (70 % of the picture) is always whole; past that its edges, blended
   into this section's navy, simply continue the night. */
main > section.closing { background-color: var(--navy); }
.closing {
  --scene-h: min(max(100vh, 56.25vw), 106vh);
  display: grid; align-items: center; justify-items: end;
  min-height: 100vh; min-height: 100svh;
  padding: clamp(3rem, 8vh, 6rem) var(--pad-x);
  overflow: hidden;
}
.closing-scene {
  position: absolute; z-index: 0; margin: 0;
  height: var(--scene-h); width: calc(var(--scene-h) * 1.7917);
  top: calc(50% - var(--scene-h) / 2); left: calc(50% - var(--scene-h) * 0.8958);
}
.closing-scene img { width: 100%; height: 100%; object-fit: cover; }
/* The night gives way to the page's warm black before the footer (below the bottle's base). */
.closing::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 12vh; pointer-events: none;
  background: linear-gradient(to bottom, rgba(13, 18, 34, 0), var(--night));
}
.closing-copy { position: relative; z-index: 1; width: min(32rem, 38vw); text-shadow: 0 2px 30px rgba(6, 8, 18, 0.8); }
.closing-mark {
  margin: 0 0 clamp(1.4rem, 4vh, 2.2rem);
  font: 300 clamp(2.4rem, min(6.4vw, 10vh), 6rem)/0.9 var(--serif); letter-spacing: 0.16em; margin-right: -0.16em;
  color: transparent; -webkit-text-stroke: 1px rgba(201, 164, 108, 0.7);
}
.closing .section-title { max-width: 12ch; }
.closing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2.4rem; margin-top: 0.4rem; }

/* --- footer -------------------------------------------------------------------------- */

.site-footer {
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2rem; align-items: center;
  padding: 3rem var(--pad-x) max(3rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.wordmark--footer { margin: 0; }
.fine { grid-column: 1 / -1; margin: 0; font-size: 0.8rem; color: var(--ink-mute); }

/* --- scroll-tied entrances (added by the script only; content is visible without it) --- */

.js-motion .reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js-motion .reveal.is-in { opacity: 1; transform: none; }
.js-motion .note-copy.reveal { transition-delay: 0.15s; }
/* The scenes drift slowly as they pass (script only, transform only, never under reduced motion). */
.js-drift .drift img { transform: scale(1.08); will-change: transform; }

/* --- portrait screens (phones, upright tablets): the hero stacks ------------------------- */

/* The film and the still stand in the space between the header and 62 %, the bottle whole;
   the words rest below it. The script fades them before they reach the bottle. */
@media (max-aspect-ratio: 23/20) {
  .stage {
    --head: 3.6rem;
    --frame-h: calc(62cqh - var(--head)); --frame-top: var(--head);
  }
  .stage-shade {
    background: linear-gradient(to bottom, rgba(10, 3, 2, 0.55) 0%, rgba(10, 3, 2, 0) 14%, rgba(10, 3, 2, 0) 58%, var(--night) 66%, var(--night) 100%);
  }
  .chapter { align-items: flex-end; padding-bottom: max(5vh, 2.5rem); }
  .chapter-inner { min-height: 30vh; min-height: 30svh; display: flex; flex-direction: column; justify-content: flex-start; }
  .chapter--reveal { padding-bottom: max(5vh, 2.5rem); }
  .align-end { justify-content: flex-start; }
  .chapter-inner, .align-end .chapter-inner { max-width: min(100%, 38rem); text-align: left; }
  .align-end .lede { margin-left: 0; }
}
/* Each chapter's words hold at that resting place while their chapter passes (the first screen's
   spot), instead of crossing the band in a fifth of a screen and leaving it empty in between. */
@media (max-aspect-ratio: 23/20) and (prefers-reduced-motion: no-preference) {
  .chapter-inner { position: sticky; bottom: max(5vh, 2.5rem); }
}

/* --- narrow upright screens: the sections become one column ------------------------------- */

@media (max-width: 860px) and (max-aspect-ratio: 23/20) {
  .scent-head { grid-template-columns: 1fr; }
  .notes { gap: 4.5rem; }
  .note { grid-template-columns: minmax(0, 1fr); row-gap: 1.8rem; }
  .note .note-scene, .note .note-copy { grid-column: 1; grid-row: auto; }
  /* Phones get portrait crops; the rose and the amber run edge to edge. */
  .note--rose .note-scene { aspect-ratio: 4 / 5; margin-inline: calc(50% - 50vw); }
  .note--jasmine::before { inset: -8% -20%; background: radial-gradient(ellipse 60% 40% at 50% 34%, rgba(46, 70, 118, 0.24), rgba(10, 3, 2, 0) 70%); }
  .note--amber .note-scene { height: auto; aspect-ratio: 4 / 5; max-width: none; }
  .note--amber .note-copy { position: static; display: block; width: auto; margin-top: 1.8rem; padding: 0 var(--gutter); }
  .bottle-study { grid-template-columns: 1fr; row-gap: 4.5rem; padding: 0 var(--gutter); }
  .bottle-visual { justify-self: center; width: min(100%, 34rem, 56vh); }
}

/* Upright screens: the closing scene becomes a portrait picture with the words below it. */
@media (max-aspect-ratio: 23/20) {
  .closing { display: block; min-height: 0; padding: 3.5rem 0 7rem; }
  .closing-scene { position: relative; top: auto; left: auto; width: min(100%, 62vh); height: auto; aspect-ratio: 4 / 5; margin: 0 auto; }
  .closing-copy { width: auto; max-width: 36rem; margin: 1rem auto 0; padding: 0 var(--gutter); }
  .closing-mark { font-size: clamp(2.4rem, 12vw, 3.4rem); margin-bottom: 1.6rem; }
}

/* The ritual's words sit in the frame's dark half only where there is room for them. */
@media (max-width: 999px), (max-aspect-ratio: 23/20) {
  .ritual { padding-left: 0; padding-right: 0; }
  .ritual-copy { position: relative; inset: auto; width: auto; max-width: 40rem; margin-top: clamp(1.6rem, 4vh, 2.4rem); padding: 0 var(--gutter); }
  .ritual-copy .section-title { text-shadow: 0 2px 30px rgba(10, 3, 2, 0.9); }
  .ritual-steps { grid-template-columns: 1fr; gap: 0; }
  .ritual-steps li { display: flex; gap: 1rem; align-items: baseline; padding: 0.9rem 0; }
  .ritual-steps span { margin: 0; }
}
@media (max-aspect-ratio: 23/20) {
  .ritual-frame { aspect-ratio: 4 / 3; }
}

/* --- phones ---------------------------------------------------------------------------- */

@media (max-width: 760px) {
  .site-header { padding-top: max(0.9rem, env(safe-area-inset-top)); }
  .wordmark { font-size: 0.92rem; letter-spacing: 0.34em; margin-right: -0.34em; }
  .site-header ul { gap: 1rem; }
  .site-header nav a { font-size: 0.64rem; letter-spacing: 0.2em; }
  .anatomy div { grid-template-columns: 6.2rem 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer ul { flex-wrap: wrap; }
}
@media (max-width: 760px) and (max-aspect-ratio: 23/20) {
  .display { font-size: clamp(2.9rem, 14vw, 4rem); }
  .headline { font-size: clamp(1.75rem, 7.6vw, 2.3rem); }
  .headline--large { font-size: clamp(2rem, 9vw, 2.6rem); }
  .lede { margin-top: 0.9rem; font-size: 0.98rem; }
  .eyebrow { margin-bottom: 0.9rem; }
  .button { margin-top: 1.4rem; }
  .scroll-cue { margin-top: 1.6rem; }
  .statement { font-size: clamp(1.9rem, 8.4vw, 2.6rem); }
}

@media (max-width: 380px) {
  .site-header nav a { letter-spacing: 0.14em; }
  .site-header ul { gap: 0.8rem; }
}

/* Short landscape screens (phones on their side): a tighter button keeps to the words' column. */
@media (max-height: 500px) and (min-aspect-ratio: 23/20) {
  .button { gap: 0.7rem; padding: 0.8rem 1.2rem 0.8rem 1.3rem; letter-spacing: 0.18em; }
  .button::after { width: 1.2rem; }
}

/* --- reduced motion: the anchor is the hero; the chapters are calm sections --- */

@media (prefers-reduced-motion: reduce) {
  .stage { position: relative; margin-bottom: -100vh; margin-bottom: -100svh; height: 100vh; height: 100svh; }
  .stage-video, .stage-reveal { display: none; }
  .chapter { min-height: 0; padding-top: 5rem; padding-bottom: 5rem; background: var(--night); }
  .chapter--1 { min-height: 100vh; min-height: 100svh; background: none; align-items: flex-end; padding-bottom: 12vh; }
  .chapter--3 { min-height: 0; }
  .chapter--reveal { min-height: 0; padding-bottom: 6rem; }
  .scroll-cue span { animation: none; }
  .prologue::before { display: none; }
  .js-motion .reveal { transform: none; transition: opacity 0.6s linear; }
}
