/* =========================================================
   AZUB Ti-FLY X — scroll presentation
   Brand tokens taken from azub.eu (b5subtheme)
   ========================================================= */
@font-face {
  font-family: "Pleasure";
  src: url("../assets/fonts/Pleasure.woff2") format("woff2-variations"), url("../assets/fonts/Pleasure.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #00002A;
  --navy-2: #23244D;
  --navy-3: #101023;
  --deep: #000017;
  --ink: #3E3E60;
  --muted: #707091;
  --muted-2: #9D9DB5;
  --line: #C9CAD7;
  --light: #F2F3F6;
  --white: #FFFFFF;
  --lime: #DCFA00;

  --fg: var(--white);
  --fg-dim: rgba(255,255,255,.62);
  --rule: rgba(255,255,255,.14);
  --accent: var(--lime);

  --display: "Pleasure", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 5px;
  --gutter: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.2,.7,.1,1);
  --vh: 100svh;
}

body[data-bg="light"] { --fg: var(--navy); --fg-dim: var(--ink); --rule: rgba(0,0,42,.12); --accent: var(--navy); }
body[data-bg="lime"]  { --fg: var(--navy); --fg-dim: var(--navy-2); --rule: rgba(0,0,42,.18); --accent: var(--navy); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
main { overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--navy);
  transition: background-color .9s var(--ease), color .9s var(--ease);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body[data-bg="navy"]  { background-color: var(--navy); }
body[data-bg="deep"]  { background-color: var(--deep); }
body[data-bg="light"] { background-color: var(--light); }
body[data-bg="lime"]  { background-color: var(--lime); }
body.is-loading { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
em { font-style: normal; color: var(--accent); }
body[data-bg="light"] em, body[data-bg="lime"] em {
  background: linear-gradient(transparent 62%, var(--lime) 62%, var(--lime) 92%, transparent 92%);
}
body[data-bg="lime"] em { background: none; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .12em; }

/* ---------- type ---------- */
.h-xxl, .h-xl, .h-l, .hero__title, .morph__words, .bignum .num, .story__big, .foot__giant, .quote__text {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: .92;
  margin: 0;
}
.h-xxl { font-size: clamp(56px, 11vw, 200px); }
.h-xl  { font-size: clamp(40px, 6.2vw, 104px); }
.h-l   { font-size: clamp(34px, 4.4vw, 72px); }
.lead  { font-size: clamp(17px, 1.35vw, 21px); color: var(--fg-dim); max-width: 34em; margin: 28px 0 0; }
.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--fg-dim); margin: 0 0 22px;
}

.chapter-tag {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: var(--fg-dim); margin-bottom: 26px;
}
.chapter-tag b {
  font-family: var(--display); font-size: 12px; letter-spacing: .05em;
  color: var(--navy); background: var(--lime);
  padding: 4px 7px; border-radius: 3px;
}
.chapter-tag--abs { position: absolute; top: 104px; left: var(--gutter); z-index: 3; }

/* ---------- buttons (AZUB: small radius, lime success-arrow) ---------- */
.btn {
  --bh: 46px;
  display: inline-flex; align-items: center; gap: 12px;
  height: var(--bh); padding: 0 20px;
  border-radius: var(--radius);
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: transform .4s var(--ease), background-color .3s, color .3s, box-shadow .4s;
}
.btn--lg { --bh: 58px; padding: 0 28px; font-size: 17px; }
.btn--lime { background: var(--lime); color: var(--navy); }
.btn--lime:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -12px rgba(220,250,0,.55); }
.btn--ghost { border: 1px solid var(--rule); color: var(--fg); }
.btn--ghost:hover { border-color: var(--fg); }
.arr { width: 18px; height: 10px; position: relative; display: inline-block; }
.arr::before { content: ""; position: absolute; left: 0; right: 2px; top: 50%; height: 2px; margin-top: -1px; background: currentColor; transition: right .3s var(--ease); }
.arr::after { content: ""; position: absolute; right: 1px; top: 50%; width: 7px; height: 7px; border: solid currentColor; border-width: 2px 2px 0 0; transform: translateY(-50%) rotate(45deg); }
.btn:hover .arr::before { right: -4px; }
.btn:focus-visible, .nav a:focus-visible, button:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  transition: clip-path 1.1s cubic-bezier(.76,0,.24,1);
  clip-path: inset(0 0 0 0);
}
.loader.is-done { clip-path: inset(0 0 100% 0); }
.loader__inner { width: min(420px, 80vw); }
.loader__logo { width: 120px; margin-bottom: 48px; }
.loader__count { font-family: var(--display); font-weight: 900; font-size: clamp(80px, 14vw, 160px); line-height: .8; letter-spacing: -.03em; }
.loader__count sup { font-size: .3em; vertical-align: top; color: var(--lime); margin-left: 6px; }
.loader__bar { height: 2px; background: rgba(255,255,255,.12); margin: 32px 0 16px; }
.loader__bar i { display: block; height: 100%; width: 0; background: var(--lime); transition: width .25s linear; }
.loader__meta { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.5); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
  color: var(--fg);
  transition: color .9s var(--ease), transform .6s var(--ease);
}
.nav__logo img { height: 22px; width: auto; transition: filter .6s; }
body[data-bg="light"] .nav__logo img, body[data-bg="lime"] .nav__logo img { filter: brightness(0) saturate(100%); opacity: .92; }
.nav__chapters { display: flex; gap: 4px; }
.nav__chapters a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: var(--radius);
  text-decoration: none; font-size: 13px; font-weight: 600;
  color: var(--fg-dim); transition: color .3s, background-color .3s;
}
.nav__chapters a b { font-family: var(--display); font-size: 11px; opacity: .6; }
.nav__chapters a span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .5s var(--ease); }
.nav__chapters a:hover span, .nav__chapters a.is-active span { max-width: 140px; }
.nav__chapters a.is-active { color: var(--fg); background: var(--rule); }
.nav__chapters a.is-active b { opacity: 1; color: var(--accent); }
body[data-bg="light"] .nav__chapters a.is-active b, body[data-bg="lime"] .nav__chapters a.is-active b { color: var(--navy); }
.nav__cta { --bh: 40px; font-size: 14px; }
body[data-bg="lime"] .nav__cta { background: var(--navy); color: var(--lime); }
.nav__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: transparent; }
.nav__progress i { display: block; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--accent); }

/* ---------- stage (360° object) ---------- */
.stage {
  position: fixed; inset: 0; z-index: 2;
  pointer-events: none;
}
.stage canvas { width: 100%; height: 100%; display: block; transition: filter .8s var(--ease); }
.hotspots { position: absolute; inset: 0; }
.hs {
  position: absolute; left: 0; top: 0;
  border: 0; background: none; padding: 0;
  display: flex; align-items: center; gap: 12px;
  opacity: 0; pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity .5s var(--ease);
  will-change: transform;
}
.hs i {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(220,250,0,.6);
  animation: ping 2s infinite;
  position: relative; flex: none;
}
.hs i::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--navy); }
.hs span {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(0,0,42,.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; padding: 7px 10px; border-radius: var(--radius);
  opacity: 0; transform: translateX(-6px); transition: opacity .4s, transform .4s var(--ease);
}
.hs.is-show { opacity: 1; }
.hs.is-active span { opacity: 1; transform: none; }
.hs.is-active i { background: #fff; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(220,250,0,.55); } 80%,100% { box-shadow: 0 0 0 22px rgba(220,250,0,0); } }

/* ---------- scenes ---------- */
main { position: relative; }
.scene { position: relative; height: var(--h, 100vh); }
.sticky {
  position: sticky; top: 0;
  height: 100vh; height: var(--vh);
  overflow: hidden;
  z-index: 1;
}
.block { position: relative; z-index: 3; padding: clamp(96px, 14vh, 180px) var(--gutter); }

/* ---------- 00 HERO ---------- */
.hero__title {
  position: absolute; left: 0; right: 0; top: 50%;
  transform: translateY(-58%);
  display: flex; justify-content: center; align-items: baseline;
  font-size: clamp(110px, 25vw, 460px);
  letter-spacing: -0.045em;
  white-space: nowrap;
  color: transparent;
  pointer-events: none;
}
.hero__ti { -webkit-text-stroke: 1.5px rgba(0,0,42,.16); display: inline-flex; }
.hero__ti .ch { display: inline-block; will-change: transform; }
.hero__x {
  color: var(--lime);
  -webkit-text-stroke: 2px var(--navy);
  margin-left: .04em;
  display: inline-block;
  will-change: transform;
}
.hero__eyebrow {
  position: absolute; top: 112px; left: var(--gutter);
  font-size: 12px; letter-spacing: .24em; font-weight: 700; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px; color: var(--fg-dim);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px var(--navy); }
.hero__claim {
  position: absolute; left: var(--gutter); bottom: clamp(32px, 7vh, 72px);
  font-family: var(--display); font-weight: 800;
  font-size: clamp(22px, 2.3vw, 38px); line-height: 1; letter-spacing: -.01em;
  margin: 0;
}
.hero__meta {
  position: absolute; right: var(--gutter); bottom: clamp(32px, 7vh, 72px);
  display: flex; gap: clamp(20px, 3vw, 48px);
}
.hero__meta small { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 4px; }
.hero__meta b { font-family: var(--display); font-weight: 800; font-size: clamp(18px, 1.6vw, 26px); }
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--fg-dim);
}
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent); animation: cue 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- 01 INTRO ---------- */
.intro__copy {
  position: absolute; left: var(--gutter); top: 50%;
  transform: translateY(-50%);
  width: min(46vw, 760px);
}
.intro__stats {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(28px, 6vh, 64px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin: 0; border-top: 1px solid var(--rule);
}
.stat { padding: 18px 20px 0 0; opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.stat dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 6px; }
.stat dd { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(26px, 3vw, 50px); line-height: 1; }
.is-in .stat, .stat.is-in { opacity: 1; transform: none; }
.degree {
  position: absolute; right: var(--gutter); top: 112px;
  font-family: var(--display); font-weight: 900; font-size: clamp(48px, 6vw, 96px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--fg-dim);
  font-variant-numeric: tabular-nums;
}

/* ---------- 02 DETAIL ---------- */
.scene--detail .sticky, .scene--intro .sticky, .scene--studio .sticky { z-index: 3; }
.dcard::before { content: ""; position: absolute; inset: -80px -120px -60px -80px; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(242,243,246,.92), rgba(242,243,246,0)); }
.detail__cards { position: absolute; inset: 0; pointer-events: none; }
.dcard {
  position: absolute; left: var(--gutter); bottom: clamp(28px, 7vh, 80px);
  width: min(420px, 86vw);
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.dcard.is-on { opacity: 1; transform: none; pointer-events: auto; }
.dcard__no { font-family: var(--display); font-weight: 800; font-size: 13px; color: var(--accent); letter-spacing: .1em; margin-bottom: 14px; }
.dcard h3 { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 3vw, 48px); line-height: .95; margin: 0 0 16px; letter-spacing: -.015em; }
.dcard p { color: var(--fg-dim); margin: 0; max-width: 30em; }
.lens {
  position: absolute; margin: 0;
  right: var(--gutter); top: 50%;
  width: clamp(200px, 22vw, 360px); aspect-ratio: 1;
  border-radius: 50%; overflow: hidden;
  transform: translateY(-50%) scale(.6);
  opacity: 0;
  box-shadow: 0 0 0 1px rgba(0,0,42,.12), 0 0 0 10px rgba(255,255,255,.7), 0 40px 90px -30px rgba(0,0,42,.45);
  transition: transform .9s var(--ease), opacity .6s var(--ease), clip-path .9s var(--ease);
}
.lens img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); transition: transform 1.6s var(--ease); }
.detail__lenses { position: absolute; inset: 0; pointer-events: none; }
.lens.is-on { transform: translateY(-50%) scale(1); opacity: 1; }
.lens.is-on img { transform: scale(1); }
.lens--white { background: #F7F7F7; }
.lens--white img { object-fit: contain; padding: 8%; }
.detail__index {
  position: absolute; right: var(--gutter); bottom: clamp(28px, 7vh, 80px);
  display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; font-size: 13px;
}
.detail__index i { width: 120px; height: 2px; background: var(--rule); position: relative; overflow: hidden; }
.detail__index i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ---------- 03 MORPH ---------- */
.morph__head { position: absolute; top: 160px; left: var(--gutter); }
.morph__words {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: clamp(90px, 21vw, 380px);
  letter-spacing: -0.05em;
  color: var(--navy);
}
.morph__words span {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(12%) scale(.96);
  filter: blur(14px);
  transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s var(--ease);
  color: #fff;
  -webkit-text-stroke: 0;
  text-shadow: 0 1px 0 rgba(0,0,42,.04);
  mix-blend-mode: normal;
}
.morph__words span.is-on { opacity: 1; transform: none; filter: none; }
.morph__notes {
  position: absolute; left: var(--gutter); bottom: clamp(28px, 7vh, 80px);
  width: min(380px, 80vw); color: var(--ink);
}
.morph__notes p { position: absolute; bottom: 0; margin: 0; opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.morph__notes p b { color: var(--navy); }
.morph__notes p.is-on { opacity: 1; transform: none; }
.morph__dial { position: absolute; right: var(--gutter); bottom: clamp(28px, 7vh, 80px); width: 120px; height: 120px; }
.morph__dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.morph__dial circle { fill: none; stroke-width: 2; }
.morph__dial .trk { stroke: rgba(0,0,42,.12); }
.morph__dial .arc { stroke: var(--navy); stroke-dasharray: 339.3; stroke-dashoffset: 339.3; stroke-linecap: round; }
.morph__deg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 900; font-size: 26px; color: var(--navy); font-variant-numeric: tabular-nums; }

/* ---------- 04 STORIES ---------- */
.scene--stories .sticky { z-index: 3; }
.portal {
  position: absolute; inset: 0;
  clip-path: circle(var(--r, 0px) at 50% 50%);
  background: var(--navy);
}
.portal__ring {
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--r, 0px) * 2); height: calc(var(--r, 0px) * 2);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid var(--lime);
  opacity: var(--ro, 0);
  pointer-events: none;
}
.track { position: absolute; top: 0; left: 0; height: 100%; display: flex; align-items: stretch; will-change: transform; }
.story { position: relative; flex: none; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 120px 0 64px; margin-right: 6vw; width: min(44vw, 640px); }
.story--tall { width: min(32vw, 480px); }
.story--lead { width: 100vw; margin: 0; padding: 0; justify-content: flex-end; }
.story--lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--ls, 1.25)); }
.story--lead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,42,.25) 0%, rgba(0,0,42,0) 40%, rgba(0,0,42,.85) 100%); }
.story--lead .story__txt { position: relative; z-index: 2; padding: 0 var(--gutter) clamp(40px, 9vh, 96px); color: #fff; }
.story--lead .story__txt p { font-size: clamp(18px, 1.5vw, 24px); max-width: 26em; color: rgba(255,255,255,.8); margin: 20px 0 0; }
.story--lead .chapter-tag { color: rgba(255,255,255,.75); }
.story:not(.story--lead):first-of-type { margin-left: 8vw; }
.story--lead + .story { margin-left: 8vw; }
.story__img { margin: 0; flex: 1 1 auto; min-height: 0; overflow: hidden; border-radius: var(--radius); }
.story__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15) translateX(var(--px, 0)); }
.story__txt { padding-top: 26px; color: #fff; }
.story__no { font-family: var(--display); font-weight: 800; font-size: 13px; color: var(--lime); letter-spacing: .1em; }
.story h3 { font-family: var(--display); font-weight: 900; font-size: clamp(26px, 2.4vw, 40px); line-height: 1; margin: 10px 0 12px; letter-spacing: -.01em; }
.story p { margin: 0; color: rgba(255,255,255,.66); max-width: 30em; }
.story--end { width: 60vw; justify-content: center; margin-right: 0; padding-right: var(--gutter); }
.story__big { font-family: var(--display); font-weight: 900; font-size: clamp(64px, 10vw, 180px); line-height: .9; letter-spacing: -.03em; color: #fff; }

/* ---------- 05 ANATOMY ---------- */
.scene--anatomy .sticky { z-index: 3; background:
  radial-gradient(ellipse 60% 50% at 60% 55%, rgba(35,36,77,.55), transparent 70%),
  var(--deep); }
#bpCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bp__labels { position: absolute; inset: 0; pointer-events: none; }
.bp__label {
  position: absolute; left: 0; top: 0;
  transform: translate(-50%, -50%);
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy); background: var(--lime);
  padding: 6px 9px; border-radius: 3px; white-space: nowrap;
  opacity: 0; transition: opacity .4s;
}
.bp__label b { font-family: var(--display); font-weight: 900; letter-spacing: 0; font-size: 15px; margin-left: 6px; }
.bp__hud { position: absolute; top: 104px; left: var(--gutter); max-width: 420px; }
.bp__steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 2px; counter-reset: s; }
.bp__steps li {
  counter-increment: s;
  display: flex; gap: 12px; align-items: baseline;
  padding: 10px 0; border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.4); font-size: 15px;
  transition: color .4s;
}
.bp__steps li::before { content: "0" counter(s); font-family: var(--display); font-weight: 800; font-size: 12px; }
.bp__steps li b { color: inherit; font-weight: 700; min-width: 8.5em; }
.bp__steps li.is-on { color: #fff; }
.bp__steps li.is-on::before { color: var(--lime); }
.bp__corner {
  position: absolute; right: var(--gutter); bottom: 28px;
  display: flex; gap: 24px; font-size: 11px; letter-spacing: .18em; color: rgba(255,255,255,.4);
  font-variant-numeric: tabular-nums;
}
.bp__fold {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  display: grid; gap: 28px; text-align: right;
  opacity: 0; transition: opacity .6s;
}
.bp__fold.is-on { opacity: 1; }
.bp__fold div { opacity: .35; transition: opacity .5s; }
.bp__fold div.is-on { opacity: 1; }
.bp__fold small { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 6px; }
.bp__fold b { font-family: var(--display); font-weight: 900; font-size: clamp(32px, 3.6vw, 60px); line-height: 1; color: #fff; }
.bp__fold em { margin-left: 8px; font-size: 14px; }

/* ---------- PACK ---------- */
.block--pack { background: var(--deep); color: #fff; padding-bottom: clamp(120px, 20vh, 240px); }
.pack__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.pack__copy { grid-column: 1 / span 5; position: sticky; top: 20vh; }
.pack__img { margin: 0; overflow: hidden; border-radius: var(--radius); }
.pack__img img { width: 100%; height: 100%; object-fit: cover; }
.pack__img--a { grid-column: 7 / span 6; aspect-ratio: 3/2; }
.pack__img--b { grid-column: 6 / span 4; aspect-ratio: 1/1; margin-top: -4vw; background: #fff; }
.pack__img--b img { object-fit: contain; }
.pack__img--c { grid-column: 10 / span 3; aspect-ratio: 3/4; margin-top: 8vw; }

/* ---------- MARQUEE ---------- */
.marquee { position: relative; border-block: 1px solid var(--navy); z-index: 3; overflow: hidden; background: var(--lime); color: var(--navy); padding: 18px 0; }
.marquee__row { display: flex; align-items: center; gap: 36px; width: max-content; animation: marq 30s linear infinite; }
.marquee span { font-family: var(--display); font-weight: 900; font-size: clamp(28px, 3.2vw, 52px); letter-spacing: -.01em; text-transform: uppercase; white-space: nowrap; }
.marquee i { width: 14px; height: 14px; border-radius: 50%; background: var(--navy); flex: none; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- 06 SPECS ---------- */
.block--specs { color: var(--navy); background: var(--light); }
.bignum .cm { margin: 0 -.12em; }
.specs__head { display: flex; flex-direction: column; margin-bottom: clamp(48px, 8vh, 96px); }
.specs__hero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 2px solid var(--navy); }
.bignum { padding: 28px 0 40px; }
.bignum .num { font-size: clamp(80px, 12vw, 220px); letter-spacing: -.04em; line-height: .85; display: inline; font-variant-numeric: tabular-nums; }
.bignum small { font-family: var(--display); font-weight: 800; font-size: clamp(20px, 2vw, 32px); margin-left: 8px; }
.bignum p { margin: 14px 0 0; color: var(--ink); font-size: 15px; }
.specs__table { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(24px, 5vw, 96px); }
.specs__table div { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; border-top: 1px solid rgba(0,0,42,.12); }
.specs__table dt { color: var(--ink); }
.specs__table dd { margin: 0; font-weight: 700; text-align: right; }
.specs__table dd small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }

/* ---------- QUOTE ---------- */
.block--quote { background: var(--lime); color: var(--navy); min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.quote__award { display: flex; gap: 24px; font-size: 12px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 40px; }
.quote__award span:first-child { background: var(--navy); color: var(--lime); padding: 5px 9px; border-radius: 3px; }
.quote__text { font-size: clamp(36px, 5.6vw, 96px); line-height: 1; letter-spacing: -.025em; max-width: 15em; margin: 0; }
.quote__text .w { display: inline-block; opacity: .12; transition: opacity .4s; }
.quote__text .w.is-on { opacity: 1; }
.quote__by { display: flex; align-items: center; gap: 16px; margin-top: 48px; }
.quote__by img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.quote__by b { display: block; font-family: var(--display); font-weight: 900; font-size: 20px; }
.quote__by span { font-size: 14px; }

/* ---------- 07 STUDIO ---------- */

.studio__head { position: absolute; top: 150px; left: var(--gutter); }
.studio__head p { color: var(--fg-dim); margin: 18px 0 0; }
.studio__drag { position: absolute; inset: 22% 8% 22% 8%; cursor: grab; z-index: 2; touch-action: pan-y; }
.studio__drag:active { cursor: grabbing; }
.studio__hint {
  position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--fg-dim);
  transition: opacity .5s;
}
.studio__hint i { width: 28px; height: 1px; background: currentColor; }
.studio__drag.is-used .studio__hint { opacity: 0; }
.studio__ui {
  position: absolute; right: var(--gutter); top: 150px; z-index: 4;
  display: grid; gap: 18px; justify-items: end;
}
.seg { display: inline-flex; padding: 4px; border-radius: 8px; background: rgba(0,0,42,.04); border: 1px solid var(--rule); }
.seg button { border: 0; background: none; padding: 10px 16px; border-radius: var(--radius); font-weight: 700; font-size: 14px; color: var(--fg-dim); transition: background-color .3s, color .3s; }
.seg button.is-on { background: var(--navy); color: var(--lime); }
.swatches { display: flex; gap: 10px; }
.swatches button {
  width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0;
  background: var(--c); font-size: 0;
  box-shadow: 0 0 0 2px var(--light), 0 0 0 3px transparent;
  transition: box-shadow .3s, transform .3s var(--ease);
}
.swatches button:hover { transform: scale(1.1); }
.swatches button.is-on { box-shadow: 0 0 0 3px var(--light), 0 0 0 5px var(--navy); }
.studio__name { text-align: right; }
.studio__name small { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-dim); }
.studio__name b { font-family: var(--display); font-weight: 900; font-size: 28px; }
.studio__cta { position: absolute; left: 0; right: 0; bottom: clamp(28px, 7vh, 72px); z-index: 4; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 0 var(--gutter); }

/* ---------- FOOTER ---------- */
.foot { position: relative; z-index: 3; padding: 120px var(--gutter) 0; overflow: hidden; color: #fff; background: var(--navy); }
.foot__logo { width: 200px; }
.foot__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; color: rgba(255,255,255,.66); font-size: 15px; }
.foot__cols a { color: #fff; }
.foot__note { font-size: 13px; }
.foot__giant { font-size: clamp(100px, 24vw, 460px); color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.14); white-space: nowrap; margin-top: 64px; line-height: .78; letter-spacing: -.05em; }

/* ---------- reveal utilities ---------- */
.reveal-lines .ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.reveal-lines .ln > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 90ms); }
.reveal-lines.is-in .ln > span { transform: none; }
.fade-up { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease) .25s, transform 1s var(--ease) .25s; }
.fade-up.is-in { opacity: 1; transform: none; }

.grain {
  position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: .05;
  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='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-4%,3%)} 40%{transform:translate(3%,-2%)} 60%{transform:translate(-2%,-4%)} 80%{transform:translate(4%,2%)} 100%{transform:translate(0,0)} }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav__chapters { display: none; }
}
@media (max-width: 800px) {
  body { font-size: 16px; }
  .nav { padding: 16px var(--gutter); }
  .nav__logo img { height: 18px; }
  .nav__cta { --bh: 36px; padding: 0 12px; font-size: 13px; }
  .chapter-tag--abs { top: 84px; }
  .hero__eyebrow { top: 84px; }
  .hero__title { font-size: 30vw; transform: translateY(-120%); flex-direction: column; align-items: center; line-height: .8; }
  .hero__x { font-size: 1.4em; margin: 0; }
  .hero__meta { left: var(--gutter); right: auto; bottom: 104px; }
  .hero__claim { bottom: 40px; font-size: 22px; }
  .scroll-cue { display: none; }
  .intro__copy { top: 96px; transform: none; width: auto; right: var(--gutter); }
  .intro__copy .lead { display: none; }
  .intro__stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding-top: 12px; }
  .degree { top: auto; bottom: 34%; right: var(--gutter); font-size: 44px; }
  .dcard { bottom: 24px; }
  .dcard p { font-size: 15px; }
  .lens { top: 112px; right: var(--gutter); width: 132px; transform: scale(.6); }
  .lens.is-on { transform: scale(1); }
  .detail__index { display: none; }
  .morph__head { top: 120px; }
  .morph__words { font-size: 18.5vw; align-items: start; padding-top: 22vh; }
  .morph__dial { width: 80px; height: 80px; bottom: 24px; }
  .morph__deg { font-size: 18px; }
  .morph__notes { width: calc(100vw - 2 * var(--gutter) - 96px); bottom: 24px; font-size: 15px; }
  .story { width: 78vw; margin-right: 8vw; padding-top: 96px; }
  .story--tall { width: 64vw; }
  .story--end { width: 90vw; }
  .bp__hud { top: 84px; }
  .bp__hud .h-l { font-size: 30px; }
  .bp__steps { margin-top: 16px; }
  .bp__steps li { padding: 6px 0; font-size: 13px; }
  .bp__corner { display: none; }
  .bp__fold { top: auto; bottom: 28px; transform: none; gap: 12px; }
  .bp__fold b { font-size: 28px; }
  .pack__grid { grid-template-columns: repeat(6, 1fr); }
  .pack__copy { grid-column: 1 / -1; position: relative; top: 0; margin-bottom: 32px; }
  .pack__img--a { grid-column: 1 / -1; }
  .pack__img--b { grid-column: 1 / span 3; margin-top: 0; }
  .pack__img--c { grid-column: 4 / span 3; margin-top: 12vw; }
  .specs__hero { grid-template-columns: 1fr; gap: 0; }
  .bignum { padding: 20px 0 24px; border-bottom: 1px solid rgba(0,0,42,.12); }
  .specs__table { grid-template-columns: 1fr; }
  .studio__head { top: 116px; }
  .studio__ui { top: auto; bottom: 120px; left: var(--gutter); right: var(--gutter); justify-items: center; }
  .studio__name { display: none; }
  .studio__drag { inset: 30% 0 34% 0; }
  .studio__cta { bottom: 24px; }
  .studio__cta .btn--ghost { display: none; }
  .foot__cols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .marquee__row, .scroll-cue i, .hs i { animation: none; }
  .reveal-lines .ln > span, .fade-up, .stat { transition: none; }
}
