/* /weareipdb — the brand film.
   =====================================================================
   Self-contained: this page loads none of the site's other stylesheets,
   because it is a frame rather than a document and every inherited rule
   was something to undo. Three ideas run through it:

   depth    nothing is a flat fill — the backdrop is graded, the grain
            sits over everything, and a vignette closes the corners, so
            a dark screen reads as a photographed dark rather than #000.
   motion   every transform is translate/scale/opacity only, so the
            compositor can do the work; nothing animates width, top or
            filter in a loop.
   respect  all of it collapses under prefers-reduced-motion, and the
            page is readable with scripting off (reveals default to
            visible, the scroll scenes simply stop being scrubbed).
   ===================================================================== */

:root {
  --bg: #05070c;
  --bg-2: #080c14;
  --ink: #eaf0fa;
  --ink-2: #9fb0ca;
  --ink-3: #64748f;
  --accent: #4a86ff;
  --accent-2: #7aa7ff;
  --warm: #ffb45c;
  --line: rgba(255, 255, 255, .08);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* While the film is playing itself the page must not also be smooth-scrolling:
   the browser animates every programmatic scrollTo, and a loop that writes one
   per frame then fights an animation that is still finishing the last one. */
html.filming { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {                      /* the graded field everything sits on */
  content: "";
  position: fixed;
  inset: -20%;
  background:
    radial-gradient(60% 50% at 18% 85%, rgba(26, 60, 140, .55), transparent 70%),
    radial-gradient(45% 45% at 85% 12%, rgba(20, 44, 110, .45), transparent 72%),
    linear-gradient(180deg, #060910, #04060b 60%, #070b13);
  z-index: -2;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
p { margin: 0; }

/* grain, vignette, progress ------------------------------------------- */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  animation: grain 1.4s steps(3) infinite;
}
@keyframes grain {
  0% { transform: translate3d(0, 0, 0); }
  33% { transform: translate3d(-3%, 2%, 0); }
  66% { transform: translate3d(2%, -3%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
.vignette {
  position: fixed; inset: 0; z-index: 59; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, .55) 100%);
}
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70; background: rgba(255,255,255,.05); }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--warm)); }

.skip {
  position: fixed; left: -999px; top: 12px; z-index: 80;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip:focus { left: 12px; }

/* top bar -------------------------------------------------------------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(18px, 4vw, 54px);
  mix-blend-mode: difference;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand b { font-size: 19px; font-weight: 900; letter-spacing: -.03em; }
.brand span { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.topbar nav { display: flex; gap: 22px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; }
.topbar nav a { opacity: .8; transition: opacity .3s; }
.topbar nav a:hover { opacity: 1; }

/* shared scene furniture ---------------------------------------------- */
.scene { position: relative; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(18px, 5vw, 40px); }
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 18px;
}
.say { color: var(--ink-2); font-size: clamp(15px, 1.25vw, 18px); line-height: 1.65; max-width: 46ch; }
.big { font-size: clamp(38px, 6vw, 86px); font-weight: 900; line-height: .98; letter-spacing: -.035em; }

/* Hidden only once the script is running: with no JS nothing would ever
   add .in, and the page would be a column of invisible paragraphs. */
html.js .reveal { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .52s var(--ease), transform .52s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }

/* 1 — hero ------------------------------------------------------------- */
.hero { min-height: 100svh; display: grid; align-items: center; overflow: hidden; }
.hero-field { position: absolute; inset: 0; z-index: -1; }
.hero-field canvas { width: 100%; height: 100%; display: block; opacity: .75; }
.hero-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(18px, 5vw, 40px); width: 100%; }
.title { font-size: clamp(54px, 13vw, 190px); font-weight: 900; line-height: .86; letter-spacing: -.045em; margin: 6px 0 26px; }
.title .line { display: block; overflow: hidden; }
.title .line > span {
  display: block;
  transform: translate3d(0, 110%, 0);
  animation: rise .85s var(--ease) forwards;
}
.title .line:nth-child(2) > span { animation-delay: .14s; }
/* One pass of light across the wordmark as it lands. Clipped to the text
   itself, so it reads as a light source crossing the letters rather than a
   rectangle sliding over the page. */
.title { position: relative; }
html.js .title::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .55) 48%, transparent 58%);
  background-size: 260% 100%; background-position: 160% 0;
  mix-blend-mode: overlay;
  animation: sweep 1.1s var(--ease) .3s 1 both;
}
@keyframes sweep { to { background-position: -60% 0; } }
@keyframes rise { to { transform: none; } }
.hero .lede { font-size: clamp(16px, 1.6vw, 22px); line-height: 1.6; color: var(--ink-2); max-width: 54ch; }
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(22px, 5vw, 70px); margin-top: 46px; }
.hero-stats b { display: block; font-family: var(--mono); font-size: clamp(22px, 2.6vw, 38px); font-weight: 700; letter-spacing: -.02em; }
.hero-stats span { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.scroll-cue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent); animation: cue 2.4s infinite; }
@keyframes cue { 0%, 100% { opacity: .25; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* 2–4 — the scrubbed scenes ------------------------------------------- */
/* Scene length. Longer scrubs the animation more slowly but makes a
   manual scroll feel like wading; 185vh keeps the scrub readable
   without making the viewer work for it. */
/* One viewport to sit in, plus the travel the scrub needs. Written as a sum
   rather than a cap: `min(150vh, 1180px)` made the scene SHORTER than the
   viewport on a 1440-tall monitor, the scrub had no distance to run over, and
   the copy — whose opacity is driven by that progress — never came up. */
.sticky { height: calc(100svh + min(52vh, 620px)); }
.pin { position: sticky; top: 0; height: 100svh; display: grid; align-items: center; overflow: hidden; contain: layout paint; }
.map-wrap {
  position: absolute; inset: 0; z-index: -1;
  visibility: hidden;                 /* flipped on by the observer below */
  contain: paint;
}
/* With no scripting nothing sets .is-live, so the maps stay put instead of
   vanishing: html.js is only present once the script has run. */
.is-live .map-wrap { visibility: visible; }
html:not(.js) .map-wrap { visibility: visible; }
.map {
  position: absolute; top: 50%; left: 58%;
  width: 118%; height: auto;
  transform: translate3d(-50%, -50%, 0) scale(var(--map-scale, 1));
  /* No transition here on purpose: the scroll loop writes this transform on
     every frame, and a transition made the browser interpolate towards a
     target that had already moved — re-rasterising two hundred vector paths
     for each in-between value. will-change promotes it to its own layer so
     the scale is a cheap texture transform instead. */
  will-change: transform;
  backface-visibility: hidden;
}
.map path { fill: #0e1726; stroke: rgba(120, 160, 230, .13); stroke-width: .35; vector-effect: non-scaling-stroke; }
.map path.lit { fill: var(--lit, #1d3a6e); }
/* The ticker and the grain get their own layers too: both move every frame. */
.grain { will-change: transform; }
.map .ghost path { fill: #0b1320; stroke: rgba(120, 160, 230, .08); }
.map-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--bg) 6%, rgba(5, 7, 12, .92) 26%, rgba(5, 7, 12, .45) 52%, rgba(5, 7, 12, .72));
}
#mapDots circle { fill: var(--accent-2); opacity: 0; }
#mapDots circle.hot { fill: var(--warm); }
#arcs path { fill: none; stroke: var(--warm); stroke-width: 1.1; stroke-linecap: round; opacity: .85; vector-effect: non-scaling-stroke; }
#arcs circle { fill: var(--warm); }

/* The copy block is scrubbed by the script: it fades up as its scene takes
   the frame and fades out as the next one arrives, which is what makes the
   sequence feel cut rather than scrolled. */
.pin .copy {
  max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(18px, 5vw, 40px); width: 100%;
  will-change: opacity, transform;
}
.figure {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(42px, 8.5vw, 118px); line-height: 1; letter-spacing: -.045em;
  margin: 0 0 18px; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 60px rgba(74, 134, 255, .35);
}
.pin h2 { font-size: clamp(22px, 2.9vw, 42px); font-weight: 800; margin-bottom: 18px; max-width: 18ch; }
.facts { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; max-width: 52ch; }
.facts li {
  font-size: 15px; color: var(--ink-2); padding-left: 20px; position: relative; line-height: 1.5;
}
.facts li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; background: var(--accent); }
.facts b { color: var(--ink); font-weight: 600; }

/* the record ticker --------------------------------------------------- */
.ticker { position: absolute; right: clamp(16px, 7vw, 120px); top: 0; height: 100%; width: min(360px, 38vw); overflow: hidden; z-index: -1; mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); }
.ticker-roll { will-change: transform; }
.tick {
  display: flex; align-items: center; gap: 12px; justify-content: flex-end;
  font-family: var(--mono); font-size: 13px; color: rgba(140, 170, 220, .55);
  padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .04);
}
.tick i { font-style: normal; color: var(--ink-3); }
.tick em { font-style: normal; font-size: 10px; letter-spacing: .12em; color: var(--warm); border: 1px solid rgba(255, 180, 92, .4); padding: 2px 6px; border-radius: 4px; }
.tick.kev { color: var(--warm); }

/* 4b — in the field: the five mockups --------------------------------
   Each mockup is a real interface drawn in CSS rather than a screenshot:
   a screenshot goes stale, weighs more than this whole stylesheet, and
   cannot animate. Three rules hold the section together:

     * nothing inside a mockup animates a layout property in a loop. The
       entrances are one-shot `forwards` animations on transform/opacity,
       and the only exceptions (the typing bubble's collapse, the terminal's
       type-on) are single passes on one element each;
     * every initial hidden state is written under `html.js`, so a browser
       with scripting off — where `.in` never arrives — shows the finished
       interface instead of an empty box;
     * the whole set collapses to its end state under reduced motion.
   ------------------------------------------------------------------- */
.field { padding: clamp(66px, 10vh, 140px) 0 clamp(48px, 8vh, 104px); }
.field-intro { margin-bottom: clamp(40px, 6vh, 86px); }
.field-intro .big { margin: 14px 0 20px; max-width: 20ch; }

.act {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: clamp(26px, 4.6vw, 70px);
  align-items: center;
  padding: clamp(32px, 5.5vh, 72px) 0;
  border-top: 1px solid var(--line);
}
/* alternate which side the interface sits on, so five of these in a row
   read as a sequence rather than a list */
.act:nth-of-type(even) .act-stage { order: 2; }
.act-stage { perspective: 1500px; display: flex; justify-content: center; min-width: 0; }
.act-copy { min-width: 0; }
.act-no {
  font-family: var(--mono); font-size: 12px; letter-spacing: .22em; color: var(--accent-2);
  margin-bottom: 14px;
}
.act-copy h3 {
  font-size: clamp(21px, 2.3vw, 33px); font-weight: 800; line-height: 1.16;
  margin-bottom: 14px; max-width: 24ch;
}
.act-facts { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; max-width: 48ch; }
.act-facts li {
  position: relative; padding-left: 18px; font-size: 13.5px; line-height: 1.55; color: var(--ink-3);
}
.act-facts li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; border-radius: 1px; background: var(--accent);
}
.act-facts b { color: var(--ink-2); font-weight: 600; }

/* the shared window chrome ------------------------------------------- */
.mock {
  position: relative; width: 100%; max-width: 520px;
  border-radius: 16px; border: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(165deg, rgba(25, 36, 59, .95), rgba(9, 13, 23, .97));
  box-shadow: 0 44px 90px -54px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .04);
  overflow: hidden;
  backface-visibility: hidden;
}
/* the interface settles into the frame; the article's own .reveal carries
   the fade, this carries the depth */
html.js .mock { transform: rotateX(9deg) rotateY(-7deg) scale(.965); transition: transform 1s var(--ease); }
html.js .act:nth-of-type(even) .mock { transform: rotateX(9deg) rotateY(7deg) scale(.965); }
html.js .act.in .mock { transform: none; }
.mock-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px; border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .025);
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
}
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .14); flex: none; }
.mock-bar i:first-child { background: rgba(255, 95, 86, .75); }
.mock-bar i:nth-child(2) { background: rgba(255, 189, 46, .7); }
.mock-bar i:nth-child(3) { background: rgba(39, 201, 63, .6); }
.mock-bar span { margin-left: 7px; }
.mock-bar .url {
  flex: 1; margin-left: 10px; padding: 4px 10px; border-radius: 6px;
  background: rgba(255, 255, 255, .05); color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mask { color: var(--ink-3); }
/* each window should read as a different application at a glance, without
   five sets of chrome to maintain */
.mock-mail::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 72%);
}
.mock-browser .mock-bar { background: rgba(255, 255, 255, .045); }
.avatar {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--accent), #2b5fd0);
  color: #fff; font-size: 12px; font-weight: 800;
}
.avatar.sm { width: 28px; height: 28px; border-radius: 9px; font-size: 10.5px; }
.mail-who { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.mail-who b { font-size: 13.5px; }
.mail-who em { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }

/* 01 · the alert mail ------------------------------------------------- */
.mail-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 10px; }
.mail-pill {
  margin-left: auto; flex: none;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 99px;
  color: #ffd9a8; background: rgba(255, 180, 92, .12); border: 1px solid rgba(255, 180, 92, .34);
}
.mail-subject {
  padding: 2px 18px 14px; font-family: var(--mono); font-size: 13px; font-weight: 700;
  color: var(--ink); line-height: 1.45;
}
.mail-body { padding: 0 18px 20px; display: grid; gap: 10px; }
.mail-body .ml { font-size: 12.8px; line-height: 1.62; color: var(--ink-2); }
.mail-body .ml b { color: var(--ink); font-weight: 600; }
.mail-match {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 9px 11px; border-radius: 9px;
  background: rgba(74, 134, 255, .08); border: 1px solid rgba(74, 134, 255, .22);
  font-family: var(--mono); font-size: 11px;
}
.mail-match span { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.mail-match em { font-style: normal; color: var(--accent-2); }
.mail-btn {
  justify-self: start; margin-top: 4px; padding: 10px 16px; border-radius: 9px;
  background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 600;
}
html.js .mail-body .ml { opacity: 0; transform: translate3d(0, 9px, 0); }
html.js .act.in .mail-body .ml { animation: mlin .46s var(--ease) forwards; }
.act.in .ml1 { animation-delay: .26s; }
.act.in .ml2 { animation-delay: .44s; }
.act.in .ml3 { animation-delay: .62s; }
.act.in .ml4 { animation-delay: .80s; }
.act.in .ml5 { animation-delay: .98s; }
@keyframes mlin { to { opacity: 1; transform: none; } }

/* 02 · telegram ------------------------------------------------------- */
.mock-phone {
  max-width: 310px; border-radius: 30px; border-color: rgba(255, 255, 255, .14);
  background: linear-gradient(170deg, #141d2f, #070b14);
}
.phone-notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 72px; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .15);
}
.tg-head {
  display: flex; align-items: center; gap: 10px; padding: 26px 15px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.tg-chat { padding: 14px 13px 20px; display: grid; gap: 9px; justify-items: start; min-height: 214px; align-content: start; }
.tg-msg { max-width: 86%; padding: 9px 12px; border-radius: 14px; font-size: 12.3px; line-height: 1.5; }
.tg-msg.bot {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .07);
  border-bottom-left-radius: 5px; color: var(--ink-2);
}
.tg-msg.bot b { color: var(--warm); font-family: var(--mono); font-size: 12px; }
.tg-msg.bot span { color: var(--ink); }
.tg-msg.me {
  justify-self: end; border-bottom-right-radius: 5px;
  background: linear-gradient(145deg, #2f6bdd, #2454b8); color: #fff;
  font-family: var(--mono); font-size: 12px;
}
.tg-typing {
  display: flex; gap: 4px; align-items: center; max-height: 34px; overflow: hidden;
  padding: 11px 13px; border-radius: 14px; border-bottom-left-radius: 5px;
  background: rgba(255, 255, 255, .06);
}
.tg-typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }
html.js .act.in .tg-typing i { animation: tgdot 1.1s var(--ease) infinite; }
.act.in .tg-typing i:nth-child(2) { animation-delay: .15s; }
.act.in .tg-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tgdot {
  0%, 100% { opacity: .3; transform: none; }
  50% { opacity: 1; transform: translate3d(0, -3px, 0); }
}
html.js .tg-msg, html.js .tg-typing { opacity: 0; transform: translate3d(0, 8px, 0) scale(.96); }
html.js .act.in .b1 { animation: tgin .42s var(--ease) .24s forwards; }
html.js .act.in .b2 { animation: tgin .42s var(--ease) .66s forwards; }
/* the typing bubble arrives, then collapses out of the flow as the answer
   lands — the answer slides up into its place because the collapse takes
   the gap with it */
html.js .act.in .b3 { animation: tgin .42s var(--ease) .96s forwards, tgout .3s var(--ease) 1.5s forwards; }
html.js .act.in .b4 { animation: tgin .42s var(--ease) 1.64s forwards; }
@keyframes tgin { to { opacity: 1; transform: none; } }
@keyframes tgout {
  from { opacity: 1; max-height: 34px; }
  to { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin-top: -9px; }
}

/* 03 · the sensor ----------------------------------------------------- */
.mock-term .term { padding: 15px 18px 20px; font-family: var(--mono); font-size: 12px; line-height: 1.95; }
.term p { white-space: nowrap; }
.term .cmd { color: var(--ink); }
.term .cmd::before { content: "$ "; color: var(--accent-2); }
.term .out { display: flex; gap: 8px; color: var(--ink-2); }
.term .out em { font-style: normal; flex: none; width: 1em; color: var(--warm); }
.term .o1 em, .term .o5 em { color: #5fd38d; }
.term .o5 { color: var(--ink-3); }
/* type-on: the box is max-content wide and the clip travels, so the caret
   stops at the end of the text instead of at the edge of the mockup */
html.js .term .cmd {
  width: max-content; max-width: 0; overflow: hidden;
  border-right: 2px solid var(--accent-2);
}
html.js .act.in .term .cmd {
  animation: type .8s steps(45, end) .2s forwards, caret .76s steps(1, end) 1s 3;
}
@keyframes type { to { max-width: 45ch; } }
@keyframes caret { 50% { border-right-color: transparent; } }
html.js .term .out { opacity: 0; transform: translate3d(0, 6px, 0); }
html.js .act.in .term .out { animation: mlin .4s var(--ease) forwards; }
.act.in .term .o1 { animation-delay: 1.04s; }
.act.in .term .o2 { animation-delay: 1.22s; }
.act.in .term .o3 { animation-delay: 1.39s; }
.act.in .term .o4 { animation-delay: 1.56s; }
.act.in .term .o5 { animation-delay: 1.80s; }

/* 04 · shield --------------------------------------------------------- */
.shield-stage {
  display: grid; grid-template-columns: minmax(0, 1fr) 92px;
  gap: 16px; align-items: center;
  padding: 22px 18px 18px;
}
.shield-log { display: grid; gap: 8px; }
.req {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 8px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09);
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-2);
}
.req em {
  font-style: normal; margin-left: auto; flex: none;
  font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 5px;
  color: #ffb4ae; background: rgba(255, 90, 80, .14); border: 1px solid rgba(255, 110, 100, .36);
}
.req.good { border-color: rgba(95, 211, 141, .28); }
.req.good em { color: #9ae9bd; background: rgba(47, 163, 106, .16); border-color: rgba(95, 211, 141, .34); }
html.js .req { opacity: 0; transform: translate3d(-22px, 0, 0); }
html.js .act.in .req { animation: reqin .46s var(--ease) forwards; }
.act.in .q1 { animation-delay: .3s; }
.act.in .q2 { animation-delay: .62s; }
.act.in .q3 { animation-delay: 1.02s; }
@keyframes reqin { to { opacity: 1; transform: none; } }
.shield-core { position: relative; width: 92px; height: 92px; display: grid; place-items: center; }
.shield-core svg {
  width: 44px; height: 44px; fill: none; stroke: var(--accent-2); stroke-width: 1.3;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 16px rgba(74, 134, 255, .55));
}
.shield-core .ring {
  position: absolute; inset: 8px; border-radius: 50%;
  border: 1px solid rgba(74, 134, 255, .42); opacity: 0;
}
html.js .act.in .shield-core .ring { animation: ring 2.8s var(--ease) .5s infinite; }
.act.in .shield-core .ring.r2 { animation-delay: 1.9s; }
@keyframes ring {
  0% { opacity: .55; transform: scale(.55); }
  100% { opacity: 0; transform: scale(1.85); }
}
.shield-meter {
  grid-column: 1 / -1; display: flex; align-items: baseline; gap: 11px; flex-wrap: wrap;
  margin-top: 4px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .07);
}
.shield-meter b {
  font-family: var(--mono); font-size: 19px; font-weight: 700; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.shield-meter span { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

/* 05 · wordpress ------------------------------------------------------ */
.mock-wp { background: linear-gradient(170deg, rgba(22, 30, 48, .96), rgba(8, 12, 20, .97)); }
.wp-bar {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  background: #1d2327; border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-family: var(--mono); font-size: 11px; color: #c3c4c7;
}
.wp-logo { width: 16px; height: 16px; border-radius: 50%; border: 1.6px solid #c3c4c7; flex: none; }
.wp-user { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, .2); flex: none; }
.wp-body { display: grid; grid-template-columns: 44px minmax(0, 1fr); min-height: 236px; }
.wp-side { background: #1d2327; padding: 14px 0; display: grid; gap: 10px; align-content: start; justify-items: center; }
.wp-side i { width: 20px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .15); }
.wp-side i.on { width: 26px; background: var(--accent); box-shadow: 0 0 14px rgba(74, 134, 255, .6); }
.wp-panel { padding: 17px 19px 19px; background: rgba(255, 255, 255, .02); }
.wp-panel h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.wp-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .06);
  font-size: 12.3px; color: var(--ink-2);
}
.toggle {
  position: relative; width: 40px; height: 22px; border-radius: 99px; flex: none;
  background: rgba(255, 255, 255, .13); transition: background .45s var(--ease);
}
.toggle i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .45s var(--ease); }
html.js .act.in .toggle { background: #2fa36a; transition-delay: .5s; }
html.js .act.in .toggle i { transform: translate3d(18px, 0, 0); transition-delay: .5s; }
.wp-num { font-family: var(--mono); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.wp-chart { display: flex; align-items: flex-end; gap: 7px; height: 68px; margin: 16px 0 12px; }
.wp-chart i {
  flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--accent-2), rgba(74, 134, 255, .22));
  transform-origin: bottom;
}
html.js .wp-chart i { transform: scaleY(0); }
html.js .act.in .wp-chart i { animation: bar .55s var(--ease) forwards; }
.act.in .wp-chart i:nth-child(1) { animation-delay: .70s; }
.act.in .wp-chart i:nth-child(2) { animation-delay: .78s; }
.act.in .wp-chart i:nth-child(3) { animation-delay: .86s; }
.act.in .wp-chart i:nth-child(4) { animation-delay: .94s; }
.act.in .wp-chart i:nth-child(5) { animation-delay: 1.02s; }
.act.in .wp-chart i:nth-child(6) { animation-delay: 1.10s; }
.act.in .wp-chart i:nth-child(7) { animation-delay: 1.18s; }
@keyframes bar { to { transform: none; } }
.wp-foot { font-size: 11.5px; line-height: 1.55; color: var(--ink-3); }

/* the close: the argument of the section, with the live figures under it */
.field-close {
  margin-top: clamp(38px, 6vh, 76px);
  padding: clamp(26px, 4vh, 42px) clamp(22px, 4vw, 44px);
  border-radius: 20px; border: 1px solid rgba(74, 134, 255, .22);
  background: linear-gradient(150deg, rgba(26, 48, 96, .45), rgba(8, 12, 22, .6));
  display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: clamp(16px, 3vw, 32px);
  align-items: start;
  overflow: hidden;                   /* the emblem's pulse stays in the card */
}
.close-mark { position: relative; width: 76px; height: 76px; display: grid; place-items: center; }
.close-mark svg { width: 42px; height: 42px; fill: none; stroke: var(--accent-2); stroke-width: 1.2; stroke-linejoin: round; }
.close-mark .ring { position: absolute; inset: 4px; border-radius: 50%; border: 1px solid rgba(74, 134, 255, .34); opacity: 0; }
html.js .field-close.in .close-mark .ring { animation: ring 3.2s var(--ease) infinite; }
.field-close.in .close-mark .ring.r2 { animation-delay: 1.6s; }
.field-close p { font-size: clamp(15px, 1.25vw, 18px); line-height: 1.7; color: var(--ink-2); max-width: 64ch; }
.field-close p b { color: var(--ink); font-weight: 700; }
.close-figs {
  grid-column: 2; list-style: none; margin: 24px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 54px);
}
.close-figs b {
  display: block; font-family: var(--mono); font-size: clamp(19px, 2.1vw, 29px); font-weight: 700;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.close-figs span { font-family: var(--mono); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }

/* 5 — tools ------------------------------------------------------------ */
.tools { padding: clamp(64px, 9vh, 124px) 0; }
.tools .big { margin-bottom: 38px; max-width: 16ch; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.card {
  position: relative; padding: 30px 28px 26px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(23, 34, 56, .92), rgba(10, 15, 26, .92));
  border: 1px solid var(--line);
  transform-style: preserve-3d;
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: 18px; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(74, 134, 255, .16), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.card:hover { border-color: rgba(74, 134, 255, .45); box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9); }
.card:hover::after { opacity: 1; }
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.card span { display: inline-block; margin-top: 18px; font-family: var(--mono); font-size: 12px; color: var(--accent-2); }

/* 6 — manifesto -------------------------------------------------------- */
.manifesto { padding: clamp(68px, 10vh, 140px) 0; }
.manifesto blockquote {
  margin: 0; font-size: clamp(24px, 3.6vw, 52px); font-weight: 500; line-height: 1.26;
  letter-spacing: -.025em; color: var(--ink-2); max-width: 22ch;
}
.manifesto blockquote b { color: var(--ink); font-weight: 800; display: block; margin: .35em 0; }
.signature { display: flex; align-items: baseline; gap: 16px; margin-top: 52px; }
.signature span { font-size: 26px; font-weight: 900; letter-spacing: -.03em; }
.signature i { font-family: var(--mono); font-style: normal; font-size: 13px; color: var(--ink-3); }

/* 7 — the way in ------------------------------------------------------- */
.cta { padding: clamp(64px, 9vh, 120px) 0 clamp(72px, 11vh, 150px); }
.cta .say { margin-top: 22px; }
.buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.btn {
  display: inline-flex; align-items: center; padding: 15px 26px; border-radius: 12px;
  border: 1px solid var(--line); font-weight: 600; font-size: 15px;
  transition: transform .3s var(--ease), background .3s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(74, 134, 255, .5); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); }
.btn.ghost { color: var(--ink-2); }
.fineprint { margin-top: 44px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }

/* the play/stop button ------------------------------------------------
   Always on screen, because it is the only way the film starts now. Two
   states: idle shows a play mark and the word, playing shows a live pip. */
.autoplay {
  position: fixed; right: clamp(14px, 3vw, 28px); bottom: clamp(14px, 3vw, 28px); z-index: 55;
  display: flex; align-items: center; gap: 9px;
  padding: 9px 14px 9px 11px; border-radius: 99px; cursor: pointer;
  background: rgba(10, 16, 28, .72); border: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--ink-2); font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .92;
  transition: opacity .3s, border-color .3s, color .3s, background .3s;
}
.autoplay:hover, .autoplay:focus-visible { opacity: 1; color: var(--ink); border-color: rgba(74, 134, 255, .5); }
.autoplay-label { min-width: 5.4em; text-align: left; }
/* idle: a play mark. The triangle is the button's own border, so there is
   nothing extra in the DOM for it. */
.autoplay i {
  width: 0; height: 0; margin-left: 2px; border-radius: 0;
  border-left: 8px solid var(--accent);
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  transition: none;
}
/* playing: a live pip */
.autoplay.on { color: var(--ink); border-color: rgba(74, 134, 255, .42); }
.autoplay.on i {
  width: 8px; height: 8px; margin-left: 0; border: 0; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(74, 134, 255, .6); animation: pip 2s var(--ease) infinite;
}
@keyframes pip {
  0% { box-shadow: 0 0 0 0 rgba(74, 134, 255, .55); }
  70% { box-shadow: 0 0 0 9px rgba(74, 134, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 134, 255, 0); }
}

/* large displays --------------------------------------------------------
   Everything here is about fill rate. A 2560-wide viewport asks the compositor
   for four times the pixels of a laptop, and the three things that cover the
   whole screen every frame — the blended grain, the oversized map, the zoom —
   are what turn that into dropped frames. On a big screen they get cheaper,
   not prettier. */
@media (min-width: 1500px) {
  /* a full-screen blend, repainted three times a second, is the single most
     expensive thing on the page: above this width it holds still */
  .grain { animation: none; opacity: .34; }
  /* the map no longer overhangs the viewport by a fifth of its width */
  .map { width: 104%; }
}
@media (min-width: 2000px) {
  .grain { mix-blend-mode: normal; opacity: .18; }
  .map { width: 98%; }
  .vignette { background: radial-gradient(130% 95% at 50% 45%, transparent 62%, rgba(0, 0, 0, .5) 100%); }
}
/* tall displays: the copy column should not drift into the middle of nowhere */
@media (min-height: 1100px) {
  .pin { height: min(100svh, 1000px); align-content: center; }
}

/* the mockups stack before the copy column gets too narrow to read ----- */
@media (max-width: 1020px) {
  .act { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  /* with one column the alternation would only shuffle the reading order */
  .act:nth-of-type(even) .act-stage { order: 0; }
  .act-stage { perspective: none; }
  html.js .mock,
  html.js .act:nth-of-type(even) .mock { transform: translate3d(0, 14px, 0) scale(.985); }
  html.js .act.in .mock { transform: none; }
  .field-close { grid-template-columns: minmax(0, 1fr); }
  .close-figs { grid-column: 1; }
  .close-mark { width: 60px; height: 60px; }
  .close-mark svg { width: 34px; height: 34px; }
}

/* phones --------------------------------------------------------------- */
@media (max-width: 860px) {
  .topbar nav a:first-child { display: none; }
  .sticky { height: calc(100svh + min(40vh, 380px)); }
  .map { left: 50%; width: 170%; opacity: .75; }
  .map-scrim { background: linear-gradient(180deg, rgba(5, 7, 12, .55), rgba(5, 7, 12, .93) 60%); }
  .ticker { width: 200px; right: -20px; opacity: .5; }
  .facts { margin-top: 22px; }
  .act { padding: 30px 0; }
  .shield-stage { grid-template-columns: minmax(0, 1fr) 72px; }
  .shield-core { width: 72px; height: 72px; }
  .shield-core svg { width: 36px; height: 36px; }
  .term { font-size: 11px; }
  .close-figs { gap: 20px 28px; }
  .hero-stats { gap: 26px; }
}

/* accessibility -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  .scroll-cue i { animation: none; }
  .title .line > span { animation: none; transform: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .autoplay { display: none; }
  .map { transition: none; }
  /* the mockups are the finished interface, drawn once */
  html.js .mock,
  html.js .act:nth-of-type(even) .mock { transform: none; transition: none; }
  html.js .mail-body .ml,
  html.js .tg-msg,
  html.js .tg-typing,
  html.js .term .out,
  html.js .req,
  html.js .wp-chart i {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
  html.js .term .cmd { animation: none !important; max-width: none; border-right: 0; }
  html.js .act.in .tg-typing i,
  html.js .act.in .shield-core .ring,
  html.js .field-close.in .close-mark .ring { animation: none; }
  .shield-core .ring, .close-mark .ring { opacity: 0; }
  html.js .toggle { background: #2fa36a; transition: none; }
  html.js .toggle i { transform: translate3d(18px, 0, 0); transition: none; }
}
