/* ============================================================
   adserve.ai — site stylesheet
   THE STEP ROW
   Early-80s rhythm machine. Charcoal panel, wood cheeks,
   sixteen step keys quartered red / orange / yellow / white,
   a chase light marking now, silkscreen caps, LED readouts.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --panel:     #2B2A26;
  --panel-hi:  #37362F;
  --panel-lo:  #201F1B;
  --panel-dk:  #171612;

  --wood:      #6E4526;
  --wood-hi:   #8A5A33;

  --key-red:    #D33E1E;
  --key-orange: #E37A26;
  --key-yellow: #E6BC30;
  --key-white:  #E9E5D7;

  --field-red:    #C13A1C;
  --field-orange: #D2701F;
  --field-yellow: #DFB42A;
  --field-white:  #EAE6D8;

  --led:       #FF4426;
  --led-dim:   #4A1710;

  --ink:       #17160F;
  --paper:     #EDE9DB;
  --silk:      #EFECE0;
  --silk-2:    #A5A296;

  --ease: cubic-bezier(.16,1,.3,1);
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--panel);
  color: var(--silk);
  font-family: 'Saira', system-ui, sans-serif;
  font-variation-settings: 'wdth' 100;
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--key-yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--key-yellow); outline-offset: 3px; }

.wrap { width: min(100% - 3rem, 1240px); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: calc(100% - 2rem); } }

.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--key-red); color: #fff; padding: .9rem 1.4rem; font: 700 .78rem/1 'Chivo Mono', monospace; letter-spacing: .12em; text-transform: uppercase; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Surfaces ---------- */

.panel {
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(255,255,255,.045), transparent 62%),
    linear-gradient(180deg, var(--panel-hi), var(--panel));
}
.panel--dark { background: linear-gradient(180deg, var(--panel-lo), var(--panel-dk)); }

/* Wood cheeks framing the whole machine */
.cheeks { position: relative; }
.cheeks::before, .cheeks::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 14px; z-index: 3;
  background:
    repeating-linear-gradient(180deg, rgba(0,0,0,.22) 0 2px, transparent 2px 9px),
    linear-gradient(90deg, var(--wood-hi), var(--wood) 55%, #4E301A);
  box-shadow: 0 0 0 1px rgba(0,0,0,.4);
}
.cheeks::before { left: 0; }
.cheeks::after { right: 0; background: repeating-linear-gradient(180deg, rgba(0,0,0,.22) 0 2px, transparent 2px 9px), linear-gradient(270deg, var(--wood-hi), var(--wood) 55%, #4E301A); }
@media (max-width: 760px) { .cheeks::before, .cheeks::after { width: 7px; } }

.rule { height: 0; border: 0; border-top: 1px solid rgba(0,0,0,.55); border-bottom: 1px solid rgba(255,255,255,.055); }

/* ---------- Typography ---------- */

.silk {
  font-family: 'Chivo Mono', ui-monospace, monospace;
  font-size: .62rem; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--silk-2); line-height: 1.5;
}
.silk--lit { color: var(--key-yellow); }

h1, h2, h3 {
  font-family: 'Saira', system-ui, sans-serif;
  font-weight: 800; font-variation-settings: 'wdth' 87;
  text-transform: uppercase; line-height: .93;
  letter-spacing: -.015em; text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 5.2vw, 4.4rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.95rem, 3.9vw, 3.3rem); letter-spacing: -.02em; }
h3 { font-size: clamp(1.2rem, 1.85vw, 1.55rem); font-variation-settings: 'wdth' 92; }

.lede { font-size: clamp(1.05rem, 1.4vw, 1.28rem); line-height: 1.52; max-width: 58ch; color: #C6C3B6; }
p { max-width: 68ch; }
.body-sm { font-size: .95rem; color: #B5B2A6; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: 'Chivo Mono', monospace;
  font-size: .66rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  padding: 1rem 1.5rem .95rem; border: 0; border-radius: 2px; cursor: pointer; text-decoration: none;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background-color .16s var(--ease);
}
.btn--run {
  background: linear-gradient(180deg, #D8421C, #B32C0F); color: #FFF3EF;
  text-shadow: 0 -1px 0 rgba(0,0,0,.35);
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 -2px 0 rgba(0,0,0,.3) inset, 0 3px 0 #7A2110, 0 6px 15px rgba(122,33,16,.4);
}
.btn--run:hover { transform: translateY(1px); box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 -2px 0 rgba(0,0,0,.3) inset, 0 2px 0 #7A2110, 0 4px 11px rgba(122,33,16,.4); }
.btn--run:active { transform: translateY(3px); box-shadow: 0 1px 2px rgba(0,0,0,.5) inset; }

.btn--key {
  background: linear-gradient(180deg, #44433B, #2E2D27); color: var(--silk);
  box-shadow: 0 1px 0 rgba(255,255,255,.13) inset, 0 -2px 0 rgba(0,0,0,.45) inset, 0 3px 0 #131209, 0 6px 14px rgba(0,0,0,.4);
}
.btn--key:hover { background: linear-gradient(180deg, #504F45, #37362E); transform: translateY(1px); }
.btn--sm { padding: .7rem 1.05rem .65rem; font-size: .6rem; }

.step-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'Chivo Mono', monospace; font-size: .62rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--key-yellow); text-decoration: none;
  border-bottom: 2px solid rgba(230,188,48,.3); padding-bottom: .25rem;
  transition: border-color .18s var(--ease), gap .18s var(--ease);
}
.step-link:hover { border-bottom-color: var(--key-yellow); gap: .85rem; }

/* ---------- LED readout ---------- */

.readout {
  display: inline-flex; align-items: center; gap: .75rem;
  background: #120C0A; border-radius: 2px; padding: .45rem .8rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.7) inset, 0 0 0 1px rgba(255,255,255,.06);
}
.readout__val {
  font-family: 'Chivo Mono', monospace; font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: .06em;
  color: var(--led); text-shadow: 0 0 10px rgba(255,68,38,.7);
  font-size: .95rem;
}
.readout__k { font-family: 'Chivo Mono', monospace; font-size: .52rem; letter-spacing: .2em; text-transform: uppercase; color: #A08078; }

/* ============================================================
   TOPBAR
   ============================================================ */

.topbar { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid #000; box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.topbar__inner { display: flex; align-items: center; gap: 1.4rem; min-height: 64px; padding-block: .55rem; }

.mark {
  font-family: 'Saira', sans-serif; font-weight: 800; font-variation-settings: 'wdth' 92;
  font-size: 1.24rem; letter-spacing: -.02em; text-transform: lowercase;
  color: var(--silk); text-decoration: none;
}
.mark em { font-style: normal; color: var(--key-orange); }

.nav { margin-left: auto; display: flex; align-items: center; gap: .1rem; }
.nav a {
  font-family: 'Chivo Mono', monospace; font-size: .575rem; font-weight: 600;
  letter-spacing: .17em; text-transform: uppercase; color: #9C998D; text-decoration: none;
  padding: .75rem .65rem; border-radius: 2px; transition: color .16s var(--ease), background-color .16s var(--ease);
}
.nav a:hover { color: var(--silk); background: rgba(255,255,255,.07); }

.topbar__aside { display: flex; align-items: center; gap: 1rem; padding-left: 1.15rem; border-left: 1px solid rgba(255,255,255,.12); }

.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.24); border-radius: 2px; color: var(--silk); padding: .55rem .8rem; cursor: pointer; font-family: 'Chivo Mono', monospace; font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; }
.drawer { display: none; border-bottom: 1px solid #000; }
.drawer[data-open="true"] { display: block; }
.drawer__inner { display: grid; gap: 0; padding: 1rem 0 1.6rem; }
/* :not(.btn) — the drawer's own CTA keeps its button colour and scale */
.drawer a:not(.btn) { font-family: 'Chivo Mono', monospace; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #BAB7AB; text-decoration: none; padding: .85rem .25rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.drawer a:not(.btn)[aria-current="page"] { color: var(--key-yellow); }
.drawer .btn { justify-content: center; }
@media (max-width: 1080px) { .nav, .topbar__aside { display: none; } .menu-btn { display: block; } }

/* ============================================================
   HERO
   ============================================================ */

.hero { padding-block: clamp(2.25rem, 4vw, 3.5rem) 0; }
.hero h1 { max-width: 19ch; }
.hero h1 .q1 { color: var(--key-red); }
.hero h1 .q2 { color: var(--key-orange); }
.hero h1 .q3 { color: var(--key-yellow); }

.hero__meta { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2.5rem; align-items: end; margin-top: clamp(1.25rem, 2.2vw, 1.9rem); }
@media (max-width: 860px) { .hero__meta { grid-template-columns: 1fr; align-items: start; gap: 1.75rem; } }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; }

/* The machine */
.machine {
  margin-top: clamp(1.5rem, 2.8vw, 2.25rem);
  background: linear-gradient(180deg, #34332C, #26251F);
  border-radius: 3px 3px 0 0;
  padding: 1.5rem 1.4rem 1.75rem;
  box-shadow: 0 1px 0 rgba(255,255,255,.09) inset, 0 -3px 0 rgba(0,0,0,.4) inset, 0 -14px 40px rgba(0,0,0,.35);
}
.machine__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.machine__banks { display: flex; gap: .4rem; flex-wrap: wrap; }
.bank {
  appearance: none; border: 0; cursor: pointer;
  font-family: 'Chivo Mono', monospace; font-size: .545rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .58rem .8rem .54rem; border-radius: 2px;
  background: linear-gradient(180deg, #3E3D35, #2A2923); color: #A5A296;
  box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, 0 2px 0 #121108;
  transition: color .16s var(--ease), background-color .16s var(--ease), transform .12s var(--ease);
}
.bank:hover { color: var(--silk); transform: translateY(1px); box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, 0 1px 0 #121108; }
.bank[aria-pressed="true"] { background: linear-gradient(180deg, var(--key-yellow), #C79E1D); color: var(--ink); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 2px 0 #8A6C0E, 0 0 14px rgba(230,188,48,.35); }

/* the sixteen-step row */
.row-frame {
  background: #1A1915; border-radius: 3px; padding: 1.1rem 1rem 1.2rem;
  box-shadow: 0 3px 10px rgba(0,0,0,.6) inset;
}
.row-scale { display: grid; grid-template-columns: repeat(16, 1fr); gap: 6px; margin-bottom: .55rem; }
.row-scale span { font-family: 'Chivo Mono', monospace; font-size: .5rem; color: #918E83; text-align: center; letter-spacing: 0; }

.chase { display: grid; grid-template-columns: repeat(16, 1fr); gap: 6px; margin-bottom: .7rem; }
.chase i { height: 6px; border-radius: 1px; background: var(--led-dim); box-shadow: 0 1px 1px rgba(0,0,0,.6) inset; }
.chase i[data-now="1"] { background: var(--led); box-shadow: 0 0 9px rgba(255,68,38,.85); }

.steps { display: grid; grid-template-columns: repeat(16, 1fr); gap: 6px; }
.step {
  appearance: none; border: 0; cursor: pointer;
  aspect-ratio: 3 / 4; border-radius: 2px; position: relative;
  background: linear-gradient(180deg, #46453C, #2C2B24);
  box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 -2px 0 rgba(0,0,0,.5) inset, 0 3px 0 #100F09;
  transition: transform .1s var(--ease), box-shadow .1s var(--ease), background .16s var(--ease);
}
.step:hover { transform: translateY(1px); box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 -2px 0 rgba(0,0,0,.5) inset, 0 2px 0 #100F09; }
.step[aria-pressed="true"] { transform: translateY(2px); box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 1px 0 #100F09, 0 0 12px rgba(0,0,0,.4); }
.step[data-q="1"][aria-pressed="true"] { background: linear-gradient(180deg, #EA542F, var(--key-red)); }
.step[data-q="2"][aria-pressed="true"] { background: linear-gradient(180deg, #F08D33, var(--key-orange)); }
.step[data-q="3"][aria-pressed="true"] { background: linear-gradient(180deg, #F2CE45, var(--key-yellow)); }
.step[data-q="4"][aria-pressed="true"] { background: linear-gradient(180deg, #F6F3E7, var(--key-white)); }
.step::after {
  content: ''; position: absolute; left: 50%; bottom: 5px; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: rgba(0,0,0,.4);
}
.step[aria-pressed="true"]::after { background: rgba(0,0,0,.55); }

.row-legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: .85rem; }
.row-legend span { font-family: 'Chivo Mono', monospace; font-size: .5rem; letter-spacing: .16em; text-transform: uppercase; color: #8A8779; text-align: center; padding-top: .4rem; border-top: 2px solid; }
.row-legend span:nth-child(1) { border-color: var(--key-red); }
.row-legend span:nth-child(2) { border-color: var(--key-orange); }
.row-legend span:nth-child(3) { border-color: var(--key-yellow); }
.row-legend span:nth-child(4) { border-color: var(--key-white); }

.machine__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.15rem; }

@media (max-width: 720px) {
  .row-scale span:nth-child(even) { visibility: hidden; }
  .steps, .chase, .row-scale { gap: 3px; }
}

/* ============================================================
   CLIENTS — the white quarter
   ============================================================ */

.clients { background: var(--field-white); color: var(--ink); padding-block: clamp(4rem, 7vw, 6.5rem); }
.clients .silk { color: #5E5B4E; }
.clients__head { margin-bottom: clamp(2rem, 3.5vw, 3rem); max-width: 34ch; }
.clients__head h2 { color: var(--ink); }
.clients__head p { color: #4A473D; margin-top: 1rem; font-size: 1.05rem; max-width: 54ch; }
.clients__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; }
.client {
  background: #F3F0E4; aspect-ratio: 3/2; display: grid; place-items: center;
  padding: 1.25rem 1.5rem; min-width: 0;
  transition: background-color .18s var(--ease), transform .18s var(--ease);
}
.client:hover { background: #FFFDF4; transform: translateY(-2px); }
.client img {
  max-height: 58px; max-width: 100%; width: auto; object-fit: contain;
  filter: grayscale(1) contrast(1.35) brightness(.72);
  transition: filter .18s var(--ease);
}
.client:hover img { filter: none; }
@media (max-width: 900px) { .client { aspect-ratio: 5/3; padding: 1rem; } .client img { max-height: 44px; } }

/* ============================================================
   PRINCIPLES — quartered fields
   ============================================================ */

.quarters { display: grid; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .quarters { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .quarters { grid-template-columns: 1fr; } }

.quarter { padding: clamp(2rem, 3.2vw, 3rem) clamp(1.4rem, 2vw, 2rem) clamp(2.5rem, 4vw, 3.5rem); display: flex; flex-direction: column; gap: 1rem; }
.quarter h3 { line-height: .98; }
.quarter p { font-size: .95rem; line-height: 1.58; max-width: none; }
.quarter__num { font-family: 'Chivo Mono', monospace; font-size: .62rem; font-weight: 700; letter-spacing: .22em; }

.quarter--red    { background: var(--field-red);    color: #FFEDE7; }
.quarter--orange { background: var(--field-orange); color: #22140A; }
.quarter--yellow { background: var(--field-yellow); color: #241C05; }
.quarter--white  { background: var(--field-white);  color: var(--ink); }
.quarter--red h3 { color: #fff; }
.quarter--red p { color: #FFEBE5; }
.quarter--red .quarter__num { color: #FFE7E0; }
.quarter--orange p, .quarter--yellow p { color: rgba(28,20,4,.82); }
.quarter--orange .quarter__num, .quarter--yellow .quarter__num { color: rgba(28,20,4,.72); }
.quarter--white p { color: #56534A; }
.quarter--white .quarter__num { color: #6A6759; }

.principles__head { padding-block: clamp(3.5rem, 6vw, 5.5rem) clamp(2rem, 3vw, 2.75rem); }

/* ============================================================
   BANKS — capabilities as pattern banks
   ============================================================ */

.patterns { padding-block: clamp(3.5rem, 6vw, 6rem); }
.patterns__head { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,26rem); gap: 2.5rem; align-items: end; margin-bottom: clamp(2rem,3.5vw,3rem); }
@media (max-width: 880px) { .patterns__head { grid-template-columns: 1fr; gap: 1.25rem; } }

.pattern-list { display: grid; gap: 2px; background: rgba(0,0,0,.5); border-block: 1px solid rgba(0,0,0,.5); }
/* The product screen carries the row; the copy sits beside it */
.pattern {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.75rem, 4vw, 4rem); align-items: center;
  padding: clamp(2rem, 3.4vw, 3.25rem) clamp(1.25rem, 2.4vw, 2.25rem);
  background: linear-gradient(180deg, #33322B, #292822);
  text-decoration: none; color: inherit;
  transition: background .2s var(--ease);
}
.pattern:nth-child(even) .pattern__body { order: 2; }
.pattern__body { display: grid; grid-template-columns: 4rem minmax(0,1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 900px) {
  .pattern { grid-template-columns: 1fr; gap: 1.5rem; }
  .pattern:nth-child(even) .pattern__body { order: 0; }
  .pattern__body { grid-template-columns: 3rem minmax(0,1fr); gap: .9rem; }
}
.pattern:hover { background: linear-gradient(180deg, #3D3C33, #302F28); }
.pattern__id {
  font-family: 'Chivo Mono', monospace; font-weight: 700; font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  color: var(--key-yellow); text-shadow: 0 0 14px rgba(230,188,48,.3); letter-spacing: -.03em; line-height: 1;
}
.pattern h3 { margin-bottom: .7rem; font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
.pattern p { font-size: 1rem; color: #C2BFB3; margin-bottom: 1.2rem; line-height: 1.6; }
@media (max-width: 900px) {
  /* one column: the copy block keeps its own number/text grid, the screen sits under it */
  .pattern { grid-template-columns: minmax(0, 1fr); }
  .pattern__shot { grid-column: 1 / -1; }
}

/* ============================================================
   SCREENS
   ============================================================ */

.screens { padding-block: clamp(3.5rem, 6vw, 6rem); }
.screens__head { max-width: 24ch; margin-bottom: clamp(2rem,3.5vw,3rem); }
.screen-mount { background: linear-gradient(180deg, #34332C, #26251F); border-radius: 3px; padding: 13px; box-shadow: 0 1px 0 rgba(255,255,255,.09) inset, 0 8px 24px rgba(0,0,0,.4); }
.screen-mount img { border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.6); width: 100%; }
.screen-mount__cap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .85rem .25rem .1rem; }
.screens__pair { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.25rem; margin-top: 1.25rem; }
@media (max-width: 800px) { .screens__pair { grid-template-columns: 1fr; } }

/* ============================================================
   VOICES — the six agents as instrument rows
   ============================================================ */

.voices { padding-block: clamp(4rem, 7vw, 7rem); }
.voices__head { max-width: 26ch; margin-bottom: clamp(2rem,3.5vw,3rem); }
.voice-list { display: grid; gap: 2px; background: rgba(0,0,0,.55); border: 1px solid rgba(0,0,0,.55); border-radius: 3px; overflow: hidden; }

.voice { background: linear-gradient(180deg, #302F28, #262520); }
.voice__btn {
  width: 100%; appearance: none; border: 0; cursor: pointer; text-align: left;
  background: none; color: inherit;
  display: grid; grid-template-columns: 1.5rem 9.5rem minmax(0,1fr) auto;
  gap: 1.1rem; align-items: center; padding: 1rem 1.15rem;
  transition: background-color .18s var(--ease);
}
.voice__btn:hover { background: rgba(255,255,255,.045); }
.voice__led { width: 10px; height: 10px; border-radius: 50%; background: var(--led-dim); box-shadow: 0 1px 1px rgba(0,0,0,.6) inset; }
.voice[data-open="true"] .voice__led { background: var(--led); box-shadow: 0 0 10px rgba(255,68,38,.85); }
.voice__name { font-family: 'Chivo Mono', monospace; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--silk); }
.voice__pat { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; }
.voice__pat i { height: 14px; border-radius: 1px; background: #1D1C17; }
.voice__pat i[data-on="1"] { background: var(--key-orange); }
.voice[data-open="true"] .voice__pat i[data-on="1"] { background: var(--key-yellow); box-shadow: 0 0 7px rgba(230,188,48,.5); }
.voice__tog { font-family: 'Chivo Mono', monospace; font-size: .55rem; letter-spacing: .16em; text-transform: uppercase; color: #A5A296; }
@media (max-width: 860px) { .voice__btn { grid-template-columns: 1.2rem minmax(0,1fr) auto; } .voice__pat { display: none; } }

.voice__body { display: none; padding: 0 1.15rem 1.6rem 3.75rem; }
.voice[data-open="true"] .voice__body { display: block; }
.voice__body p { color: #C0BDB1; max-width: 72ch; }
.voice__body ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.voice__body li { font-family: 'Chivo Mono', monospace; font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); background: var(--key-yellow); padding: .45rem .7rem .4rem; border-radius: 2px; }
@media (max-width: 860px) { .voice__body { padding-left: 1.15rem; } }

/* ============================================================
   TRIGGER OUT — connectors
   ============================================================ */

.triggers { padding-block: clamp(3.5rem, 6vw, 6rem); }
.triggers__head { max-width: 26ch; margin-bottom: clamp(2rem,3.5vw,3rem); }
.trigger-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 3px; background: rgba(0,0,0,.55); border: 3px solid #14130F; border-radius: 3px; }
@media (max-width: 860px) { .trigger-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 520px) { .trigger-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.trigger { background: linear-gradient(180deg, #33322B, #272620); padding: 1.5rem 1.1rem 1.35rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; transition: background .18s var(--ease); }
.trigger:hover { background: linear-gradient(180deg, #3D3C33, #302F28); }
.trigger--home { background: linear-gradient(180deg, #5A3116, #3E220F); }
.trigger--home:hover { background: linear-gradient(180deg, #6B3B1B, #4A2913); }
.trigger__logo {
  height: 74px; width: 100%; display: grid; place-items: center;
  background: #F3F0E4; border-radius: 2px; padding: .7rem .9rem;
  box-shadow: 0 1px 0 rgba(255,255,255,.2), 0 3px 7px rgba(0,0,0,.55);
}
.trigger__logo img { max-height: 52px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1) contrast(1.3) brightness(.75); transition: filter .18s var(--ease); }
/* three marks ship on dark grounds; inverted so the wall reads as one system */
.trigger__logo img[src$="tiktok-ads.png"],
.trigger__logo img[src$="rajar.png"],
.trigger__logo img[src$="jet.png"] { filter: grayscale(1) invert(1); }
.trigger:hover .trigger__logo img { filter: none; }
.trigger:hover .trigger__logo img[src$="tiktok-ads.png"],
.trigger:hover .trigger__logo img[src$="rajar.png"],
.trigger:hover .trigger__logo img[src$="jet.png"] { filter: invert(1); }
.trigger--home .trigger__logo { background: #F7EFDC; box-shadow: 0 1px 0 rgba(255,255,255,.25), 0 2px 4px rgba(0,0,0,.5), 0 0 0 1px rgba(230,188,48,.6); }
.trigger__led { width: 100%; height: 7px; border-radius: 1px; background: var(--led-dim); }
.trigger:hover .trigger__led, .trigger--home .trigger__led { background: var(--led); box-shadow: 0 0 8px rgba(255,68,38,.7); }

/* ============================================================
   METRICS — LED readouts
   ============================================================ */

.meters { padding-block: clamp(4.5rem, 8vw, 7.5rem); }
.meters__head { max-width: 24ch; margin-bottom: clamp(2rem,3.5vw,3rem); }
.meter-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 3px; background: rgba(0,0,0,.6); border: 3px solid #14130F; border-radius: 3px; }
@media (max-width: 860px) { .meter-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 480px) { .meter-grid { grid-template-columns: 1fr; } }
.meter { background: linear-gradient(180deg, #2E2D26, #232219); padding: clamp(1.9rem, 3.2vw, 2.9rem) clamp(1.4rem, 2.2vw, 1.9rem); display: flex; flex-direction: column; gap: 1.15rem; }
.meter__num {
  font-family: 'Chivo Mono', monospace; font-weight: 700;
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  line-height: .92; color: var(--led); letter-spacing: -.055em; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 40px rgba(255,68,38,.4);
}
.meter__bar { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; height: 11px; }
.meter__bar i { border-radius: .5px; background: #221F19; }
.meter__bar i[data-on="1"] { background: var(--key-orange); }
.meter__label { font-size: 1rem; line-height: 1.5; color: #C2BFB3; max-width: 24ch; }

/* ============================================================
   RUN — the close
   ============================================================ */

.run { background: #B02F14; color: #FFF0EB; padding-block: clamp(4rem, 8vw, 7.5rem); text-align: center; }
.run h2 { color: #fff; max-width: 17ch; margin-inline: auto; }
.run p { color: #FFEBE5; margin: 1.5rem auto 0; max-width: 56ch; font-size: 1.1rem; }
.run__cta { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 2.5rem; }
.run .btn--key { background: linear-gradient(180deg, #F7F4E9, #E5E1D2); color: var(--ink); box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 -2px 0 rgba(0,0,0,.12) inset, 0 3px 0 #92594A, 0 6px 14px rgba(80,14,4,.35); }
.run .btn--ghost { background: transparent; color: #FFF0EB; box-shadow: 0 0 0 1px rgba(255,255,255,.5) inset; }
.run .btn--ghost:hover { background: rgba(255,255,255,.1); }
.run__chase { display: grid; grid-template-columns: repeat(16, 1fr); gap: 6px; max-width: 30rem; margin: 0 auto 2.25rem; }
.run__chase i { height: 6px; border-radius: 1px; background: rgba(0,0,0,.3); }
.run__chase i[data-now="1"] { background: #FFE9B0; box-shadow: 0 0 10px rgba(255,233,176,.9); }

/* ============================================================
   FOOTER
   ============================================================ */

.foot { padding-block: clamp(3rem,5vw,4.5rem) 2rem; }
.foot__grid { display: grid; grid-template-columns: minmax(0,22rem) repeat(3, minmax(0,1fr)); gap: clamp(1.75rem,3vw,3rem); }
@media (max-width: 900px) { .foot__grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .foot__grid { grid-template-columns: 1fr; } }
.foot h4 { font-family: 'Chivo Mono', monospace; font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--silk); margin-bottom: 1.1rem; }
.foot ul { list-style: none; display: grid; gap: .6rem; }
.foot li a { color: #9C998D; text-decoration: none; font-size: .93rem; transition: color .16s var(--ease); }
.foot li a:hover { color: var(--silk); }
.foot__brand p { color: #86837A; font-size: .93rem; margin-top: 1rem; max-width: 34ch; }
.foot__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-top: clamp(2.5rem,4vw,3.5rem); padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.09); }
.foot__bottom p { color: #97948A; font-size: .82rem; }
.foot__social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 2px; background: rgba(255,255,255,.05); color: #9C998D; transition: background-color .16s var(--ease), color .16s var(--ease); }
.foot__social a:hover { background: rgba(255,255,255,.12); color: var(--silk); }
.foot__social svg { width: 18px; height: 18px; }

/* ---------- Reveal ---------- */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }


/* ---------- Solid fallbacks under every gradient surface ---------- */
.panel        { background-color: #31302A; }
.panel--dark  { background-color: #1B1A16; }
.machine      { background-color: #2D2C26; }
.btn--run     { background-color: #C4360F; }
.btn--key     { background-color: #393831; }
.run .btn--key { background-color: #EEEBDF; }
.bank         { background-color: #34332C; }
.bank[aria-pressed="true"] { background-color: #D6AD26; }
.step         { background-color: #393830; }
.step[data-q="1"][aria-pressed="true"] { background-color: #DC4826; }
.step[data-q="2"][aria-pressed="true"] { background-color: #E9842D; }
.step[data-q="3"][aria-pressed="true"] { background-color: #ECC53B; }
.step[data-q="4"][aria-pressed="true"] { background-color: #EFECE0; }
.pattern      { background-color: #2E2D26; }
.voice        { background-color: #2B2A24; }
.trigger      { background-color: #2D2C25; }
.trigger--home { background-color: #4C2A13; }
.meter        { background-color: #29281F; }
.screen-mount { background-color: #2D2C26; }

/* Display red needs more luminance than the step key it is named after */
.hero h1 .q1 { color: #E9603C; }

/* Each capability row shows its real screen rather than a decorative step pattern */
.pattern__shot {
  border-radius: 3px; overflow: hidden; background: #14130F;
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 10px 28px rgba(0,0,0,.45);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.pattern:hover .pattern__shot { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 18px 44px rgba(0,0,0,.55); }
.pattern__shot img { width: 100%; height: auto; display: block; }

/* The first principle is the whole argument, so it takes the full width */
.quarters { grid-template-columns: repeat(3, 1fr); }
.quarter--red { grid-column: 1 / -1; }
.quarter--red h3 { font-size: clamp(2rem, 3.6vw, 2.9rem); max-width: 16ch; }
.quarter--red p { max-width: 62ch; font-size: 1.05rem; }
@media (max-width: 980px) { .quarters { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .quarters { grid-template-columns: 1fr; } }

/* 18 marks: six, three or two per row always fills the final row exactly */
@media (max-width: 900px) { .clients__grid, .inv__grid, .logos__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .clients__grid, .inv__grid, .logos__grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   INNER PAGES
   ============================================================ */

.page-hero { padding-block: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 4.5vw, 4rem); }
.page-hero__back {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'Chivo Mono', monospace; font-size: .58rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--silk-2);
  text-decoration: none; margin-bottom: 1.5rem;
  transition: color .16s var(--ease), gap .16s var(--ease);
}
.page-hero__back:hover { color: var(--key-yellow); gap: .8rem; }
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { margin-top: 1.5rem; font-size: clamp(1.1rem, 1.5vw, 1.35rem); }
.page-hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: clamp(2rem,5vw,4.5rem); align-items: end; }
@media (max-width: 900px) { .page-hero__grid { grid-template-columns: 1fr; gap: 1.5rem; align-items: start; } }

.sec { padding-block: clamp(3.5rem, 6vw, 6rem); }
.sec--tight { padding-block: clamp(2.5rem, 4vw, 4rem); }
.sec__head { margin-bottom: clamp(2rem, 3.5vw, 3rem); }
.sec__head h2 { max-width: 22ch; }
.sec__head .lede { margin-top: 1.15rem; }
.sec__head--wide { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,28rem); gap: clamp(1.5rem,4vw,4rem); align-items: end; }
.sec__head--wide h2 { max-width: 20ch; }
.sec__head--wide .lede { margin: 0; }
@media (max-width: 900px) { .sec__head--wide { grid-template-columns: 1fr; gap: 1rem; align-items: start; } }

.pcard {
  background: linear-gradient(180deg, #33322B, #292822);
  background-color: #2E2D26;
  border-radius: 3px; padding: clamp(1.5rem, 2.4vw, 2.1rem);
  display: flex; flex-direction: column; gap: .8rem;
  text-decoration: none; color: inherit;
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 4px 14px rgba(0,0,0,.3);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
a.pcard:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 12px 30px rgba(0,0,0,.42); }
.pcard h3, .pcard h4 { font-family: 'Saira', sans-serif; font-weight: 800; font-variation-settings: 'wdth' 92; text-transform: uppercase; letter-spacing: -.015em; line-height: 1.05; font-size: 1.15rem; }
.pcard p { font-size: .96rem; color: #C2BFB3; max-width: none; line-height: 1.6; }
.pcard .icon-box { color: var(--key-yellow); }
.pcard--lit { background: linear-gradient(180deg, #3B3A31, #2F2E26); background-color: #35342C; box-shadow: 0 1px 0 rgba(255,255,255,.09) inset, 0 0 0 1px rgba(230,188,48,.25), 0 4px 14px rgba(0,0,0,.3); }

.cardgrid { display: grid; gap: 1.25rem; }
.cardgrid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.cardgrid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cardgrid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 980px) { .cardgrid--3, .cardgrid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 680px) { .cardgrid--2, .cardgrid--3, .cardgrid--4 { grid-template-columns: 1fr; } }

.cap {
  display: grid; grid-template-columns: minmax(0,0.9fr) minmax(0,1.1fr);
  gap: clamp(1.75rem, 4vw, 4rem); align-items: center;
  padding-block: clamp(2.25rem, 4vw, 3.5rem);
  border-top: 2px solid rgba(0,0,0,.5);
}
.cap:last-child { border-bottom: 2px solid rgba(0,0,0,.5); }
.cap:nth-of-type(even) .cap__text { order: 2; }
@media (max-width: 900px) { .cap { grid-template-columns: 1fr; gap: 1.5rem; } .cap:nth-of-type(even) .cap__text { order: 0; } }
.cap h2, .cap h3 { margin-bottom: .9rem; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.cap p { color: #C2BFB3; margin-bottom: 1.25rem; }
.cap__shot { border-radius: 3px; overflow: hidden; background: #14130F; box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 10px 28px rgba(0,0,0,.45); }
.cap__shot img { width: 100%; height: auto; display: block; }

.flist { list-style: none; display: grid; gap: .7rem; margin-bottom: 1.4rem; }
.flist li { display: grid; grid-template-columns: auto minmax(0,1fr); gap: .75rem; align-items: start; font-size: .96rem; color: #C6C3B7; line-height: 1.55; }
.flist li::before { content: ''; width: 9px; height: 9px; margin-top: .45rem; border-radius: 1px; background: var(--key-yellow); flex: none; }

.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-top: 2.75rem; margin-bottom: 1rem; }
.prose h3 { font-size: 1.2rem; margin-top: 2rem; margin-bottom: .7rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { color: #C2BFB3; margin-bottom: 1.1rem; max-width: none; }
.prose ul, .prose ol { margin: 0 0 1.35rem 1.25rem; color: #C2BFB3; }
.prose li { margin-bottom: .5rem; }
.prose a { color: var(--key-yellow); }
.prose strong { color: var(--silk); }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: .93rem; }
.prose th, .prose td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid rgba(255,255,255,.12); color: #C2BFB3; vertical-align: top; }
.prose th { color: var(--silk); font-weight: 700; }

.clause { display: grid; grid-template-columns: 3.25rem minmax(0,1fr); gap: 1rem; padding-block: .55rem; }
.clause__num { font-family: 'Chivo Mono', monospace; font-size: .78rem; font-weight: 700; color: var(--key-yellow); padding-top: .18rem; }
.clause p, .clause div { color: #C2BFB3; max-width: none; }
@media (max-width: 560px) { .clause { grid-template-columns: 1fr; gap: .25rem; } }

.figs { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 3px; background: rgba(0,0,0,.6); border: 3px solid #14130F; border-radius: 3px; }
@media (max-width: 860px) { .figs { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 460px) { .figs { grid-template-columns: 1fr; } }
.fig { background: linear-gradient(180deg, #2E2D26, #232219); background-color: #29281F; padding: clamp(1.6rem,2.8vw,2.4rem) clamp(1.3rem,2vw,1.7rem); display: flex; flex-direction: column; gap: .85rem; }
.fig__n { font-family: 'Chivo Mono', monospace; font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: .95; color: var(--led); letter-spacing: -.05em; font-variant-numeric: tabular-nums; text-shadow: 0 0 30px rgba(255,68,38,.35); }
.fig__l { font-size: .95rem; color: #C2BFB3; max-width: 24ch; line-height: 1.5; }

.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.25rem; }
.person { background: linear-gradient(180deg, #33322B, #292822); background-color: #2E2D26; border-radius: 3px; overflow: hidden; box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 4px 14px rgba(0,0,0,.3); }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .25s var(--ease); }
.person:hover img { filter: none; }
.person__body { padding: 1.15rem 1.2rem 1.4rem; display: grid; gap: .45rem; }
.person__name { font-family: 'Saira', sans-serif; font-weight: 800; font-variation-settings: 'wdth' 92; text-transform: uppercase; font-size: 1.05rem; letter-spacing: -.01em; }
.person__role { font-family: 'Chivo Mono', monospace; font-size: .56rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--key-yellow); }
.person__bio { font-size: .9rem; color: #B5B2A6; line-height: 1.55; }

.offices { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.25rem; }
@media (max-width: 760px) { .offices { grid-template-columns: 1fr; } }
.office { background: linear-gradient(180deg, #33322B, #292822); background-color: #2E2D26; border-radius: 3px; padding: clamp(1.5rem,2.4vw,2.1rem); }
.office h3 { margin-bottom: .9rem; }
.office address { font-style: normal; color: #C2BFB3; line-height: 1.7; font-size: .98rem; }
.office a { color: var(--key-yellow); text-decoration: none; }
.office a:hover { text-decoration: underline; text-underline-offset: 3px; }

.jobs { display: grid; gap: 2px; background: rgba(0,0,0,.5); border-block: 2px solid rgba(0,0,0,.5); }
.job { background: linear-gradient(180deg, #33322B, #292822); background-color: #2E2D26; padding: clamp(1.4rem,2.4vw,1.9rem) clamp(1.1rem,2vw,1.6rem); display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 1.5rem; align-items: center; text-decoration: none; color: inherit; transition: background .18s var(--ease); }
.job:hover { background: linear-gradient(180deg, #3D3C33, #302F28); }
.job h3 { margin-bottom: .5rem; }
.job__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; }
.job__meta span { font-family: 'Chivo Mono', monospace; font-size: .55rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: var(--key-yellow); padding: .3rem .55rem .26rem; border-radius: 2px; }
.job p { font-size: .95rem; color: #B5B2A6; }
@media (max-width: 640px) { .job { grid-template-columns: 1fr; gap: 1rem; } }

.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.1rem; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .5rem; }
.field label { font-family: 'Chivo Mono', monospace; font-size: .56rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--silk-2); }
.field input, .field select, .field textarea {
  font-family: 'Saira', sans-serif; font-size: 1rem; color: var(--silk);
  background: #1A1915; border: 2px solid #14130F; border-radius: 2px;
  padding: .8rem .9rem; width: 100%;
  box-shadow: 0 2px 5px rgba(0,0,0,.5) inset;
  transition: border-color .16s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--key-yellow); outline: none; }
.field textarea { min-height: 8rem; resize: vertical; }
.field ::placeholder { color: #7C7A6F; }
.form__note { font-size: .85rem; color: var(--silk-2); }

.faq { display: grid; gap: 2px; background: rgba(0,0,0,.5); border-block: 2px solid rgba(0,0,0,.5); }
.faq details { background: linear-gradient(180deg, #33322B, #292822); background-color: #2E2D26; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.25rem clamp(1.1rem,2vw,1.6rem);
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 1rem; align-items: center;
  font-family: 'Saira', sans-serif; font-weight: 700; font-size: 1.05rem;
  transition: background .16s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: rgba(255,255,255,.05); }
.faq summary::after { content: '+'; font-family: 'Chivo Mono', monospace; color: var(--key-yellow); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq__body { padding: 0 clamp(1.1rem,2vw,1.6rem) 1.5rem; }
.faq__body p, .faq__body li { color: #C2BFB3; font-size: .98rem; }
.faq__body ul { margin: .5rem 0 0 1.25rem; }

.narrative { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(1.75rem,4vw,4rem); }
@media (max-width: 860px) { .narrative { grid-template-columns: 1fr; gap: 1.25rem; } }
.narrative p { color: #C2BFB3; margin-bottom: 1.1rem; }

.photos { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem; }
@media (max-width: 800px) { .photos { grid-template-columns: 1fr; } }
.photo { border-radius: 3px; overflow: hidden; background: #14130F; box-shadow: 0 0 0 1px rgba(0,0,0,.55), 0 8px 20px rgba(0,0,0,.35); }
.photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; filter: grayscale(.5) contrast(1.05); }
.photo figcaption { padding: .9rem 1rem 1.1rem; font-size: .89rem; color: #B5B2A6; line-height: 1.5; }

.icon-box { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 2px; background: rgba(230,188,48,.14); color: var(--key-yellow); margin-bottom: .35rem; }
.icon-box svg { width: 22px; height: 22px; }

.hr-rule { height: 0; border: 0; border-top: 2px solid rgba(0,0,0,.5); border-bottom: 1px solid rgba(255,255,255,.05); }

.tint-dark { background: linear-gradient(180deg, var(--panel-lo), var(--panel-dk)); background-color: #1B1A16; }
.tint-panel { background: radial-gradient(120% 100% at 50% 0%, rgba(255,255,255,.045), transparent 62%), linear-gradient(180deg, var(--panel-hi), var(--panel)); background-color: #31302A; }

/* Long unbroken URLs in the legal pages must wrap rather than push the page wide */
.prose a, .prose code { overflow-wrap: anywhere; word-break: break-word; }

/* numbered blocks carried over from the source */
.num-badge { font-family: 'Chivo Mono', monospace; font-weight: 700; font-size: 1.6rem; line-height: 1; color: var(--key-yellow); letter-spacing: -.03em; margin-bottom: .3rem; }
.pl-hook { color: var(--key-yellow); font-weight: 600; }
.sub-list { list-style: none; margin-left: 0; display: grid; gap: .5rem; }
.deliverable { border-top: 1px solid rgba(255,255,255,.12); padding-top: .9rem; margin-top: auto; font-size: .9rem; color: #B5B2A6; }
.deliverable p { max-width: none; }
.deliverable__k { font-family: 'Chivo Mono', monospace; font-size: .52rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--key-yellow); margin-bottom: .4rem; }

/* On Air post cards */
.post { padding: 0; overflow: hidden; }
.post__img { display: block; }
.post__img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.post__body { padding: 1.3rem 1.35rem 1.5rem; display: grid; gap: .7rem; }
.post__meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.post__badge { font-family: 'Chivo Mono', monospace; font-size: .52rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); background: var(--key-yellow); padding: .28rem .5rem .24rem; border-radius: 2px; }
.post__date { font-family: 'Chivo Mono', monospace; font-size: .56rem; letter-spacing: .14em; text-transform: uppercase; color: var(--silk-2); }
.post__title { font-family: 'Saira', sans-serif; font-weight: 800; font-variation-settings: 'wdth' 92; text-transform: uppercase; font-size: 1.1rem; line-height: 1.1; letter-spacing: -.015em; }
.wrap--narrow { width: min(100%, 900px); margin-inline: auto; }

/* contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid .offices { grid-template-columns: 1fr; }
[hidden] { display: none !important; }
.form label { cursor: pointer; }
.form input[type="radio"], .form input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--key-yellow); flex: none; margin: 0; box-shadow: none; padding: 0; }
.form .field > label + div, .form fieldset { display: flex; flex-wrap: wrap; gap: 1.1rem; align-items: center; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { font-family: 'Chivo Mono', monospace; font-size: .56rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--silk-2); margin-bottom: .6rem; }
.form input[type="radio"] + label, .form input[type="checkbox"] + label, .form label > input { vertical-align: middle; }
.form p:has(input[type="radio"]), .form p:has(input[type="checkbox"]), .form div:has(> input[type="checkbox"]) { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; color: #C2BFB3; line-height: 1.5; }
.form button[type="submit"], .form .btn { justify-self: start; }

/* On Air posts */
.post__hero { border-radius: 3px; overflow: hidden; margin-bottom: clamp(1.75rem,3vw,2.5rem); background: #14130F; box-shadow: 0 0 0 1px rgba(0,0,0,.55), 0 8px 22px rgba(0,0,0,.4); }
.post__hero img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.post__vote { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 2px solid rgba(0,0,0,.5); display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; color: var(--silk-2); font-size: .9rem; }
.post__back { margin-top: 2rem; }
.page-hero .post__meta { margin-top: 1.25rem; }

/* On Air index — featured post */
a.post, a.featured { text-decoration: none; }
.post__title, .featured__title { text-decoration: none; }
.featured { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: clamp(1.5rem,3.5vw,3rem); align-items: center; background: linear-gradient(180deg, #33322B, #292822); background-color: #2E2D26; border-radius: 3px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 6px 20px rgba(0,0,0,.35); transition: transform .2s var(--ease); }
.featured:hover { transform: translateY(-3px); }
@media (max-width: 860px) { .featured { grid-template-columns: 1fr; } }
.featured__img img { width: 100%; height: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.featured__body { padding: clamp(1.5rem,2.6vw,2.4rem) clamp(1.4rem,2.2vw,2rem); display: grid; gap: .9rem; }
.featured__title { font-family: 'Saira', sans-serif; font-weight: 800; font-variation-settings: 'wdth' 90; text-transform: uppercase; font-size: clamp(1.4rem,2.6vw,2.1rem); line-height: 1.05; letter-spacing: -.02em; }
.featured__body p { color: #C2BFB3; }

/* ============================================================
   AUDIT PASS — defects found by the full-site sweep
   ============================================================ */

/* h4/h5/h6 arrive from the transformed source and were falling back to UA
   defaults. Every heading level belongs to the same silkscreen family. */
h4, h5, h6 {
  font-family: 'Saira', system-ui, sans-serif;
  font-weight: 800; font-variation-settings: 'wdth' 92;
  text-transform: uppercase; line-height: 1.06; letter-spacing: -.01em;
  color: var(--silk);
}
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: .92rem; }
.clients h4, .clients h5, .quarter--white h4, .quarter--white h5 { color: var(--ink); }

/* Touch targets. WCAG 2.2 AA (2.5.8) wants 24px; these were 15–24px. */
.page-hero__back { padding-block: .5rem; margin-bottom: 1rem; }
.foot li a { display: inline-block; padding-block: .22rem; }
.form input[type="radio"], .form input[type="checkbox"] { width: 24px; height: 24px; }
/* an inline mailto in running prose still needs a 24px hit area */
.prose a[href^="mailto:"], .prose a[href^="tel:"] { display: inline-block; padding-block: .35rem; }

/* The step keys are 16-across by definition, so width is set by the row, not
   by us. Give them the height a thumb needs instead of shrinking the pattern. */
@media (max-width: 720px) {
  .step { aspect-ratio: auto; min-height: 40px; }
}

/* Pulse hero waveform: the source SVG relied on stylesheet stroke rules and was
   painting as solid black fill once those were dropped. It is the transmission
   line under the headline — draw it as one. */
.page-hero__wave { display: block; margin-top: clamp(1.75rem, 3vw, 2.5rem); line-height: 0; }
.page-hero__wave svg { width: 100%; height: clamp(64px, 9vw, 118px); display: block; }
.page-hero__wave path { fill: none; stroke: url(#plwg); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.page-hero__wave circle { fill: var(--led); filter: drop-shadow(0 0 6px rgba(255,68,38,.8)); }
@media (prefers-reduced-motion: no-preference) {
  .page-hero__wave circle { animation: wave-pulse 2.4s var(--ease) infinite; }
}
@keyframes wave-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Contact form: the demo question is a real fieldset, not body copy. */
.form__ask {
  font-family: 'Chivo Mono', monospace; font-size: .56rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--silk-2);
  margin-bottom: .7rem; max-width: none;
}
.form__choices { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.form__choices label { display: inline-flex; align-items: center; gap: .55rem; font-size: .98rem; color: #C6C3B7; padding-block: .35rem; }
.form__consent { display: flex; gap: .8rem; align-items: flex-start; font-size: .92rem; color: #B5B2A6; line-height: 1.55; max-width: 62ch; padding-block: .35rem; }

/* Qualifiers that carry information — signal direction, intended audience.
   These are data, not eyebrows, so they sit under the heading, never above it. */
.pcard__dir, .under-legend {
  font-family: 'Chivo Mono', monospace; font-size: .55rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--silk-2);
  display: inline-flex; align-items: center; gap: .35em;
}
.pcard__dir { margin-top: -.35rem; }
.pcard__dir--up { color: var(--key-orange); }
.under-legend { color: var(--key-yellow); margin: .5rem 0 .9rem; }

/* An inline SVG carrying only a viewBox stretches to fill whatever holds it.
   Source icons arrive that way, so on ai-services three of them were a metre
   tall. Cap anything unnamed at icon scale; wide plates opt out by class. */
main svg:not([width]):not([class]) { width: 26px; height: 26px; flex: none; }
main .page-hero__wave > svg:not([width]) { width: 100%; height: clamp(64px, 9vw, 118px); }
main svg.figure-wide { width: 100%; height: auto; display: block; color: var(--silk-2); opacity: .5; }

/* Stage tag — an icon plus one word, marking a step in an engagement model */
.stage-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'Chivo Mono', monospace; font-size: .55rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--key-yellow);
  margin-bottom: .2rem;
}
.stage-tag svg { width: 17px !important; height: 17px !important; }

/* Attributed pull quote */
/* A recessed bay under a sixteen-cell orange rule — the step row as a
   quotation mark. Not a coloured left border; that is someone else's callout. */
.quote {
  position: relative; background: var(--panel-dk); border-radius: 3px;
  padding: clamp(2.25rem, 3.4vw, 3.25rem) clamp(1.5rem, 2.6vw, 2.5rem) clamp(1.75rem, 3vw, 2.75rem);
  box-shadow: 0 4px 14px rgba(0,0,0,.6) inset, 0 0 0 1px rgba(0,0,0,.5);
}
.quote::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 7px;
  background: repeating-linear-gradient(90deg, var(--key-orange) 0 calc(6.25% - 3px), transparent calc(6.25% - 3px) 6.25%);
  border-radius: 3px 3px 0 0;
}
.quote > p { color: #D2CFC2; font-size: clamp(1.02rem, 1.25vw, 1.15rem); line-height: 1.6; margin-bottom: 1.1rem; max-width: 68ch; }
.quote > p:first-child { color: var(--silk); font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.48; }
.quote__by { display: flex; align-items: center; gap: 1rem; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); }
.quote__by img { width: 58px; height: 58px; border-radius: 2px; object-fit: cover; filter: grayscale(1) contrast(1.05); flex: none; }
.quote__who { display: grid; gap: .15rem; }
.quote__name { font-family: 'Saira', sans-serif; font-weight: 800; font-variation-settings: 'wdth' 92; text-transform: uppercase; font-size: 1rem; letter-spacing: -.01em; }
.quote__role { font-family: 'Chivo Mono', monospace; font-size: .55rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--key-yellow); }

/* Lists that arrive from the source without a component class still belong to
   the system: a square key marker, never a browser disc. */
main ul:not(.flist), main ol {
  list-style: none; display: grid; gap: .65rem; margin: 0 0 1.4rem;
  max-width: 74ch;
}
main ul:not(.flist) > li, main ol > li {
  display: grid; grid-template-columns: auto minmax(0,1fr); gap: .8rem;
  align-items: start; font-size: .98rem; line-height: 1.56; color: #C2BFB3;
}
main ul:not(.flist) > li::before {
  content: ''; width: 8px; height: 8px; margin-top: .48rem;
  border-radius: 1px; background: var(--key-orange);
}
/* A grid track sizes to its widest child's min-content. The privacy policy
   lists bare browser-settings URLs, so without these the page went 53px wide
   on a phone. */
main ul, main ol, main li { min-width: 0; }
main li { overflow-wrap: anywhere; }
.sub-list { grid-template-columns: minmax(0, 1fr); }
main ol { counter-reset: n; }
main ol > li::before {
  counter-increment: n; content: counter(n, decimal-leading-zero);
  font-family: 'Chivo Mono', monospace; font-size: .62rem; font-weight: 700;
  letter-spacing: .1em; color: var(--key-yellow); padding-top: .32rem;
}
/* Components that own their list rendering opt out. These must out-specify
   the base rule above, hence the leading `main` on every one. */
main .prose ul, main .prose ol { display: block; margin: 0 0 1.35rem 1.25rem; }
main .prose ul > li, main .prose ol > li { display: list-item; color: #C2BFB3; }
main .prose ul > li::before, main .prose ol > li::before { content: none; }
main .voice__body ul { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 0; }
/* the agent capability pills keep their own ink-on-yellow, not list body colour */
main .voice__body ul > li {
  display: block; color: var(--ink); background: var(--key-yellow);
  font-family: 'Chivo Mono', monospace; font-size: .58rem; letter-spacing: .12em;
  text-transform: uppercase; padding: .45rem .7rem .4rem; border-radius: 2px;
}
main .voice__body ul > li::before { content: none; }

/* Standalone status badge — the JNLR partner mark, and its like */
.badge {
  display: inline-flex; align-items: center; gap: .5rem; width: max-content;
  font-family: 'Chivo Mono', monospace; font-size: .56rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--key-yellow);
  padding: .55rem .85rem .5rem; border-radius: 2px;
  background: rgba(230,188,48,.1); box-shadow: 0 0 0 1px rgba(230,188,48,.35) inset;
}
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--led); box-shadow: 0 0 7px rgba(255,68,38,.8); }
.page-hero .badge { margin-top: 1.5rem; }

/* Spacing that used to live in inline style attributes on the homepage.
   Moved here when the page became components — a style attribute is a rule
   with no name and no reuse. */
.principles__head .lede { margin-top: 1.25rem; }
.lede--gap { margin-bottom: clamp(2rem, 3.5vw, 3rem); }
.lede--gap-lg { margin-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.screens__cta { margin-top: 2rem; }
.drawer .btn { margin-top: 1rem; }

/* Version / last-updated line at the head of the legal pages */
.doc-meta {
  font-family: 'Chivo Mono', monospace; font-size: .58rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--silk-2);
  line-height: 1.9; margin-bottom: 1.75rem;
  padding: .9rem 1.1rem; border-radius: 2px;
  background: rgba(0,0,0,.28); box-shadow: 0 0 0 1px rgba(255,255,255,.07);
}
