/* ─────────────────────────────────────────────────────────────
   Neque — public site.

   One theme, dark, on purpose: this site lives in the machine room
   rather than following the browser setting. So every colour is
   written out explicitly and none hides behind a media query.

   Fonts are served from our own host. Google Fonts loaded from
   Google's servers is not an option: it hands the visitor's address
   to a third party, and Germany has already fined people for it.
   scripts/fetch_fonts.py puts the files in place. Without them the
   system fallbacks take over and the layout still holds.
   ───────────────────────────────────────────────────────────── */

@font-face{
  font-family:"Archivo"; font-style:normal; font-weight:400 800;
  font-stretch:75% 125%; font-display:swap;
  src:url("/static/fonts/archivo.woff2") format("woff2-variations");
}
@font-face{
  font-family:"Plex Sans"; font-style:normal; font-weight:400;
  font-display:swap; src:url("/static/fonts/plex-sans-400.woff2") format("woff2");
}
@font-face{
  font-family:"Plex Sans"; font-style:normal; font-weight:500;
  font-display:swap; src:url("/static/fonts/plex-sans-500.woff2") format("woff2");
}
@font-face{
  font-family:"Plex Mono"; font-style:normal; font-weight:400;
  font-display:swap; src:url("/static/fonts/plex-mono-400.woff2") format("woff2");
}

:root{
  --ink:      #0B0D10;
  --ink-2:    #12161B;
  --ink-3:    #171C23;
  --line:     #242B34;
  --line-soft:#1A2028;

  --paper:      #E3E4DF;
  --paper-line: #CFD0C9;

  --fg:        #F2F3F1;
  --fg-dim:    #98A0AA;
  --fg-faint:  #5C646E;
  --on-paper:  #12161B;

  /* accent: tally red — the on-air lamp */
  --accent:      #E8442A;
  --accent-weak: rgba(232,68,42,.13);
  --ok:          #5FD08A;
  --warn:        #E4C878;

  /* portfolio card grounds — a second, quieter palette */
  --sage:  #B9C7A8;
  --sand:  #E4C878;
  --peri:  #B4B2E4;

  --display: "Archivo", "Arial Black", Helvetica, sans-serif;
  --body:    "Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    "Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gut: clamp(20px, 5vw, 72px);
  --maxw: 1280px;
}

*{ box-sizing:border-box; }
/* clip, not hidden - on both elements. 'hidden' set on <body> alone still
   leaves the page pannable on Android Chrome, and a few stray pixels from an
   entrance animation are enough to let a finger drag the whole layout
   sideways. But 'hidden' left on <body> is worse than pointless: it makes the
   body a scroll container, the sticky header then sticks to that container
   instead of to the window, and the header scrolled away on every page.
   'clip' creates no scroll container, so sticky positioning keeps working. */
html{ scroll-behavior:smooth; overflow-x:clip; }

body{
  margin:0;
  background:var(--ink);
  color:var(--fg);
  font-family:var(--body);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  overflow-x:clip;
  /* A column, so a short page still puts its footer on the floor. Without it
     the 404 and the thank-you page ended with the footer stranded halfway up
     the screen and dead space beneath it, which reads as a page that failed to
     finish loading. Flex changes nothing for the long pages: main simply grows
     past the screen as before. */
  display:flex; flex-direction:column;
  min-height:100vh; min-height:100dvh;
}
main{ flex:1 0 auto; }

a{ color:inherit; text-decoration:none; }
:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }

/* Nothing on this page is editable, so nothing should look editable. The
   I-beam pointer and - with caret browsing on - a blinking caret both say
   "type here" on text that takes no input. Headings and labels get the arrow;
   running copy keeps the I-beam, because people do select and copy it. */
body{ caret-color:transparent; }
input, textarea, select{ caret-color:var(--accent); }
h1, h2, h3, h4, .display, .eyebrow, .stat, .tag, .n, .when, .price, .rate,
.stackline, .mark, nav, footer, .tile b, .tile span, .kicker, .metric span{
  cursor:default;
}
/* ...but anything that actually does something keeps the hand. The rule above
   is about text that takes no input, not about links inside it. */
a[href], button, .menu-top, .burger, select, label{ cursor:pointer; }
input[type="text"], input[type="email"], textarea{ cursor:auto; }

.wrap{ max-width:var(--maxw); margin:0 auto; padding-inline:var(--gut); }
[id]{ scroll-margin-top:96px; }

.skip{
  position:absolute; left:-9999px; top:0; z-index:100;
  background:var(--accent); color:#fff; padding:10px 16px; border-radius:0 0 8px 0;
  font-family:var(--mono); font-size:13px;
}
.skip:focus{ left:0; }

/* ── shared type ───────────────────────────────────── */
.display{
  font-family:var(--display);
  font-variation-settings:"wdth" 118;
  font-weight:600;
  text-transform:lowercase;
  letter-spacing:-.035em;
  line-height:.94;
  text-wrap:balance;
  margin:0;
}
.eyebrow{
  font-family:var(--mono); font-size:11px; letter-spacing:.18em;
  text-transform:uppercase; color:var(--fg-faint);
  margin:0 0 clamp(24px,4vw,48px);
  display:flex; align-items:center; gap:14px;
}
.eyebrow::after{ content:""; flex:1; height:1px; background:var(--line); }
.eyebrow.center{ justify-content:center; }
.eyebrow.center::after{ display:none; }
.lede{ color:var(--fg-dim); font-size:clamp(16px,1.5vw,19px); max-width:56ch; }

/* The house signature: one word held between two marks.
   This used to be a full rounded rectangle, which - red border, rounded
   corners, text inside - read as a form field, and people tried to type in
   it. Brackets frame the word without pretending to accept input. */
.tally{
  position:relative; display:inline-block;
  padding:.02em .3em .07em;
}
.tally::before, .tally::after{
  content:""; position:absolute; top:-.04em; bottom:.04em;
  width:.22em; border:.055em solid var(--accent); pointer-events:none;
}
.tally::before{ left:-.06em; border-right:0; }
.tally::after{ right:-.06em; border-left:0; }
@keyframes pulse{
  0%{ box-shadow:0 0 0 0 rgba(232,68,42,.5); }
  70%,100%{ box-shadow:0 0 0 .22em rgba(232,68,42,0); }
}

/* ── header ───────────────────────────────────────────────── */
header{
  position:sticky; top:0; z-index:50;
  background:rgba(11,13,16,.82);
  backdrop-filter:blur(14px);
  border-bottom:1px solid transparent;
  transition:border-color .3s;
}
header.stuck{ border-bottom-color:var(--line-soft); }
.bar{
  display:flex; align-items:center; gap:clamp(16px,2.4vw,34px);
  height:68px; max-width:var(--maxw); margin:0 auto; padding-inline:var(--gut);
}
.mark{
  font-family:var(--display); font-variation-settings:"wdth" 100;
  font-weight:800; font-size:19px; letter-spacing:.02em;
  display:flex; align-items:center; gap:9px;
}
.mark{ transition:opacity .2s; }
.mark:hover{ opacity:.72; }   /* a cursor alone did not read as clickable */
.dot{ width:8px; height:8px; border-radius:50%; background:var(--accent); animation:pulse 2.8s ease-out infinite; }
/* The menu. One list, styled two ways: a hover/focus dropdown on a wide
   screen, the burger panel on a narrow one. */
.nav{ margin-left:auto; display:flex; align-items:center; gap:18px; }
.menu{ display:flex; align-items:center; gap:clamp(10px,1.4vw,22px); list-style:none; margin:0; padding:0; }
.menu > li{ position:relative; }
.menu-top{
  font-family:var(--mono); font-size:12.5px; letter-spacing:.04em; text-transform:uppercase;
  color:var(--fg-dim); background:none; border:0; padding:10px 2px; cursor:pointer;
  display:inline-flex; align-items:center; gap:7px; white-space:nowrap; transition:color .2s;
}
.menu-top:hover, .has-sub:hover .menu-top, .has-sub:focus-within .menu-top{ color:var(--fg); }
.chev{
  width:5px; height:5px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor;
  transform:rotate(45deg) translate(-1px,-1px); transition:transform .2s;
}
.has-sub:hover .chev, .has-sub:focus-within .chev, .has-sub.open .chev{
  transform:rotate(225deg) translate(-2px,-2px);
}
.sub{
  position:absolute; top:100%; left:-14px; min-width:340px;
  list-style:none; margin:0; padding:8px;
  background:var(--ink-2); border:1px solid var(--line); border-radius:16px;
  box-shadow:0 24px 60px rgba(0,0,0,.55);
  opacity:0; visibility:hidden; transform:translateY(-6px);
  transition:opacity .18s, transform .18s, visibility .18s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub{ opacity:1; visibility:visible; transform:none; }
.sub a{ display:block; padding:11px 13px; border-radius:11px; transition:background .18s; }
.sub a:hover{ background:var(--ink-3); }
.sub b{
  display:block; font-family:var(--body); font-size:14.5px; font-weight:500;
  text-transform:none; letter-spacing:normal; color:var(--fg); margin-bottom:3px;
}
.sub span{
  display:block; font-family:var(--body); font-size:12.5px; line-height:1.5;
  color:var(--fg-faint); text-transform:none; letter-spacing:normal;
}
.nav-cta, .burger{ display:none; }
.btn{
  font-family:var(--mono); font-size:12.5px; letter-spacing:.06em; text-transform:uppercase;
  padding:11px 20px; border-radius:999px; background:var(--accent); color:#fff;
  border:1px solid var(--accent); cursor:pointer;
  transition:transform .2s, filter .2s; white-space:nowrap;
}
.btn:hover{ filter:brightness(1.1); transform:translateY(-1px); }
.btn.ghost{ background:transparent; color:var(--fg); border-color:var(--line); }
.btn.ghost:hover{ border-color:var(--fg-dim); filter:none; }
@media (max-width:1080px){
  .bar-cta{ display:none; }
  .burger{
    display:flex; flex-direction:column; justify-content:center; gap:5px;
    width:44px; height:40px; margin-left:auto; padding:0 9px;
    background:none; border:1px solid var(--line); border-radius:12px; cursor:pointer;
  }
  .burger i{ display:block; height:2px; background:var(--fg); border-radius:2px;
             transition:transform .25s, opacity .2s; }
  .burger[aria-expanded="true"] i:nth-child(1){ transform:translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] i:nth-child(2){ opacity:0; }
  .burger[aria-expanded="true"] i:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

  /* Height is stated outright rather than left to bottom:0. The header
     carries a backdrop-filter, and a filtered ancestor becomes the containing
     block for its fixed children - so 'bottom:0' meant the bottom of the
     71px header, and the panel collapsed to one visible row with the page
     showing through underneath. dvh, so the phone's address bar is counted. */
  .nav{
    position:fixed; top:68px; left:0; right:0; bottom:auto; margin:0; display:block;
    height:calc(100vh - 68px); height:calc(100dvh - 68px);
    background:var(--ink); border-top:1px solid var(--line-soft);
    padding:14px var(--gut) 60px; overflow-y:auto; -webkit-overflow-scrolling:touch;
    opacity:0; visibility:hidden; transform:translateY(-8px);
    transition:opacity .25s, transform .25s, visibility .25s;
  }
  .nav.open{ opacity:1; visibility:visible; transform:none; }
  .menu{ flex-direction:column; align-items:stretch; gap:0; }
  .menu > li{ border-bottom:1px solid var(--line-soft); }
  .menu-top{ width:100%; justify-content:space-between; padding:17px 0; font-size:13px; color:var(--fg); }
  /* The dropdown becomes an accordion: laid out in place, opened by height
     rather than by visibility, so a tap and a keyboard both work. */
  .sub{
    position:static; min-width:0; opacity:1; visibility:visible; transform:none;
    background:none; border:0; box-shadow:none; padding:0;
    max-height:0; overflow:hidden; transition:max-height .3s ease;
  }
  .has-sub.open .sub{ max-height:1200px; padding-bottom:10px; }
  .sub a{ padding:12px 0 12px 14px; border-left:2px solid var(--line); border-radius:0; }
  .sub a:hover{ background:none; border-left-color:var(--accent); }
  .nav-cta{ display:inline-block; margin-top:24px; }
}
/* The lock goes on the root, not on <body>. On <body> it is the same trap as
   overflow-x above: body becomes a scroll container, the sticky header sticks
   to that instead of to the window, and opening the burger halfway down a page
   threw the header and the panel hanging off it both off screen. On the root
   the hidden overflow propagates to the viewport, which is what freezes the
   page anyway, and sticky keeps its bearings. */
html.nav-lock{ overflow:hidden; }

/* ── hero ───────────────────────────────────────────────── */
/* padding-block, never the padding shorthand: every one of these classes is
   worn together with .wrap, and .wrap is what supplies the side gutter. The
   shorthand's '0' for the inline sides overwrote it, so on any viewport
   narrower than the 1280px max-width - every phone - the text ran into both
   edges of the screen. */
.hero{ padding-block:clamp(56px,9vw,120px) clamp(40px,6vw,80px); text-align:center; position:relative; overflow:hidden; }
.hero h1{ font-size:clamp(44px,9.4vw,140px); }
.hero .lede{ margin:clamp(22px,3vw,34px) auto 0; }
/* The 404 wears the hero, and carries the same crystal. It is the whole page
   rather than the top of one, so it holds a screen's height and the footer
   lands where a visitor expects it instead of halfway up. */
/* Tighter than the home page's hero: that one opens a long scroll and can
   afford the air, this one has to fit the crystal and the footer on a single
   screen or it stops being a dead end and becomes a page to scroll. */
.hero.lost{
  min-height:60vh; display:flex; flex-direction:column; justify-content:center;
  padding-block:clamp(36px,5vw,72px) clamp(20px,3vw,40px);
}
/* The lettering on the home page is deliberately faint - it is a signature
   there, and the eye is meant to go to the headline. Here the crystal is
   carrying the error code itself, so it has to be read rather than sensed:
   the number is set in the accent, twice the size, and the turn is slowed so
   it holds still long enough to be taken in. The crystal itself stays at the
   home page's scale: it was 1.12 here once, and since the stage's height now
   follows the scale that cost the page 36px of extra scroll on a desktop for
   no gain in legibility - the number is a fixed 44px either way. */
.hero.lost .gem{ animation-duration:34s; }
.hero.lost .facet b{ color:var(--fg-dim); }
.hero.lost .facet b.code{
  font-size:44px; letter-spacing:.12em; text-indent:.12em; color:var(--accent);
}
.hero.lost .facet{ border-color:#2C3540; }
/* The side pair is held back to 55% on the home page so it reads as depth
   rather than as a second slab. Here it is lettered too, so it has to be
   legible when it comes round - close to the front pair, still under it. */
.hero.lost .facet.b.front, .hero.lost .facet.b.back{ opacity:.85; }
.cta-row{ display:flex; gap:12px; flex-wrap:wrap; justify-content:center; margin-top:clamp(28px,4vw,44px); }

/* The stage holds the object: it sets the height, the perspective and the
   centring. It lives here rather than on .gem so the object can be swapped
   without taking the layout with it — which is exactly what happened once. */
/* Its height follows the object's scale, not the window. Standing on its
   corner the crystal is about 293px tall at --s:1, and the old height of
   clamp(200px,24vw,300px) only reached that past 1250px: on a tablet the stage
   was 200-250px, the crystal overran it by 40-50px at each end and sat on the
   buttons above and the rail below. 300px per unit of scale clears it at every
   width; the 200px floor keeps the phone layout exactly as it was. */
.stage{
  --s:1; position:relative; height:max(200px, calc(var(--s) * 300px));
  display:grid; place-items:center; perspective:1300px; margin-top:clamp(20px,4vw,44px);
}
.glow{
  position:absolute; left:50%; bottom:2%; translate:-50% 0;
  width:min(760px,88vw); height:62%;
  background:radial-gradient(58% 100% at 50% 100%, rgba(232,68,42,.6), rgba(232,68,42,.12) 45%, transparent 72%);
  filter:blur(26px); pointer-events:none;
}

/* The object: a crystal turning on its axis, lit from below.
   It used to be a rectangular slab, but text on a flat face reads mirrored the
   moment that face turns away from you — you cannot letter more than one side
   of a box and keep it legible. Two diamonds crossed at right angles solve
   both problems: the name sits on the front of one plane and the word on its
   back, each hidden by backface-visibility when it faces away, and the second
   plane means the shape is never edge-on and paper-thin. */
.gem{
  position:relative; width:210px; height:210px;
  transform-style:preserve-3d; scale:var(--s);
  animation:turn 22s linear infinite;
}
.facet{
  position:absolute; inset:0;
  display:grid; place-items:center;
  backface-visibility:hidden;
  border:1px solid var(--line); border-radius:10px;
  background:linear-gradient(150deg, #1C222B 0%, #141920 46%, #0D1116 100%);
  box-shadow:inset -1px -1px 0 0 rgba(232,68,42,.4);
}
/* Facet lines: two hairlines crossing the square become the vertical and
   horizontal ridges of the diamond once it is turned 45 degrees. */
.facet::before{
  content:""; position:absolute; inset:0; border-radius:10px;
  background:
    linear-gradient(to bottom right, transparent 49.6%, rgba(255,255,255,.055) 49.8%, transparent 50.2%),
    linear-gradient(to bottom left,  transparent 49.6%, rgba(255,255,255,.035) 49.8%, transparent 50.2%);
}
.facet.a.front{ transform:rotateZ(45deg); }
.facet.a.back { transform:rotateY(180deg) rotateZ(45deg); }
.facet.b.front{ transform:rotateY(90deg)  rotateZ(45deg); opacity:.55; }
.facet.b.back { transform:rotateY(270deg) rotateZ(45deg); opacity:.55; }
.facet b{
  position:relative; transform:rotateZ(-45deg);   /* keep the lettering upright */
  font-family:var(--display); font-variation-settings:"wdth" 100;
  font-weight:800; font-size:17px; letter-spacing:.34em; text-indent:.34em;
  color:#454E59; white-space:nowrap;
}
@keyframes turn{
  from{ transform:rotateX(-10deg) rotateY(0deg); }
  to  { transform:rotateX(-10deg) rotateY(360deg); }
}
/* The 404's own scale has to be repeated here, not left to the line above:
   .hero.lost .stage outranks a bare .stage whatever the viewport, so without
   this the crystal kept its desktop size on a phone, sat on top of the second
   button and pushed the page off the bottom of the screen. */
@media (max-width:700px){
  .stage{ --s:.6; }
  /* Shorter as well as smaller: the stage keeps its 200px floor whatever the
     scale, and those left-over pixels were the difference between the footer
     sitting on the fold and hanging just below it. */
  /* Turned 45 degrees the square stands on its corner, so what has to fit the
     stage is its diagonal - the side times 1.41 - not its width. At .62 the
     tips were being cut off by the hero's own overflow. */
  .hero.lost .stage{ --s:.52; height:168px; margin-top:10px; }
}

.rail{
  margin-top:clamp(32px,5vw,56px);
  border:1px solid var(--line-soft); border-radius:14px; background:var(--ink-2);
  padding:16px 18px; display:flex; align-items:center; justify-content:center; gap:22px; flex-wrap:wrap;
}
.stat{ font-family:var(--mono); font-size:12px; color:var(--fg-dim); font-variant-numeric:tabular-nums; margin:0; }
.stat b{ color:var(--fg); font-weight:500; }
.stat .ok{ color:var(--ok); }

/* ── technology mosaic ──────────────────────────────────── */
.tech{ padding-block:clamp(72px,10vw,140px) 0; }
.tech h2{ font-size:clamp(30px,4.6vw,60px); text-align:center; max-width:20ch; margin-inline:auto; }
.mosaic{ margin-top:clamp(40px,5vw,72px); display:grid; grid-template-columns:repeat(6,1fr); gap:clamp(8px,1vw,14px); }
.tile{
  background:var(--ink-2); border:1px solid var(--line-soft); border-radius:16px;
  aspect-ratio:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px;
  transition:border-color .25s, background .25s, transform .25s;
}
.tile:hover{ border-color:var(--line); background:var(--ink-3); transform:translateY(-3px); }
.tile b{
  font-family:var(--display); font-variation-settings:"wdth" 105;
  font-weight:700; font-size:clamp(20px,2.6vw,30px); color:var(--fg); line-height:1;
}
.tile span{
  font-family:var(--mono); font-size:10px; letter-spacing:.1em; text-transform:uppercase;
  color:var(--fg-faint); text-align:center; padding-inline:6px;
}
.tile.wide{ grid-column:span 2; aspect-ratio:2/1; }
/* Every tile reads the same until the cursor picks one out. Colouring a few by
   default implied a ranking that does not exist - they are all things we use. */
.tile b{ transition:color .2s; }
.tile:hover b{ color:var(--accent); }
.tile:hover span{ color:var(--fg-dim); }
@media (max-width:900px){ .mosaic{ grid-template-columns:repeat(4,1fr); } }
@media (max-width:560px){ .mosaic{ grid-template-columns:repeat(3,1fr); } .tile.wide{ grid-column:span 3; } }

/* ── services: the light zigzag ──────────────────────────────── */
.services{
  background:var(--paper); color:var(--on-paper);
  padding:clamp(72px,10vw,140px) 0 clamp(80px,11vw,150px);
  margin-top:clamp(64px,9vw,120px);
}
.services .eyebrow{ color:#6E7168; }
.services .eyebrow::after{ background:var(--paper-line); }
.services h2{ font-size:clamp(34px,5.6vw,76px); max-width:16ch; }
.services .lede{ color:#4E5249; margin-top:22px; }
.services .lede b{ color:var(--on-paper); font-weight:500; }

/* The rail runs down the middle and every card taps into it. A trace is
   exactly half the column gap, because that is the real distance from a card
   edge to the centre line. Hard-coding the whole gap made every line overrun
   the rail by its own length, which is what made them look crooked. */
.zig{
  --gap: clamp(24px,4vw,64px);
  --tap: calc(var(--gap) / 2);
  position:relative; margin-top:clamp(52px,7vw,96px);
  display:grid; grid-template-columns:1fr 1fr;
  column-gap:var(--gap); row-gap:clamp(20px,3vw,40px);
}
.zig::before{ content:""; position:absolute; inset-block:-24px; left:50%; width:2px;
              margin-left:-1px; background:var(--paper-line); }
/* The lit part of the rail grows as the section passes through the viewport.
   --rail comes from site.js; with no script it stays 0 and the rail is simply
   quiet, which is a fine resting state rather than a broken one. */
.zig::after{
  content:""; position:absolute; top:-24px; left:50%; width:2px; margin-left:-1px;
  height:calc(var(--rail,0) * (100% + 48px));
  background:linear-gradient(180deg, var(--accent), rgba(232,68,42,.35));
}
.card{
  background:var(--ink-2); color:var(--fg); border-radius:20px;
  padding:clamp(24px,2.6vw,36px); position:relative;
  display:flex; flex-direction:column; gap:14px; min-height:230px;
}
.card:nth-child(odd){ grid-column:1; }
.card:nth-child(even){ grid-column:2; margin-top:clamp(40px,7vw,110px); }
/* trace + tap, drawn outward from the rail as the card arrives */
.card::before{
  content:""; position:absolute; top:calc(50% - 1px); width:var(--tap); height:2px;
  background:var(--paper-line);
  transform:scaleX(0);
  transition:transform .55s cubic-bezier(.16,1,.3,1) var(--d,0ms), background .25s;
}
.card::after{
  content:""; position:absolute; top:50%; width:11px; height:11px; border-radius:50%;
  background:var(--paper); border:2px solid var(--paper-line);
  transform:translate(-50%,-50%) scale(0);
  transition:transform .4s cubic-bezier(.34,1.56,.64,1) calc(var(--d,0ms) + 380ms),
             border-color .25s, background .25s;
}
.card:nth-child(odd)::before { left:100%;  transform-origin:right; }
.card:nth-child(even)::before{ right:100%; transform-origin:left; }
.card:nth-child(odd)::after { left:calc(100% + var(--tap)); }
.card:nth-child(even)::after{ right:calc(100% + var(--tap)); transform:translate(50%,-50%) scale(0); }
.card.in::before{ transform:scaleX(1); }
.card.in::after { transform:translate(-50%,-50%) scale(1); }
.card:nth-child(even).in::after{ transform:translate(50%,-50%) scale(1); }
/* Hover lights the whole path back to the rail, so it is obvious which tap
   belongs to which card. */
.card:hover::before{ background:var(--accent); }
.card:hover::after { border-color:var(--accent); background:var(--accent); }
/* A touch screen has no hover, and the tap that never lights up reads as a
   decoration rather than a connection. Below 820px the card the rail has
   drawn level with is lit instead - site.js marks it as you scroll. No lift
   to go with it: shifting a card while somebody is scrolling past it is a
   different thing from answering their cursor. */
@media (max-width:820px){
  .card.lit::before{ background:var(--accent); }
  .card.lit::after { border-color:var(--accent); background:var(--accent); }
  .card.lit{ box-shadow:0 22px 44px -26px rgba(232,68,42,.75); }
  .card.lead.lit{ box-shadow:inset 0 0 0 1px var(--accent-weak),
                              0 22px 44px -26px rgba(232,68,42,.75); }
}
.card h3{
  font-family:var(--display); font-variation-settings:"wdth" 112;
  font-weight:600; text-transform:lowercase; letter-spacing:-.02em;
  font-size:clamp(21px,2.1vw,29px); line-height:1.05; margin:0;
}
.card p{ margin:0; color:var(--fg-dim); font-size:15px; }
.card ul{ margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:5px; }
.card li{ font-size:14px; color:var(--fg-dim); padding-left:16px; position:relative; }
.card li::before{ content:""; position:absolute; left:0; top:9px; width:5px; height:5px; border-radius:1px; background:var(--fg-faint); }
.stackline{
  padding-top:14px; border-top:1px solid var(--line);
  font-family:var(--mono); font-size:11.5px; line-height:1.7; color:var(--fg-dim);
}
.stackline em{
  font-style:normal; color:var(--fg-faint); letter-spacing:.12em;
  text-transform:uppercase; font-size:10px; display:block; margin-bottom:5px;
}
.card .price{
  margin-top:auto; font-family:var(--mono); font-size:13px; color:var(--fg);
  font-variant-numeric:tabular-nums; display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap;
}
.card.lead{ box-shadow:inset 0 0 0 1px var(--accent-weak); }
.card.lead h3{ color:var(--accent); }

@media (max-width:820px){
  .zig{ --tap:28px; grid-template-columns:1fr; }
  .zig::before, .zig::after{ left:0; margin-left:0; }
  .card:nth-child(odd),.card:nth-child(even){ grid-column:1; margin-top:0; margin-left:28px; }
  .card:nth-child(odd)::before, .card:nth-child(even)::before{
    left:auto; right:100%; width:var(--tap); transform-origin:left;
  }
  .card:nth-child(odd)::after, .card:nth-child(even)::after{
    left:auto; right:calc(100% + var(--tap)); transform:translate(50%,-50%) scale(0);
  }
  .card:nth-child(odd).in::after, .card:nth-child(even).in::after{
    transform:translate(50%,-50%) scale(1);
  }
}

/* ── portfolio ───────────────────────────────────────────── */
.folio{ padding-block:clamp(80px,11vw,150px) 0; }
.folio h2{ font-size:clamp(34px,5.6vw,72px); }
.folio-grid{ margin-top:clamp(44px,6vw,80px); display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(16px,2vw,28px); }
.pcard{ display:flex; flex-direction:column; gap:18px; }
.frame{ background:var(--c,var(--sage)); border-radius:22px; padding:clamp(16px,1.8vw,24px);
        transition:transform .35s cubic-bezier(.16,1,.3,1); }
.c-sage{ --c:var(--sage); }
.c-sand{ --c:var(--sand); }
.c-peri{ --c:var(--peri); }
.pcard:hover .frame{ transform:translateY(-6px); }
/* A container, so what is drawn inside answers to the width of the frame and
   not to the width of the browser. That is what lets the same markup be shown
   at phone width on a desktop - and it settles the sizing for good besides: an
   inline-size container does not let its contents dictate its own width, so
   nothing inside a drawing can push the page sideways again. */
.shot{ border-radius:12px; overflow:hidden; background:#0E1116; aspect-ratio:4/3;
       display:flex; flex-direction:column; border:1px solid rgba(0,0,0,.25);
       container-type:inline-size; container-name:mock; }
.chrome{ height:22px; background:#171C23; display:flex; align-items:center; gap:5px; padding-inline:9px; flex:none; }
.chrome i{ width:6px; height:6px; border-radius:50%; background:#2A323C; }
.chrome u{ flex:1; height:8px; border-radius:4px; background:#1F252D; margin-left:6px; text-decoration:none; }
.ui{ flex:1; padding:12px; display:flex; gap:8px; min-height:0; }
.ui .col{ display:flex; flex-direction:column; gap:6px; flex:1; min-height:0; }
.ui .side{ width:26%; display:flex; flex-direction:column; gap:5px; }
.b{ border-radius:4px; background:#1C222A; }
.b.h{ height:9px; } .b.m{ height:7px; } .b.s{ height:5px; }
.b.w70{ width:70%; } .b.w45{ width:45%; } .b.w90{ width:90%; }
.b.accent{ background:var(--accent); opacity:.85; }
.b.ok{ background:var(--ok); opacity:.7; }
.b.grow{ flex:1; }
.bars{ display:flex; align-items:flex-end; gap:4px; flex:1; }
.bars i{ flex:1; background:#232A33; border-radius:2px 2px 0 0; }
.bars i.hi{ background:var(--accent); }
.bh1{ height:34%; } .bh2{ height:58%; } .bh3{ height:41%; } .bh4{ height:82%; }
.bh5{ height:50%; } .bh6{ height:66%; } .bh7{ height:38%; } .bh8{ height:72%; }
.pmeta h3{
  margin:0 0 8px; font-family:var(--display); font-variation-settings:"wdth" 112;
  font-weight:600; text-transform:lowercase; letter-spacing:-.02em;
  font-size:clamp(19px,1.9vw,25px); line-height:1.1;
}
.pmeta p{ margin:0 0 12px; color:var(--fg-dim); font-size:14.5px; }
.tags{ display:flex; flex-wrap:wrap; gap:6px; }
.tag{
  font-family:var(--mono); font-size:10px; letter-spacing:.09em; text-transform:uppercase;
  color:var(--fg-faint); border:1px solid var(--line); border-radius:999px; padding:4px 9px; font-style:normal;
}
@media (max-width:900px){ .folio-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:640px){ .folio-grid{ grid-template-columns:1fr; } }

/* ── how we build ────────────────────────────────────────── */
.process{ padding-block:clamp(80px,11vw,150px); }
.process h2{ font-size:clamp(34px,5.6vw,72px); max-width:15ch; }
.steps{
  margin-top:clamp(48px,6vw,84px); display:grid; grid-template-columns:repeat(4,1fr); gap:1px;
  background:var(--line-soft); border:1px solid var(--line-soft); border-radius:18px; overflow:hidden;
}
.step{ background:var(--ink); padding:clamp(24px,2.4vw,34px); display:flex; flex-direction:column; gap:12px; }
.step .n{ font-family:var(--mono); font-size:12px; color:var(--accent); letter-spacing:.1em; }
.step h4{ margin:0; font-size:19px; font-weight:500; }
.step p{ margin:0; color:var(--fg-dim); font-size:14.5px; }
.step .when{ margin-top:auto; padding-top:14px; font-family:var(--mono); font-size:11.5px; color:var(--fg-faint); }
@media (max-width:900px){ .steps{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .steps{ grid-template-columns:1fr; } }

/* ── engagement models ──────────────────────────────────────── */
.models{ padding-block:0 clamp(80px,11vw,150px); }
.models h2{ font-size:clamp(34px,5.6vw,72px); }
.model-grid{ margin-top:clamp(40px,5vw,72px); display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(16px,2vw,26px); }
.model{
  border:1px solid var(--line-soft); border-radius:18px; padding:clamp(24px,2.6vw,34px);
  display:flex; flex-direction:column; gap:12px; transition:border-color .3s;
}
.model:hover{ border-color:var(--line); }
.model h4{ margin:0; font-size:20px; font-weight:500; }
.model p{ margin:0; color:var(--fg-dim); font-size:14.5px; }
.model .rate{ margin-top:auto; padding-top:16px; font-family:var(--mono); font-size:13px; color:var(--fg); font-variant-numeric:tabular-nums; }
@media (max-width:820px){ .model-grid{ grid-template-columns:1fr; } }

/* ── contact form ───────────────────────────────────────────────── */
.contact{ border-top:1px solid var(--line-soft);
          padding-block:clamp(80px,11vw,150px) clamp(56px,7vw,90px); }
.contact h2{ font-size:clamp(40px,7.4vw,108px); }
.contact-grid{
  display:grid; grid-template-columns:.8fr 1.2fr; gap:clamp(32px,5vw,72px);
  align-items:start; margin-top:clamp(36px,5vw,60px);
}
.channels{ display:flex; flex-direction:column; gap:14px; }
.channel{
  display:flex; align-items:baseline; gap:14px; padding-bottom:14px;
  border-bottom:1px solid var(--line-soft); font-family:var(--mono); font-size:15px;
  transition:border-color .25s; word-break:break-all;
}
.channel:hover{ border-bottom-color:var(--accent); }
.channel span{ font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--fg-faint); min-width:78px; flex:none; }
.terms{ font-family:var(--mono); font-size:12.5px; color:var(--fg-dim); line-height:2; margin-top:26px; }
.terms ul{ margin:0; padding:0; }
.terms li{ list-style:none; }
.terms b{ color:var(--fg); font-weight:500; }

form{ display:flex; flex-direction:column; gap:14px; }
.row{ display:flex; gap:14px; flex-wrap:wrap; }
.row > label{ flex:1 1 200px; }
label{ display:flex; flex-direction:column; gap:7px; font-family:var(--mono); font-size:11px;
       letter-spacing:.12em; text-transform:uppercase; color:var(--fg-faint); }
input, textarea, select{
  font-family:var(--body); font-size:15px; color:var(--fg);
  background:var(--ink-2); border:1px solid var(--line); border-radius:12px;
  padding:12px 14px; width:100%; letter-spacing:normal; text-transform:none;
  transition:border-color .2s;
}
input:hover, textarea:hover, select:hover{ border-color:#2E3742; }
input:focus, textarea:focus, select:focus{ outline:none; border-color:var(--accent); }
textarea{ min-height:130px; resize:vertical; }
select{ appearance:none; cursor:pointer; }
/* honeypot: a person never sees this field, a bot fills it in */
.hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.form-note{ font-family:var(--mono); font-size:11.5px; color:var(--fg-faint); line-height:1.7; margin:0; }
.form-note a{ color:var(--fg-dim); text-decoration:underline; }
.msg{ font-family:var(--mono); font-size:13px; border-radius:12px; padding:12px 14px; margin:0; }
.msg.bad{ color:var(--accent); border:1px solid var(--accent-weak); background:rgba(232,68,42,.06); }
.msg.good{ color:var(--ok); border:1px solid rgba(95,208,138,.25); background:rgba(95,208,138,.06); }
.hidden{ display:none; }
@media (max-width:900px){ .contact-grid{ grid-template-columns:1fr; } }

/* ── footer ──────────────────────────────────────────────── */
footer{
  border-top:1px solid var(--line-soft); padding:26px 0 40px;
  font-family:var(--mono); font-size:11.5px; color:var(--fg-faint);
  display:flex; gap:20px; flex-wrap:wrap; justify-content:space-between;
}
/* Quieter than the line above it: a copyright notice is a fact on the record,
   not something anybody came here to read. */
.copy{ display:inline-block; margin-top:7px; font-weight:400; color:#4E5764; }

/* The notice along the bottom. [hidden] needs saying out loud here: the
   attribute sets display:none in the browser's own sheet, and a display:flex
   of ours would quietly outrank it and show the bar to everybody, always. */
.note{
  position:fixed; left:0; right:0; bottom:0; z-index:150;
  display:flex; align-items:center; gap:clamp(12px,2vw,26px);
  padding:14px var(--gut); background:var(--ink-2);
  border-top:1px solid var(--line);
  font-size:13px; line-height:1.5; color:var(--fg-dim);
}
.note[hidden]{ display:none; }
.note p{ margin:0; max-width:86ch; }
.note a{ color:var(--fg); text-decoration:underline; text-underline-offset:3px; }
.note a:hover{ color:var(--accent); }
.note .btn{ flex:none; margin-left:auto; font-size:11.5px; padding:9px 18px; }
@media (max-width:760px){
  .note{ flex-direction:column; align-items:flex-start; gap:11px; }
  .note .btn{ margin-left:0; align-self:stretch; text-align:center; }
}
footer a:hover{ color:var(--fg-dim); }

/* ── legal pages and 404 ─────────────────────────────── */
.doc{ padding-block:clamp(56px,8vw,110px) clamp(56px,7vw,90px); max-width:74ch; }
.doc h1{ font-size:clamp(34px,5.6vw,64px); margin:0 0 clamp(20px,3vw,32px); }
.doc h2{
  font-family:var(--mono); font-size:12px; letter-spacing:.16em; text-transform:uppercase;
  color:var(--fg-faint); margin:clamp(32px,4vw,48px) 0 12px; font-weight:400;
}
.doc p, .doc li{ color:var(--fg-dim); font-size:16px; }
.doc ul{ padding-left:18px; }
.doc a{ color:var(--fg); text-decoration:underline; }
.doc .updated{ font-family:var(--mono); font-size:11.5px; color:var(--fg-faint); }
.todo{
  display:inline-block; font-family:var(--mono); font-size:11px; letter-spacing:.1em;
  text-transform:uppercase; color:var(--warn); border:1px dashed var(--warn);
  border-radius:999px; padding:3px 10px;
}
.center-screen{ min-height:60vh; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; gap:20px; }

/* ── reveal on scroll ────────────────────────────────── */
[data-reveal]{
  opacity:0; transform:translateY(30px);
  transition:opacity .85s cubic-bezier(.16,1,.3,1), transform .85s cubic-bezier(.16,1,.3,1);
  transition-delay:var(--d,0ms);
}
/* The card waits for its own trace to start drawing, so the sequence reads
   rail -> trace -> card -> tap instead of everything landing at once. */
.card[data-reveal]{ transition-delay:calc(var(--d,0ms) + 140ms); }
.card[data-reveal]:nth-child(odd){ transform:translate(-26px,30px); }
.card[data-reveal]:nth-child(even){ transform:translate(26px,30px); }
.tile[data-reveal]{ transform:scale(.92); }
[data-reveal].in{ opacity:1; transform:none; }
/* Below 820px the rail moves to the edge and every card sits on the same side
   of it, so the alternating entrance has nothing left to alternate: it made a
   single column arrive from two different directions, which reads as cards
   that do not line up - and the one drifting in from the right reached past
   the screen edge and let the whole page be dragged sideways. Straight up
   instead. This has to sit after the rules above, not up in the layout block,
   or the plain source order would undo it. */
@media (max-width:820px){
  .card[data-reveal]:nth-child(odd),
  .card[data-reveal]:nth-child(even){ transform:translateY(30px); }
}

/* Delays as classes, not style attributes: the page is served under a strict
   CSP that forbids inline styles (web/app.py). */
.d1{ --d:60ms; }  .d2{ --d:120ms; } .d3{ --d:180ms; } .d4{ --d:240ms; }
.d5{ --d:300ms; } .d6{ --d:360ms; } .d7{ --d:420ms; } .d8{ --d:480ms; }

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  [data-reveal]{ opacity:1; transform:none; transition:none; }
  .card::before{ transform:scaleX(1); transition:none; }
  .card::after{ transform:translate(-50%,-50%) scale(1); transition:none; }
  .card:nth-child(even)::after{ transform:translate(50%,-50%) scale(1); }
  .gem, .dot{ animation:none; }
}


/* ── inner service pages ─────────────────────────────────── */
.page-head{ padding-block:clamp(48px,7vw,96px) clamp(24px,3vw,44px); }
.page-head h1{ font-size:clamp(38px,7vw,96px); }
.page-head .lede{ margin-top:clamp(18px,2.5vw,28px); }
.page-head .rail{ justify-content:flex-start; }

.block{ padding-block:clamp(48px,7vw,100px); }
.block h2{ font-size:clamp(30px,4.8vw,64px); }

.includes{
  list-style:none; margin:0; padding:0;
  display:grid; grid-template-columns:1fr 1fr; gap:1px;
  background:var(--line-soft); border:1px solid var(--line-soft);
  border-radius:18px; overflow:hidden;
}
.includes li{
  background:var(--ink); padding:18px 22px; font-size:15.5px; color:var(--fg-dim);
  display:flex; gap:12px; align-items:flex-start;
}
.includes li::before{
  content:""; flex:none; width:6px; height:6px; border-radius:1px;
  background:var(--accent); margin-top:9px;
}
@media (max-width:760px){ .includes{ grid-template-columns:1fr; } }
.stackline.standalone{ margin-top:26px; border-top:1px solid var(--line-soft); max-width:80ch; }

/* the decisions block sits on paper, like the services on the home page */
.choices-section{ margin-top:0; }
.choices{
  margin-top:clamp(40px,5vw,72px);
  display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(16px,2vw,26px);
}
.choice{
  background:var(--ink-2); color:var(--fg); border-radius:20px;
  padding:clamp(22px,2.4vw,32px); display:flex; flex-direction:column; gap:16px;
}
.choice h3{
  margin:0; font-family:var(--display); font-variation-settings:"wdth" 112; font-weight:600;
  text-transform:lowercase; letter-spacing:-.02em; font-size:clamp(19px,1.9vw,25px);
  line-height:1.1; color:var(--accent);
}
.choice p{ margin:0; font-size:14.5px; color:var(--fg-dim); }
.choice em{
  font-style:normal; display:block; font-family:var(--mono); font-size:10px;
  letter-spacing:.12em; text-transform:uppercase; color:var(--fg-faint); margin-bottom:6px;
}
.choice .cost{ margin-top:auto; padding-top:14px; border-top:1px solid var(--line); }
@media (max-width:900px){ .choices{ grid-template-columns:1fr; } }

.callout{
  margin-top:clamp(24px,3vw,40px); border-left:2px solid var(--accent);
  padding:12px 0 12px 20px; color:var(--fg-dim); font-size:15px; max-width:70ch;
}

.related{
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:clamp(14px,1.6vw,20px); margin-top:clamp(28px,3vw,44px);
}
.rel{
  border:1px solid var(--line-soft); border-radius:16px; padding:22px 44px 22px 22px;
  position:relative; transition:border-color .25s, transform .25s;
}
.rel:hover{ border-color:var(--line); transform:translateY(-3px); }
.rel b{ display:block; font-size:16px; font-weight:500; margin-bottom:6px; }
.rel span{ display:block; font-size:13.5px; color:var(--fg-faint); line-height:1.55; }
.rel .go{ position:absolute; top:20px; right:20px; color:var(--accent); font-style:normal; }
@media (max-width:900px){ .related{ grid-template-columns:1fr; } }

/* a card on the home page that leads to its own page */
.card .more{
  font-family:var(--mono); font-size:11.5px; letter-spacing:.08em; text-transform:uppercase;
  color:var(--accent); display:inline-flex; align-items:center; gap:7px;
}
.card .more::after{ content:"→"; transition:transform .2s; }
.card:hover .more::after{ transform:translateX(4px); }


/* ── the brief form ──────────────────────────────────────── */
.form-sec{
  font-family:var(--mono); font-size:11px; letter-spacing:.16em; text-transform:uppercase;
  color:var(--fg-faint); margin:clamp(18px,2.4vw,30px) 0 2px;
  display:flex; align-items:center; gap:14px;
}
.form-sec:first-child{ margin-top:0; }
.form-sec::after{ content:""; flex:1; height:1px; background:var(--line-soft); }
.opt{
  font-style:normal; font-size:10px; letter-spacing:.1em;
  color:var(--fg-faint); opacity:.75;
}
label > .opt{ margin-left:6px; }
.broker{ display:flex; flex-direction:column; gap:14px; }
.broker.hidden{ display:none; }
optgroup{ background:var(--ink-2); color:var(--fg-faint); font-style:normal; }
option{ background:var(--ink-2); color:var(--fg); }
form .btn{ align-self:flex-start; margin-top:8px; }

/* ── hover: a lift and a warm shadow under it ─────────────
   One treatment for every card-like block, so the page answers the cursor the
   same way everywhere instead of each section inventing its own reaction. The
   shadow is the accent colour at low opacity rather than black: on a dark
   ground a black shadow is invisible, a warm one reads as light spilling out
   from under the element. */
.tag, .tile, .model, .rel, .case, .choice, .card, .channel, .btn, .step{
  transition:color .2s, border-color .2s, background .25s,
             transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s;
}

.tag:hover{
  color:var(--fg); border-color:var(--accent);
  box-shadow:0 6px 16px -6px rgba(232,68,42,.5);
  transform:translateY(-2px);
}

.tile:hover, .model:hover, .rel:hover, .case:hover{
  border-color:#2E3742;
  box-shadow:0 18px 34px -20px rgba(232,68,42,.7);
  transform:translateY(-3px);
}

/* On paper the same glow needs to be tighter, or it turns into a grey smudge. */
.choice:hover{
  box-shadow:0 16px 30px -18px rgba(232,68,42,.55);
  transform:translateY(-3px);
}
.card:hover{
  box-shadow:0 22px 44px -26px rgba(232,68,42,.75);
  transform:translateY(-3px);
}

/* The steps live in a grid with overflow:hidden, so a lift would be clipped
   and a shadow would never leave the box. They get light instead. */
.step:hover{ background:var(--ink-2); }
.step:hover .n{ color:var(--accent); }

.btn:hover{ box-shadow:0 10px 24px -10px rgba(232,68,42,.85); }
.btn.ghost:hover{ box-shadow:0 10px 24px -14px rgba(232,68,42,.5); }

.channel:hover{ color:var(--fg); }

/* Steps sit in a grid with overflow:hidden, so an outer shadow can never leave
   the box. The same light is put inside instead: a lit bottom edge and a glow
   rising from it. */
.step:hover{
  background:var(--ink-2);
  box-shadow:inset 0 -1px 0 0 var(--accent),
             inset 0 -44px 48px -44px rgba(232,68,42,.75);
}

/* Fields answer the cursor like everything else, and answer focus more
   strongly — where you are typing should be the brightest thing on screen. */
input, textarea, select{
  transition:border-color .2s, box-shadow .25s, background .2s;
}
input:hover, textarea:hover, select:hover{
  border-color:#2E3742;
  box-shadow:0 8px 20px -14px rgba(232,68,42,.65);
}
input:focus, textarea:focus, select:focus{
  outline:none; border-color:var(--accent); background:var(--ink-3);
  box-shadow:0 10px 26px -14px rgba(232,68,42,.85);
}
/* The label above the focused field lights up too, so the eye does not have to
   hunt for which one is active. */
label:focus-within{ color:var(--accent); }

.lbl{ display:inline; }

/* The consent checkbox. A required tick needs to look like a control and read
   like a sentence, not like a legal footnote nobody sees. */
.check{
  display:flex; flex-direction:row; align-items:flex-start; gap:11px;
  font-family:var(--body); font-size:13.5px; letter-spacing:normal;
  text-transform:none; color:var(--fg-dim); line-height:1.55;
  margin-top:6px; cursor:pointer;
}
/* padding:0 matters more than it looks. The general input rule gives every
   field 12px 14px of padding and a 12px radius, and the checkbox inherited
   both: the 18px box grew to about 30x26, and the tick - laid out inside a
   content box the padding had squeezed to nothing - hung off the bottom edge. */
.check input[type="checkbox"]{
  appearance:none; flex:none; width:18px; height:18px; min-width:18px; margin-top:1px;
  padding:0; border:1px solid var(--line); border-radius:5px; background:var(--ink-2);
  cursor:pointer; transition:border-color .2s, background .2s, box-shadow .25s;
}
.check input[type="checkbox"]:hover{ border-color:#2E3742; }
/* The tick is an inline SVG background, not ::after: a pseudo-element on an
   <input> is not part of any standard, Firefox never draws it at all, and
   Chromium places it wherever the input's content box happens to be. A
   background is centred on the box itself in every browser, and a data: URI
   is allowed by the CSP's img-src. */
.check input[type="checkbox"]:checked{
  background:var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.4 2.4 4.6-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
  border-color:var(--accent);
  box-shadow:0 6px 16px -8px rgba(232,68,42,.8);
}
/* The sentence is part of a control: a click on it ticks the box. Making it
   unselectable stops a click from dropping a text caret into it - with caret
   browsing on, that caret blinks there as if the line could be typed into. */
.check span{ user-select:none; -webkit-user-select:none; }
.check a{ color:var(--fg); text-decoration:underline; text-underline-offset:2px; }
/* Room for the Turnstile widget before its script arrives, so the Send button
   does not jump down by 65px a moment after the page has settled. */
.cf-turnstile{ margin-top:14px; min-height:65px; }
.check a:hover{ color:var(--accent); }


/* ── the stack page ──────────────────────────────────────── */
.tech-group{ padding-block:clamp(28px,4vw,52px); }
.tech-list{ display:flex; flex-direction:column; gap:1px; background:var(--line-soft);
            border:1px solid var(--line-soft); border-radius:18px; overflow:hidden; }
.tech-row{
  background:var(--ink); display:grid; align-items:start;
  grid-template-columns:64px 1fr auto; gap:clamp(14px,2vw,26px);
  padding:clamp(18px,2.2vw,26px) clamp(18px,2.4vw,30px);
  transition:background .25s;
}
.tech-row:hover{ background:var(--ink-2); }
.tech-mark{
  display:grid; place-items:center; width:64px; height:64px; border-radius:14px;
  background:var(--ink-2); border:1px solid var(--line-soft);
}
.tech-mark b{
  font-family:var(--display); font-variation-settings:"wdth" 105; font-weight:700;
  font-size:19px; color:var(--fg);
}
.tech-row.lead .tech-mark b{ color:var(--accent); }
.tech-body h2{
  margin:0 0 6px; font-family:var(--body); font-size:18px; font-weight:500;
  color:var(--fg); letter-spacing:normal; text-transform:none;
}
.tech-body .what{ margin:0 0 10px; color:var(--fg-dim); font-size:15px; }
.tech-body .use{ margin:0; color:var(--fg-dim); font-size:14px; }
.tech-body .use em{
  font-style:normal; display:block; font-family:var(--mono); font-size:10px;
  letter-spacing:.12em; text-transform:uppercase; color:var(--fg-faint); margin-bottom:4px;
}
.tech-go{
  align-self:center; white-space:nowrap;
  font-family:var(--mono); font-size:11.5px; letter-spacing:.06em; text-transform:uppercase;
  color:var(--fg-faint); border:1px solid var(--line-soft); border-radius:999px;
  padding:8px 14px; transition:color .2s, border-color .2s, box-shadow .25s;
  display:inline-flex; gap:8px; align-items:center;
}
.tech-go i{ font-style:normal; transition:transform .2s; }
.tech-row:hover .tech-go{ color:var(--fg); border-color:var(--line); }
.tech-go:hover{
  color:var(--accent); border-color:var(--accent);
  box-shadow:0 8px 20px -12px rgba(232,68,42,.7);
}
.tech-go:hover i{ transform:translateX(3px); }
/* An anchored row should announce itself when the mosaic sends you here. */
.tech-row:target{ background:var(--ink-2); box-shadow:inset 3px 0 0 0 var(--accent); }
@media (max-width:820px){
  .tech-row{ grid-template-columns:48px 1fr; }
  .tech-mark{ width:48px; height:48px; border-radius:11px; }
  .tech-mark b{ font-size:15px; }
  .tech-go{ grid-column:2; justify-self:start; margin-top:4px; }
}

/* the last tile of the mosaic leads to the whole list */
.tile.all b{ font-size:clamp(17px,2vw,22px); }
.tile.all{ border-style:dashed; }
.tile.all:hover{ border-color:var(--accent); }


/* ── example builds ──────────────────────────────────────── */
/* One column, alternating sides. These are applications with several screens,
   and a screen squeezed into half a column reads as a landing page. */
.ex-list{ display:flex; flex-direction:column; gap:clamp(48px,6vw,96px); }
.excard{
  display:grid; grid-template-columns:1.45fr 1fr; gap:clamp(26px,3.5vw,54px);
  align-items:center; scroll-margin-top:110px;
}
/* Alternating sides needs the wide column to move too, not just the order:
   otherwise every second screen is drawn at two thirds the size and its
   contents spill out of the frame. */
.excard:nth-child(even){ grid-template-columns:1fr 1.45fr; }
.excard:nth-child(even) .frame{ order:2; }
.excard .frame{ padding:clamp(12px,1.4vw,18px); }
.exmeta h2{
  margin:0 0 10px; font-family:var(--display); font-variation-settings:"wdth" 112;
  font-weight:600; text-transform:lowercase; letter-spacing:-.02em;
  font-size:clamp(23px,2.6vw,34px); line-height:1.05;
}
.exmeta .what{ margin:0 0 16px; color:var(--fg-dim); font-size:15.5px; }
.exmeta ul{ margin:0 0 18px; padding:0; list-style:none; display:flex; flex-direction:column; gap:7px; }
.exmeta li{ font-size:14.5px; color:var(--fg-dim); padding-left:16px; position:relative; }
.exmeta li::before{
  content:""; position:absolute; left:0; top:9px; width:5px; height:5px;
  border-radius:1px; background:var(--accent);
}
a.tag{ transition:color .2s, border-color .2s, box-shadow .25s, transform .3s; }
.inline-link{ color:var(--fg); text-decoration:underline; text-underline-offset:3px; }
.inline-link:hover{ color:var(--accent); }
@media (max-width:980px){
  /* :nth-child(even) has to be named again here. A media query adds no
     specificity, so the alternating rule above - one class plus a pseudo-class
     - outranked a bare .excard and every second example stayed in two columns
     at every width, screen crushed into half of a phone. */
  /* minmax(0,1fr), not 1fr: a plain 1fr is minmax(auto,1fr), and that auto
     floor lets any unbreakable content inside push the track wider than the
     screen. This is the guard - the two rules above are the actual repairs. */
  .excard, .excard:nth-child(even){ grid-template-columns:minmax(0,1fr); gap:24px; }
  .excard > *{ min-width:0; }
  .excard:nth-child(even) .frame{ order:0; }
  /* Centring only mattered while the two columns were of unequal height. */
  .excard{ align-items:stretch; }
}

/* two more card grounds, so nine cards do not repeat three colours */
.c-mint{ --c:#A9C9BC; }
.c-rose{ --c:#E0B3B0; }

/* the screens of one system, and the tabs that switch them */
.tabs{ display:flex; gap:5px; margin-bottom:10px; flex-wrap:wrap; }
.tab{
  font-family:var(--mono); font-size:10px; letter-spacing:.06em; text-transform:uppercase;
  color:rgba(0,0,0,.5); background:rgba(0,0,0,.06); border:0; border-radius:99px;
  padding:5px 11px; cursor:pointer; transition:background .2s, color .2s;
}
.tab:hover{ background:rgba(0,0,0,.12); color:rgba(0,0,0,.75); }
.tab.on{ background:var(--ink); color:#fff; }
.screen.off{ display:none; }
.shot{ aspect-ratio:16/10; }

/* ── the mock interfaces ─────────────────────────────────── */
/* Drawn, not screenshotted, but with real labels and plausible figures: a
   grey skeleton tells a non-technical visitor nothing about what they get.
   Everything inside is invented and belongs to nobody. */
.shot .chrome u{
  font-family:var(--mono); font-size:8.5px; color:#5A636E; letter-spacing:.02em;
  height:auto; background:#12161B; border-radius:4px; padding:2px 7px;
  overflow:hidden; white-space:nowrap; text-overflow:ellipsis; text-decoration:none;
  /* flex:1 alone will not shrink below the width of the address it holds:
     a flex item's automatic minimum is its content, and this one is a 261px
     unbreakable string. It has an ellipsis; let it use it. */
  min-width:0;
}
.app{ flex:1; display:flex; min-height:0; font-size:9.5px; line-height:1.35; color:var(--fg-dim); }
.appnav{
  width:27%; padding:9px 8px; display:flex; flex-direction:column; gap:5px;
  background:#101419; border-right:1px solid #1B222A;
}
.appnav b{ font-size:9px; color:var(--fg); letter-spacing:.08em; text-transform:uppercase; margin-bottom:2px; }
.appnav span{ color:#5D6672; padding:3px 5px; border-radius:4px; }
.appnav span.on{ background:#1C222A; color:var(--fg); }
.appmain{ flex:1; padding:9px 10px; display:flex; flex-direction:column; gap:7px; min-width:0; }
.apphead{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
.apphead b{ font-size:11px; color:var(--fg); }
.chip{
  font-family:var(--mono); font-size:8px; font-style:normal; color:#79828E;
  border:1px solid #232A33; border-radius:99px; padding:2px 7px; white-space:nowrap;
}
.chip.ok{ color:var(--ok); border-color:rgba(95,208,138,.35); }
.chip.warn{ color:var(--warn); border-color:rgba(228,200,120,.35); }
.chip.bad{ color:var(--accent); border-color:rgba(232,68,42,.4); }

/* table */
.tbl{ display:flex; flex-direction:column; gap:2px; }
.tr{ display:grid; grid-template-columns:1.1fr 1.3fr auto; gap:6px; align-items:center;
     padding:4px 5px; border-radius:4px; transition:background .2s; }
.tr.th{ color:#5D6672; font-size:8px; letter-spacing:.1em; text-transform:uppercase; }
.tr:not(.th):hover, .tr.hot{ background:#171D25; }
.st{ font-family:var(--mono); font-size:7.5px; font-style:normal; padding:2px 6px;
     border-radius:99px; white-space:nowrap; }
.st.new{ background:#1F2630; color:#8A93A0; }
.st.mid{ background:rgba(228,200,120,.14); color:var(--warn); }
.st.go{ background:rgba(95,208,138,.16); color:var(--ok); }
.st.off{ background:rgba(232,68,42,.14); color:var(--accent); }

/* board */
.board{ display:flex; gap:6px; flex:1; min-height:0; }
.lane{ flex:1; display:flex; flex-direction:column; gap:4px; }
.lane u{ font-size:8px; color:#5D6672; text-decoration:none; letter-spacing:.06em; text-transform:uppercase; }
.cardlet{
  display:block; background:#161C24; border:1px solid #1F2630; border-radius:5px;
  padding:5px 6px; transition:transform .2s, border-color .2s;
}
.cardlet b{ display:block; color:var(--fg); font-size:9px; }
.cardlet i{ font-style:normal; color:#69727E; font-size:8.5px; }
.cardlet:hover{ transform:translateY(-2px); border-color:#2C3542; }
.cardlet.hot{ border-color:rgba(232,68,42,.5); }
.cardlet.ok{ border-color:rgba(95,208,138,.35); }

/* calendar */
.caldays{ display:grid; grid-template-columns:repeat(7,1fr); gap:3px; font-size:7.5px; color:#535C67; text-align:center; }
.cal{ display:grid; grid-template-columns:repeat(7,1fr); gap:3px; }
.cal i{
  display:grid; place-items:center; aspect-ratio:1; border-radius:3px;
  background:#141a21; color:#6B7480; font-style:normal; font-size:8px;
}
.cal i.busy{ background:#232C37; color:#9AA3AF; }
.cal i.now{ background:var(--accent); color:#fff; }
.slots{ display:flex; gap:4px; margin-top:auto; }
.slot{ flex:1; font-family:var(--mono); font-size:7.5px; padding:4px 5px; border-radius:4px;
       background:#141a21; color:#7C8593; text-align:center; }
.slot.taken{ background:#232C37; color:var(--fg-dim); }

/* charts */
.stats{ display:flex; gap:5px; }
.stat-tile{ flex:1; background:#161C24; border:1px solid #1F2630; border-radius:5px; padding:5px 6px; }
.stat-tile b{ display:block; font-family:var(--mono); font-size:11px; color:var(--fg); }
.stat-tile i{ font-style:normal; font-size:8px; color:#69727E; }
.stat-tile.hot b{ color:var(--accent); }
.axis{ display:flex; justify-content:space-between; font-family:var(--mono); font-size:7.5px; color:#535C67; }

/* product grid */
.cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:5px; }
.thumb{ background:#161C24; border:1px solid #1F2630; border-radius:5px; padding:5px;
        display:flex; flex-direction:column; gap:2px; transition:border-color .2s; }
.thumb b{ color:var(--fg); font-size:8.5px; }
.thumb i{ font-style:normal; font-family:var(--mono); font-size:8px; color:#69727E; }
.thumb:hover{ border-color:#2C3542; }
.thumb.hot{ border-color:rgba(232,68,42,.5); }
.thumb.hot i{ color:var(--accent); }

/* chat */
.chatcol{ justify-content:flex-end; gap:5px; }
.bub{ max-width:82%; padding:5px 8px; border-radius:11px 11px 11px 3px; background:#171D25; font-size:9px; }
.bub.out{ align-self:flex-end; border-radius:11px 11px 3px 11px; background:#2A323C; color:var(--fg); }
.bub.typing{ display:flex; gap:3px; width:auto; max-width:none; align-self:flex-start; }
.bub.typing i{ width:4px; height:4px; border-radius:50%; background:#5D6672; }

/* status wall */
.wall{ display:grid; grid-template-columns:repeat(4,1fr); gap:5px; flex:1; }
.wall i{
  display:flex; flex-direction:column; justify-content:center; gap:1px;
  border-radius:5px; background:#161C24; padding:5px 6px; font-style:normal;
}
.wall i b{ font-family:var(--mono); font-size:8px; color:var(--fg); }
.wall i u{ text-decoration:none; font-size:7.5px; color:#69727E; }
.wall i.up{ box-shadow:inset 0 -2px 0 0 rgba(95,208,138,.75); }
.wall i.warn{ box-shadow:inset 0 -2px 0 0 rgba(228,200,120,.85); }
.wall i.warn u{ color:var(--warn); }
.wall i.down{ background:rgba(232,68,42,.16); box-shadow:inset 0 -2px 0 0 var(--accent); }
.wall i.down u{ color:var(--accent); }

/* playout */
.tracks{ display:flex; flex-direction:column; gap:5px; }
.track{ display:flex; align-items:center; gap:5px; }
.track u{ text-decoration:none; font-family:var(--mono); font-size:7px; color:#535C67; width:34px; flex:none; }
.clip{
  flex:1; background:#232A33; border-radius:4px; padding:4px 6px; font-size:8px;
  color:#98A0AA; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.clip.small{ padding:2px 6px; font-size:7.5px; }
.clip.hot{ background:var(--accent); color:#fff; }

/* form */
.fl{ display:flex; flex-direction:column; gap:2px; font-size:7.5px; color:#5D6672;
     letter-spacing:.08em; text-transform:uppercase; }
.field{
  display:block; background:#12171E; border:1px solid #222A33; border-radius:5px;
  padding:4px 7px; font-size:9px; color:var(--fg-dim); text-transform:none; letter-spacing:normal;
}
.field.tall{ min-height:26px; }
.field.sel{ color:var(--fg); }
.mockbtn{
  align-self:flex-start; margin-top:auto; background:var(--accent); color:#fff;
  font-family:var(--mono); font-size:8px; letter-spacing:.06em; text-transform:uppercase;
  padding:5px 10px; border-radius:99px;
}

/* ── filtering the gallery ───────────────────────────────── */
.filters{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:clamp(28px,3vw,44px); }
.fchip{
  font-family:var(--mono); font-size:11px; letter-spacing:.06em; text-transform:uppercase;
  color:var(--fg-faint); background:none; border:1px solid var(--line-soft);
  border-radius:99px; padding:7px 14px; cursor:pointer;
  transition:color .2s, border-color .2s, background .2s, box-shadow .25s;
}
.fchip:hover{ color:var(--fg); border-color:var(--line); }
.fchip.on{
  color:#fff; background:var(--accent); border-color:var(--accent);
  box-shadow:0 8px 20px -12px rgba(232,68,42,.85);
}
.fnone{ color:var(--fg-dim); font-size:15px; margin:0 0 24px; }
.excard.off{ display:none; }

/* Client names in the mock CRM are withheld, so the placeholder should read as
   a deliberate redaction rather than as a missing value. */
.cardlet b, .field.nda{ letter-spacing:.08em; }

/* ── mock interfaces: spacing and legibility fixes ───────── */
/* <s> and <u> were chosen as short tag names and came with their default
   decorations: prices rendered struck through and sidebar counts underlined,
   which read as "cancelled" and "link". Decorative markup still has to be
   told what it means. */
.app u, .app s{ text-decoration:none; }

.appbar{
  display:flex; align-items:center; gap:6px; flex-wrap:wrap;
  padding-bottom:7px; border-bottom:1px solid #1A2028; margin-bottom:2px;
}
.search{
  flex:1 1 auto; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  background:#12171E; border:1px solid #1F2630; border-radius:5px;
  padding:4px 8px; font-size:8.5px; color:#69727E;
}
.appbar .chip, .appbar .mockbtn{ flex:0 0 auto; }
.mockbtn.sm{ padding:4px 9px; font-size:7.5px; }

.board{ gap:7px; }
.lane{ gap:5px; min-width:0; }
.lane u{ display:flex; justify-content:space-between; align-items:center; padding:0 2px 2px; }
.lane u b{ font-size:8px; color:#8A93A0; }
.cardlet{ display:flex; flex-direction:column; gap:3px; padding:6px 7px; }
.cardlet b{ font-size:9px; letter-spacing:.1em; }
.cardlet i{ display:block; font-size:8px; line-height:1.3; }
.cardlet s{ display:block; font-family:var(--mono); font-size:8px; color:#7C8593; }
.cardlet.hot s{ color:var(--accent); }
.cardlet.ok s{ color:var(--ok); }

.appnav span{ display:flex; justify-content:space-between; gap:6px; align-items:center; }
.appnav u{ font-size:8px; color:#4E5764; }
.appnav b.sec{ margin-top:6px; color:#4E5764; }
.appnav span.done{ color:#4E5764; }

.tbl.dense .tr{ grid-template-columns:1.2fr 1.2fr .8fr auto .5fr; font-size:8.5px; }
.tbl.dense .tr span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tr em{
  font-style:normal; display:inline-grid; place-items:center; width:14px; height:14px;
  border-radius:50%; background:#232C37; color:#9AA3AF; font-size:6.5px; margin-right:5px;
}
.foot{
  display:flex; justify-content:space-between; align-items:center; gap:8px;
  margin-top:auto; padding-top:6px; border-top:1px solid #1A2028;
  font-size:8px; color:#5D6672;
}
.pag{ display:flex; gap:3px; }
.pag i{ font-style:normal; padding:2px 5px; border-radius:3px; background:#161C24; }
.pag i.on{ background:var(--accent); color:#fff; }

.calwrap{ display:grid; grid-template-columns:1.15fr 1fr; gap:8px; flex:1; min-height:0; }
.daylist{ display:flex; flex-direction:column; gap:3px; overflow:hidden; }
.slot{ display:flex; gap:5px; align-items:baseline; text-align:left; }
.slot b{ font-family:var(--mono); font-size:8px; color:var(--fg); }
.slot u{ margin-left:auto; font-size:7px; color:#5D6672; }
.slot.warn{ box-shadow:inset 2px 0 0 0 var(--warn); }

.plot{ position:relative; flex:1; min-height:44px; display:flex; }
.grid-lines{ position:absolute; inset:0; display:flex; flex-direction:column; justify-content:space-between; }
.grid-lines i{ height:1px; background:#171D25; }
.plot .bars{ position:relative; flex:1; }
.stat-tile em{ font-style:normal; font-family:var(--mono); font-size:7.5px; display:block; }
.stat-tile em.up{ color:var(--ok); }
.stat-tile em.down{ color:var(--warn); }

.stream{ display:flex; flex-direction:column; gap:4px; overflow:hidden; }
.keys{ display:flex; gap:4px; margin-top:auto; padding-top:6px; }
.keys span{
  flex:1; text-align:center; font-family:var(--mono); font-size:7.5px; color:#79828E;
  background:#161C24; border:1px solid #1F2630; border-radius:4px; padding:4px 2px;
}
.warnbub{ box-shadow:inset 2px 0 0 0 var(--warn); }

.incident{
  display:flex; align-items:center; gap:7px; margin-top:auto; padding-top:6px;
  border-top:1px solid #1A2028; font-size:8px; color:#79828E;
}
.incident b{ color:var(--fg); }

.ruler{ display:flex; justify-content:space-between; font-family:var(--mono); font-size:7px; color:#4E5764; }
.tracks{ display:flex; flex-direction:column; gap:4px; }
.formgrid{ display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.fl.wide{ margin-top:6px; }

/* ── the mock is not a picture: you can poke it ──────────── */
/* Selecting a row or a card does nothing real, but it answers the cursor, and
   that is the difference between a screenshot and something that feels built. */
.tr:not(.th), .cardlet, .thumb, .cal i, .wall i, .slot, .clip, .stat-tile{ cursor:pointer; }
.tr.sel{ background:rgba(232,68,42,.10); box-shadow:inset 2px 0 0 0 var(--accent); }
.cardlet.sel, .thumb.sel, .stat-tile.sel{ border-color:var(--accent); transform:translateY(-2px); }
.wall i.sel{ outline:1px solid var(--accent); outline-offset:-1px; }
.slot.sel{ background:#242D38; color:var(--fg); }
.clip.sel{ outline:1px solid var(--accent); outline-offset:-1px; }
.cal i.pick{ background:var(--accent); color:#fff; }

/* Narrow, the density that makes these look like real software turns into a
   smudge. Thin it out rather than shrink the type past reading size.

   Keyed to the width of the frame, not the width of the browser: it is the
   drawing that is 300px across, and it can be 300px across on a 27" monitor
   the moment somebody asks to see the phone layout. Everything here lives
   inside .shot, which is the container. Anything outside it - the tab strip,
   the frame's own proportions - still needs a media query, below. */
@container mock (max-width:530px){
  /* This used to only thin the desktop layout out - fewer rows, sidebar
     hidden - and a thinned desktop is still a desktop. What a phone actually
     does is rearrange: the side menu becomes a tab bar along the bottom, the
     board stops being columns side by side, and a table row stops being a row
     and becomes two lines. That is the difference between showing a small
     screenshot and showing the thing working on a phone. */
  .app{ flex-direction:column; font-size:8px; }
  .appmain{ padding:7px 8px; gap:5px; order:1; }

  /* the side menu becomes the tab bar */
  .appnav{
    order:2; width:auto; flex-direction:row; align-items:center;
    justify-content:space-around; gap:0; padding:5px 2px;
    border-right:0; border-top:1px solid #1B222A;
  }
  .appnav b{ display:none; }                       /* section headings */
  .appnav span{
    flex:1 1 0; min-width:0; justify-content:center; text-align:center;
    font-size:7px; letter-spacing:.02em; padding:1px 2px;
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  }
  .appnav span u{ display:none; }                  /* the counts beside them */
  .appnav span:nth-of-type(n+5){ display:none; }   /* four tabs is a tab bar */
  .appnav span.on{ color:var(--accent); }

  /* a board becomes one column of stages, not three columns of cards */
  .board{ flex-direction:column; gap:7px; }
  .lane{ flex:0 0 auto; }
  .lane:nth-child(n+4){ display:none; }
  .cardlet:nth-child(n+4){ display:none; }

  /* a table row becomes a two-line card: who and where it stands on top,
     the detail underneath. Five columns in 300px is unreadable at any
     type size that is still type. */
  .tbl.dense .tr{ grid-template-columns:1fr auto; row-gap:1px; padding:5px 6px; }
  .tbl.dense .tr.th{ display:none; }
  .tbl.dense .tr > *:nth-child(1){ grid-area:1 / 1; }
  .tbl.dense .tr > *:nth-child(2){ grid-area:2 / 1; font-size:7.5px; color:#6B7480; }
  .tbl.dense .tr > *:nth-child(3){ display:none; }
  .tbl.dense .tr > *:nth-child(4){ grid-area:1 / 2; justify-self:end; }
  .tbl.dense .tr > *:nth-child(5){ grid-area:2 / 2; justify-self:end;
                                   font-size:7.5px; color:#6B7480; }
  .tbl.dense .tr:nth-child(n+7){ display:none; }

  .wall{ grid-template-columns:repeat(3,1fr); }
  .wall i:nth-child(n+13){ display:none; }
  .calwrap{ grid-template-columns:1fr; }
  .daylist{ display:none; }
  .formgrid{ grid-template-columns:1fr; }
  .fl:nth-child(n+4){ display:none; }
  .stats .stat-tile:nth-child(n+4){ display:none; }
  .keys span:nth-child(n+4){ display:none; }
  /* the network screens, at phone width */
  .tfan{ flex-wrap:wrap; gap:4px; }
  .tfan .tleg{ flex:1 1 46%; }
  .tnode{ min-width:70%; }
  .rule{ grid-template-columns:auto 1fr auto auto; row-gap:1px; }
  .rule .ar{ display:none; }
  .rule b:nth-of-type(2){ grid-column:2; font-size:8px; color:#7C8593; }
  .rule u{ display:none; }
  /* the security, purchase and review screens, at phone width */
  .posture{ grid-template-columns:repeat(2,1fr); }
  .pchk:nth-child(n+7){ display:none; }
  .compare{ grid-template-columns:1fr; }
  .copt:nth-child(n+3){ display:none; }
  .copt .cost{ margin-top:4px; }
  .wrow:nth-child(n+4){ display:none; }
  .find:nth-child(n+5){ display:none; }
  .find s{ display:none; }
  .rest u{ display:none; }
  .pstep:nth-child(n+6){ display:none; }
}

@media (max-width:620px){
  /* The frame is a fixed 16/10 with the overflow hidden, which is right while
     the width is large enough to hold a screen. At phone width it is not: even
     thinned out, eight of the nine drawings ran past the bottom edge and were
     simply cut, mid-row. Height follows the content here instead - a slightly
     taller card costs nothing, a row sliced in half looks broken. The lightbox
     is named too, because its own selector outranks this one. */
  .shot, .lightbox .shot{ aspect-ratio:auto; }
  .tabs .tab{ font-size:9px; padding:4px 9px; }
  /* Nothing to offer here: the frame is already narrower than the width the
     button would set it to, and a control that visibly does nothing when
     pressed is worse than no control. */
  .device{ display:none; }
}

/* ── the same screen, at phone width ─────────────────────── */
/* Asked for by name: people want to see what they are buying on the device
   they will actually hold. Nothing here is a second drawing - it is the same
   markup in a narrower frame, rearranging itself through the container query
   above, which is the honest way to show that it does. */
.device{
  font-family:var(--mono); font-size:9.5px; letter-spacing:.08em; text-transform:uppercase;
  color:rgba(0,0,0,.5); background:rgba(0,0,0,.06); border:0; border-radius:99px;
  padding:5px 11px; cursor:pointer; transition:background .2s, color .2s;
}
.device:hover{ background:rgba(0,0,0,.12); color:rgba(0,0,0,.75); }
.device[aria-pressed="true"]{ background:var(--ink); color:#fff; }

.screens.as-phone .shot{
  max-width:300px; margin-inline:auto; aspect-ratio:auto; border-radius:26px;
}
/* The browser's title bar becomes the earpiece slot. Same element, because a
   phone has no address bar and an empty one would look like a mistake. */
.screens.as-phone .chrome{ height:26px; justify-content:center; padding-inline:0; gap:0; }
.screens.as-phone .chrome i{ display:none; }
.screens.as-phone .shot .chrome u{
  flex:0 0 auto; width:52px; height:5px; padding:0; margin:0;
  background:#0B0E12; border-radius:99px; font-size:0;
}
/* A phone in a lightbox is still a phone. */
.lightbox .screens.as-phone .shot{ aspect-ratio:auto; }



/* ── the network screens ─────────────────────────────────── */
/* A diagram, an address plan, a rule list and the people who dial in. Drawn
   with boxes and rules rather than an image, so it stays sharp, stays
   readable when the frame is 300px wide, and weighs nothing. */
.topo{ display:flex; flex-direction:column; align-items:center; gap:0; flex:1; min-height:0; }
.tnode{
  display:flex; flex-direction:column; align-items:center; gap:1px;
  background:#161C24; border:1px solid #232A33; border-radius:6px;
  padding:6px 14px; min-width:38%; text-align:center;
  transition:border-color .2s, background .2s;
}
.tnode b{ font-size:9.5px; color:var(--fg); }
.tnode u{ font-size:8px; color:#7C8593; text-decoration:none; }
.tnode.sel{ border-color:var(--accent); background:#1B222A; }
/* the run of wire between two boxes */
.tlink{ display:block; width:2px; height:13px; background:#232A33; flex:none; }
.tfan{ display:flex; gap:5px; width:100%; position:relative; padding-top:11px; }
/* one horizontal bar across the fan, and a drop into each leg */
.tfan::before{
  content:""; position:absolute; top:0; left:12.5%; right:12.5%; height:2px; background:#232A33;
}
.tleg{
  flex:1; min-width:0; position:relative; display:flex; flex-direction:column; gap:1px;
  background:#141A21; border:1px solid #1F2630; border-radius:5px; padding:6px 4px;
  text-align:center; transition:border-color .2s, background .2s;
}
.tleg::before{ content:""; position:absolute; top:-11px; left:50%; margin-left:-1px;
               width:2px; height:11px; background:#232A33; }
.tleg b{ font-size:9px; color:var(--fg); }
.tleg u{ font-size:8px; color:#7C8593; text-decoration:none; }
.tleg s{ font-family:var(--mono); font-size:8px; color:#5D6672; text-decoration:none; }
.tleg.hot{ border-color:var(--accent-weak); }
.tleg.sel{ border-color:var(--accent); background:#1B222A; }
.tnode, .tleg{ cursor:pointer; }

/* how full a segment is, said on the row rather than in a report */
.util{ display:flex; align-items:center; gap:5px; justify-content:flex-end;
       font-family:var(--mono); font-size:8px; color:#8A93A0; }
.util i{ display:block; height:3px; border-radius:2px; background:#2A323C; flex:none; }
.util i.fill-20{ width:20%; } .util i.fill-35{ width:35%; }
.util i.fill-50{ width:50%; } .util i.fill-65{ width:65%; }
.util i.fill-80{ width:80%; background:var(--warn); opacity:.7; }
.util i.fill-95{ width:95%; background:var(--accent); opacity:.8; }

/* the firewall list: order matters, so the number is part of the row */
.rules{ display:flex; flex-direction:column; gap:2px; flex:1; min-height:0; }
.rule{
  display:grid; grid-template-columns:auto 1fr auto 1fr auto auto auto;
  gap:6px; align-items:center; padding:4px 6px; border-radius:4px;
  font-size:8.5px; color:var(--fg-dim); cursor:pointer;
  transition:background .2s;
}
.rule em{ font-style:normal; font-family:var(--mono); font-size:7.5px; color:#5D6672;
          min-width:9px; text-align:right; }
.rule b{ font-size:8.5px; color:var(--fg); overflow:hidden; text-overflow:ellipsis;
         white-space:nowrap; }
.rule .ar{ font-style:normal; color:#4E5764; }
.rule u{ font-family:var(--mono); font-size:7.5px; color:#7C8593; text-decoration:none;
         white-space:nowrap; }
.rule s{ font-family:var(--mono); font-size:7.5px; color:#5D6672; text-decoration:none;
         min-width:26px; text-align:right; }
.rule:hover{ background:#171D25; }
.rule.sel{ background:rgba(232,68,42,.10); box-shadow:inset 2px 0 0 0 var(--accent); }

/* who is dialled in, and who has not been for months */
.peers{ display:flex; flex-direction:column; gap:2px; flex:1; min-height:0; }
.peer{
  display:grid; grid-template-columns:auto 1fr auto; gap:4px 8px; align-items:center;
  padding:5px 6px; border-radius:4px; font-size:8.5px; cursor:pointer;
  transition:background .2s;
}
.peer .dot{ width:6px; height:6px; border-radius:50%; background:#2A323C;
            grid-row:span 2; align-self:center; }
.peer.on .dot{ background:var(--ok); }
.peer.old .dot{ background:var(--accent); }
.peer b{ font-size:9px; color:var(--fg); }
.peer u{ grid-column:2; font-size:8px; color:#7C8593; text-decoration:none; }
.peer s{ grid-column:3; grid-row:span 2; font-family:var(--mono); font-size:8px;
         color:#5D6672; text-decoration:none; }
.peer.on s{ color:var(--ok); }
.peer.old s{ color:var(--accent); }
.peer:hover{ background:#171D25; }
.peer.sel{ background:rgba(232,68,42,.10); box-shadow:inset 2px 0 0 0 var(--accent); }


/* ── the security screens ────────────────────────────────── */
/* A posture board is a wall of green until it is not, so the two tiles that
   need attention are the only ones carrying colour. Everything else is
   deliberately quiet: a screen where eight things shout is a screen nobody
   reads twice. */
.posture{ display:grid; grid-template-columns:repeat(4,1fr); gap:5px; flex:1;
          min-height:0; align-content:start; }
.pchk{
  display:flex; flex-direction:column; gap:2px; min-width:0;
  background:#141A21; border:1px solid #1F2630; border-radius:5px; padding:7px 8px;
  cursor:pointer; transition:border-color .2s, background .2s;
}
.pchk b{ font-size:9px; color:var(--fg); overflow:hidden; text-overflow:ellipsis;
         white-space:nowrap; }
.pchk u{ font-family:var(--mono); font-size:8px; color:#7C8593; text-decoration:none; }
.pchk .st{ align-self:flex-start; margin-top:2px; }
.pchk.warn{ border-color:rgba(228,200,120,.35); }
.pchk.bad{ border-color:var(--accent-weak); }
.pchk.sel{ border-color:var(--accent); background:#1B222A; }

/* restores: the one that failed is the point of the whole list */
.restores{ display:flex; flex-direction:column; gap:2px; flex:1; min-height:0; }
.rest{
  display:grid; grid-template-columns:auto 1fr auto auto; gap:4px 8px; align-items:center;
  padding:5px 6px; border-radius:4px; font-size:8.5px; cursor:pointer;
  transition:background .2s;
}
.rest b{ font-size:9px; color:var(--fg); white-space:nowrap; }
.rest u{ font-size:8px; color:#7C8593; text-decoration:none; overflow:hidden;
         text-overflow:ellipsis; white-space:nowrap; }
.rest s{ font-family:var(--mono); font-size:8px; color:#5D6672; text-decoration:none; }
.rest:hover{ background:#171D25; }
.rest.bad{ background:rgba(232,68,42,.07); box-shadow:inset 2px 0 0 0 var(--accent); }
.rest.sel{ background:rgba(232,68,42,.12); box-shadow:inset 2px 0 0 0 var(--accent); }

/* ── the purchase screens ────────────────────────────────── */
/* Three columns, and the recommended one is marked in the layout rather than
   only in a sentence underneath - the eye picks the outline before it reads. */
.compare{ display:grid; grid-template-columns:repeat(3,1fr); gap:6px; flex:1;
          min-height:0; align-content:start; }
.copt{
  display:flex; flex-direction:column; gap:3px; min-width:0;
  background:#141A21; border:1px solid #1F2630; border-radius:6px; padding:8px;
  cursor:pointer; transition:border-color .2s, background .2s;
}
.copt b{ font-size:10px; color:var(--fg); }
.copt u{ font-size:8px; color:#7C8593; text-decoration:none; line-height:1.35;
         margin-bottom:3px; }
.copt.best{ border-color:var(--accent-weak); background:#161C24; }
.copt.sel{ border-color:var(--accent); background:#1B222A; }
.crow{
  display:flex; align-items:center; justify-content:space-between; gap:5px;
  font-size:8px; color:#7C8593; text-decoration:none;
  padding:3px 0; border-top:1px solid #1B222A;
}
.cost{
  margin-top:auto; padding-top:5px; font-family:var(--mono); font-size:11px;
  color:var(--fg); text-decoration:none; font-variant-numeric:tabular-nums;
}
.copt.best .cost{ color:var(--accent); }

/* the reasons, including the ones against */
.why{ display:flex; flex-direction:column; gap:3px; flex:1; min-height:0; }
.wrow{
  display:flex; flex-direction:column; gap:1px; padding:6px 8px; border-radius:5px;
  background:#141A21; border-left:2px solid #2A323C;
}
.wrow b{ font-size:9px; color:var(--fg); }
.wrow u{ font-size:8.5px; line-height:1.45; color:#7C8593; text-decoration:none; }
.wrow.warn{ border-left-color:var(--warn); }

/* ── the review screens ──────────────────────────────────── */
/* Severity is a number down the left rather than a colour alone: printed,
   forwarded, or read by somebody who cannot tell red from amber, the order
   still survives. */
.findings{ display:flex; flex-direction:column; gap:3px; flex:1; min-height:0; }
.find{
  display:grid; grid-template-columns:auto 1fr auto; gap:3px 8px; align-items:baseline;
  padding:6px 8px; border-radius:5px; background:#141A21;
  border-left:2px solid #2A323C; cursor:pointer; transition:background .2s;
}
.find .sev{
  grid-row:span 2; align-self:center; font-style:normal; font-family:var(--mono);
  font-size:9px; color:#5D6672; min-width:10px; text-align:center;
}
.find b{ font-size:9.5px; color:var(--fg); }
.find u{ grid-column:2; font-size:8.5px; line-height:1.45; color:#7C8593;
         text-decoration:none; }
.find s{
  grid-column:3; grid-row:span 2; align-self:center; text-decoration:none;
  font-family:var(--mono); font-size:7.5px; letter-spacing:.06em;
  text-transform:uppercase; color:#5D6672; white-space:nowrap;
}
.find.bad{ border-left-color:var(--accent); }
.find.bad .sev, .find.bad s{ color:var(--accent); }
.find.warn{ border-left-color:var(--warn); }
.find.warn .sev, .find.warn s{ color:var(--warn); }
.find:hover{ background:#171D25; }
.find.sel{ background:#1B222A; }

/* the plan: numbered, because the order is the advice */
.plan{ display:flex; flex-direction:column; gap:2px; flex:1; min-height:0; }
.pstep{
  display:grid; grid-template-columns:auto 1fr auto; gap:2px 8px; align-items:center;
  padding:5px 6px; border-radius:4px; cursor:pointer; transition:background .2s;
}
.pstep .pn{
  grid-row:span 2; font-style:normal; display:grid; place-items:center;
  width:15px; height:15px; border-radius:50%; background:#232C37; color:#9AA3AF;
  font-family:var(--mono); font-size:7.5px;
}
.pstep b{ font-size:9px; color:var(--fg); }
.pstep u{ grid-column:2; font-size:8px; color:#7C8593; text-decoration:none; }
.pstep s{ grid-column:3; grid-row:span 2; text-decoration:none; }
.pstep:hover{ background:#171D25; }
.pstep.sel{ background:#1B222A; }
.pstep.sel .pn{ background:var(--accent); color:#fff; }

/* ── full screen ─────────────────────────────────────────── */
/* The drawings are dense on purpose, and dense at card size is a squint.
   Expanding moves the live element into an overlay rather than cloning it, so
   whatever you had selected or switched to is still there. */
.expand{
  margin-left:auto; display:inline-flex; gap:2px; align-items:center;
  background:rgba(0,0,0,.06); border:0; border-radius:99px; padding:6px 9px; cursor:pointer;
  transition:background .2s;
}
.expand:hover{ background:rgba(0,0,0,.14); }
.expand i{ width:6px; height:6px; border:1.5px solid rgba(0,0,0,.55); }
.expand i:first-child{ border-right:0; border-bottom:0; }
.expand i:last-child{ border-left:0; border-top:0; }
.expand:hover i{ border-color:rgba(0,0,0,.8); }

/* flex with margin:auto on the child, not grid centring. Centring an item
   that is taller than its scroll container puts its top above the scrollable
   area, where nothing can reach it - which is why the expanded view on a
   phone was cut off at both ends with no way to scroll to either. margin:auto
   centres it while it fits and lets it scroll the moment it does not. */
.lightbox{
  position:fixed; inset:0; z-index:200; display:flex; overflow:auto;
  padding:clamp(14px,3vw,48px); background:rgba(6,8,10,.93);
  backdrop-filter:blur(8px); animation:fade .2s ease-out;
}
.lightbox .screens{ margin:auto; }
@keyframes fade{ from{ opacity:0 } to{ opacity:1 } }
.lightbox .screens{ width:min(1500px,100%); }
.lightbox .shot{ aspect-ratio:16/9; }
.lightbox .app{ font-size:13px; }
.lightbox .appnav{ padding:14px 12px; gap:8px; }
.lightbox .appmain{ padding:14px 16px; gap:11px; }
.lightbox .tab{ background:rgba(255,255,255,.08); color:var(--fg-dim); font-size:12px; padding:7px 14px; }
.lightbox .tab:hover{ background:rgba(255,255,255,.16); color:var(--fg); }
.lightbox .tab.on{ background:var(--accent); color:#fff; }
.lightbox .expand{ background:rgba(255,255,255,.08); }
.lightbox .expand i{ border-color:rgba(255,255,255,.6); }
.lightbox .chrome{ height:30px; }
.lightbox .chrome i{ width:9px; height:9px; }
.lightbox .chrome u{ font-size:11px; padding:4px 10px; }
.lightbox .cal i{ font-size:12px; }
.lightbox .chip{ font-size:11px; }
.lightbox .search{ font-size:12px; }
.lightbox .st{ font-size:10px; }
.lightbox .tbl.dense .tr{ font-size:12px; }
.lightbox .cardlet b{ font-size:12px; }
.lightbox .cardlet i, .lightbox .cardlet s{ font-size:11px; }
.lightbox .wall i b{ font-size:11px; }
.lightbox .wall i u{ font-size:10px; }
.lightbox .mockbtn{ font-size:11px; padding:7px 14px; }

/* Expanded, but expanded on a phone: the frame is barely wider than it was in
   the card, so the desktop sizes above have to stand down. Written after them
   because they match just as tightly and source order is what decides it. */
@container mock (max-width:530px){
  .lightbox .app{ font-size:10px; }
  .lightbox .appnav{ padding:7px 4px; gap:0; }
  .lightbox .appmain{ padding:9px 10px; gap:7px; }
  .lightbox .chrome{ height:24px; }
  .lightbox .chrome i{ width:6px; height:6px; }
  .lightbox .chrome u{ font-size:9px; padding:2px 7px; }
  .lightbox .tbl.dense .tr{ font-size:9.5px; }
  .lightbox .cardlet b{ font-size:10px; }
  .lightbox .cardlet i, .lightbox .cardlet s{ font-size:9px; }
  .lightbox .chip, .lightbox .search, .lightbox .st{ font-size:9px; }
  .lightbox .mockbtn{ font-size:9px; padding:5px 10px; }
}
/* A frame's own proportions cannot be set from inside itself, so this is a
   media query - and it has to sit after '.lightbox .shot{aspect-ratio:16/9}'
   rather than in the earlier phone block, which that later rule outranked
   simply by being further down the file. 16/9 on a phone is 289px of height
   for a screen that needs 540, and everything past it was cut off. */
@media (max-width:620px){
  .lightbox .shot{ aspect-ratio:auto; }
}
.lbclose{
  position:fixed; top:18px; right:20px; z-index:201;
  font-family:var(--mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase;
  color:var(--fg-dim); background:var(--ink-2); border:1px solid var(--line);
  border-radius:99px; padding:9px 16px; cursor:pointer; transition:color .2s, border-color .2s;
}
.lbclose:hover{ color:var(--fg); border-color:var(--fg-faint); }
body.locked{ overflow:hidden; }

/* ── two-pane screens, plan and map ──────────────────────── */
.twopane{ display:grid; grid-template-columns:1fr 1.15fr; gap:8px; }
.pane{ display:flex; flex-direction:column; gap:5px; min-width:0; }
.pane.read{ border-left:1px solid #1A2028; padding-left:8px; }
.tlist{ display:flex; flex-direction:column; gap:3px; overflow:hidden; }
.titem{
  display:grid; grid-template-columns:1fr auto; gap:2px 6px; align-items:center;
  background:#161C24; border:1px solid #1F2630; border-radius:5px; padding:5px 7px;
  cursor:pointer; transition:border-color .2s, background .2s;
}
.titem b{ font-size:9px; color:var(--fg); }
.titem u{ grid-column:1; font-size:7.5px; color:#69727E; }
.titem .st{ grid-row:1 / span 2; }
.titem:hover{ border-color:#2C3542; }
.titem.sel{ border-color:var(--accent); background:rgba(232,68,42,.08); }

.gantt{ display:flex; flex-direction:column; gap:4px; }
.grow{ display:grid; grid-template-columns:56px 1fr; align-items:center; gap:6px; }
.grow u{ font-size:8px; color:#79828E; }
.gbar{
  height:11px; border-radius:3px; background:#2A323C;
  margin-left:calc(var(--s) * 16.6%); width:calc(var(--w) * 16.6%);
}
.gbar.done{ background:rgba(95,208,138,.45); }
.gbar.hot{ background:var(--accent); }

.map{ position:relative; background:#101519; border:1px solid #1F2630; border-radius:6px; overflow:hidden; }
.roads{ position:absolute; inset:0; }
.roads i{ position:absolute; background:#19212A; }
.roads i:nth-child(1){ left:0; right:0; top:28%; height:3px; }
.roads i:nth-child(2){ left:0; right:0; top:62%; height:3px; }
.roads i:nth-child(3){ top:0; bottom:0; left:22%; width:3px; }
.roads i:nth-child(4){ top:0; bottom:0; left:58%; width:3px; }
.roads i:nth-child(5){ top:0; bottom:0; left:82%; width:2px; }
.roads i:nth-child(6){ left:0; right:0; top:86%; height:2px; }
.pin{
  position:absolute; display:grid; place-items:center; width:15px; height:15px;
  border-radius:50% 50% 50% 2px; rotate:-45deg;
  background:#2A323C; color:#C8D0DA; font-size:7px;
}
.pin span{ rotate:45deg; }
.pin.a{ left:16%; top:20%; } .pin.b{ left:50%; top:22%; }
.pin.hot{ left:56%; top:56%; background:var(--accent); color:#fff; }
.pin.c{ left:78%; top:52%; } .pin.d{ left:30%; top:76%; }
.route{
  position:absolute; left:18%; top:26%; width:40%; height:34%;
  border-left:2px dashed rgba(232,68,42,.5); border-bottom:2px dashed rgba(232,68,42,.5);
  border-radius:0 0 0 8px;
}
/* Keyed to the frame like the rest of the drawing: two panes side by side in
   a 300px phone leave 127px each, which the toolbar inside one of them cannot
   fit into, and it was the last thing still reading the window. */
@container mock (max-width:530px){ .twopane{ grid-template-columns:1fr; } .pane.map{ min-height:90px; } }

/* States the mock logic produces */
.appbar .chip{ cursor:pointer; }
.appbar .chip.active{ color:var(--fg); border-color:var(--fg-faint); background:#1B222A; }
.appnav span{ cursor:pointer; }
.pag i{ cursor:pointer; }
.keys span{ cursor:pointer; transition:background .2s, color .2s; }
.keys span:hover{ background:#1F2630; color:var(--fg); }
.gbar{ cursor:pointer; }
.pin{ cursor:pointer; }
.mockbtn{ cursor:pointer; transition:transform .15s, filter .2s; }
.mockbtn:hover{ filter:brightness(1.1); }
.mockbtn.pressed{ transform:scale(.94); }
.cardlet{ transition:transform .25s cubic-bezier(.16,1,.3,1), border-color .2s, background .2s; }

/* Free and taken slots must not look the same: that was the whole complaint. */
.slot{ position:relative; transition:background .2s, box-shadow .2s, transform .12s; }
.slot.free{
  background:rgba(95,208,138,.10); color:var(--ok);
  box-shadow:inset 2px 0 0 0 rgba(95,208,138,.7);
}
.slot.free b{ color:var(--ok); }
.slot.taken{ background:#1B222A; color:var(--fg-dim); }
.slot.taken.mine{ box-shadow:inset 2px 0 0 0 var(--accent); }
.slot.shake{ animation:nudge .35s; }
@keyframes nudge{
  0%,100%{ transform:translateX(0) } 25%{ transform:translateX(-3px) }
  75%{ transform:translateX(3px) }
}

/* A bar answers with its number rather than just lighting up. */
.bars i{ cursor:pointer; transition:background .2s, opacity .2s; }
.bars i:hover{ background:#39434F; }
.bars i.hi{ background:var(--accent); }

/* The small message a screen gives back. */
.toast{
  position:absolute; left:50%; bottom:10px; translate:-50% 0; z-index:3;
  font-family:var(--mono); font-size:8.5px; letter-spacing:.04em;
  background:#20272F; color:var(--fg); border:1px solid #2C3542;
  border-radius:99px; padding:5px 12px; white-space:nowrap;
  box-shadow:0 10px 24px -12px rgba(0,0,0,.9);
  animation:toastin .18s ease-out; transition:opacity .35s, translate .35s;
}
.toast.go{ opacity:0; translate:-50% 6px; }
.toast.ok{ border-color:rgba(95,208,138,.5); color:var(--ok); }
.toast.warn{ border-color:rgba(228,200,120,.5); color:var(--warn); }
.toast.figure{ border-color:rgba(232,68,42,.5); color:var(--accent); }
@keyframes toastin{ from{ opacity:0; translate:-50% 8px } to{ opacity:1; translate:-50% 0 } }
.shot{ position:relative; }
.lightbox .toast{ font-size:12px; padding:8px 18px; bottom:16px; }


/* ── sizes a script needs to set ─────────────────────────── */
/* A strict CSP blocks scripted inline styles, so every value the code
   sets has to exist as a class. Ugly to look at, but it keeps
   script-src and style-src at 'self' with no exceptions. */
.bh-0{ height:0%; }
.bh-5{ height:5%; }
.bh-10{ height:10%; }
.bh-15{ height:15%; }
.bh-20{ height:20%; }
.bh-25{ height:25%; }
.bh-30{ height:30%; }
.bh-35{ height:35%; }
.bh-40{ height:40%; }
.bh-45{ height:45%; }
.bh-50{ height:50%; }
.bh-55{ height:55%; }
.bh-60{ height:60%; }
.bh-65{ height:65%; }
.bh-70{ height:70%; }
.bh-75{ height:75%; }
.bh-80{ height:80%; }
.bh-85{ height:85%; }
.bh-90{ height:90%; }
.bh-95{ height:95%; }
.bh-100{ height:100%; }
.gs-0{ margin-left:0.0%; }
.gs-1{ margin-left:16.6%; }
.gs-2{ margin-left:33.2%; }
.gs-3{ margin-left:49.8%; }
.gs-4{ margin-left:66.4%; }
.gs-5{ margin-left:83.0%; }
.gs-6{ margin-left:99.6%; }
.gw-1{ width:16.6%; }
.gw-2{ width:33.2%; }
.gw-3{ width:49.8%; }
.gw-4{ width:66.4%; }
.gw-5{ width:83.0%; }
.gw-6{ width:99.6%; }

/* No transition on the height any more. It existed to smooth over jumps of
   five percent at a time; the fill is now set every frame, and a transition
   on top of that only makes the lit end lag behind the scroll it is meant to
   be following. The colour of a lit tap still eases, which is a different
   property and a deliberate one. */

/* How well we know a thing, said on the row rather than implied. */
.lvl{
  font-style:normal; font-family:var(--mono); font-size:9px; letter-spacing:.1em;
  text-transform:uppercase; margin-left:10px; padding:3px 8px; border-radius:99px;
  border:1px solid var(--line-soft); color:var(--fg-faint); vertical-align:middle;
}
.lvl.prod{ color:var(--ok); border-color:rgba(95,208,138,.3); }
