/* Layout concept: a night studio. A cosmic hero opens on a river of tilted work cards,
   then four rooms, each dressed in the material of its craft: daylight glass (platforms),
   black velvet (websites), tape-shelf amber (films), sticker paper (learning).
   Deliberately one visual world per room, so colours are set explicitly, not per OS theme. */
:root {
  color-scheme: dark;
  --night: #0b0714;      /* page ground */
  --dusk: #170f2a;       /* raised night surface */
  --orchid: #c9a7ff;     /* hero accent */
  --ink: #f4efff;        /* text on night */
  --mute: #a99bc6;       /* secondary on night */
  --ember: #ff5b1f;      /* platforms seam */
  --paper: #e8ebef;      /* platforms room */
  --slate: #15181d;      /* text on paper */
  --gold: #d9b26a;       /* websites room */
  --velvet: #050405;     /* websites ground */
  --amber: #ffb54a;      /* films room */
  --tape: #140e0a;       /* films ground */
  --sticker: #fbf8f2;    /* learning room */
  --navy: #14213d;       /* learning ink */

  --f-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --f-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --f-vhs: "VT323", "JetBrains Mono", monospace;
  --f-hand: "Caveat", "Segoe Print", cursive;

  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --maxw: 1240px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--night);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--night); }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--orchid); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }

h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }

.eyebrow, .tag {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--orchid);
}
.eyebrow--dim { color: var(--mute); }
.h2 { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: clamp(28px, 4vw, 48px); line-height: 1.05; letter-spacing: -.01em; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .25s var(--ease), background .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--light { background: var(--ink); color: var(--night); }
.btn--ghost { border: 1px solid rgba(244,239,255,.35); color: var(--ink); }
.btn--gold { background: var(--gold); color: #1a1208; }
.btn--ink { background: var(--navy); color: var(--sticker); }

/* ---------------- LOADER ---------------- */
.loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: #fffdf8; color: var(--navy);
  transition: opacity .6s var(--ease), visibility .6s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__ring { position: absolute; width: min(70vmin, 520px); aspect-ratio: 1; animation: spin 18s linear infinite; }
.loader__ring .stk { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px; }
.loader__ring .stk > span { display: block; animation: unspin 18s linear infinite, bob 2.4s ease-in-out infinite; }
.loader__count { font-family: var(--f-serif); font-size: clamp(64px, 12vmin, 120px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.loader__count sup { font-size: .32em; vertical-align: top; margin-left: 2px; color: #b26b1f; }
.loader__label { position: absolute; top: calc(50% + 70px); font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #6b7280; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes unspin { to { transform: rotate(-360deg); } }
@keyframes bob { 50% { translate: 0 -6px; } }

/* Stickers: die-cut look (white border via SVG stroke + soft drop shadow) */
.sticker svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 8px rgba(20,33,61,.22)); overflow: visible; }

/* ---------------- NAV ---------------- */
.nav {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px var(--gutter-r) 14px var(--gutter);
  transition: background .3s, backdrop-filter .3s;
}
.nav.is-solid { background: rgba(11,7,20,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav.on-light { background: rgba(232,235,239,.8); color: var(--slate); }
.nav.on-sticker { background: rgba(251,248,242,.85); color: var(--navy); }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__mono { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: 14px; padding: 4px 8px; border: 1.5px solid currentColor; border-radius: 6px; }
.nav__name { font-weight: 600; font-size: 14px; }
.nav__links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav__links a { text-decoration: none; font-size: 14px; padding: 6px 12px; border-radius: 999px; opacity: .78; transition: opacity .2s, background .2s; }
.nav__links a:hover, .nav__links a.is-on { opacity: 1; background: rgba(127,127,127,.16); }
.nav__links .nav__cta { opacity: 1; border: 1px solid currentColor; }

/* ---------------- HERO ---------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(100svh, 980px); display: flex; flex-direction: column;
  background: radial-gradient(120% 90% at 70% 40%, #4a1d8f 0%, #1f0d3d 45%, var(--night) 80%);
}
.hero__sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__inner {
  flex: 1; width: 100%; max-width: 1440px; margin-inline: auto;
  padding: 110px var(--gutter-r) 24px var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .95fr) auto; gap: 32px; align-items: center;
}
.hero__title {
  font-family: var(--f-display); font-stretch: 125%; font-weight: 900; text-transform: uppercase;
  font-size: clamp(46px, 7.4vw, 118px); line-height: .9; letter-spacing: -.02em; margin: 18px 0 22px;
  background: linear-gradient(180deg, #fff 30%, #e2d2ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 60px rgba(201,167,255,.25);
}
.hero__lede { max-width: 46ch; color: #e6dcfb; font-size: 17px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.river { height: min(78svh, 720px); perspective: 1100px; mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); }
.river__tilt { height: 100%; transform: rotateY(-24deg) rotateX(10deg) rotateZ(4deg); transform-origin: 50% 50%; }
.river__track { display: flex; flex-direction: column; gap: 26px; align-items: center; will-change: translate; }
.rcard {
  width: min(100%, 380px); aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; position: relative; flex: none;
  box-shadow: 0 30px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .5s var(--ease), filter .5s;
  filter: saturate(.85) brightness(.82);
}
.rcard img { width: 100%; height: 100%; object-fit: cover; }
.rcard.is-on { filter: none; transform: translateZ(40px) scale(1.03); }
.rcard__lab { position: absolute; left: 10px; bottom: 10px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; background: rgba(11,7,20,.7); padding: 4px 8px; border-radius: 4px; }

.index { align-self: center; text-align: right; min-width: 170px; }
.index__head { font-size: 13px; color: var(--mute); margin-bottom: 8px; }
.index__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.index__list li { font-size: 13px; color: rgba(244,239,255,.5); transition: color .3s; white-space: nowrap; }
.index__list li .cat { font-family: var(--f-mono); font-size: 10px; margin-right: 6px; opacity: .7; }
.index__list li.is-on { color: #fff; font-weight: 700; }
.index__count { margin-top: 18px; display: inline-block; font-family: var(--f-mono); font-size: 12px; padding: 4px 10px; border: 1px solid rgba(244,239,255,.3); border-radius: 4px; font-variant-numeric: tabular-nums; }

.hero__foot {
  width: 100%; max-width: 1440px; margin-inline: auto;
  display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-end;
  padding: 0 var(--gutter-r) 22px var(--gutter); font-size: 13px; color: #e6dcfb;
}
.hero__foot .k { display: block; color: var(--mute); font-size: 12px; }
.hero__foot a { text-decoration: none; }
.hero__yr { margin-left: auto; color: var(--mute); }

/* ---------------- BOUQUET ---------------- */
.bouquet { padding-block: 110px 120px; }
.bouquet__head { display: grid; gap: 12px; max-width: 760px; margin-bottom: 48px; }
.stems { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stem {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 380px; padding: 24px;
  border-radius: 22px 22px 120px 22px; text-decoration: none; overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s;
}
.stem:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.stem__no { font-family: var(--f-serif); font-style: italic; font-size: 28px; line-height: 1; }
.stem__sticker { width: 86px; height: 86px; margin: 8px 0 auto; transition: transform .45s var(--ease); }
.stem:hover .stem__sticker { transform: rotate(-8deg) scale(1.08); }
.stem__name { font-family: var(--f-display); font-stretch: 118%; font-weight: 800; font-size: 30px; line-height: 1; margin-top: 18px; }
.stem__what { font-size: 15px; line-height: 1.5; }
.stem__meta { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; opacity: .75; }
.stem--plat { background: linear-gradient(160deg, #f4f6f8, #d9dee4); color: var(--slate); }
.stem--plat .stem__no { color: var(--ember); }
.stem--web { background: radial-gradient(90% 70% at 30% 20%, #2a1f12, var(--velvet)); color: #f5ead3; box-shadow: inset 0 0 0 1px rgba(217,178,106,.35); }
.stem--web .stem__no, .stem--web .stem__name { color: var(--gold); }
.stem--film { background: linear-gradient(170deg, #2b1c10, var(--tape)); color: #ffe7c2; box-shadow: inset 0 0 0 1px rgba(255,181,74,.3); }
.stem--film .stem__no { color: var(--amber); font-family: var(--f-vhs); font-style: normal; font-size: 34px; }
.stem--learn { background: var(--sticker); color: var(--navy); }
.stem--learn .stem__no { color: #c2410c; }

/* ---------------- ROOMS (shared) ---------------- */
.room { position: relative; }

/* ---------------- ROOM I · PLATFORMS ---------------- */
.room--plat { background: var(--paper); color: var(--slate); padding-block: 110px 120px; }
.room--plat .tag { color: #4b5563; }
.plat__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 44px; }
.plat__title { font-family: var(--f-serif); font-weight: 400; font-size: clamp(40px, 5.6vw, 76px); line-height: 1; letter-spacing: -.015em; margin-top: 12px; }
.plat__title em { font-style: italic; color: #4b5563; }
.plat__lede { max-width: 52ch; font-size: 17px; color: #2b3138; }

.cmp {
  position: relative; height: clamp(320px, 52vw, 600px); border-radius: 20px; overflow: hidden;
  background: #121418; box-shadow: 0 40px 80px rgba(21,24,29,.25); touch-action: pan-y;
  --x: 46%;
}
.cmp__raw { position: absolute; inset: 0; padding: clamp(18px, 3vw, 40px); overflow: hidden; }
.cmp__raw pre { margin: 0; font-family: var(--f-mono); font-size: clamp(10px, 1.15vw, 14px); line-height: 1.9; color: #b9c0c9; white-space: pre; }
.cmp__raw .c { color: #6b7380; }
.cmp__app { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--x)); background: #f7f8fa; }
.cmp__app img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.cmp__dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cmp__seam { position: absolute; top: 0; bottom: 0; left: var(--x); width: 3px; margin-left: -1.5px; background: var(--ember); box-shadow: 0 0 24px 4px rgba(255,91,31,.6); pointer-events: none; }
.cmp__pill { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); display: flex; border-radius: 6px; overflow: hidden; font-family: var(--f-mono); font-size: 11px; white-space: nowrap; }
.cmp__pill b { background: var(--ember); color: #fff; padding: 5px 9px; font-weight: 600; }
.cmp__pill i { background: #ffe1d4; color: #9a2f05; padding: 5px 9px; font-style: normal; }
.cmp__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.cmp__range:focus-visible + * { outline: none; }
.cmp:has(.cmp__range:focus-visible) { outline: 3px solid var(--ember); outline-offset: 4px; }

.plat__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 48px; }
.pcard { background: #fff; border-radius: 16px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; box-shadow: 0 1px 0 rgba(21,24,29,.06), 0 18px 40px -24px rgba(21,24,29,.35); transition: transform .35s var(--ease); }
.pcard:hover { transform: translateY(-4px); }
.pcard img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; object-position: top; border-bottom: 1px solid #e4e7eb; }
.pcard__body { padding: 20px 22px 22px; display: grid; gap: 8px; align-content: start; }
.pcard h3 { font-family: var(--f-display); font-stretch: 110%; font-weight: 800; font-size: 22px; }
.pcard p { color: #3a414a; font-size: 15px; }
.chips { list-style: none; padding: 0; margin: 6px 0 0; display: flex; gap: 6px; flex-wrap: wrap; }
.chips li { font-family: var(--f-mono); font-size: 11px; padding: 3px 8px; border-radius: 4px; background: #fff1ea; color: #9a2f05; }

/* ---------------- ROOM II · WEBSITES ---------------- */
.room--web { background: var(--velvet); color: #f5ead3; }
.story { position: relative; height: 260vh; }
.story__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.story__text { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); max-width: min(520px, 42vw); z-index: 3; }
.tag--gold { color: var(--gold); }
.story__h { font-family: var(--f-display); font-stretch: 100%; font-weight: 800; font-size: clamp(36px, 5.2vw, 76px); line-height: .98; letter-spacing: -.02em; margin: 14px 0 18px; position: relative; }
.story__h span { display: block; transition: opacity .5s, transform .5s var(--ease); }
.story__b { font-family: var(--f-serif); font-weight: 400; font-style: italic; color: var(--gold); position: absolute; top: 0; left: 0; opacity: 0; transform: translateY(20px); }
.story.is-told .story__a { opacity: 0; transform: translateY(-20px); }
.story.is-told .story__b { opacity: 1; transform: none; }
.story__p { color: #cbbfa6; max-width: 44ch; }
.story__frame {
  position: absolute; right: max(4vw, var(--gutter-r)); top: 50%; width: min(56vw, 760px); aspect-ratio: 16 / 10;
  transform: translateY(-50%); border-radius: 12px; border: 1px solid rgba(217,178,106,.4);
  background: #0d0a07; opacity: 0; transition: opacity .6s; z-index: 1;
}
.story.is-told .story__frame { opacity: 1; }
.story__chrome { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid rgba(217,178,106,.25); font-family: var(--f-mono); font-size: 11px; color: #a8957a; }
.story__chrome i { width: 9px; height: 9px; border-radius: 50%; background: #3a2f22; }
.story__chrome span { margin-left: 10px; }
.story__cards { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.scard { position: absolute; left: 0; top: 0; border-radius: 6px; overflow: hidden; box-shadow: 0 24px 50px rgba(0,0,0,.6); will-change: transform; background: #222; }
.scard img { width: 100%; height: 100%; object-fit: cover; }

.case { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; padding-block: 40px 120px; align-items: start; }
.case__intro { display: grid; gap: 16px; justify-items: start; }
.case__name { font-family: var(--f-serif); font-weight: 400; font-size: clamp(34px, 4vw, 54px); color: var(--gold); line-height: 1; }
.case__intro p { color: #d8ccb4; max-width: 46ch; }
.case__facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: rgba(217,178,106,.25); border-radius: 14px; overflow: hidden; }
.case__facts li { background: var(--velvet); padding: 22px; display: grid; gap: 6px; align-content: start; }
.case__facts b { font-family: var(--f-display); font-stretch: 110%; font-size: 17px; color: #f5ead3; }
.case__facts span { color: #b8aa8f; font-size: 14px; }

/* ---------------- ROOM III · FILMS ---------------- */
.room--film { background: radial-gradient(80% 60% at 30% 0%, #2a1a0d, var(--tape) 70%); color: #ffe7c2; padding-block: 110px 120px; }
.tag--amber { color: var(--amber); }
.film__head { display: grid; gap: 12px; margin-bottom: 40px; max-width: 760px; }
.film__title { font-family: var(--f-vhs); font-weight: 400; font-size: clamp(54px, 8vw, 110px); line-height: .85; color: var(--amber); text-shadow: 3px 0 0 rgba(255,60,60,.35), -3px 0 0 rgba(60,200,255,.3); text-transform: uppercase; }
.film__lede { color: #e9cfa6; max-width: 56ch; }
.vhs { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.crt { display: grid; gap: 18px; }
.crt__screen {
  position: relative; aspect-ratio: 4 / 3; border-radius: 26px / 22px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 12px #241912, 0 0 0 14px #3a2a1d, 0 40px 80px rgba(0,0,0,.6), inset 0 0 120px rgba(0,0,0,.9);
}
.crt__screen video { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.15) contrast(1.08); }
.crt__static { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .15s; }
.crt__screen.is-switching .crt__static { opacity: 1; }
.crt__lines { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 1px, transparent 1px 3px); box-shadow: inset 0 0 90px rgba(0,0,0,.75); border-radius: inherit; }
.crt__osd { position: absolute; top: 16px; left: 20px; right: 20px; display: flex; justify-content: space-between; font-family: var(--f-vhs); font-size: clamp(18px, 2.2vw, 28px); color: #fff; text-shadow: 2px 2px 0 rgba(0,0,0,.6); z-index: 2; }
.crt__info { padding: 4px 6px; display: grid; gap: 6px; }
.crt__no { font-family: var(--f-vhs); font-size: 20px; color: var(--amber); }
.crt__info h3 { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: clamp(24px, 3vw, 34px); color: #fff4e2; }
.crt__info p { color: #e9cfa6; max-width: 56ch; }
.crt__spec { font-family: var(--f-mono); font-size: 12px; color: #c9a77a !important; }
.shelf { display: grid; gap: 10px; }
.tape {
  position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  height: 64px; padding: 0 16px 0 10px; border: 0; border-radius: 4px; cursor: pointer; text-align: left;
  background: linear-gradient(180deg, #1d1d1f, #0d0d0e); color: #eee;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 14px rgba(0,0,0,.5);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.tape:hover { transform: translateX(-8px); }
.tape[aria-pressed="true"] { transform: translateX(-18px); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 2px var(--amber), 0 10px 24px rgba(0,0,0,.6); }
.tape__thumb { width: 54px; height: 40px; border-radius: 2px; overflow: hidden; }
.tape__thumb img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.3); }
.tape__label {
  background: #f2e8d2; color: #2b2116; border-radius: 2px; padding: 4px 10px; min-width: 0;
  font-family: var(--f-hand); font-size: 22px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background-image: repeating-linear-gradient(0deg, transparent 0 13px, rgba(80,120,200,.18) 13px 14px);
}
.tape__rt { font-family: var(--f-vhs); font-size: 20px; color: var(--amber); }
.film__side { display: grid; gap: 22px; align-content: start; }
.film__lib { margin: 0; display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; border-radius: 10px; background: rgba(255,181,74,.07); box-shadow: inset 0 0 0 1px rgba(255,181,74,.22); }
.film__lib img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 6px; }
.film__lib figcaption { font-size: 14px; color: #e9cfa6; line-height: 1.5; }
.film__lib b { display: block; color: #fff4e2; font-family: var(--f-display); font-stretch: 110%; margin-bottom: 2px; }

/* ---------------- ROOM IV · LEARNING ---------------- */
.room--learn { background: var(--sticker); color: var(--navy); padding-block: 100px 120px; }
.tag--ink { color: #c2410c; }
.learn__stage { position: relative; text-align: center; padding-block: 40px 60px; display: grid; justify-items: center; gap: 10px; }
.learn__title { font-family: var(--f-serif); font-weight: 400; font-size: clamp(56px, 11vw, 168px); line-height: .9; letter-spacing: -.03em; position: relative; z-index: 2; }
.learn__title .ch { display: inline-block; transition: transform .35s var(--ease), color .3s; }
.learn__title .ch:hover { transform: translateY(-10px) rotate(-6deg); color: #c2410c; }
.learn__hint { font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #9a7b4f; position: relative; z-index: 2; }
.learn__stickers { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.learn__stickers .stk { position: absolute; width: clamp(44px, 6vw, 76px); height: clamp(44px, 6vw, 76px); transition: transform .5s var(--ease); }

.maths { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; margin-top: 30px; }
.maths__copy { display: grid; gap: 16px; justify-items: start; }
.maths__kicker { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; background: #ffe8a3; padding: 3px 8px; border-radius: 4px; }
.maths__name { font-family: var(--f-serif); font-weight: 400; font-size: clamp(44px, 5vw, 68px); line-height: .95; }
.maths__copy > p { color: #3b4763; max-width: 48ch; }
.maths__note { font-size: 13px; color: #6b7280 !important; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 6px 0; width: 100%; }
.stats div { background: #fff; border: 1.5px solid #e9e2d4; border-radius: 12px; padding: 10px 12px; }
.stats dt { font-size: 11px; color: #6b7280; line-height: 1.3; }
.stats dd { margin: 2px 0 0; font-family: var(--f-display); font-stretch: 110%; font-weight: 800; font-size: 26px; font-variant-numeric: tabular-nums; }
.device { background: #1b2540; border-radius: 22px; padding: 12px; box-shadow: 0 40px 70px -30px rgba(20,33,61,.6); transform: rotate(1.2deg); }
.device__tabs { display: flex; gap: 4px; padding: 4px 4px 10px; overflow-x: auto; scrollbar-width: none; }
.device__tabs button { flex: none; border: 0; background: transparent; color: #b8c2dc; font: 600 13px var(--f-body); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.device__tabs button[aria-selected="true"] { background: #fff; color: var(--navy); }
.device__screen { border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; background: #0f172a; }
.device__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .3s; }
.device__screen img.is-fading { opacity: 0; }

.learn__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 70px; }
.lcard { background: #fff; border: 1.5px solid #ece5d6; border-radius: 20px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; transition: transform .35s var(--ease); }
.lcard:nth-child(1) { transform: rotate(-.8deg); }
.lcard:nth-child(2) { transform: rotate(.8deg); }
.lcard:hover { transform: rotate(0) translateY(-4px); }
.lcard img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; object-position: top; }
.lcard > div { padding: 20px 22px 24px; display: grid; gap: 8px; align-content: start; }
.lcard h3 { font-family: var(--f-display); font-stretch: 110%; font-weight: 800; font-size: 22px; }
.lcard p { color: #3b4763; font-size: 15px; }

/* ---------------- WORK ---------------- */
.work { padding-block: 120px 100px; }
.work__head { display: grid; gap: 12px; margin-bottom: 40px; }
.steps { list-style: none; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid rgba(201,167,255,.35); padding-top: 18px; display: grid; gap: 6px; align-content: start; }
.steps li::before { content: "0" counter(s); font-family: var(--f-mono); font-size: 12px; color: var(--orchid); }
.steps b { font-family: var(--f-display); font-stretch: 112%; font-size: 20px; }
.steps span { color: var(--mute); font-size: 15px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.plan { background: var(--dusk); border-radius: 18px; padding: 24px; display: grid; gap: 8px; align-content: start; box-shadow: inset 0 0 0 1px rgba(201,167,255,.14); }
.plan--hi { background: linear-gradient(160deg, #3b1a73, #1f0d3d); box-shadow: inset 0 0 0 1px rgba(201,167,255,.45); }
.plan__n { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--orchid); }
.plan__p { font-family: var(--f-display); font-stretch: 115%; font-weight: 800; font-size: 30px; font-variant-numeric: tabular-nums; }
.plan p:last-child { color: var(--mute); font-size: 15px; }

/* ---------------- CONTACT ---------------- */
.contact { background: radial-gradient(90% 120% at 50% 110%, #5b24b0 0%, #1f0d3d 50%, var(--night) 85%); padding-block: 130px 70px; text-align: center; }
.contact__inner { display: grid; justify-items: center; gap: 18px; }
.contact__h { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: clamp(38px, 7vw, 100px); line-height: .92; letter-spacing: -.02em; }
.contact__p { max-width: 52ch; color: #e6dcfb; }
.contact__mail { font-family: var(--f-serif); font-style: italic; font-size: clamp(26px, 4vw, 48px); text-decoration: none; border-bottom: 1px solid rgba(244,239,255,.4); overflow-wrap: anywhere; }
.contact__mail:hover { border-color: #fff; }
.contact__small { margin-top: 60px; font-size: 12px; color: var(--mute); }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
  .index { display: none; }
  .stems { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stem { min-height: 320px; }
  .maths { grid-template-columns: minmax(0, 1fr); }
  .vhs { grid-template-columns: minmax(0, 1fr); }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tape[aria-pressed="true"], .tape:hover { transform: translateY(-4px); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story__text { left: var(--gutter); right: var(--gutter-r); top: 12%; transform: none; max-width: 640px; }
  .story__frame { right: var(--gutter-r); left: var(--gutter); width: auto; max-width: 760px; margin-inline: auto; top: 64%; }
}
@media (max-width: 760px) {
  .nav__name { display: none; }
  .nav__links a:not(.nav__cta) { display: none; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); padding-top: 96px; }
  .river { height: 340px; order: 2; }
  .river__tilt { transform: rotateY(-18deg) rotateX(8deg) rotateZ(3deg); }
  .rcard { width: min(78%, 320px); }
  .stems { grid-template-columns: minmax(0, 1fr); }
  .stem { min-height: 0; }
  .plat__head, .case, .learn__pair, .plans, .plat__grid { grid-template-columns: minmax(0, 1fr); }
  .case__facts { grid-template-columns: minmax(0, 1fr); }
  .story { height: 220vh; }
  .story__p { display: none; }
  .shelf { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .hero__foot { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
