/* Tilda Sans (ParaType, SIL OFL 1.1): one variable file, Latin + Cyrillic, for all small text */
@font-face { font-family: "Tilda Sans"; src: url("../assets/fonts/TildaSans-VF.woff2") format("woff2"); font-weight: 250 900; font-style: normal; font-display: swap; }

/* Crystallize — the page is one descent: black → every blue → white.
   --fg is set from scroll by js/main.js (same palette as the 3D fog), on the threshold only; --bg follows the story on
   the top bar alone (the page background is the canvas; without WebGL main.js writes it here on :root). */
:root {
  --c0: #020306; --c1: #050c1c; --c2: #0b2148; --c3: #1d4f9c;
  --c4: #3d7fe0; --c5: #8fbde8; --c6: #cfe3f7; --c7: #f2f7fc;

  --bg: var(--c0);
  --fg: #e6eef8;
  --fg-dim: color-mix(in srgb, var(--fg) 76%, transparent);
  --line: color-mix(in srgb, var(--fg) 18%, transparent);

  /* Display: the logo's Archivo (Russian glyphs fall through to Roboto Flex, same skeleton, as wide).
     Small text — HUD labels, nav, copy — is Tilda Sans in both languages; arrows it lacks fall back to Archivo. */
  --font: "Archivo", "Roboto Flex", "Arial", sans-serif;
  --small: "Tilda Sans", "Archivo", "Roboto Flex", "Arial", sans-serif;
  --display: var(--font);
  --body: var(--small);
  --mono: var(--small);

  --gutter: clamp(16px, 3.4vw, 48px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: 16px; line-height: 1.6; font-stretch: 100%;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: color .6s;
}
body.is-light { background: var(--c7); } /* behind the canvas: only an overscroll ever shows it */
body.is-loading { overflow: hidden; height: 100vh; }
.hud, main, .footer, .logo, .nav { transition: opacity .5s var(--ease); }
body.is-loading .top, body.is-loading .hud, body.is-loading main, body.is-loading .footer { opacity: 0; pointer-events: none; }
body.is-loading :is(.logo, .nav), body.is-intro:not(.ui-3) .top::before,
body.is-intro:not(.ui-1) .logo, body.is-intro:not(.ui-2) main, body.is-intro:not(.ui-3) .nav,
body.is-intro:not(.ui-4) :is(.hud, .footer) { opacity: 0; pointer-events: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--c4); color: var(--c7); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#works-list:focus-within { position: fixed; left: var(--gutter); bottom: 72px; width: auto; height: auto; clip: auto; overflow: visible; white-space: normal; z-index: 45; list-style: none; margin: 0; padding: 12px 16px; display: grid; gap: 6px; background: var(--c1); color: var(--c7); border: 1px solid color-mix(in srgb, var(--c6) 30%, transparent); }
#works-list button { background: none; border: 0; padding: 4px 0; color: inherit; text-align: left; cursor: pointer; font-size: 14px; }

/* small HUD/label text: the logo face, semi-expanded, tracked caps */
.mono { font-family: var(--mono); font-size: 10.5px; font-weight: 600; font-stretch: 112%; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5; }
/* Roboto Flex runs a touch narrower than Archivo at the same stretch; widen Russian display type to match (per rule) */
:lang(ru) .mono { font-stretch: 125%; font-weight: 650; }
.dim { opacity: .5; }
.kicker { margin: 0; color: var(--fg-dim); }

/* ---------- canvas ---------- */
#scene { position: fixed; inset: 0 0 auto 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; display: block; }
.fallback-mark { display: none; position: fixed; width: 46vmin; height: 46vmin; left: 50%; top: 50%; transform: translate(-50%, -50%); color: var(--c5); opacity: .25; z-index: 0; }
.no-webgl .fallback-mark { display: block; }
.no-webgl #scene { display: none; }

/* ---------- loader: a readout over the live particle solution, then the gate ---------- */
.loader {
  position: fixed; inset: auto 0 0 0; z-index: 60; color: var(--c6); pointer-events: none;
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
  transition: opacity 1.2s var(--ease), visibility 1.2s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader.is-quick { transition-duration: .15s; }
.loader__read { display: grid; gap: 8px; color: color-mix(in srgb, var(--c6) 70%, transparent); font-variant-numeric: tabular-nums; }
.loader__bar { display: block; width: 180px; height: 1px; background: color-mix(in srgb, var(--c6) 20%, transparent); overflow: hidden; }
.loader__bar i { display: block; height: 100%; background: var(--c6); transform: scaleX(0); transform-origin: left; }
.gate { display: flex; flex-wrap: wrap; gap: 10px; pointer-events: auto; animation: gate 1s var(--ease); }
.gate[hidden] { display: none; }
@keyframes gate { from { opacity: 0; transform: translateY(12px); } }
.gate__btn {
  font-family: var(--small); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--c6); border: 1px solid color-mix(in srgb, var(--c6) 40%, transparent); border-radius: 2px; padding: 15px 20px; cursor: pointer;
  transition: background .3s, border-color .3s;
}
.gate__btn:hover, .gate__btn:focus-visible { border-color: var(--c6); background: color-mix(in srgb, var(--c6) 8%, transparent); }
.gate__btn:not(.gate__btn--ghost)::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--c6); box-shadow: 0 0 10px var(--c5); }

/* ---------- cursor ---------- */
/* a solid ice ring, moved by transform only (no blend mode: difference forced a full-screen composite every frame);
   cobalt once the page has turned to ice. The colour flips on the threshold class, never per frame */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  border: 1.5px solid var(--c6); opacity: 0; will-change: transform;
  transition: scale .4s var(--ease), opacity .3s, border-color .3s;
}
body.is-light .cursor { border-color: var(--c3); }
.cursor.is-on { opacity: 1; }
/* one hover language: on links and buttons the element answers (underline, arrow, pane light) and the cursor steps aside */
.cursor.is-link { scale: .4; opacity: 0; }
@media (pointer: coarse) { .cursor { display: none; } }

/* ---------- top bar ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 24px;
  padding: calc(20px + env(safe-area-inset-top, 0px)) var(--gutter) 20px;
  color: var(--fg); transition: color .2s, opacity .5s var(--ease); /* flips as the ice front passes behind it */
}
/* the iris dive: the blades pass the camera under the bar, which sits on its own field of the page colour */
.top::before { content: ""; position: absolute; inset: 0 0 -64px 0; z-index: -1; pointer-events: none; background: linear-gradient(var(--bg) 40%, transparent); opacity: 0; transition: opacity .35s var(--ease); }
body.s-dive .top::before { opacity: .94; }
.logo { display: inline-flex; align-items: center; gap: .4em; text-decoration: none; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 20px; letter-spacing: -.01em; line-height: 1; }
.logo__mark { width: 1.15em; height: 1.15em; transition: transform 1.4s var(--ease); }
.logo:hover .logo__mark { transform: rotate(135deg); }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); justify-self: end; }
.nav a, .nav__index { font-family: var(--mono); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; text-decoration: none; }
.nav__index { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font-weight: inherit; }
/* HUD chrome, not buttons: mono labels whose underline cuts in on hover or focus (one frame, a tick from main.js); the
   call to action is the same label behind a small lit rhombus, a cut of the mark */
.nav a, .nav__index { position: relative; }
.nav a::after, .nav__index::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; visibility: hidden; }
.nav a:is(:hover, :focus-visible)::after, .nav__index:is(:hover, :focus-visible)::after { visibility: visible; }
.nav__cta { display: inline-flex; align-items: center; gap: 9px; }
.nav__cta::before { content: ""; width: 5px; height: 5px; background: currentColor; transform: rotate(45deg); }
.nav__cta::after { left: 14px; }
.lang { background: none; border: 0; padding: 8px 0 8px 4px; cursor: pointer; font-family: var(--mono); font-size: 10.5px; font-weight: 600; font-stretch: 112%; letter-spacing: .14em; color: inherit; }
.lang:hover { opacity: .7; }
.show-sm { display: none; }
@media (max-width: 720px) { .nav a:not(.nav__cta) { display: none; } .logo { font-size: 16px; } .hide-sm { display: none; } .show-sm { display: inline; } }

/* ---------- HUD ---------- */
.hud {
  position: fixed; inset: auto 0 0 0; z-index: 40; display: flex; justify-content: space-between; align-items: end; gap: 16px;
  padding: 0 var(--gutter) calc(18px + env(safe-area-inset-bottom, 0px)); color: var(--fg-dim); pointer-events: none;
}
/* no bg-coloured shelves under the chrome (they read as letterbox bands over the vignetted canvas): copy fades by its
   position against the chrome instead (--sf, written every frame by the safe band in main.js) */
.hud.ink-dark { --fg: #06101f; --fg-dim: rgba(6, 16, 31, .76); } /* the ice front has risen above the HUD */
body.s-end .hud { opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s .3s; }
#hud-phase { transition: opacity .3s var(--ease); }
body.hud-quiet #hud-phase { opacity: 0; }
.hud__br { display: grid; text-align: right; font-variant-numeric: tabular-nums; }
.sound { pointer-events: auto; background: none; border: 0; padding: 6px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; color: var(--fg-dim); font: inherit; letter-spacing: inherit; text-transform: inherit; }
.sound:hover { color: var(--fg); }
.sound__bars { display: inline-flex; align-items: end; gap: 2px; height: 10px; }
.sound__bars i { width: 2px; height: 3px; background: currentColor; }
.sound[aria-pressed="true"] .sound__bars i { animation: eq 1s ease-in-out infinite; }
.sound__bars i:nth-child(2) { animation-delay: -.3s !important; }
.sound__bars i:nth-child(3) { animation-delay: -.6s !important; }
.sound__bars i:nth-child(4) { animation-delay: -.15s !important; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 10px; } }
@media (max-width: 720px) { #hud-xyz { display: none; } }

/* ---------- HUD cards ---------- */
.cards { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
.leaders { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 19; pointer-events: none; overflow: visible; }
.leaders .ld { fill: none; stroke: var(--fg); stroke-width: 1; stroke-dasharray: 1; opacity: 0; }
.leaders .ret { opacity: 0; }
.leaders .ret path { fill: none; stroke: var(--fg); stroke-width: .8; }
.leaders .ret circle { fill: var(--fg); }
.leaders .ret.is-lock circle { animation: lockpulse 1.6s ease-in-out infinite; }
@keyframes lockpulse { 50% { r: 3.2; } }
.card {
  position: absolute; left: 0; top: 0; width: 250px; pointer-events: auto; text-decoration: none;
  display: grid; gap: 6px; padding: 12px 0; opacity: 0; will-change: transform, opacity;
  color: var(--fg); border-top: 1px solid var(--fg);
}
.card__id { color: var(--fg-dim); }
.card__title { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 22px; line-height: 1; }
.card__meta { display: flex; justify-content: space-between; gap: 10px; color: var(--fg-dim); }
.card__cta { margin-top: 6px; display: inline-flex; gap: 8px; align-items: center; }
.card__cta::after { content: "→"; transition: transform .4s var(--ease); }
.card:hover .card__cta::after { transform: translateX(6px); }
.cards--dock .card { left: var(--gutter); top: auto; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .15s, transform .15s; }
.cards--dock .card.is-on { opacity: 1; transform: none; pointer-events: auto; transition: opacity .25s var(--ease) .15s, transform .25s var(--ease) .15s; }

/* ---------- the story: six spacers under a HUD ---------- */
main, .footer { position: relative; z-index: 10; }
/* every chapter carries its own ink: the navy → ice turn is a place on the page (the services edge, where the lens
   draws the frost front), so a chapter's HUD never changes colour mid-turn */
.hero, .manifesto, .works, .archive { --fg: #e6eef8; --fg-dim: rgba(230, 238, 248, .76); --line: rgba(230, 238, 248, .18); color: var(--fg); }
.services, .contact, .footer { --fg: #06101f; --fg-dim: rgba(6, 16, 31, .72); --line: rgba(29, 79, 156, .3); color: var(--fg); }
/* the spacers: one story unit each (main.js reads their tops), sized so every station has its dwell */
.hero { height: 160vh; }
.manifesto { height: 220vh; }
.works { height: 560vh; }
.archive { height: 320vh; } /* the index field drifts over 3.12 → 3.86 */
.services { height: 380vh; } /* six facets over 4.0 → 4.6 */
.contact { height: 170vh; }

/* station HUD blocks: fixed over the world and cut in while their station runs (main.js toggles .is-on, no fades) */
.st { position: fixed; z-index: 12; opacity: 0; pointer-events: none; }
.st.is-on { opacity: 1; pointer-events: auto; }
.st--hero { left: var(--gutter); bottom: calc(92px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 18px; justify-items: start; max-width: min(820px, 58vw); }
.st--top { left: var(--gutter); top: calc(92px + env(safe-area-inset-top, 0px)); display: grid; gap: 10px; justify-items: start; max-width: min(400px, 36vw); }
.st--contact { left: var(--gutter); bottom: calc(86px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 18px; justify-items: start; max-width: min(860px, 62vw); }
.st__k { margin: 0; display: flex; align-items: center; gap: 12px; color: var(--fg); }
.st__k::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.st__n { color: var(--fg-dim); font-variant-numeric: tabular-nums; }
.st__sub { margin: 0; color: var(--fg-dim); font-size: 13px; line-height: 1.45; font-weight: 500; letter-spacing: .01em; }
.st__btn { margin-top: 4px; background: none; border: 0; padding: 4px 0; color: var(--fg); cursor: pointer; display: inline-flex; gap: 10px; align-items: center; position: relative; }
.st__btn::after { content: "↗"; letter-spacing: 0; }
.st__btn::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; visibility: hidden; }
.st__btn:is(:hover, :focus-visible)::before { visibility: visible; }

/* display lines: Archivo wide and heavy, at most one per station, ≤ 6vw */
.disp { position: relative; margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 125%; font-size: clamp(30px, 4vw, 76px); line-height: .96; letter-spacing: -.025em; max-width: 13em; text-wrap: balance; overflow-wrap: normal; word-break: keep-all; hyphens: manual; }
:lang(ru) .disp { font-stretch: 151%; font-weight: 900; }
#contact-title { max-width: none; }
/* the contact line shares the frame with the logo arc above it: a step smaller, and smaller still on short screens */
@media (min-width: 721px) { .st--contact { gap: 14px; } #contact-title { font-size: clamp(30px, 3.4vw, 64px); } }
@media (min-width: 721px) and (max-height: 780px) { .disp, #contact-title { font-size: clamp(26px, 3vw, 52px); } }
#contact-title .ice__l { display: block; }
#contact-title .ice__l:last-child { color: var(--c3); }
/* the lead: two short mono HUD lines, not a paragraph */
.hero__lead { margin: 0; display: grid; gap: 4px; color: var(--fg-dim); font-family: var(--mono); font-size: 10.5px; font-weight: 600; font-stretch: 112%; letter-spacing: .12em; text-transform: uppercase; line-height: 1.5; max-width: 62ch; }
:lang(ru) .hero__lead { font-stretch: 125%; }
.hero__lead span { display: block; }
@media (min-width: 1000px) { .hero__lead { max-width: none; } .hero__lead span { white-space: nowrap; } }
.hero__scroll { position: fixed; z-index: 12; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; align-items: center; gap: 12px; color: var(--fg-dim); white-space: nowrap; transition: opacity .4s var(--ease); }
body.s-past-hero .hero__scroll { opacity: 0; }
.hero__scroll .line { width: 44px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll .line::after { content: ""; position: absolute; inset: 0; background: var(--fg); transform: translateX(-100%); animation: sweep 2.4s var(--ease) infinite; }
@keyframes sweep { to { transform: translateX(100%); } }
@media (max-width: 720px) { .hero__scroll { display: none; } }

/* the ice edge (fx.js): the clip window and the text inside it move by the same amount in opposite directions. The
   overhang padding sits on the inner layer, not on the clip, so both are the same width and the moves cancel exactly */
.ice { display: block; overflow: hidden; margin: -.14em -.4em -.14em -.06em; }
.ice__in { display: block; padding: .14em .4em .14em .06em; }
.ice__edge { position: absolute; top: -.14em; bottom: -.14em; left: -.06em; right: -.4em; pointer-events: none; opacity: 0; }
.ice__edge::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 1px; background: #f2f7fc; transform: skewX(-14deg); box-shadow: 0 0 9px rgba(143, 189, 232, .55), 0 0 2px rgba(242, 247, 252, .9); }
.contact .ice__edge::after { background: var(--c4); box-shadow: 0 0 9px rgba(61, 127, 224, .45), 0 0 2px rgba(29, 79, 156, .8); }
.ice-wait .ice { visibility: hidden; }

/* contact: the email as one HUD line, the links as micro labels (each brings its ice logo forward) */
.email { background: none; border: 0; padding: 4px 0; cursor: pointer; display: inline-flex; align-items: baseline; gap: 14px; color: var(--fg); }
#email-text { font-size: 15px; font-weight: 700; letter-spacing: .02em; text-transform: none; border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: border-color .25s; }
.email:hover #email-text, .email:focus-visible #email-text { border-color: var(--fg); }
.email__hint { color: var(--fg-dim); }
.contact__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.contact__links a { text-decoration: none; position: relative; padding-bottom: 3px; }
.contact__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(.25); transform-origin: left; }
.contact__links a:hover::after, .contact__links a:focus-visible::after, .contact__links a.is-hot::after { transform: scaleX(1); }

/* footer: one thin line at the very end */
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); color: var(--fg-dim); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--fg); }

/* services: the process as a thin timeline, four ticks advanced by the crystal's growth state */
.tl { left: 50%; bottom: calc(30px + env(safe-area-inset-bottom, 0px)); width: min(560px, 42vw); height: 30px; transform: translateX(-50%); color: var(--fg-dim); }
.tl::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.tl__fill { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: left; will-change: transform; }
.tl__s { position: absolute; top: 0; padding-top: 11px; transform: translateX(-50%); white-space: nowrap; }
.tl__s::before { content: ""; position: absolute; left: 50%; top: -3px; width: 1px; height: 7px; background: currentColor; }
.tl__s.is-on { color: var(--fg); }
.tl__s.is-on::before { width: 3px; margin-left: -1px; }

/* ---------- HUD labels pinned to the world (main.js): cut in hard, moved by transform only ---------- */
.hudl { position: fixed; inset: 0; z-index: 20; pointer-events: none; color: var(--fg); }
.hl { position: absolute; left: 0; top: 0; visibility: hidden; }
.hl.is-on { visibility: visible; }
.seg, .ret { position: absolute; left: 0; top: 0; visibility: hidden; pointer-events: none; will-change: transform; }
.seg { width: 1px; height: 1px; background: currentColor; transform-origin: 0 50%; }
.ret { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border: 1px solid currentColor; border-radius: 50%; }
.seg.is-on, .ret.is-on { visibility: visible; }
.hudl .is-ice { color: #06101f; } /* under the rising ice front */
/* a soft halo of the field behind keeps a label legible where it crosses glass (rastered once: the labels move as layers) */
.hudl .hl { text-shadow: 0 0 12px rgba(2, 6, 16, .6); }
.hudl .hl.is-ice, .hudl .fct, .hudl .lgl { text-shadow: 0 0 12px rgba(242, 247, 252, .75); }
.hl__k { margin: 0; opacity: .72; }
/* manifesto: one statement at a time, pinned to the blade that is catching the light */
.stmt { left: var(--gutter); width: max-content; max-width: min(34vw, 560px); display: grid; gap: 12px; padding-top: 12px; border-top: 1px solid currentColor; will-change: transform; }
.stmt__t { position: relative; margin: 0; font-family: var(--display); font-weight: 700; font-stretch: 112%; font-size: clamp(22px, 2vw, 36px); line-height: 1.1; letter-spacing: -.015em; text-wrap: balance; }
:lang(ru) .stmt__t { font-stretch: 140%; font-weight: 800; }
.dive { left: 50%; top: auto; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; gap: 14px; }
/* index field: the nearest shards carry their archive row */
.shl { display: grid; gap: 3px; width: max-content; max-width: 260px; padding-bottom: 7px; border-bottom: 1px solid currentColor; color: inherit; text-decoration: none; will-change: transform; }
.shl.is-act { pointer-events: auto; cursor: pointer; }
.shl__t { font-family: var(--small); font-weight: 700; font-size: 14px; line-height: 1.2; }
.shl.is-act .shl__t::after { content: " ↗"; font-size: .85em; }
.shl.is-act:hover .shl__t { text-decoration: underline; text-underline-offset: 3px; }
/* services: the facing facet's service */
.fct { width: max-content; max-width: min(360px, 30vw); display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid currentColor; will-change: transform; }
.fct__n { font-family: var(--display); font-weight: 800; font-stretch: 125%; font-size: clamp(24px, 2.3vw, 40px); line-height: 1; letter-spacing: -.02em; }
:lang(ru) .fct__n { font-stretch: 151%; font-weight: 900; }
.fct__t { font-size: 14px; line-height: 1.45; opacity: .8; }
/* contact: each ice logo carries its handle */
.lgl { display: grid; gap: 2px; width: max-content; padding-bottom: 6px; border-bottom: 1px solid currentColor; color: inherit; text-decoration: none; opacity: .7; pointer-events: auto; will-change: transform; }
.lgl.is-hot { opacity: 1; }
.lgl__h { font-family: var(--small); font-weight: 700; font-size: 14px; line-height: 1.2; }

/* ---------- index panel: the archive and awards as one HUD terminal list ---------- */
.ix { position: fixed; inset: 0; z-index: 75; color: #e6eef8; --fg: #e6eef8; --fg-dim: rgba(230, 238, 248, .58); --line: rgba(230, 238, 248, .14); }
.ix[hidden] { display: none; }
.ix__panel { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; outline: none; background: rgba(3, 8, 19, .985); padding: 0 var(--gutter) calc(56px + env(safe-area-inset-bottom, 0px)); display: grid; gap: clamp(36px, 6vh, 64px); align-content: start; }
.ix__head { position: sticky; top: 0; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: calc(20px + env(safe-area-inset-top, 0px)) 0 16px; border-bottom: 1px solid var(--fg); background: #030813; }
.ix__name { margin: 0; font: inherit; color: var(--fg); display: flex; gap: 12px; align-items: center; }
.ix__name::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.ix__count { margin: 0; flex: 1; color: var(--fg-dim); }
.ix__close { background: none; border: 1px solid var(--line); color: var(--fg); padding: 9px 14px; border-radius: 2px; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; }
.ix__close:hover { background: var(--fg); color: #020306; }
.ix__h { margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--fg); }
.ix__list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: clamp(32px, 4vw, 72px); border-top: 1px solid var(--line); }
.ix__row { break-inside: avoid; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 3px 14px; align-items: baseline; padding: 11px 0 12px; border-bottom: 1px solid var(--line); }
.ix__n { color: var(--fg-dim); }
.ix__t { margin: 0; font-weight: 700; font-stretch: 112%; font-size: 15px; line-height: 1.3; color: var(--fg); text-decoration: none; text-align: left; }
:lang(ru) .ix__t { font-stretch: 125%; }
button.ix__t { all: unset; font-weight: 700; font-stretch: 112%; font-size: 15px; line-height: 1.3; cursor: pointer; }
.ix__t i { font-style: normal; color: var(--c5); font-size: .85em; }
a.ix__t:hover, button.ix__t:hover { text-decoration: underline; text-underline-offset: 3px; }
button.ix__t:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.ix__m { color: var(--fg-dim); white-space: nowrap; text-align: right; }
.ix__l { grid-column: 2 / -1; margin: 0; color: var(--fg-dim); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.ix__list--aw .ix__t { font-weight: 500; font-stretch: 100%; grid-column: 2 / -1; }
/* the lit edge that draws across and opens the panel (main.js) */
.ix__edge { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: #e8f1fc; box-shadow: 0 0 18px 1px rgba(61, 127, 224, .6), 0 0 2px rgba(207, 227, 247, .8); transform-origin: 0 0; opacity: 0; pointer-events: none; }
body.ix-open { overflow: hidden; }

/* ---------- phones: the HUD docks; one label at a time, as a bottom sheet over the HUD row ---------- */
@media (max-width: 720px) {
  .st--hero, .st--contact { right: var(--gutter); max-width: none; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); gap: 14px; }
  .st--top { top: calc(72px + env(safe-area-inset-top, 0px)); max-width: calc(100vw - 2 * var(--gutter)); }
  .disp { font-size: max(22px, 6vw); }
  .hero__lead { font-size: 12.5px; }
  .stmt, .shl, .fct { left: var(--gutter) !important; right: var(--gutter); top: auto; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); width: auto; max-width: none; transform: none !important; }
  .fct { bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }
  .stmt__t { font-size: 22px; }
  .lgl { display: none; }
  .tl { width: calc(100% - 2 * var(--gutter)); bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .tl__s:not(.is-on) b { visibility: hidden; }
  .ix__list { columns: 1; }
  .ix__row { grid-template-columns: 30px minmax(0, 1fr); }
  .ix__m { grid-column: 2; text-align: left; }
}
@media (min-width: 721px) and (max-width: 1100px) { .ix__list { columns: 1; } }

/* case overlay — always dark glass, independent of the scroll palette */
.case__title { overflow-wrap: normal; word-break: keep-all; hyphens: manual; }
:lang(ru) .case__title { font-stretch: 151%; font-weight: 900; }
.case { position: fixed; inset: 0; z-index: 80; color: #e6eef8; --fg: #e6eef8; --fg-dim: rgba(230, 238, 248, .58); --line: rgba(230, 238, 248, .16); }
.case[hidden] { display: none; }
/* the scrim: a blurred, darkened still of the scene (main.js snapScrim), or a plain dark field without one */
.case__scrim { position: absolute; inset: 0; background: rgba(2, 3, 6, .86); }
.case.has-snap .case__scrim { background: #020306; }
.case__snap { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.case.has-snap .case__snap { display: block; }
/* no box: the scene dims and recedes (the scrim) and the case stands on it as large HUD type; the only frame is the
   lit hairline that opens and closes it (.case__glint) */
.case__panel {
  position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; outline: none;
  padding: clamp(20px, 4vw, 64px) var(--gutter); display: grid; gap: clamp(18px, 2.4vw, 32px); align-content: start;
}
.case__head { background: linear-gradient(#020306 55%, rgba(2, 3, 6, 0)); display: flex; justify-content: space-between; align-items: center; gap: 16px; position: sticky; top: calc(-1 * clamp(20px, 4vw, 64px)); padding-block: 14px 26px; margin-block: -14px -26px; z-index: 2; }
.case__meta { margin: 0; color: var(--fg-dim); }
.case__close { background: none; border: 0; color: var(--fg); padding: 9px 0; cursor: pointer; position: relative; }
.case__close::before { content: "× "; }
.case__close::after { content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 1px; background: currentColor; visibility: hidden; }
.case__close:is(:hover, :focus-visible)::after { visibility: visible; }
.case__title { margin: 0; font-weight: 800; font-stretch: 125%; font-size: clamp(34px, 6vw, 104px); line-height: .92; letter-spacing: -.03em; transform-origin: 0 0; /* the shared element flies in from the card title */ }
.case__tagline { margin: 0; font-weight: 600; font-stretch: 112%; font-size: clamp(20px, 2.2vw, 32px); line-height: 1.2; color: var(--c5); max-width: 32ch; }
.case__body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: start; }
@media (max-width: 860px) { .case__body { grid-template-columns: 1fr; } }
.case__desc { margin: 0; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.65; color: rgba(230, 238, 248, .86); max-width: 62ch; }
.case__side { display: grid; gap: 14px; align-content: start; }
.case__metrics { list-style: none; margin: 0 0 18px; padding: 0; display: grid; border-top: 1px solid var(--line); }
.case__metrics li { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 700; font-stretch: 112%; font-size: 17px; }
.case__metrics li:nth-child(-n+3) { padding: 16px 0 14px; font-family: var(--display); font-weight: 800; font-stretch: 125%; font-size: clamp(24px, 2.2vw, 36px); line-height: 1; letter-spacing: -.015em; }
.case__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.case__links a { font-size: 14px; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 3px; overflow-wrap: anywhere; }
.case__links a:hover { border-color: var(--fg); }
.case__gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 16px); }
.case__gallery figure { margin: 0; overflow: hidden; position: relative; isolation: isolate; }
/* the blue grade is two overlays that fade on hover (opacity only, no animated filter): the image dimmed by half under
   a colour blend that takes its hue and saturation from the cobalt gradient (so no grayscale pass is needed) */
.case__gallery figure::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: #000; opacity: .5; transition: opacity .6s var(--ease); }
.case__gallery figure::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(160deg, #1d4f9c, #0b2148); mix-blend-mode: color; transition: opacity .6s var(--ease); }
.case__gallery figure:first-child { grid-column: 1 / -1; }
.case__gallery img { display: block; width: 100%; height: auto; max-height: 56vh; object-fit: contain; }
.case__gallery figure:hover::before { opacity: .08; }
.case__gallery figure:hover::after { opacity: 0; }
@media (max-width: 640px) { .case__gallery { grid-template-columns: 1fr; } }
.case__next { justify-self: start; background: none; border: 0; border-top: 1px solid var(--line); color: var(--fg); padding: 22px 0 6px; cursor: pointer; text-align: left; width: 100%; font-weight: 800; font-stretch: 125%; font-size: clamp(22px, 3vw, 44px); line-height: 1; }
.case__next small { display: block; font-size: 10.5px; font-weight: 600; font-stretch: 112%; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 10px; }
.case__next:hover { color: var(--c5); }
body.case-open { overflow: hidden; }
/* the lit edge of the glass while it grows or closes (main.js animates its box); at rest it is gone */
.case__glint { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; pointer-events: none; border: 1px solid rgba(232, 241, 252, .92); box-shadow: 0 0 2px rgba(207, 227, 247, .8); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .top, .hud, main, .footer { transition-duration: .6s !important; }
}
