/* ============================================================
   FLOTARIUM — v2 upgrade layer
   Editorial dark-luxury. Loaded AFTER styles.css (overrides + new sections).
   Applies the $10K checklist: editorial type, breathing motion,
   scroll-storytelling hero, pinned horizontal ritual, parallax,
   designed-for-mobile layouts, a11y.
   ============================================================ */

/* ---------- Skip link (a11y) ---------- */
.skip-link {
  position: fixed; left: 50%; top: 14px; transform: translate(-50%, -160%);
  z-index: 99999; background: var(--accent-deep); color: #fff;
  padding: 12px 22px; border-radius: 100px; font-family: var(--font-mono);
  font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  transition: transform .35s var(--ease-out);
}
.skip-link:focus-visible { transform: translate(-50%, 0); outline-offset: 4px; }

/* ---------- Editorial display tuning (Cormorant runs high-contrast) ---------- */
[data-display="editorial"] .display { line-height: 1.0; }
[data-display="editorial"] .hero-h1-sr,
[data-display="editorial"] .hp-resolve h1,
[data-display="editorial"] .hero-cine-h1 { letter-spacing: -0.02em; }
.display em { font-style: italic; }

/* ============================================================
   BREATHING REVEAL  (replaces translateY fade)
   Base = visible. Hidden state only under html.anim (set by app.js).
   ============================================================ */
.reveal { transition: opacity 1.15s var(--ease-out), transform 1.15s var(--ease-out), filter 1.15s var(--ease-out); }
html.anim .reveal { opacity: 0; transform: translateY(22px) scale(0.985); filter: blur(9px); }
html.anim .reveal.in { opacity: 1; transform: none; filter: blur(0); }
.reveal.d1 { transition-delay: .10s; }
.reveal.d2 { transition-delay: .20s; }
.reveal.d3 { transition-delay: .30s; }
.reveal.d4 { transition-delay: .40s; }
[data-motion="off"] .reveal { opacity: 1 !important; transform: none !important; filter: none !important; transition: none; }

/* ============================================================
   HERO — shared cinematic stage + 3 variants
   ============================================================ */
.hero { display: block; min-height: 100svh; position: relative; }
.hero-viewport { position: relative; min-height: 100svh; overflow: hidden; display: flex; }
.hero-viewport > .hero-stage { flex: 1; }
.hero .hero-bg { z-index: 0; }

/* pinned story: section grows, viewport sticks to the top */
.hero.is-pinned { height: var(--hero-len, 340vh); }
.hero.is-pinned .hero-viewport { position: sticky; top: 0; height: 100svh; min-height: 0; }

/* full-bleed photo behind halos; only assertive once a real photo is dropped */
.hero-photo {
  position: absolute !important; inset: 0; width: 100%; height: 100%;
  border: 0 !important; border-radius: 0 !important; background: transparent !important;
  z-index: 0; opacity: 0; transition: opacity 1.2s var(--ease);
  will-change: transform;
}
.hero-photo::part(empty) { opacity: 0; }            /* never show stripe placeholder as bg */
.hero:has(.hero-photo[data-filled]) .hero-photo { opacity: 0.5; }
.hero:has(.hero-photo[data-filled]) .hero-bg .halo { opacity: 0.5; }
.hero:has(.hero-photo[data-filled]) .hero-bg .vignette {
  background: radial-gradient(125% 100% at 50% 0%, rgba(6,17,27,0.25) 30%, var(--bg) 96%);
}

/* ---- immersive cinematic background stack ---- */
[data-hero="immersive"] .hero:has(.hero-photo[data-filled]) .hero-photo,
[data-hero="immersive"] .hero-photo[data-filled] { opacity: 0.62; }

.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: 0; opacity: 0; transition: opacity 1.6s var(--ease);
  pointer-events: none; will-change: transform;
}
[data-hero="immersive"] .hero-video.is-ready { opacity: 0.72; }
[data-hero="immersive"] .hero:has(.hero-video.is-ready) .hero-photo { opacity: 0; }

/* cinematic legibility grade — darker toward the bottom-left where text sits */
.hero-cinegrade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4,12,20,0.78) 0%, rgba(4,12,20,0.42) 38%, rgba(4,12,20,0) 70%),
    linear-gradient(0deg, rgba(4,12,20,0.92) 0%, rgba(4,12,20,0.30) 30%, rgba(4,12,20,0) 58%);
}
/* fine film grain for texture */
.hero-grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* slow Ken Burns drift on the cinematic backdrop */
@media (prefers-reduced-motion: no-preference) {
  [data-motion="on"][data-hero="immersive"] .hero-photo,
  [data-motion="on"][data-hero="immersive"] .hero-video { animation: heroKenBurns 26s var(--ease) infinite alternate; }
}
@keyframes heroKenBurns {
  0%   { transform: scale(1.06) translate3d(0, 0, 0); }
  100% { transform: scale(1.18) translate3d(-1.5%, -2.2%, 0); }
}

/* ---- full-bleed responsive hero PHOTO (replaces image-slot/video) ---- */
.hero-figure { position: absolute; inset: 0; z-index: 0; display: block; overflow: hidden; }
.hero-figure img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 56% 42%;
  transform-origin: 62% 46%; will-change: transform;
  transition: transform .12s linear;
}
/* with a real photo present, settle the decorative halos back so the image reads */
.hero:has(.hero-figure) .hero-bg .halo { opacity: 0.24; }
.hero:has(.hero-figure) .hero-bg .halo.h3 { opacity: 0.18; }
.hero:has(.hero-figure) .hero-bg .vignette {
  background: radial-gradient(135% 105% at 50% -4%, rgba(6,15,29,0.10) 32%, var(--bg) 97%);
}
.hero:has(.hero-figure) .orbit-motif { opacity: 0.22; }

/* stage = a single hero variant block */
.hero-stage { display: none; position: relative; z-index: 2; min-height: 100svh; will-change: transform; }
[data-hero="photo"]     [data-hero-block="photo"],
[data-hero="immersive"] [data-hero-block="immersive"],
[data-hero="cinematic"] [data-hero-block="cinematic"] { display: flex; }

.hero-stage .hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

/* ---- Variant A: scroll storytelling ---- */
[data-hero-block="story"] { align-items: flex-end; padding-bottom: clamp(40px, 6vw, 84px); }
.hero-tag { margin-bottom: clamp(18px, 3vw, 28px); }

.hero-phrases { display: none; position: relative; min-height: clamp(180px, 34vh, 360px); margin-bottom: 8px; }
.hero.is-pinned .hero-phrases { display: block; }
.hero.is-pinned .hero-h1-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.hp { position: absolute; left: 0; bottom: 0; width: 100%; opacity: 0; transform: translateY(26px); filter: blur(10px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out); pointer-events: none; }
.hp.active { opacity: 1; transform: none; filter: blur(0); pointer-events: auto; }
.hp-word { display: block; font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--step-5); line-height: 0.92; letter-spacing: -0.02em; color: var(--text); }
.hp-line { display: block; font-size: var(--step-1); color: var(--text-dim); margin-top: 0.5em; max-width: 30ch; text-wrap: pretty; }
.hp-resolve h1 { font-size: var(--step-5); margin: 0; }

/* lede/cta/stats: in pinned mode they fade in at resolve */
.hero-h1-sr { font-size: var(--step-5); margin: 0 0 0.2em; }
[data-hero-block="story"] .sub { max-width: 48ch; margin-top: clamp(20px, 3vw, 30px); }
[data-hero-block="story"] .hero-cta { margin-top: clamp(24px, 4vw, 38px); }

/* PINNED STORY: phrases become the vertically-centred centrepiece, the
   resolve group (lede/cta/stats) is lifted out of flow and anchored to the
   bottom so it can never push the active word off a short viewport. */
.hero.is-pinned [data-hero-block="story"] { align-items: stretch; padding-bottom: 0; }
.hero.is-pinned [data-hero-block="story"] .hero-inner {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 100svh; padding-block: clamp(96px, 15vh, 150px) clamp(112px, 20vh, 200px);
}
.hero.is-pinned [data-hero-block="story"] .hero-tag { margin-bottom: clamp(14px, 2.4vw, 22px); }
.hero.is-pinned [data-hero-block="story"] .hero-phrases { margin-bottom: 0; }

.hero.is-pinned .hero-resolve {
  position: absolute; left: var(--gut); right: var(--gut); bottom: clamp(40px, 7vh, 84px);
  max-width: var(--maxw); margin-inline: auto;
  opacity: 0; transform: translateY(18px); pointer-events: none;
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.hero.is-pinned [data-hero-block="story"] .sub { margin-top: 0; }
.hero.is-pinned.show-resolve .hero-resolve { opacity: 1; transform: none; pointer-events: auto; }

/* stats as a semantic dl */
.stats { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 60px); margin-top: clamp(40px, 6vw, 64px); padding-top: 26px; border-top: 1px solid var(--line); }
.stat { margin: 0; }
.stats--compact { gap: clamp(20px, 3vw, 40px); margin-top: 34px; padding-top: 22px; }

/* scroll cue */
.hero-scrollcue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-mute); }
.hero-scrollcue .sc-line { width: 1px; height: 42px; background: linear-gradient(var(--accent), transparent); position: relative; overflow: hidden; }
.hero-scrollcue .sc-line::after { content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: var(--accent); animation: scue 2.2s var(--ease) infinite; }
.hero.is-pinned.show-resolve .hero-scrollcue { opacity: 0; transition: opacity .5s; }
[data-motion="off"] .hero-scrollcue .sc-line::after { animation: none; }
@keyframes scue { 0% { top: -50%; } 60%,100% { top: 100%; } }

/* ---- Variant B: cinematic minimal ---- */
.hero-cinematic { align-items: center; }
.hero-cine-h1 { font-size: clamp(3.6rem, 2rem + 9vw, 10rem); line-height: 0.92; margin: 0.12em 0 0.5em; }
.hero-cine-h1 em { color: var(--accent); }
.hero-cine-foot { position: absolute; left: var(--gut); bottom: clamp(28px, 4vw, 50px); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); }
.hero-cinematic .hero-cta { margin-top: 6px; }

/* ---- Variant C: editorial split ---- */
.hero-editorial { align-items: stretch; padding-top: clamp(96px, 12vh, 150px); }
.hero-split { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hes-text { display: grid; gap: clamp(18px, 2.4vw, 28px); align-content: center; }
.hes-text h1 { font-size: clamp(2.6rem, 1.6rem + 4.5vw, 5.4rem); line-height: 0.98; }
.hes-text h1 em { color: var(--accent); }
.hes-text .lede { max-width: 42ch; }
.hes-figure { position: relative; }
.hes-figure image-slot { width: 100%; height: clamp(420px, 70vh, 760px); }

/* ============================================================
   HERO — Variant «Фото» · PHOTO-FORWARD (default)
   Restrained text block sitting in the photo's left negative space.
   ============================================================ */
[data-hero-block="photo"] { align-items: center; padding-block: clamp(104px, 15vh, 168px) clamp(118px, 16vh, 180px); }
[data-hero-block="photo"] .hero-inner { display: flex; }
.hpv-text { display: flex; flex-direction: column; align-items: flex-start; max-width: 30ch; }
[data-hero-block="photo"] .hero-tag { display: inline-flex; align-items: center; gap: 14px; margin-bottom: clamp(20px, 3vw, 30px); }
[data-hero-block="photo"] .hero-tag .tag-line { width: clamp(28px, 5vw, 56px); height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }

.hpv-h1 { font-size: clamp(2.5rem, 1.1rem + 5vw, 6rem); line-height: 0.98; letter-spacing: -0.022em; margin: 0; }
.hpv-h1 .ln { display: block; overflow: hidden; padding-block: 0.04em; }
.hpv-h1 .ln-i { display: block; will-change: transform; }
.hpv-h1 em { font-style: italic; color: var(--accent); }

.hpv-sub { max-width: 42ch; margin-top: clamp(22px, 3vw, 34px); color: var(--text-dim); }
[data-hero-block="photo"] .hero-cta { margin-top: clamp(26px, 3.6vw, 40px); }

/* foot — rating + at-a-glance line, anchored bottom-left */
.hpv-foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; align-items: center; gap: clamp(16px, 2.2vw, 28px); flex-wrap: wrap;
  max-width: var(--maxw); margin-inline: auto; padding: 0 var(--gut) clamp(28px, 4vh, 46px);
}
.hpv-rating { display: inline-flex; align-items: baseline; gap: 10px; }
.hpv-score { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.7rem, 1rem + 1.7vw, 2.5rem); line-height: 1; color: var(--text); }
.hpv-rating .stars { color: var(--accent-2); letter-spacing: 2px; font-size: 0.92rem; }
.hpv-rlbl { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mute); }
.hpv-div { width: 1px; height: 28px; background: var(--line-strong); }
.hpv-meta { font-size: var(--step--1); color: var(--text-dim); }
.hpv-meta b { color: var(--text); font-weight: 600; }

/* entrance (parallels the immersive variant; base state stays visible) */
.hpv-h1 .ln-i { transition: transform 1.15s var(--ease-out); }
.hpv-h1 .ln:nth-child(1) .ln-i { transition-delay: 0.16s; }
.hpv-h1 .ln:nth-child(2) .ln-i { transition-delay: 0.28s; }
.hpv-h1 .ln:nth-child(3) .ln-i { transition-delay: 0.40s; }
@media (prefers-reduced-motion: no-preference) {
  [data-motion="on"] [data-hero-block="photo"].intro:not(.intro-in) .ln-i { transform: translateY(118%); }
  [data-motion="on"] [data-hero-block="photo"].intro:not(.intro-in) .hero-rise { opacity: 0; transform: translateY(20px); filter: blur(8px); }
}

/* ============================================================
   HERO — Variant A · IMMERSIVE CINEMATIC (default)
   Message present on load, slow motion, line mask-reveal.
   ============================================================ */
[data-hero-block="immersive"] {
  flex-direction: column; align-items: stretch; justify-content: center;
  min-height: 100svh; height: 100svh; overflow: hidden;
  padding-block: clamp(84px, 12vh, 118px) clamp(44px, 8vh, 92px);
}
[data-hero-block="immersive"] .hero-inner { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }

[data-hero-block="immersive"] .hero-tag { display: inline-flex; align-items: center; gap: 14px; margin-bottom: clamp(16px, 2.4vw, 26px); }
[data-hero-block="immersive"] .hero-tag .tag-line { width: clamp(28px, 5vw, 60px); height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }

[data-hero-block="immersive"] .hero-imm-h1 { font-size: clamp(2.4rem, 1rem + 4.1vw, 5.2rem); line-height: 0.9; letter-spacing: -0.022em; margin: 0; max-width: 19ch; }
.hero-imm-h1 .ln { display: block; overflow: hidden; padding-block: 0.02em; }
.hero-imm-h1 .ln-i { display: block; will-change: transform; }
.hero-imm-h1 em { font-style: italic; color: var(--accent); }

.hero-imm-sub { max-width: 52ch; margin-top: clamp(16px, 2.2vw, 28px); color: var(--text-dim); font-size: var(--step-0); }
[data-hero-block="immersive"] .hero-cta { margin-top: clamp(20px, 2.8vw, 34px); }

/* foot bar — stats spread along the bottom + scroll cue at the end */
.hero-imm-foot {
  position: static; flex: 0 0 auto; z-index: 3;
  display: flex; align-items: flex-end; justify-content: space-between; gap: clamp(20px, 4vw, 56px);
  max-width: var(--maxw); margin-inline: auto; padding: 0 var(--gut); width: 100%;
  border-top: 0;
}
.stats--bar { margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); flex: 1; gap: clamp(18px, 3.4vw, 56px); }
.stats--bar .num { font-size: clamp(1.4rem, 1rem + 1.3vw, 2.1rem); }

/* refined scroll cue (vertical, sits at the end of the foot bar) */
.hero-scrollcue--imm {
  display: inline-flex; flex-direction: column; align-items: center; gap: 12px;
  padding-bottom: 2px; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--text-mute); transition: color .3s var(--ease); white-space: nowrap;
}
.hero-scrollcue--imm:hover { color: var(--accent); }
.hero-scrollcue--imm .sc-txt { writing-mode: vertical-rl; }
.hero-scrollcue--imm .sc-line { width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent); position: relative; overflow: hidden; }
.hero-scrollcue--imm .sc-line::after { content: ""; position: absolute; left: 0; top: -55%; width: 100%; height: 55%; background: var(--accent); animation: scue 2.4s var(--ease) infinite; }
[data-motion="off"] .hero-scrollcue--imm .sc-line::after { animation: none; }

/* ---- entrance: line mask-reveal + staggered rise ----
   Base state is VISIBLE (no-JS / print / screenshot safe). JS adds
   `.intro` then `.intro-in` on load; transitions play the reveal. */
.hero-imm-h1 .ln-i { transition: transform 1.15s var(--ease-out); }
.hero-imm-h1 .ln:nth-child(1) .ln-i { transition-delay: 0.16s; }
.hero-imm-h1 .ln:nth-child(2) .ln-i { transition-delay: 0.28s; }
.hero-imm-h1 .ln:nth-child(3) .ln-i { transition-delay: 0.40s; }
.hero-rise { transition: opacity 1.05s var(--ease-out), transform 1.05s var(--ease-out), filter 1.05s var(--ease-out); transition-delay: var(--d, 0s); }

@media (prefers-reduced-motion: no-preference) {
  [data-motion="on"] [data-hero-block="immersive"].intro:not(.intro-in) .ln-i { transform: translateY(118%); }
  [data-motion="on"] [data-hero-block="immersive"].intro:not(.intro-in) .hero-rise { opacity: 0; transform: translateY(20px); filter: blur(8px); }
}

/* ============================================================
   ABOUT — sticky parallax
   ============================================================ */
.about-figure-frame { position: relative; width: 100%; aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.about-figure-frame image-slot { position: absolute; inset: -8% 0; width: 100%; height: 116%; border: 0 !important; border-radius: 0 !important; will-change: transform; }
@media (min-width: 961px) {
  .about-figure { position: sticky; top: clamp(90px, 12vh, 140px); }
  .float-def { padding-block: clamp(10px, 4vw, 60px); }
}

/* ============================================================
   RITUAL — horizontal scroll-story
   ============================================================ */
.ritual-h { position: relative; }
.rh-pin { position: relative; padding-block: clamp(56px, 8vw, 110px); }

.rh-head-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 60px); align-items: end; }
.rh-head-aside { display: grid; gap: 18px; }
.rh-head-aside .lede { max-width: 40ch; }
.rh-progress { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; max-width: 320px; }
.rh-bar { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--coral)); transition: width .15s linear; }
.rh-hint { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mute); }

/* track — base: swipeable carousel (no-JS / mobile fallback) */
.rh-track {
  display: flex; gap: clamp(14px, 1.6vw, 22px); list-style: none;
  margin-top: clamp(34px, 5vw, 64px); padding: 4px var(--gut);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  will-change: transform;
}
.rh-track::-webkit-scrollbar { display: none; }

.rh-panel {
  scroll-snap-align: center; flex: 0 0 auto;
  width: clamp(280px, 78vw, 380px); height: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
}
.rh-media { position: relative; aspect-ratio: 4/3; }
.rh-media image-slot { position: absolute; inset: 0; width: 100%; height: 100%; border: 0 !important; border-radius: 0 !important; }
.rh-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--surface), transparent 55%); }
.rh-body { padding: clamp(20px, 2vw, 28px); display: flex; flex-direction: column; gap: 9px; flex: 1; }
.rh-num { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.16em; color: var(--accent); }
.rh-body h3 { font-size: var(--step-1); }
.rh-body p { color: var(--text-dim); font-size: var(--step-0); }
.rh-time { margin-top: auto; align-self: stretch; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); border: 1px solid var(--line); border-radius: 100px; padding: 6px 12px; }
.rh-panel--key { border-color: var(--accent-soft); background: linear-gradient(155deg, var(--surface-2), var(--surface)); }
.rh-panel--key .rh-num { color: var(--accent-2); }

/* intro / outro panels */
.rh-intro, .rh-outro { width: clamp(240px, 70vw, 340px); justify-content: center; gap: 18px; padding: clamp(26px, 3vw, 40px); background: transparent; border-style: dashed; border-color: var(--line-strong); }
.rh-kicker { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.rh-introtext { font-size: var(--step-3); line-height: 1.04; }
.rh-intrometa { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); }
.rh-outro { border-style: solid; border-color: var(--accent-soft); background: radial-gradient(120% 120% at 30% 0%, var(--accent-soft), var(--surface) 70%); align-items: flex-start; }

/* PINNED state (JS upgrades on wide + motion) */
.ritual-h.is-pinned { height: var(--rh-len, 320vh); }
.ritual-h.is-pinned .rh-pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-block: 0; }
.ritual-h.is-pinned .rh-track { overflow: visible; margin-top: clamp(28px, 4vw, 52px); padding-inline: var(--gut); transform: translate3d(var(--rh-x, 0px), 0, 0); scroll-snap-type: none; }
.ritual-h.is-pinned .rh-panel { height: min(56vh, 480px); }
.ritual-h.is-pinned .rh-media { aspect-ratio: auto; flex: 1; }
.ritual-h.is-pinned .rh-intro, .ritual-h.is-pinned .rh-outro { height: min(56vh, 480px); }

/* ============================================================
   MOBILE — designed, not shrunk
   ============================================================ */
@media (max-width: 760px) {
  /* hero story: tighter, words scale down, stats 2-col */
  .hp-word { font-size: clamp(3rem, 13vw, 5rem); }
  .hp-line { font-size: var(--step-0); }
  .hero-h1-sr, .hp-resolve h1 { font-size: clamp(2.7rem, 11vw, 4rem); }
  .hero-phrases { min-height: clamp(150px, 40vh, 280px); }
  .stats { gap: 18px 26px; }
  .stats .stat { flex: 1 1 40%; }
  [data-hero-block="story"] { padding-bottom: 64px; }

  /* photo variant: text up top over the dark arch, photo behind */
  [data-hero-block="photo"] { align-items: flex-start; padding-block: clamp(104px, 22vh, 150px) 0; }
  .hpv-text { max-width: none; }
  .hpv-h1 { font-size: clamp(2.6rem, 11vw, 4rem); }

  /* mobile: drop the background photo — fall back to the atmospheric water bg */
  .hero-figure { display: none; }
  .hero:has(.hero-figure) .hero-bg .halo { opacity: 0.85; }
  .hero:has(.hero-figure) .hero-bg .halo.h3 { opacity: 0.5; }
  .hero:has(.hero-figure) .hero-bg .vignette { background: radial-gradient(120% 90% at 50% 0%, transparent 40%, var(--bg) 92%); }
  .hero:has(.hero-figure) .orbit-motif { opacity: 0.5; }

  /* immersive: don't lock to viewport on phones — let it breathe and stack */
  [data-hero-block="immersive"] { height: auto; min-height: 100svh; overflow: visible; padding-block: 104px clamp(28px, 6vh, 48px); }
  [data-hero-block="immersive"] .hero-imm-foot { padding-top: 8px; }
  .hero-imm-foot { flex-wrap: wrap; }

  /* cinematic + editorial reflow */
  .hero-cine-h1 { font-size: clamp(3rem, 17vw, 6rem); }
  .hero-split { grid-template-columns: 1fr; gap: 28px; }
  .hero-editorial { padding-top: 104px; padding-bottom: 50px; align-items: center; }
  .hes-figure { order: -1; }
  .hes-figure image-slot { height: 44vh; }

  /* ritual: never pin on mobile — peek-next carousel with snap */
  .ritual-h.is-pinned { height: auto; }
  .ritual-h.is-pinned .rh-pin { position: relative; height: auto; overflow: visible; display: block; padding-block: clamp(56px,12vw,90px); }
  .ritual-h.is-pinned .rh-track { transform: none !important; overflow-x: auto; scroll-snap-type: x mandatory; }
  .ritual-h.is-pinned .rh-panel,
  .ritual-h.is-pinned .rh-intro,
  .ritual-h.is-pinned .rh-outro { height: auto; }
  .rh-panel { width: 82vw; }
  .rh-head-inner { grid-template-columns: 1fr; gap: 20px; }
  .rh-hint { display: none; }

  /* about: image first, no sticky */
  .about-figure { position: static !important; }
}

@media (max-width: 520px) {
  .hero-tag { font-size: 0.66rem; letter-spacing: 0.18em; }
  .stats .num { font-size: var(--step-1); }
}

/* ============================================================
   REDUCED MOTION / motion-off — disable all scroll-jacking + parallax
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hp { position: static; opacity: 1; transform: none; filter: none; }
  .hero-phrases { display: none !important; }
  .hero-h1-sr { position: static !important; width: auto !important; height: auto !important; clip: auto !important; }
  .ritual-h.is-pinned { height: auto !important; }
  .ritual-h.is-pinned .rh-pin { position: relative !important; height: auto !important; overflow: visible !important; }
  .ritual-h.is-pinned .rh-track { transform: none !important; overflow-x: auto; }
  .ritual-h.is-pinned .rh-panel, .ritual-h.is-pinned .rh-intro, .ritual-h.is-pinned .rh-outro { height: auto; }
  [data-parallax] { transform: none !important; }
  .hero-photo, .hero-figure img, .hero-stage { transform: none !important; opacity: 1 !important; }
}
[data-motion="off"] [data-parallax] { transform: none !important; }
[data-motion="off"] .hero-figure img, [data-motion="off"] .hero-stage { transform: none !important; opacity: 1 !important; }
