/* Nexxen v4 — apps.html "What we build" (BRIEF-V4 §6 + BRIEF-R3). Every animated value is written by apps.js as transform /
   opacity / CSS var; nothing here animates layout. Pin lengths: phones ≈ 60–70 % of desktop. Loads after v4.css. */

/* the GL canvas fades in on its first frame (the hero is Pearl: never flash the canvas's black clear colour) */
canvas.gl { transition: opacity .5s; }
html:not(.gl-ready) canvas.gl { opacity: 0; }
.morph-zone { height: 80vh; position: relative; z-index: 1; }
.apps .pill--line { --pfg: var(--fg); }

/* ================================================= 1 HERO (Pearl, framed FPV gold-dust world) */
.ahero { --len: 240vh; }
.ah { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); grid-template-rows: auto minmax(0, 1fr) auto;
  column-gap: 48px; padding: 92px var(--pad) 0; }
.ah__head { grid-column: 1; grid-row: 1; will-change: transform, opacity; }
.ah__k { margin-bottom: 14px; color: var(--ink-3); }
.ah__t { font-size: clamp(46px, 7.1vw, 126px); line-height: .88; letter-spacing: -.062em; font-weight: 520; }
.ah__t .ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.ah__t .ln > span { display: block; animation: lineUp 1.1s var(--ease) both; }
.ah__t .ln:nth-child(2) > span { animation-delay: .08s; }
.ah__t em { font-family: var(--serif); font-weight: 400; letter-spacing: -.025em; padding-right: .06em;
  background: linear-gradient(100deg, #D9A23A 0%, #B1771E 55%, #8E5A0E 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes lineUp { from { transform: translateY(105%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
.ah__intro { grid-column: 2; grid-row: 1; align-self: end; max-width: 36ch; padding-bottom: 12px; font-size: clamp(15px, 1.25vw, 19px); line-height: 1.42; color: var(--ink-2);
  letter-spacing: -.01em; animation: fadeUp 1s .25s var(--ease) both; will-change: transform, opacity; }
.ah__frame { grid-column: 1 / -1; grid-row: 2; position: relative; margin-top: clamp(16px, 2.6vh, 30px); border-radius: 24px; overflow: hidden; min-height: 0;
  background: radial-gradient(ellipse at 50% 58%, #2c2314 0%, #141218 52%, #09090b 100%); transition: background-color .4s; }
html.gl-ready .ah__frame { background: transparent; }
.ah__labels { position: absolute; inset: 0; pointer-events: none; }
.gate-l { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; opacity: 0; visibility: hidden;
  font-size: clamp(13px, 1.05vw, 16px); font-weight: 560; letter-spacing: -.01em; color: var(--cream); text-shadow: 0 2px 16px rgba(0, 0, 0, .8); will-change: transform, opacity; }
.gate-l i { font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--g1); letter-spacing: .1em; padding: 3px 7px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(250, 208, 66, .55); }
.ah__filter { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 14px; z-index: 2; will-change: opacity; }
.ah__fl { color: rgba(244, 241, 234, .72); white-space: nowrap; flex: none; }
.ah__hud { position: absolute; right: 18px; top: 16px; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; color: var(--cream-2); letter-spacing: .06em; }
.ah__hn { color: var(--g1); }
.ah__hud i { position: relative; width: 70px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.ah__hud b { position: absolute; inset: 0; background: var(--g1); transform-origin: left; transform: scaleX(0); }
.marks { grid-column: 1 / -1; grid-row: 3; display: flex; justify-content: space-between; align-items: center; height: 60px; will-change: opacity; }
.marks__label { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--ink-2); }
.plus { width: 11px; height: 11px; position: relative; }
.plus::before, .plus::after { content: ""; position: absolute; background: var(--ink); left: 5px; top: 0; width: 1px; height: 11px; }
.plus::after { left: 0; top: 5px; width: 11px; height: 1px; }

/* filter chips (hero frame + catalogue popover) */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 560; letter-spacing: .01em; white-space: nowrap; color: var(--cream);
  background: rgba(17, 16, 20, .84); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); transition: background-color .3s, color .3s, box-shadow .3s, transform .4s var(--ease); }
.fchip:hover { background: rgba(44, 42, 50, .92); }
.fchip:active { transform: scale(.96); }
.fchip[aria-pressed="true"] { background: linear-gradient(100deg, #FFE08A, #FAD042 40%, #E8A52C); color: #1a1205; box-shadow: 0 6px 22px -8px rgba(250, 208, 66, .7); }

/* ================================================= 2 CATALOGUE (pinned; M6 device morph) */
.cat { --u: 44vh; --len: calc((var(--n, 16) + 1) * var(--u) + 100vh); }
.cat-groups { position: absolute; left: var(--pad); top: 13vh; display: grid; z-index: 2; pointer-events: none; }
.cg { grid-area: 1 / 1; display: flex; align-items: baseline; gap: 12px; opacity: 0; white-space: nowrap; will-change: opacity, transform; }
.cg__n { font-family: var(--mono); font-size: 11px; color: var(--g1); }
.cg b { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 650; color: var(--cream); }
.cg em { font-family: var(--serif); font-size: 19px; letter-spacing: -.01em; color: var(--cream-2); }
.cat-stage { position: absolute; inset: 0; pointer-events: none; }
.cdev { position: absolute; left: var(--dx, 69vw); top: var(--dy, 52vh); width: 0; height: 0; opacity: 0; will-change: opacity; }
/* glass, not a screen: the bezel is a rim + band and the screen stays clear, so the gold-dust symbol (WebGL, behind the DOM) shows
   inside it. No fake UI is ever drawn here. */
.cdev__bezel { position: absolute; left: 0; top: 0; width: 280px; height: 580px; transform: translate(-50%, -50%); border-radius: 44px; background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(250, 208, 66, .55), inset 0 0 0 7px rgba(20, 19, 23, .96), inset 0 0 0 8px rgba(250, 208, 66, .14), 0 0 70px -24px rgba(250, 208, 66, .35); }
.cdev__screen { position: absolute; inset: 8px; border-radius: calc(var(--r, 40px) - 8px); overflow: hidden; contain: strict;
  background: linear-gradient(155deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 34%), radial-gradient(ellipse 70% 60% at 50% 50%, rgba(250, 208, 66, .07), rgba(250, 208, 66, 0) 70%); }
.cdev__deck { position: absolute; left: 0; top: 0; width: 0; height: 16px; transform: translate(-50%, 0); border-radius: 2px 2px 14px 14px; background: linear-gradient(#2a2830, #121115);
  box-shadow: inset 0 1px 0 rgba(250, 208, 66, .45), 0 30px 40px -20px rgba(0, 0, 0, .8); opacity: 0; }
.cdev__chip { position: absolute; left: 0; top: 0; transform: translate(-50%, 0); opacity: 0; }
.cat-steps { position: absolute; inset: 0; pointer-events: none; }
.cat-step { position: absolute; left: var(--pad); top: 21vh; width: min(41vw, 610px); display: grid; align-content: start; visibility: hidden; z-index: 2; }
.cat-step.on { visibility: visible; }
.cat-step.is-out { display: none; }
.js .cs-k { font-size: 0; }
.cs-k .cs-n { font-family: var(--mono); font-size: 12px; color: var(--g1); letter-spacing: .08em; margin-right: 10px; }
.cs-t { margin: 10px 0 14px; font-size: clamp(32px, 3.5vw, 60px); line-height: .98; letter-spacing: -.05em; font-weight: 530; }
.cs-t .mw { display: inline-block; white-space: nowrap; }
.js .cs-t .mc { display: inline-block; opacity: 0; }
.cs-x { will-change: opacity, transform; }
.js .cs-x { opacity: 0; }
.cs-pr { font-family: var(--serif); font-style: italic; font-size: clamp(21px, 1.9vw, 30px); line-height: 1.15; letter-spacing: -.01em; padding-bottom: .08em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cs-b { margin-top: 12px; font-size: clamp(14.5px, 1.08vw, 16.5px); line-height: 1.5; color: var(--cream-2); max-width: 48ch; }
.cs-f { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.cs-f li { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 560; color: var(--cream);
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.cs-f li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-grad); }
.cs-for { margin-top: 14px; font-size: 12.5px; line-height: 1.5; color: var(--cream-2); }
.cs-for span { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 650; color: var(--g1); margin-right: 6px; }
.cs-a { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; }
.cs-a > * { pointer-events: auto; }
.cs-a .pill { height: 38px; font-size: 11px; }
.cs-ex { --pfg: var(--cream); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.cs-film, .film-btn { display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 15px 0 5px; border-radius: 999px; background: rgba(255, 255, 255, .09); color: var(--cream);
  font-size: 12px; font-weight: 600; letter-spacing: .02em; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: background-color .3s; }
.cs-film:hover, .film-btn:hover { background: rgba(255, 255, 255, .17); }
.cs-film__i, .film-btn__i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--g1); color: #1a1205; flex: none; }
.cs-div { font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; font-weight: 650; color: var(--g1); }
.cs-div:hover { text-decoration: underline; text-underline-offset: 3px; }
.cat-ui { position: absolute; left: var(--pad); right: var(--pad); bottom: 5.5vh; display: flex; align-items: center; gap: 16px; z-index: 3; opacity: 0; will-change: opacity; }
.cat-count { font-family: var(--mono); font-size: 13px; color: var(--cream-2); letter-spacing: .04em; }
.cat-count span { color: var(--g1); }
.cat-count b { font-weight: 400; }
.cat-bar { position: relative; width: 150px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.cat-bar i { position: absolute; inset: 0; background: var(--g1); transform-origin: left; transform: scaleX(0); }
.cat-flt { position: relative; margin-left: auto; }
.cat-filter { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px 0 18px; border-radius: 999px; background: rgba(24, 23, 28, .94); color: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: background-color .3s; }
.cat-filter:hover { background: rgba(40, 38, 46, .96); }
.cat-filter .label { color: var(--cream-2); }
.cat-filter b { font-size: 13px; font-weight: 600; color: var(--g1); }
.cat-filter i { width: 7px; height: 7px; border: solid var(--cream-2); border-width: 0 1.5px 1.5px 0; transform: rotate(-135deg) translate(-1px, -1px); transition: transform .4s var(--ease); }
.cat-filter[aria-expanded="true"] i { transform: rotate(45deg) translate(-2px, -2px); }
.cat-pop { position: absolute; right: 0; bottom: 54px; width: min(560px, calc(100vw - 2 * var(--pad))); padding: 16px; border-radius: 22px; background: #17161b;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .08); animation: menuIn .45s var(--ease); transform-origin: bottom right; }
.cat-pop[hidden] { display: none; }
.cat-pop .fchip { background: rgba(255, 255, 255, .06); }
.cat-pop .fchip[aria-pressed="true"] { background: linear-gradient(100deg, #FFE08A, #FAD042 40%, #E8A52C); }

/* keyboard / screen-reader index of the catalogue: hidden until focused (inactive steps are visibility: hidden) */
.cat-index { position: absolute; left: var(--pad); top: 84px; z-index: 6; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cat-index:focus-within { width: auto; height: auto; overflow: visible; clip: auto; padding: 14px 18px; border-radius: 18px; background: #17161b; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.cat-index ul { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 4px 22px; font-size: 13px; }
.cat-index a { color: var(--cream); } .cat-index a:focus-visible { color: var(--g1); }

/* ================================================= 3 POS + shared example blocks */
.ex { position: relative; padding: 12vh var(--pad) 8vh; }
.ex__head { max-width: 1240px; }
.ex__k { display: flex; align-items: center; gap: 12px; color: var(--cream-2); }
.ex__n { font-family: var(--mono); color: var(--g1); letter-spacing: .1em; }
.ex__t { margin: 18px 0 20px; font-size: clamp(40px, 6.5vw, 116px); line-height: .92; letter-spacing: -.058em; font-weight: 520; max-width: 15ch; }
.ex__t .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.ex__t .w > span { display: inline-block; transform: translate3d(0, 105%, 0); transition: transform 1.05s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.ex__t.in .w > span { transform: none; }
.no-js .ex__t .w > span { transform: none; }
.ex__sub { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.6vw, 42px); line-height: 1.1; letter-spacing: -.01em; padding-bottom: .1em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ex__intro { max-width: 54ch; margin: 7vh 0 0 auto; font-size: clamp(17px, 1.45vw, 22px); line-height: 1.45; color: var(--cream); letter-spacing: -.01em; }
.school .ex__intro { margin: 5vh 0 0; color: var(--cream-2); max-width: 50ch; }
.ex__note { font-size: 12px; color: var(--cream-2); }
.film { margin: 8vh auto 0; width: min(100%, 1320px); }
.film__clip { position: relative; aspect-ratio: 16 / 9; border-radius: 30px; overflow: hidden; background: #0b0b0e; will-change: clip-path; transform: translateZ(0); }
.film__v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__chip { position: absolute; left: 18px; top: 18px; }
.feat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 8vh; }
.feat > li { position: relative; padding: 24px 22px 26px; border-radius: 22px; background: linear-gradient(180deg, #131217, #0c0b0f); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); overflow: hidden; }
.feat > li::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 1.5px; background: linear-gradient(90deg, var(--g1), rgba(232, 165, 44, 0)); transform: scaleX(0); transform-origin: left;
  transition: transform 1.2s var(--ease) .25s; }
.feat > li.in::before { transform: none; }
.feat__n { font-family: var(--mono); font-size: 12px; color: var(--g1); letter-spacing: .08em; }
.feat h3 { margin: 26px 0 10px; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.2; letter-spacing: -.02em; font-weight: 600; color: var(--cream); }
.feat p { font-size: 14.5px; line-height: 1.5; color: var(--cream-2); }
.feat > li:nth-child(4n+2) { transition-delay: .06s; } .feat > li:nth-child(4n+3) { transition-delay: .12s; } .feat > li:nth-child(4n+4) { transition-delay: .18s; }

/* 3b fiscalisation strip (pinned) — the dust forms the shape on the right */
.fisc { --len: 320vh; }
.fisc__k { position: absolute; left: var(--pad); top: 15vh; color: var(--g1); }
.fisc__steps { position: absolute; left: var(--pad); top: 23vh; width: min(42vw, 600px); display: grid; }
.fs { grid-area: 1 / 1; visibility: hidden; }
.fs.on { visibility: visible; }
.fs__n { display: block; font-family: var(--serif); font-style: italic; font-size: clamp(80px, 11vw, 170px); line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(250, 208, 66, .6);
  opacity: 0; will-change: opacity, transform; }
.fs__t { margin: 22px 0 16px; font-size: clamp(36px, 4.2vw, 72px); line-height: .98; letter-spacing: -.05em; font-weight: 530; }
.fs__t .mw { display: inline-block; white-space: nowrap; }
.js .fs__t .mc { display: inline-block; opacity: 0; }
.fs__p { font-size: clamp(15px, 1.2vw, 18px); line-height: 1.5; color: var(--cream-2); max-width: 42ch; opacity: 0; will-change: opacity, transform; }
.fisc__rail { position: absolute; left: var(--pad); right: var(--pad); bottom: 14vh; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fisc__line { position: absolute; left: 0; right: 0; top: 0; height: 1.5px; background: rgba(255, 255, 255, .14); }
.fisc__line i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--g2), var(--g1)); transform-origin: left; transform: scaleX(var(--th, 0)); box-shadow: 0 0 12px rgba(250, 208, 66, .7); }
.fisc__rail b { position: relative; padding-top: 20px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 650; color: rgba(171, 166, 156, .7); transition: color .5s; }
.fisc__rail b::before { content: ""; position: absolute; left: 0; top: -5px; width: 11px; height: 11px; border-radius: 50%; background: #15140f; box-shadow: inset 0 0 0 1.5px rgba(250, 208, 66, .45); transition: background-color .5s, box-shadow .5s; }
.fisc__rail b.on { color: var(--cream); }
.fisc__rail b.on::before { background: var(--g1); box-shadow: 0 0 14px rgba(250, 208, 66, .8); }
.fisc__fine { position: absolute; left: var(--pad); bottom: 6vh; max-width: 64ch; font-size: 13px; line-height: 1.45; color: var(--cream-2); }

/* 3c a day at the counter: paper → gold wipe */
.day { position: relative; padding: 14vh var(--pad) 8vh; }
.day__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 6vh; }
.day__head .label { color: var(--cream-2); }
.day__t { font-size: clamp(34px, 4.6vw, 76px); line-height: .98; letter-spacing: -.05em; font-weight: 520; }
.day__rows { border-top: 1px solid var(--line); }
.drow { display: grid; grid-template-columns: minmax(0, .38fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.drow__m { font-size: clamp(20px, 1.9vw, 30px); letter-spacing: -.03em; font-weight: 540; display: flex; align-items: baseline; gap: 14px; }
.drow__m span { font-family: var(--mono); font-size: 12px; color: var(--g1); letter-spacing: .08em; }
.drow__card { position: relative; display: grid; --p: 0; }
.drow__b, .drow__a { grid-area: 1 / 1; display: flex; align-items: flex-start; gap: 16px; padding: 22px 26px; border-radius: 20px; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.45; }
.drow__b { background: #ECE6D8 repeating-linear-gradient(0deg, transparent 0 27px, rgba(60, 50, 30, .07) 27px 28px); color: #2b2720; }
.drow__a { background: linear-gradient(120deg, #1a160c, #0e0d10 60%); color: var(--cream); box-shadow: inset 0 0 0 1px rgba(250, 208, 66, .45), 0 20px 50px -24px rgba(250, 208, 66, .35);
  clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0 round 20px); will-change: clip-path; }
.drow__card::after { content: ""; position: absolute; top: 6px; bottom: 6px; left: calc(var(--p) * 100%); width: 2px; margin-left: -1px; border-radius: 2px; background: var(--g1);
  box-shadow: 0 0 18px 3px rgba(250, 208, 66, .65); opacity: calc(min(var(--p) * 12, 1) * min((1 - var(--p)) * 12, 1)); pointer-events: none; }
.tag { flex: none; display: inline-grid; place-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-top: 1px; }
.tag--b { background: #2b2720; color: #ECE6D8; }
.tag--a { background: var(--gold-grad); color: #1a1205; }
.day__note { margin-top: 5vh; max-width: 62ch; font-size: 15px; line-height: 1.5; color: var(--cream-2); }

/* 3d what you'll need + compliance */
.need { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 6vw; align-items: start; padding: 10vh var(--pad) 12vh; }
.need__t { font-size: clamp(30px, 3.4vw, 54px); line-height: 1; letter-spacing: -.045em; font-weight: 530; margin-bottom: 28px; }
.need__list { display: grid; gap: 11px; font-size: 15px; line-height: 1.42; color: var(--cream-2); }
.need__list li { position: relative; padding-left: 30px; }
.need__list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 17px; height: 17px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px rgba(250, 208, 66, .55); }
.need__list li::after { content: ""; position: absolute; left: 5px; top: 7px; width: 7px; height: 4px; border: solid var(--g1); border-width: 0 0 1.8px 1.8px; transform: rotate(-45deg) scale(0); transform-origin: 30% 70%;
  transition: transform .5s var(--ease); transition-delay: calc(var(--i, 0) * 70ms + .2s); }
.need__list.in li::after { transform: rotate(-45deg) scale(1); }
.need__list b { color: var(--cream); font-weight: 560; }
.legal { position: sticky; top: 14vh; padding: 30px 30px 32px; border-radius: 24px; background: linear-gradient(180deg, #131217, #0c0b0f); box-shadow: inset 0 0 0 1px rgba(250, 208, 66, .3); }
.legal__i { display: block; width: 34px; height: 38px; margin-bottom: 20px; background: var(--gold-grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 38'%3E%3Cpath d='M17 1 33 7v12c0 9-7 15.5-16 18C8 34.5 1 28 1 19V7z' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M10.5 19l4.5 4.5 8.5-9' fill='none' stroke='%23000' stroke-width='2.2'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 38'%3E%3Cpath d='M17 1 33 7v12c0 9-7 15.5-16 18C8 34.5 1 28 1 19V7z' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M10.5 19l4.5 4.5 8.5-9' fill='none' stroke='%23000' stroke-width='2.2'/%3E%3C/svg%3E") center / contain no-repeat; }
.legal p { font-size: 15px; line-height: 1.55; color: var(--cream); }
.legal .legal__small { margin-top: 14px; font-size: 12.5px; color: var(--cream-2); }
.legal .pill { margin-top: 24px; }

/* ================================================= 4 SCHOOL — one moment, three screens (pinned) */
.school { padding-bottom: 4vh; }
.three { --len: 340vh; }
.three__head { position: absolute; left: var(--pad); top: 13vh; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; z-index: 2; will-change: opacity; }
.three__k { color: var(--g1); }
.three__sub { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.6vw, 24px); color: var(--cream-2); }
.three__row { position: absolute; left: 0; right: 0; top: 23vh; height: 44vh; display: flex; align-items: center; justify-content: center; gap: 4vw; will-change: transform; }
.sdev { position: relative; flex: none; will-change: transform, opacity; transform-origin: 50% 60%; }
.sdev__bezel { position: relative; padding: 7px; border-radius: 22px; background: #0b0b0e;
  box-shadow: inset 0 0 0 1.5px rgba(250, 208, 66, .45), 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 60px -24px rgba(250, 208, 66, .3); }
.sdev__screen { position: relative; overflow: hidden; border-radius: 15px; background: #111015; }
.sdev__screen img, .sdev__screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.sdev__screen video { object-position: 50% 50%; }
.sdev--t .sdev__screen { width: min(31vw, 480px); aspect-ratio: 1280 / 746; }
.sdev--p .sdev__bezel { border-radius: 30px; }
.sdev--p .sdev__screen { height: min(42vh, 430px); aspect-ratio: 540 / 1140; border-radius: 23px; }
.sdev--h .sdev__screen { width: min(26vw, 400px); aspect-ratio: 16 / 10; }
.sdev__chip { position: absolute; left: 50%; top: -36px; transform: translateX(-50%); }
.sdev__toast { position: absolute; left: 50%; top: 10%; width: 150%; max-width: none; height: auto; transform: translate(-50%, 0); opacity: 0; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)); will-change: transform, opacity; }
.three__beats { position: absolute; left: var(--pad); right: var(--pad); bottom: 8vh; display: grid; justify-items: center; text-align: center; z-index: 2; }
.beat { grid-area: 1 / 1; display: grid; justify-items: center; opacity: 0; visibility: hidden; will-change: opacity, transform; }
.beat.on { visibility: visible; }
.beat__l { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 650; color: var(--cream-2); }
.beat__l span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--g1); color: #1a1205; letter-spacing: 0; }
.beat__big { margin: 10px 0 10px; font-size: clamp(44px, 5.4vw, 92px); line-height: .95; letter-spacing: -.05em; font-weight: 530; }
.beat__big em { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.beat__c { max-width: 50ch; font-size: clamp(14.5px, 1.15vw, 17px); line-height: 1.45; color: var(--cream-2); }
.three__end { position: absolute; left: var(--pad); right: var(--pad); bottom: 9vh; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; opacity: 0; visibility: hidden; z-index: 2; }
.three__end.on { visibility: visible; }
.three__close { max-width: 30ch; font-size: clamp(22px, 2.2vw, 34px); line-height: 1.15; letter-spacing: -.03em; font-weight: 520; color: var(--cream); }
.school-more { position: relative; padding: 6vh var(--pad) 14vh; }
.school-more .feat { margin-top: 0; }
.school-more__foot { margin-top: 6vh; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.trust-line { font-size: 13.5px; letter-spacing: .02em; color: var(--cream-2); }

/* ================================================= 5 TOOLS (Pearl) — two real apps, real screenshots */
.tools { position: relative; padding: 8vh var(--pad) 4vh; }
.tools__head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 4vh; }
.tools__head .label { color: var(--ink-3); }
.tool { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 5vw; align-items: center; padding: 8vh 0; }
.tool--r .tool__txt { order: 2; }
.tool__sym { display: block; width: clamp(96px, 9vw, 140px); aspect-ratio: 1; margin-bottom: 18px; }
.tool__k { color: var(--ink-3); }
.tool__t { margin: 14px 0 14px; font-size: clamp(30px, 3.4vw, 54px); line-height: 1; letter-spacing: -.045em; font-weight: 530; max-width: 15ch; }
.tool__sub { font-family: var(--serif); font-style: italic; font-size: clamp(21px, 1.9vw, 28px); line-height: 1.15; padding-bottom: .08em; margin-bottom: 16px;
  background: linear-gradient(100deg, #D9A23A 0%, #B1771E 55%, #8E5A0E 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tool__p { font-size: 16px; line-height: 1.5; color: var(--ink-2); max-width: 44ch; }
.tool__p + .tool__p { margin-top: 10px; }
.tool .pill { margin-top: 26px; }
.tool__dev { position: relative; padding: 0 6% 9% 0; }
.lap__bezel { padding: 12px 12px 14px; border-radius: 18px 18px 8px 8px; background: #0b0b0e; box-shadow: 0 50px 90px -40px rgba(11, 11, 16, .55), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.lap__screen { position: relative; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: #0e0d12; }
.lap__screen img, .ph__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; opacity: 0; will-change: opacity; }
.lap__screen img:first-child, .ph__screen img:first-child { opacity: 1; }
.lap__deck { height: 14px; width: 112%; margin-left: -6%; border-radius: 2px 2px 16px 16px; background: linear-gradient(#e2e0e8, #b9b7c1); box-shadow: 0 18px 30px -16px rgba(11, 11, 16, .5); }
.ph { position: absolute; right: 0; bottom: 0; width: 23%; padding: 6px; border-radius: 26px; background: #0b0b0e; box-shadow: 0 30px 60px -24px rgba(11, 11, 16, .6); will-change: transform; }
.ph__screen { position: relative; aspect-ratio: 780 / 1688; border-radius: 21px; overflow: hidden; background: #0e0d12; }
.tool__chip { position: absolute; left: 14px; top: -12px; box-shadow: 0 6px 20px -10px rgba(11, 11, 16, .4); }

/* ================================================= 6 UNDER EVERY APP + 7 CTA (Pearl) */
.found { position: relative; padding: 8vh var(--pad) 10vh; }
.found__k { margin-bottom: 26px; color: var(--ink-3); }
.found__list { border-top: 1px solid var(--line); }
.found__list li { display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.found__n { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.found__list b { font-size: clamp(22px, 2.6vw, 40px); line-height: 1.08; letter-spacing: -.04em; font-weight: 520; }
.found__list li > span:last-child:not(.found__n) { color: var(--ink-2); font-size: 15px; }
.cta { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6vh var(--pad) 12vh; }
.cta__mark { width: clamp(200px, 22vw, 320px); aspect-ratio: 2.2; margin-bottom: 26px; }
.cta__k { color: var(--ink-3); }
.cta__title { font-size: clamp(44px, 8vw, 140px); line-height: .9; letter-spacing: -.06em; font-weight: 520; margin: 14px 0 22px; }
.cta__title span { display: block; }
.cta__title span:last-child { background: linear-gradient(100deg, #D9A23A 0%, #B1771E 55%, #8E5A0E 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.cta__line { font-size: clamp(16px, 1.4vw, 20px); color: var(--ink-2); margin-bottom: 34px; max-width: 40ch; }
.cta__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: center; }
.cta__mail { font-size: 17px; font-weight: 520; border-bottom: 1px solid var(--line); padding-bottom: 2px; }

/* ================================================= phones: same storyline + every morph, shorter pins */
@media (max-width: 820px) {
  .morph-zone { height: 60vh; }
  .ahero { --len: 150vh; } .cat { --u: 28vh; } .fisc { --len: 195vh; } .three { --len: 210vh; }
  .ah { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; padding-top: 72px; }
  .ah__head { grid-column: 1; grid-row: 1; }
  .ah__k { margin-bottom: 10px; }
  .ah__t { font-size: clamp(42px, 13.4vw, 66px); }
  .ah__intro { grid-column: 1; grid-row: 2; padding: 12px 0 0; max-width: none; font-size: 15px; }
  .ah__frame { grid-column: 1; grid-row: 3; margin-top: 14px; border-radius: 20px; }
  .marks { grid-column: 1; grid-row: 4; height: 52px; }
  .ah__filter { left: 0; right: 0; bottom: 12px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .ah__fl { padding-left: 14px; }
  .ah__filter .chips { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding: 2px 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
    -webkit-mask: linear-gradient(90deg, #000 88%, transparent); mask: linear-gradient(90deg, #000 88%, transparent); }
  .ah__filter .chips::-webkit-scrollbar { display: none; }
  .fchip { height: 32px; flex: none; }
  .ah__hud { right: 14px; top: 12px; }
  .gate-l { font-size: 13px; }
  .cat-groups { top: 9vh; }
  .cdev__chip { display: none; }
  .cg em { font-size: 15px; }
  .cat-step { left: var(--pad); right: var(--pad); width: auto; top: 46svh; }
  .cs-t { font-size: clamp(25px, 7.4vw, 32px); margin: 6px 0 8px; }
  .cs-pr { font-size: 18px; }
  .cs-b { font-size: 13.5px; line-height: 1.42; margin-top: 8px; }
  .cs-f { gap: 5px; margin-top: 11px; } .cs-f li { height: 26px; padding: 0 9px; font-size: 11px; } .cs-f li:nth-child(4) { display: none; }
  .cs-for { display: none; }
  .cs-a { margin-top: 12px; gap: 8px 12px; } .cs-a .pill { height: 34px; padding: 0 12px 0 14px; } .cs-film { height: 34px; width: 34px; padding: 0; justify-content: center; } .cs-film__t { display: none; } .cs-film__i { width: 26px; height: 26px; }
  .cat-ui { bottom: 2.4svh; gap: 12px; } .cat-bar { display: none; }
  .cat-filter { height: 38px; padding: 0 13px 0 15px; } .cat-filter .label { display: none; }
  .ex { padding-top: 7vh; }
  .ex__t { font-size: clamp(38px, 11.5vw, 58px); }
  .ex__intro { margin: 5vh 0 0; font-size: 17px; }
  .film { width: min(100%, 440px); margin-top: 6vh; }
  .film__clip { aspect-ratio: 9 / 16; border-radius: 24px; max-height: 80svh; margin: 0 auto; }
  .feat { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 6vh; }
  .feat > li { padding: 16px 14px 18px; border-radius: 18px; }
  .feat h3 { margin: 16px 0 8px; font-size: 15px; } .feat p { font-size: 12.5px; line-height: 1.45; }
  .fisc__k { top: 10svh; }
  .fisc__steps { left: var(--pad); right: var(--pad); width: auto; top: 50svh; }
  .fs__n { font-size: 64px; } .fs__t { font-size: clamp(30px, 8.6vw, 38px); margin: 10px 0 10px; } .fs__p { font-size: 14px; }
  .fisc__rail { bottom: 15svh; } .fisc__rail b { font-size: 0; padding-top: 0; }
  .fisc__fine { bottom: 4svh; font-size: 11.5px; right: var(--pad); }
  .drow { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 20px 0; }
  .drow__b, .drow__a { padding: 16px 16px; gap: 12px; flex-direction: column; font-size: 14.5px; border-radius: 16px; }
  .drow__a { clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0 round 16px); }
  .need { grid-template-columns: minmax(0, 1fr); gap: 6vh; padding-top: 6vh; }
  .need__list { font-size: 14px; gap: 9px; }
  .legal { position: relative; top: 0; padding: 22px 20px 24px; }
  .three__head { top: 9svh; }
  .three__row { top: 20svh; height: 38svh; justify-content: flex-start; gap: 7vw; padding-left: 13vw; }
  .sdev--t .sdev__screen { width: 74vw; }
  .sdev--p .sdev__screen { height: 33svh; }
  .sdev--h .sdev__screen { width: 74vw; }
  .sdev__chip { top: -32px; }
  .three__beats { bottom: 10svh; }
  .beat__big { font-size: clamp(40px, 12vw, 54px); } .beat__c { font-size: 14px; max-width: 34ch; }
  .three__end { bottom: 8svh; } .three__close { font-size: 21px; }
  .tool, .tool--r { grid-template-columns: minmax(0, 1fr); gap: 5vh; padding: 6vh 0; }
  .tool--r .tool__txt { order: 0; }
  .tool__p { font-size: 15px; }
  .ph { width: 28%; border-radius: 20px; padding: 4px; } .ph__screen { border-radius: 16px; }
  .found__list li { grid-template-columns: 44px minmax(0, 1fr); gap: 6px 10px; }
  .found__list li > span:last-child:not(.found__n) { grid-column: 2; font-size: 14px; }
  .cta__title { font-size: clamp(42px, 12.6vw, 66px); }
}

/* ================================================= no JS: the pinned film becomes a readable page */
.no-js .scene { height: auto; }
.no-js .sticky { position: relative; height: auto; overflow: visible; }
.no-js .ah { position: relative; min-height: 100vh; }
.no-js .cat-stage, .no-js .cat-ui, .no-js .cat-groups, .no-js .fisc__rail, .no-js .three__row { display: none; }
.no-js .cat-steps, .no-js .cat-step, .no-js .fisc__steps, .no-js .fs, .no-js .three__beats, .no-js .beat, .no-js .three__end, .no-js .three__head { position: relative; inset: auto; left: auto; right: auto; top: auto; bottom: auto; visibility: visible; opacity: 1; width: auto; }
.no-js .cat-step, .no-js .fs, .no-js .beat { padding: 40px var(--pad); }
.no-js .fs__n, .no-js .fs__p { opacity: 1; }
