/* =========================================================================
   ZEINA — single-page scroll website
   Design system, components and scenes.
   Token source: ZEINA_SINGLE_PAGE_WEBSITE_MASTER_SPEC.md §14–§15

   1  Tokens              9  Language switch     17 Atmospheres
   2  Reset              10 Hero                 18 Journey
   3  Type               11 Luminous thread      19 Trust
   4  Layout             12 Reveal               20 Final arrival
   5  Icons              13 Recognition          21 Footer
   6  Buttons            14 Surfaces             22 Legal pages
   7  Header             15 Ritual               23 Responsive
   8  Nav                16 Privacy              24 Reduced / no-JS
   ========================================================================= */

/* ---------- 1. Tokens ---------------------------------------------------- */

:root {
  /* Palette */
  --ink-950: #241c21;
  --ink-800: #44363e;
  --bone-50: #fff9f5;
  --pearl-100: #f8eee9;
  --pearl-200: #eddcd7;
  --rose-300: #f0a7bc;
  --rose-500: #d96e94;
  --rose-700: #9b3f65;
  --plum-850: #54263c;
  --moss-700: #5b6750;
  --night-900: #18161b;

  /* Surfaces */
  --reading-surface: rgba(255, 249, 245, 0.965);
  --tonal-surface: rgba(237, 220, 215, 0.42);
  --control-glass: rgba(255, 249, 245, 0.74);
  --hairline: rgba(36, 28, 33, 0.12);
  --hairline-soft: rgba(36, 28, 33, 0.07);
  --ink-muted: rgba(68, 54, 62, 0.78);
  --ink-faint: rgba(68, 54, 62, 0.6);

  /* On-film surfaces */
  --film-text: rgba(255, 249, 245, 0.92);
  --film-line: rgba(255, 249, 245, 0.34);

  /* Elevation — four steps, never invented inline */
  --shadow-1: 0 1px 2px rgba(36, 28, 33, 0.05);
  --shadow-2: 0 1px 2px rgba(36, 28, 33, 0.05), 0 10px 24px -12px rgba(84, 38, 60, 0.32);
  --shadow-3: 0 2px 4px rgba(36, 28, 33, 0.05), 0 26px 60px -28px rgba(84, 38, 60, 0.42);
  --shadow-4: 0 4px 10px rgba(24, 22, 27, 0.14), 0 48px 96px -44px rgba(84, 38, 60, 0.62);

  /* Type */
  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype",
    "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --display-hero: clamp(3rem, 7.5vw, 8rem);
  --display-section: clamp(2.35rem, 5.4vw, 5.75rem);
  --display-quote: clamp(1.75rem, 3.5vw, 3.75rem);
  --body-large: clamp(1.0625rem, 1.4vw, 1.5rem);
  --body: clamp(1rem, 1vw, 1.125rem);
  --micro: clamp(0.75rem, 0.85vw, 0.8125rem);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --gutter: clamp(20px, 4vw, 64px);
  --content-max: 1280px;
  --reading-max: 720px;

  /* Radius */
  --r-control: 14px;
  --r-button: 18px;
  --r-card: 26px;
  --r-hero: 32px;
  --r-pill: 999px;

  /* Motion */
  --dur-instant: 120ms;
  --dur-control: 220ms;
  --dur-reveal: 520ms;
  --dur-scene: 900ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-settle: cubic-bezier(0.22, 1, 0.36, 1);

  --header-h: 72px;
}

/* ---------- 2. Reset ----------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bone-50);
  color: var(--ink-950);
  font-family: var(--font-sans);
  font-size: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, picture, svg { display: block; max-width: 100%; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--rose-700);
  outline-offset: 3px;
  border-radius: 6px;
}

/* On film, the ink ring disappears — use a bone ring instead. */
.hero :focus-visible,
.final :focus-visible,
.footer :focus-visible,
.header:not(.is-solid):not(.header--legal) :focus-visible {
  outline-color: var(--bone-50);
}

::selection { background: var(--rose-300); color: var(--ink-950); }

@supports (scrollbar-width: thin) {
  html { scrollbar-width: thin; scrollbar-color: var(--pearl-200) transparent; }
}

/* ---------- 2b. Language visibility -------------------------------------- */
/* Both languages ship in the markup. `display: contents` lets the active one
   participate in its parent's layout as if the wrapper were not there, so
   headings still balance and flex gaps still apply. Works with JS disabled:
   the document is authored `lang="en"`. */

[data-lang] { display: none; }
html[lang="en"] [data-lang="en"],
html[lang="tr"] [data-lang="tr"] { display: contents; }

/* ---------- 3. Type ------------------------------------------------------ */

.display {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 380;
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.display--hero    { font-size: var(--display-hero); }
.display--section { font-size: var(--display-section); }
.display--quote   { font-size: var(--display-quote); line-height: 1.12; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--micro);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-700);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.lede {
  font-size: var(--body-large);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 60ch;
  text-wrap: pretty;
}

.note {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-faint);
  max-width: 58ch;
  text-wrap: pretty;
}

/* ---------- 4. Layout ---------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; }
.section__pad { padding-block: clamp(96px, 13vh, 176px); }

.stack > * + * { margin-top: var(--space-6); }

.skip-link {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink-950);
  color: var(--bone-50);
  border-radius: var(--r-control);
  font-size: 0.875rem;
  box-shadow: var(--shadow-3);
  transform: translateY(-180%);
  transition: transform var(--dur-control) var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- 5. Icons ----------------------------------------------------- */

.icon {
  flex: none;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--arrow { width: 15px; height: 15px; }

/* ---------- 6. Buttons --------------------------------------------------- */

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 50px;
  padding: 13px 28px;
  border: 1px solid transparent;
  border-radius: var(--r-button);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--dur-control) var(--ease-out),
    background-color var(--dur-control) var(--ease-out),
    border-color var(--dur-control) var(--ease-out),
    box-shadow var(--dur-control) var(--ease-out),
    color var(--dur-control) var(--ease-out);
}

.btn:hover { transform: translateY(-1.5px); }
.btn:active { transform: translateY(0); transition-duration: var(--dur-instant); }

/* A single specular highlight along the top edge — the detail that stops a
   solid fill from reading as flat. Only on dark fills, where it is visible. */
.btn--primary::before,
.btn--header::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 249, 245, 0.16), rgba(255, 249, 245, 0) 55%);
}

.btn--primary {
  background: var(--ink-950);
  color: var(--bone-50);
  box-shadow: var(--shadow-2);
}
.btn--primary:hover { background: var(--plum-850); box-shadow: var(--shadow-3); }

.btn--onfilm {
  background: rgba(255, 249, 245, 0.95);
  color: var(--ink-950);
  box-shadow: var(--shadow-4);
}
.btn--onfilm:hover { background: var(--bone-50); }

.btn--quiet {
  background: transparent;
  border-color: var(--hairline);
  color: var(--ink-800);
}
.btn--quiet:hover { border-color: rgba(36, 28, 33, 0.3); background: rgba(36, 28, 33, 0.03); }

.btn--ghost-film {
  background: rgba(255, 249, 245, 0.06);
  border-color: var(--film-line);
  color: var(--bone-50);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn--ghost-film:hover {
  background: rgba(255, 249, 245, 0.14);
  border-color: rgba(255, 249, 245, 0.6);
}

.btn--lg { min-height: 56px; padding: 16px 34px; font-size: 1rem; }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: 0.875rem; }

.btn__icon { transition: transform var(--dur-control) var(--ease-out); }
.btn:hover .btn__icon { transform: translateX(3px); }

/* ---------- 7. Header ---------------------------------------------------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: var(--bone-50);
  border-bottom: 1px solid transparent;
  transition: transform var(--dur-reveal) var(--ease-out),
    background-color var(--dur-reveal) var(--ease-out),
    color var(--dur-reveal) var(--ease-out),
    border-color var(--dur-reveal) var(--ease-out);
}

.header__inner {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-4);
}

.header.is-solid,
.header--legal {
  background: var(--control-glass);
  -webkit-backdrop-filter: saturate(1.6) blur(20px);
  backdrop-filter: saturate(1.6) blur(20px);
  color: var(--ink-950);
  border-bottom-color: var(--hairline-soft);
}

.header.is-hidden { transform: translateY(-102%); }

/* Reading progress, drawn on the header's own bottom edge. */
.header__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  transform-origin: left;
  transform: scaleX(var(--page-progress, 0));
  background: linear-gradient(90deg, var(--rose-300), var(--rose-500));
  opacity: 0;
  transition: opacity var(--dur-reveal) var(--ease-out);
}
.header.is-solid .header__progress,
.header--legal .header__progress { opacity: 1; }

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 460;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
}

.header__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header .btn--header {
  min-height: 44px;
  padding: 10px 22px;
  font-size: 0.875rem;
  background: rgba(255, 249, 245, 0.92);
  color: var(--ink-950);
  box-shadow: var(--shadow-2);
}
.header.is-solid .btn--header,
.header--legal .btn--header { background: var(--ink-950); color: var(--bone-50); }
.header.is-solid .btn--header:hover,
.header--legal .btn--header:hover { background: var(--plum-850); }

/* Official App Store badge in the header. Desktop only: it cannot shrink
   below Apple's 40px minimum, so narrow viewports get the text CTA. */
.header__badge { padding: 4px; }
.header__badge img { height: 40px; width: auto; }
.header__cta { display: none; }

/* ---------- 8. Nav ------------------------------------------------------- */

.header__nav { justify-self: center; display: flex; gap: var(--space-1); }

.header__nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--space-4);
  border-radius: var(--r-control);
  font-size: 0.875rem;
  opacity: 0.8;
  transition: opacity var(--dur-control) var(--ease-out),
    background-color var(--dur-control) var(--ease-out);
}
.header__nav a:hover { opacity: 1; background: rgba(128, 100, 112, 0.1); }

/* Dot marks the section currently in view. */
.header__nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--rose-500);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity var(--dur-control) var(--ease-out),
    transform var(--dur-control) var(--ease-settle);
}
.header__nav a[aria-current="true"] { opacity: 1; }
.header__nav a[aria-current="true"]::after { opacity: 1; transform: none; }

/* ---------- 9. Language switch ------------------------------------------- */

.langswitch {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: var(--r-pill);
  border: 1px solid var(--film-line);
  background: rgba(255, 249, 245, 0.08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color var(--dur-reveal) var(--ease-out),
    background-color var(--dur-reveal) var(--ease-out);
}

.header.is-solid .langswitch,
.header--legal .langswitch,
.footer .langswitch {
  border-color: var(--hairline);
  background: rgba(36, 28, 33, 0.04);
}
.footer .langswitch { border-color: rgba(255, 249, 245, 0.18); background: rgba(255, 249, 245, 0.06); }

.langswitch__thumb {
  position: absolute;
  z-index: 0;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: var(--r-pill);
  background: rgba(255, 249, 245, 0.92);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-reveal) var(--ease-settle),
    background-color var(--dur-reveal) var(--ease-out);
}
html[lang="tr"] .langswitch__thumb { transform: translateX(100%); }

.header.is-solid .langswitch__thumb,
.header--legal .langswitch__thumb { background: var(--ink-950); }
.footer .langswitch__thumb { background: var(--bone-50); }

.langswitch__btn {
  position: relative;
  z-index: 1;
  min-width: 44px;
  min-height: 34px;
  padding-inline: var(--space-3);
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: inherit;
  opacity: 0.62;
  cursor: pointer;
  transition: opacity var(--dur-control) var(--ease-out),
    color var(--dur-control) var(--ease-out);
}
.langswitch__btn:hover { opacity: 0.9; }

html[lang="en"] .langswitch__btn[data-set-lang="en"],
html[lang="tr"] .langswitch__btn[data-set-lang="tr"] {
  opacity: 1;
  color: var(--ink-950);
}
.header.is-solid html[lang] .langswitch__btn,
.header--legal .langswitch__btn { color: inherit; }

/* Active label sits on the thumb, so it must invert with it. */
.header.is-solid .langswitch__btn[aria-pressed="true"],
.header--legal .langswitch__btn[aria-pressed="true"] { color: var(--bone-50); }
.footer .langswitch__btn[aria-pressed="true"] { color: var(--ink-950); }

@media (pointer: coarse) {
  .langswitch__btn { min-height: 40px; }
}

/* ---------- 10. Hero ----------------------------------------------------- */

.hero {
  position: relative;
  height: 260vh;
  background: var(--night-900);
}

.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 540px;
  overflow: hidden;
  display: grid;
  isolation: isolate;
}

.hero__layer { grid-area: 1 / 1; position: relative; width: 100%; height: 100%; }

.hero__poster,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__video {
  z-index: 1;
  opacity: 0;
  transition: opacity var(--dur-scene) var(--ease-out);
}
.hero.is-film-ready .hero__video { opacity: 1; }

.hero__scrim {
  z-index: 2;
  pointer-events: none;
  background:
    /* Listed first so it paints over the copy scrims: the film resolves into
       the pearl reading surface of the next section, leaving no cut edge and
       no dark band between them (spec §6). */
    linear-gradient(0deg, var(--pearl-100) 0%, rgba(248, 238, 233, 0) 18%),
    linear-gradient(180deg, rgba(24, 22, 27, 0.6) 0%, rgba(24, 22, 27, 0) 26%),
    linear-gradient(95deg, rgba(24, 22, 27, 0.84) 0%, rgba(36, 28, 33, 0.52) 34%,
      rgba(36, 28, 33, 0.08) 62%, rgba(36, 28, 33, 0) 78%),
    linear-gradient(0deg, rgba(24, 22, 27, 0.34) 0%, rgba(24, 22, 27, 0) 28%);
}

.hero__wash {
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: soft-light;
  opacity: 0.5;
  background:
    radial-gradient(70% 55% at 76% 42%, rgba(240, 167, 188, 0.5), transparent 70%),
    radial-gradient(60% 60% at 12% 84%, rgba(248, 238, 233, 0.3), transparent 72%);
}

.hero__grain {
  z-index: 4;
  pointer-events: none;
  opacity: 0.28;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.4'/></svg>");
  background-size: 160px 160px;
}

.hero__copy {
  z-index: 5;
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + var(--space-8)) var(--space-16);
}
.hero__copy .shell { width: 100%; }
.hero__col { max-width: 39rem; color: var(--bone-50); }

.hero__states { position: relative; display: grid; }

.hero__state {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(12px);
  /* visibility keeps inactive states out of the tab order and away from
     screen readers without JS having to manage focus */
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out),
    visibility 0s linear var(--dur-reveal);
}
.hero__state.is-active {
  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.hero__eyebrow { color: var(--rose-300); margin-bottom: var(--space-5); }

.hero__heading {
  color: var(--bone-50);
  text-shadow: 0 1px 40px rgba(24, 22, 27, 0.5);
}

.hero__body {
  margin-top: var(--space-6);
  font-size: var(--body-large);
  line-height: 1.5;
  color: var(--film-text);
  max-width: 34ch;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.hero__support .hero__heading { max-width: 15ch; }
.hero__support .hero__body { max-width: 32ch; }

.hero__cue {
  position: absolute;
  z-index: 6;
  left: 50%;
  /* sits above the pearl fade at the foot of the scene, so bone stays legible */
  bottom: clamp(96px, 14vh, 150px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 249, 245, 0.74);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: opacity var(--dur-reveal) var(--ease-out);
}
.hero__cue-rail {
  position: relative;
  width: 1px;
  height: 46px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 249, 245, 0.06), rgba(255, 249, 245, 0.5));
}
.hero__cue-rail::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 14px;
  background: var(--rose-300);
  animation: cue-fall 2.6s var(--ease-in-out) infinite;
}
@keyframes cue-fall {
  0%   { transform: translateY(-16px); opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: translateY(48px); opacity: 0; }
}

.hero__progress {
  position: absolute;
  z-index: 6;
  right: clamp(14px, 2.4vw, 32px);
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: clamp(96px, 18vh, 168px);
  border-radius: 2px;
  background: rgba(255, 249, 245, 0.18);
  overflow: hidden;
}
.hero__progress::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 100%;
  transform-origin: top;
  transform: scaleY(var(--hero-progress, 0));
  background: linear-gradient(180deg, var(--rose-300), var(--bone-50));
}

/* ---------- 11. Luminous thread ------------------------------------------ */

.thread {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.thread path {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: var(--thread-len, 1400);
  stroke-dashoffset: calc(var(--thread-len, 1400) * (1 - var(--thread-draw, 0)));
}

.thread__ink { stroke: rgba(155, 63, 101, 0.3); stroke-width: 1.25; }
.thread__light {
  stroke: rgba(240, 167, 188, 0.92);
  stroke-width: 1.75;
  filter: drop-shadow(0 0 6px rgba(240, 167, 188, 0.5));
}

/* ---------- 12. Reveal --------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-scene) var(--ease-out),
    transform var(--dur-scene) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 13. Recognition ---------------------------------------------- */

.recognition {
  overflow: hidden;
  /* Picks up exactly where the hero fade lands, then opens into bone. */
  background: linear-gradient(180deg, var(--pearl-100) 0%, var(--bone-50) 46%);
}

.recognition__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.fragments {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3vw, 34px);
  padding-block: var(--space-8);
}

.fragment {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink-800);
  transition: opacity var(--dur-scene) var(--ease-out),
    transform var(--dur-scene) var(--ease-out);
}

.fragment:nth-child(2) { margin-left: clamp(16px, 5%, 56px); }
.fragment:nth-child(3) { margin-left: clamp(8px, 2.5%, 28px); }

.fragment[data-recede] {
  opacity: calc(1 - (var(--recede, 0) * 0.72));
  transform: translateY(calc(var(--recede, 0) * -14px));
}

.fragment--held {
  position: relative;
  padding-left: var(--space-6);
  color: var(--ink-950);
  font-size: clamp(1.6rem, 3.1vw, 2.9rem);
}
.fragment--held::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 2px;
  background: linear-gradient(180deg, var(--rose-300), rgba(240, 167, 188, 0));
}

/* ---------- 14. Surfaces -------------------------------------------------- */

.surface {
  background: var(--reading-surface);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-3);
}
.surface__pad { padding: clamp(24px, 3.4vw, 48px); }

/* ---------- 15. Ritual ---------------------------------------------------- */

.ritual {
  height: 210vh;
  background: linear-gradient(180deg, var(--bone-50), var(--pearl-100) 55%, var(--bone-50));
}

.ritual__sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + var(--space-8)) var(--space-12);
}

.ritual__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  width: 100%;
}

/* Step list with a rail that fills as the scene advances. */
.steps {
  position: relative;
  margin-top: var(--space-8);
  padding-left: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: 0;
  width: 2px;
  border-radius: 2px;
}
.steps::before { top: 6px; bottom: 6px; background: var(--hairline-soft); }
.steps::after {
  top: 6px;
  height: calc((100% - 12px) / 3);
  background: linear-gradient(180deg, var(--rose-300), var(--rose-500));
  transform: translateY(calc(var(--step-index, 0) * 100%));
  transition: transform var(--dur-reveal) var(--ease-settle);
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: baseline;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--r-control);
  border: 1px solid transparent;
  opacity: 0.42;
  transition: background-color var(--dur-reveal) var(--ease-out),
    border-color var(--dur-reveal) var(--ease-out),
    opacity var(--dur-reveal) var(--ease-out);
}
.step.is-active {
  opacity: 1;
  background: rgba(255, 249, 245, 0.92);
  border-color: var(--hairline-soft);
  box-shadow: var(--shadow-1);
}

.step__index {
  font-size: var(--micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--rose-700);
  font-variant-numeric: tabular-nums;
}

.step__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--ink-950);
}
.step__copy { display: block; margin-top: 2px; font-size: 0.9375rem; color: var(--ink-muted); }

/* Editorial viewport — product surface without a device frame (spec §7.2) */
.viewport {
  position: relative;
  aspect-ratio: 380 / 500;
  width: min(100%, 460px);
  margin-inline: auto;
  border-radius: var(--r-hero);
  background: linear-gradient(168deg, #2e1b26 0%, var(--plum-850) 52%, #3d1e2f 100%);
  box-shadow: var(--shadow-4);
  overflow: hidden;
  isolation: isolate;
}
.viewport::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(80% 50% at 50% 0%, rgba(240, 167, 188, 0.22), transparent 72%);
}

.viewport__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-5);
  padding: clamp(24px, 5%, 40px);
  color: var(--bone-50);
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  pointer-events: none;
  transition: opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-settle);
}
.viewport__panel.is-active { opacity: 1; transform: none; }

.viewport__label {
  font-size: var(--micro);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240, 167, 188, 0.95);
}

.viewport__q {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
}

.chips { display: flex; flex-direction: column; gap: var(--space-3); }

.chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 48px;
  padding: 14px 18px;
  border-radius: var(--r-control);
  border: 1px solid rgba(255, 249, 245, 0.18);
  background: rgba(255, 249, 245, 0.07);
  font-size: 0.9375rem;
  transition: opacity var(--dur-reveal) var(--ease-out),
    background-color var(--dur-control) var(--ease-out),
    border-color var(--dur-control) var(--ease-out);
}
.chip__mark {
  width: 16px;
  height: 16px;
  opacity: 0;
  color: var(--rose-300);
  transition: opacity var(--dur-control) var(--ease-out);
}
.chip.is-chosen {
  background: rgba(255, 249, 245, 0.16);
  border-color: rgba(240, 167, 188, 0.6);
}
.chip.is-chosen .chip__mark { opacity: 1; }
.chip.is-dissolved { opacity: 0.18; }

.clarity {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--reading-surface);
  color: var(--ink-950);
  padding: clamp(22px, 4.5%, 32px);
}
.clarity__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.clarity__line { margin-top: var(--space-3); font-size: 0.9375rem; color: var(--ink-muted); }
.clarity__thread {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rose-300), transparent);
}

.demo-note {
  margin-top: var(--space-5);
  font-size: 0.8125rem;
  color: var(--ink-faint);
  text-align: center;
}

/* ---------- 16. Privacy --------------------------------------------------- */

.privacy-scene {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bone-50), #f6e9e6 40%, var(--pearl-100));
}

.privacy__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.proof { display: grid; gap: var(--space-3); margin-top: var(--space-8); }

.proof li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4) var(--space-5);
  background: rgba(255, 249, 245, 0.78);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--r-control);
  font-size: 0.9375rem;
  box-shadow: var(--shadow-1);
}

.proof__tick {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(240, 167, 188, 0.24);
  color: var(--rose-700);
}
.proof__tick .icon { width: 13px; height: 13px; stroke-width: 2; }

.horizons {
  position: relative;
  aspect-ratio: 1 / 1;
  width: min(100%, 520px);
  margin-inline: auto;
}
.horizons svg { width: 100%; height: 100%; overflow: visible; }
.horizons__labels { position: absolute; inset: 0; pointer-events: none; }

.horizon-label {
  position: absolute;
  font-size: var(--micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.horizon-label--1 { left: 2%;  top: 26%; }
.horizon-label--2 { left: 10%; top: 50%; }
.horizon-label--3 { left: 18%; top: 74%; }

.memory {
  margin-top: clamp(56px, 8vh, 104px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}

/* ---------- 17. Atmospheres ----------------------------------------------- */

.atmospheres { background: linear-gradient(180deg, var(--pearl-100), var(--bone-50)); }

.atmo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: clamp(40px, 6vh, 72px);
}

.atmo {
  position: relative;
  isolation: isolate;
  min-height: clamp(320px, 46vh, 460px);
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  padding: var(--space-6);
  color: var(--bone-50);
  border: 1px solid var(--hairline-soft);
  cursor: pointer;
  transition: box-shadow var(--dur-reveal) var(--ease-out),
    border-color var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out);
}

.atmo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--atmo-bg);
  transition: transform var(--dur-scene) var(--ease-out);
}
.atmo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(24, 22, 27, 0) 38%, rgba(24, 22, 27, 0.72) 100%);
}

.atmo:hover::before,
.atmo:focus-visible::before { transform: scale(1.04); }
.atmo:hover { transform: translateY(-2px); }

.atmo[aria-pressed="true"] {
  border-color: rgba(240, 167, 188, 0.85);
  box-shadow: 0 0 0 1px rgba(240, 167, 188, 0.55), var(--shadow-3);
}

.atmo__badge {
  position: absolute;
  top: var(--space-5);
  left: var(--space-5);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 249, 245, 0.94);
  color: var(--ink-950);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--dur-control) var(--ease-out),
    transform var(--dur-control) var(--ease-settle);
}
.atmo__badge .icon { width: 12px; height: 12px; stroke-width: 2.2; }
.atmo[aria-pressed="true"] .atmo__badge { opacity: 1; transform: none; }

.atmo__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.16;
  letter-spacing: -0.015em;
}
.atmo__feel { margin-top: 6px; font-size: 0.875rem; color: rgba(255, 249, 245, 0.84); }

.atmo--canopy { --atmo-bg: radial-gradient(120% 90% at 20% 12%, #7b8a6c 0%, #46523d 46%, #232a20 100%); }
.atmo--rose   { --atmo-bg: radial-gradient(120% 90% at 76% 18%, #f0a7bc 0%, #b7597e 44%, #4b2033 100%); }
.atmo--moon   { --atmo-bg: radial-gradient(110% 90% at 34% 14%, #efe2ea 0%, #8e6a84 38%, #3a1c33 100%); }
.atmo--pearl  { --atmo-bg: linear-gradient(168deg, #fff9f5 0%, #eddcd7 52%, #cbb1ac 100%); }

.atmo--pearl { color: var(--ink-950); }
.atmo--pearl::after {
  background: linear-gradient(180deg, rgba(255, 249, 245, 0) 40%, rgba(255, 249, 245, 0.74) 100%);
}
.atmo--pearl .atmo__feel { color: var(--ink-muted); }

/* ---------- 18. Journey ---------------------------------------------------- */

.journey {
  overflow: hidden;
  background: linear-gradient(180deg, var(--bone-50), var(--pearl-100) 62%, var(--pearl-200));
}

.journey__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.nights {
  position: relative;
  border-radius: var(--r-card);
  background: rgba(255, 249, 245, 0.82);
  border: 1px solid var(--hairline-soft);
  padding: clamp(24px, 3.4vw, 40px);
  box-shadow: var(--shadow-2);
}
.nights svg { width: 100%; height: auto; overflow: visible; }

.nights__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-top: var(--space-6);
  font-size: 0.8125rem;
  color: var(--ink-faint);
}
.nights__legend span { display: inline-flex; align-items: center; gap: var(--space-2); }
.nights__key { width: 8px; height: 8px; border-radius: 50%; }
.nights__key--kept { background: var(--rose-500); }
.nights__key--open { background: transparent; border: 1px solid rgba(155, 63, 101, 0.45); }

/* ---------- 19. Trust ------------------------------------------------------ */

.trust { background: var(--pearl-200); }

.trust__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(40px, 6vh, 64px);
}

.principle {
  font-family: var(--font-display);
  font-size: var(--display-quote);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--ink-950);
  max-width: 18ch;
  text-wrap: balance;
}

.boundary {
  border-left: 2px solid rgba(155, 63, 101, 0.32);
  padding-left: var(--space-6);
  font-size: var(--body-large);
  line-height: 1.5;
  color: var(--ink-800);
  max-width: 46ch;
  text-wrap: pretty;
}

/* ---------- 20. Final arrival ---------------------------------------------- */

.final {
  position: relative;
  min-height: 150vh;
  background: var(--night-900);
}

.final__sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  isolation: isolate;
  overflow: hidden;
}

/* All three layers share one grid cell, so each needs an explicit position
   and z-index — otherwise the positioned artwork paints over the scrim. */
.final__art { grid-area: 1 / 1; position: relative; z-index: 0; }

.final__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(calc(1.14 - (var(--final-progress, 0) * 0.1)))
    translateY(calc((1 - var(--final-progress, 0)) * 2%));
  transition: transform 260ms linear;
}

.final__scrim {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(24, 22, 27, 0.74) 0%,
    rgba(24, 22, 27, 0.32) 34%, rgba(24, 22, 27, 0.88) 100%);
}

.final__content {
  grid-area: 1 / 1;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: calc(var(--header-h) + var(--space-8)) var(--space-16);
  color: var(--bone-50);
}

.final__inner {
  max-width: 44rem;
  margin-inline: auto;
  display: grid;
  justify-items: center;
  gap: var(--space-6);
}
.final__inner .eyebrow { color: var(--rose-300); justify-content: center; }
.final__inner .lede { color: var(--film-text); text-align: center; }

.final__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  margin-top: var(--space-3);
}
.final__privacy { font-size: 0.875rem; color: rgba(255, 249, 245, 0.72); }

/* Official App Store badge — never restyled, animated or tinted (spec §22) */
.appstore-badge {
  display: inline-block;
  line-height: 0;
  padding: 6px; /* required clear space */
  border-radius: 10px;
}
.appstore-badge img { height: 52px; width: auto; }
.appstore-badge:hover img { transform: none; }

/* ---------- 21. Footer ------------------------------------------------------ */

.footer {
  background: var(--night-900);
  color: rgba(255, 249, 245, 0.74);
  padding-block: clamp(56px, 8vh, 88px) clamp(32px, 5vh, 48px);
  font-size: 0.875rem;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding-bottom: clamp(32px, 5vh, 56px);
  border-bottom: 1px solid rgba(255, 249, 245, 0.12);
}

.footer .wordmark { color: var(--bone-50); }
.footer__tagline { margin-top: var(--space-4); max-width: 34ch; line-height: 1.6; }
.footer__lang { margin-top: var(--space-6); }

.footer__links { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 72px); }
.footer__col { display: grid; gap: var(--space-2); align-content: start; }

.footer__col h2 {
  margin-bottom: var(--space-1);
  font-size: var(--micro);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 249, 245, 0.46);
}

.footer__col a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 34px;
  transition: color var(--dur-control) var(--ease-out);
}
.footer__col a:hover { color: var(--bone-50); }
.footer__col a .icon { width: 12px; height: 12px; opacity: 0.5; }

.footer__bottom {
  padding-top: clamp(24px, 4vh, 40px);
  display: grid;
  gap: var(--space-4);
  font-size: 0.8125rem;
  color: rgba(255, 249, 245, 0.54);
}
.footer__legal { max-width: 70ch; line-height: 1.65; }
.footer__meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }

/* ---------- 22. Legal pages -------------------------------------------------- */

.legal { background: var(--bone-50); }

.legal__head {
  padding-block: calc(var(--header-h) + clamp(56px, 10vh, 120px)) clamp(32px, 5vh, 56px);
  border-bottom: 1px solid var(--hairline-soft);
}

.legal__body { padding-block: clamp(40px, 7vh, 72px) clamp(72px, 12vh, 128px); }

.legal__layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.legal__toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 2px;
  font-size: 0.875rem;
}
.legal__toc a {
  display: block;
  padding: 6px 12px;
  border-radius: var(--r-control);
  color: var(--ink-faint);
  transition: color var(--dur-control) var(--ease-out),
    background-color var(--dur-control) var(--ease-out);
}
.legal__toc a:hover { color: var(--ink-950); background: rgba(36, 28, 33, 0.04); }

.legal__meta {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

.prose { max-width: var(--reading-max); }
.prose > * + * { margin-top: var(--space-5); }
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.018em;
  margin-top: clamp(40px, 6vh, 64px);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose h3 { font-size: 1.0625rem; font-weight: 600; margin-top: var(--space-8); }
.prose p, .prose li { color: var(--ink-muted); line-height: 1.7; text-wrap: pretty; }
.prose ul { display: grid; gap: var(--space-3); padding-left: var(--space-5); list-style: disc; }
.prose li::marker { color: var(--rose-500); }
.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(155, 63, 101, 0.4);
  transition: text-decoration-color var(--dur-control) var(--ease-out);
}
.prose a:hover { text-decoration-color: var(--rose-700); }
.prose strong { color: var(--ink-950); font-weight: 600; }

.callout {
  background: rgba(240, 167, 188, 0.12);
  border: 1px solid rgba(240, 167, 188, 0.4);
  border-radius: var(--r-control);
  padding: var(--space-5) var(--space-6);
}
.callout p { color: var(--ink-800); }

.backlink {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-12);
  color: var(--ink-800);
}
.backlink .icon { transition: transform var(--dur-control) var(--ease-out); }
.backlink:hover .icon { transform: translateX(-3px); }

/* ---------- 23. Responsive ---------------------------------------------------- */

@media (max-width: 1024px) {
  .atmo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal__layout { grid-template-columns: 1fr; }
  .legal__toc { position: static; display: flex; flex-wrap: wrap; gap: var(--space-1); }
}

@media (max-width: 900px) {
  :root { --header-h: 62px; }

  .header__nav { display: none; }
  .header__inner { grid-template-columns: 1fr auto; }
  .header__badge { display: none; }
  .header__cta { display: inline-flex; }

  .hero { height: 220vh; }
  .hero__copy {
    align-items: flex-start;
    padding-top: calc(var(--header-h) + clamp(20px, 7vh, 64px));
  }
  .hero__col { max-width: none; }
  .hero__body { max-width: 30ch; }
  .hero__progress { display: none; }

  .recognition__grid,
  .ritual__grid,
  .privacy__grid,
  .journey__grid,
  .memory,
  .trust__grid { grid-template-columns: minmax(0, 1fr); }

  .ritual { height: auto; }
  .ritual__sticky { position: static; min-height: 0; padding-block: 0; }
  .ritual__grid { gap: var(--space-12); }
  .viewport { order: -1; }

  .final { min-height: 115vh; }
  .footer__top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  /* Native horizontal snap gallery — no auto carousel (spec §9.2) */
  .atmo-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: var(--space-4);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .atmo-grid::-webkit-scrollbar { display: none; }
  .atmo { scroll-snap-align: start; min-height: 340px; }

  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
}

@media (max-width: 420px) {
  .header__actions { gap: var(--space-2); }
  .langswitch__btn { min-width: 38px; padding-inline: var(--space-2); }
  .header .btn--header { padding-inline: 16px; }
}

@media (max-height: 620px) and (min-width: 901px) {
  .hero__cue { display: none; }
}

/* Where two light sections meet there is no colour change to carry the
   break, so a full pad on both sides reads as dead space. */
.privacy-scene .section__pad,
.atmospheres .section__pad,
.journey .section__pad { padding-block: clamp(72px, 9vh, 124px); }
.privacy-scene .section__pad { padding-top: clamp(96px, 13vh, 176px); }
.trust .section__pad { padding-top: clamp(72px, 9vh, 124px); }

/* ---------- 24. Reduced motion / no JS ----------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 180ms !important;
  }
}

/* Applied by JS for reduced motion *or* Save-Data (spec §5.8, §19) */
.reduced .hero { height: auto; min-height: 100svh; }
.reduced .hero__sticky { position: static; height: auto; min-height: 100svh; }
.reduced .hero__video { display: none; }
.reduced .hero__cue { display: none; }
.reduced .hero__progress { display: none; }
.reduced .hero__support { display: none; }
.reduced .hero__state[data-state="a"] { opacity: 1; transform: none; visibility: visible; }

.reduced .ritual { height: auto; }
.reduced .ritual__sticky { position: static; min-height: 0; padding-block: 0; }
.reduced .step { opacity: 1; background: rgba(255, 249, 245, 0.92); border-color: var(--hairline-soft); }
.reduced .steps::after { display: none; }
.reduced .viewport { aspect-ratio: auto; }
.reduced .viewport__panel { position: static; opacity: 1; transform: none; }
.reduced .chip.is-dissolved { opacity: 1; }
.reduced .fragment[data-recede] { opacity: 1; transform: none; }
.reduced .thread path { stroke-dashoffset: 0; }
.reduced .final { min-height: 0; }
.reduced .final__sticky { position: static; }
.reduced .final__art img { transform: none; }
.reduced .reveal { opacity: 1; transform: none; }
.reduced .atmo:hover { transform: none; }

/* No JS: everything legible, nothing depends on scroll (spec §23) */
.no-js .hero { height: auto; min-height: 100svh; }
.no-js .hero__sticky { position: static; height: auto; min-height: 100svh; }
.no-js .hero__video { display: none; }
.no-js .hero__support { display: none; }
.no-js .hero__cue { display: none; }
.no-js .hero__progress { display: none; }
.no-js .hero__state[data-state="a"] { opacity: 1; transform: none; visibility: visible; }
.no-js .ritual { height: auto; }
.no-js .ritual__sticky { position: static; min-height: 0; padding-block: 0; }
.no-js .step { opacity: 1; }
.no-js .steps::after { display: none; }
.no-js .viewport { aspect-ratio: auto; }
.no-js .viewport__panel { position: static; opacity: 1; transform: none; }
.no-js .final { min-height: 0; }
.no-js .final__sticky { position: static; }
.no-js .thread { display: none; }
/* The switcher needs JS; without it the document stays in its authored language. */
.no-js .langswitch { display: none; }

@media print {
  .header, .hero__video, .thread, .hero__cue, .hero__progress { display: none !important; }
  body { background: #fff; color: #000; }
}
