/* === HenIntel public site — henintel.app/, /projects, /projects/<id> (25.10.2026; rebuilt 26.10.2026) ===
   The Agentic OS language of the boards (scripts/site/visuals/os.css): green-black field, panels with hairlines,
   Geist + Geist Mono, colour only where it means something — emerald the fast lane, violet the deep lane, cyan review
   and info, orange waiting for you, red failed, yellow a limit. Every picture is a crop of the product its box describes
   (RatioNexFlow's card also shows rationexflow.com itself). The project cards are one grey with a plain kicker, and the
   World watch and HQ boards wear the calm palette (scripts/site/visuals/calm.css); everything else keeps these colours.
   No AI tells: nothing pings or pulses, no "live" badges, no glowing dots, no neon, no scan lines.
   Strict CSP (style-src 'self'): no inline styles anywhere — JS writes only CSS custom properties through the CSSOM. */

@font-face { font-family: "Geist"; src: url("/site/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/site/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #070a08; --bg2: #0b0f0d; --tray: #090d0b; --solid: #111814;
  --glass: rgba(20, 26, 23, .66); --glass2: rgba(30, 37, 33, .5); --panel: rgba(255, 255, 255, .032);
  --line: rgba(255, 255, 255, .075); --line2: rgba(255, 255, 255, .14); --line3: rgba(255, 255, 255, .22);
  --ink: #e9ede9; --ink2: #aeb7b1; --ink3: #848d87; --ink4: #5d6560;
  --acc: #41e07a; --acc-rgb: 65, 224, 122; --acc-ink: #04120a;
  --cy: #3fd0ea; --cy-rgb: 63, 208, 234;
  --vio: #b08cff; --vio-rgb: 176, 140, 255;
  --or: #ff7a3d; --or-rgb: 255, 122, 61;
  --red: #ff5d67; --red-rgb: 255, 93, 103;
  --yel: #ffc63d; --yel-rgb: 255, 198, 61;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 14px; --r-lg: 18px; --r-xl: 22px;
  --wrap: 1240px; --wide: 1440px;
  --gut: max(20px, env(safe-area-inset-left, 0px));
  --gutr: max(20px, env(safe-area-inset-right, 0px));
  --nav-h: 64px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-rise: cubic-bezier(.05, .9, .1, 1);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .85);
  color-scheme: dark;
}
@media (min-width: 2000px) { :root { --wrap: 1440px; --wide: 1720px; } } /* big screens: the boards near their real size */

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background:
    radial-gradient(1200px 800px at 85% -10%, rgba(var(--acc-rgb), .055), transparent 60%),
    radial-gradient(900px 700px at -10% 40%, rgba(var(--acc-rgb), .035), transparent 62%),
    var(--bg);
  color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
body::before { /* the consoles' dot field */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .032) 1px, transparent 1.2px); background-size: 22px 22px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 80%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 80%, transparent);
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid rgba(var(--acc-rgb), .75); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(var(--acc-rgb), .3); color: #fff; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) + var(--gutr)); margin-inline: auto; padding-left: var(--gut); padding-right: var(--gutr); position: relative; }
main { position: relative; z-index: 1; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--acc); color: var(--acc-ink); font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- type atoms ---------- */
.kicker { display: inline-flex; align-items: center; gap: 9px; margin: 0; font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); }
h1, h2, h3 { margin: 0; font-weight: 420; letter-spacing: -.025em; line-height: 1.02; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.6vw, 60px); }
h3 { font-size: 20px; letter-spacing: -.01em; line-height: 1.2; font-weight: 500; }
p { margin: 0; }
.lead { font-size: clamp(17px, 1.6vw, 21px); color: var(--ink2); line-height: 1.45; max-width: 56ch; text-wrap: pretty; }
.muted { color: var(--ink3); }
.acc { color: var(--acc); }
.mono-k { font-family: var(--mono); font-size: 11px; color: var(--ink3); letter-spacing: .01em; white-space: nowrap; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: 999px; font-size: 15px; font-weight: 500; white-space: nowrap; border: 1px solid var(--line2); background: rgba(255, 255, 255, .06); color: var(--ink); transition: background .2s, border-color .2s, transform .2s var(--ease-out); }
.btn:hover { background: rgba(255, 255, 255, .1); border-color: var(--line3); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn.pri { background: #eef2ef; border-color: transparent; color: #06100a; font-weight: 600; }
.btn.pri:hover { background: #fff; }
.btn.glass { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13.5px; gap: 8px; }
.btn.sm svg { width: 15px; height: 15px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--acc); font-size: 15px; font-weight: 500; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- chips (the boards' chips) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .035); color: var(--ink2); font-size: 12.5px; white-space: nowrap; }
.chip.g { color: var(--acc); border-color: rgba(var(--acc-rgb), .28); background: rgba(var(--acc-rgb), .09); }
.o-chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 500; white-space: nowrap; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05); color: var(--ink2); transition: color .3s, background .3s, border-color .3s; }
.o-chip.g { color: var(--acc); background: rgba(var(--acc-rgb), .12); border-color: rgba(var(--acc-rgb), .24); }
.o-chip.v { color: var(--vio); background: rgba(var(--vio-rgb), .12); border-color: rgba(var(--vio-rgb), .26); }
.o-chip.c { color: var(--cy); background: rgba(var(--cy-rgb), .11); border-color: rgba(var(--cy-rgb), .22); }
.o-chip.o { color: var(--or); background: rgba(var(--or-rgb), .12); border-color: rgba(var(--or-rgb), .3); }
.o-chip.r { color: var(--red); background: rgba(var(--red-rgb), .12); border-color: rgba(var(--red-rgb), .28); }
.o-chip.y { color: var(--yel); background: rgba(var(--yel-rgb), .1); border-color: rgba(var(--yel-rgb), .24); }
.lanes { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 12px; color: var(--ink3); }
.lanes span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.lanes i { width: 14px; height: 2px; border-radius: 2px; background: var(--ink4); }
.lanes i.g { background: var(--acc); } .lanes i.v { background: var(--vio); } .lanes i.c { background: var(--cy); }
.lanes i.o { background: var(--or); } .lanes i.y { background: var(--yel); }

/* ---------- ticks ---------- */
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.ticks li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 11px; align-items: start; color: var(--ink2); font-size: 15px; line-height: 1.45; }
.ticks li svg { width: 16px; height: 16px; color: var(--acc); margin-top: 2px; }

/* ---------- the board: a panel in the consoles' own language, with its header row ---------- */
.board { position: relative; border-radius: var(--r-lg); background: var(--panel); border: 1px solid rgba(255, 255, 255, .07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03); }
.board-bar { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-height: 58px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.board-bar .bt { font-size: 14.5px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.board-bar .sp { flex: 1; }
@media (max-width: 640px) { .board-bar { padding: 12px 14px; } .board-bar .sp { flex-basis: 100%; height: 0; } }

/* ---------- a crop of a board ---------- */
.shot { position: relative; display: block; overflow: hidden; background: var(--tray); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px); transition: border-color .3s; border-bottom: 1px solid transparent; }
.nav::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); opacity: 0; transition: opacity .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav.scrolled::before { opacity: 1; }
.nav .wrap { height: var(--nav-h); display: flex; align-items: center; gap: 18px; max-width: calc(var(--wide) + var(--gut) + var(--gutr)); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: .005em; white-space: nowrap; }
.brand img { width: 28px; height: 28px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: 10px; }
.nav-links a { height: 34px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; color: var(--ink2); font-size: 14px; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, .055); }
.nav-links a[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, .08); }
.nav .sp { flex: 1; }
.nav-k { height: 38px; min-width: 210px; display: inline-flex; align-items: center; gap: 10px; padding: 0 8px 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .045); color: var(--ink3); font-size: 13.5px; transition: background .15s, border-color .15s; }
.nav-k:hover { background: rgba(255, 255, 255, .075); border-color: var(--line2); color: var(--ink2); }
.nav-k svg { width: 16px; height: 16px; }
.nav-k kbd, .kbd { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--ink3); border: 1px solid rgba(255, 255, 255, .12); border-radius: 6px; padding: 2px 6px; background: rgba(0, 0, 0, .2); }
.nav-signin { height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .085); border: 1px solid rgba(255, 255, 255, .12); font-size: 14px; font-weight: 500; transition: background .15s; }
.nav-signin:hover { background: rgba(255, 255, 255, .13); }
.nav-signin svg { width: 15px; height: 15px; color: var(--acc); }
@media (max-width: 860px) { .nav-links { display: none; } .nav-k { min-width: 0; width: 40px; padding: 0; justify-content: center; } .nav-k span, .nav-k kbd { display: none; } }

/* ---------- hero: the horizon — the Earth from orbit, a column of light, and How it works in plain words ----------
   The first screen is How it works, on phones and computers alike (27.10.2026): the headline, the plain-words
   lead and the six steps as chips; the steps themselves follow right under. The console it used to carry (type a job,
   "Plan it") is gone from here — the Command demo further down has its own. */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-start; justify-content: center; text-align: center; padding-top: var(--nav-h); overflow: hidden; isolation: isolate; }
.hero::after { /* hands the sky over to the page */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(3, 5, 4, .5) 0%, rgba(3, 5, 4, 0) 20%, rgba(3, 5, 4, 0) 80%, var(--bg) 100%);
}
.hero-poster { position: absolute; inset: 0; z-index: -3; background: no-repeat 50% 100% / cover; opacity: 0; transition: opacity 1s; }
.no-webgl .hero-poster { background-image: url("/site/img/horizon-poster.jpg"); opacity: 1; } /* fetched only when the sky can't be drawn */
.hz-sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0; transition: opacity 1.8s var(--ease-out); background: #020302; }
.hero.horizon-on .hz-sky { opacity: 1; }
.hz-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding-top: clamp(150px, 25vh, 270px); padding-bottom: clamp(70px, 12vh, 140px); }
.hz-anchor { display: block; width: 1px; height: 1px; margin-bottom: 24px; } /* the beam ends above this; the headline follows (no label in between since 28.10.2026) */
.hero-title { margin: 0 0 18px; font-size: clamp(40px, 5.5vw, 86px); font-weight: 400; line-height: 1.02; letter-spacing: -.045em; text-align: center; }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .w { display: inline-block; }
.hero-title .acc { color: #8af2b3; }
.hero-sub { margin: 0 auto; max-width: 52ch; font-size: clamp(16px, 1.35vw, 19px); color: var(--ink2); line-height: 1.46; text-shadow: 0 1px 2px rgba(0, 0, 0, .8), 0 0 18px rgba(0, 0, 0, .7); }
/* the six steps as chips, each a jump to its step below; people on a phone land on these first */
.hz-steps { justify-content: center; margin-top: clamp(24px, 3.6vh, 36px); max-width: 640px; }
.hz-steps a { height: 38px; padding: 0 16px; font-size: 14.5px; color: var(--ink); background: rgba(10, 14, 12, .64); border-color: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hz-steps a:hover { background: rgba(var(--acc-rgb), .14); border-color: rgba(var(--acc-rgb), .4); }
.hz-strip { margin-top: clamp(26px, 4vh, 40px); width: min(560px, 100%); display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 14px; background: rgba(10, 14, 12, .55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: 14px; color: var(--ink2); text-align: left; }
.hz-strip b { display: inline-flex; align-items: center; gap: 6px; flex: none; color: var(--ink); font-weight: 500; }
.hz-strip svg { width: 15px; height: 15px; transition: transform .2s var(--ease-out); }
.hz-strip:hover svg { transform: translateX(3px); }
@media (max-width: 700px) {
  /* On a phone the hero ends where its words end, so the first step and its film are one short scroll away. */
  .hero { min-height: 0; }
  .hz-copy { padding-top: clamp(96px, 16vh, 140px); padding-bottom: 54px; }
  .hz-steps { gap: 7px; }
  .hz-steps a { height: 36px; padding: 0 14px; font-size: 14px; }
  .hz-strip { font-size: 13px; }
  .hz-strip span { min-width: 0; }
}

/* load choreography (only with JS, never with reduced motion) */
.js .hero-title .w { transform: translateY(108%); filter: blur(16px); opacity: 0; }
.js.ready .hero-title .w { animation: rise 1.3s var(--ease-rise) forwards; }
.js.ready .hero-title .w:nth-child(2) { animation-delay: .1s; } .js.ready .hero-title .w:nth-child(3) { animation-delay: .2s; }
.js.ready .hero-title .ln + .ln .w:nth-child(1) { animation-delay: .42s; } .js.ready .hero-title .ln + .ln .w:nth-child(2) { animation-delay: .52s; } .js.ready .hero-title .ln + .ln .w:nth-child(3) { animation-delay: .64s; }
.js .hero-sub, .js .hz-steps, .js .hz-strip { opacity: 0; transform: translateY(18px); }
.js.ready .hero-sub { animation: fadeup 1s var(--ease-out) .75s forwards; }
.js.ready .hz-steps { animation: fadeup 1s var(--ease-out) .9s forwards; }
.js.ready .hz-strip { animation: fadeup 1s var(--ease-out) 1.05s forwards; }
@keyframes rise { to { transform: none; filter: none; opacity: 1; } }
@keyframes fadeup { to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
.sec { position: relative; padding-block: clamp(56px, 7vw, 104px); }
.sec.tight { padding-top: 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 18px 40px; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head > div { display: flex; flex-direction: column; gap: 18px; }
.sec-head p.lead { margin-top: 2px; }
.sec-head .link-arrow { margin-bottom: 6px; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; } }
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--rv-d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- the film stage: one board at a time, near its real size ---------- */
.stage-sec .sec-head { grid-template-columns: 1fr; justify-items: center; text-align: center; margin-bottom: clamp(26px, 3vw, 40px); }
.stage-sec .sec-head > div { align-items: center; }
.stage-wrap { width: 100%; max-width: calc(var(--wide) + var(--gut) + var(--gutr)); margin-inline: auto; padding-left: var(--gut); padding-right: var(--gutr); }
.stage-tabs { display: flex; gap: 2px; width: fit-content; max-width: 100%; margin: 0 auto 16px; padding: 3px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); overflow-x: auto; scrollbar-width: none; }
.stage-tabs::-webkit-scrollbar { display: none; }
.stage-tabs button { flex: none; height: 32px; padding: 0 14px; border-radius: 999px; color: var(--ink2); font-size: 13.5px; white-space: nowrap; transition: background .15s, color .15s; }
.stage-tabs button:hover { color: var(--ink); }
.stage-tabs button[aria-selected="true"] { background: rgba(255, 255, 255, .1); color: var(--ink); }
.stage { position: relative; width: 100%; aspect-ratio: var(--ar, 1440 / 900); overflow: hidden; border-radius: var(--r-xl); border: 1px solid var(--line2); background: var(--bg2); box-shadow: 0 60px 140px -60px rgba(0, 0, 0, .95), 0 0 0 1px rgba(0, 0, 0, .4); }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.stage-cap { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin: 16px auto 0; max-width: 80ch; text-align: center; color: var(--ink3); font-size: 14.5px; }
.stage-cap b { color: var(--ink); font-weight: 500; }
/* The pager — an arrow each side, a dot per film, the current one drawn long — is the phone's switcher (reel.js; the
   film itself also turns on a sideways swipe). On a computer the tabs do that job and the pager stays hidden. */
.stage-pager { display: none; align-items: center; justify-content: center; gap: 14px; margin: 14px auto 0; }
.pg-arrow { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); color: var(--ink2); transition: background .15s, color .15s; }
.pg-arrow:active { background: rgba(255, 255, 255, .12); color: var(--ink); }
.pg-arrow svg { width: 17px; height: 17px; }
.pg-dots { display: flex; align-items: center; gap: 6px; padding: 0 2px; }
.pg-dots button { position: relative; width: 8px; height: 8px; padding: 0; border-radius: 999px; background: rgba(255, 255, 255, .22); transition: width .25s var(--ease-out), background .2s; }
.pg-dots button::before { content: ""; position: absolute; inset: -10px -6px; } /* a finger-sized target around a small dot */
.pg-dots button[aria-selected="true"] { width: 26px; background: var(--acc); }
/* Narrow tablets: the tabs wrap as separate chips instead of scrolling sideways inside the pill, so no label is ever cut
   by the pill's edge (27.10.2026). */
@media (max-width: 900px) {
  .stage-tabs { flex-wrap: wrap; justify-content: center; gap: 6px; width: auto; padding: 0; border: 0; border-radius: 0; background: none; overflow: visible; }
  .stage-tabs button { height: 34px; padding: 0 13px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); }
  .stage-tabs button[aria-selected="true"] { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); }
}
/* Phones: no tabs at all — the pager and the swipe (27.10.2026). The frame lets a sideways swipe through to the
   page's script while up-and-down scrolling and pinch-zoom stay the browser's. */
@media (max-width: 700px) {
  .stage { border-radius: 14px; touch-action: pan-y pinch-zoom; }
  .stage-tabs { display: none; }
  .stage-pager { display: flex; }
  .stage-cap, .simple-stage .stage-cap { justify-content: center; text-align: center; margin: 10px auto 0; }
}

/* ---------- project cards: the product's own screen, then the words ---------- */
/* Twelve columns: the two flagship systems take half a row each, the other four a quarter (RatioNexFlow among
   them since 26.10.2026); two to a row below 1280 px, one on a phone. */
.cards { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.pcard { --tone: var(--ink2); --tone-rgb: 174, 183, 177; position: relative; grid-column: span 3; display: flex; flex-direction: column; min-height: 100%; padding: 8px 8px 20px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .05); transition: transform .35s var(--ease-out), border-color .25s, box-shadow .35s; overflow: hidden; isolation: isolate; }
.pcard.big { grid-column: span 6; }
.tone-cyan { --tone: var(--cy); --tone-rgb: var(--cy-rgb); }
.tone-amber { --tone: var(--yel); --tone-rgb: var(--yel-rgb); }
.tone-violet { --tone: var(--vio); --tone-rgb: var(--vio-rgb); }
/* the project cards are one grey, with a plain kicker (28.–29.10.2026); the project pages keep their tone */
.pcard[class*="tone-"] { --tone: var(--ink2); --tone-rgb: 174, 183, 177; }
.pcard::before { /* light that follows the pointer */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--tone-rgb), .1), transparent 60%);
}
.pcard:hover { transform: translateY(-4px); border-color: rgba(var(--tone-rgb), .3); box-shadow: 0 34px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .07); }
.pcard:hover::before { opacity: 1; }
.pcard-shot { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; background: var(--tray); border: 1px solid rgba(255, 255, 255, .06); }
.pcard-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; transform-origin: 0 0; transition: transform 1.2s var(--ease-out); }
.pcard:hover .pcard-shot img { transform: scale(1.025); }
.pcard-shot::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); background: linear-gradient(180deg, transparent 72%, rgba(9, 13, 11, .5)); }
.pcard-body { display: flex; flex-direction: column; gap: 9px; padding: 18px 12px 0; flex: 1; }
.pcard-kicker { font-family: var(--sans); font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--ink3); }
.pcard-name { font-size: 22px; font-weight: 500; letter-spacing: -.015em; line-height: 1.15; }
.pcard.big .pcard-name { font-size: 26px; }
.pcard-tag { color: var(--ink2); font-size: 15px; line-height: 1.45; }
.pcard-sum { color: var(--ink3); font-size: 14px; line-height: 1.5; }
.pcard .chips { margin-top: auto; padding-top: 10px; padding-right: 44px; }
.pcard-go { position: absolute; right: 18px; bottom: 18px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line2); color: var(--ink2); transition: transform .3s var(--ease-out), color .2s, border-color .2s, background .2s; }
.pcard-go svg { width: 16px; height: 16px; }
.pcard:hover .pcard-go { transform: translateX(3px); color: #06100a; background: #eef2ef; border-color: transparent; }
@media (max-width: 1280px) { .pcard { grid-column: span 6; } }
@media (max-width: 1080px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pcard, .pcard.big { grid-column: span 1; } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

/* The sealed project under the grid: one wide card, its crop beside the words on wide screens (27.10.2026) */
.sealed-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.sealed { position: relative; display: flex; flex-direction: column; margin: 0; padding: 8px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .05); }
.sealed-shot { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; background: var(--tray); border: 1px solid rgba(255, 255, 255, .06); }
.sealed-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
.sealed-body { display: flex; flex-direction: column; gap: 12px; padding: 18px 12px 10px; flex: 1; }
.sealed h3 { font-size: 24px; }
.stamp { position: absolute; right: 14px; top: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--yel); border: 1px solid rgba(var(--yel-rgb), .4); background: rgba(14, 12, 6, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.stamp svg { width: 12px; height: 12px; }
.modules { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.modules li { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0, 0, 0, .22); font-size: 12.5px; color: var(--ink2); }
.modules li svg { width: 12px; height: 12px; color: var(--yel); }
.modules li.blur { width: calc(var(--n, 12) * 6.6px + 22px); }
.modules li.blur i { display: block; width: 100%; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .2); filter: blur(3px); }
.modules li.legible { border-color: rgba(var(--yel-rgb), .26); color: var(--ink); }
.sealed-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.sealed-foot p { font-size: 13px; color: var(--ink3); }
@media (min-width: 901px) { .sealed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; align-items: start; } .sealed-body { padding: 22px 18px 12px 6px; } .sealed h3 { font-size: 26px; } }
/* "Built for …": whom a project was built for, one small quiet line (27.10.2026) */
.credit { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--ink3); }
.pcard .credit { padding-right: 44px; }

/* RatioNexFlow's card (29.10.2026): an <article>, its picture a toggle button — the rationexflow.com homepage, and on a
   click its Deploy watch crop fading in over it in .45s (instantly with reduced motion); the pill says which way the
   next click goes. The name's link stretches over the card (its ::after), so the words still open the site; the picture
   and the arrow sit above that layer. Toggle: public/site/js/site.js. */
.pcard-flip .pcard-shot { width: 100%; padding: 0; margin: 0; text-align: left; cursor: pointer; z-index: 2; -webkit-appearance: none; appearance: none; }
.pcard-flip .pcard-shot img { position: absolute; inset: 0; }
.pcard-flip .flip-ship { opacity: 0; transition: transform 1.2s var(--ease-out), opacity .45s ease; }
.pcard-flip [aria-pressed="true"] .flip-ship { opacity: 1; }
.pcard-flip .pcard-name::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard-flip .pcard-go { z-index: 2; }
.flip-pill { position: absolute; left: 10px; bottom: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; border-radius: 999px; background: rgba(9, 13, 11, .86); border: 1px solid rgba(255, 255, 255, .14); font-family: var(--sans); font-size: 11.5px; line-height: 1; letter-spacing: 0; color: var(--ink2); white-space: nowrap; pointer-events: none; transition: border-color .2s; }
.flip-pill svg { width: 12px; height: 12px; flex: none; }
.pcard-flip .pcard-shot:hover .flip-pill, .pcard-flip .pcard-shot:focus-visible .flip-pill { border-color: rgba(255, 255, 255, .26); }
.flip-back, .pcard-flip [aria-pressed="true"] .flip-show { display: none; }
.pcard-flip [aria-pressed="true"] .flip-back { display: inline; }
.no-js .flip-pill { display: none; } /* without the script the picture stays the homepage */
.rm .pcard-flip .flip-ship { transition: none; }
@media (prefers-reduced-motion: reduce) { .pcard-flip .flip-ship { transition: none; } }

/* ---------- command demo ---------- */
.cmd { display: grid; gap: 14px; }
.cmd-box { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 16px; background: linear-gradient(180deg, rgba(26, 33, 29, .55), rgba(12, 16, 14, .7)); border: 1px solid rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); transition: border-color .2s; }
.cmd-box:focus-within { border-color: rgba(var(--acc-rgb), .34); }
.cmd-ic { width: 18px; height: 18px; flex: none; color: var(--ink3); }
.cmd-box textarea { flex: 1; min-width: 0; height: 44px; max-height: 140px; resize: none; padding: 11px 4px; border: 0; outline: 0; background: transparent; font-size: 16px; line-height: 1.4; color: var(--ink); }
.cmd-box textarea::placeholder { color: var(--ink3); }
.cmd-examples { display: flex; flex-wrap: wrap; gap: 8px; }
.cmd-examples button { height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--ink2); font-size: 13px; transition: border-color .2s, color .2s, background .2s; }
.cmd-examples button:hover { color: var(--ink); border-color: var(--line2); background: rgba(255, 255, 255, .06); }
.cmd-stage { min-height: 520px; overflow: hidden; }
.cmd-stage::before { content: ""; position: absolute; inset: 58px 0 0; pointer-events: none; border-radius: 0 0 var(--r-lg) var(--r-lg); background-image: radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1.3px); background-size: 22px 22px; background-position: 11px 11px; }
.cmd-wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.cmd-wires path { fill: none; stroke: rgba(255, 255, 255, .13); stroke-width: 1.6; transition: stroke .5s; }
.cmd-wires path.lit { stroke: rgba(var(--acc-rgb), .8); }
.cmd-wires path.lit.l-v { stroke: rgba(var(--vio-rgb), .82); }
.cmd-wires path.lit.l-c { stroke: rgba(var(--cy-rgb), .8); }
.cmd-wires path.flow { stroke: #c9f8da; stroke-width: 1.8; stroke-dasharray: 2 12; stroke-linecap: round; animation: flow 1.1s linear infinite; }
.cmd-wires path.flow.l-v { stroke: #e3d6ff; }
.cmd-wires path.flow.l-c { stroke: #c8f3fb; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.cmd-flow { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(150px, .8fr) minmax(160px, .85fr) minmax(0, 2.3fr); gap: 52px; align-items: center; padding: 34px 28px 40px; }
.cmd-col { display: grid; gap: 16px; align-content: center; }
.cmd-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 26px; }
.node { --lane: var(--acc); --lane-rgb: var(--acc-rgb); position: relative; border-radius: var(--r); background: rgba(20, 26, 23, .92); border: 1px solid var(--line2); box-shadow: 0 18px 44px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .045); padding: 12px 14px; transition: border-color .5s, background .5s, opacity .5s, transform .6s var(--ease-out); }
.node.lane-v { --lane: var(--vio); --lane-rgb: var(--vio-rgb); }
.node.lane-c { --lane: var(--cy); --lane-rgb: var(--cy-rgb); }
.node.hide { opacity: 0; transform: translateY(14px) scale(.97); }
.node .nh { display: flex; align-items: center; gap: 8px; min-height: 22px; font-size: 13.5px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.node .nh svg { width: 15px; height: 15px; flex: none; color: var(--ink2); }
.node .seat { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); font-size: 12px; font-weight: 600; }
.node .nk-t { color: var(--ink2); font-weight: 400; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.node .lane { margin-left: auto; display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 500; color: var(--lane); background: rgba(var(--lane-rgb), .12); border: 1px solid rgba(var(--lane-rgb), .26); }
.node .nt { margin-top: 9px; font-size: 13.5px; line-height: 1.35; color: var(--ink); min-height: 2.7em; }
.node .nl { margin-top: 8px; font-family: var(--mono); font-size: 11px; line-height: 1.5; color: var(--ink3); }
.node .nbar { margin-top: 10px; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.node .nbar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--lane); transition: width 1.4s var(--ease-out), background .4s; }
.node .nk { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--ink3); }
.node.words .paper { margin-top: 10px; font-size: 13px; color: var(--ink2); line-height: 1.45; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: rgba(0, 0, 0, .25); max-height: 124px; overflow: hidden; word-break: break-word; }
.node.s-work { border-color: rgba(var(--lane-rgb), .45); background: rgba(22, 30, 26, .95); }
.node.s-work .nbar i { width: 64%; }
.node.s-wait { border-color: rgba(var(--or-rgb), .5); }
.node.s-wait .nbar i { width: 82%; background: var(--or); }
.node.s-done .nbar i { width: 100%; background: rgba(var(--lane-rgb), .55); }
.node.s-done .nh { color: var(--ink2); }
.node.plan.s-work { border-color: rgba(var(--cy-rgb), .45); }
.st { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-family: var(--sans); font-size: 11px; font-weight: 500; border: 1px solid rgba(255, 255, 255, .1); color: var(--ink2); background: rgba(255, 255, 255, .05); white-space: nowrap; transition: color .3s, background .3s, border-color .3s; }
.st.g { color: var(--acc); background: rgba(var(--acc-rgb), .12); border-color: rgba(var(--acc-rgb), .24); }
.st.c { color: var(--cy); background: rgba(var(--cy-rgb), .11); border-color: rgba(var(--cy-rgb), .22); }
.st.o { color: var(--or); background: rgba(var(--or-rgb), .12); border-color: rgba(var(--or-rgb), .3); }
.st.v { color: var(--vio); background: rgba(var(--vio-rgb), .12); border-color: rgba(var(--vio-rgb), .26); }
.cmd-idle { position: absolute; inset: 58px 0 0; z-index: 2; display: grid; place-items: center; text-align: center; color: var(--ink3); font-size: 15px; padding: 24px; transition: opacity .5s; }
.cmd-idle b { display: block; color: var(--ink2); font-weight: 500; font-size: 17px; margin-bottom: 6px; }
.cmd.running .cmd-idle, .cmd.done .cmd-idle { opacity: 0; pointer-events: none; }
.cmd-toast { position: absolute; right: 20px; bottom: 18px; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: rgba(20, 26, 23, .97); border: 1px solid rgba(var(--acc-rgb), .3); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); font-size: 14px; opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .6s var(--ease-out); max-width: calc(100% - 40px); }
.cmd-toast.on { opacity: 1; transform: none; }
.cmd-toast svg { width: 20px; height: 20px; color: var(--acc); flex: none; }
.cmd-toast small { display: block; color: var(--ink3); font-size: 12.5px; }
.cmd-note { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink4); }
@media (max-width: 980px) {
  .cmd-flow { grid-template-columns: 1fr; gap: 30px; padding: 26px 16px 90px; }
  .cmd-col.words, .cmd-col.plan { max-width: 380px; width: 100%; justify-self: center; }
  .cmd-steps { gap: 14px; }
}
@media (max-width: 560px) { .cmd-steps { grid-template-columns: 1fr; } .cmd-box { flex-wrap: wrap; padding: 8px 8px 8px 14px; } .cmd-box textarea { flex: 1 1 calc(100% - 40px); height: 66px; } .cmd-box .btn { margin-left: auto; } }

/* ---------- network ---------- */
.net { overflow: hidden; }
.net canvas { width: 100%; height: clamp(420px, 46vw, 600px); }
@media (max-width: 700px) { .net canvas { height: 560px; } }

/* ---------- a day on the server ---------- */
.day-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); align-items: center; padding: clamp(22px, 3vw, 40px); }
.dial { margin: 0; position: relative; aspect-ratio: 1; max-width: 500px; width: 100%; justify-self: center; }
.dial svg { width: 100%; height: 100%; overflow: visible; }
.dial .ring { fill: none; stroke: var(--line2); stroke-width: 1; }
.dial .ring.in { stroke: var(--line); stroke-dasharray: 2 6; }
.dial .sector { fill: none; stroke-width: 20; opacity: .9; }
.dial .tick { stroke: rgba(255, 255, 255, .16); stroke-width: 1; }
.dial .tick.m { stroke: rgba(255, 255, 255, .32); }
.dial .lbl { fill: var(--ink3); font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; }
.dial .ev { fill: #0b100d; stroke: var(--acc); stroke-width: 1.6; transition: fill .4s; }
.dial .ev.sun { stroke: var(--yel); }
.dial .ev.on { fill: var(--acc); }
.dial .ev.sun.on { fill: var(--yel); }
.dial .hand { stroke: #fff; stroke-width: 1.6; }
.dial .hand-dot { fill: #fff; }
.dial .core { fill: rgba(16, 21, 18, .9); stroke: var(--line2); }
.dial .now-t { fill: var(--ink); font-family: var(--sans); font-size: 20px; font-weight: 450; letter-spacing: -.01em; }
.dial .now-s { fill: var(--ink3); font-family: var(--mono); font-size: 8.5px; letter-spacing: .2em; text-transform: uppercase; }
.dial .sweep { fill: url(#dialSweep); }
.day-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.day-list li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 10px 14px; border-radius: 10px; border: 1px solid transparent; transition: background .4s, border-color .4s; }
.day-list li .when { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); }
.day-list li .what { color: var(--ink2); font-size: 15px; }
.day-list li.on { background: rgba(var(--acc-rgb), .06); border-color: rgba(var(--acc-rgb), .2); }
.day-list li.on .when { color: var(--acc); }
.day-list li.on .what { color: var(--ink); }
.day-list li.sun .when { color: var(--yel); }
.day-board.solo .day-list { padding: clamp(14px, 2vw, 24px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 24px; }
@media (max-width: 900px) { .day-grid { grid-template-columns: 1fr; } .day-list li { grid-template-columns: 92px minmax(0, 1fr); } .day-board.solo .day-list { grid-template-columns: 1fr; } }

/* ---------- access ---------- */
.access-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.access-copy { display: flex; flex-direction: column; gap: 22px; padding-top: 8px; }
.access-copy .ticks { margin-top: 4px; }
.access-signin { color: var(--ink3); font-size: 15px; }
.access-signin a { color: var(--acc); }
.access-form { overflow: hidden; }
.access-in { display: grid; gap: 14px; padding: 20px; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); flex-wrap: wrap; justify-self: start; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; color: var(--ink2); transition: background .2s, color .2s; }
.seg input:checked + span { background: rgba(255, 255, 255, .1); color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid rgba(var(--acc-rgb), .75); outline-offset: 2px; }
.field { display: grid; gap: 7px; }
.field > span { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); }
.field > span em { font-style: normal; color: var(--ink4); }
.field input, .field textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .11); background: rgba(0, 0, 0, .28); color: var(--ink); font-size: 16px; outline: 0; transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.45; }
.field input:focus, .field textarea:focus { border-color: rgba(var(--acc-rgb), .5); box-shadow: 0 0 0 4px rgba(var(--acc-rgb), .08); background: rgba(0, 0, 0, .35); }
.field.bad input, .field.bad textarea { border-color: rgba(var(--red-rgb), .6); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.access-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 4px; }
.form-note { font-size: 13px; color: var(--ink3); }
.form-status { font-size: 14px; min-height: 1.4em; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--acc); }
.form-status.err { color: var(--red); }
.form-status a { text-decoration: underline; }
.access-form.sent .field, .access-form.sent .seg, .access-form.sent .btn, .access-form.sent .form-note { opacity: .35; pointer-events: none; }
@media (max-width: 900px) { .access-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } .access-in { padding: 16px 14px; } .seg span { padding: 0 11px; font-size: 13px; } }

/* ---------- pages: projects index + one project ---------- */
.page-hero { padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 120px)); padding-bottom: clamp(36px, 5vw, 60px); display: flex; flex-direction: column; gap: 22px; }
.page-hero h1 { font-size: clamp(44px, 7vw, 96px); letter-spacing: -.045em; line-height: .96; }
.page-hero .lead { max-width: 60ch; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--ink3); font-size: 14px; width: fit-content; }
.back:hover { color: var(--ink); }
.back svg { width: 15px; height: 15px; }
.proj-hero { --tone: var(--acc); --tone-rgb: var(--acc-rgb); padding-bottom: clamp(28px, 4vw, 48px); }
.proj-hero .kicker { color: var(--tone); }
.proj-hero + .stage-sec { padding-top: 0; }

/* abilities: each group with a crop of the part it describes, shown whole on the board's own tray */
.groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.group { display: flex; flex-direction: column; padding: 8px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05); }
.group-shot { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .06);
  background: radial-gradient(600px 380px at 20% 0%, rgba(var(--acc-rgb), .05), transparent 65%), var(--tray); }
.group-shot::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255, 255, 255, .04) 1px, transparent 1.3px); background-size: 18px 18px; background-position: 9px 9px; }
.group-shot img { position: absolute; inset: clamp(14px, 2.4vw, 26px); width: calc(100% - 2 * clamp(14px, 2.4vw, 26px)); height: calc(100% - 2 * clamp(14px, 2.4vw, 26px)); object-fit: contain; filter: drop-shadow(0 0 1px rgba(255, 255, 255, .22)) drop-shadow(0 18px 30px rgba(0, 0, 0, .55)); }
.group-body { padding: 18px 12px 6px; }
.group h3 { margin: 0 0 8px; }
.group ul { margin: 0; padding: 0; list-style: none; display: grid; }
.group li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 11px; align-items: start; padding: 9px 0; border-top: 1px solid var(--line); color: var(--ink2); font-size: 15px; line-height: 1.45; }
.group li:first-child { border-top: 0; }
.group li svg { width: 16px; height: 16px; color: var(--acc); margin-top: 3px; }
@media (min-width: 901px) { /* an odd last group takes the whole row: its screen beside its list */
  .groups > .group:last-child:nth-child(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 8px; align-items: start; }
  .groups > .group:last-child:nth-child(odd) .group-body { padding: 18px 18px 6px 22px; }
}
@media (max-width: 900px) { .groups { grid-template-columns: 1fr; } }

/* how it works: the steps on one line, like a release on its way (dial.js lights them in turn) */
.how { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 14px; margin: 0; padding: clamp(24px, 3vw, 36px) clamp(18px, 2.4vw, 30px) clamp(26px, 3vw, 38px); list-style: none; position: relative; }
.how::before { content: ""; position: absolute; left: calc(clamp(18px, 2.4vw, 30px) + 15px); right: clamp(18px, 2.4vw, 30px); top: calc(clamp(24px, 3vw, 36px) + 15px); height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .08); }
.how li { position: relative; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.how .dotn { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #0d1210; border: 1px solid var(--line2); color: transparent; transition: background .4s, border-color .4s, color .4s; }
.how .dotn svg { width: 15px; height: 15px; }
.how li.on .dotn { background: rgba(var(--acc-rgb), .14); border-color: rgba(var(--acc-rgb), .6); color: var(--acc); }
.how li p { color: var(--ink2); font-size: 14.5px; line-height: 1.45; padding-right: 8px; transition: color .4s; }
.how li.on p { color: var(--ink); }
@media (max-width: 900px) {
  .how { grid-auto-flow: row; grid-auto-columns: auto; gap: 0; }
  .how::before { left: calc(clamp(18px, 2.4vw, 30px) + 15px); right: auto; top: 40px; bottom: 40px; width: 2px; height: auto; }
  .how li { flex-direction: row; align-items: center; padding: 8px 0; }
}

/* the learning loop on the project pages: words on one side, the loop's own screen on the other */
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.split-copy { display: flex; flex-direction: column; gap: 20px; }
.split-shot { margin: 0; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line2); background: var(--tray); box-shadow: var(--shadow); }
.split-shot img { width: 100%; height: auto; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- how it works: the simple version (26.10.2026) — each step's words beside its films ---------- */
.simple-hero .lead { max-width: 62ch; }
.simple-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.simple-steps a { height: 34px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); color: var(--ink2); font-size: 14px; transition: color .15s, background .15s; }
.simple-steps a:hover { color: var(--ink); background: rgba(255, 255, 255, .07); }
.simple-step { scroll-margin-top: var(--nav-h); }
.simple-step + .simple-step { padding-top: 0; }
/* The words beside a small film, sides taking turns (27.10.2026: the small showcase films came back). A film here is
   about half its own 1280 px; it lays itself out at that size (fit.js; every length in a film is rem), so it is drawn
   sharp, not shrunk as a picture. */
.simple-row { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.simple-row.flip { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); }
.simple-row.flip .simple-copy { order: 2; }
.simple-copy { display: flex; flex-direction: column; gap: 18px; }
.simple-copy h2 { font-size: clamp(30px, 3.4vw, 46px); }
.simple-stage { min-width: 0; }
.simple-stage .stage-tabs { margin: 0 0 14px; justify-content: flex-start; }
.simple-stage .stage-cap { justify-content: flex-start; text-align: left; margin-left: 0; }
@media (max-width: 900px) { .simple-row, .simple-row.flip { grid-template-columns: 1fr; } .simple-row.flip .simple-copy { order: 0; } }

.proj-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.proj-nav a { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--line); transition: border-color .25s, transform .3s var(--ease-out); }
.proj-nav a:hover { border-color: var(--line3); transform: translateY(-2px); }
.proj-nav a.next { text-align: right; align-items: flex-end; }
.proj-nav span { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); }
.proj-nav b { font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
@media (max-width: 640px) { .proj-nav { grid-template-columns: 1fr; } .proj-nav a.next { text-align: left; align-items: flex-start; } }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding: clamp(26px, 4vw, 44px); border-radius: var(--r-xl); border: 1px solid var(--line); background: radial-gradient(600px 300px at 10% 0%, rgba(var(--acc-rgb), .1), transparent 70%), var(--glass); }
.cta-band > div:first-child { display: flex; flex-direction: column; gap: 12px; }
.cta-band h2 { font-size: clamp(28px, 3.6vw, 46px); }
.cta-band .acts { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 54px 0 calc(34px + env(safe-area-inset-bottom, 0px)); overflow: hidden; }
.foot-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px; }
.foot-top p { color: var(--ink3); margin-top: 12px; max-width: 34ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-links a { color: var(--ink2); font-size: 15px; }
.foot-links a:hover { color: var(--ink); }
.foot-word { margin: 46px 0 22px; font-size: clamp(64px, 17vw, 250px); font-weight: 500; letter-spacing: -.06em; line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .09); background: linear-gradient(180deg, rgba(var(--acc-rgb), .12), rgba(var(--acc-rgb), 0) 80%); -webkit-background-clip: text; background-clip: text; user-select: none; white-space: nowrap; }
.foot-bot { display: flex; flex-wrap: wrap; gap: 8px 26px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: var(--ink3); text-transform: uppercase; }

/* ---------- command palette ---------- */
.pal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: start center; padding: max(12vh, 70px) 16px 16px; background: rgba(0, 0, 0, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .2s; }
.pal[hidden] { display: none; }
.pal.on { opacity: 1; }
.pal-box { width: min(620px, 100%); border-radius: var(--r-xl); background: color-mix(in srgb, var(--bg2) 95%, transparent); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 40px 120px rgba(0, 0, 0, .65); padding: 12px; transform: translateY(-8px) scale(.98); transition: transform .25s var(--ease-out); }
.pal.on .pal-box { transform: none; }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 0 10px; border-bottom: 1px solid var(--line2); }
.pal-in svg { width: 18px; height: 18px; color: var(--ink3); }
.pal-in input { flex: 1; height: 50px; background: transparent; border: 0; outline: 0; color: var(--ink); font-size: 17px; }
.pal-list { list-style: none; margin: 8px 0 0; padding: 0; max-height: min(420px, 55vh); overflow: auto; }
.pal-list li a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px; font-size: 15px; }
.pal-list li a svg { width: 17px; height: 17px; color: var(--ink3); flex: none; }
.pal-list li a small { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--ink3); letter-spacing: .06em; }
.pal-list li[aria-selected="true"] a, .pal-list li a:hover { background: rgba(255, 255, 255, .07); }
.pal-empty { padding: 18px 12px; color: var(--ink3); font-size: 14px; }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .hero-title .w, .js .hero-sub, .js .hz-steps, .js .hz-strip, .js .rv { opacity: 1 !important; transform: none !important; filter: none !important; }
}
