* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.announcement {
  padding: 9px 5vw;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  border-bottom: 2px solid var(--ink);
  background: var(--panel);
  color: var(--ink);
}
.announcement b {
  margin-left: 5px;
  font-weight: 600;
}
.announcement a {
  margin-left: 12px;
  text-decoration: underline;
  text-decoration-color: var(--brand-1);
}

/* THE BAR'S SIZE. The wordmark is the bar's measure (--wm is its font size), and the bar is as tall as the wordmark's ink with the same margin above it and below it. The ink of "drift" (the letters,
   the underline under them and the tail of the f) is .9209 of the wordmark's size tall, and its top stands .1202 of that under the top of the wordmark's box; with a margin of .3365 over it and
   under it the bar is 1.594 times the wordmark's size (66.3px at 2.6rem: 14px of margin each way, measured on the rendered wordmark, which puts the wordmark's box on a whole pixel). The ink's middle
   is .0806 under the middle of the wordmark's box, which is what .brand lifts it by, so that the middle of the ink, not of the box, is the middle of the bar; the items of the bar stand on that
   middle too. --bar-h is the one owner of the bar's height: the bar and its items, the glass behind it, and the room the stage, the pager and the hero leave under it all read it. */
:root { --wm: 2.6rem; --bar-h: calc(var(--wm) * 1.594); }

/* The header is the bar and, under it, the nav drawer. It is sticky, and a
   sticky element keeps its place in the flow: when the drawer grows, the
   header grows with it and pushes the page down. It has no border: the lower
   edge of the bar is the glass's own hairline (nav.css). */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--panel);
}

.site-header-bar {
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 var(--padding);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: calc(var(--wm) * -0.1613);
}

.brand .title {
  font-family: 'Tinos', serif;
  font-weight: 700;
  font-style: italic;
  font-size: var(--wm);
  line-height: 1;
  color: var(--ink);
  letter-spacing: normal;
}

.brand .title .lg {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 3px;
}
.brand .title .lg-1 { text-decoration-color: var(--brand-1); }
.brand .title .lg-2 { text-decoration-color: var(--brand-2); }
.brand .title .lg-3 { text-decoration-color: var(--brand-3); }
.brand .title .lg-4,
.brand .title .lg-5 { text-decoration-color: var(--ink); }

/* ── Main nav layout ─────────────────────────────────────────── */
.nav-main {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  padding-left: 24px;
}

/* navmenu list */
.navmenu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navmenu-item {
  height: var(--bar-h);
  display: flex;
  align-items: center;
}

/* Triggers and plain links share the same look. The ink of a label (ascender to baseline) stands .67px under the middle of its box, so the label is lifted by that: the middle of its ink is the
   bar's, as the wordmark's is. */
.navmenu-trigger,
.navmenu-link {
  position: relative;
  top: -0.67px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.12s ease;
  white-space: nowrap;
  font-family: var(--display);
}
.navmenu-trigger:hover,
.navmenu-trigger[aria-expanded="true"],
.navmenu-link:hover { color: var(--brand-1); }

/* Chevron */
.navmenu-trigger svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.navmenu-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ── Nav drawer ─────────────────────────────────────────────────
   Opening a trigger grows the drawer from nothing to its content's height,
   and the page below moves down with it. The panel is pinned to the drawer's
   top, so the page's edge slides off it rather than the panel sliding in: it
   reads as having been underneath all along. */
.nav-drawer {
  display: grid;
  grid-template-rows: 0fr;
  background: var(--bg);
  transition: grid-template-rows 0.36s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.nav-drawer.open { grid-template-rows: 1fr; }
.nav-drawer-inner {
  min-height: 0;
  overflow: hidden;
}
.nav-drawer-panel {
  padding: 32px var(--padding) 0;
  animation: viewFadeIn 0.2s ease forwards;
}
.nav-drawer-panel[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .nav-drawer,
  .nav-drawer.open { transition: none; }
  .nav-drawer-panel { animation: none; }
}

/* Columns: a small label over plain, large links. No icons, no blurbs: the
   link's own words carry it. */
.nd-cols {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 24px 80px;
  padding-bottom: 32px;
}
.nd-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.nd-label {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.nd-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: text-decoration-color 0.12s ease;
}
.nd-link:hover,
.nd-link:focus-visible { text-decoration-color: var(--brand-1); }
.nd-ext {
  font-size: 14px;
  color: var(--muted);
}

/* A pillar's colour, as the small square the rest of the page uses for it. */
.nd-mark {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border: 1.5px solid var(--ink);
}
.nd-mark-orange { background: var(--brand-1); }
.nd-mark-purple { background: var(--brand-2); }
.nd-mark-green  { background: var(--brand-3); }
.nd-mark-ink    { background: var(--ink); }
.nd-mark-white  { background: var(--panel); }

/* The strip along the drawer's foot: the tools, and the way into the docs. */
.nd-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding: 14px 0 16px;
  border-top: 1px solid var(--rule);
}
.nd-tool {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  transition: color 0.12s ease;
}
.nd-tool:hover,
.nd-tool:focus-visible { color: var(--brand-1); }
.nd-tool-icon {
  min-width: 26px;
  height: 26px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  background: var(--panel);
  border: 1.5px solid var(--ink);
}
.nd-strip-end {
  margin-left: auto;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--brand-1);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.nd-strip-end:hover,
.nd-strip-end:focus-visible { color: var(--brand-1); }

/* Right-side nav actions (Sovereignty link + CTA) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.nav-link-plain {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.12s ease;
}
.nav-link-plain:hover { color: var(--brand-1); }
.nav-cta {
  font-size: 13px;
  padding: 8px 16px;
  transform: none;
  box-shadow: 3px 3px 0 var(--ink);
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 3px 5px 0 var(--ink);
}

.hero {
  /* The side-by-side layout's numbers, which the map's sizing reads too. */
  --hero-gap: 20px;    /* between the copy's column and the map's */
  --copy-max: 650px;   /* the copy at its widest */
  --copy-fade: 80px;   /* the copy's white ground, fading out past its edge */
  min-height: 550px;
  padding: 56px var(--padding) 48px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background: var(--panel);
}

/* Side by side, the hero is a fullscreen one: exactly the window under the header (--bar-h) when the content fits, with the strip of reasons
   standing at its foot and the copy and the map centred in the room above it. The gaps (above the copy, above the strip, below it, and
   under "Why drift?") give up to a half of their size as the window gets lower, from the full size at 900px high down to 24px at 700px
   (16px for the heading's), so that the content fits a window from about 750px high up. In a window too low for that, or too narrow to
   keep the copy to few lines, the hero is as tall as its content and the strip is under the fold. Stacked (a phone) it is as tall as
   its content. */
@media (min-width: 851px) {
  .hero {
    --pad-top: clamp(24px, calc(24px + (100vh - 700px) * 0.16), 56px);
    --pad-foot: clamp(24px, calc(24px + (100vh - 700px) * 0.12), 48px);
    --strip-gap: clamp(24px, calc(24px + (100vh - 700px) * 0.2), 64px);
    min-height: max(550px, calc(100vh - var(--bar-h)));
    min-height: max(550px, calc(100svh - var(--bar-h)));
    padding-top: var(--pad-top);
    padding-bottom: var(--pad-foot);
  }
  .hero .hero-top-row { flex: 1 1 auto; }
  .hero .hero-art { min-height: 0; }
  .hero .hero-highlights { margin-top: var(--strip-gap); }
  .hero .why-drift-heading { margin-bottom: clamp(16px, calc(16px + (100vh - 700px) * 0.1), 36px); }
}

.hero:before {
  content: "";
  position: absolute;
  width: 520px;
  height: 420px;
  left: -180px;
  top: 10px;
  background: radial-gradient(circle, rgba(241,160,6,.14), transparent 68%);
}

.hero-top-row {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: var(--hero-gap);
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-copy {
  position: relative;
  z-index: 4;
  max-width: var(--copy-max);
}

/* Side by side, the copy sits on a white ground: from the hero's top and
   left edges to the copy's own right edge, and down to the strip of
   reasons. The copy is as wide as its column (the columns split 1.02 :
   0.98 round the gap) up to --copy-max, so on a wide screen the ground
   stops short of the column's edge. Past the copy's edge it fades out over
   --copy-fade, where the map's land begins, so nothing of the map is ever
   under the copy. Between the map (2) and the copy (4) in the row's own
   stacking. The hero's orange glow (.hero:before, which it covers) is
   painted into it, where it was. */
@media (min-width: 851px) {
  .hero-top-row::before {
    content: "";
    position: absolute;
    z-index: 3;
    top: calc(-1 * var(--pad-top));
    bottom: calc(-1 * var(--strip-gap));
    left: calc(-1 * var(--padding));
    width: calc(var(--padding) + min(var(--copy-max), (100% - var(--hero-gap)) * 0.51) + var(--copy-fade));
    background:
      radial-gradient(circle 334px at 80px 220px, rgba(241, 160, 6, .14), transparent 68%),
      linear-gradient(to right, var(--panel) calc(100% - var(--copy-fade)), rgb(255 255 255 / 0));
  }
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 800;
  color: var(--brand-1);
  margin: 0 0 18px;
}

h1 {
  font-family: var(--display);
  font-size: clamp(40px, 5.2vw, 70px);
  line-height: .92;
  letter-spacing: -.07em;
  margin: 0 0 24px;
  font-weight: 500;
  color: var(--ink);
}
h1 strong {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--brand-3);
  text-underline-offset: 6px;
  text-decoration-thickness: 4px;
}
h1 em {
  font-style: normal;
  font-size: 48px;
  padding-top: 0.45em;
  display: block;
  font-weight: 300;
}

@keyframes hero-blink {
  0%, 49%  { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.hero-caret {
  animation: hero-blink 1s step-end infinite;
  font-style: normal;
}
/* Hide caret once typing is done */
.hero-caret.done { animation: none; opacity: 0; }

.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 540px;
  margin: 0 0 30px;
  font-weight: 300;
}

.lede-second {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 540px;
  margin: 0 0 30px;
  font-weight: 300;
  margin-top: -14px;
  padding-top: 14px;
  border-top: 1px solid var(--bg);
}

.actions {
  display: flex;
  gap: 18px;
}

/* Hero Highlights Sub-block */
.hero-highlights {
  margin-top: 64px;
  text-align: left;
  position: relative;
  z-index: 3;
  width: 100%;
}
/* The strip sits over the map too (the globe's edge runs down past it), on
   a white ground across the whole hero, from a little above the strip to
   the hero's foot. */
.hero-highlights::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -16px;
  bottom: calc(-1 * var(--pad-foot, 48px));
  left: calc(-1 * var(--padding));
  right: calc(-1 * var(--padding));
  background: var(--panel);
}

.why-drift-heading {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-wordmark {
  font-family: 'Tinos', serif;
  font-weight: 700;
  font-style: italic;
  font-size: 1.85rem;
  line-height: 1;
  color: var(--ink);
  display: inline-flex;
}
.brand-wordmark .lg {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2.5px;
}
.brand-wordmark .lg-1 { text-decoration-color: var(--brand-1); }
.brand-wordmark .lg-2 { text-decoration-color: var(--brand-2); }
.brand-wordmark .lg-3 { text-decoration-color: var(--brand-3); }
.brand-wordmark .lg-4,
.brand-wordmark .lg-5 { text-decoration-color: var(--ink); }

.button {
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid var(--toy-edge);
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: 0 6px 0 var(--toy-edge);
  transition: transform .07s cubic-bezier(.34, 1.56, .64, 1),
              box-shadow .07s cubic-bezier(.34, 1.56, .64, 1),
              background .08s ease, color .08s ease;
}
.button:hover {
  transform: translateY(-5px);
  box-shadow: 0 7px 0 var(--toy-edge);
}
.button:active {
  transform: translateY(0);
  box-shadow: 0 0 0 var(--toy-edge);
}

.primary {
  background: var(--brand-1);
  color: var(--on-brand);
}
.secondary {
  background: var(--panel);
  color: var(--ink);
}
.secondary b {
  margin-left: 8px;
}

.hero-art {
  min-height: 480px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── The hero map ──────────────────────────────────────────────
   Europe without Russia on the curve of the Earth, as a satellite over the
   Sahara sees it looking north (europe-outline.svg, which hero.js loads
   into the map), played once .is-on is set. The Earth's surface fades in
   and the bands rise off its horizon, which runs on past the picture as
   the edge of the globe, across the whole hero (the hero's overflow keeps
   it in). Pens then draw the coastline in two relays, Fennoscandia and then
   the continent, each stroke starting at its --at and running for its
   --span (fractions of --draw, from the generator), and each island draws
   itself as a pen passes it. At --fill-at of the draw, hero.js sweeps a
   scan line south over the globe (a parallel of latitude, projected each
   frame with the map's own camera) for --fill, filling in the land north
   of it. The plates then fan out under it, and hero.js sprouts the blocks
   at --blocks-at. hero.js reads all of these timings from here. */
.eu-map {
  --draw-start: 0.45s;
  --draw: 3.2s;
  --fill-at: 0.8;
  --fill-start: calc(var(--draw-start) + var(--draw) * var(--fill-at));
  --fill: 1.4s;
  --plates-start: calc(var(--fill-start) + var(--fill) - 0.1s);
  --blocks-at: 4.8s;
  z-index: 2;
  container-type: inline-size;
  aspect-ratio: 1058 / 791;
  /* Side by side with the copy, the map is out of the layout, centred on
     the hero's row, which it overflows without ever setting its height, so
     the strip of reasons stays where it is. It is sized and placed by its
     land, so that all of it shows beside all of the copy, as large as the
     room between them allows:
     - its easternmost point, the tip of Cyprus, 0.95841 of the way across
       the picture (tools/europe.py prints it), lands on this column's right
       edge, which is the line the page's right padding draws;
     - its westernmost, Portugal's coast, lands where the copy's white
       ground has faded out (--land-from, from this column's left edge).
       The land spans 0.94518 of the picture (14 to 1014 of its 1058
       units). The copy's column is 1.02/0.98 as wide as this one, so its
       edge is --hero-gap left of here, and further by however much that
       column is wider than --copy-max; the fade adds --copy-fade.
     Past 820px wide, the horizon's bands would leave the hero's top and the
     Aegean would reach the strip, so it stops growing there. */
  --land-from: calc(var(--copy-fade) - var(--hero-gap) - max(0px, 100% * 1.040816 - var(--copy-max)));
  --map-w: min(820px, (100% - var(--land-from)) / 0.94518);
  position: absolute;
  top: 50%;
  left: calc(100% - var(--map-w) * 0.95841);
  width: var(--map-w);
  transform: translateY(-50%);
  /* It reaches across into the copy's column, whose links stay clickable. */
  pointer-events: none;
}
@media (max-width: 850px) {
  .eu-map {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-width: none;
    transform: none;
  }
}

/* The Earth: its near side in the picture, fading out at the picture's
   sides and foot; its graticule; and its edge, the horizon, ink with the
   brand's three bands stepped off it, as the hero's plates are. */
.eu-earth { fill: #eef0f4; }
.eu-graticule {
  fill: none;
  stroke: #d3d7df;
  stroke-width: 1px;
}
.eu-rim {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2px;
}
.eu-band {
  fill: none;
  stroke-width: 3.5px;
}
.eu-band-orange { stroke: var(--brand-1); }
.eu-band-green  { stroke: var(--brand-3); }
.eu-band-purple { stroke: var(--brand-2); }
.eu-earth, .eu-graticule, .eu-rim, .eu-band { opacity: 0; }

.eu-map.is-on .eu-earth,
.eu-map.is-on .eu-graticule,
.eu-map.is-on .eu-rim {
  animation: eu-appear 0.6s ease-out both;
}
.eu-map.is-on .eu-band { animation: eu-rise 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.eu-map.is-on .eu-band-orange { animation-delay: 0.15s; }
.eu-map.is-on .eu-band-green  { animation-delay: 0.23s; }
.eu-map.is-on .eu-band-purple { animation-delay: 0.31s; }

@keyframes eu-appear {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes eu-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
/* The picture paints past its box (the horizon crosses the whole hero),
   so it must not take the clicks meant for what it passes over. */
.eu-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

/* The strokes have pathLength=1, so a dash offset from 1 to 0 draws each
   one from its start to its end. Their width is in map units and scales
   with the map: a non-scaling stroke would dash in screen units instead. */
.eu-trace path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.6;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.eu-pen {
  fill: var(--brand-1);
  stroke: var(--ink);
  stroke-width: 2.5;
  offset-rotate: 0deg;
  opacity: 0;
}
.eu-land-fill { fill: var(--ink); }
.eu-land-dots { fill: url(#eu-dots); }

/* The plates: the large landmasses, cut out in the brand's colours and
   stepped down and right under the land, as the hero's plates always were. */
.eu-plate {
  stroke: var(--ink);
  stroke-width: 1.5px;
  opacity: 0;
}
.eu-plate-orange { fill: var(--brand-1); --to: 6px; }
.eu-plate-green  { fill: var(--brand-3); --to: 12px; }
.eu-plate-purple { fill: var(--brand-2); --to: 18px; }

/* The scan line, a parallel on the globe, and its band of glow just north
   of it; hero.js redraws both each frame and fades them in and out. */
.eu-scan { opacity: 0; }
.eu-scan-line {
  fill: none;
  stroke: var(--brand-1);
  stroke-width: 3px;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.eu-scan-glow { fill: url(#eu-scan-glow); }

.eu-map.is-on .eu-trace .eu-trace-main,
.eu-map.is-on .eu-pen {
  animation-duration: calc(var(--span) * var(--draw));
  animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
  animation-delay: calc(var(--draw-start) + var(--at) * var(--draw));
  animation-fill-mode: both;
}
.eu-map.is-on .eu-trace .eu-trace-main { animation-name: eu-draw; }
.eu-map.is-on .eu-pen { animation-name: eu-pen; }
.eu-map.is-on .eu-trace path:not(.eu-trace-main) {
  animation: eu-draw 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) calc(var(--draw-start) + var(--at, 0) * var(--draw)) both;
}
.eu-map.is-on .eu-plate {
  animation: eu-plate 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.eu-map.is-on .eu-plate-orange { animation-delay: var(--plates-start); }
.eu-map.is-on .eu-plate-green  { animation-delay: calc(var(--plates-start) + 0.08s); }
.eu-map.is-on .eu-plate-purple { animation-delay: calc(var(--plates-start) + 0.16s); }

@keyframes eu-draw {
  from { stroke-dashoffset: 1; }
  to   { stroke-dashoffset: 0; }
}
@keyframes eu-pen {
  0%   { offset-distance: 0%; opacity: 0; }
  4%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}
@keyframes eu-plate {
  from { transform: translate(0, 0); opacity: 0; }
  to   { transform: translate(var(--to), var(--to)); opacity: 1; }
}

/* The blocks: a tile on its city, and a tag naming what it is. They size
   with the map (cqw, within bounds), and the tags go once it is too small
   to hold them. hero.js sets .is-up to sprout one and .is-leaving to sink
   it back. */
.eu-blocks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.eu-block {
  --tile: clamp(16px, 4.3cqw, 26px);
  position: absolute;
  display: flex;
  align-items: center;
  gap: clamp(4px, 1cqw, 7px);
  transform: translate(calc(var(--tile) / -2), -50%);
  visibility: hidden;
}
.eu-block.is-up,
.eu-block.is-leaving { visibility: visible; }
.eu-block-tile {
  flex: none;
  display: grid;
  place-items: center;
  width: var(--tile);
  height: var(--tile);
  color: var(--tone-ink);
  background: var(--tone);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink-darkest);
  transform-origin: 50% 100%;
}
.eu-block-tile svg {
  width: 64%;
  height: 64%;
}
/* The square shock where a block breaks ground. */
.eu-block::before {
  content: "";
  position: absolute;
  left: calc(var(--tile) / 2);
  top: 50%;
  width: calc(var(--tile) * 2.4);
  height: calc(var(--tile) * 2.4);
  border: 2px solid var(--tone);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
}
.eu-block-tag {
  font-family: var(--mono);
  font-size: clamp(8.5px, 1.9cqw, 11px);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
  background: var(--panel);
  border: 1.5px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink-darkest);
  padding: 0.45em 0.6em;
}

.eu-block.is-up .eu-block-tile { animation: eu-sprout 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.eu-block.is-up::before { animation: eu-shock 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) 0.12s both; }
.eu-block.is-up .eu-block-tag { animation: eu-tag-in 0.35s cubic-bezier(0.2, 0.7, 0.3, 1) 0.3s both; }
.eu-block.is-leaving .eu-block-tag { animation: eu-tag-out 0.18s ease-in both; }
.eu-block.is-leaving .eu-block-tile { animation: eu-sink 0.3s cubic-bezier(0.5, 0, 0.75, 0) 0.1s both; }

@keyframes eu-sprout {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}
@keyframes eu-sink {
  from { transform: scale(1); }
  to   { transform: scale(0); }
}
@keyframes eu-shock {
  from { transform: translate(-50%, -50%) scale(0.3); opacity: 0.9; }
  to   { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}
@keyframes eu-tag-in {
  from { clip-path: inset(-4px 100% -4px 0); }
  to   { clip-path: inset(-4px -4px -4px 0); }
}
@keyframes eu-tag-out {
  from { clip-path: inset(-4px -4px -4px 0); }
  to   { clip-path: inset(-4px 100% -4px 0); }
}

@container (max-width: 440px) {
  .eu-block-tag { display: none; }
}

/* Without motion, the map is simply there, and so are the first blocks. */
@media (prefers-reduced-motion: reduce) {
  .eu-land { clip-path: none; }
  .eu-trace path { stroke-dashoffset: 0; }
  .eu-scan, .eu-pen { display: none; }
  .eu-plate { opacity: 1; transform: translate(var(--to), var(--to)); }
  .eu-earth, .eu-graticule, .eu-rim, .eu-band { opacity: 1; }
  .eu-map .eu-earth,
  .eu-map .eu-graticule,
  .eu-map .eu-rim,
  .eu-map .eu-band,
  .eu-map .eu-trace path,
  .eu-map .eu-plate,
  .eu-block .eu-block-tile,
  .eu-block .eu-block-tag,
  .eu-block::before { animation: none !important; }
}

/* Highlights Strip embedded under Hero Copy */
.service-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 28px;
  /* max-width: 1200px; */
  margin: 0;
  padding: 0;
  background: transparent;
}
.strip-item {
  display: flex;
  gap: 16px;
  align-items: center;
  background: transparent;
}

.strip-item-link::hover {
  background: var(--ink);
}

.hero.highlights > a{
  text-decoration: none;
}
.hero-highlights > a::hover{
  text-decoration: underline;
}

.service-icon {
  width: 60px;
  height: 60px;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 3px 3px 0 var(--ink);
}
.icon-pill-orange { background: var(--brand-1); color: var(--on-brand); }
.icon-pill-purple { background: var(--brand-2); color: #fff; }
.icon-pill-green { background: var(--brand-3); color: var(--on-brand); }
.icon-pill-ink { background: var(--ink); color: #fff; }
.icon-pill-white { background: white; color: var(--ink); }

.strip-item b {
  display: block;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.strip-item small {
  display: block;
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 3px;
  line-height: 1.35;
}

/* ============================================================
   SCROLL-REVEAL & ENTRANCE ANIMATIONS
   ============================================================ */

/* --- Base reveal state ------------------------------------------
   Every element tagged [data-reveal] starts invisible and slightly
   displaced. The IntersectionObserver in hero.js adds .is-in,
   which plays the entrance. Nothing is ever hidden unless JS runs
   (the class is added by script). */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.55s cubic-bezier(0.2, 0.7, 0.3, 1),
    transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* --- Stagger: siblings tagged [data-stagger] get nth-child delays ---
   Works for any grid or list of siblings up to 9 items. */
[data-stagger] > *            { transition-delay: 0s; }
[data-stagger] > *:nth-child(1) { transition-delay: 0.00s; }
[data-stagger] > *:nth-child(2) { transition-delay: 0.07s; }
[data-stagger] > *:nth-child(3) { transition-delay: 0.14s; }
[data-stagger] > *:nth-child(4) { transition-delay: 0.21s; }
[data-stagger] > *:nth-child(5) { transition-delay: 0.28s; }
[data-stagger] > *:nth-child(6) { transition-delay: 0.35s; }
[data-stagger] > *:nth-child(7) { transition-delay: 0.42s; }
[data-stagger] > *:nth-child(8) { transition-delay: 0.49s; }
[data-stagger] > *:nth-child(9) { transition-delay: 0.56s; }

/* Stagger children share the parent's [data-reveal] transition but
   start hidden too. They become visible in a cascade once the
   parent's IntersectionObserver fires. */
[data-stagger].is-in > * {
  opacity: 1;
  transform: none;
}
[data-stagger] > * {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.45s cubic-bezier(0.2, 0.7, 0.3, 1),
    transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
  transition-delay: inherit;
}

/* --- Service strip (hero highlights) stagger ---------------------*/
.service-strip[data-stagger] > .strip-item {
  transform: translateY(8px);
}

/* ============================================================
   REDUCED MOTION — everything snaps in instantly
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal="left"],
  [data-reveal="right"],
  [data-reveal="heading"],
  [data-stagger] > *,
  .punch-parent > [data-punch],
  .punch-parent:not(.is-in) > [data-punch],
  .cta-terminal .term-line,
  .cta-terminal .term-out,
  .section-label[data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Responsive Media Queries */
/* Five reasons in a row need room: below 1240px their captions would wrap
   into slivers, so they go three to a row. */
@media (max-width: 1240px) {
  .service-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  /* minmax(0, …): a plain 1fr column cannot shrink below its widest
     content, and a line of code that does not wrap would stretch it (and
     the page) past the window. The code scrolls in its own box instead. */
  .split-layout,
  .split-layout.reverse { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  #primitives .split-layout,
  #polyglot .split-layout.reverse { align-items: start; }
  #primitives .split-right,
  #polyglot .split-left { height: auto; }
  .split-layout.reverse .split-right { order: 1; }
  .split-layout.reverse .split-left { order: 2; }
  .service-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .nd-cols { grid-template-columns: repeat(2, max-content); gap: 24px 56px; }
}

@media (max-width: 850px) {
  .hero-top-row { grid-template-columns: 1fr; row-gap: 0; }
  .hero { padding-top: 40px; }
  h1 { font-size: clamp(38px, 9vw, 56px); }
  /* In one column, the map comes between the headline and the rest. The
     copy's box steps aside (display: contents), so its parts sit in the
     column themselves, and take turns with the map by their order: the
     eyebrow, the headline and the typed line, then the map, then the
     sentence and the buttons. */
  .hero-copy { display: contents; }
  .lede { margin-bottom: 0; }
  .hero-art { order: 1; min-height: 0; margin: 8px 0 24px; }
  .lede-second, .actions { order: 2; }
  .lede-second { margin-top: 8px; }
  .actions { margin-bottom: 32px; }
}

@media (max-width: 580px) {
  .announcement { font-size: 11px; flex-direction: column; gap: 4px; text-align: center; }
  .site-header-bar { padding: 0 5vw; }
  .nd-cols { grid-template-columns: 1fr; }
  .nd-link { font-size: 18px; }
  .nd-strip-end { margin-left: 0; }
  .hero { padding-left: 5vw; padding-right: 5vw; }
  .container { padding-left: 5vw; padding-right: 5vw; }
  .service-strip { grid-template-columns: 1fr; }
  .pillar-tabs { padding: 0; gap: 4px; }
  .pillar-tab-name { font-size: 12px; }
  .pillar-panel { padding: 20px 18px 0; }
  .pillar-blocks { grid-template-columns: 1fr; }
  .mesh { grid-template-columns: 1fr 1fr; grid-template-areas: "hub hub" "left right"; column-gap: 14px; row-gap: 28px; }
  .mesh-hub { grid-area: hub; justify-self: center; width: 116px; height: 116px; }
  .mesh-col-left { grid-area: left; }
  .mesh-col-right { grid-area: right; }
  .mesh-node { font-size: 12.5px; padding: 8px; gap: 8px; }
  .flow-steps-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-terminal { font-size: 12px; padding: 18px; }
}

/* The narrowest phones: a smaller wordmark and tighter menu keep the header
   inside the window, and a card's title and its tag may wrap. */
@media (max-width: 400px) {
  :root { --wm: 2.1rem; }
  .eu-disc-title-row,
  .lede-title-row,
  .devex-meta-title-row { flex-wrap: wrap; }
}
