/* Upstairs BF26 landing pages. Upstairs design system (Geist headings, Nunito Sans text, blue #0062ff actions,
   yellow #f2ff6b highlight) on a black, Apple-style stage: big type, pill buttons, scenes tied to the scroll.
   Scenes (lp.js sets --p from 0 to 1): without JS or with reduced motion they are laid out still. */
@font-face { font-family: 'Geist'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/assets/fonts/geist-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Geist'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/assets/fonts/geist-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-display: swap; font-weight: 200 1000;
  src: url(/assets/fonts/nunito-sans-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-display: swap; font-weight: 200 1000;
  src: url(/assets/fonts/nunito-sans-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --bg: #000; --alt: #161617; --card: #1d1d1f; --fg: #f5f5f7; --soft: #a1a1a6; --muted: #86868b;
  --line: rgba(255, 255, 255, .14); --blue: #0062ff; --blue-l: #5c9dff; --blue-d: #0050d1; --yellow: #f2ff6b; --ink: #131314;
  --r: 18px; --head: 'Geist', ui-sans-serif, system-ui, sans-serif; --text: 'Nunito Sans', ui-sans-serif, system-ui, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1.0625rem/1.55 var(--text); letter-spacing: -.01em; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 1.1rem + 5.4vw, 5.75rem); line-height: 1.02; letter-spacing: -.048em; }
h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.75rem); line-height: 1.05; letter-spacing: -.042em; margin-bottom: 1.25rem; }
h3 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -.02em; }
p { margin: 0 0 1rem; }
p, li, figcaption, summary, .lead, .sub { text-wrap: pretty; } /* no widows; the server also joins the last two words */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 800px; }
mark.todo { background: #ffd2d2; color: #8a0000; padding: 0 .25em; border-radius: 3px; font: 600 .85em/1.4 var(--text); letter-spacing: 0; }
#buy, #join { scroll-margin-top: 72px; }

/* local nav: sticky, blurred, with the page name and the buy button (Apple product nav, Upstairs colors) */
.top { position: sticky; top: 0; z-index: 30; background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 14px; height: 52px; }
.logo { display: block; flex: none; width: 92px; color: var(--fg); }
.logo svg { display: block; width: 100%; height: auto; }
.top__name { font: 600 1.05rem/1 var(--head); letter-spacing: -.02em; padding-left: 14px; border-left: 1px solid var(--line); white-space: nowrap; }
.top__tag { font: 700 .7rem/1 var(--head); letter-spacing: .05em; text-transform: uppercase; color: var(--ink); background: var(--yellow); padding: .5em .75em; border-radius: 999px; white-space: nowrap; }
.top__sp { flex: 1; }
.top__cd { font: 500 .85rem/1 var(--head); color: var(--soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.top__cd .countdown__left { display: inline; font: inherit; color: inherit; margin: 0; }
.pill { display: inline-flex; align-items: center; min-height: 30px; padding: 6px 15px; border-radius: 999px; background: var(--blue); color: #fff; font: 800 .85rem/1 var(--text); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; transition: background .15s; }
.pill:hover { background: var(--blue-d); }
@media (max-width: 760px) { .top__tag, .top__cd { display: none; } .logo { width: 80px; } }
@media (max-width: 420px) { .top__in { gap: 10px; } .top__name { font-size: .95rem; padding-left: 10px; } .pill { padding: 6px 12px; } }
.top__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; } /* a long pack name shrinks instead of pushing the buy button off screen */
@media (max-width: 400px) { .top__name { display: none; } } /* phones: logo + buy button only, no cut-off name */
.foot { border-top: 1px solid var(--line); padding: 28px 0 96px; font-size: .88rem; color: var(--muted); }
.foot__in { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--fg); }

/* hero: centered, huge title, price and buttons, the folder below */
.hero { padding: clamp(64px, 10vw, 136px) 0 0; text-align: center; overflow: hidden; }
.hero__in { display: flex; flex-direction: column; align-items: center; }
.hero h1 { max-width: 13em; }
.hero--center { padding: clamp(96px, 16vw, 200px) 0; }
.hero--solo { padding-bottom: clamp(56px, 8vw, 110px); }
/* waitlist: after the D5 scene, the closed folder as "and much more" */
.more { padding: clamp(80px, 11vw, 150px) 0 clamp(40px, 6vw, 80px); text-align: center; overflow: hidden; }
.more__head h2 { margin-bottom: .6rem; }
.more__head .sub { margin: 0 auto; }
.more .burst { max-width: 460px; }
.more .hero__art { margin-top: 0; }
.hero--center .narrow { margin: 0 auto; }
.eyebrow { font: 600 clamp(1rem, .9rem + .3vw, 1.2rem)/1.2 var(--head); letter-spacing: -.01em; color: var(--yellow); margin-bottom: 1.1rem; }
.lead { font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); line-height: 1.45; font-weight: 500; color: var(--soft); max-width: 32em; margin: 1.5rem auto 0; }
.lead strong { color: var(--fg); }
.lead--big { font: 600 clamp(1.4rem, 1rem + 1.4vw, 2.2rem)/1.3 var(--head); letter-spacing: -.03em; color: var(--fg); margin: 0 0 clamp(48px, 7vw, 96px); max-width: 26em; }
.hl { color: var(--yellow); }
/* waitlist: big countdown to the premiere */
.cdx { margin-top: clamp(40px, 6vw, 64px); }
.cal { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 28px; }
.cal__l { width: 100%; font: 600 .9rem/1 var(--head); color: var(--soft); margin-bottom: 2px; }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: .92rem; }
.premiere .cal { justify-content: flex-start; margin-top: 18px; }

.cdx__h { font: 600 .95rem/1 var(--head); color: var(--soft); margin: 0 0 14px; }
.cdx__u { display: flex; justify-content: center; gap: clamp(14px, 3vw, 36px); }
.cdx__u div { display: grid; justify-items: center; gap: 8px; min-width: 3.4ch; }
.cdx__u strong { font: 700 clamp(2.6rem, 1.6rem + 4vw, 5rem)/1 var(--head); letter-spacing: -.05em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 30%, #8fb4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cdx__u span { font: 600 .72rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero__ctas.premiere__ctas { justify-content: flex-start; margin-top: 1.5rem !important; }
.times strong, .premiere__when span { white-space: nowrap; }

.hero__buy { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero__buy p { margin: 0; }
.hero__price { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 6px 10px; }
.hero__price .price__tag { align-self: center; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 14px !important; }
.hero__buy .countdown { margin-top: 10px !important; }
.hero__art { position: relative; margin-top: clamp(32px, 5vw, 64px); }
.hero__art::before { content: ''; position: absolute; left: 50%; top: 58%; width: min(110vw, 900px); aspect-ratio: 1; translate: -50% -50%; background: radial-gradient(closest-side, rgba(0, 98, 255, .3), rgba(0, 98, 255, .08) 55%, transparent 72%); pointer-events: none; }

/* buttons: pills */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 26px; border: 0; border-radius: 999px;
  font: 800 1.05rem/1.2 var(--text); letter-spacing: -.01em; text-decoration: none; text-align: center; cursor: pointer; transition: background .15s, color .15s, transform .2s, box-shadow .2s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-d); transform: translateY(-1px); box-shadow: 0 12px 28px -12px rgba(0, 98, 255, .9); }
.btn--ghost { background: transparent; color: var(--blue-l); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { background: rgba(92, 157, 255, .1); }
.btn:focus-visible, .pill:focus-visible, input:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* price card */
.price { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: grid; gap: 10px; max-width: 460px; text-align: left; }
.price p { margin: 0; }
.price__tag { justify-self: start; font: 700 .85rem/1 var(--head); background: var(--yellow); color: var(--ink); padding: .5em .75em; border-radius: 999px; }
.price__row { display: flex; align-items: baseline; gap: 12px; margin-top: 4px !important; }
.price__now { font: 700 clamp(2.8rem, 2rem + 2.4vw, 3.8rem)/1 var(--head); letter-spacing: -.045em; color: var(--fg); }
.price__was { font: 500 1.3rem/1 var(--head); color: var(--muted); }
.price__split { color: var(--soft); }
.price__note { font-weight: 700; color: var(--fg); }
.price .btn { width: 100%; }
.price .btn--primary { margin-top: 8px; }
.countdown { font-size: .92rem; color: var(--muted); margin-top: 4px !important; }
.countdown strong { color: var(--fg); font-weight: 700; }
.countdown__left { display: block; font: 600 1rem/1.4 var(--head); color: var(--fg); font-variant-numeric: tabular-nums; margin-top: 2px; }
.countdown__left:empty { display: none; }

/* sections */
.block { padding: clamp(80px, 11vw, 150px) 0; }
.block--alt { background: var(--alt); }
.sub { color: var(--soft); font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); max-width: 38em; margin: -.25rem 0 2.5rem; }
.courses { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .courses { grid-template-columns: 1fr 1fr; } }
.course { background: var(--card); border-radius: var(--r); padding: 12px 12px 24px; }
.course__img { overflow: hidden; border-radius: 12px; margin-bottom: 18px; }
.course__img img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: #2a2a2d; transition: scale .6s cubic-bezier(.2, .7, .2, 1); }
.course:hover .course__img img { scale: 1.04; }
.course h3, .course p { padding: 0 10px; }
.course p { color: var(--soft); margin: 6px 0 0; }
.course p.course__list { margin-top: 10px; font: 600 .92rem/1.2 var(--head); color: var(--fg); }
.packs { display: grid; gap: 18px 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.packs--big { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px 16px; }
.pack { margin: 0; }
.pack img { border-radius: 12px; aspect-ratio: 1; object-fit: cover; width: 100%; background: #2a2a2d; transition: translate .35s cubic-bezier(.2, .7, .2, 1), rotate .35s, box-shadow .35s; }
.pack:hover img { translate: 0 -6px; rotate: -1.5deg; box-shadow: 0 16px 30px -16px rgba(0, 98, 255, .7); }
.pack figcaption { font-size: .88rem; line-height: 1.3; margin-top: 8px; color: var(--soft); }

/* big numbers */
.stats { padding: clamp(80px, 11vw, 150px) 0; border-top: 1px solid var(--line); }
.stats__in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 24px; }
@media (min-width: 960px) { .stats__in { grid-template-columns: repeat(4, 1fr); } }
.stat strong { display: block; font: 700 clamp(3.6rem, 2rem + 5.4vw, 7rem)/.95 var(--head); letter-spacing: -.055em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 30%, #8fb4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat--y strong { background: none; color: var(--yellow); }
.stat > span { display: block; margin-top: 14px; color: var(--soft); font-size: 1.05rem; max-width: 14em; }

/* buy: the receipt adds everything up, the card stays in view next to it */
.buy { padding: clamp(80px, 11vw, 160px) 0; border-top: 1px solid var(--line); background: radial-gradient(70% 60% at 75% 35%, rgba(0, 98, 255, .2), transparent 70%), var(--bg); }
.buy__in { display: grid; gap: 40px; align-items: start; }
.buy__in > * { min-width: 0; } /* grid items: let long receipt lines wrap instead of widening the page on phones */
.receipt li span:first-child, .receipt p span:first-child { min-width: 0; }
.buy__copy h2 { max-width: 13em; }
.buy__copy > p { color: var(--soft); max-width: 34em; }
@media (min-width: 960px) { .buy__in { grid-template-columns: minmax(0, 1fr) 460px; gap: 80px; } .buy__card { position: sticky; top: 84px; } }

/* faq */
.faq { border-top: 1px solid var(--line); padding: 4px 0; }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font: 600 1.15rem/1.35 var(--head); letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font: 400 1.6rem/1 var(--head); color: var(--blue-l); }
.faq[open] summary::after { content: '−'; }
.faq p { color: var(--soft); padding-bottom: 14px; }
.faq__list { color: var(--soft); margin: 0 0 14px; padding-left: 1.2em; }
.faq__list li { margin-bottom: 6px; }

/* waitlist */
.join { margin: 36px auto 0; width: 100%; max-width: 540px; }
.join__row { display: flex; flex-direction: column; gap: 10px; }
.join input { min-height: 52px; padding: 0 22px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; font: 400 1.05rem var(--text); background: var(--card); color: var(--fg); width: 100%; }
.join input::placeholder { color: rgba(255, 255, 255, .45); }
@media (min-width: 560px) { .join__row { flex-direction: row; } .join__row input { flex: 1; } }
.join__consent { font-size: .88rem; color: var(--muted); margin: 12px 0 0; }
.join__consent a { color: var(--soft); }
.join__msg { font-weight: 700; margin: 12px 0 0; }
.join__msg:empty { display: none; }
.join.is-done .join__row, .join.is-done .join__consent { display: none; }
.join.is-done .join__msg { background: var(--yellow); color: var(--ink); padding: 16px 20px; border-radius: 16px; }
.join.is-error .join__msg { color: #ff7a7a; }
.premiere { display: grid; gap: 40px; }
@media (min-width: 960px) { .premiere { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; } }
.premiere .lead { margin-left: 0; }
.premiere__when { font: 700 1.25rem/1.3 var(--head); margin-top: 1.5rem; }
.times { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.times li { display: flex; justify-content: space-between; gap: 12px; padding: 16px 4px; border-bottom: 1px solid var(--line); color: var(--soft); }
.times li:nth-child(odd) { padding-right: 16px; } .times li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.times strong { font-family: var(--head); font-variant-numeric: tabular-nums; color: var(--fg); }
.live { display: block; text-align: center; background: var(--blue); color: #fff; font: 700 1rem/1.3 var(--head); padding: 14px 20px; text-decoration: none; }
.live:hover { background: var(--blue-d); }

/* review helpers */
.review li { margin: 8px 0; }
.review a { color: var(--blue-l); }
.sim { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; background: #1d1d1f; color: var(--yellow); border: 1px solid var(--line); font: 600 .8rem/1.35 var(--head); padding: 10px 14px; border-radius: 12px; box-shadow: 0 8px 28px rgba(0, 0, 0, .5); }


/* ================= scroll scenes ================= */
.scene { position: relative; }
.scene__pin { position: relative; }

/* --- D5: a render on a monitor; the scroll zooms into the screen, then the light changes ---
   lp.js adds .is-live and sets, in px: --t0/--b0/--l0 (screen insets at the start), --cy (screen center) and --s0
   (image scale at the start). Still layout (no JS, reduced motion): title, one image, closing line. */
.scene--d5 { padding: clamp(80px, 11vw, 150px) 0; }
.scene--d5 .scene__pin { display: flex; flex-direction: column; } /* still layout: title above the image */
.scene--d5 .d5__head { order: -1; }
.d5__head { text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.d5__head h2 { margin: 0; }
.d5__head p { color: var(--soft); font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); font-weight: 500; margin: 14px 0 0; }
.d5__view { position: relative; width: min(100% - 40px, 1160px); margin: 0 auto; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #111; }
.d5__img, .d5__m { position: absolute; inset: 0; }
.d5__m { isolation: isolate; }
.d5__m img { width: 100%; height: 100%; object-fit: cover; }
.d5__m::before, .d5__m::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.d5__t { display: none; }
.d5__t img { width: 100%; height: 100%; object-fit: contain; display: block; }
.d5__m:not(:first-child), .d5__shade, .d5__bezel, .d5__stand, .d5__note, .d5__moods { display: none; }
.has-moods .d5__m.mood--sunset { display: block; } /* still layout shows the sunset */
.has-moods .d5__t { display: block; position: absolute; inset: 0; } /* ...unless the video thumbnail is there: it is the still frame */
.has-moods .d5__t ~ .d5__m.mood--sunset { display: none; }
.d5__outro { text-align: center; font: 700 clamp(1.8rem, 1.1rem + 2.6vw, 3.4rem)/1.08 var(--head); letter-spacing: -.04em; margin: clamp(32px, 5vw, 56px) auto 0; }

.scene--d5.is-live { height: 400vh; padding: 0;
  --z: clamp(0, calc(var(--p, 0) / .24), 1); --ze: calc((1 - cos(var(--z) * 180deg)) / 2); --zi: calc(1 - var(--ze)); } /* sine in-out zoom */
.is-live .scene__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.is-live .d5__view { position: absolute; inset: 0; width: auto; margin: 0; aspect-ratio: auto; border-radius: 0; background: none;
  clip-path: inset(calc(var(--t0) * var(--zi) * 1px) calc(var(--l0) * var(--zi) * 1px) calc(var(--b0) * var(--zi) * 1px) round calc(var(--zi) * 6px)); }
.is-live .d5__m { display: block; transform-origin: 50% calc(var(--cy) * 1px); transform: scale(calc(var(--s0) + (1 - var(--s0)) * var(--ze)));
  opacity: clamp(0, calc((var(--p) - var(--s)) / .05), 1); will-change: transform, opacity; }
.is-live .d5__t { display: block; position: absolute; inset: auto; left: calc((100% - var(--w0) * 1px) / 2); top: calc(var(--cy) * 1px - var(--h0) * .5px); width: calc(var(--w0) * 1px); height: calc(var(--h0) * 1px);
  transform: scale(calc(1 + (var(--k) - 1) * var(--ze))); transform-origin: 50% 50%; will-change: transform; }
.is-live .d5__view::after { content: ''; position: absolute; inset: auto 0 0; height: 50%; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); opacity: clamp(0, calc((var(--p) - .2) / .05), 1); pointer-events: none; }
.is-live .d5__shade { display: block; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 55%, rgba(0, 0, 0, .35), rgba(0, 0, 0, .8)); opacity: clamp(0, calc((var(--p) - .87) / .05), 1); }
.is-live .d5__bezel { display: block; position: absolute; pointer-events: none;
  top: calc(var(--t0) * var(--zi) * 1px - 14px); bottom: calc(var(--b0) * var(--zi) * 1px - 14px); left: calc(var(--l0) * var(--zi) * 1px - 14px); right: calc(var(--l0) * var(--zi) * 1px - 14px);
  border: 14px solid #1d1d1f; border-radius: 20px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), inset 0 0 0 1px rgba(0, 0, 0, .7), 0 60px 140px -40px rgba(0, 98, 255, .45); }
.is-live .d5__stand { display: block; position: absolute; left: 50%; top: calc(100% - var(--b0) * 1px + 14px); width: 170px; height: 70px;
  translate: -50% calc(var(--ze) * 180px); opacity: calc(1 - var(--ze) * 2.5);
  background: linear-gradient(#2c2c2f, #161618); clip-path: polygon(34% 0, 66% 0, 72% 84%, 100% 86%, 100% 100%, 0 100%, 0 86%, 28% 84%); }
.is-live .d5__head { position: absolute; left: 0; right: 0; top: calc(var(--t0) * .5px + 26px); margin: 0;
  translate: 0 calc(-50% - var(--ze) * 60px); opacity: calc(1 - var(--ze) * 3); }
.is-live .d5__note { display: block; position: absolute; left: 0; right: 0; bottom: calc(clamp(40px, 9vh, 96px) + clamp(3rem, 2rem + 4vw, 6rem));
  margin: 0; font: 600 clamp(.95rem, .9rem + .3vw, 1.15rem)/1.3 var(--head); color: rgba(255, 255, 255, .82);
  opacity: clamp(0, min(calc((var(--p) - .25) / .04), calc((.86 - var(--p)) / .04)), 1); }
.is-live .d5__moods { display: block; position: absolute; left: 0; right: 0; bottom: clamp(40px, 9vh, 96px); height: 1.1em; margin: 0; list-style: none;
  font: 700 clamp(2.4rem, 1.2rem + 4.4vw, 5.6rem)/1.05 var(--head); letter-spacing: -.05em; }
.d5__moods li { position: absolute; left: 20px; right: 20px; bottom: 0; text-shadow: 0 4px 40px rgba(0, 0, 0, .5);
  opacity: clamp(0, min(calc((var(--p) - var(--s)) / .025), calc((var(--e) - var(--p)) / .025)), 1);
  translate: 0 calc((1 - clamp(0, calc((var(--p) - var(--s)) / .025), 1)) * 28px); }
.is-live .d5__outro { position: absolute; left: 0; right: 0; top: 50%; margin: 0; translate: 0 -50%;
  font-size: clamp(2.4rem, 1.2rem + 4.6vw, 5.6rem); letter-spacing: -.05em;
  opacity: clamp(0, calc((var(--p) - .89) / .04), 1); scale: calc(.94 + .06 * clamp(0, calc((var(--p) - .89) / .04), 1)); }

/* --- light-up paragraph --- */
.scene--glow { padding: clamp(80px, 12vw, 160px) 0; }
.glow { font: 600 clamp(1.45rem, .95rem + 1.7vw, 2.5rem)/1.22 var(--head); letter-spacing: -.03em; margin: 0; max-width: 25em; }
.glow span { opacity: clamp(.16, calc((var(--p, 1) - var(--s)) * 9 + .16), 1); }

/* --- three tall renders at three speeds --- */
.scene--trio { padding: 0 0 clamp(80px, 11vw, 150px); overflow: hidden; }
/* The D5 course, rebuilt (sale states): the renders ride the course-track mechanism (pin + sideways
   slide on wide screens, swipe row on phones and with reduced motion); it follows the six courses of the Megapack (Oliver 14/11) */
.d5c__head .sub { margin-bottom: 1rem; }
.d5c__free { font: 600 clamp(1.05rem, 1rem + .3vw, 1.25rem)/1.4 var(--head); max-width: 36em; margin: 0 0 clamp(24px, 3vw, 40px); padding-left: 14px; border-left: 3px solid var(--blue); }
.track .d5c__fig { width: min(85vw, 560px); flex: none; margin: 0; scroll-snap-align: center; }
.is-pinned .track .d5c__fig { width: min(60vw, calc((100svh - 470px) * 1.5)); min-width: 380px; } /* image + caption fit under the head */
.d5c__fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); background: var(--card); }
.d5c__fig figcaption { margin-top: 10px; color: var(--soft); font: 600 .95rem/1.3 var(--head); }
.trio__h { text-align: center; margin: 0 auto clamp(40px, 6vw, 80px); max-width: 14em; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 2vw, 28px); align-items: start; }
.trio figure { margin: 0; border-radius: var(--r); overflow: hidden; translate: 0 calc((.5 - var(--p, .5)) * var(--k) * 1px); }
.trio figure:nth-child(2) { margin-top: 14%; }
.trio img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #1d1d1f; }

/* --- course track: a swipe row; on wide screens with motion it slides sideways while pinned --- */
.scene--track { padding: clamp(80px, 11vw, 150px) 0; border-top: 1px solid var(--line); }
.track { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 max(20px, calc((100% - 1160px) / 2)) 8px; }
.track::-webkit-scrollbar { display: none; }
.track__rail { display: flex; gap: 20px; width: max-content; }
.track .course { width: min(80vw, 360px); flex: none; scroll-snap-align: center; }
.scene--track.is-pinned { padding: 0; }
.is-pinned .scene__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: 52px; }
.is-pinned .track { overflow: visible; scroll-snap-type: none; }
.is-pinned .track__rail { translate: calc(var(--p, 0) * var(--max, 0) * -1px) 0; will-change: translate; }
.is-pinned .track .course { width: 380px; }


/* --- keyed scenes: each piece has a start (--t) and a length (--d) on the scroll ---
   .k turns the scene's --p into the piece's own progress --b (0 to 1) and three easings of it:
   --e smooth, --q ease-out, --o ease-out with overshoot. Default --p is 1: the still page is the last frame. */
.scene--k { --p: 1; }
.scene--k .scene__pin { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(18px, 3vh, 36px); padding: clamp(72px, 10vw, 130px) 0; }
.scene--k.is-live { height: 340vh; }
.scene--k.is-live .scene__pin { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 60px 0 20px; overflow: hidden; }
.k { --b: clamp(0, calc((var(--p) - var(--t, 0)) / var(--d, .1)), 1); --m: calc(var(--b) - 1);
  --e: calc(var(--b) * var(--b) * (3 - 2 * var(--b)));
  --q: calc(1 + var(--m) * var(--m) * var(--m));
  --o: calc(1 + 2.70158 * var(--m) * var(--m) * var(--m) + 1.70158 * var(--m) * var(--m)); }
.k-fade { opacity: var(--e); }
.k-fly { translate: calc((1 - var(--o)) * var(--fx, 0) * 1cqw) calc((1 - var(--o)) * var(--fy, 0) * 1cqw); opacity: clamp(0, calc(var(--b) * 5), 1); }
.k-pop { scale: calc(.3 + .7 * var(--o)); opacity: clamp(0, calc(var(--b) * 4), 1); transform-origin: 50% 100%; }
.k-stamp { scale: calc(1.4 - .4 * var(--q)); opacity: clamp(0, calc(var(--b) * 3), 1); }
.k-wipe { clip-path: inset(0 calc((1 - var(--e)) * 100%) 0 0); }
.k-win { opacity: clamp(0, min(calc((var(--p) - var(--t)) / .02), calc((var(--u) - var(--p)) / .02)), 1); }
.kj__head { text-align: center; }
.kj__head .eyebrow { margin-bottom: .6rem; }
.kj__head h2 { margin: 0 auto; max-width: 16em; font-size: clamp(1.7rem, 1rem + 2.6vw, 3.2rem); }
.kj__steps { list-style: none; margin: 0; padding: 0 20px; width: 100%; max-width: 1040px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 24px; }
.kj__steps li { position: relative; display: grid; gap: 3px; align-content: start; padding-top: 12px; border-top: 2px solid var(--line); opacity: calc(.3 + .7 * var(--e)); }
.kj__steps li::before { content: ''; position: absolute; left: 0; top: -2px; height: 2px; width: 100%; background: var(--blue-l); transform-origin: left; scale: var(--e) 1; }
.kj__n { font: 600 .8rem/1 var(--head); color: var(--blue-l); }
.kj__steps strong { font: 700 1rem/1.2 var(--head); letter-spacing: -.02em; }
.kj__l { font-size: .88rem; line-height: 1.35; color: var(--soft); }
@media (max-width: 700px) { .kj__steps { grid-template-columns: 1fr 1fr; } .kj__l { display: none; } }
.hero--after { padding: clamp(56px, 8vw, 110px) 0 clamp(72px, 10vw, 130px); }

/* --- megapack: the folder fills, shakes, bursts; eleven stuffed subfolders land around it --- */
/* --pp: how far the whole section has crossed the screen (lp.js). The turn starts once the subfolders land and keeps
   going while the section scrolls away, so the pin ends early and nothing waits on a still screen. */
.scene--burst { --pp: 0; --ten: clamp(0, calc((var(--p) - .02) / .36), 1); --bb: clamp(0, calc((var(--p) - .4) / .06), 1); --sh: calc(var(--ten) * (1 - var(--bb))); --spin: calc(max(0, var(--pp) - .54) * 110); }
.scene--burst.is-live { height: 240vh; }
.mx__ring { position: absolute; inset: 0; z-index: 1; transform-origin: 50% 57%; rotate: calc(var(--spin) * 1deg); }
.mx__lines { display: grid; text-align: center; min-height: 2.3em; align-items: center; font: 700 clamp(1.5rem, 1rem + 2vw, 2.8rem)/1.1 var(--head); letter-spacing: -.035em; }
.mx__lines p { grid-area: 1 / 1; margin: 0; }
.mx { width: min(92vw, calc(100svh - 240px), 720px); }
.mx__stage { position: relative; aspect-ratio: 1; container-type: inline-size; }
.mx__glow { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 98, 255, .45), rgba(0, 98, 255, .12) 55%, transparent 72%); opacity: calc(.35 + var(--ten) * .65); scale: calc(.8 + var(--ten) * .3); }
.mx__flash { position: absolute; inset: 14%; z-index: 4; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(140, 185, 255, .55) 38%, transparent 72%);
  opacity: clamp(0, min(calc((var(--p) - .39) / .02), calc((.5 - var(--p)) / .06)), 1); }
.mx__folder { position: absolute; z-index: 2; left: 30%; top: 40%; transform-origin: 50% 57%; width: 40%; aspect-ratio: 1.3; perspective: 120cqw;
  translate: calc(sin(var(--p) * 230rad) * var(--sh) * .9cqw) calc(cos(var(--p) * 190rad) * var(--sh) * .5cqw);
  rotate: calc(sin(var(--p) * 170rad) * var(--sh) * 2.6deg); scale: calc(1 + var(--sh) * .08 - var(--bb) * .16); }
.mx__back { position: absolute; left: 0; right: 0; top: 12%; bottom: 0; background: var(--blue-d); border-radius: 3cqw; }
.mx__back::before { content: ''; position: absolute; left: 0; top: -9%; width: 38%; height: 14%; background: var(--blue-d); border-radius: 3cqw 3cqw 0 0; }
.mx__front { position: absolute; z-index: 3; left: 0; right: 0; top: 30%; bottom: 0; border-radius: 3cqw; color: #fff; background: linear-gradient(170deg, #3a86ff, var(--blue) 55%, #0058e6);
  box-shadow: inset 0 .4cqw 0 rgba(255, 255, 255, .3), 0 2cqw 6cqw -2cqw rgba(0, 60, 200, .7); display: flex; flex-direction: column; justify-content: flex-end; padding: 0 3.6cqw 3.4cqw;
  transform-origin: 50% 100%; transform: rotateX(calc(var(--bb) * -34deg)) scale(1, calc(1 + var(--sh) * .05)); }
.mx__label { font: 700 4.6cqw/1 var(--head); letter-spacing: -.04em; }
.mx__sub { font: 600 1.8cqw/1.2 var(--head); color: var(--yellow); margin-top: 1cqw; }
.mx__peek { position: absolute; z-index: 2; left: calc(var(--x) * 1%); top: 16%; width: calc(var(--w) * 1cqw); rotate: var(--r);
  translate: -50% calc((1 - var(--ten)) * 12cqw - var(--ten) * var(--k) * 1cqw); opacity: clamp(0, calc(1 - var(--bb) * 3), 1); }
.mx__loose { position: absolute; z-index: 1; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1cqw); transform: translate(-50%, -50%);
  translate: calc((1 - var(--q)) * var(--fx) * 1cqw) calc((1 - var(--q)) * var(--fy) * 1cqw); rotate: calc(var(--q) * var(--rr) * 1deg); scale: calc(.3 + .7 * var(--q));
  opacity: clamp(0, min(calc(var(--b) * 8), calc((1 - var(--b)) * 2.5)), 1); }
.sf { position: absolute; z-index: 1; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: 17.5cqw; aspect-ratio: 1.3; transform: translate(-50%, -50%);
  translate: calc((1 - var(--o)) * var(--fx) * 1cqw) calc((1 - var(--o)) * var(--fy) * 1cqw); scale: calc(.15 + .85 * var(--q)); rotate: calc(var(--e) * var(--r) - var(--spin) * 1deg); opacity: clamp(0, calc(var(--b) * 6), 1); }
.sf__back { position: absolute; inset: 14% 0 0; border-radius: 1.4cqw; background: var(--blue-d); }
.sf__back::before { content: ''; position: absolute; left: 0; top: -12%; width: 40%; height: 16%; border-radius: 1.4cqw 1.4cqw 0 0; background: inherit; }
.sf__stuff { position: absolute; z-index: 1; inset: -18% 4% 40%; display: flex; justify-content: center; align-items: flex-end; gap: 4%; }
.sf__front { position: absolute; z-index: 2; inset: 38% 0 0; border-radius: 1.4cqw; display: flex; align-items: flex-end; padding: 0 1.4cqw 1.2cqw;
  font: 700 max(10px, 2.1cqw)/1.05 var(--head); letter-spacing: -.02em; color: #fff; background: linear-gradient(170deg, #3a86ff, var(--blue) 60%); box-shadow: 0 1.4cqw 2.4cqw -1cqw rgba(0, 0, 0, .6); }
.sf--g .sf__back { background: #aab52c; }
.sf--g .sf__front { color: var(--ink); background: linear-gradient(170deg, #f8ffb0, var(--yellow) 60%); }
.sf__photo { width: 92%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .8cqw; border: .5cqw solid #fff; rotate: -5deg; translate: 0 12%; box-shadow: 0 1cqw 2cqw -1cqw rgba(0, 0, 0, .6); }
.sf__bit { display: block; translate: 0 14%; }
.sf__bit--sphere { width: 38%; } .sf__bit--cut { width: 34%; } .sf__bit--tile { width: 34%; }
.sf__bit .cut { max-height: 12cqw; width: auto; max-width: 100%; margin: 0 auto; }

/* --- Render Pack: white model, texture spheres paint it, D5 renders it, Photoshop finishes it --- */
.scene--render.is-live { height: 330vh; }
.rj { position: relative; container-type: inline-size; width: min(92vw, 1000px, calc((100svh - 330px) * 1.6)); }
.rj__win { border-radius: 1.4cqw; overflow: hidden; background: #1d1d1f; border: 1px solid var(--line); box-shadow: 0 40px 120px -40px rgba(0, 98, 255, .45); }
.rj__bar { position: relative; height: 4.2cqw; min-height: 22px; display: flex; align-items: center; gap: .8cqw; padding: 0 1.6cqw; font: 600 max(10px, 1.3cqw)/1 var(--head); color: var(--soft); }
.rj__bar i { width: max(7px, 1.1cqw); aspect-ratio: 1; border-radius: 50%; background: #3a3a3e; }
.rj__bar span { position: absolute; left: 50%; translate: -50% 0; white-space: nowrap; }
.rj__cv { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #2a2a2d; }
.rj__cv > div, .rj__sweep, .rj__grade { position: absolute; inset: 0; }
.rj__cv > div img { width: 100%; height: 100%; object-fit: cover; }
.rj__clay img { filter: grayscale(1) brightness(1.32) contrast(.68); }
.rj__clay::after { content: ''; position: absolute; inset: 0; background: rgba(214, 220, 232, .32); mix-blend-mode: screen; }
.rj__mat { clip-path: circle(calc(var(--e) * 38%) at var(--cx) var(--cy)); }
.rj__mat img { filter: saturate(.8) contrast(.94) brightness(1.04); }
.rj__sweep { background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); translate: calc(var(--q) * 200% - 100%) 0;
  opacity: clamp(0, min(calc(var(--b) * 10), calc((1 - var(--b)) * 4)), 1); mix-blend-mode: soft-light; }
.rj__post img { filter: contrast(1.1) saturate(1.3) brightness(1.03) sepia(.1); }
.rj__grade { pointer-events: none; background: linear-gradient(200deg, rgba(255, 160, 70, .3), transparent 50%), radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, .45)); }
.rj__cv .rj__cut { position: absolute; left: var(--l); bottom: var(--bt); width: var(--w); height: auto; filter: drop-shadow(0 .4cqw .5cqw rgba(0, 0, 0, .45)); }
.rj__edge { position: absolute; top: 0; bottom: 0; left: calc(var(--e) * 100%); width: 2px; background: #fff; box-shadow: 0 0 12px rgba(255, 255, 255, .9);
  opacity: clamp(0, min(calc(var(--b) * 30), calc((1 - var(--b)) * 30)), 1); }
.rj__fx { position: absolute; left: 0; right: 0; top: max(22px, 4.2cqw); aspect-ratio: 16 / 9; pointer-events: none; }
.rj__sph { position: absolute; left: var(--cx); top: var(--cy); width: 8cqw; transform: translate(-50%, -50%);
  translate: calc((1 - var(--o)) * var(--fx) * 1cqw) calc((1 - var(--o)) * var(--fy) * 1cqw);
  --g: clamp(0, calc((var(--p) - var(--t2)) / .025), 1); scale: calc(1 - var(--g)); opacity: clamp(0, calc(var(--b) * 6), 1); }
.rj__ring { position: absolute; left: var(--cx); top: var(--cy); width: 34cqw; aspect-ratio: 1; border-radius: 50%; border: .3cqw solid rgba(255, 255, 255, .85);
  transform: translate(-50%, -50%); scale: var(--q); opacity: clamp(0, calc((1 - var(--b)) * 1.5), 1); }

/* --- Diagram Pack: a street corner in isometric (CSS 3D ground + drawings standing on it) that flattens into a plan ---
   --f: 0 isometric, 1 plan (sine in-out). --up: the standing drawings fade as the ground flattens. */
.scene--diagram { --f: calc((1 - cos(clamp(0, calc((var(--p) - .6) / .12), 1) * 180deg)) / 2); --up: clamp(0, calc(1 - (var(--p) - .6) / .05), 1); }
.scene--diagram.is-live { height: 360vh; }
.dj { position: relative; width: min(92vw, 1000px, calc((100svh - 300px) * 1.6)); aspect-ratio: 16 / 10; overflow: hidden; border-radius: 18px;
  border: 1px solid rgba(92, 157, 255, .25); background: radial-gradient(80% 70% at 50% 45%, #0b1a3a, #03060f); }
.dj__scene { position: absolute; left: 50%; top: 50%; width: 100%; aspect-ratio: 16 / 10; translate: -50% -50%; container-type: inline-size; }
@media (max-width: 640px) { .dj { aspect-ratio: 1; width: min(92vw, calc(100svh - 300px)); } .dj__scene { width: 165%; } }
.dj__plane { position: absolute; left: var(--pl); top: var(--pt); width: var(--P); aspect-ratio: 1; transform-origin: 50% 50%; outline: 1px solid rgba(140, 180, 255, .35);
  background: linear-gradient(rgba(140, 180, 255, .13) 1px, transparent 1px) 0 0 / 5% 5%, linear-gradient(90deg, rgba(140, 180, 255, .13) 1px, transparent 1px) 0 0 / 5% 5%, #0d1d3f;
  opacity: clamp(0, calc(var(--p) / .05), 1);
  transform: translate(calc(var(--f) * var(--tx)), calc(var(--f) * var(--ty))) scale(calc(1 + var(--f) * var(--zm))) rotateX(calc((1 - var(--f)) * 54.7356deg)) rotateZ(calc((1 - var(--f)) * -45deg)); }
.dj__ground { position: absolute; inset: 0; width: 100%; height: 100%; }
.dj__base { fill: none; }
.dj__street { fill: #050b1a; }
.dj__dash { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: .3; stroke-dasharray: 1.5 1.5; }
.dj__zebra { fill: none; stroke: rgba(255, 255, 255, .6); stroke-width: 1.4; }
.dj__bldg { fill: rgba(255, 255, 255, .07); stroke: rgba(255, 255, 255, .55); stroke-width: .3; }
.dj__lot { fill: rgba(242, 255, 107, .08); stroke: var(--yellow); stroke-width: .3; stroke-dasharray: 1 .6; }
.dj__walls { opacity: var(--e); }
.dj__walls path { fill: none; stroke: #fff; stroke-width: .9; stroke-linecap: square; }
.dj__flat { position: absolute; left: var(--l); top: var(--tp); width: var(--w); height: auto; rotate: var(--r); translate: -50% -50%; }
.dj__flat[src*="plan-people"] { filter: invert(1); }
.dj__obj { position: absolute; left: var(--l); top: var(--tp); width: var(--w); height: auto; z-index: var(--z); transform: translate(calc(var(--ax) * -100%), -100%); }
.dj__mass { position: absolute; left: var(--l); top: var(--tp); width: var(--w); height: auto; z-index: var(--z); transform-origin: 50% 100%; scale: 1 var(--q);
  filter: drop-shadow(0 0 1.2cqw rgba(242, 255, 107, .45)); }
.dj .dj__up { opacity: calc(clamp(0, calc(var(--b) * 5), 1) * var(--up)); }
.dj__tag { position: absolute; z-index: 5000; left: var(--l); top: var(--tp); padding-left: 3.6cqw; font: 600 max(10px, 1.3cqw)/1 var(--head); color: #fff; white-space: nowrap; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
.dj__tag::before { content: ''; position: absolute; left: .5cqw; top: 50%; width: 2.6cqw; height: 1px; background: var(--yellow); transform-origin: left; scale: var(--e) 1; }
.dj__tag::after { content: ''; position: absolute; left: 0; top: 50%; width: 1cqw; aspect-ratio: 1; border-radius: 50%; translate: 0 -50%; background: var(--yellow); }
.dj .dj__tag { opacity: calc(clamp(0, calc(var(--b) * 4), 1) * var(--up)); }
.dj .dj__tag.dj__pl { opacity: clamp(0, calc(var(--b) * 4), 1); }

/* --- Portfolio Pack: guides, frames, images, collage, text; then the board becomes a book --- */
.scene--portfolio { --bo: calc((1 - cos(clamp(0, calc((var(--p) - .78) / .08), 1) * 180deg)) / 2); --fl: calc((1 - cos(clamp(0, calc((var(--p) - .87) / .1), 1) * 180deg)) / 2); }
.scene--portfolio.is-live { height: 360vh; }
.pj { width: min(86vw, 960px, calc((100svh - 330px) * 1.414)); }
.pj__stack { position: relative; container-type: inline-size; aspect-ratio: 1.414; perspective: 2600px; }
/* the leaf: full size while the board is built; then half size on the right page; then it turns over the spine */
.pj__leaf { position: absolute; inset: 0; z-index: 3; transform-origin: 0 50%; transform-style: preserve-3d;
  transform: translateX(calc(var(--bo) * 50cqw)) scale(calc(1 - .5 * var(--bo))) rotateY(calc(var(--fl) * -180deg)); }
.pj__board, .pj__back { position: absolute; inset: 0; background: #fff; border-radius: .6cqw; color: var(--ink); backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 2cqw 6cqw -2cqw rgba(0, 0, 0, .7); }
.pj__back { transform: rotateY(180deg); overflow: hidden; --fs: 1; }
.pj__board::after, .pj__back::after { content: ''; position: absolute; inset: 0; z-index: 9; border-radius: inherit; pointer-events: none; opacity: calc(sin(var(--fl) * 180deg) * .9); }
.pj__board::after { background: linear-gradient(90deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .05) 45%, transparent); }
.pj__back::after { background: linear-gradient(270deg, rgba(0, 0, 0, .35), transparent 50%); }
.pj__left, .pj__under { position: absolute; top: 25%; width: 50%; height: 50%; overflow: hidden; background: #fff; border-radius: .6cqw; opacity: var(--bo); box-shadow: 0 2cqw 5cqw -2cqw rgba(0, 0, 0, .7); --fs: .5; }
.pj__left { left: 0; translate: calc((1 - var(--bo)) * 50%) 0; }
.pj__under { left: 50%; }
.pj__spine { position: absolute; z-index: 4; left: calc(50% - 1.5cqw); top: 25%; width: 3cqw; height: 50%; pointer-events: none; opacity: var(--bo);
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .25) 45%, rgba(0, 0, 0, .25) 55%, transparent); }
.pj__pg { position: absolute; inset: 7% 6%; display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: repeat(5, auto) 1fr; column-gap: 5%; row-gap: calc(var(--fs) * 1.1cqw); color: var(--ink); }
.pj__pg img { grid-row: 1 / -1; width: 100%; height: 100%; object-fit: cover; }
.pj__pg strong, .pj__cover strong { font: 700 calc(var(--fs) * 2.4cqw)/1.05 var(--head); letter-spacing: -.03em; }
.pj__pg span, .pj__cover span { font: 600 calc(var(--fs) * 1.1cqw)/1.2 var(--head); color: #77777c; }
.pj__pg i, .pj__cover i { display: block; height: calc(var(--fs) * .7cqw); border-radius: 1cqw; background: #d9d9de; }
.pj__pg i:last-child { width: 70%; }
.pj__cover { position: absolute; inset: 12% 10%; display: grid; align-content: end; gap: calc(var(--fs) * 1.1cqw); }
.pj__cover strong { font-size: calc(var(--fs) * 4.6cqw); }
.pj__cover i:last-child { width: 60%; }
.pj__g { position: absolute; pointer-events: none; }
.pj__g--m { inset: 5% 4%; border: 1px solid #ff40d4; }
.pj__g--c { top: 5%; bottom: 5%; left: var(--l); border-left: 1px solid #8a63ff; transform-origin: top; scale: 1 var(--e); }
.pj__f { position: absolute; left: var(--l); top: var(--tp); width: var(--w); height: var(--h); overflow: hidden; outline: 1px solid #8a63ff; opacity: clamp(0, calc(var(--b) * 4), 1); }
.pj__x { position: absolute; inset: 0; width: 100%; height: 100%; }
.pj__x path { fill: none; stroke: #8a63ff; stroke-width: 1; vector-effect: non-scaling-stroke; }
.pj__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: var(--e); scale: calc(1.08 - .08 * var(--e)); }
.pj__pat { position: absolute; inset: 0; background-size: 6cqw 6cqw; }
.pj__title { position: absolute; left: 66%; top: 5%; width: 30%; display: grid; gap: .9cqw; align-content: start; }
.pj__title strong { font: 700 2.4cqw/1.05 var(--head); letter-spacing: -.03em; }
.pj__title span { font: 600 1.1cqw/1.2 var(--head); color: #77777c; }
.pj__title i { display: block; height: .7cqw; border-radius: 1cqw; background: #d9d9de; }
.pj__title i:last-child { width: 70%; }
.pj__cut { position: absolute; z-index: 2; left: var(--l); top: var(--tp); width: var(--w); height: auto; filter: drop-shadow(0 .4cqw .4cqw rgba(0, 0, 0, .25)); }


/* ================= folder burst ================= */
/* Every item sits at its spot (--x, --y in % of a square box, --w width) and its two wrappers animate the jump
   from the folder mouth: .bx moves sideways (ease-out), .by moves up with an overshoot, so together they draw an
   arc. .bf floats forever and follows the pointer (--px/--py × --z). */
.burst { container-type: inline-size; width: 100%; max-width: 600px; margin: 0 auto; position: relative; }
.burst__stage { position: relative; aspect-ratio: 1; perspective: 140cqw; }
.folder__back, .folder__front, .folder__shadow { position: absolute; left: 18%; width: 64%; }
.folder__back { top: 53%; height: 39%; background: var(--blue-d); border-radius: 3.2cqw; }
.folder__back::before { content: ''; position: absolute; left: 0; top: -5.5cqw; width: 36%; height: 7cqw; background: var(--blue-d); border-radius: 3.2cqw 3.2cqw 0 0; }
.folder__front { top: 58.5%; height: 33.5%; z-index: 3; border-radius: 3.2cqw; background: linear-gradient(170deg, #3a86ff, var(--blue) 55%, #0058e6);
  box-shadow: inset 0 .4cqw 0 rgba(255, 255, 255, .3), 0 2cqw 6cqw -2cqw rgba(0, 60, 200, .7);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 0 6cqw 5cqw; color: #fff; text-align: left;
  transform-origin: 50% 100%; animation: flap .8s cubic-bezier(.3, 1.4, .5, 1) .15s both; }
.folder__label { font: 700 7.4cqw/1 var(--head); letter-spacing: -.04em; }
.folder__sub { font: 600 2.9cqw/1.2 var(--head); margin-top: 1.6cqw; color: var(--yellow); letter-spacing: .01em; }
.folder__shadow { top: 89%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 98, 255, .55), transparent); }
@keyframes flap { from { transform: rotateX(0); } to { transform: rotateX(-16deg); } }

.bx { position: absolute; z-index: 2; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1cqw); transform: translate(-50%, -50%);
  animation: bx .95s cubic-bezier(.25, .8, .3, 1) var(--d) both; }
.by { display: block; animation: by .95s cubic-bezier(.3, 1.5, .55, 1) var(--d) both; }
.bf { display: block; rotate: var(--r); transform: translate(calc(var(--px, 0) * var(--z) * 1px), calc(var(--py, 0) * var(--z) * 1px));
  transition: transform .6s cubic-bezier(.2, .7, .2, 1); animation: float var(--fd) ease-in-out calc(var(--d) + .95s) infinite alternate; }
@keyframes bx { from { translate: calc((50 - var(--x)) * 1cqw) 0; } to { translate: 0 0; } }
@keyframes by { from { translate: 0 calc((72 - var(--y)) * 1cqw); scale: .3; } to { translate: 0 0; scale: 1; } }
@keyframes float { from { translate: 0 0; rotate: var(--r); } to { translate: 0 calc(var(--fa) * -1cqw); rotate: calc(var(--r) + var(--fr)); } }
/* replay: one item dives back into the folder and jumps out again (lp.js picks it) */
.bx.dive { animation: bxd .45s cubic-bezier(.5, 0, .9, .4) both; }
.bx.dive .by { animation: byd .45s cubic-bezier(.5, 0, .9, .4) both; }
.bx.again { animation: bx2 .95s cubic-bezier(.25, .8, .3, 1) both; }
.bx.again .by { animation: by2 .95s cubic-bezier(.3, 1.5, .55, 1) both; }
@keyframes bxd { to { translate: calc((50 - var(--x)) * 1cqw) 0; } }
@keyframes byd { 35% { translate: 0 -2cqw; } to { translate: 0 calc((72 - var(--y)) * 1cqw); scale: .3; } }
@keyframes bx2 { from { translate: calc((50 - var(--x)) * 1cqw) 0; } to { translate: 0 0; } }
@keyframes by2 { from { translate: 0 calc((72 - var(--y)) * 1cqw); scale: .3; } to { translate: 0 0; scale: 1; } }

/* the pieces */
.sph { display: block; position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; isolation: isolate; background: #333;
  box-shadow: 0 2.4cqw 3cqw -1.6cqw rgba(0, 0, 0, .7); }
/* the texture strip slides under the shading: a spinning ball, on the compositor (translate only) */
.sph__t { position: absolute; inset: 0 auto 0 0; width: 400%; background-repeat: repeat-x; background-size: 50% 100%; animation: spin 16s linear infinite; }
.sph::after { content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 32% 27%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 36%), radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, .38) 100%); }
@keyframes spin { to { translate: -50% 0; } }
.is-off * { animation-play-state: paused !important; }
.cut { display: block; width: 100%; height: auto; filter: drop-shadow(0 1cqw 1cqw rgba(0, 0, 0, .45)); }
/* line drawings and black figures turn white on the black page */
.cut--ink { filter: invert(1) drop-shadow(0 0 1.2cqw rgba(0, 98, 255, .45)); }
.tile { display: block; aspect-ratio: 1; background: #fff; border: .45cqw solid var(--ink); padding: 1cqw; box-shadow: 0 1.6cqw 2.4cqw -1.2cqw rgba(0, 0, 0, .6); }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* peek (waitlist): the folder stays closed and a few pieces peek out and drop back in */
.burst--peek .folder__front { animation: jiggle 4.8s ease-in-out 1.2s infinite; }
.burst--peek .bx, .burst--peek .by { animation: none; }
.burst--peek .by { animation: peek 4.8s cubic-bezier(.45, 0, .2, 1) calc(var(--i) * 1.2s) infinite; translate: 0 28cqw; }
.burst--peek .bf { animation: none; }
@keyframes peek { 0%, 100% { translate: 0 28cqw; } 14% { translate: 0 -1.5cqw; } 20%, 56% { translate: 0 0; } 72% { translate: 0 28cqw; } }
@keyframes jiggle { 0%, 70%, 100% { transform: rotateX(0) rotate(0); } 74% { transform: rotateX(-6deg) rotate(-1deg); } 80% { transform: rotateX(-3deg) rotate(1deg); } 86% { transform: rotateX(0) rotate(0); } }

/* hero text comes in on load */
.rise { animation: rise .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) both; }
@keyframes rise { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }

/* scroll reveal: only when JS runs (html.js), so the page never stays hidden */
.js [data-reveal] { opacity: 0; translate: 0 30px; transition: opacity .8s cubic-bezier(.2, .7, .2, 1), translate .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

/* strike draws itself across the full price */
.price__was { text-decoration: none; position: relative; }
.price__was::after { content: ''; position: absolute; left: -3%; right: -3%; top: 52%; height: 2px; background: currentColor; transform-origin: left; animation: strike .5s cubic-bezier(.6, 0, .2, 1) .9s both; }
@keyframes strike { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* pack groups: the pack boxes are always on the page; a dropdown opens a few of the assets inside them */
.grps { border-top: 1px solid var(--line); }
.grp { border-bottom: 1px solid var(--line); padding: 28px 0 8px; }
.grp__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.grp__n { font: 700 2.6rem/1 var(--head); letter-spacing: -.05em; color: var(--blue-l); }
.grp__t strong { display: block; font: 700 1.3rem/1.2 var(--head); letter-spacing: -.02em; }
.grp__peek summary { list-style: none; cursor: pointer; padding: 8px 0 18px; }
.grp__peek summary::-webkit-details-marker { display: none; }
.grp__more { font: 700 .95rem/1 var(--text); color: var(--blue-l); display: inline-flex; gap: 6px; align-items: center; }
.grp__more::after { content: '+'; font: 400 1.3rem/1 var(--head); transition: rotate .3s; }
.grp__peek[open] .grp__more::after { rotate: 45deg; }
.grp__assets { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 18px; padding: 4px 0 26px; }
.grp__p { display: block; container-type: inline-size; }
.grp__p--sphere { width: 72px; } .grp__p--tile { width: 68px; } .grp__p--cut { width: 84px; }
.grp__p--cut .cut { max-height: 96px; width: auto; max-width: 100%; margin: 0 auto; }
.grp__p .sph__t { animation-duration: 10s; }

/* receipt: lines tick in, the total gets struck, the price lands */
.receipt { margin: 8px 0 28px; max-width: 540px; font-size: 1rem; }
.receipt ul { list-style: none; margin: 0; padding: 0; }
.receipt li, .receipt p { display: flex; justify-content: space-between; gap: 16px; margin: 0; padding: 11px 0; border-bottom: 1px dashed rgba(255, 255, 255, .18); color: var(--soft); }
.receipt li span:last-child { font-variant-numeric: tabular-nums; font-family: var(--head); color: var(--fg); }
.receipt__sum { font-weight: 700; color: var(--fg) !important; border-bottom-style: solid !important; }
.receipt__final { border-bottom: 0 !important; padding-top: 18px !important; align-items: baseline; }
.receipt__final span { color: var(--yellow); font-weight: 800; }
.receipt__final strong { font: 700 clamp(2.2rem, 1.6rem + 2vw, 3rem)/1 var(--head); color: var(--fg); letter-spacing: -.045em; }
.js .receipt li, .js .receipt p { opacity: 0; translate: -10px 0; transition: opacity .45s, translate .45s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i) * 90ms); }
.js .receipt.is-in li, .js .receipt.is-in p { opacity: 1; translate: 0 0; }
.js .receipt__final { scale: .96; transform-origin: left; }
.js .receipt.is-in .receipt__final { scale: 1; transition: opacity .45s, translate .45s, scale .5s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--i) * 90ms + 300ms); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .receipt li, .js .receipt p { opacity: 1; translate: none; scale: none; }
  .price__was::after { transform: scaleX(1); }
  .folder__front { transform: rotateX(-16deg); }
  .burst--peek .folder__front { transform: none; }
  .burst--peek .by { translate: 0 8cqw; }
}

/* phones: one city per row (declared last so it wins over the two-column grid above) */
@media (max-width: 520px) { .times { grid-template-columns: 1fr; } .times li:nth-child(n) { padding: 14px 4px; border-left: 0; } }

/* PostHog consent banner (EU/EEA, UK, Switzerland only; built by lp.js). Two buttons with the same weight. */
.consent { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; margin: 0 auto; max-width: 640px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9); font-size: .9rem; line-height: 1.45; color: var(--soft); }
.consent p { margin: 0; flex: 1 1 260px; }
.consent a { color: var(--fg); }
.consent__row { display: flex; gap: 10px; flex: none; }
.consent__btn { min-height: 40px; padding: 8px 20px; border: 0; border-radius: 999px; background: var(--fg); color: var(--ink); font: 700 .88rem/1 var(--text); cursor: pointer; }
.consent__btn:hover { background: #fff; }
.consent__btn:focus-visible { outline: 2px solid var(--blue-l); outline-offset: 2px; }
.sim ~ .consent, body:has(.sim) .consent { bottom: 84px; } /* review ribbon (preview only) sits at the bottom too */
