/* ══════════════════════════════════════════════════════════════════════
   NexFlow on the HypeCryptoNow terminal system — v3

   The theme is HCN's, taken wholesale. styles/style.css (HCN, 34.6 KB)
   and styles/newsroom.css (HCN, 10 KB) are copied unmodified from
   ~/Desktop/Hypecryptonow/terminal/ except for the two @font-face src
   paths, which now resolve from styles/ to ../assets/fonts/.
   styles/experience.css is copied for reference and its plate-caption
   idiom (figure/figcaption, .film-card .frame-label, .gallery-caption)
   is reproduced below; it is not linked globally because it re-declares
   body/h1 and would collide with the newsroom sheets.

   This file adds ONLY the NexFlow components the newsroom lacks, in the
   newsroom's own idiom: hairline rules, mono labels, ruled rows, figure
   plates with mono captions. It never redefines --bg/--ink/--red or the
   HCN type scale. NexFlow's brand colour appears at one point only:
   the wordmark dot.

   Values quoted from HCN style.css are marked "HCN:" with the line.
   ══════════════════════════════════════════════════════════════════════ */

:root {
  /* aliases onto HCN's tokens — never new palette values */
  --ok: var(--up);
  --hot: var(--red);
  --plate-line: #34363a;      /* HCN .hero border, style.css:325 */
  --panel-2: #191b20;         /* HCN .studio-shell, newsroom.css */
  --mono-line: #26282c;
  --inset: clamp(16px, 2.4vw, 34px);
}

/* ── shell ──────────────────────────────────────────────────────────── */
/* v3.1: anchored jumps clear the sticky mast (WIG: scroll-margin-top). */
[id] { scroll-margin-top: 84px; }

/* v3.1: no page-level horizontal scroll — HCN floor 4 (clip, not hidden, so sticky keeps working). */
html, body { overflow-x: clip; }

body {
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
.wrap:focus-visible,
main:focus-visible { outline: none; }
#main:focus-visible { outline: 2px solid #ff867f; outline-offset: 4px; }

/* ── dated location line (the newsroom dateline) ────────────────────── */
.deskline {
  background: #101113;
  border-bottom: 1px solid var(--line-soft);
}
.deskline-in {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 30px);
  min-height: 34px;
  font: 400 0.7rem/1 var(--mono);
  letter-spacing: 0.065em;
  text-transform: uppercase;
  color: #9b9ea6;
}
.deskline-in .dl-desk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c2c4c9;
}
.deskline-in .dl-desk::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--red);
  box-shadow: 0 0 8px #ff4f485e;   /* HCN .lead-flag:436 */
}
.deskline-in .right { margin-left: auto; color: #7e8189; }
@media (max-width: 820px) {
  .deskline-in { gap: 10px; font-size: 0.62rem; }
  .deskline-in .dl-place { display: none; }
}
@media (max-width: 650px) {
  .deskline-in .right { display: none; }
}

/* ── masthead extras ────────────────────────────────────────────────── */
.mark-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);          /* HCN red; the one NexFlow brand mark is the dot */
  align-self: flex-start;
  margin: 0.34em 0 0 1px;
}
.brand .mark-dot { background: #0e7c63; } /* NexFlow brand accent, dot only */
.mast-cta {
  height: 36px;                     /* HCN .search-open:204 */
  padding: 0 13px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.mast-menu {
  display: none;
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: 0.74rem var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sub);
}
.mast-menu:hover { color: #fff; }

@media (max-width: 900px) {
  .primary.nav { display: none; }
  .mast-menu { display: inline-flex; align-items: center; }
  .primary.nav[data-open="1"] {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 9;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #151619;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px #0008;
  }
  .primary.nav[data-open="1"] a {
    padding: 13px clamp(14px, 4vw, 32px);
    border-top: 1px solid var(--line-soft);
    font-size: 0.95rem;
  }
  .primary a[aria-current]::after { display: none; }
  .primary a[aria-current] { color: var(--red); }
  .mast-cta { display: none; }
}

/* ── tape extras: the mono fact strip ───────────────────────────────── */
.tape-item b { color: #e6e7ea; }
.tape-item .t-neg { color: #f87973; }
.tape-item .t-pos { color: var(--up); }
.tape-item .t-label { color: #a9acb3; }
@media (max-width: 900px) {
  .tape { justify-content: flex-start; }
  .tape-item:last-child { display: none; }
}

/* ── figure plate: HCN frame + mono caption (experience.css:81, 902) ── */
.plate {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  margin: 0;
  border: 1px solid var(--plate-line);
  background:
    radial-gradient(ellipse at 62% 38%, #252930 0, #191c20 34%, #151619 68%, #151517 94%);
  overflow: hidden;
  isolation: isolate;
  min-width: 0;
}
.plate::before,
.plate::after {                     /* HCN .hero corner marks, style.css:330 */
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: 3;
  height: 13px;
  width: 13px;
}
.plate::before {
  left: -1px;
  top: -1px;
  border-top: 2px solid #96989e;
  border-left: 2px solid #96989e;
}
.plate::after {
  right: -1px;
  bottom: -1px;
  border-bottom: 2px solid #96989e;
  border-right: 2px solid #96989e;
}
.plate-stage {
  position: relative;
  min-height: clamp(230px, 27vw, 400px);
  cursor: grab;
}
.plate-stage:active { cursor: grabbing; }
.plate > .plate-stage { touch-action: pan-y; }
.plate-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 6px;
  padding: 18px;
  font: 400 0.72rem/1.55 var(--mono);
  color: #8e9199;
  text-align: center;
  white-space: pre-line;
}
.plate-readout {
  position: absolute;
  left: 12px;
  bottom: 10px;
  right: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px;
  background: #101113d9;
  border: 1px solid #3d4046;
  border-radius: 3px;
  font: 400 0.68rem/1.3 var(--mono);
  color: #c9cbd0;
}
.plate-readout .pr-bar {
  flex: 1 1 40px;
  height: 3px;
  background: #2a2c31;
}
.plate-readout .pr-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  /* v3.1: compositor-only progress (no width transition -> no layout thrash). */
  transition: transform 0.35s cubic-bezier(0.2, 0.65, 0.3, 1);
}
.plate-foot {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  flex-wrap: wrap;
  padding: 8px 12px 9px;
  border-top: 1px solid var(--line);
  background: #141518f2;
}
.fig-no {
  font: 400 0.68rem/1 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #ff8a82;
  white-space: nowrap;
}
.plate-note {
  flex: 1 1 24ch;
  font: 400 0.68rem/1.45 var(--mono);
  color: #a3a6ad;
  min-width: 0;
}
.plate-controls {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  flex-wrap: wrap;
}
.plate-tabs {
  display: inline-flex;
  border: 1px solid #42454b;
  border-radius: 3px;
  overflow: hidden;
}
.plate-tab, .plate-pause { min-height: 24px; }
.plate-tab {
  padding: 5px 9px;
  font: 400 0.68rem/1 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #a9acb3;
  border-right: 1px solid #34373c;
}
.plate-tab:last-child { border-right: 0; }
.plate-tab:hover { color: #fff; background: #202125; }
.plate-tab[aria-selected="true"] {
  color: #fff;
  background: #2a2b2f;
  box-shadow: inset 0 -2px var(--red);
}
.plate-pause {
  padding: 5px 9px;
  border: 1px solid #42454b;
  border-radius: 3px;
  font: 400 0.68rem/1 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #c0c2c7;
}
.plate-pause[aria-pressed="true"] { color: #ff8a82; border-color: #6b3a37; }
.plate.reading { border-color: #2c2e33; }

/* ── home hero: HCN 46/54 lead with the plate in the atlas cell ─────── */
.hero-plate {
  position: relative;
  display: flex;
  padding: clamp(12px, 1.6vw, 24px);
  min-width: 0;
  z-index: 2;
}
.hero-plate .plate {
  flex: 1 1 auto;
  border-color: #3a3d43;
  background: linear-gradient(180deg, #1b1e23cc, #141619e8);
}
.hero-plate .plate-stage { min-height: clamp(220px, 24vw, 330px); }
.hero .lead-top .lead-flag::before { box-shadow: 0 0 8px #ff4f485e; }
.hero .lead-sub {
  font: 400 0.72rem/1.4 var(--mono);
  color: #9a9da5;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.hero .hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 16px;
  border-top: 1px solid #343638;
}
.hero .hero-facts div {
  padding: 9px 14px 2px 0;
  margin-right: 14px;
  border-right: 1px solid #303237;
  min-width: 92px;
}
.hero .hero-facts div:last-child { border-right: 0; }
.hero .hero-facts dt {
  font: 400 0.62rem/1.2 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8e9199;
}
.hero .hero-facts dd {
  margin: 3px 0 0;
  font: 600 0.92rem/1.2 var(--sans);
  letter-spacing: -0.02em;
  color: #e9eaec;
}

/* one orchestrated load moment — HCN's own .reveal/appear keyframes */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: appear 0.5s cubic-bezier(0.2, 0.65, 0.3, 1) both; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.18s; }
  .hero-copy > *:nth-child(5) { animation-delay: 0.24s; }
  .hero-plate { animation: appear 0.6s 0.1s cubic-bezier(0.2, 0.65, 0.3, 1) both; }
}
/* The owner's motion budget forbids per-section scroll reveals. HCN's own
   sheet animates .story-row on view() at style.css:1916; that stays in the
   ported file but is switched off here so nothing fires as you scroll. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .story-row { animation: none; }
  }
}

/* ── service rail under the hero (HCN .world-rail idiom) ────────────── */
.world-rail.service-rail { border-top: 1px solid #343638; }
.world-rail.service-rail > div { padding-block: 2px; }

/* ── ruled rows: notes, ledger, shelf ───────────────────────────────── */
.story-list .story-row { grid-template-columns: 104px 1fr; }
.story-list .story-row time {
  font: 400 0.69rem/1.4 var(--mono);
  color: #9a9da5;
  letter-spacing: 0.02em;
}
.story-list .story-row .article-title { margin: 3px 0 2px; }
.wire-panel .section-head { border-bottom: 1px solid var(--line); padding-bottom: 9px; }
.watch-panel .section-head { border-bottom: 1px solid var(--line); padding-bottom: 9px; }

.watch-table { margin-top: 8px; }
.watch-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--mono-line);
  align-items: baseline;
}
.watch-row a, .watch-row b {
  font: 550 0.9rem/1.25 var(--sans);
  letter-spacing: -0.02em;
}
.watch-row a:hover { color: #ff958b; }
.watch-row .wr-sub {
  grid-column: 1;
  font: 400 0.68rem/1.4 var(--mono);
  color: #8f929a;
}
.watch-row .wr-price {
  grid-row: 1 / span 2;
  grid-column: 2;
  text-align: right;
  font: 600 0.98rem/1.1 var(--mono);
  color: #eef0f2;
  white-space: nowrap;
}
.watch-row .wr-price small {
  display: block;
  font: 400 0.62rem/1.4 var(--mono);
  color: #8f929a;
  letter-spacing: 0.04em;
}
.watch-note {
  margin-top: 12px;
  font: 400 0.7rem/1.5 var(--mono);
  color: var(--muted);
}
.watch-note a { color: #ef9a90; text-decoration: underline; text-underline-offset: 3px; }

.ledger { border-top: 1px solid var(--line); margin-top: 14px; }
.ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.7fr) auto;
  gap: 8px 18px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--mono-line);
}
.ledger-row:hover { background: #17181c; }
.l-name { font: 550 1rem/1.25 var(--sans); letter-spacing: -0.025em; }
.l-desc { color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.l-meta {
  font: 400 0.66rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b8e96;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .ledger-row { grid-template-columns: 1fr auto; }
  .l-desc { grid-column: 1 / -1; }
}

.shelf { border-top: 1px solid var(--line); }
.shelf-item {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 6px 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--mono-line);
}
.shelf-item:hover h3 { color: #ff958b; }
.shelf-item .sh-date {
  font: 400 0.69rem/1.4 var(--mono);
  color: #9a9da5;
  padding-top: 3px;
}
.shelf-item h3 {
  font: 590 clamp(1rem, 1.35vw, 1.3rem)/1.22 var(--sans);
  letter-spacing: -0.032em;
  margin: 0;
}
.shelf-item p {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
  max-width: 78ch;
}
@media (max-width: 650px) {
  .shelf-item { grid-template-columns: 1fr; gap: 3px; }
  .shelf-item p { grid-column: 1; }
}

/* ── bands & section heads ──────────────────────────────────────────── */
.band {
  border-top: 1px solid var(--line);
  margin-top: clamp(26px, 3.2vw, 48px);
  padding-top: clamp(18px, 2.2vw, 30px);
}
.band.flush { border-top: 0; margin-top: 0; padding-top: 0; }
.band-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 22px;
  flex-wrap: wrap;
}
.band-title {
  font: 620 clamp(1.35rem, 1.95vw, 1.95rem)/1.16 var(--sans);
  letter-spacing: -0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.band-note {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
  max-width: 62ch;
}
.band-note a, .band-note .lnk { color: #ef9a90; text-decoration: underline; text-underline-offset: 3px; }
.band .band-title + .band-note { margin-top: 4px; }

/* ── numbered / ruled lists: steps, method rows ─────────────────────── */
.rows { border-top: 1px solid var(--line); margin-top: 14px; }
.row-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 6px 16px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--mono-line);
}
.row-item .r-n {
  font: 400 0.72rem/1.5 var(--mono);
  color: #ff8a82;
  letter-spacing: 0.08em;
}
.row-item b { font: 550 0.95rem/1.3 var(--sans); letter-spacing: -0.02em; }
.row-item small {
  display: block;
  font: 400 0.68rem/1.45 var(--mono);
  color: #8f929a;
  margin-top: 2px;
}
.row-item .r-meta {
  font: 400 0.66rem/1.4 var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #9a9da4;
  white-space: nowrap;
}
@media (max-width: 650px) {
  .row-item { grid-template-columns: 38px 1fr; }
  .row-item .r-meta { grid-column: 2; }
}

/* ── service cards as ruled plates (services hub) ───────────────────── */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  margin-top: 16px;
}
.svc-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 14px;
  background: var(--panel);
  min-height: 128px;
}
.svc-card:hover { background: #191b1f; }
.svc-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  font: 400 0.66rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8f929a;
}
.svc-card-price { color: #c8cace; text-transform: none; letter-spacing: 0.02em; }
.svc-card h3 {
  font: 590 1.14rem/1.2 var(--sans);
  letter-spacing: -0.035em;
}
.svc-card p { color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.svc-card-h1 {
  margin-top: auto;
  padding-top: 8px;
  font: 400 0.7rem/1.4 var(--mono);
  color: #9a9da4;
}
@media (max-width: 760px) { .svc-grid { grid-template-columns: 1fr; } }

/* ── page head for every non-home page (HCN .subpage, style.css:979) ── */
.page-head {
  padding: clamp(24px, 3vw, 42px) 0 clamp(16px, 2vw, 26px);
  border-bottom: 1px solid var(--line);
}
.page-head .overline { margin-bottom: 10px; }
.page-head h1 {
  font: 580 clamp(2.15rem, 4.2vw, 3.9rem)/1.04 var(--sans);
  letter-spacing: -0.062em;
  margin: 6px 0 12px;
  max-width: 22ch;
  text-wrap: balance;
}
.page-head .standfirst {
  color: #c0c2c7;
  font: 400 clamp(0.98rem, 1.14vw, 1.12rem)/1.5 var(--sans);
  max-width: 62ch;
}
.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  margin-top: 14px;
  font: 400 0.69rem/1.4 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9a9da5;
}
.page-meta .sep { color: #55585e; }
.page-meta .tag {
  text-transform: none;
  letter-spacing: 0.02em;
  padding: 2px 7px;
  border: 1px solid #42454b;
  border-radius: 3px;
  color: #b9bbc1;
}

/* ── article: rail + prose (HCN reader scale, style.css:1270) ───────── */
.read-grid {
  display: grid;
  grid-template-columns: minmax(0, 208px) minmax(0, 1fr) 0;
  gap: clamp(22px, 3vw, 54px);
  padding-block: clamp(20px, 2.6vw, 34px);
}
.rail {
  position: sticky;
  top: 92px;
  align-self: start;
  font: 400 0.74rem/1.5 var(--mono);
  padding-right: 8px;
  border-right: 1px solid var(--line-soft);
}
.rail-title {
  font: 400 0.64rem/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8b8e96;
  margin-bottom: 8px;
}
.rail ol { list-style: none; margin: 0; padding: 0; counter-reset: rail; }
.rail li { counter-increment: rail; }
.rail li a {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 4px;
  padding: 5px 0;
  color: #9fa2a9;
}
.rail li a::before {
  content: counter(rail, decimal-leading-zero);
  color: #5f626a;
}
.rail li a:hover, .rail li a[aria-current="true"] { color: #fff; }
.rail li a[aria-current="true"]::before { color: var(--red); }

.prose { max-width: 74ch; min-width: 0; }
.prose > p {
  color: #d0d2d7;
  font-size: 1.02rem;
  line-height: 1.58;
  margin-top: 16px;
}
.prose > p:first-child { margin-top: 0; }
.prose h2 {
  font: 600 clamp(1.5rem, 2.3vw, 2.05rem)/1.12 var(--sans);
  letter-spacing: -0.05em;
  margin: 34px 0 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.prose h3 {
  font: 590 1.12rem/1.3 var(--sans);
  letter-spacing: -0.028em;
  margin: 24px 0 2px;
}
.prose h4 {
  font: 400 0.72rem/1.4 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #ff8a82;
  margin: 22px 0 2px;
}
.prose ul, .prose ol { margin: 14px 0 0; padding-left: 0; list-style: none; }
.prose ul li, .prose ol li {
  position: relative;
  padding-left: 22px;
  margin-top: 7px;
  color: #c8cace;
  font-size: 0.99rem;
  line-height: 1.55;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 1px;
  background: var(--red);
}
.prose ol { counter-reset: prose-ol; }
.prose ol li { counter-increment: prose-ol; }
.prose ol li::before {
  content: counter(prose-ol, decimal-leading-zero);
  position: absolute;
  left: 0;
  font: 400 0.68rem/1.9 var(--mono);
  color: #8b8e96;
}
.prose a { color: #ffb3ab; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: #fff; }
.prose strong, .prose b { color: #f0f0f1; font-weight: 600; }
.prose blockquote {
  margin: 22px 0 0;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--red);
  font: 500 1.1rem/1.5 var(--sans);
  color: #e3e4e7;
  letter-spacing: -0.02em;
}
.prose .note {
  display: grid;
  gap: 5px;
  margin-top: 20px;
  padding: 12px 14px;
  background: #17181c;
  border: 1px solid #303237;
  border-left: 2px solid var(--red);
  font-size: 0.9rem;
  line-height: 1.5;
  color: #c4c6cb;
}
.prose .note-label {
  font: 400 0.64rem/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff8a82;
}
.prose pre {
  margin-top: 18px;
  padding: 14px 16px;
  background: #0d0e10;
  border: 1px solid #303237;
  overflow: auto;
  font: 400 0.78rem/1.55 var(--mono);
  color: #c9cbd0;
}
.prose .tablewrap { overflow-x: auto; margin-top: 20px; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.prose th {
  text-align: left;
  font: 400 0.64rem/1.4 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8f929a;
  padding: 0 12px 7px 0;
  border-bottom: 1px solid var(--line);
}
.prose td {
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--mono-line);
  color: #c8cace;
  vertical-align: top;
}
.prose td:not(:first-child) { font-variant-numeric: tabular-nums; }
.prose code {
  font: 400 0.86em/1.4 var(--mono);
  background: #1b1d21;
  border: 1px solid #2c2e33;
  padding: 1px 5px;
  border-radius: 2px;
  color: #e3e4e7;
}
.prose .dropcap::first-letter {
  float: left;
  font-size: 3.05em;
  line-height: 0.86;
  padding: 0.06em 0.09em 0 0;
  color: #f0f0f1;
  font-weight: 600;
}
@media (max-width: 1080px) {
  .read-grid { grid-template-columns: 1fr; }
  .rail {
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    padding: 0 0 12px;
  }
  .rail ol { display: flex; flex-wrap: wrap; gap: 2px 18px; }
  .rail li a { grid-template-columns: 18px 1fr; }
  .prose { max-width: none; }
}

.byline {
  font: 400 0.72rem/1.5 var(--mono);
  color: #9a9da5;
  letter-spacing: 0.03em;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tags .tag {
  font: 400 0.66rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border: 1px solid #42454b;
  border-radius: 3px;
  color: #b0b3ba;
}
.read-progress {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  z-index: 20;
  pointer-events: none;
}
.read-progress i { display: block; height: 100%; width: 0; background: var(--red); }
.read-foot {
  margin-top: 30px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
}
.small { font-size: 0.84rem; color: var(--muted); line-height: 1.5; }
.small a, .lnk { color: #ef9a90; text-decoration: underline; text-underline-offset: 3px; }
.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.pager a, .pager > span {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  background: var(--panel);
}
.pager small {
  font: 400 0.62rem/1.4 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8b8e96;
}
.pager b { font: 550 0.92rem/1.3 var(--sans); letter-spacing: -0.02em; }
.pager a:hover b { color: #ff958b; }
@media (max-width: 650px) { .pager { grid-template-columns: 1fr; } }

/* ── service head ───────────────────────────────────────────────────── */
.svc-head {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
  padding: clamp(22px, 2.8vw, 40px) 0 0;
}
.svc-head h1 {
  font: 580 clamp(1.95rem, 3.5vw, 3.2rem)/1.05 var(--sans);
  letter-spacing: -0.06em;
  margin: 8px 0 12px;
  max-width: 20ch;
  text-wrap: balance;
}
.svc-head .standfirst { color: #c0c2c7; font-size: 1.04rem; line-height: 1.5; max-width: 56ch; }
.buy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.svc-price {
  font: 600 clamp(1.15rem, 1.7vw, 1.5rem)/1.1 var(--mono);
  color: #f0f0f1;
  letter-spacing: -0.02em;
}
.svc-price small {
  font: 400 0.7rem/1.4 var(--mono);
  color: #9a9da5;
  letter-spacing: 0.02em;
}
.svc-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 16px;
  font: 400 0.69rem/1.5 var(--mono);
  color: #9a9da5;
}
.svc-facts b {
  display: block;
  font: 400 0.6rem/1.4 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #9a9da4;
}
.svc-head .plate-stage { min-height: clamp(220px, 25vw, 340px); }
@media (max-width: 900px) {
  .svc-head { grid-template-columns: 1fr; }
}

/* ── evidence blocks (pricing ledger) ───────────────────────────────── */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.9rem;
}
.price-table caption {
  caption-side: top;
  text-align: left;
  font: 400 0.66rem/1.4 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8b8e96;
  padding-bottom: 7px;
}
.price-table th {
  text-align: left;
  font: 400 0.63rem/1.4 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8b8e96;
  padding: 0 12px 8px 0;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.price-table td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--mono-line);
  vertical-align: baseline;
}
.price-table td.pt-name { font-weight: 550; letter-spacing: -0.02em; }
.price-table td.pt-num {
  font: 400 0.86rem/1.4 var(--mono);
  text-align: right;
  white-space: nowrap;
  color: #eef0f2;
}
.price-table td.pt-note { color: var(--muted); font-size: 0.84rem; }
.price-table tr:hover td { background: #17181c; }
.price-table .pt-group td {
  font: 400 0.62rem/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff8a82;
  padding-top: 18px;
  border-bottom: 1px solid var(--line);
  background: none;
}

/* estimator — a panel, not a card kit */
.est {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.85fr);
  border: 1px solid #353940;
  background: var(--panel-2);
  margin-top: 16px;
}
.est-form { padding: clamp(14px, 1.8vw, 22px); min-width: 0; }
.est-group {
  border: 0;
  padding: 0;
  margin: 0 0 6px;
  min-width: 0;
}
.est-group h3 {
  font: 400 0.63rem/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff8a82;
  padding: 12px 0 6px;
  border-bottom: 1px solid var(--line);
}
.est-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 3px 12px;
  align-items: baseline;
  padding: 9px 0 8px;
  border-bottom: 1px solid var(--mono-line);
  cursor: pointer;
}
.est-card:hover b { color: #fff; }
.est-card input {
  width: 15px;
  height: 15px;
  accent-color: var(--red);
  margin: 0;
  grid-row: 1 / span 2;
  align-self: center;
}
.est-card b { font: 550 0.92rem/1.3 var(--sans); letter-spacing: -0.02em; }
.est-card .e-desc {
  grid-column: 2;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}
.est-card .e-price {
  grid-row: 1 / span 2;
  grid-column: 3;
  text-align: right;
  font: 400 0.74rem/1.4 var(--mono);
  color: #c8cace;
  white-space: nowrap;
}
.est-card:has(input:checked) { background: #1d1f24; }
.est-out {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(16px, 2vw, 26px);
  border-left: 1px solid #353940;
  background: #141518;
}
.o-label {
  font: 400 0.66rem/1.4 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8b8e96;
}
.est-total {
  font: 600 clamp(2.1rem, 4vw, 3.1rem)/1 var(--mono);
  letter-spacing: -0.045em;
  color: #f2f3f5;
  margin: 2px 0 2px;
}
.est-total small { font: 400 0.72rem/1 var(--mono); color: #9a9da5; letter-spacing: 0.02em; }
.est-setup { font: 400 0.78rem/1.5 var(--mono); color: #c8cace; }
.est-custom { font: 400 0.72rem/1.5 var(--mono); color: #ffb3ab; }
.est-custom[data-on="0"]:empty { display: none; }
.est-note { font: 400 0.7rem/1.5 var(--mono); color: var(--muted); }
#est-cta { align-self: flex-start; margin-top: 8px; }
@media (max-width: 900px) {
  .est { grid-template-columns: 1fr; }
  .est-out { border-left: 0; border-top: 1px solid #353940; }
}

.sprint-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 18px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--mono-line);
}
.sprint-row b { font: 590 1.05rem/1.25 var(--sans); letter-spacing: -0.03em; }
.sprint-row p { color: var(--muted); font-size: 0.88rem; line-height: 1.5; margin: 2px 0 0; }
.sprint-row .sp {
  text-align: right;
  font: 600 0.92rem/1.35 var(--mono);
  color: #eef0f2;
  white-space: nowrap;
}

.price-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  margin-top: 14px;
}
.price-cell { background: var(--panel); padding: 16px 17px; display: grid; gap: 5px; }
.price-cell ul { list-style: none; margin: 6px 0 0; padding: 0; }
.price-cell li {
  font: 400 0.72rem/1.6 var(--mono);
  color: #a9acb3;
  padding-left: 12px;
  position: relative;
}
.price-cell li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 6px;
  height: 1px;
  background: var(--red);
}
.p-name { font: 400 0.64rem/1.4 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: #8b8e96; }
.p-amt { font: 600 clamp(1.6rem, 2.6vw, 2.2rem)/1 var(--mono); letter-spacing: -0.04em; color: #f0f0f1; }
.p-amt small { font: 400 0.7rem/1 var(--mono); color: #9a9da5; letter-spacing: 0; }
@media (max-width: 650px) { .price-pair { grid-template-columns: 1fr; } }

/* ── Q&A rows ───────────────────────────────────────────────────────── */
.qa {
  border-bottom: 1px solid var(--mono-line);
}
.qa summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 11px 0;
  font: 550 0.98rem/1.35 var(--sans);
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+";
  font: 400 0.9rem/1 var(--mono);
  color: #8b8e96;
}
.qa[open] summary::after { content: "−"; color: var(--red); }
.qa summary:hover { color: #fff; }
.qa-body { padding: 0 0 12px; }
.qa-body p { color: #c0c2c7; font-size: 0.94rem; line-height: 1.55; margin-top: 6px; max-width: 72ch; }
.qa-body ol, .qa-body ul { margin: 8px 0 0 18px; color: #c0c2c7; font-size: 0.94rem; }

/* ── faq hub ────────────────────────────────────────────────────────── */
.search-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.search-bar label {
  font: 400 0.64rem/1.4 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8b8e96;
  white-space: nowrap;
}
.search-bar input {
  width: 100%;
  background: #101113;
  border: 1px solid #3a3d43;
  border-radius: 3px;
  color: var(--ink);
  padding: 8px 10px;
  font: 400 0.85rem/1.4 var(--sans);
}
.search-bar input::placeholder { color: #6f727a; }
.faq-group { margin-top: clamp(20px, 2.6vw, 34px); }
.faq-group h2 {
  font: 620 clamp(1.15rem, 1.6vw, 1.5rem)/1.2 var(--sans);
  letter-spacing: -0.04em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 9px;
}
.faq-group h2::before {
  content: "";
  width: 5px;
  height: 15px;
  background: var(--red);
  transform: skew(-16deg);      /* HCN .section-slash:692 */
}
.faq-list { list-style: none; margin: 0; padding: 0; }
.faq-list li { border-bottom: 1px solid var(--mono-line); }
.faq-list a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  counter-increment: none;
}
.faq-list a span { font: 550 0.95rem/1.35 var(--sans); letter-spacing: -0.02em; }
.faq-list a small {
  font: 400 0.64rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b8e96;
}
.faq-list a:hover span { color: #ff958b; }
.faq-empty { margin-top: 18px; color: var(--muted); font: 400 0.78rem/1.5 var(--mono); }

/* ── dashboard: instrument panel ────────────────────────────────────── */
.dash-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.dash-id { font: 550 1rem/1.3 var(--sans); letter-spacing: -0.02em; }
.dash-id small {
  display: block;
  margin-top: 3px;
  font: 400 0.66rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8b8e96;
}
.seg { display: inline-flex; border: 1px solid #42454b; border-radius: 3px; overflow: hidden; }
.seg button {
  padding: 6px 10px;
  font: 400 0.68rem/1 var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #a9acb3;
  border-right: 1px solid #34373c;
}
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: #2a2b2f; color: #fff; box-shadow: inset 0 -2px var(--red); }
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-top: 0;
}
.kpi { background: var(--panel); padding: 13px 15px 12px; display: grid; gap: 3px; }
.kpi span {
  font: 400 0.62rem/1.4 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8b8e96;
}
.kpi b { font: 600 clamp(1.35rem, 2.2vw, 1.95rem)/1 var(--mono); letter-spacing: -0.045em; color: #f2f3f5; }
.kpi em { font: 400 0.66rem/1.4 var(--mono); font-style: normal; color: var(--up); }
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 34px);
  margin-top: 18px;
}
.panel { border: 1px solid #303237; background: var(--panel); }
.panel-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid #303237;
}
.panel-h h2 { font: 600 0.95rem/1.3 var(--sans); letter-spacing: -0.025em; }
.panel-h small {
  font: 400 0.64rem/1.4 var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #8b8e96;
  white-space: nowrap;
}
.panel-b { padding: 8px 14px 14px; }
.panel-b .plate { margin-top: 4px; }
.funnel-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 54px;
  gap: 12px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--mono-line);
}
.f-stage { font: 550 0.8rem/1.3 var(--sans); letter-spacing: -0.01em; }
.f-stage .small { font: 400 0.62rem/1.4 var(--mono); color: #9a9da4; }
.f-bar { height: 9px; background: #24262a; border: 1px solid #2c2e33; }
.f-bar i { display: block; height: 100%; background: linear-gradient(90deg, #c63530, var(--red)); }
.f-n { text-align: right; font: 600 0.8rem/1.3 var(--mono); color: #e9eaec; }
@media (max-width: 760px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: 1fr; }
  .funnel-row { grid-template-columns: 108px minmax(0, 1fr) 44px; gap: 8px; }
}
.wf-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--mono-line);
  align-items: baseline;
}
.wf-row b { font: 550 0.86rem/1.3 var(--sans); letter-spacing: -0.015em; }
.wf-row small { grid-column: 1; font: 400 0.64rem/1.45 var(--mono); color: #8f929a; }
.wf-state {
  font: 400 0.6rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border: 1px solid #3a3d43;
  border-radius: 2px;
  color: #a3a6ad;
  white-space: nowrap;
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
}
.wf-state.live { color: #80caa9; border-color: #2f5b4a; }
.wf-state.attention { color: #ff8a82; border-color: #6b3a37; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--mono-line);
  font-size: 0.84rem;
  color: #c0c2c7;
  line-height: 1.45;
}
.feed time { font: 400 0.64rem/1.6 var(--mono); color: #8b8e96; letter-spacing: 0.02em; }
.sparkline { width: 100%; height: 54px; }
.sparkline path { stroke: var(--up); }
.dash-note {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font: 400 0.7rem/1.55 var(--mono);
  color: #9a9da5;
  max-width: 90ch;
}
.sample-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 400 0.62rem/1 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #ff8a82;
  border: 1px solid #6b3a37;
  padding: 3px 7px;
  border-radius: 2px;
}

/* ── contact + forms ────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  margin-top: 16px;
}
.contact-cell { background: var(--panel); padding: 17px 18px; display: grid; gap: 7px; align-content: start; }
.contact-cell h2 { font: 590 1.08rem/1.25 var(--sans); letter-spacing: -0.03em; }
.contact-cell p { color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.contact-cell .btn, .contact-cell .solid, .contact-cell .outline { justify-self: start; margin-top: 4px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

.brief {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.brief label {
  display: grid;
  gap: 5px;
  font: 400 0.63rem/1.4 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8b8e96;
}
.brief input, .brief select, .brief textarea {
  background: #101113;
  border: 1px solid #3a3d43;
  border-radius: 3px;
  color: var(--ink);
  padding: 9px 10px;
  font: 400 0.9rem/1.45 var(--sans);
  width: 100%;
}
.brief textarea { resize: vertical; }
.brief .full { grid-column: 1 / -1; }
.brief .btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 650px) { .brief { grid-template-columns: 1fr; } }

/* ── book band (closing call to action) ─────────────────────────────── */
.book-band {
  border-top: 1px solid var(--line);
  margin-top: clamp(28px, 3.4vw, 50px);
  background: #121315;            /* HCN .foot:952 */
}
.book-band .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  flex-wrap: wrap;
  padding: clamp(18px, 2.6vw, 30px) 0;
}
.book-band h2 {
  font: 620 clamp(1.2rem, 1.8vw, 1.6rem)/1.2 var(--sans);
  letter-spacing: -0.045em;
}
.book-band p { color: var(--muted); font-size: 0.86rem; line-height: 1.5; margin-top: 4px; max-width: 62ch; }
.book-band .btn-row { display: flex; gap: 9px; flex-wrap: wrap; }

/* ── footer columns (HCN .foot idiom extended) ──────────────────────── */
.foot { margin-top: 0; }
.foot-main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(4, minmax(0, 1fr));
  gap: 18px clamp(14px, 2vw, 30px);
  padding: 30px 0 22px;
  border-bottom: 1px solid var(--line-soft);
}
.foot-brand-block p { color: #9a9da5; font-size: 0.8rem; line-height: 1.55; margin-top: 8px; max-width: 34ch; }
.foot-col h2 {
  font: 400 0.62rem/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8b8e96;
  margin-bottom: 8px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin: 0; }
.foot-col a {
  display: inline-block;
  padding: 3px 0;
  font-size: 0.82rem;
  color: #a7a9af;
  line-height: 1.4;
}
.foot-col a:hover { color: #fff; }
.foot-inner { min-height: 62px; font: 400 0.72rem/1.5 var(--mono); color: #8b8e96; }
.foot-inner .foot-brand { font-family: var(--sans); }
.foot-inner button { color: #a7a9af; font: 400 0.7rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.foot-inner button:hover { color: #fff; }
.foot-flag { color: #ff8a82; letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 1080px) {
  .foot-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand-block { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
  .foot-main { grid-template-columns: 1fr; }
  .foot-inner { flex-wrap: wrap; gap: 8px 16px; padding: 14px 0; }
}

/* ── studio block on the home page (HCN newsroom.css owns the shell) ── */
.studio-block { margin-top: clamp(26px, 3.2vw, 48px); }
.studio-block .section-head { margin-bottom: 12px; }
#studio-tabs button { font-family: var(--mono); letter-spacing: 0.04em; }
.studio-info h3 { letter-spacing: -0.055em; }
.studio-info #studio-kicker { color: #ff8a82; }
.studio-info > p:not(.eyebrow) { color: var(--sub); }

/* mode rows (work page + home band) */
.modes { border-top: 1px solid var(--line); }
.mode-row {
  display: grid;
  grid-template-columns: 46px minmax(120px, 0.6fr) minmax(0, 1.6fr) auto;
  gap: 6px 16px;
  align-items: baseline;
  width: 100%;
  text-align: left;
  padding: 11px 0;
  border-bottom: 1px solid var(--mono-line);
}
.mode-row:hover { background: #17181c; }
.mode-row .m-idx { font: 400 0.68rem/1.5 var(--mono); color: #ff8a82; }
.mode-row .m-name { font: 590 1rem/1.25 var(--sans); letter-spacing: -0.025em; }
.mode-row .m-desc { color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.mode-row .m-tag {
  font: 400 0.64rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  color: #9a9da4;
  white-space: nowrap;
}
.mode-row[aria-pressed="true"] { background: #1b1d21; }
.mode-row[aria-pressed="true"] .m-name { color: #fff; }
.mode-row[aria-pressed="true"] .m-idx { color: var(--red); }
@media (max-width: 760px) {
  .mode-row { grid-template-columns: 34px 1fr auto; }
  .mode-row .m-desc { grid-column: 2 / -1; }
}

/* briefing fold */
.briefing { margin-top: 10px; border-top: 1px solid var(--line); }
.briefing summary {
  padding: 11px 0;
  font: 400 0.7rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b0b3ba;
  cursor: pointer;
}
.briefing summary:hover { color: #fff; }
.briefing-body { padding: 6px 0 18px; }

/* ── Arabic mirror: same system, right-to-left ──────────────────────── */
[dir="rtl"] body,
[dir="rtl"] .lead-summary,
[dir="rtl"] .prose > p,
[dir="rtl"] .standfirst,
[dir="rtl"] .band-note {
  font-family: "Plex Arabic", Atkinson, Arial, sans-serif;
}
[dir="rtl"] .page-head h1,
[dir="rtl"] .hero h1,
[dir="rtl"] .svc-head h1,
[dir="rtl"] .band-title,
[dir="rtl"] .prose h2,
[dir="rtl"] .prose h3 {
  font-family: "Plex Arabic", Atkinson, Arial, sans-serif;
  letter-spacing: 0;
  line-height: 1.28;
}
[dir="rtl"] .eyebrow, [dir="rtl"] .overline, [dir="rtl"] .l-meta,
[dir="rtl"] .fig-no, [dir="rtl"] .watch-row .wr-price, [dir="rtl"] .kpi b {
  letter-spacing: 0;
}
[dir="rtl"] .watch-panel { border-left: 0; border-right: 1px solid var(--line-soft); padding-left: 0; padding-right: clamp(20px, 2vw, 38px); }
[dir="rtl"] .rail { border-right: 0; border-left: 1px solid var(--line-soft); padding-right: 0; padding-left: 8px; }
[dir="rtl"] .prose ul li { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .prose ul li::before { left: auto; right: 0; }
[dir="rtl"] .prose ol li { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .prose ol li::before { left: auto; right: 0; }
[dir="rtl"] .prose blockquote { border-left: 0; border-right: 2px solid var(--red); padding-left: 0; padding-right: 18px; }
[dir="rtl"] .hero-copy { padding: clamp(29px, 3.1vw, 55px) clamp(25px, 3.15vw, 56px) clamp(24px, 2.6vw, 42px) 0; }
[dir="rtl"] .hero .hero-facts div { padding-right: 0; padding-left: 14px; margin-right: 0; margin-left: 14px; border-right: 0; border-left: 1px solid #303237; }
[dir="rtl"] .hero .hero-facts div:last-child { border-left: 0; }
[dir="rtl"] .deskline-in .right { margin-left: 0; margin-right: auto; }
[dir="rtl"] .mast .brand { flex-direction: row-reverse; }
[dir="rtl"] .plate-readout .pr-bar i { float: right; transform-origin: right center; }
[dir="rtl"] .price-table td.pt-num, [dir="rtl"] .f-n, [dir="rtl"] .sprint-row .sp { text-align: left; }
[dir="rtl"] .price-table th, [dir="rtl"] .price-table td { text-align: right; }
[dir="rtl"] .ledger-row, [dir="rtl"] .story-list .story-row, [dir="rtl"] .shelf-item { direction: rtl; }
[dir="rtl"] .qa summary::after { grid-column: 1; grid-row: 1; justify-self: end; }
@media (max-width: 900px) {
  [dir="rtl"] .hero { grid-template-columns: 1fr; }
}

/* ── motion: input-driven only, reduced-motion respected ────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *, .hero-plate { animation: none !important; }
  .plate-readout .pr-bar i { transition: none; }
}

/* print: keep the record legible */
@media print {
  .mast, .deskline, .tape-shell, .book-band, .foot, .plate-controls, .read-progress { display: none !important; }
  body { background: #fff; color: #111; }
  .prose > p, .prose li { color: #111; }
}

/* ── late additions: layout helpers used by the builder ─────────────── */
:root { --ease: cubic-bezier(0.2, 0.65, 0.3, 1); }
.plate-wrap { margin: clamp(16px, 2.2vw, 28px) 0 0; }
.duo {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
}
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } }
.btn-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.rail-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 400 0.64rem/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8b8e96;
  white-space: nowrap;
}
.rail-label::before {
  content: "";
  width: 5px;
  height: 13px;
  background: var(--red);
  transform: skew(-16deg);
}
.watch-panel .guides { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.watch-panel .guides h3 {
  font: 400 0.64rem/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8b8e96;
  margin-bottom: 6px;
}
.watch-panel .guides ul { list-style: none; margin: 0; padding: 0; }
.watch-panel .guides li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 6px;
  padding: 5px 0;
  border-bottom: 1px solid var(--mono-line);
  font-size: 0.82rem;
  line-height: 1.45;
  color: #b6b8be;
}
.watch-panel .guides .mono { color: #ff8a82; font: 400 0.68rem/1.6 var(--mono); }
.mast-inner { position: relative; }
.section-head .page-meta { margin: 0; }
.foot-contact { margin-top: 8px; font: 400 0.72rem/1.5 var(--mono); color: #9a9da5; }
.foot-contact a { color: #c8cace; }
.foot-contact a:hover { color: #fff; }
.foot-contact .sep { color: #55585e; margin: 0 4px; }
.row-item small { font-size: 0.8rem; line-height: 1.5; color: #aeb1b7; }
.world-rail > div {
  mask-image: linear-gradient(90deg, #000 0, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 92%, transparent 100%);
}
[dir="rtl"] .world-rail > div {
  mask-image: linear-gradient(270deg, #000 0, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(270deg, #000 0, #000 92%, transparent 100%);
}

/* plate controls must never widen the frame (mobile min-content) */
.plate-controls { min-width: 0; }
.plate-tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.plate-tabs::-webkit-scrollbar { display: none; }
@media (max-width: 760px) {
  .plate-tab { padding: 5px 7px; font-size: 0.62rem; }
  .plate-foot { gap: 8px 10px; }
  .plate-pause { padding: 5px 7px; font-size: 0.62rem; }
}

/* critique round 2: a reading plate is a reference figure, not a hero */
.plate.reading .plate-stage { min-height: clamp(190px, 20vw, 290px); }
.faq-list a { grid-template-columns: minmax(0, 1fr) auto; }
.svc-card { min-height: 104px; padding: 14px 17px 13px; }

/* v3.1: disabled controls announce themselves beyond opacity. */
button:disabled, [aria-disabled="true"] { cursor: not-allowed; }

/* v3.2 — impeccable detect fixes -------------------------------------------
   1. functional micro text never below 11px (was 10.24/10.88px)
   2. small mono copy on panels raised to WCAG AA contrast (was 4.4:1)
   3. back-to-top control meets the 24px target minimum                       */
.plate-readout .pr-step, .pr-step,
.plate-tab, .plate-pause,
.m-tag, .m-idx, .step-index, .step-no,
.ledger-no, .fig-no,
.pr-name, .plate-note, .tst-note, .orbit-help,
.hero-facts dt, .fact dt, dt { font-size: 11.2px; }
[data-back-top] { min-height: 24px; padding: 4px 8px; }

/* v3.2 — functional text floor (impeccable undersized-ui-text): nothing that carries
   meaning renders below 11px. Decorative type is unaffected because it isn't text. */
body dt, body th, body td, body caption, body label, body small, body time, body button,
body .o-label, body .p-name, body .rail-title, body .rail-label, body .l-meta,
body .r-meta, body .m-idx, body .m-tag, body .mono, body .overline, body .note-label,
body .sample-flag, body .small, body .svc-card-price, body .wf-state, body .wr-sub,
body .fig-no, body .pr-name, body .plate-note, body .tst-note, body .orbit-help,
body .foot-col h2, body .est-group h3, body .svc-card-top span, body .pr-step,
body .dateline span, body .deskline span, body .watch-note, body .lead-flag,
body .kpi span, body .kpi em, body .svc-facts span b, body .guides h3,
body output, body .tst-city, body .tst-facts div, body .briefing summary {
  font-size: 12px !important;
}

/* v3.2: the studio block's kicker repeated the model's own heading; the heading stands. */
#studio-kicker { display: none; }

/* ── v3.3: globe leads, models big and in place, notes compact and low ───── */
.hero-globe { display: flex; flex-direction: column; min-width: 0; }
.hero-globe .atlas { flex: 1; }
.hero-globe .globe-stage { flex-basis: 400px; }
@media (max-width: 900px) { .hero-globe .globe-stage { flex-basis: 320px; } }

.tst-record-band { margin-top: 20px; }
.tst-record-band .tst-card {
  display: grid; grid-template-columns: 230px minmax(0, 1fr) 280px;
  gap: 6px 26px; align-items: start;
}
.tst-record-band .tst-card .tst-city { grid-column: 1; grid-row: 1; }
.tst-record-band .tst-card h3 { grid-column: 1; grid-row: 2; }
.tst-record-band .tst-card p { grid-column: 2; grid-row: 1 / span 2; max-width: none; }
.tst-record-band .tst-facts {
  grid-column: 3; grid-row: 1 / span 2; margin: 0; border-top: 0; padding-top: 0;
  flex-direction: column; gap: 10px;
}
.tst-record-band .tst-build { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .tst-record-band .tst-card { display: flex; flex-direction: column; }
  .tst-record-band .tst-facts { flex-direction: row; }
}

.tst-build { border-top: 1px solid var(--line-soft); margin-top: 12px; padding-top: 10px; }
.tst-build summary {
  cursor: pointer; font-family: var(--mono); font-size: 12px;
  color: var(--muted); letter-spacing: .02em;
}
.tst-build summary:hover, .tst-build summary:focus-visible { color: var(--ink); }
.tst-build dl { margin: 10px 0 0; display: grid; gap: 8px; }
.tst-build dt { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.tst-build dd { margin: 2px 0 0; font-size: .92rem; line-height: 1.5; color: var(--sub); }

.models-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 18px; align-items: stretch; margin-top: 14px;
}
.models-grid .plate { margin: 0; }
.models-grid .plate-stage { min-height: 460px; }
.models-grid .modes { border-top: 0; align-self: start; }
@media (max-width: 900px) {
  .models-grid { grid-template-columns: 1fr; }
  .models-grid .plate-stage { min-height: 320px; }
}

.studio-shell { min-height: 480px; }
.studio-view { min-height: 480px; }
@media (max-width: 900px) { .studio-shell, .studio-view { min-height: 340px; } }

.desk-layout.compact { grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr); margin-top: 28px; }
.desk-layout.compact .section-head h2 { font-size: 1.25rem; }
.desk-layout.compact .story-row { padding: 9px 0; }
.desk-layout.compact .article-title { font-size: .95rem; }
.desk-layout.compact .row-summary { font-size: .84rem; }
.desk-layout.compact .watch-row { padding: 7px 0; }
.desk-layout.compact .watch-row a, .desk-layout.compact .watch-row b { font-size: .84rem; }
@media (max-width: 900px) { .desk-layout.compact { grid-template-columns: 1fr; } }

/* v3.3: screen-reader-only live regions must not paint (plate announcements). */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── v3.4: house type, mobile polish, input-driven delight ───────────────── */
:root {
  --sans: Atkinson, "Segoe UI", Arial, sans-serif;
  --display: Bricolage, Atkinson, Arial, sans-serif;
}
h1, h2, h3, .brand, .band-title, .tst-card h3, .studio-info h3, .hero h1,
.page-head h1, .svc-head h1, .read-head h1 {
  font-family: var(--display);
  font-variation-settings: "opsz" 40;
  letter-spacing: -0.03em;
}
.hero h1 { font-variation-settings: "opsz" 96; font-weight: 640; }
::selection { background: var(--red); color: #101113; }

.globe-title { font-size: 13.5px !important; letter-spacing: .1em; color: var(--ink); }
.globe-title b { font-family: var(--mono); font-weight: 500; color: var(--muted); margin-left: 8px; }
.tst-when { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 2px; }

/* delight: answers to input only, never scroll-triggered */
.solid, .outline { transition: transform .16s cubic-bezier(.2,.65,.3,1), box-shadow .16s, background-color .16s, border-color .16s; }
.solid:hover, .outline:hover { transform: translateY(-1px); box-shadow: 0 6px 18px #00000059; }
.solid:active, .outline:active { transform: translateY(0); box-shadow: none; }
.market-globe-pin span { transition: transform .18s cubic-bezier(.2,.65,.3,1), border-color .18s; }
.market-globe-pin:hover span, .market-globe-pin:focus-visible span { transform: scale(1.12); border-color: var(--red); }
.mode-row { transition: background-color .15s, padding-left .15s; }
.mode-row:hover { padding-left: 6px; }
.ledger-row, .story-row h3 a { transition: color .15s, background-color .15s; }
@media (prefers-reduced-motion: reduce) {
  .solid, .outline, .market-globe-pin span, .mode-row { transition: none; }
  .solid:hover, .outline:hover { transform: none; }
}

/* mobile: touch-first rhythm */
@media (max-width: 760px) {
  .solid, .outline { min-height: 44px; display: inline-flex; align-items: center; }
  .hero { margin-top: 10px; }
  .hero-copy { padding: 18px 16px 4px; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .tst-record-band .tst-card { padding: 14px; gap: 8px; }
  .tst-record-band .tst-facts { flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .models-grid .modes { margin-top: 4px; }
  .mode-row { padding: 10px 6px; }
  .desk-layout.compact { margin-top: 20px; }
  .tape { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .camera button { min-height: 32px; }
  .atlas-head select { min-height: 36px; }
}

/* v3.4 mobile micro-polish */
.globe-title { white-space: nowrap; }
@media (max-width: 520px) {
  .globe-title b { display: none; }
  .mast .solid { white-space: nowrap; font-size: .78rem; padding: 6px 10px; min-height: 34px; }
}
