/* CRETACEA case study — uses tokens.css variables only */

/* ---------- base ---------- */
html { scroll-padding-top: 72px; }
h1, h2, h3 { margin: 0; font-weight: 700; }
h2 { font-family: var(--display); font-size: var(--fs-3xl); line-height: var(--lh-tight); text-transform: uppercase; letter-spacing: 0.005em; margin-bottom: var(--s-8); max-width: 16ch; }
h3 { font-size: var(--fs-lg); line-height: var(--lh-snug); }
p { margin: 0 0 var(--s-4); }
code { font-family: var(--mono); font-size: 0.9em; color: var(--ember-300); }
.mono { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; }
.muted { color: var(--text-subtle); }
.small { font-size: var(--fs-sm); }
.lead { font-size: var(--fs-xl); line-height: 1.45; color: var(--text); max-width: 40ch; }
.eyebrow { color: var(--ember-300); margin-bottom: var(--s-4); }

.skip { position: absolute; left: var(--s-4); top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); text-decoration: none; font-weight: 600; }
.skip:focus { top: var(--s-4); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-6); border-radius: var(--r-full);
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
  font-weight: 600; text-decoration: none; transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(0.97); }
.btn--sm { min-height: 44px; padding: 0 var(--s-4); font-size: var(--fs-sm); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--accent-soft); border-color: var(--accent); }
.btn[aria-pressed="true"] { background: var(--bone-100); border-color: var(--bone-100); }
.link { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-muted); text-decoration: none; }
.link:hover { color: var(--accent); }

/* ---------- topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(7, 5, 5, 0.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.topbar__in { width: min(100% - 2 * var(--gutter), 1600px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); height: 64px; }
.topbar__brand { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; text-decoration: none; font-weight: 600; }
.topbar__brand:hover { color: var(--accent); }
.topbar__title { color: var(--text-subtle); }
@media (max-width: 640px) { .topbar__title { display: none; } }

/* ---------- fog (shared, lightweight) ---------- */
.fog { position: absolute; inset: -20%; pointer-events: none; filter: blur(30px); will-change: transform; }
.fog--a { background: radial-gradient(40% 35% at 30% 60%, var(--fog), transparent 70%), radial-gradient(30% 30% at 75% 40%, rgba(176, 34, 26, 0.28), transparent 70%); animation: drift-a 26s ease-in-out infinite alternate; }
.fog--b { background: radial-gradient(45% 30% at 60% 75%, rgba(107, 19, 13, 0.55), transparent 70%), radial-gradient(25% 25% at 20% 30%, rgba(255, 90, 46, 0.12), transparent 70%); animation: drift-b 38s ease-in-out infinite alternate; }
.fog--c { background: radial-gradient(60% 25% at 50% 95%, rgba(176, 34, 26, 0.45), transparent 70%); animation: drift-a 18s ease-in-out infinite alternate-reverse; }
@keyframes drift-a { from { transform: translate3d(-6%, 2%, 0) scale(1); } to { transform: translate3d(6%, -3%, 0) scale(1.12); } }
@keyframes drift-b { from { transform: translate3d(5%, -2%, 0) scale(1.1); } to { transform: translate3d(-7%, 3%, 0) scale(1); } }
.grain { position: absolute; inset: 0; opacity: 0.06; mix-blend-mode: overlay; pointer-events: none;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- cover ---------- */
.cover { position: relative; overflow: hidden; min-height: min(100svh, 980px); display: flex; align-items: flex-end; padding: var(--s-32) 0 var(--s-16); isolation: isolate; }
.cover__visual { position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 60% at 70% 55%, var(--blood-900), var(--void) 70%); }
.cover__trex { position: absolute; right: 3%; bottom: 12%; width: min(64vw, 960px); filter: brightness(0) drop-shadow(0 0 40px rgba(176, 34, 26, 0.6)); opacity: 0.92; animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { transform: translateY(-0.6%) scale(1.005); } }
.cover__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--void) 2%, transparent 55%), linear-gradient(to right, rgba(7, 5, 5, 0.85), transparent 60%); }
.cover__in { position: relative; }
.cover__title { font-family: var(--display); font-weight: 900; font-size: var(--fs-display); line-height: 0.82; text-transform: uppercase; letter-spacing: -0.01em; margin: 0 0 var(--s-6) -0.04em; text-shadow: 0 0 80px rgba(176, 34, 26, 0.5); overflow-wrap: anywhere; }
.cover__sub { font-size: var(--fs-xl); line-height: 1.4; max-width: 34ch; color: var(--text-muted); margin-bottom: var(--s-10); }
.meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); margin: 0 0 var(--s-10); padding-top: var(--s-6); border-top: 1px solid var(--border-strong); max-width: 980px; }
.meta dt { font-family: var(--mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-subtle); margin-bottom: var(--s-1); }
.meta dd { margin: 0; font-size: var(--fs-sm); }
.cover__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
@media (max-width: 760px) {
  .meta { grid-template-columns: 1fr 1fr; }
  .cover { padding-top: 46vw; }
  .cover__trex { width: 130vw; right: -12%; bottom: auto; top: 72px; opacity: 0.9; }
  .cover__title { font-size: 25vw; }
}

/* ---------- layout + toc ---------- */
.layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: var(--s-16); }
.content { min-width: 0; }
.toc { position: sticky; top: 96px; align-self: start; padding-top: var(--s-24); }
.toc__toggle { display: none; }
.toc__list { list-style: none; margin: 0; padding: 0; counter-reset: t; border-left: 1px solid var(--border); }
.toc__list a { counter-increment: t; display: flex; align-items: center; gap: var(--s-3); min-height: 44px; padding-left: var(--s-4); margin-left: -1px; border-left: 2px solid transparent; color: var(--text-subtle); text-decoration: none; font-size: var(--fs-sm); transition: color var(--t-fast), border-color var(--t-fast); }
.toc__list a::before { content: counter(t, decimal-leading-zero); font-family: var(--mono); font-size: var(--fs-xs); }
.toc__list a:hover { color: var(--text); }
.toc__list a[aria-current="true"] { color: var(--accent); border-color: var(--accent); }

@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { top: 64px; z-index: 40; padding: 0; margin-inline: calc(-1 * var(--gutter)); background: rgba(7, 5, 5, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
  .toc__toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 var(--gutter); background: none; border: 0; text-align: left; }
  .toc__toggle::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: var(--fs-lg); }
  .toc__toggle[aria-expanded="true"]::after { content: "−"; }
  .toc__current { margin-left: auto; margin-right: var(--s-4); color: var(--text-muted); font-size: var(--fs-sm); }
  .toc__list { border: 0; padding: 0 var(--gutter) var(--s-3); display: grid; grid-template-columns: 1fr 1fr; }
  .toc__list a { padding-left: 0; border: 0; }
  .js .toc__list { display: none; }
  .js .toc.is-open .toc__list { display: grid; }
}

/* ---------- sections ---------- */
.sec { padding: var(--s-24) 0 var(--s-16); border-bottom: 1px solid var(--border); }
.sec:last-child { border-bottom: 0; }
.sec__num { color: var(--accent); margin-bottom: var(--s-4); }
.sub { font-family: var(--mono); font-size: var(--fs-xs); font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-subtle); margin: var(--s-16) 0 var(--s-6); padding-bottom: var(--s-3); border-bottom: 1px solid var(--border); }
.cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s-10); align-items: start; margin-bottom: var(--s-12); color: var(--text-muted); }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; gap: var(--s-4); } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); }
.card p { color: var(--text-muted); margin: 0; }
.card__k { color: var(--accent); }
.goals, .decisions { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--s-4); }
.decisions { margin-top: var(--s-10); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.kpi { margin-top: auto !important; padding-top: var(--s-4); border-top: 1px solid var(--border); display: flex; flex-direction: column; }
.kpi strong { font-family: var(--display); font-size: var(--fs-2xl); color: var(--text); line-height: 1; }
.kpi span { font-size: var(--fs-sm); color: var(--text-subtle); }

/* personas */
.personas { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s-4); }
.persona { background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-8); }
.persona__head { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-6); }
.persona__head p { margin: var(--s-1) 0 0; }
.avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: var(--fs-xl); font-weight: 900; background: radial-gradient(circle at 35% 30%, var(--ember-300), var(--blood-700)); color: var(--accent-ink); }
.avatar--b { background: radial-gradient(circle at 35% 30%, var(--bone-100), var(--ash-700)); }
.persona blockquote { margin: 0 0 var(--s-6); font-size: var(--fs-lg); line-height: 1.45; padding-left: var(--s-4); border-left: 2px solid var(--accent); }
.persona__dl { margin: 0; display: grid; gap: var(--s-4); }
.persona__dl dt { font-family: var(--mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-subtle); }
.persona__dl dd { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); }

/* moodboard */
.mood { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 170px; gap: var(--s-3); margin-top: var(--s-10); }
.mood__tile { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--soot); }
.mood__tile figcaption { position: absolute; left: var(--s-3); bottom: var(--s-3); color: var(--bone-300); background: rgba(7, 5, 5, 0.6); padding: 2px var(--s-2); border-radius: var(--r-sm); }
.mood__fog1 { grid-column: span 2; grid-row: span 2; background: radial-gradient(35% 45% at 65% 55%, var(--ember-400), transparent 70%), radial-gradient(60% 50% at 40% 60%, var(--blood-500), transparent 75%), radial-gradient(90% 80% at 50% 50%, var(--blood-900), var(--void)); }
.mood__fog1::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(100deg, transparent 0 18px, rgba(7, 5, 5, 0.18) 18px 40px); filter: blur(8px); }
.mood__crop { grid-row: span 2; background: linear-gradient(180deg, var(--blood-700), var(--void)); }
.mood__trex { position: absolute; height: 150%; max-width: none; width: auto; top: 2%; right: -8%; filter: brightness(0); }
.mood__trex--tail { height: 230%; right: auto; left: -6%; top: -50%; }
.mood__type { display: grid; place-items: center; background: var(--bone-100); }
.mood__type figcaption { color: var(--bone-100); }
.mood__big { font-family: var(--display); font-weight: 900; font-size: 7rem; line-height: 1; color: var(--void); }
.mood__chips { display: grid; place-items: center; }
.chips { display: flex; }
.chips i { width: 40px; height: 40px; border-radius: 50%; margin-left: -8px; border: 2px solid var(--soot); }
.mood__fog2 { background: radial-gradient(70% 40% at 50% 100%, var(--blood-500), transparent 70%), linear-gradient(var(--void), var(--ash-900)); }
.mood__fog2::before { content: ""; position: absolute; left: 20%; right: 20%; bottom: 0; height: 60%; background: linear-gradient(transparent, rgba(255, 138, 92, 0.25)); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.mood__words { grid-column: span 2; padding: var(--s-4); }
.words { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); font-family: var(--display); font-size: var(--fs-2xl); font-weight: 700; text-transform: uppercase; line-height: 1.1; }
.words li:nth-child(3n+1) { color: var(--ember-400); }
.words li:nth-child(3n+2) { color: var(--bone-500); }
.mood__crop2 { background: radial-gradient(circle at 70% 30%, var(--ember-400), var(--blood-700) 50%, var(--void)); }
.mood__grain { background: linear-gradient(135deg, var(--ash-700), var(--void)); }
.mood__grain::before { content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@media (max-width: 760px) {
  .mood { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; grid-auto-flow: dense; }
  .mood__crop { grid-row: span 2; }
}

/* art direction */
.swatches { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s-4); }
.sw { display: flex; flex-direction: column; gap: var(--s-1); font-size: var(--fs-sm); }
.sw__c { height: 96px; border-radius: var(--r-md); border: 1px solid var(--border-strong); margin-bottom: var(--s-2); }
.sw code { color: var(--text-subtle); }
.sw span:last-child { color: var(--text-muted); }
.type { display: grid; gap: var(--s-2); }
.type__row { padding: var(--s-6) 0; border-bottom: 1px solid var(--border); }
.type__row p { margin: var(--s-2) 0 0; }
.type__display { font-family: var(--display); font-weight: 900; font-size: var(--fs-3xl); line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.type__body { font-size: var(--fs-xl); max-width: 44ch; }
.type__mono { font-family: var(--mono); color: var(--ember-300); overflow-wrap: anywhere; }
.principles { margin: 0; padding: 0; list-style: none; counter-reset: p; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s-6) var(--s-8); }
.principles li { counter-increment: p; color: var(--text-muted); padding-top: var(--s-4); border-top: 1px solid var(--border-strong); }
.principles li::before { content: counter(p, decimal-leading-zero); display: block; font-family: var(--mono); font-size: var(--fs-xs); color: var(--accent); margin-bottom: var(--s-2); }
.principles b { color: var(--text); display: block; }
.dodont { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: var(--s-6) var(--s-4); }
.dd { margin: 0; }
.dd__ex { height: 160px; border-radius: var(--r-md); display: grid; place-items: center; position: relative; overflow: hidden; border: 1px solid var(--border); }
.dd__ex--do { background: var(--void); }
.dd__ex--dont { background: radial-gradient(circle, var(--blood-500), var(--blood-900)); }
.dd__ex--do2 { background: radial-gradient(circle at 30% 30%, var(--blood-700), var(--void)); }
.dd__ex--dont2 { background: radial-gradient(circle at 50% 50%, var(--blood-500), var(--void)); }
.dd__btn { background: var(--accent); color: var(--accent-ink); font-weight: 600; padding: var(--s-3) var(--s-6); border-radius: var(--r-full); }
.dd__btn--bad { background: var(--blood-700); color: var(--blood-500); }
.dd__label { font-family: var(--mono); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); }
.dd__ex--do2 .dd__label { background: var(--surface); border: 1px solid var(--border-strong); }
.dd__ex--dont2 .dd__label { color: rgba(239, 231, 220, 0.5); filter: blur(1.2px); }
.dd figcaption { font-size: var(--fs-sm); color: var(--text-muted); margin-top: var(--s-3); }
.dd figcaption b { font-family: var(--mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; margin-right: var(--s-2); }
.ok { color: var(--moss-500); }
.bad { color: var(--ember-400); }

/* motion demos */
.demos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-4); margin-top: var(--s-10); }
.demo { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.demo figcaption { padding: var(--s-4) var(--s-5) var(--s-5); font-size: var(--fs-sm); color: var(--text-muted); }
.demo figcaption b { display: block; color: var(--text); font-size: var(--fs-md); }
.demo figcaption .btn { margin-top: var(--s-3); display: flex; width: fit-content; }
.demo__stage { position: relative; height: 200px; overflow: hidden; background: var(--void); }
.demo__fog .fog { inset: -30%; filter: blur(20px); }
.demo__fog .fog--a { animation-duration: 9s; }
.demo__fog .fog--b { animation-duration: 13s; }
.demo__shake { display: grid; place-items: end center; background: radial-gradient(60% 60% at 50% 100%, var(--blood-900), var(--void)); }
.shake-target { position: relative; width: 70%; padding-bottom: var(--s-4); }
.shake-target img { width: 100%; filter: brightness(0) drop-shadow(0 0 12px rgba(176, 34, 26, 0.7)); }
.ground { position: absolute; left: -20%; right: -20%; bottom: var(--s-4); height: 1px; background: var(--border-strong); }
.demo__shake.is-shaking .shake-target { animation: shake 380ms var(--ease) 1; }
@keyframes shake { 0% { transform: translate(0, 0); } 15% { transform: translate(-4px, 3px); } 35% { transform: translate(3px, -2px); } 55% { transform: translate(-2px, 1px); } 75% { transform: translate(1px, 0); } 100% { transform: none; } }
.demo__curve { display: grid; grid-template-columns: 1fr; place-items: center; padding: var(--s-4); gap: var(--s-3); }
.demo__curve svg { height: 140px; width: auto; overflow: visible; }
.curve__grid { fill: none; stroke: var(--border-strong); stroke-width: 0.5; }
.curve__handle { fill: none; stroke: var(--bone-500); stroke-width: 0.6; stroke-dasharray: 2 2; }
.curve__path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }
.curve__bar { width: 100%; height: 6px; background: var(--ash-800); border-radius: var(--r-full); position: relative; }
.curve__bar span { position: absolute; left: 0; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px var(--accent); transition: left var(--t-slow) var(--ease-cine); }
.curve__bar.is-end span { left: 100%; }

/* sound */
.sound { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-6); display: grid; gap: var(--s-6); }
.sound__diagram { position: relative; display: grid; gap: var(--s-3); }
.lane { display: grid; grid-template-columns: 64px minmax(0, 1fr) 210px; align-items: center; gap: var(--s-4); }
.lane__n { color: var(--text-muted); }
.lane__d { font-size: var(--fs-xs); color: var(--text-subtle); }
.lane__track { position: relative; height: 28px; background: var(--ash-800); border-radius: var(--r-sm); overflow: hidden; }
.lane__track i { position: absolute; top: 4px; bottom: 4px; border-radius: 3px; background: linear-gradient(90deg, var(--blood-700), var(--blood-500)); transition: filter var(--t-med); }
.lane[data-layer="wind"] .lane__track i { background: repeating-linear-gradient(90deg, var(--blood-700) 0 6px, var(--blood-500) 6px 10px); }
.lane[data-layer="growl"] .lane__track i { background: var(--ember-400); }
.lane__track--dots i { width: 10px; background: var(--bone-300); }
.lane.is-active .lane__track i { filter: brightness(1.6) drop-shadow(0 0 6px var(--ember-400)); }
.playhead { position: absolute; top: -6px; bottom: -6px; left: calc(64px + var(--s-4)); width: 2px; background: var(--bone-100); opacity: 0; pointer-events: none; }
.sound.is-playing .playhead { opacity: 1; animation: playhead 10s linear forwards; }
@keyframes playhead { to { left: calc(100% - 210px - var(--s-4)); } }
.sound__ctl { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
.sound__ctl p { margin: 0; flex: 1 1 260px; }
@media (max-width: 760px) {
  .lane { grid-template-columns: 56px minmax(0, 1fr); }
  .lane__d { grid-column: 2; margin-top: calc(-1 * var(--s-2)); }
  .playhead { left: calc(56px + var(--s-4)); }
  @keyframes playhead { to { left: 100%; } }
}

/* key screens */
.screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-12) var(--s-6); }
.shot { margin: 0; display: flex; flex-direction: column; gap: var(--s-5); }
.shot--wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: center; gap: var(--s-8); }
.shot figcaption h3 { margin-bottom: var(--s-3); }
.notes { margin: 0; padding: 0; list-style: none; counter-reset: n; display: grid; gap: var(--s-3); }
.notes li { counter-increment: n; position: relative; padding-left: 36px; min-height: 24px; font-size: var(--fs-sm); color: var(--text-muted); }
.notes li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--mono); font-size: var(--fs-xs); font-weight: 500; display: grid; place-items: center; }
.pin { position: absolute; z-index: 3; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--mono); font-size: var(--fs-xs); display: grid; place-items: center; box-shadow: 0 0 0 4px var(--accent-soft), 0 0 0 8px rgba(255, 90, 46, 0.06); }
.browser { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border-strong); box-shadow: var(--shadow-2); background: var(--void); }
.browser__bar { height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 var(--s-3); background: var(--ash-800); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--ash-700); }
.browser__bar span { margin-inline: auto; font-family: var(--mono); font-size: 10px; color: var(--text-subtle); background: var(--ash-900); padding: 2px var(--s-6); border-radius: var(--r-sm); }
.phone { width: min(100%, 280px); margin-inline: auto; padding: 10px; border-radius: 36px; background: var(--ash-800); border: 1px solid var(--border-strong); box-shadow: var(--shadow-2); }
.scr { position: relative; overflow: hidden; container-type: inline-size; }
.browser .scr { aspect-ratio: 16 / 9; }
.phone .scr { aspect-ratio: 9 / 15; border-radius: 28px; background: var(--void); padding: 12% 9% 9%; display: flex; flex-direction: column; gap: var(--s-2); }
.scr__logo { font-family: var(--display); font-weight: 900; font-size: 13cqw; line-height: 1; margin: 0; letter-spacing: 0.04em; }
.scr__small { font-size: 2cqw; color: var(--text-muted); margin: 1.5cqw 0 3cqw; }
.scr__row { display: flex; gap: 2cqw; }
.scr__btn { display: inline-block; font-size: 1.8cqw; font-weight: 600; padding: 1.2cqw 2.6cqw; border-radius: var(--r-full); background: var(--accent); color: var(--accent-ink); white-space: nowrap; }
.scr__btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.scr--gate { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: radial-gradient(50% 50% at 50% 60%, var(--blood-900), var(--void)); }
.scr--hero { background: var(--void); }
.scr--hero .fog { filter: blur(12px); }
.scr__trex { position: absolute; right: 4%; bottom: 0; width: 66%; filter: brightness(0); }
.scr__torch { position: absolute; inset: 0; background: radial-gradient(16% 28% at 84% 62%, rgba(255, 138, 92, 0.32), transparent 70%), radial-gradient(60% 60% at 84% 62%, transparent 30%, rgba(107, 19, 13, 0.55)); }
.scr__h { position: absolute; left: 6%; top: 30%; margin: 0; font-family: var(--display); font-weight: 900; font-size: 7cqw; line-height: 0.9; text-transform: uppercase; }
.scr__cta { position: absolute; left: 6%; top: 62%; }
.scr__cardimg { height: 38%; border-radius: 14px; background: radial-gradient(circle at 60% 30%, var(--blood-500), var(--blood-900) 70%); position: relative; overflow: hidden; }
.scr__cardimg img { position: absolute; width: 230%; right: -6%; top: -4%; max-width: none; filter: brightness(0); }
.scr__tag { font-family: var(--mono); font-size: 4cqw; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ember-300); margin: 2cqw 0 0; }
.scr__h--sm { position: static; font-size: 14cqw; }
.scr__stats { display: flex; gap: 3cqw; margin-top: auto; }
.scr__stats span { flex: 1; border: 1px solid var(--border-strong); border-radius: 8px; text-align: center; padding: 3cqw 0; font-family: var(--mono); font-size: 4.5cqw; }
.scr__chips { display: flex; gap: 2cqw; flex-wrap: wrap; }
.scr__chips span { font-size: 4.2cqw; padding: 2cqw 3cqw; border-radius: var(--r-full); border: 1px solid var(--border-strong); }
.scr__chips .on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.scr__chips .off { text-decoration: line-through; color: var(--text-subtle); opacity: 0.6; }
.scr__chips .sold { color: var(--text-subtle); background: var(--blood-900); border-color: transparent; text-decoration: line-through; }
.scr__step, .scr__total { display: flex; justify-content: space-between; font-size: 4.6cqw; padding: 2.5cqw 0; border-bottom: 1px solid var(--border); }
.scr__step b { font-family: var(--mono); font-weight: 400; }
.scr__total { margin-top: auto; border: 0; font-size: 5cqw; }
.scr__upsell { font-size: 4.2cqw; color: var(--moss-500); border: 1px dashed var(--moss-500); border-radius: 8px; padding: 2.5cqw 3cqw; margin-top: 2cqw; }
.scr__p { font-size: 4.4cqw; line-height: 1.45; color: var(--text-muted); margin: 0; }
.scr__total b { color: var(--ember-300); }
.scr__btn--full { font-size: 4.8cqw; padding: 3.5cqw; text-align: center; }
@media (max-width: 760px) {
  .screens { grid-template-columns: minmax(0, 1fr); }
  .shot--wide { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
}

/* booking flow */
.flow { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-6); margin-top: var(--s-6); }
.flow svg { min-width: 860px; width: 100%; height: auto; }
.flow text { font-family: var(--font); font-size: 14px; text-anchor: middle; fill: var(--text); }
.f-main rect { fill: var(--ash-800); stroke: var(--border-strong); }
.f-main .f-end { fill: var(--accent); stroke: var(--accent); }
.f-main .f-endt { fill: var(--accent-ink); font-weight: 600; }
.f-lines path { fill: none; stroke: var(--bone-500); stroke-width: 1.5; }
.f-arrhead { fill: var(--bone-500); }
.f-alt rect { fill: none; stroke: var(--blood-500); stroke-dasharray: 4 3; }
.f-alt .f-up { stroke: var(--moss-500); }
.f-alt text { font-family: var(--mono); font-size: 12px; fill: var(--text-muted); }

.flow__hint { display: none; margin: var(--s-3) 0 0; }
@media (max-width: 900px) { .flow__hint { display: block; } }

/* a11y */
.a11y { list-style: none; padding: 0; margin: 0 0 var(--s-12); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-6); }
.a11y li { display: grid; gap: var(--s-2); padding-top: var(--s-4); border-top: 2px solid var(--accent); }
.a11y span { color: var(--text-muted); font-size: var(--fs-sm); }
.ba { margin: 0; display: grid; gap: var(--s-4); }
.ba__stage { --pos: 50%; position: relative; aspect-ratio: 16 / 8; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border-strong); }
.ba__pane { position: absolute; inset: 0; overflow: hidden; }
.ba__pane img { position: absolute; right: 8%; bottom: 0; width: 60%; filter: brightness(0); }
.ba__after { background: radial-gradient(60% 70% at 65% 70%, var(--blood-700), var(--blood-900) 50%, var(--void)); }
.ba__before { background: radial-gradient(70% 80% at 70% 70%, var(--blood-900), var(--void)); clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__torch { position: absolute; inset: 0; z-index: 1; background: radial-gradient(14% 26% at 80% 62%, rgba(255, 138, 92, 0.35), transparent 70%); animation: drift-a 9s ease-in-out infinite alternate; }
.ba__h { position: absolute; z-index: 2; left: 6%; top: 30%; margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(1.5rem, 1rem + 3vw, 3.5rem); line-height: 0.9; text-transform: uppercase; }
.ba__cta { position: absolute; z-index: 2; left: 6%; top: 62%; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: var(--fs-sm); padding: var(--s-2) var(--s-4); border-radius: var(--r-full); }
.ba__before img { filter: brightness(0) drop-shadow(0 0 30px var(--blood-500)); animation: breathe 5s ease-in-out infinite; }
.ba__before .fog { z-index: 1; }
.ba__before .fog--b { animation-duration: 12s; }
.ba__before .fog--a { animation-duration: 8s; }
.ba__label { position: absolute; top: var(--s-4); z-index: 2; background: rgba(7, 5, 5, 0.7); padding: var(--s-1) var(--s-2); border-radius: var(--r-sm); }
.ba__before .ba__label { left: var(--s-4); }
.ba__after .ba__label { right: var(--s-4); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--accent); z-index: 3; box-shadow: 0 0 20px var(--accent); }
@media (max-width: 640px) { .ba__stage { aspect-ratio: 4 / 3; } .ba__pane img { width: 90%; right: -20%; } }
.ba__ctl { display: grid; gap: var(--s-2); }
.ba__ctl input { width: 100%; height: 44px; accent-color: var(--accent); margin: 0; }

/* results */
.stats { list-style: none; padding: 0; margin: var(--s-8) 0 var(--s-12); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s-6); }
.stat { display: grid; gap: var(--s-2); padding-top: var(--s-4); border-top: 1px solid var(--border-strong); }
.stat__v { font-family: var(--display); font-weight: 900; font-size: var(--fs-3xl); line-height: 1; color: var(--ember-400); font-variant-numeric: tabular-nums; }
.stat__l { font-size: var(--fs-sm); color: var(--text-muted); }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-4); }
.quotes blockquote { margin: 0; padding: var(--s-6); background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--border); display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-4); }
.quotes p { font-size: var(--fs-lg); line-height: 1.45; margin: 0; }

/* learnings */
.learn { margin: 0; padding: 0; list-style: none; counter-reset: l; display: grid; gap: 0; }
.learn li { counter-increment: l; display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--s-6); padding: var(--s-6) 0; border-top: 1px solid var(--border); align-items: baseline; }
.learn li::before { content: counter(l, decimal-leading-zero); font-family: var(--display); font-weight: 900; font-size: var(--fs-2xl); color: var(--accent); }
.learn p { margin: 0; color: var(--text-muted); }
@media (max-width: 760px) { .learn li { grid-template-columns: 48px minmax(0, 1fr); gap: var(--s-2) var(--s-4); } .learn p { grid-column: 2; } }

/* footer */
.foot { position: relative; overflow: hidden; padding: var(--s-32) 0 var(--s-12); border-top: 1px solid var(--border); isolation: isolate; }
.foot .fog { z-index: -1; }
.foot__in { display: grid; gap: var(--s-8); }
.foot__big { font-family: var(--display); font-weight: 900; font-size: clamp(3rem, 1rem + 9vw, 9rem); line-height: 0.85; text-transform: uppercase; margin: 0; }

/* ---------- reveals (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease-cine); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .fog, .cover__trex, .ba__before img, .ba__torch { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
