/* ==========================================================================
   VALUEAPP — Dark Cinematic Editorial Landing Page
   Vanilla CSS3 · ValueApp Deep Teal, Sage Mint & Emerald Palette
   ========================================================================== */

:root {
  --night: #030a0a;
  --night-2: #061414;
  --night-3: #0a1e1d;
  --navy: #05171e;
  --ember: #03aaad;
  --gold: #5fbf96;
  --ink: #eaf4f0;
  --ink-soft: #b8cfc8;
  --ink-mute: #7fa098;
  --line: rgba(95, 191, 150, 0.28);

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --wrap: min(1680px, 165vh);
  --pad-x: max(var(--gutter), (100% - var(--wrap)) / 2);
  --hero-pad: var(--pad-x);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Jost', 'Avenir Next', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- Reset & Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background-color: var(--night);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background-color: var(--night);
  color: var(--ink);
  overflow-x: clip;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

::selection {
  background: rgba(95, 191, 150, 0.28);
  color: var(--ink);
}

/* ---------- Typography Primitives ---------- */

.eyebrow {
  margin: 0 0 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.2rem, calc(1rem + min(4.2vw, 5.2vh)), 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

.section-title em,
.chapter-title em,
.statement em,
.note-title em,
.closing-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-soft);
}

.body {
  margin: 0;
  font-size: clamp(0.95rem, calc(0.86rem + 0.25vw), 1.08rem);
  line-height: 1.72;
  color: var(--ink-soft);
  max-width: 48ch;
  text-wrap: pretty;
  overflow-wrap: break-word;
}

.lede {
  margin: 1.35rem 0 0;
  font-size: clamp(0.92rem, calc(0.84rem + 0.25vw), 1.05rem);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 38ch;
  text-wrap: pretty;
}

/* ---------- Buttons & Links ---------- */

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  min-block-size: 3rem;
  padding: 0.9rem 1.75rem;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 0.45s var(--ease),
    color 0.45s var(--ease),
    border-color 0.45s var(--ease);
}

.button::after {
  content: '';
  display: inline-block;
  width: 1.4rem;
  height: 1px;
  background-color: currentColor;
  transition: width 0.45s var(--ease);
}

.button:hover,
.button:focus-visible {
  background-color: var(--gold);
  color: var(--night);
  border-color: var(--gold);
}

.button:hover::after,
.button:focus-visible::after {
  width: 2.35rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--line);
  background: none;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  cursor: pointer;
  transition:
    color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

/* ---------- Skip Link & Fixed Header ---------- */

.skip {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--night);
  border: 1px solid var(--gold);
  color: var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  transform: translateY(-220%);
  transition: transform 0.25s var(--ease);
}

.skip:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--hero-pad) 2.5rem;
  background: linear-gradient(
    to bottom,
    rgba(3, 10, 10, 0.88) 0%,
    rgba(3, 10, 10, 0.48) 58%,
    rgba(3, 10, 10, 0) 100%
  );
  pointer-events: none;
}

#prologue,
#apps,
#craft,
#advertising {
  scroll-margin-top: 5.5rem;
}

.site-header > * {
  pointer-events: auto;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.15vw, 1.22rem);
  font-weight: 300;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.wordmark-mark {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--gold);
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.8vw, 2.75rem);
}

.site-nav a {
  position: relative;
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-block: 0.35rem;
  transition: color 0.35s var(--ease);
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

/* ---------- 2. Scroll-Film Hero (.hero) ---------- */

.hero {
  position: relative;
  background-color: var(--night);
  isolation: isolate;
}

.stage {
  position: sticky;
  top: 0;
  height: 100lvh;
  margin-bottom: -100lvh;
  container-type: size;
  overflow: hidden;
  background-color: var(--night);
  z-index: 1;
}

.stage-frame {
  --frame-h: 83cqh;
  --frame-w: calc(var(--frame-h) * 1.7917);
  position: absolute;
  left: 50%;
  top: calc(50% + 2.5cqh);
  width: var(--frame-w);
  height: var(--frame-h);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.stage-poster,
.stage-video,
.stage-reveal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stage-poster img,
.stage-reveal img,
.stage-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.stage-poster {
  z-index: 1;
}

.stage-video {
  z-index: 2;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.hero.is-live .stage-video {
  opacity: 1;
}

.hero.is-still .stage-video {
  display: none;
}

.hero.is-still .stage-poster img {
  will-change: transform;
  transform: scale(var(--still-scale, 1));
  transform-origin: center center;
}

.stage-reveal {
  z-index: 3;
  opacity: 0;
  will-change: opacity, transform;
  transform-origin: center center;
}

/* Dual horizontal + vertical vignette so side text stays legible without dimming center */
.stage-shade {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(3, 10, 10, 0.94) 0%,
      rgba(3, 10, 10, 0.62) 24%,
      rgba(3, 10, 10, 0.04) 44%,
      rgba(3, 10, 10, 0.04) 56%,
      rgba(3, 10, 10, 0.62) 76%,
      rgba(3, 10, 10, 0.94) 100%
    ),
    linear-gradient(
      180deg,
      rgba(3, 10, 10, 0.72) 0%,
      rgba(3, 10, 10, 0) 20%,
      rgba(3, 10, 10, 0) 78%,
      rgba(3, 10, 10, 0.88) 100%
    );
}

/* Chapters overlay */

.chapters {
  position: relative;
  z-index: 5;
}

.chapter {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 6rem var(--hero-pad);
}

.chapter--1 {
  min-height: 100svh;
}

.chapter--2 {
  min-height: 100svh;
}

.chapter--3 {
  min-height: 110svh;
}

.chapter--reveal {
  min-height: 120svh;
  align-items: flex-end;
  padding-bottom: clamp(5rem, 11vh, 9rem);
}

.chapter.align-end {
  justify-content: flex-end;
  text-align: right;
}

.chapter.align-end .lede {
  margin-left: auto;
}

.chapter-inner {
  max-width: min(30rem, 34vw, calc(50vw - 14vh - var(--hero-pad) - 1.5rem));
  will-change: opacity, transform;
}

.hero-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(3.1rem, calc(1.2rem + min(6.2vw, 7.6vh)), 6.6rem);
  line-height: 0.96;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-wrap: balance;
}

.chapter-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.15rem, calc(0.9rem + min(3.7vw, 4.6vh)), 4.1rem);
  line-height: 1.08;
  color: var(--ink);
  text-wrap: balance;
}

.chapter--reveal .button {
  margin-top: 2.1rem;
}

/* Scroll Cue */

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 1.15rem;
  margin-top: clamp(2.25rem, 5vh, 3.75rem);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.scroll-cue-line {
  position: relative;
  display: block;
  width: 4.5rem;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}

.scroll-cue-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform-origin: left center;
  transform: scaleX(0.45);
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-cue-line::after {
    animation: cue-sweep 2.4s var(--ease) infinite;
  }
}

@keyframes cue-sweep {
  0% {
    transform: scaleX(0);
    transform-origin: left center;
  }
  48% {
    transform: scaleX(1);
    transform-origin: left center;
  }
  52% {
    transform: scaleX(1);
    transform-origin: right center;
  }
  100% {
    transform: scaleX(0);
    transform-origin: right center;
  }
}

/* ---------- 3. Prologue (.prologue) ---------- */

.prologue {
  position: relative;
  z-index: 6;
  min-height: 86svh;
  display: grid;
  place-items: center;
  padding: clamp(6rem, 12vh, 10rem) var(--pad-x);
  background:
    radial-gradient(
      62% 48% at 50% 8%,
      rgba(3, 170, 173, 0.12) 0%,
      rgba(3, 170, 173, 0) 70%
    ),
    var(--night);
  text-align: center;
}

.prologue::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -22vh;
  height: 22vh;
  background: linear-gradient(to bottom, rgba(3, 10, 10, 0), var(--night) 92%);
  pointer-events: none;
}

.prologue-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
}

.prologue-kicker {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  width: min(100%, 34rem);
}

.prologue-kicker .eyebrow {
  margin: 0;
  white-space: nowrap;
}

.rule {
  flex: 1 1 3rem;
  height: 1px;
  background: var(--line);
}

.statement {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.25rem, calc(1rem + min(4.3vw, 5.2vh)), 4.7rem);
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
}

.prologue-pillars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2.25rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- 4. Section I — The Platforms (.scent) ---------- */

.scent {
  position: relative;
  padding: clamp(5rem, 11vh, 9rem) var(--pad-x) clamp(6rem, 12vh, 10rem);
  background: var(--night);
}

.scent-head {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  padding-bottom: clamp(3.5rem, 8vh, 6.5rem);
  border-bottom: 1px solid var(--line);
}

.notes {
  list-style: none;
  margin: 0;
  padding: clamp(4.5rem, 9vh, 8rem) 0 0;
  display: flex;
  flex-direction: column;
  gap: clamp(6rem, 13vh, 11rem);
}

.note {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.25rem);
}

.note-num {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.25rem;
  color: var(--gold);
}

.note-num::after {
  content: '';
  display: inline-block;
  width: 3rem;
  height: 1px;
  background: var(--gold);
  opacity: 0.65;
}

.note-title {
  margin: 0 0 1.2rem;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2rem, calc(0.9rem + min(3.2vw, 4vh)), 3.6rem);
  line-height: 1.08;
  color: var(--ink);
  text-wrap: balance;
}

.note-meta {
  margin: 1.5rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.note-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.note-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--night-2);
}

.note-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Note I: 3:2 right-aligned scene with text overlapping its dark left edge */
.note--1 .note-media {
  grid-column: 4 / -1;
  grid-row: 1;
  aspect-ratio: 3 / 2;
}

.note--1 .note-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(3, 10, 10, 0.88) 0%,
    rgba(3, 10, 10, 0.35) 34%,
    rgba(3, 10, 10, 0) 64%
  );
  pointer-events: none;
}

.note--1 .note-copy {
  grid-column: 1 / 6;
  grid-row: 1;
  position: relative;
  z-index: 2;
  padding-block: 2rem;
}

/* Note II: Tall 4:5 portrait panel on the left, copy on right, cool moonlit glow */
.note--2::before {
  content: '';
  position: absolute;
  left: -6%;
  top: 50%;
  width: 56%;
  height: 118%;
  transform: translateY(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(3, 170, 173, 0.22) 0%,
    rgba(3, 170, 173, 0) 68%
  );
  pointer-events: none;
  z-index: 0;
}

.note--2 .note-media {
  grid-column: 1 / 6;
  grid-row: 1;
  aspect-ratio: 4 / 5;
  z-index: 1;
}

.note--2 .note-copy {
  grid-column: 7 / -1;
  grid-row: 1;
  position: relative;
  z-index: 2;
}

/* Note III: Full-bleed panoramic 21:9 band with copy vertically centered over shadowed left */
.note--3 {
  display: block;
  margin-inline: calc(50% - 50vw);
  width: 100vw;
  max-width: 1920px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.note--3 .note-media {
  width: 100%;
  height: min(42.4vw, 76vh);
  min-height: 26rem;
}

.note--3 .note-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(3, 10, 10, 0.9) 0%,
    rgba(3, 10, 10, 0.65) 38%,
    rgba(3, 10, 10, 0.12) 72%,
    rgba(3, 10, 10, 0.25) 100%
  );
  pointer-events: none;
}

.note--3 .note-copy {
  position: absolute;
  inset: 0 auto 0 var(--pad-x);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: min(32rem, 44vw);
  z-index: 2;
  padding-block: 2rem;
}

/* ---------- 5. Section II — The Craft / Architecture (.bottle) ---------- */

.bottle {
  position: relative;
  padding: clamp(6rem, 12vh, 10rem) var(--pad-x);
  background: linear-gradient(
    180deg,
    var(--night) 0%,
    var(--night-2) 50%,
    var(--night) 100%
  );
}

.bottle-grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(3rem, 6vw, 6.5rem);
  align-items: center;
}

.bottle-study {
  margin: 0;
  width: min(100%, 64vh);
  aspect-ratio: 1600 / 1986;
  overflow: hidden;
  background: var(--night);
  justify-self: center;
}

.bottle-study img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bottle-copy .body {
  margin-top: 1.5rem;
}

.anatomy {
  margin: clamp(2.5rem, 5vh, 3.75rem) 0 0;
  border-top: 1px solid var(--line);
}

.anatomy-row {
  display: grid;
  grid-template-columns: minmax(6.5rem, 9rem) 1fr;
  gap: 1.25rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.anatomy dt {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.anatomy dd {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ---------- 6. Section III — The Ritual / Advertising (.ritual) ---------- */

.ritual {
  position: relative;
  padding: clamp(5rem, 11vh, 9rem) var(--pad-x) clamp(6rem, 12vh, 10rem);
  background: linear-gradient(
    180deg,
    var(--night) 0%,
    var(--night) 62%,
    var(--navy) 100%
  );
}

.ritual-stage {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 2560 / 1086;
  background: var(--night-2);
}

.ritual-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ritual-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(3, 10, 10, 0.1) 0%,
    rgba(3, 10, 10, 0.35) 48%,
    rgba(3, 10, 10, 0.86) 76%,
    rgba(3, 10, 10, 0.94) 100%
  );
  pointer-events: none;
}

.ritual-copy {
  position: absolute;
  inset: 0 clamp(1.75rem, 5vw, 4.5rem) 0 auto;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: min(29rem, 40%);
  padding-block: 2rem;
}

.ritual-copy .body {
  margin-top: 1.25rem;
}

.ritual-copy .button {
  margin-top: 2rem;
  align-self: flex-start;
}

.ritual-steps {
  list-style: none;
  margin: clamp(3.5rem, 7vh, 5.5rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}

.ritual-step {
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.step-num {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--gold);
}

.step-title {
  margin: 0 0 0.7rem;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
  line-height: 1.2;
  color: var(--ink);
}

.step-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.68;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ---------- 7. Closing Section (.closing) ---------- */

.closing {
  --scene-h: min(max(100vh, 56.25vw), 106vh);
  position: relative;
  min-height: var(--scene-h);
  display: grid;
  align-items: center;
  justify-items: end;
  padding: clamp(5rem, 10vh, 8rem) var(--pad-x);
  background-color: var(--navy);
  overflow: hidden;
  isolation: isolate;
}

.closing-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
}

.closing-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.closing::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(5, 23, 30, 0.12) 0%,
      rgba(5, 23, 30, 0.48) 48%,
      rgba(5, 23, 30, 0.88) 82%,
      rgba(5, 23, 30, 0.94) 100%
    ),
    linear-gradient(
      180deg,
      rgba(5, 23, 30, 0.4) 0%,
      rgba(5, 23, 30, 0) 24%,
      rgba(3, 10, 10, 0) 70%,
      var(--night) 100%
    );
  pointer-events: none;
}

.closing-copy {
  position: relative;
  z-index: 2;
  max-width: min(32rem, 100%);
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.closing-wordmark {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.6rem, calc(1rem + min(5.4vw, 6.5vh)), 5.8rem);
  line-height: 0.95;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(95, 191, 150, 0.72);
  user-select: none;
}

.closing-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2rem, calc(0.9rem + min(3.4vw, 4.2vh)), 3.7rem);
  line-height: 1.08;
  color: var(--ink);
  text-wrap: balance;
}

.closing-spec {
  margin: 1.35rem 0 0;
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.closing-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.35rem;
}

/* ---------- 8. Footer (.site-footer) ---------- */

.site-footer {
  padding: clamp(3rem, 6vh, 4.5rem) var(--pad-x) clamp(2.5rem, 5vh, 3.5rem);
  background: var(--night);
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a,
.footer-links button {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color 0.35s var(--ease);
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-links button:hover,
.footer-links button:focus-visible {
  color: var(--gold);
}

.footer-fine {
  margin: 2.25rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(95, 191, 150, 0.16);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}

/* ---------- Campaign Brief Modal (<dialog>) ---------- */

.brief-dialog {
  width: min(92vw, 44rem);
  max-height: 92dvh;
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--night-2);
  color: var(--ink);
  overflow: auto;
}

.brief-dialog::backdrop {
  background: rgba(3, 10, 10, 0.84);
  backdrop-filter: blur(8px);
}

.brief-dialog[open] {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .brief-dialog {
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity 0.35s var(--ease),
      transform 0.35s var(--ease),
      display 0.35s allow-discrete,
      overlay 0.35s allow-discrete;
  }

  @starting-style {
    .brief-dialog[open] {
      opacity: 0;
      transform: translateY(16px);
    }
  }
}

.brief-inner {
  padding: clamp(1.4rem, 3vw, 2.25rem);
}

.brief-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.brief-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.1;
}

.brief-close {
  background: none;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    border-color 0.3s var(--ease),
    color 0.3s var(--ease);
}

.brief-close:hover,
.brief-close:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

.brief-form {
  display: grid;
  gap: 0.95rem;
}

.brief-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.62rem 0.85rem;
  background: rgba(3, 10, 10, 0.75);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.92rem;
  transition: border-color 0.3s var(--ease);
}

.field input[type='file'] {
  padding: 0.45rem 0.65rem;
  color: var(--ink-soft);
}

.field input[type='file']::file-selector-button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--gold);
  padding: 0.42rem 0.9rem;
  margin-right: 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.field input[type='file']::file-selector-button:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--night);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.field-hint {
  font-size: 0.75rem;
  color: var(--ink-mute);
}

.brief-status {
  margin: 0;
  font-size: 0.88rem;
  color: var(--gold);
  min-height: 1.2em;
}

.brief-submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* ---------- Motion: Reveal & Drift ---------- */

.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-drift .drift img {
  will-change: transform;
  transform: translate3d(0, var(--drift-y, 0%), 0) scale(1.08);
}

/* ---------- Responsive: Ultrawide ---------- */

@media (min-aspect-ratio: 2 / 1) and (min-width: 1600px) {
  :root {
    --hero-pad: max(var(--pad-x), calc((100vw - 200vh) / 2 + 3rem));
  }
}

/* ---------- Responsive: Portrait / Mobile (max-aspect-ratio: 23/20) ---------- */

@media (max-aspect-ratio: 23 / 20) {
  .site-header {
    padding: 1.25rem var(--gutter) 1.75rem;
  }

  .site-nav {
    gap: 1rem;
  }

  .site-nav a {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
  }

  .stage-frame {
    top: 4.5rem;
    left: 50%;
    width: 100cqw;
    height: 62cqh;
    transform: translateX(-50%);
  }

  .stage-shade {
    background:
      linear-gradient(
        180deg,
        rgba(3, 10, 10, 0.65) 0%,
        rgba(3, 10, 10, 0) 14%,
        rgba(3, 10, 10, 0) 48%,
        rgba(3, 10, 10, 0.96) 66%,
        var(--night) 100%
      );
  }

  .chapter,
  .chapter.align-end,
  .chapter--reveal {
    min-height: 92svh;
    align-items: flex-end;
    justify-content: flex-start;
    text-align: left;
    padding: 0 var(--gutter) max(5vh, 2.5rem);
  }

  .chapter.align-end .lede {
    margin-left: 0;
  }

  .chapter-inner {
    position: sticky;
    bottom: max(5vh, 2.5rem);
    max-width: min(28rem, 100%);
  }

  .scent-head,
  .bottle-grid,
  .ritual-steps,
  .brief-row {
    grid-template-columns: 1fr;
  }

  .note,
  .note--1,
  .note--2 {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .note--1 .note-media,
  .note--2 .note-media {
    width: 100%;
    aspect-ratio: 4 / 3;
    order: 1;
  }

  .note--2 .note-media {
    aspect-ratio: 4 / 5;
  }

  .note--1 .note-copy,
  .note--2 .note-copy {
    order: 2;
    padding-block: 0;
  }

  .note--3 {
    margin-inline: 0;
    width: 100%;
    left: auto;
    transform: none;
  }

  .note--3 .note-media {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .note--3 .note-media::after {
    background: linear-gradient(
      180deg,
      rgba(3, 10, 10, 0.1) 0%,
      rgba(3, 10, 10, 0.55) 100%
    );
  }

  .note--3 .note-copy {
    position: static;
    max-width: 100%;
    padding-block: 1.75rem 0;
  }

  .bottle-study {
    width: 100%;
    max-width: 28rem;
  }

  .ritual-stage {
    aspect-ratio: 4 / 3;
  }

  .ritual-stage::after {
    background: linear-gradient(
      180deg,
      rgba(3, 10, 10, 0.08) 0%,
      rgba(3, 10, 10, 0.55) 100%
    );
  }

  .ritual-copy {
    position: static;
    max-width: 100%;
    padding: 2rem 0 0;
  }

  .closing {
    justify-items: start;
    min-height: 92svh;
  }

  .closing::before {
    background: linear-gradient(
      180deg,
      rgba(5, 23, 30, 0.25) 0%,
      rgba(5, 23, 30, 0.72) 55%,
      var(--night) 100%
    );
  }

  .closing-copy {
    text-align: left;
    align-items: flex-start;
  }

  .closing-actions {
    align-items: flex-start;
  }
}

/* ---------- Reduced Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .stage {
    position: relative;
    height: 82svh;
    margin-bottom: 0;
  }

  .stage-video {
    display: none;
  }

  .stage-reveal {
    opacity: 1;
    transform: none;
  }

  .chapter,
  .chapter--3,
  .chapter--reveal {
    min-height: auto;
    padding-block: clamp(3rem, 7vh, 5rem);
  }

  .chapter-inner {
    position: static;
    opacity: 1 !important;
    transform: none !important;
  }

  .scroll-cue {
    display: none;
  }

  .js-motion .reveal {
    transform: none;
    transition: opacity 0.45s ease;
  }

  .js-drift .drift img {
    transform: none;
  }
}
