/* ============================================================
   URBI - built on the colab-co.com structure, rebranded.
   Black & white brutalist editorial · giant condensed display.
   Accent: URBI navy #15275E (lifted to #5471D4 on dark backgrounds).
   Display: Alumni Sans (Tusker-like) · Body: Libre Franklin
   Accent italic: CSTM Xprmntl 02 (from the reference)
   ============================================================ */

@font-face {
  font-family: "CSTM Xprmntl";
  src: url("assets/fonts/cstm-italic.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
/* Self-hosted so the display face is never missing: in the Arial fallback the
   headline measured 1194px against 1163 available and broke the two-line mask. */
@font-face {
  font-family: "Alumni Sans";
  src: url("assets/fonts/alumni-900-cyr.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Alumni Sans";
  src: url("assets/fonts/alumni-900-lat.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC,
                 U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Libre Franklin";
  src: url("assets/fonts/franklin-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Libre Franklin";
  src: url("assets/fonts/franklin-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Libre Franklin";
  src: url("assets/fonts/franklin-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-900.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
}

:root {
  --ink:    #0C0C0C;   /* neutral near-black (no blue cast) */
  --ink-2:  #171717;   /* menu / dark panels */
  --paper:  #ffffff;
  --grey:   #8C8C8C;
  --grey-2: #C9C9C9;
  --line:   #262626;
  --accent:      #15275E;  /* brand navy - primary, crisp on light backgrounds */
  --accent-lift: #5471D4;  /* navy lifted for DARK backgrounds, where #15275E
                              vanishes (thin rules/links: 4.4:1 vs 1.6:1) */
  --accent-d:    #0E1B45;  /* darker navy */
  --navy-rgb: 16, 30, 71;  /* dark SURFACES (were black) - one knob, tune here */
  --navy-deep: #101E47;    /* == rgb(var(--navy-rgb)); text/ink stays --ink */
  --sand:   #C99A67;   /* warm sand - contact form panel */
  --sand-2: #BB8A55;   /* field fill on the sand panel */
  --sand-ink:#1C140A;  /* dark brown text on sand */

  --disp: "Alumni Sans", "Arial Narrow", system-ui, sans-serif;
  --body: "Libre Franklin", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ital: "CSTM Xprmntl", "Libre Franklin", serif;
  --brand: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gut: clamp(18px, 4vw, 60px);
  --ease: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding-inline: var(--gut); }
/* In-page anchors clear the fixed header instead of landing under it. */
#story, #how, #work, #cases, #team, #contact { scroll-margin-top: 70px; }
/* No grey flash when tapping controls on touch. */
a, button, input, textarea, select, label { -webkit-tap-highlight-color: transparent; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { left: 0; }

/* giant display headings (Tusker → Alumni Sans) */
.display, .heading, .slide__cap, .sidenav__links a, .brand, .stat b {
  font-family: var(--disp); font-weight: 900; text-transform: uppercase;
  letter-spacing: .005em; line-height: .86;
}
.heading { font-family: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: -.015em; line-height: 1.04; font-size: clamp(36px, 5vw, 72px); color: var(--ink); }

/* ============ TOP BAR ============ */
/* Solid bar, not difference blending. The blend let white text invert against
   any backdrop, but it also inverts anything placed behind that text - a plate
   would flip to light over the white sections and swallow the nav. With an
   opaque bar the contrast is fixed everywhere, and the old constraint that
   nothing on .hero may create a stacking context goes away with it. */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 120;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gut);
  background: rgba(var(--navy-rgb), .92);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  /* No backdrop-filter: a blurred backdrop on a fixed strip re-blurs the hero
     canvas on every scrub frame - the stutter recipe from the perf notes. */
}
.brand { display: inline-flex; flex-direction: column; align-items: stretch; font-family: var(--brand); font-weight: 700; font-size: 23px; letter-spacing: .02em; color: #fff; line-height: 1; }
.brand::after { content: ""; height: .14em; background: currentColor; margin-top: .22em; }
.topbar__right { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); }
/* Sits inside the difference-blended topbar, so plain white inverts on its own. */
.lang { display: flex; align-items: center; gap: 2px; }
.lang a {
  font-family: var(--brand); font-weight: 600; font-size: 11.5px; letter-spacing: .08em;
  color: #fff; opacity: .45; padding: 6px 7px; transition: opacity .2s var(--ease);
}
.lang a:hover { opacity: .8; }
.lang a[aria-current="page"] { opacity: 1; }
.lang a[aria-current="page"]::after {
  content: ""; display: block; height: 1.5px; background: currentColor; margin-top: 3px;
}
.lang a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.menu-btn {
  font-family: var(--body); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: none; border: 0; cursor: pointer; padding: 6px 0;
}
.menu-btn::before { content: ""; display: inline-block; width: 22px; height: 2px; background: #fff; vertical-align: middle; margin-right: 10px; }

/* ============ SIDE NAV ============ */
/* Inline nav lives inside the difference-blended topbar, so plain white
   inverts against whatever scrolls under it, exactly like the brand. */
.mainnav { display: none; }
@media (min-width: 1100px) {
  /* Centred on the viewport, not on what is left between brand and controls -
     with auto margins it would drift every time either side changed width. */
  .mainnav {
    display: flex; align-items: center; gap: clamp(18px, 2.2vw, 38px);
    position: absolute; left: 50%; transform: translateX(-50%);
  }
  .mainnav a {
    font-family: var(--brand); font-weight: 600; font-size: 12px;
    letter-spacing: .14em; text-transform: uppercase; color: #fff;
    padding: 6px 0; position: relative;
  }
  .mainnav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
    background: currentColor; transform: scaleX(0); transform-origin: left;
    transition: transform .3s var(--ease);
  }
  .mainnav a:hover::after, .mainnav a:focus-visible::after { transform: scaleX(1); }
  .topbar__right .menu-btn { display: none; }   /* nothing left to open */
}

/* A panel, not a takeover: seven links never needed the whole viewport. */
.sidenav {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 200; background: var(--navy-deep);
  width: min(340px, 86vw);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(64px, 12vw, 84px) clamp(26px, 6vw, 38px) 32px;
  transform: translateX(100%); visibility: hidden;
  transition: transform .5s cubic-bezier(.33,.1,.25,1), visibility 0s .5s;
}
.sidenav.is-open { transform: none; visibility: visible; transition: transform .5s cubic-bezier(.33,.1,.25,1), visibility 0s 0s; }
.sidenav__close {
  position: absolute; top: 16px; right: clamp(20px, 5vw, 30px);
  font-family: var(--disp); font-weight: 900; font-size: 40px; line-height: 1;
  color: #fff; background: none; border: 0; cursor: pointer; transition: color .2s;
}
.sidenav__close:hover { color: var(--accent-lift); }
.sidenav__links { display: flex; flex-direction: column; gap: 2px; }
/* Sized for a 340px panel: at 44-84px the words ran off the edge. */
.sidenav__links a {
  font-family: var(--brand); font-weight: 600; text-transform: uppercase;
  font-size: clamp(17px, 4.4vw, 21px); letter-spacing: -.005em;
  color: #fff; line-height: 1.45; width: max-content;
  opacity: 0; transform: translateY(10px);
  transition: opacity .45s cubic-bezier(.33,.1,.25,1), transform .45s cubic-bezier(.33,.1,.25,1), color .2s var(--ease);
}
.sidenav.is-open .sidenav__links a { opacity: 1; transform: none; }
.sidenav.is-open .sidenav__links a:nth-child(1) { transition-delay: .10s, .10s, 0s; }
.sidenav.is-open .sidenav__links a:nth-child(2) { transition-delay: .15s, .15s, 0s; }
.sidenav.is-open .sidenav__links a:nth-child(3) { transition-delay: .20s, .20s, 0s; }
.sidenav.is-open .sidenav__links a:nth-child(4) { transition-delay: .25s, .25s, 0s; }
.sidenav.is-open .sidenav__links a:nth-child(5) { transition-delay: .30s, .30s, 0s; }
.sidenav.is-open .sidenav__links a:nth-child(6) { transition-delay: .35s, .35s, 0s; }
.sidenav__links a:hover { color: var(--accent-lift); }
.sidenav__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; }
.sidenav__foot p { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }
.sidenav__foot ul { display: flex; gap: 22px; }
.sidenav__foot a { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-2); }
.sidenav__foot a:hover { color: var(--accent-lift); }
.scrim {
  position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; transition: opacity .5s cubic-bezier(.33,.1,.25,1), visibility 0s .5s;
}
.sidenav.is-open ~ .scrim { opacity: 1; visibility: visible; transition: opacity .5s cubic-bezier(.33,.1,.25,1), visibility 0s 0s; }

/* ============ HERO - scroll-scrubbed video ============
   .hero-scroll is the travel; .hero sticks inside it. How far .hero-scroll has
   moved past the top IS the video position and the state of the copy - there is
   no timer anywhere in this block, scrolling is the only clock.            */
.hero-scroll { position: relative; height: 260svh; }
.hero {
  position: sticky; top: 0; height: 100svh; min-height: 480px;
  background: var(--ink); overflow: hidden;
  --p: 0;                            /* scroll progress 0..1, written by script.js */
  --band: clamp(58px, 8svh, 74px);   /* dead zone under the topbar */
}
.hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0;
  /* Frame 1 itself as the poster: same picture the canvas paints, half the
     bytes of the old JPEG, and one fewer unique resource on the LCP path. */
  background: url("assets/frames/f001.webp") center / cover no-repeat, var(--ink);
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  /* Pure black darkening - the hero footage stays on black. The blue lives in
     the plate and the other sections, not in the footage itself. */
  background:
    radial-gradient(122% 92% at 50% 50%, rgba(12,12,12,.62) 0, rgba(12,12,12,.38) 52%, rgba(12,12,12,.12) 82%),
    linear-gradient(180deg, rgba(12,12,12,.52) 0, rgba(12,12,12,.1) 32%, rgba(12,12,12,.1) 60%, rgba(12,12,12,.72) 100%);
}

/* Centred column. Everything is optically centred on one axis, so the copy has
   to stay narrow - a wide centred paragraph is unreadable. */
.hero__stage {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: calc(var(--band) + 10px) var(--gut) clamp(78px, 12svh, 116px);
  /* Exit starts at .69 - the break in the light, where the town lights up -
     rather than on a reading timer at .62, which fell on a flat stretch. */
  transform: translate3d(0, calc(clamp(0, (var(--p) - .69) / .31, 1) * -42px), 0);
}
/* The wordmark and the triad do NOT fade: they stand at full strength over the
   finished, lit territory. Only the supporting lines step back. */
.hero__eyebrow, .hero__panel, .hero__actions {
  opacity: calc(1 - clamp(0, (var(--p) - .69) / .09, 1));
}
/* Faded CTAs must leave the tab order too, or focus lands on an invisible
   control with an invisible ring (WCAG 2.4.7). */
.hero__stage.is-gone .hero__actions { visibility: hidden; }

.hero__eyebrow {
  font-family: var(--brand); font-size: clamp(10px, .82vw, 12px); font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: #C6C6CA;
  margin-bottom: clamp(16px, 3svh, 30px); line-height: 1.5;
  animation: hRise .42s var(--ease) .06s backwards;
}
.hero__eyebrow b { color: #fff; font-weight: 600; white-space: nowrap; }

/* The wordmark, same construction as .brand in the topbar (Geist 700 + a rule
   under it) so the centre of the block and the header speak one hand. */
.hero__mark {
  align-self: center;
  display: inline-flex; flex-direction: column; align-items: stretch;
  font-family: var(--brand); font-weight: 700; text-transform: uppercase;
  font-size: clamp(58px, min(12.4vw, 19svh), 210px);
  line-height: 1; letter-spacing: .02em; color: #fff;
}
.hero__mark::after {
  content: ""; display: block; height: .13em; background: currentColor;
  margin-top: .2em;
  transform: scaleX(1); transform-origin: center;
  animation: hRule .7s var(--ease) .34s backwards;
}
/* Masked line. padding .14em clears descenders that the mask would otherwise
   clip; the rule sits outside the mask so it is never cut. */
.hero__mark .ln {
  --pad: .14em;
  display: block; overflow: hidden;
  padding-block: var(--pad); margin-block: calc(var(--pad) * -1);
}
.hero__mark .ln > span { display: block; animation: hLine .78s var(--ease) .14s backwards; }

.hero__triad {
  font-family: var(--brand); font-weight: 600;
  font-size: clamp(10.5px, 1.02vw, 15px);
  letter-spacing: .3em; text-transform: uppercase; color: #fff;
  margin-top: clamp(18px, 3svh, 32px);
  animation: hRise .5s var(--ease) .42s backwards;
}
/* Deliverables line: what URBI hands over. A muted spec line between the
   disciplines (triad) and the differentiator (lead), not a third headline. */
/* Deliverables + differentiator sit on a plate: the footage brightens to
   near-white in its middle frames right where this copy is, so a dark panel
   guarantees legibility whatever frame is behind it. Sized to content by the
   column flex parent (align-items:center), so it hugs the text. */
.hero__panel {
  text-align: center;
  margin: clamp(16px, 3svh, 26px) auto 0;
  padding: clamp(13px, 2.2svh, 20px) clamp(20px, 2.6vw, 36px);
  background: rgba(var(--navy-rgb), .62);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  animation: hRise .5s var(--ease) .46s backwards;
}
.hero__scope {
  font-family: var(--brand); font-weight: 500;
  font-size: clamp(11px, .92vw, 13.5px); line-height: 1.55;
  letter-spacing: .01em; color: #D6D6D9;
  max-width: 44ch; margin: 0 auto;
}
/* Eyebrow, triad and the mark still float over raw footage - a soft shadow
   keeps them legible on the bright frames without a plate. */
.hero__eyebrow, .hero__triad {
  text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 1px 18px rgba(0,0,0,.45);
}
.hero__mark { text-shadow: 0 2px 34px rgba(0,0,0,.4); }
.hero__lead {
  font-family: var(--brand); font-size: clamp(13px, 1.08vw, 16px);
  line-height: 1.6; color: #D2D2D6; max-width: 38ch;
  margin: clamp(16px, 3svh, 28px) auto 0;
  animation: hRise .52s var(--ease) .48s backwards;
}
.hero__actions {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(14px, 1.6vw, 26px); flex-wrap: wrap;
  margin-top: clamp(18px, 3.4svh, 32px);
  animation: hRise .5s var(--ease) .6s backwards;
}
.hero__btn, .hero__link {
  font-family: var(--brand); font-size: clamp(10.5px, .84vw, 12px); font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase; text-decoration: none;
}
.hero__btn {
  color: #fff; border: 1.5px solid rgba(255,255,255,.3); padding: 11px 22px;
  transition: background .28s var(--ease), color .28s var(--ease), border-color .28s var(--ease);
}
.hero__btn:hover, .hero__btn:focus-visible { background: #fff; color: var(--ink); border-color: #fff; }
/* --grey (#8C8C8C) measured 4.10-4.43:1 over the frames - under AA at this size.
   --grey-2 clears it on every one of the 87. The brand navy would disappear on
   the dark hero, so the rule under the link uses --accent-lift (~4.4:1). */
.hero__link { color: var(--grey-2); border-bottom: 1px solid var(--accent-lift); padding-bottom: 2px; transition: color .28s var(--ease), border-color .28s var(--ease); }
.hero__link:hover, .hero__link:focus-visible { color: #fff; border-bottom-color: #fff; }

@keyframes hRise { from { opacity: 0; transform: translateY(8px); } }
@keyframes hFade { from { opacity: 0; } }
@keyframes hLine { from { transform: translateY(calc(100% + var(--pad) * 2)); } }
/* The rule draws itself out from the centre after the wordmark has landed. */
@keyframes hRule { from { transform: scaleX(0); } }

/* Scroll position, shown honestly: the bar is the same number that drives the
   frame, so it can never disagree with what is on screen. */
/* Edge to edge, not a centred crumb: the bottom of the screen was empty and the
   process is the strongest thing this company can show over this footage. */
.hero__foot {
  position: absolute; left: var(--gut); right: var(--gut);
  bottom: clamp(22px, 3.6svh, 40px); z-index: 4;
}
/* One solid bar, five segments - opaque, not a wash over the footage. */
.hero__steps {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0; list-style: none; margin: 0; padding: 0;
  background: var(--navy-deep); border: 1px solid rgba(255,255,255,.1);
  animation: hFade .4s var(--ease) .5s backwards;
}
.hero__steps li { min-width: 0; }
.hero__steps li + li { border-left: 1px solid rgba(255,255,255,.1); }
.hero__steps button {
  position: relative; display: flex; align-items: baseline; gap: 8px;
  width: 100%; min-width: 0; border: 0; background: none;
  padding: clamp(12px, 1.5svh, 17px) clamp(10px, 1vw, 18px);
  text-align: left; cursor: pointer; font-family: var(--brand); font-weight: 600;
  color: #8E8E93;
  transition: color .35s var(--ease), background-color .35s var(--ease);
}
.hero__steps li.is-done button { color: #9A9A9E; }
.hero__steps li.is-on button { background: #fff; color: var(--ink); }
.hero__steps button:hover { color: #fff; }
.hero__steps li.is-on button:hover { color: var(--ink); }
.hero__steps button:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
/* On the white plate a white ring would vanish - invert it. */
.hero__steps li.is-on button:focus-visible { outline-color: var(--ink); }
/* Position inside the running stage, along the foot of the lit plate. */
.hero__steps button::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--accent-lift); opacity: 0;
  transform: scaleX(var(--f, 0)); transform-origin: left center;
  transition: transform .18s linear;
}
.hero__steps li.is-on button::after { opacity: 1; }
.hero__steps .num {
  font-size: clamp(9px, .72vw, 10.5px); letter-spacing: .12em;
  font-variant-numeric: tabular-nums; flex: none;
}
.hero__steps .nm {
  font-size: clamp(9.5px, .78vw, 11.5px); letter-spacing: .1em;
  text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero__btn:focus-visible, .hero__link:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* Visually hidden, still read by screen readers. */
.vh {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============ STORY (about, two-column with read-more) ============ */
.story { background: var(--paper); padding: clamp(70px, 10vw, 150px) 0; }
.story__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 56px);
  align-items: stretch; position: relative;
}
.story__grid::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: #E9E9EC; }
.story__left { display: flex; flex-direction: column; margin-left: 2cm; }
.story__name {
  align-self: flex-start;
  font-family: var(--brand); font-weight: 700; text-transform: uppercase;
  font-size: clamp(46px, 6vw, 88px); line-height: 1; letter-spacing: .01em; color: var(--ink);
}
.story__sub { font-family: var(--body); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #6E6E72; margin-top: clamp(26px, 3vw, 42px); }
.story__btn {
  align-self: flex-start; margin-top: clamp(48px, 12vw, 200px);
  font-family: var(--body); font-weight: 600; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); border: 1.5px solid var(--ink); padding: 19px 44px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.story__btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.story__right { display: flex; flex-direction: column; align-items: flex-start; }
.story__title { font-family: var(--body); font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); margin-bottom: 26px; max-width: 30ch; }
.story__copy p { font-family: var(--body); font-size: 15.5px; line-height: 1.78; color: #55555A; margin-bottom: 18px; max-width: 46ch; }
.story__more { overflow: hidden; max-height: 0; opacity: 0; transition: max-height .55s cubic-bezier(.33,.1,.25,1), opacity .5s var(--ease); }
.story__more p:last-child { margin-bottom: 0; }
.story__more.is-open { opacity: 1; }
.story__readmore { font-family: var(--body); font-weight: 600; font-size: 15px; color: var(--accent); background: none; border: 0; cursor: pointer; padding: 12px 0 0; margin-top: 6px; transition: opacity .2s; }
.story__readmore:hover { opacity: .65; }

/* ============ HOW WE WORK (dark, pinned big-number stepper) ============ */
.how {
  color: #fff;
  background-color: var(--navy-deep);
  position: relative;
  overflow: hidden;
}
.how::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 64%;
  height: 84%;
  background: url('assets/img/how-bg.jpg') right bottom / contain no-repeat;
  -webkit-mask-image: radial-gradient(120% 130% at 100% 100%, #000 32%, transparent 78%);
          mask-image: radial-gradient(120% 130% at 100% 100%, #000 32%, transparent 78%);
  opacity: .85;
  pointer-events: none;
}
.how__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 56px); align-items: center; min-height: 100vh; padding-block: clamp(60px, 8vw, 100px); position: relative; }
.how__grid::before { content: ""; position: absolute; left: 50%; top: 16%; bottom: 16%; width: 1px; background: rgba(255,255,255,.16); }
.how__intro { display: flex; flex-direction: column; align-items: flex-start; text-align: left; margin-left: 2cm; }
.how__eyebrow { font-family: var(--body); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #8C8C90; margin-bottom: clamp(18px, 2.4vw, 28px); }
.how__h { font-family: var(--brand); font-weight: 700; text-transform: uppercase; font-size: clamp(38px, 5vw, 72px); line-height: 1.0; letter-spacing: -.02em; color: #fff; }
.how__sub { font-family: var(--body); font-size: 16px; line-height: 1.65; color: #A6A6AA; max-width: 38ch; margin: clamp(22px, 3vw, 34px) 0 clamp(28px, 3.4vw, 42px); }
.how__cta { display: inline-flex; align-items: center; gap: 10px; font-family: var(--body); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #fff; border: 1.5px solid rgba(255,255,255,.26); border-radius: 0; padding: 15px 30px; transition: background .25s var(--ease), border-color .25s var(--ease); }
.how__cta:hover { background: var(--accent); border-color: var(--accent); }
.how__cta span { transition: transform .25s var(--ease); }
.how__cta:hover span { transform: translate(2px, -2px); }
.how__stage { position: relative; }
/* vertical "reel": active number sits in the window, others wait above/below */
/* Five plates. The numeral is DRAWN before it is BUILT: a closed stage shows as
   an outline, the open one fills solid - the section's own subject carried by
   the transition rather than by movement. */
.hsteps { list-style: none; margin: 0; padding: 0; }
.hstep { border-top: 1px solid rgba(255,255,255,.14); }
.hstep:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.hstep h3 { margin: 0; font-size: inherit; font-weight: inherit; }
.hstep__head {
  position: relative; display: flex; align-items: baseline;
  gap: clamp(14px, 1.8vw, 28px); width: 100%;
  padding: clamp(16px, 2.2vw, 26px) 0;
  border: 0; background: none; text-align: left; cursor: pointer;
  font-family: inherit;
}
.hstep__head:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hstep__num {
  flex: none; font-family: var(--brand); font-weight: 700;
  font-size: clamp(38px, 4.6vw, 68px); line-height: .82; letter-spacing: -.03em;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(255,255,255,.45);
  transition: color .55s var(--ease);
}
.hstep.is-open .hstep__num { color: #fff; }
.hstep__name {
  flex: 1 1 auto; min-width: 0;
  font-family: var(--brand); font-weight: 600; font-size: clamp(19px, 2vw, 28px);
  line-height: 1.2; letter-spacing: -.01em; color: #8C8C90;
  transition: color .35s var(--ease);
}
.hstep.is-open .hstep__name, .hstep__head:hover .hstep__name { color: #fff; }
/* Plus that becomes a minus - the only affordance saying the plate opens. */
.hstep__sign { position: relative; flex: none; width: 16px; height: 16px; align-self: center; }
.hstep__sign::before, .hstep__sign::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: #fff;
  transform: translate(-50%, -50%); transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.hstep__sign::before { width: 16px; height: 1.5px; }
.hstep__sign::after { width: 1.5px; height: 16px; }
.hstep.is-open .hstep__sign::after { transform: translate(-50%, -50%) scaleY(0); opacity: 0; }

.hstep__panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}
.hstep.is-open .hstep__panel { grid-template-rows: 1fr; }
.hstep__panel > * { overflow: hidden; min-height: 0; }
.hstep__line {
  font-family: var(--brand); font-size: clamp(15px, 1.4vw, 19px); line-height: 1.55;
  color: #8C8C90; max-width: 42ch;
  margin: 0; padding: 0 0 0 calc(clamp(38px, 4.6vw, 68px) + clamp(14px, 1.8vw, 28px));
  opacity: 0; transition: opacity .35s var(--ease);
}
/* Bottom spacing as CONTENT, not padding: padding survives a 0fr track, so the
   closed plate kept a 30px sliver showing. overflow:hidden clips this away. */
.hstep__line::after { content: ""; display: block; height: clamp(18px, 2.4vw, 30px); }
.hstep.is-open .hstep__line { opacity: 1; transition-delay: .12s; }
/* Without JS every plate is open, so the copy is never trapped behind a click. */
html:not(.js) .hstep__panel { grid-template-rows: 1fr; }
html:not(.js) .hstep__line { opacity: 1; }
html:not(.js) .hstep__sign { display: none; }
@keyframes shift { to { transform: translateX(-50%); } }

/* ============ DIRECTIONS (Pattersons-style grid, b&w -> colour) ============ */
.dirs { padding: clamp(64px, 7vw, 100px) 0 clamp(56px, 6vw, 88px); background: var(--paper); }
.dirs__head { margin-bottom: clamp(28px, 3.4vw, 44px); }
.dirs__eyebrow { font-family: var(--body); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #9A9A9E; margin-bottom: clamp(16px, 2vw, 24px); }
/* Full-bleed with gap:0 made the cell width = viewport/4, and aspect-ratio 3/4
   turned that into height: the section measured viewport/3 + 507px, with no
   ceiling - 1142px at 1920, 1649px at 3440. Inside .wrap the width is capped,
   so above ~1750px the section is a constant height on any monitor. */
.dirs__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 1.6vw, 28px); }
.dir { display: block; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
/* 4:5 rather than 1:1 - a square would crop 25% off the three portrait assets
   and cut the stadium and the lake out of URBI's own site plan. */
.dir__img { display: block; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #EDEDED; }
.dir__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .8s var(--ease), transform .8s var(--ease); }
.dir:hover .dir__img img, .dir:focus-visible .dir__img img { filter: grayscale(0); transform: scale(1.04); }
.dir__cap { display: block; margin-top: 16px; padding-inline: 0; }
.dir__cap b { display: block; font-family: var(--brand); font-weight: 600; font-size: clamp(15px, 1.5vw, 20px); color: var(--ink); letter-spacing: -.01em; transition: color .25s var(--ease); }
.dir:hover .dir__cap b, .dir:focus-visible .dir__cap b { color: var(--accent); }
.dir__cap i { display: block; font-style: normal; font-family: var(--body); font-size: 13px; color: #8A8A8E; margin-top: 5px; }

/* ============ DIRECTION MODAL (ZROBIM-style detail) ============ */
/* visibility flips instantly on open (so the dialog can take focus in the same
   tick) and is held back .6s on close (so the fade-out is still seen). */
.dmodal { position: fixed; inset: 0; z-index: 300; display: grid; grid-template-columns: 56% 44%; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s linear .6s; }
.dmodal.is-open { opacity: 1; visibility: visible; transition: opacity .6s var(--ease), visibility 0s linear 0s; }
.dmodal__media { position: relative; overflow: hidden; background: var(--navy-deep); cursor: pointer; border: 0; padding: 0; display: block; width: 100%; font-family: inherit; }
.dmodal__media:focus-visible { outline: 3px solid var(--accent-lift); outline-offset: -3px; }
.dmodal__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.09); transition: transform 1.3s var(--ease); }
.dmodal.is-open .dmodal__media img { transform: scale(1); }
.dmodal__back { position: absolute; left: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 40px); z-index: 1; font-family: var(--body); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #fff; padding: 13px 22px; background: rgba(var(--navy-rgb),.5); backdrop-filter: blur(6px); transition: background .25s var(--ease); }
.dmodal__media:hover .dmodal__back { background: var(--accent); }
.dmodal__panel { background: var(--navy-deep); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 6vw, 100px); }
.dmodal__panel > * { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.dmodal.is-open .dmodal__panel > * { opacity: 1; transform: none; }
.dmodal.is-open .dmodal__title { transition-delay: .14s; }
.dmodal.is-open .dmodal__rule { transition-delay: .2s; }
.dmodal.is-open .dmodal__desc { transition-delay: .26s; }
.dmodal.is-open .dmodal__btn { transition-delay: .32s; }
.dmodal__title { font-family: var(--brand); font-weight: 400; text-transform: uppercase; font-size: clamp(28px, 3vw, 46px); line-height: 1.06; letter-spacing: -.01em; color: #fff; }
.dmodal__title b { font-weight: 700; }
.dmodal__rule { display: block; width: 84px; height: 4px; background: var(--accent-lift); margin: clamp(20px, 2.5vw, 30px) 0 clamp(26px, 3vw, 38px); }
.dmodal__desc p { font-family: var(--body); font-size: 15.5px; line-height: 1.75; color: #A6A6AA; margin-bottom: 18px; max-width: 44ch; }
.dmodal__desc p:last-child { margin-bottom: 0; }
.dmodal__btn { align-self: flex-start; margin-top: clamp(20px, 2.6vw, 32px); font-family: var(--body); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #fff; border: 1.5px solid rgba(255,255,255,.4); padding: 18px 44px; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), opacity .6s var(--ease), transform .6s var(--ease); }
.dmodal__btn:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ============ CASES - registry of sheets ============
   Set in --brand throughout: Libre Franklin ships zero Cyrillic glyphs
   (checked with fontTools: 0/64), so Russian in var(--body) falls back to a
   system face whose widths differ per platform - fatal for a column layout. */
.sheets { background: var(--paper); padding: clamp(64px, 7vw, 100px) 0 calc(2cm + clamp(56px, 6vw, 88px)); }
.sheets[hidden], .sheet[hidden] { display: none !important; }
.sheets__head { margin-bottom: clamp(28px, 3.4vw, 44px); }
.sheets__eyebrow {
  font-family: var(--brand); font-size: 12px; font-weight: 600; line-height: 1.5;
  letter-spacing: .16em; text-transform: uppercase; color: #6E6E72;
  margin-bottom: clamp(16px, 2vw, 24px);
}
.sheets { --cols: 46px minmax(0, 1fr) 200px 160px 56px 26px; }
.sheets__hd, .sheet__row {
  display: grid; grid-template-columns: var(--cols);
  gap: clamp(12px, 1.4vw, 24px); align-items: start;
}
.sheets__hd {
  font-family: var(--brand); font-weight: 600; font-size: 11px; line-height: 1;
  letter-spacing: .16em; text-transform: uppercase; color: #6E6E72;
  padding-bottom: 12px; border-bottom: 1px solid #E9E9EC;
}
.sheet__row {
  width: 100%; border: 0; border-top: 1px solid #E9E9EC; background: none;
  padding: 18px 0; text-align: left; cursor: pointer; font-family: inherit;
  transition: background-color .2s var(--ease);
}
.sheets__list { list-style: none; margin: 0; padding: 0; }
.sheets__list li:first-child .sheet__row { border-top: 0; }
.sheet__row > * { min-height: 38px; }
.sheet__row:hover { background: #F5F5F5; }
.sheet__row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.sheet__n { font-family: var(--brand); font-weight: 600; font-size: 13px; color: #9A9A9E; font-variant-numeric: tabular-nums; }
.sheet__t { font-family: var(--brand); font-weight: 600; font-size: 17px; line-height: 1.35; letter-spacing: -.01em; color: var(--ink); }
.sheet__t i { display: block; font-style: normal; font-weight: 500; font-size: 12.5px; color: #6E6E72; margin-top: 4px; letter-spacing: 0; }
/* An award is the strongest verifiable fact in the whole registry - it belongs
   in the table, not only behind a click. Rule, not colour alone (WCAG 1.4.1). */
.sheet__award {
  display: inline-block; font-style: normal; font-family: var(--brand);
  font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); border-bottom: 2px solid var(--accent);
  padding-bottom: 3px; margin-top: 10px;
}
.sheet__by b { display: block; font-family: var(--brand); font-weight: 600; font-size: 12px; line-height: 1.4; letter-spacing: .06em; color: #55555A; }
.sheet__by i { display: block; font-style: normal; font-family: var(--brand); font-weight: 500; font-size: 11.5px; line-height: 1.35; color: #6E6E72; margin-top: 4px; }
/* "own" reads darker AND carries a rule - form, not colour alone (WCAG 1.4.1).
   A static indigo word inside a clickable row would read as a hover state. */
.sheet__row[data-by="own"] .sheet__by b { color: var(--ink); }
.sheet__row[data-by="own"] .sheet__by b::before {
  content: ""; display: inline-block; width: 14px; height: 2px;
  background: var(--accent); vertical-align: .28em; margin-right: 8px;
}
.sheet__d { font-family: var(--brand); font-weight: 600; font-size: 15px; line-height: 1.35; color: var(--ink); }
.sheet__y { font-family: var(--brand); font-weight: 600; font-size: 15px; line-height: 1.35; color: #6E6E72; text-align: right; font-variant-numeric: tabular-nums; }
.sheet__go { font-family: var(--brand); font-size: 15px; color: var(--grey-2); text-align: right; transition: color .2s var(--ease); }
.sheet__row:hover .sheet__go, .sheet__row:focus-visible .sheet__go { color: var(--ink); }
.sheets__note { font-family: var(--brand); font-size: 12.5px; line-height: 1.6; color: #6E6E72; margin-top: 24px; max-width: 62ch; }

@media (max-width: 900px) {
  .sheets__hd { display: none; }
  .sheet__row { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .sheet__n { display: none; }
  .sheet__t { grid-area: 1 / 1; }
  .sheet__go { grid-area: 1 / 2; }
  .sheet__by { grid-area: 2 / 1 / 2 / 3; }   /* authorship right under the name, not trailing */
  .sheet__d { grid-area: 3 / 1; }
  .sheet__y { grid-area: 3 / 2; }
  .sheet__row > * { min-height: 0; }
}

/* ---- Sheet viewer ---- */
.smodal {
  position: fixed; inset: 0; z-index: 300; display: grid;
  grid-template-columns: minmax(0, 1fr) 420px; background: var(--paper);
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility 0s linear .45s;
}
.smodal.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease), visibility 0s linear 0s; }
.smodal__sheet {
  position: relative;
  background: #F1F1F1; display: flex; align-items: center; justify-content: center;
  padding: clamp(24px, 3vw, 48px); min-width: 0; border: 0; cursor: pointer; font-family: inherit;
}
/* The whole plate closes the viewer, but nothing said so - the control was
   invisible. Top-left, where "back" is looked for, and opaque so it holds on
   any frame (the render is bright; the ink label of #dirModal would vanish). */
.smodal__back {
  position: absolute; left: clamp(16px, 2vw, 28px); top: clamp(16px, 2vw, 28px); z-index: 1;
  font-family: var(--brand); font-weight: 600; font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
  background: #fff; border: 1px solid #E0E0E3; padding: 11px 20px;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.smodal__sheet:hover .smodal__back,
.smodal__sheet:focus-visible .smodal__back { background: var(--accent); color: #fff; border-color: var(--accent); }
/* contain, never cover: a crop would cut the title block off the sheet. */
.smodal__sheet img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.smodal__sheet:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.smodal__panel {
  border-left: 1px solid #E9E9EC; padding: clamp(28px, 3vw, 44px);
  overflow-y: auto; display: flex; flex-direction: column; justify-content: center;
}
.smodal__eyebrow { font-family: var(--brand); font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #6E6E72; }
.smodal__title { font-family: var(--brand); font-weight: 700; text-transform: uppercase; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.06; letter-spacing: -.015em; color: var(--ink); margin-top: 12px; }
.smodal__rule { display: block; width: 84px; height: 3px; background: var(--accent); margin: clamp(18px, 2.2vw, 26px) 0; }
.smodal__meta { display: grid; grid-template-columns: 92px 1fr; gap: 10px 16px; margin: 0 0 22px; }
.smodal__meta dt { font-family: var(--brand); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #9A9A9E; }
.smodal__meta dd { font-family: var(--brand); font-size: 14.5px; font-weight: 600; color: var(--ink); margin: 0; }
.smodal__quote { font-family: var(--brand); font-size: 14px; font-weight: 500; line-height: 1.65; color: #55555A; max-width: 44ch; }
.smodal__btn { align-self: flex-start; margin-top: clamp(22px, 2.8vw, 34px); font-family: var(--brand); font-weight: 600; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); border: 1.5px solid var(--ink); padding: 15px 34px; transition: background .25s var(--ease), color .25s var(--ease); }
.smodal__btn:hover { background: var(--accent); color: #fff; }
.smodal__btn:focus-visible, .smodal__sheet:focus-visible { outline-offset: 3px; }

@media (max-width: 900px) {
  .smodal { grid-template-columns: 1fr; grid-template-rows: 44vh 1fr; overflow-y: auto; }
  .smodal__panel { border-left: 0; border-top: 1px solid #E9E9EC; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .smodal { transition: none !important; } }

/* ---- Hero stages: vertical index on the left ----
   The full-width bar at the foot read as browser chrome - a solid strip with a
   white tab looks like a toolbar, not like the site. As a column it reads as a
   chapter index instead, and the foot of the screen is freed.
   Only above 1180px: narrower than that the column meets the centred copy. */
@media (min-width: 1180px) {
  .hero__foot {
    left: var(--gut); right: auto; bottom: auto;
    top: 50%; transform: translateY(-50%);
    width: clamp(196px, 15.5vw, 232px);
  }
  .hero__steps {
    grid-template-columns: 1fr; gap: 2px;
    background: none; border: 0;
  }
  .hero__steps li + li { border-left: 0; }
  .hero__steps button {
    padding: 11px 14px 11px 18px;
    background: rgba(var(--navy-rgb), .82);
  }
  .hero__steps li.is-on button { background: #fff; }
  /* The rail runs down the left edge of each row; the running stage fills it
     top-down, so the column itself is the progress indicator.
     content is declared here because the horizontal bar divides its segments
     with borders and has no ::before at all - without this the track never
     generates and only the fill would show. */
  .hero__steps button::before {
    content: ""; position: absolute;
    left: 0; top: 0; bottom: 0; right: auto; width: 2px; height: auto;
    background: rgba(255, 255, 255, .18);
  }
  .hero__steps button::after {
    left: 0; top: 0; bottom: auto; width: 2px; height: 100%;
    transform: scaleY(var(--f, 0)); transform-origin: center top;
    transition: transform .18s linear;
  }
  /* Passed stages keep a full white rail, the running one fills in indigo. */
  .hero__steps li.is-done button::after {
    opacity: 1; transform: scaleY(1); background: rgba(255, 255, 255, .55);
  }
  .hero__steps li.is-on button::before { background: rgba(var(--navy-rgb), .2); }
}

/* ============ DOCUMENT PAGE (privacy) ============ */
.doc { background: var(--paper); }
.doc__back { font-family: var(--brand); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.doc__wrap { max-width: 760px; margin: 0 auto; padding: clamp(120px, 16vh, 190px) var(--gut) clamp(70px, 10vw, 120px); }
.doc__eyebrow { font-family: var(--brand); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #9A9A9E; }
.doc__h { font-family: var(--brand); font-weight: 700; font-size: clamp(28px, 4vw, 46px); line-height: 1.12; letter-spacing: -.02em; color: var(--ink); margin: 14px 0 0; }
.doc__meta { font-family: var(--brand); font-size: 13px; color: #8C8C90; margin-top: 14px; }
.doc__sec { margin-top: clamp(34px, 4.4vw, 52px); }
.doc__sec h2 { font-family: var(--brand); font-weight: 600; font-size: clamp(17px, 1.7vw, 21px); letter-spacing: -.01em; color: var(--ink); margin: 0 0 14px; }
.doc__sec p, .doc__sec li { font-family: var(--brand); font-size: 15px; line-height: 1.7; color: #55555A; }
.doc__sec p { margin: 0 0 12px; }
.doc__sec p:last-child { margin-bottom: 0; }
.doc__sec ul { margin: 0 0 12px; padding-left: 20px; }
.doc__sec li { margin-bottom: 6px; }
.doc__sec b { font-weight: 600; color: var(--ink); }
.doc__sec a { color: var(--ink); border-bottom: 1px solid var(--accent); }
.doc__sec a:hover { color: var(--accent); }
.doc__note { font-family: var(--brand); font-size: 13px; line-height: 1.6; color: #8C8C90; margin-top: clamp(40px, 5vw, 60px); padding-top: 22px; border-top: 1px solid #E9E9EC; }
.doc__footer { margin-top: 0; }
.doc__footer a { color: inherit; }

/* Consent — the form cannot be sent without it. */
.lead__consent { display: flex; align-items: flex-start; gap: 11px; margin-top: 18px; cursor: pointer; }
.lead__consent input { flex: none; width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.lead__consent span { font-family: var(--brand); font-size: 12.5px; line-height: 1.5; color: var(--sand-ink); }
.lead__consent a { color: var(--sand-ink); border-bottom: 1px solid currentColor; }
.lead__consent input:focus-visible { outline: 2px solid var(--sand-ink); outline-offset: 3px; }

/* ============ SPLIT (TEAM) ============
   One column now: the press block was three articles about Alatau City, not
   about URBI, and the geography that replaced it repeated the registry above.
   The team takes the full width, so the people lay out as a grid instead of a
   narrow list stranded in half the screen. */
.split { background: var(--paper); margin-top: -2cm; }
.split__inner { position: relative; display: grid; grid-template-columns: 1fr; border-bottom: 1px solid #E9E9EC; }
.scol { display: flex; flex-direction: column; padding: clamp(52px, 7vw, 104px) clamp(24px, 5vw, 78px) clamp(40px, 5vw, 72px); text-align: center; }
.scol__title { font-family: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: -.02em; line-height: 1.0; font-size: clamp(34px, 4.4vw, 62px); color: var(--ink); margin-top: 14px; }
.scol .btn-line { margin-top: clamp(22px, 2.6vw, 32px); }

/* inline lists under each split column */
.scol__list { list-style: none; margin: clamp(24px, 3.2vw, 38px) auto 0; padding: 0; width: 100%; max-width: 460px; text-align: left; border-bottom: 1px solid #E9E9EC; }
/* The team is the only list left and it now owns the full width, so it lays out
   as a grid: six people in one narrow column would strand half the section. */
#teamList {
  /* min(100%, 288px), not a bare 288px: on a 320px phone a 288px min-track
     is wider than the padded container and pushes the row off-screen. */
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 288px), 1fr));
  column-gap: clamp(28px, 4vw, 72px);
  max-width: 1180px; border-bottom: 0;
}
#teamList .scol__row { border-top: 1px solid #E9E9EC; }
.scol__row { border-top: 1px solid #E9E9EC; padding: 15px 2px; }
.scol__row.is-extra { display: none; }
.scol__list.is-expanded .scol__row.is-extra { display: block; }
/* The reveal selector scores (0,4,0) and was overriding .scol__row--person
   (0,1,0), so unfolding the list turned the flex rows into blocks and dropped
   every avatar above its name. Restore the row's own layout explicitly. */
.scol__list.is-expanded .scol__row--person.is-extra { display: flex; }
.scol__list--links .scol__row { padding: 0; }
.scol__row-name { display: block; font-family: var(--brand); font-weight: 600; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.3; letter-spacing: -.01em; color: var(--ink); transition: color .2s var(--ease); }
.scol__link:hover .scol__row-name { color: var(--accent); }
.scol__row-sub { display: block; font-family: var(--body); font-size: 12px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: #8C8C90; margin-top: 6px; }
/* участники с фото в кружочках */
.scol__row--person { display: flex; align-items: center; gap: 16px; }
.scol__ava {
  width: 54px; height: 54px; border-radius: 50%; object-fit: cover; object-position: 50% 30%;
  flex: 0 0 auto; transition: transform .3s var(--ease);
}
.scol__row--person:hover .scol__ava { transform: scale(1.12); }
.scol__row-txt { display: block; }
.spanel.is-open { opacity: 1; border-top-color: #ECECEE; }

/* ============ CONTACT (URBI beam + expandable lead form, dark) ============ */
.contact { background: var(--navy-deep); color: #fff; padding: clamp(32px, 4.5vw, 60px) 0; overflow: hidden; }
.contact__bar {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(18px, 2.6vw, 44px);
  padding: clamp(20px, 2.8vw, 48px) 0; /* одинаково сверху и снизу; снизу хватает под отражение */
}
.beamword.contact__beam {
  justify-self: center; font-size: clamp(100px, 18vw, 258px); line-height: .9; margin: 0;
  letter-spacing: -.02em; cursor: pointer;
  /* отражение начинается ровно от ватерлинии и заметно ярче */
  -webkit-box-reflect: below -0.45em linear-gradient(to bottom, transparent 22%, rgba(0,0,0,.72) 78%);
}
/* ватерлиния: буквы обрезаны снизу на внутренних слоях, как будто стоят в воде
   (clip-path на детях не ломает отражение, в отличие от mask на родителе) */
.contact__beam .beamword__base,
.contact__beam .beamword__glow {
  clip-path: inset(0 0 25% 0);
}
.contact__beam .beamword__glow {
  -webkit-mask-image: radial-gradient(circle 120px at var(--mx) var(--my),
    rgba(0,0,0,.62) 0%, rgba(0,0,0,.34) 38%, rgba(0,0,0,.1) 58%, transparent 74%);
          mask-image: radial-gradient(circle 120px at var(--mx) var(--my),
    rgba(0,0,0,.62) 0%, rgba(0,0,0,.34) 38%, rgba(0,0,0,.1) 58%, transparent 74%);
}
.contact__cta {
  width: 100%; max-width: 520px; justify-self: center; text-align: left;
  font-family: var(--body); font-weight: 500; font-size: clamp(14px, 1.25vw, 18px); letter-spacing: .01em;
  color: #D6D8DE; background: none; border: 1px solid rgba(255,255,255,.22); border-radius: 0;
  padding: clamp(15px, 1.8vw, 22px) clamp(18px, 2.2vw, 28px); cursor: pointer;
  transition: border-color .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.contact__cta:hover, .contact__cta[aria-expanded="true"] { border-color: rgba(255,255,255,.85); color: #fff; background: rgba(255,255,255,.03); }

/* expandable lead form on a dark-grey panel */
.leadwrap { max-height: 0; overflow: hidden; opacity: 0; background: var(--navy-deep); margin-top: clamp(16px, 2vw, 26px);
  transition: max-height .6s cubic-bezier(.16,1,.3,1), opacity .5s var(--ease); }
.leadwrap.is-open { opacity: 1; }
.lead { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 3.2vw, 54px);
  padding: clamp(34px, 4.6vw, 64px) clamp(28px, 4vw, 60px) clamp(38px, 5vw, 66px); align-items: stretch; }
.lead__left, .lead__right { display: flex; flex-direction: column; gap: clamp(12px, 1.4vw, 16px); }
.lead__head { margin-bottom: clamp(6px, 1.2vw, 14px); text-align: left; }
.lead__title { font-family: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; font-size: clamp(24px, 2.8vw, 40px); color: #fff; line-height: 1.02; }
.lead__sub { font-family: var(--body); font-size: clamp(14px, 1.2vw, 16px); color: #9A9CA3; margin-top: 12px; max-width: 34ch; }
.lead__fc {
  /* 16px, not 15: below 16 iOS Safari zooms the page the moment the field is
     focused, then never zooms back. This is the one input-size that matters. */
  font-family: var(--body); font-size: 16px; color: #fff;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.16); border-radius: 0; padding: 18px 20px;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.lead__fc::placeholder { color: #8A8D95; opacity: 1; }
.lead__fc:focus { outline: none; background: rgba(255,255,255,.06); border-color: var(--accent-lift); box-shadow: inset 0 0 0 1px var(--accent-lift); }
.lead__area { flex: 1; min-height: clamp(190px, 24vw, 320px); resize: vertical; }
.lead__submit {
  font-family: var(--body); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: none; border: 1px solid rgba(255,255,255,.9); border-radius: 0; padding: 20px; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.lead__submit:hover, .lead__submit:focus-visible { background: #fff; color: var(--ink); outline: none; }
.form-note { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #9A9CA3; margin-top: 2px; }
@media (max-width: 767px) {
  /* .contact__bar is a GRID - flex-direction did nothing, so the beam word and
     the CTA stayed side by side in half a phone each. Collapse to one column so
     they actually stack. */
  .contact__bar { grid-template-columns: 1fr; gap: 18px; text-align: center; }
  .contact__beam { align-self: center; }
  .beamword.contact__beam { font-size: clamp(72px, 20vw, 132px); }
  .lead { grid-template-columns: 1fr; padding: 28px 22px 34px; }
  .lead__area { min-height: 170px; }
}

/* ============ FOOTER (minimal, light - MIMA style) ============ */
.footer { background: var(--paper); color: var(--ink); padding: clamp(48px, 7vw, 88px) 0 clamp(24px, 3vw, 40px); }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__mark { font-family: var(--brand); font-weight: 700; font-size: 22px; letter-spacing: .02em; color: var(--ink); text-transform: uppercase; line-height: 1; }
.footer__nav { display: flex; gap: clamp(18px, 3.2vw, 48px); flex-wrap: wrap; }
.footer__nav a { font-family: var(--body); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); transition: color .2s var(--ease); }
.footer__nav a:hover { color: var(--accent); }
.footer__contacts { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-top: clamp(56px, 8vw, 110px); }
.footer__lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.footer__lines li { display: flex; align-items: baseline; gap: 10px; }
.footer__lines i {
  font-style: normal; font-family: var(--brand); font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: #9A9A9E;
}
/* Registry line: quiet by design - it has to be findable, not read. */
.footer__legal {
  margin-top: clamp(28px, 4vw, 44px); padding-top: clamp(20px, 2.6vw, 28px);
  border-top: 1px solid #E9E9EC;
  font-family: var(--brand); font-size: 12px; line-height: 1.65; color: #8C8C90;
  max-width: 74ch;
}
.footer__legal p { margin: 0; }
.footer__legal b { font-weight: 600; color: #55555A; }
.footer__legal span { color: #9A9A9E; }
.footer__contacts a { font-family: var(--body); font-weight: 600; font-size: 14px; letter-spacing: .06em; color: var(--ink); transition: color .2s var(--ease); }
.footer__contacts a:hover { color: var(--accent); }
.footer__contacts span { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #8C8C90; }
.footer__bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: clamp(40px, 6vw, 76px); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8C8C90; }
.beamword {
  position: relative; display: block; text-align: center; cursor: default; user-select: none;
  font-family: var(--brand); font-weight: 700; text-transform: uppercase;
  font-size: min(26vw, 360px); line-height: .78; letter-spacing: -.03em;
  margin-bottom: -.16em;   /* crop the lower part of the letters at the page edge */
  --mx: -999px; --my: -999px;
}
/* engraved / recessed letters: pressed into the dark surface (light from top) */
.beamword__base {
  display: block;
  color: #26315C;                          /* navy relief on the navy surface */
  text-shadow:
    0 -2px 2px rgba(0,0,0,.75),            /* deep shadow on the top inner wall */
    0 1px 0 rgba(255,255,255,.14),         /* lit bottom lip -> the "pressed in" cue */
    0 2px 3px rgba(255,255,255,.05);       /* soft glow off the lower edge */
}
/* refined cool beam: overlays the exact same box, so cursor coords == mask coords.
   The mask never reaches full opacity, so the light stays a soft premium haze. */
.beamword__glow {
  position: absolute; inset: 0; display: block; pointer-events: none;
  color: #86A8FF;
  opacity: 0; transition: opacity .5s var(--ease);
  filter: drop-shadow(0 0 8px rgba(96,132,255,.32));
  -webkit-mask-image: radial-gradient(circle 240px at var(--mx) var(--my),
    rgba(0,0,0,.55) 0%, rgba(0,0,0,.30) 36%, rgba(0,0,0,.09) 56%, transparent 72%);
          mask-image: radial-gradient(circle 240px at var(--mx) var(--my),
    rgba(0,0,0,.55) 0%, rgba(0,0,0,.30) 36%, rgba(0,0,0,.09) 56%, transparent 72%);
}
.beamword.is-lit .beamword__glow { opacity: 1; }

/* ============ REVEAL (gentle, no abrupt pop) ============ */
/* Base state is VISIBLE: without JS the content must stay readable.
   The hidden start is gated behind .js, which script-less browsers never get. */
.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0; transform: translateY(9px);
  transition: opacity 1.15s cubic-bezier(.33,.1,.25,1), transform 1.15s cubic-bezier(.33,.1,.25,1);
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  /* Every hero keyframe is written without a `to` block, so its end state IS the
     static rule - killing the animation lands on the visible value by itself. */
  #hero * { animation: none !important; }
  /* The scrub stays (the visitor drives it); only the drift of the copy goes. */
  .hero__stage { transform: none !important; }
  /* Plates still open and close - that is a control, not decoration; only the
     easing goes. */
  .hstep__panel, .hstep__line, .hstep__num, .hstep__sign::before, .hstep__sign::after {
    transition: none !important;
  }
  /* The lit stage is information, so it survives - just without the crossfade. */
  .hero__steps li { transition: none !important; }
  /* !important so a rule added later in the file can never re-hide the page */
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .dirs__grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 33vw; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .dir { scroll-snap-align: start; }
}
@media (max-width: 900px) {
  /* Shorter travel: seeking a video per scroll frame is expensive on phones, so
     the same clip is scrubbed over less distance instead of more. */
  .hero-scroll { height: 190svh; }
  .hero__scrim {
    background:
      radial-gradient(140% 70% at 50% 46%, rgba(12,12,12,.64) 0, rgba(12,12,12,.38) 50%, rgba(12,12,12,.18) 80%),
      linear-gradient(180deg, rgba(12,12,12,.58) 0, transparent 30%, transparent 54%, rgba(12,12,12,.76) 100%);
  }
  .hero__lead { max-width: 30ch; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero__btn { text-align: center; }
  .hero__link { text-align: center; display: inline-block; }
  /* Five names will not fit across a phone: keep the numbered rail, drop the
     words, and let the lit tick carry the position. */
  .hero__steps { gap: 6px; }
  .hero__steps li { padding-top: 8px; }
  /* That intent never took effect: the rule here aimed at `li b`, and this
     markup has .num/.nm - so every name stayed and ellipsised to nothing in a
     ~26px box. Hide it the accessible way: the word leaves the picture but
     stays in the tree, so each button keeps its name. */
  .hero__steps button { justify-content: center; }
  .hero__steps .nm {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .split__inner { grid-template-columns: 1fr; }
  .split__inner::before { left: 0; right: 0; top: auto; bottom: 50%; width: auto; height: 1px; }
  .scol { min-height: auto; padding: clamp(56px, 12vw, 88px) clamp(22px, 7vw, 48px) clamp(48px, 10vw, 72px); }
  .story__grid { grid-template-columns: 1fr; gap: 34px; }
  .story__grid::before { display: none; }
  .story__left { margin-left: 0; }
  .story__btn { margin-top: 32px; }
  .dmodal { grid-template-columns: 1fr; grid-template-rows: 40vh 1fr; overflow-y: auto; }
  .dmodal__media { min-height: 40vh; }
  /* Touch: enlarge the two header controls (lang switch ~23px, burger ~24px were
     under the 24px floor) and tighten the bar so its height stays in check. */
  .topbar { padding: 12px var(--gut); }
  .menu-btn { padding: 12px 0; }
  .lang { gap: 4px; }
  .lang a { padding: 9px 8px; }
  .footer__nav a { padding: 4px 0; }
  .how__intro { margin-left: 0; }
}
@media (max-width: 767px) {
  .how__grid { grid-template-columns: 1fr; min-height: auto; gap: 28px; }
  .how__grid::before { display: none; }
  .how__intro { margin-left: 0; }
}
@media (max-width: 640px) {
  .dirs__grid { grid-auto-columns: 64vw; }
}
@media (max-width: 500px) {
  /* The triad is the widest fixed string in the block; drop the tracking a
     notch so it stays on one line instead of splitting the three words. */
  .hero__triad { letter-spacing: .18em; }
}
