/* wwd.css — /what-we-do page. Scrolling subpage of the Cosmo terminal site.
   Loads after cosmo-base.css. Carries the green/pink token overrides itself
   (hero-v4.css is NOT loaded here — it pins the body to 100svh).
   Design-system: true black, phosphor green voice, pink protagonist,
   mono default, sans for headlines + narrative copy. */

:root {
  --amber: #3DFC6E;
  --amber-dim: #1d5a2e;
  --pink: #FF5CA8;
  --pink-dim: #7c3a5c;
  --txt: #e0f2e3;
  --paper: #F2EDE1;
  --body: #b8b3a7;
  --hairline: #2a302a;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { overflow-x: hidden; }

.k-white { color: #EDE9DE; }
.k-coral { color: #FF8C7A; }
.k-cyan  { color: #7FD6FF; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 3vw, 44px); }

/* ================= sticky top bar ================= */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
}
.topbar-in {
  max-width: 1200px; margin: 0 auto;
  padding: 12px clamp(20px, 3vw, 44px);
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
}
.topbar .brand {
  display: flex; flex-direction: column; gap: 3px; flex: none;
  text-decoration: none;
}
.topbar .with { color: #fff; font-weight: 700; font-size: 11px; letter-spacing: .08em; }
.topbar .wordmark-mini { font-size: 3.4px; }

/* gradient ASCII wordmark (hero-v4 recipe — that sheet isn't loaded here) */
.wordmark-mini {
  margin: 0; font-family: var(--mono); white-space: pre; user-select: none;
  line-height: 1.2;
  background: linear-gradient(90deg, #7FD6FF 0%, #3DFC6E 48%, #F2E96B 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 5px rgba(61, 252, 110, .34));
}
.wordmark-mini.ascii-glitch { text-shadow: none; }

.list-kicker { font-size: 11px; letter-spacing: .16em; color: var(--dim); margin: 0 0 10px; }

.topnav {
  display: flex; align-items: center; gap: clamp(10px, 1.8vw, 22px);
  margin-left: auto;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.topnav::-webkit-scrollbar { display: none; }
.topnav a {
  position: relative; flex: none;
  color: var(--txt); font-size: 12.5px; letter-spacing: .02em;
  padding: 6px 0; text-decoration: none;
  transition: color .16s ease;
}
.topnav a .tilde { color: var(--amber-dim); transition: color .16s ease; }
.topnav a::after {
  content: ""; position: absolute; left: 0; bottom: 2px;
  height: 1px; width: 100%; background: var(--pink);
  transform: scaleX(0); transform-origin: left;
}
.topnav a:hover, .topnav a:focus-visible { color: var(--pink); text-decoration: none; }
.topnav a:hover .tilde, .topnav a:focus-visible .tilde { color: var(--pink); }
.topnav a:hover::after, .topnav a:focus-visible::after {
  transform: scaleX(1); transition: transform .28s steps(9, end);
}
.topnav a.is-here { color: var(--pink); }
.topnav a.is-here .tilde { color: var(--pink); }
.topnav a.is-here::after { transform: scaleX(1); }

.topbar .book-pill {
  flex: none; margin: 0;
  display: inline-block; text-align: center;
  border: 1px solid #fff; border-radius: 8px;
  background: #fff;
  color: #000; padding: 9px 16px; font-weight: 700; font-size: 12.5px;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .12s ease;
}
.topbar .book-pill:hover { background: #000; border-color: #fff; color: #fff; }
.topbar .book-pill:active { transform: scale(.985); }

/* ================= sections ================= */
main.page { display: block; }

.sec { padding: clamp(76px, 10vh, 132px) 0 0; }
.sec-in { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 3vw, 44px); }

.sec-label {
  font-size: 15px; letter-spacing: .18em; color: var(--txt); margin: 0 0 18px;
}
.sec-label .hash { color: var(--amber); }

h2.sec-h {
  font-family: var(--sans); font-weight: 700; letter-spacing: -0.014em;
  font-size: clamp(24px, 2.7vw, 38px); line-height: 1.14;
  color: var(--paper); margin: 0 0 14px; max-width: 46ch;
}
h2.sec-h em { font-style: normal; color: var(--pink); }

.promise {
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(15px, 1.5vw, 17px); line-height: 1.55;
  color: var(--txt); max-width: 56ch; margin: 0 0 10px;
}
.sec p.body {
  font-family: var(--sans); font-size: 14px; line-height: 1.75;
  color: var(--body); max-width: 62ch; margin: 0;
}

/* centered pattern-break sections (ownership, track record, fit, cta) */
.sec.centered .sec-in { text-align: center; }
.sec.centered h2.sec-h, .sec.centered .promise, .sec.centered p.body,
.sec.centered .sec-label { margin-left: auto; margin-right: auto; }

/* ================= hero ================= */
/* no bottom padding — the proof strip's own margin spaces it, and the next
   section (the offer) sits noticeably closer per Marcos's review */
.hero { padding: clamp(56px, 9vh, 120px) 0 0; }
.hero .eyebrow { font-size: 16px; letter-spacing: .2em; color: var(--txt); margin-bottom: 16px; }
.hero .eyebrow .hash { color: var(--amber); }
h1.wwd-hed {
  font-family: var(--sans); font-weight: 700; letter-spacing: -0.018em;
  font-size: clamp(30px, 4.6vw, 60px); line-height: 1.07;
  color: var(--paper); margin: 0 0 22px; max-width: 22ch;
}
h1.wwd-hed em { font-style: normal; color: var(--pink); }
.hero .sub {
  font-family: var(--sans); font-size: 15px; line-height: 1.8;
  color: var(--body); max-width: 54ch; margin: 0;
}
/* ================= proof strip ================= */
.proof-strip { margin-top: clamp(44px, 7vh, 72px); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.proof-in {
  max-width: 1200px; margin: 0 auto; padding: 24px clamp(20px, 3vw, 44px) 22px;
  display: flex; flex-direction: column; align-items: center; gap: 13px;
  text-align: center;
}
.proof-row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline;
  gap: 8px clamp(14px, 2vw, 26px);
}
.proof-row .stat {
  color: var(--paper); font-size: clamp(14px, 1.5vw, 16.5px);
  letter-spacing: .04em; font-weight: 700;
}
.proof-row .dotsep { color: var(--amber-dim); }
.proof-row .plabel { color: var(--dim); font-size: 12px; letter-spacing: .14em; }
.proof-row .plogo { color: var(--body); font-size: 13px; letter-spacing: .07em; transition: color .16s ease; }
.proof-row .plogo:hover { color: var(--pink); }

/* ================= card grids ================= */
.grid { display: grid; gap: 14px; margin-top: clamp(22px, 3.5vh, 34px); }
.grid.g2 { grid-template-columns: 1fr 1fr; }
.grid.g3 { grid-template-columns: 1fr 1fr 1fr; }
.grid.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  border: 1px solid var(--line); border-radius: 10px;
  background: #121412; padding: 22px 24px;
  min-width: 0;
  transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: var(--amber-dim); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }
.card .kicker {
  font-size: 11px; letter-spacing: .16em; color: var(--dim); margin: 0 0 10px;
}
.card .kicker.pink { color: var(--pink); }
.card .kicker.cyan { color: #7FD6FF; }
.card .kicker.coral { color: #FF8C7A; }
.card h3 {
  font-family: var(--sans); font-weight: 700; font-size: 15.5px; line-height: 1.4;
  color: var(--paper); margin: 0 0 8px;
}
.card p {
  font-family: var(--sans); font-size: 13.5px; line-height: 1.7;
  color: var(--body); margin: 0;
}
.card ul { list-style: none; margin: 12px 0 0; padding: 0; }
.card li {
  font-family: var(--sans); font-size: 13px; line-height: 1.6;
  color: var(--body); padding-left: 16px; position: relative; margin-bottom: 8px;
}
.card li::before { content: "–"; position: absolute; left: 0; color: var(--amber-dim); }
.card li b { color: var(--txt); font-weight: 600; }

/* contrast line under the two model cards */
.contrast {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--hairline);
  font-family: var(--sans); font-size: 14px; line-height: 1.7;
  color: var(--body); max-width: 66ch;
}
.contrast .k { color: var(--txt); }

/* ================= core service ================= */
.svc-split { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(20px, 3vw, 40px); margin-top: clamp(22px, 3.5vh, 34px); }
.svc-list { margin: 0; padding: 0; list-style: none; }
.svc-list li {
  font-size: 13.5px; line-height: 1.6; color: var(--txt);
  padding: 7px 0 7px 24px; position: relative;
}
.svc-list li::before { content: "✓"; position: absolute; left: 0; color: var(--amber); }
.svc-list li .svc-note { color: var(--dim); }
.svc-list li b { color: var(--paper); font-weight: 700; }
.chan-card .chan-lead { color: var(--paper); font-family: var(--sans); font-weight: 700; font-size: 14px; margin: 0 0 10px; }
.chan-card ul { margin: 0; }
.chan-card li { font-family: var(--mono); font-size: 12.5px; color: var(--txt); }
.chan-card li::before { content: "▸"; color: var(--amber-dim); }
.chan-card li.chan-next, .chan-card li.chan-next b { color: var(--dim); font-family: var(--sans); }

/* ================= diagrams (code-built terminal art) ================= */
.diagram {
  margin-top: clamp(26px, 4vh, 40px);
  border: 1px solid var(--line); border-radius: 10px; background: #121412;
  padding: 18px clamp(12px, 2vw, 26px);
  overflow: hidden;
}
.diagram .dg-title {
  color: var(--dim); font-size: 10.5px; letter-spacing: .16em; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.diagram .dg-dots { display: inline-flex; gap: 5px; }
.diagram .dg-dots i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.diagram .dg-dots .d1 { background: var(--pink); }
.diagram .dg-dots .d2 { background: var(--pink-dim); }
.diagram .dg-dots .d3 { background: var(--amber); }
.diagram pre {
  margin: 0; font-family: var(--mono); white-space: pre;
  font-size: clamp(9px, 1.15vw, 13.5px); line-height: 1.45;
  color: var(--txt);
}
.diagram .dg-g { color: var(--amber); }
.diagram .dg-gd { color: var(--amber-dim); }
.diagram .dg-p { color: var(--pink); }
.diagram .dg-d { color: var(--dim); }
.diagram .dg-w { color: var(--paper); }
.diagram-scroll {
  overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  display: grid; justify-content: safe center;   /* art sits centered; 'safe'
                                                    keeps the left edge reachable
                                                    when it overflows on phones */
}

/* dashboard bars */
.dg-bar { color: var(--amber); }
.dg-bar .off { color: var(--amber-dim); opacity: .45; }

/* ================= ownership ================= */
.own { border-top: 1px solid var(--hairline); margin-top: clamp(76px, 10vh, 132px); padding-top: clamp(64px, 9vh, 110px); }
.own h2.sec-h { font-size: clamp(27px, 3.2vw, 44px); max-width: 24ch; }
.own p.body { max-width: 66ch; }

/* ================= track record ================= */
.banner-stat {
  font-family: var(--sans); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(48px, 7vw, 84px); line-height: 1;
  margin: clamp(22px, 4vh, 40px) 0 6px;
  background: linear-gradient(90deg, #7FD6FF 0%, #3DFC6E 48%, #F2E96B 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 14px rgba(61, 252, 110, .22));
}
.banner-label { color: var(--dim); font-size: 11.5px; letter-spacing: .18em; }
.stat-card .statline {
  font-family: var(--sans); font-weight: 700; letter-spacing: -0.01em;
  font-size: clamp(21px, 2.2vw, 27px); line-height: 1.15; color: var(--paper);
  margin: 2px 0 8px;
}
.logo-row {
  margin-top: clamp(26px, 4vh, 40px);
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px clamp(18px, 3vw, 36px);
}
.logo-row a, .logo-row span {
  color: var(--dim); font-size: 13px; letter-spacing: .07em;
  text-decoration: none; transition: color .16s ease;
}
.logo-row a:hover { color: var(--pink); text-decoration: none; }

/* ================= fit + cta ================= */
.fit p.body { max-width: 58ch; font-size: 14.5px; }

.cta { padding-bottom: clamp(60px, 8vh, 100px); }
.cta h2.sec-h { font-size: clamp(27px, 3.4vw, 46px); }
.cta .book-big {
  display: inline-block; margin: 26px 0 14px;
  border: 1px solid #fff; border-radius: 10px;
  background: #fff;
  color: #000; padding: 15px 44px; font-weight: 700; font-size: 14.5px;
  font-family: var(--mono); text-decoration: none;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .12s ease;
}
.cta .book-big:hover { background: #000; border-color: #fff; color: #fff; }
.cta .book-big:active { transform: scale(.985); }
.cta .cta-sub { color: var(--dim); font-size: 12px; letter-spacing: .12em; }
/* (no terminal on this page — the terminal lives on the homepage only) */

/* ================= footer ================= */
.fold {
  border-top: 1px solid var(--hairline);
  margin-top: clamp(40px, 6vh, 70px);
  padding: 12px clamp(20px, 3vw, 44px) 18px;
  max-width: 1200px; margin-left: auto; margin-right: auto;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  color: var(--dim); font-size: 10.5px; letter-spacing: .14em;
}
.fold a { color: var(--dim); text-decoration: none; transition: color .16s ease; }
.fold a:hover { color: var(--pink); text-decoration: none; }
.foot-legal { display: flex; gap: 8px; align-items: baseline; }
.foot-legal .sep { color: var(--hairline); }

/* ================= scroll-reveal states (cosmo-reveal.js) =================
   Reveal MOTION is JS text mutation (house rule). These classes only cover
   the block-level fade/rise embellishment; the engine forces a reflow after
   adding .rv-go, and reduced-motion renders everything static. */
/* gated on html.rv-on (set by JS) — with no JS, nothing is ever hidden */
html.rv-on [data-rv="fade"] { opacity: 0; transform: translateY(10px); }
html.rv-on [data-rv="fade"].rv-go {
  opacity: 1; transform: none;
  transition: opacity .6s cubic-bezier(.2,.65,.25,1), transform .6s cubic-bezier(.2,.65,.25,1);
}
html.rv-static [data-rv="fade"] { opacity: 1; transform: none; transition: none; }

/* words split by the engine */
.rw { visibility: hidden; }
[data-rv-done] .rw, html.rv-static .rw { visibility: visible; }

/* ================= responsive ================= */
@media (max-width: 1080px) {
  .grid.g4 { grid-template-columns: 1fr 1fr; }
  .svc-split { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .topbar-in { flex-wrap: wrap; row-gap: 2px; padding-top: 10px; padding-bottom: 8px; }
  .topbar .brand { order: 0; }
  .topbar .book-pill { order: 1; margin-left: auto; }
  .topnav { order: 2; flex-basis: 100%; margin-left: 0; padding-bottom: 2px; }
}
@media (max-width: 700px) {
  .grid.g2, .grid.g3, .grid.g4 { grid-template-columns: 1fr; }
  h1.wwd-hed { font-size: clamp(27px, 8vw, 34px); }
  .hero .sub { font-size: 14px; }
  .fold { flex-direction: column; align-items: center; gap: 8px; text-align: center; }
  .proof-in { justify-content: center; }
  .diagram pre { font-size: 8px; }
  .diagram { padding: 14px 10px; }
}

/* ================= framework additions (built for /how-we-work, reusable) ================= */

/* numbered walk-through */
.steps { list-style: none; margin: clamp(18px, 3vh, 28px) 0 0; padding: 0; counter-reset: s; }
.steps li {
  counter-increment: s; position: relative;
  padding: 16px 0 16px 64px; border-top: 1px solid var(--hairline);
  font-family: var(--sans); font-size: 14px; line-height: 1.7;
  color: var(--body); max-width: 72ch;
}
.steps li:last-child { border-bottom: 1px solid var(--hairline); }
.steps li::before {
  content: "0" counter(s); position: absolute; left: 0; top: 14px;
  font-family: var(--mono); font-weight: 700; font-size: 15px;
  letter-spacing: .06em; color: var(--amber);
}
.steps li b { color: var(--txt); font-weight: 600; }
.steps li b.k-cyan { color: #7FD6FF; }
.steps li b.k-coral { color: #FF8C7A; }

/* does / never — mono terminal checklists */
.dn-list { list-style: none; margin: 10px 0 0; padding: 0; }
.dn-list li {
  font-family: var(--mono); font-size: 13px; line-height: 1.6;
  color: var(--txt); padding: 6px 0 6px 24px; position: relative;
}
.dn-list li::before { position: absolute; left: 0; }
.dn-does li::before { content: "✓"; color: var(--amber); }
.dn-never li::before { content: "✗"; color: var(--pink); }

/* system-safety band inside the modules section */
.safety { margin-top: 24px; border-top: 1px solid var(--hairline); padding-top: 20px; }
.safety .band-kicker { font-size: 11px; letter-spacing: .16em; color: var(--amber); margin: 0 0 12px; }
.safety .band-kicker .sl { color: var(--amber-dim); }

/* module kickers never wrap */
.card .kicker { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* FAQ — terminal expandable rows */
.qa { margin-top: clamp(18px, 3vh, 28px); border-top: 1px solid var(--hairline); }
.qa details { border-bottom: 1px solid var(--hairline); }
.qa summary {
  cursor: pointer; list-style: none;
  display: flex; gap: 14px; align-items: baseline; padding: 15px 2px;
  font-family: var(--sans); font-weight: 700; font-size: 15px; color: var(--paper);
  transition: color .16s ease;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: "+"; font-family: var(--mono); color: var(--amber); font-weight: 400; width: 1.2ch; flex: none; }
.qa details[open] summary::before { content: "−"; color: var(--pink); }
.qa summary:hover, .qa summary:focus-visible { color: var(--pink); }
.qa .qa-a {
  font-family: var(--sans); font-size: 13.5px; line-height: 1.75; color: var(--body);
  max-width: 70ch; margin: 0; padding: 0 2px 16px calc(1.2ch + 14px);
}
.qa .qa-a em { color: var(--dim); font-style: normal; }

/* the star diagram (infrastructure map) */
.diagram.star { border-color: var(--amber-dim); box-shadow: 0 0 34px rgba(61, 252, 110, .06); }
.diagram.star pre { font-size: clamp(9.5px, 1.25vw, 14.5px); line-height: 1.42; }

/* aligned-by-design one-liner */
.aligned-line { font-family: var(--sans); font-size: 14px; line-height: 1.7; color: var(--body); text-align: center; max-width: 72ch; margin: 0 auto; }
.aligned-line .k { color: var(--txt); }

/* ================= star-diagram upgrade + hww polish round ================= */
.dg-gm { color: #2e8f49; }                    /* the boundary — mid phosphor */
.dg-hot {                                      /* a packet of light on the door */
  color: var(--amber) !important;
  text-shadow: 0 0 9px rgba(61, 252, 110, .85);
}
.diagram.star {
  border-color: var(--amber-dim);
  background:
    repeating-linear-gradient(0deg, rgba(61, 252, 110, .05) 0 1px, transparent 1px 3px),
    #121412;
  box-shadow: 0 0 44px rgba(61, 252, 110, .10);
}
.diagram.star pre {
  font-size: clamp(10px, 1.45vw, 17px);
  line-height: 1.42;
  filter: drop-shadow(0 0 5px rgba(61, 252, 110, .10));
}

/* large kickers (read / learn / act) */
.kicker-lg { font-size: 15px !important; font-weight: 700; letter-spacing: .2em; }

/* single-line hero headline variant */
.hero h1.hed-line { max-width: none; }

/* plain page-break rule (replaces the at-a-glance strip) */
hr.sec-rule { border: 0; border-top: 1px solid var(--hairline); margin: clamp(44px, 7vh, 72px) 0 0; }

/* ================= /about-us additions ================= */
.au-split {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 4vw, 60px); align-items: center;
}
.au-visual { margin: 0; text-align: center; min-width: 0; }
.portrait-m {
  margin: 0 auto; font-family: var(--mono); white-space: pre; user-select: none;
  color: var(--amber);
  text-shadow: 0 0 14px rgba(61, 252, 110, .24);
  font-size: clamp(3.0px, 0.285vw, 4.25px); line-height: 1.16;
  display: inline-block; text-align: left;
}
.portrait-m.ascii-glitch {
  text-shadow: 2px 0 rgba(255, 92, 168, .30), -2px 0 rgba(255, 255, 255, .16),
               0 0 14px rgba(61, 252, 110, .24);
  transform: translateX(1px);
}
.au-cap { color: var(--dim); font-size: 10.5px; letter-spacing: .12em; margin-top: 12px; }
.au-cap a { color: var(--dim); text-decoration: none; transition: color .16s ease; }
.au-cap a:hover { color: var(--pink); }
.au-pup { color: var(--dim); font-size: 11px; letter-spacing: .02em; margin-top: 5px; }
.au-banner { margin-top: clamp(22px, 3.5vh, 34px); text-align: center; }
.au-banner .statline { font-size: clamp(26px, 3.4vw, 44px); }
.au-banner .banner-sub { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; color: var(--dim); }
.au-quiet { padding-top: clamp(48px, 6vh, 76px); }
@media (max-width: 1080px) {
  .au-split { grid-template-columns: 1fr; }
  .portrait-m { font-size: clamp(2.4px, 0.8vw, 4.25px); }
}

/* ================= /about-us polish round ================= */
/* portrait recolor: cyan (the k-cyan accent) — green read wrong on a face */
.portrait-m {
  color: #7FD6FF;
  text-shadow: 0 0 14px rgba(127, 214, 255, .22);
}
.portrait-m.ascii-glitch {
  text-shadow: 2px 0 rgba(255, 92, 168, .30), -2px 0 rgba(255, 255, 255, .16),
               0 0 14px rgba(127, 214, 255, .22);
}
/* tighter label→headline rhythm on the personal page */
.page-au .sec-label { margin-bottom: 12px; }
.page-au .au-cap { margin-top: 14px; }
.page-au .au-pup { color: var(--dim); margin-top: 6px; font-size: 10.5px; letter-spacing: .04em; }

/* ================= /about-us: the marcos neofetch ================= */
.aufetch {
  border: 1px solid var(--amber-dim); border-radius: 10px; background: #121412;
  padding: 18px 22px; margin-top: clamp(20px, 3vh, 30px);
  max-width: 640px;
}
.aufetch .af-head { color: var(--txt); font-size: 13.5px; }
.aufetch .af-head b { color: var(--pink); font-weight: 400; }
.aufetch .af-rule { color: var(--amber-dim); font-size: 13px; margin: 1px 0 9px; overflow: hidden; white-space: nowrap; }
.aufetch dl {
  display: grid; grid-template-columns: max-content 1fr; gap: 4px 20px;
  font-size: 13.5px; margin: 0;
}
.aufetch dt { color: var(--pink); margin: 0; }
.aufetch dd { color: var(--amber); margin: 0; min-width: 0; }
.aufetch dd em { color: var(--dim); font-style: normal; }
@media (max-width: 700px) {
  .aufetch dl { font-size: 12.5px; gap: 4px 14px; }
  .aufetch dd { overflow-wrap: anywhere; }
}

/* ================= /about-us final polish ================= */
/* the portrait dissolves into the terminal instead of ending in a crop line */
.portrait-m {
  -webkit-mask-image: linear-gradient(#000 78%, rgba(0,0,0,.55) 90%, transparent 100%);
          mask-image: linear-gradient(#000 78%, rgba(0,0,0,.55) 90%, transparent 100%);
}
/* the pull-quote earns a full size step — it's the best sentence on the site */
.page-au .promise {
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.5; letter-spacing: -0.01em;
  max-width: 54ch;
}

/* ================= /what-we-do — syntax palette (SPEC 01/03) =================
   Scoped to body.page-wwd so /how-we-work and /about-us keep their current
   palette until their own specs land. Color values only — no layout change. */
body.page-wwd {
  --amber: #F2B24A;
  --amber-dim: #8A7440;
  --cyan: #7FD6FF;
  --val: #E9E4D7;
}
body.page-wwd ::selection { background: var(--amber); color: #000; }

/* topbar: wordmark gradient per SPEC 01; nav hover/current pink → cyan */
body.page-wwd .wordmark-mini {
  background: linear-gradient(90deg, #7FD6FF 0%, #F2B24A 55%, #F2E96B 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 5px rgba(242, 178, 74, .32));
}
body.page-wwd .topnav a::after { background: var(--cyan); }
body.page-wwd .topnav a:hover, body.page-wwd .topnav a:focus-visible,
body.page-wwd .topnav a:hover .tilde, body.page-wwd .topnav a:focus-visible .tilde,
body.page-wwd .topnav a.is-here, body.page-wwd .topnav a.is-here .tilde { color: var(--cyan); }

/* headings + labels: pink → gold em, cyan section labels & kickers */
body.page-wwd h1.wwd-hed em, body.page-wwd h2.sec-h em { color: var(--amber); }
body.page-wwd .sec-label, body.page-wwd .hero .eyebrow { color: var(--cyan); }
body.page-wwd .card .kicker, body.page-wwd .card .kicker.pink { color: var(--cyan); }

/* keyword spans: coral retires — renders gold */
body.page-wwd .k-coral { color: var(--amber); }

/* proof strip + statlines: numbers render gold */
body.page-wwd .proof-row .stat b { color: var(--amber); font-weight: 600; }
body.page-wwd .stat-card .statline { color: var(--amber); }

/* stray pink hovers → cyan (pink is the mascot's — it doesn't appear here) */
body.page-wwd .proof-row .plogo:hover { color: var(--cyan); }
body.page-wwd .fold a:hover { color: var(--cyan); }

/* diagrams: pink text → gold; success marks + traffic light stay green */
body.page-wwd .diagram .dg-p { color: var(--amber); }
body.page-wwd .diagram .dg-g { color: #3DFC6E; }
body.page-wwd .diagram .dg-dots .d3 { background: #3DFC6E; }

/* ================= /what-we-do — SPEC 03 additions ================= */

/* USP lead block (the-offer) */
.usp { border-left: 2px solid var(--amber); padding: 4px 0 4px 20px; margin: 0 0 clamp(22px, 3.5vh, 34px); }
.usp h3 {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(19px, 2.2vw, 24px); line-height: 1.25;
  color: var(--paper); margin: 0 0 8px;
}
.usp p { font-family: var(--sans); font-size: 15px; line-height: 1.7; color: var(--body); margin: 0; max-width: 70ch; }
.usp p b { color: var(--val); font-weight: 650; }

/* dim note lines (track record, intelligence) */
.case-note { font-family: var(--sans); color: var(--dim); font-size: 13px; margin: 14px 0 0; }

/* ownership: dim follow-up paragraph */
.own .own-note { color: var(--dim); margin-top: 12px; }

/* mid-page CTA band (track record) */
.cta-band {
  max-width: 560px; margin: clamp(26px, 4vh, 40px) auto 0;
  background: #121412; border: 1px solid var(--amber-dim); border-radius: 10px;
  padding: 26px 22px; text-align: center;
}
.cta-band .q { font-family: var(--sans); color: var(--paper); font-size: 17px; font-weight: 700; margin: 0 0 16px; }
.cta-band .book-pill {
  display: inline-block; border: 1px solid #fff; border-radius: 8px;
  color: #fff; padding: 9px 16px; font-weight: 700; font-size: 12.5px;
  text-decoration: none;
  transition: background .16s ease, color .16s ease, transform .12s ease;
}
.cta-band .book-pill:hover { background: #fff; color: #000; }
.cta-band .book-pill:active { transform: scale(.985); }

/* ================= /how-we-work — SPEC 04 additions ================= */

/* modules: layer labels (analysis / execution) — band-kicker pattern, dim */
.layer-label { font-size: 13px; letter-spacing: .16em; color: var(--dim); margin: 22px 0 0; }
.body + .layer-label { margin-top: 46px; }
.layer-label .sl { color: var(--hairline); }

/* coral retires under the syntax palette — renders gold (SPEC 01) */
body.page-wwd .card .kicker.coral { color: var(--amber); }
body.page-wwd .steps li b.k-coral { color: var(--amber); }

/* module kickers: sized so the long execution names still fit one line */
body.page-wwd .mod-grid .card .kicker.pink { font-size: 12px; font-weight: 400; letter-spacing: .1em; }

/* does/never marks per mockup: check green (success), cross gold */
body.page-wwd .dn-does li::before { color: #3DFC6E; }
body.page-wwd .dn-never li::before { color: var(--amber); }

/* faq: pink retires — cyan hover, gold open marker */
body.page-wwd .qa summary:hover, body.page-wwd .qa summary:focus-visible { color: var(--cyan); }
body.page-wwd .qa details[open] summary::before { color: var(--amber); }

/* ================= /what-we-do — design polish (mockup fidelity) ================= */

/* proof strip: row 1 fits one line; the brands label gets the cyan key color */
body.page-wwd .proof-row .stat { font-size: clamp(13px, 1.25vw, 15px); letter-spacing: .03em; white-space: nowrap; }
body.page-wwd .proof-row { gap: 8px clamp(10px, 1.5vw, 20px); }
body.page-wwd .proof-row .plabel { color: var(--cyan); }

/* core service: mirror the mockup's list treatment — sans, dashed dividers */
body.page-wwd .svc-list li {
  font-family: var(--sans); font-size: 14.5px; line-height: 1.55;
  color: var(--body); padding: 8px 0; border-bottom: 1px dashed var(--hairline);
}
body.page-wwd .svc-list li:first-child { border-top: 1px dashed var(--hairline); }
body.page-wwd .svc-list li::before { content: none; }
body.page-wwd .svc-list li b { color: var(--val); font-weight: 650; }
body.page-wwd .list-kicker { color: var(--cyan); letter-spacing: .12em; font-size: 12px; }
body.page-wwd .chan-card .chan-lead {
  font-size: 15px; padding-bottom: 10px; border-bottom: 1px dashed var(--hairline);
}
body.page-wwd .chan-card li { font-size: 13.5px; color: var(--val); padding: 7px 0 7px 16px; border-bottom: 1px dashed var(--hairline); }
body.page-wwd .chan-card li:last-child { border-bottom: 0; }
body.page-wwd .chan-card li.chan-next { font-size: 13px; }

/* cards: mockup sizing — larger kickers + body text (engine + intelligence) */
body.page-wwd .card .kicker { font-size: 12px; }
body.page-wwd .card .kicker.pink { font-size: 14px; font-weight: 700; letter-spacing: .18em; }
body.page-wwd .card h3 { font-size: 16.5px; }
body.page-wwd .card p { font-size: 14.5px; line-height: 1.65; }

/* ownership: rebalance the body so the last line doesn't orphan */
body.page-wwd .own p.body { max-width: 74ch; text-wrap: balance; }

/* lifecycle steps: mockup treatment — dashed dividers, single rule, larger text */
body.page-wwd .steps li {
  border-top: 0; border-bottom: 1px dashed var(--hairline);
  font-size: 14.5px;
}
body.page-wwd .steps li:last-child { border-bottom: 1px dashed var(--hairline); }
body.page-wwd .contrast { border-top: 0; padding-top: 0; font-size: 15px; }

/* who we work with: spread the copy wider (≈4 lines, like the mockup) */
body.page-wwd .fit p.body { max-width: 76ch; font-size: 15px; }

/* ================= /about-us — SPEC 05 additions ================= */

/* portrait caption link: visible as a link — gold, underlined */
body.page-wwd .au-cap a {
  color: var(--amber);
  text-decoration: underline; text-underline-offset: 3px;
}
body.page-wwd .au-cap a:hover { color: var(--cyan); }

/* bus-factor block: the what-we-do USP lead pattern, spaced off the pull-quote */
.page-au .usp { margin: 26px 0 0; }
.usp p a { color: var(--amber); text-decoration: none; }
.usp p a:hover, .usp p a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* career timeline: metric fragments in gold mono (statline tone) */
.steps li .m { font-family: var(--mono); color: var(--amber); font-size: 13px; }

/* career panel: syntax palette — keys cyan, value emphasis gold */
body.page-wwd .aufetch .af-head b { color: var(--cyan); }
body.page-wwd .aufetch dt { color: var(--cyan); }
body.page-wwd .aufetch dd b { color: var(--amber); font-weight: 600; }
.aufetch .af-actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }

/* about-us: open up the timeline + panel to use the full column */
.page-au .steps li { max-width: none; }
.page-au .aufetch { max-width: none; }

/* hero sub-lines + step rows: use the full column so copy wraps on fewer rows */
body.page-wwd .hero .sub { max-width: 95ch; }
body.page-wwd .steps li { max-width: none; }
/* ================= legal pages (/privacy /terms) =================
   Layout + treatment ref: carlesfaus.com/en/privacy — date chip and a
   document switcher on a left rail, the document itself typing in
   paragraph-by-paragraph (cosmo-reveal.js `type` mode), dim `·` dots
   between sections, ▸ mail-action lines. Mono throughout: these pages
   ARE terminal documents. */
.legal-hero { padding: clamp(48px, 7vh, 88px) 0 0; }
.legal-hero h1.wwd-hed { margin-bottom: 14px; }
.legal-meta { font-size: 12px; letter-spacing: .14em; color: var(--dim); margin: 0; }
.legal-body { padding: clamp(34px, 5vh, 58px) 0 0; }

.legal-split {
  display: grid; grid-template-columns: minmax(190px, 236px) 1fr;
  gap: clamp(28px, 4.5vw, 84px);
  align-items: start;
}

/* the rail */
.legal-rail { position: sticky; top: 84px; min-width: 0; }
.rail-date {
  display: inline-block; margin: 0 0 22px;
  background: var(--amber); color: #000;
  font-size: 12px; letter-spacing: .1em; padding: 3px 8px;
}
.doc-switch { display: flex; flex-direction: column; gap: 10px; }
.doc-item {
  display: flex; gap: 12px; align-items: baseline;
  font-size: 13px; letter-spacing: .08em;
  color: var(--txt); text-decoration: none; white-space: nowrap;
}
.doc-item .doc-box { color: var(--amber-dim); flex: none; }
.doc-item .doc-box::before { content: "[ ]"; }
.doc-item.is-doc .doc-box { color: var(--amber); }
.doc-item.is-doc .doc-box::before { content: "[▸]"; }
.doc-item.is-doc .doc-lbl { background: var(--amber); color: #000; padding: 1px 6px; }
a.doc-item { transition: color .16s ease; }
a.doc-item:hover, a.doc-item:focus-visible { color: var(--pink); text-decoration: none; }
a.doc-item:hover .doc-box, a.doc-item:focus-visible .doc-box { color: var(--pink); }
a.doc-item:hover .doc-box::before, a.doc-item:focus-visible .doc-box::before { content: "[▸]"; }

/* the document */
.legal-doc { max-width: 74ch; min-width: 0; }
.doc-kicker { color: var(--txt); font-size: 13px; letter-spacing: .18em; margin: 0 0 30px; }
.doc-kicker .k-arrows { color: var(--amber); }
.doc-sec { margin: 0; }
.doc-h {
  font-family: var(--mono); font-weight: 400;
  font-size: 13.5px; letter-spacing: .16em;
  color: var(--txt); margin: 0 0 14px;
}
.doc-h .hash { color: var(--amber); }
.doc-p {
  font-size: 13px; line-height: 1.85; color: var(--txt);
  margin: 0 0 14px; overflow-wrap: break-word;
}
.doc-p b { color: var(--paper); font-weight: 400; }
.doc-act {
  display: inline-block; font-size: 13px; letter-spacing: .06em;
  color: var(--amber); text-decoration: none; margin: 0 0 14px;
  transition: color .16s ease;
}
.doc-act:hover, .doc-act:focus-visible { color: var(--pink); text-decoration: none; }
.doc-dot { color: var(--amber-dim); font-size: 13px; margin: 6px 0 22px; }

/* current-page footer link */
.fold a.foot-here { color: var(--pink); }

@media (max-width: 880px) {
  .legal-split { grid-template-columns: 1fr; gap: 24px; }
  .legal-rail { position: static; display: flex; align-items: baseline; gap: 10px 22px; flex-wrap: wrap; }
  .rail-date { margin: 0; }
  .doc-switch { flex-direction: row; gap: 18px; flex-wrap: wrap; }
}


/* ================= /book — the booking landing page (syntax palette) ====
   Left = the offer, right = the action, in the page-wwd syntax palette
   (gold em, cyan keys, green success marks). Chrome deliberately stripped:
   the homepage-style floating lockup (no bar, no nav, no competing CTA) is
   the only way home. The Calendly inline embed is the site's ONE
   sanctioned external dependency. */
.topbar.bare { position: static; border-bottom: 0; background: transparent; }
.topbar.bare .topbar-in { padding-top: clamp(20px, 3.2vh, 33px); padding-bottom: 0; }
.topbar.bare .with { font-size: 22px; }
.topbar.bare .wordmark-mini { font-size: 6px; }

/* pin the fold to the viewport bottom when the content runs short.
   width:100% is load-bearing: in a flex-column body the fold's
   margin:auto would otherwise shrink-wrap it and clump the three zones. */
.body-book { min-height: 100svh; display: flex; flex-direction: column; }
.body-book main.page { flex: 1; }
.body-book .fold { width: 100%; }

.bk-sec { padding: clamp(36px, 5.5vh, 72px) 0 0; }
.bk-split {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, 430px);
  gap: clamp(48px, 7.5vw, 128px); align-items: start;
}
.bk-left .eyebrow { font-size: 16px; letter-spacing: .2em; color: var(--cyan); margin: 0 0 16px; }
.bk-left .eyebrow .hash { color: var(--amber); }
/* sized so the headline holds TWO rows on desktop (break forced by .bk-br) */
.bk-left h1.wwd-hed { font-size: clamp(26px, 2.7vw, 37px); max-width: none; }
.bk-br { display: none; }
@media (min-width: 1081px) { .bk-br { display: inline; } }
/* sub matches the /what-we-do hero exactly (that scope doesn't reach here) */
.bk-left .sub {
  font-family: var(--sans); font-size: 15px; line-height: 1.8;
  color: var(--body); max-width: 54ch; margin: 0;
}

.bk-list { list-style: none; margin: clamp(22px, 3.5vh, 32px) 0 0; padding: 0; }
.bk-list li {
  font-family: var(--mono); font-size: 13px; line-height: 1.6;
  color: var(--txt); padding: 6px 0 6px 24px; position: relative;
  text-wrap: balance;   /* narrow desktops: wrapped bullets break cleanly */
}
.bk-list li::before { content: "✓"; position: absolute; left: 0; color: #3DFC6E; }
.bk-list li em { color: var(--dim); font-style: normal; }
/* numbers inside bullets render gold (color-only emphasis) */
.bk-list li b { color: var(--amber); font-weight: 400; }

.bk-call {
  margin: clamp(22px, 3.5vh, 32px) 0 0; padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-size: 12px; line-height: 1.9; letter-spacing: .08em; color: var(--dim);
  text-wrap: balance;   /* no orphaned last word when it wraps */
}
.bk-call b { color: var(--txt); font-weight: 400; }

/* social proof anchored at the bottom of the offer panel */
.bk-social { margin: 24px 0 0; }
.bk-brands-label {
  margin: 0 0 6px;
  font-size: 11px; letter-spacing: .16em; color: var(--cyan);
}
.bk-brands {
  margin: 0;
  font-size: 12px; letter-spacing: .09em; line-height: 2; color: var(--dim);
}
.bk-brands .dotsep { color: var(--amber-dim); }

/* the calendar window (terminal-window chrome — .dg-* rules are scoped to
   .diagram, so the window bar is restated; d3 stays green per SPEC 01) */
.bk-cal {
  border: 1px solid var(--amber-dim); border-radius: 10px; background: #121412;
  padding: 14px 10px 10px; min-width: 0;
  box-shadow: 0 0 34px rgba(242, 178, 74, .07);
}
.bk-cal .dg-title {
  color: var(--dim); font-size: 10.5px; letter-spacing: .16em;
  margin-bottom: 12px; padding: 0 8px;
  display: flex; align-items: center; gap: 8px;
}
.bk-cal .dg-dots { display: inline-flex; gap: 5px; }
.bk-cal .dg-dots i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.bk-cal .dg-dots .d1 { background: var(--pink); }
.bk-cal .dg-dots .d2 { background: var(--pink-dim); }
.bk-cal .dg-dots .d3 { background: #3DFC6E; }
.bk-cal .calendly-inline-widget { min-width: 300px; height: clamp(560px, 72vh, 690px); border-radius: 6px; overflow: hidden; }
/* no-JS-only fallback inside the window (invisible when the embed works) */
.bk-cal noscript p { margin: 10px 2px 2px; text-align: center; font-size: 11.5px; letter-spacing: .1em; }
.bk-cal noscript a { color: var(--amber); text-decoration: none; }

@media (max-width: 1080px) {
  .bk-split { grid-template-columns: 1fr; gap: 34px; }
  .bk-cal { max-width: 560px; }
}
@media (max-width: 700px) {
  .bk-left h1.wwd-hed { font-size: clamp(26px, 7.4vw, 33px); }
  .bk-cal { margin: 0 -4px; }
  .bk-cal .calendly-inline-widget { height: 620px; }
}
/* ================= /pricing — three tiers (Runneth anatomy) ============
   Hero + trust row → tier cards (middle hot) → receipts band → the
   escalation ladder → FAQ → CTA, all in the page-wwd syntax palette.
   Copy source of truth: pricing-content.md (v2, chat-locked). */
.pr-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: clamp(26px, 4vh, 40px); align-items: start;
}
.pr-card {
  border: 1px solid var(--line); border-radius: 10px; background: #121412;
  padding: 24px 24px 26px; min-width: 0; position: relative;
  transition: border-color .25s ease, transform .25s ease;
}
.pr-card:hover { border-color: var(--amber-dim); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .pr-card:hover { transform: none; } }
.pr-card.hot { border-color: var(--amber-dim); box-shadow: 0 0 44px rgba(242, 178, 74, .10); }
.pr-pop {
  position: absolute; top: -9px; left: 22px;
  background: var(--amber); color: #000;
  font-size: 10.5px; letter-spacing: .14em; padding: 2px 8px;
}
.pr-name { font-family: var(--sans); font-weight: 700; font-size: 19px; color: var(--paper); margin: 0; }
.pr-role { font-size: 12px; letter-spacing: .14em; color: var(--cyan); margin: 3px 0 0; }
.pr-price {
  font-family: var(--sans); font-weight: 700; letter-spacing: -0.01em;
  font-size: clamp(30px, 2.6vw, 38px); color: var(--amber); margin: 18px 0 0;
}
.pr-price .per { font-family: var(--mono); font-size: 12.5px; font-weight: 400; color: var(--dim); letter-spacing: .06em; }
.pr-annual { font-size: 11.5px; letter-spacing: .08em; color: var(--dim); margin: 6px 0 0; }
.pr-for { font-family: var(--sans); font-size: 13px; line-height: 1.6; color: var(--body); margin: 14px 0 0; min-height: 42px; }
.pr-cta {
  display: block; text-align: center;
  border: 1px solid #fff; border-radius: 8px;
  color: #fff; padding: 11px 14px; font-weight: 700; font-size: 12.5px;
  text-decoration: none; margin: 18px 0 0;
  transition: background .16s ease, color .16s ease, transform .12s ease;
}
.pr-cta:hover, .pr-cta:focus-visible { background: #fff; color: #000; text-decoration: none; }
.pr-cta:active { transform: scale(.985); }
.pr-card.hot .pr-cta { background: #fff; color: #000; }
.pr-card.hot .pr-cta:hover, .pr-card.hot .pr-cta:focus-visible { background: transparent; color: #fff; }
.pr-inc { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--hairline); font-size: 10.5px; letter-spacing: .16em; color: var(--dim); }
.pr-list { list-style: none; margin: 10px 0 0; padding: 0; }
.pr-list li {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.55;
  color: var(--txt); padding: 6px 0 6px 22px; position: relative;
  text-wrap: balance;
}
.pr-list li::before { content: "✓"; position: absolute; left: 0; color: #3DFC6E; }
.pr-list li b { color: var(--amber); font-weight: 400; }
.pr-list li em { color: var(--dim); font-style: normal; }
/* hero trust row (no text-wrap:balance here — rebalancing during the churn
   reveal re-wraps every frame and registers as layout shift) */
.pr-trust { margin-top: 22px; }

/* receipts band (plain fact rows — headline stat cards stay on /what-we-do) */
.pr-band {
  margin-top: clamp(56px, 8vh, 90px);
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  background: #121412;
}
.pr-band-in { max-width: 1200px; margin: 0 auto; padding: 24px clamp(20px, 3vw, 44px) 26px; text-align: center; }
.pr-band .facts { font-size: 12.5px; letter-spacing: .06em; line-height: 2.1; color: var(--txt); margin: 12px 0 0; }
.pr-band .facts b { color: var(--amber); font-weight: 400; }
.pr-band .facts .dotsep { color: var(--amber-dim); }
.pr-band .note { font-family: var(--sans); font-size: 12px; color: var(--dim); margin: 8px 0 0; }

/* the escalation ladder */
.lad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(24px, 4vh, 36px); }
.lad-card { border: 1px solid var(--line); border-radius: 10px; background: #121412; padding: 22px 24px; min-width: 0; }
.lad-kick {
  display: inline-block; background: var(--amber); color: #000;
  font-size: 10.5px; letter-spacing: .14em; padding: 2px 8px;
}
.lad-kick.floor { background: transparent; border: 1px solid var(--amber-dim); color: var(--dim); }
.lad-hook { font-size: clamp(16px, 1.4vw, 19px); color: var(--paper); margin: 14px 0 2px; letter-spacing: .02em; white-space: nowrap; }
.lad-hook .arr { color: var(--amber); }
.lad-role { font-size: 11.5px; letter-spacing: .14em; color: var(--cyan); margin: 0 0 10px; }
.lad-card ul { list-style: none; margin: 8px 0 0; padding: 0; }
.lad-card li {
  font-family: var(--sans); font-size: 13px; line-height: 1.65;
  color: var(--body); padding: 4px 0 4px 16px; position: relative;
}
.lad-card li::before { content: "–"; position: absolute; left: 0; color: var(--amber-dim); }

@media (max-width: 1080px) {
  .pr-cards, .lad-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .pr-for { min-height: 0; }
}

/* ================= /pricing — graphics pass (v2) ================= */
/* hero splits: message left, "the math" diagram window right */
.pr-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 540px);
  gap: clamp(32px, 5vw, 80px); align-items: center;
}
/* tier cards wear terminal-window chrome */
.pr-card .dg-title {
  color: var(--dim); font-size: 10.5px; letter-spacing: .16em;
  margin: 0 0 16px; display: flex; align-items: center; gap: 8px;
}
.pr-card .dg-dots { display: inline-flex; gap: 5px; }
.pr-card .dg-dots i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.pr-card .dg-dots .d1 { background: var(--pink); }
.pr-card .dg-dots .d2 { background: var(--pink-dim); }
.pr-card .dg-dots .d3 { background: #3DFC6E; }

/* the one-path strip (diagram window above the ladder cards) */
.pr-path { margin: clamp(24px, 4vh, 36px) 0 14px; }
.pr-path pre { font-size: clamp(9.5px, 1.15vw, 14px); line-height: 1.5; text-align: center; }

@media (max-width: 1080px) {
  .pr-hero { grid-template-columns: 1fr; gap: 30px; }
}

/* ================= /pricing v3 ================= */
.pr-terms { margin: 10px 0 0; font-size: 11px; letter-spacing: .07em; color: var(--dim); line-height: 1.8; text-wrap: balance; }
.pr-terms .dotsep { color: var(--amber-dim); }


/* CI dashboard preview window */
.pr-dash { margin-top: clamp(24px, 4vh, 36px); }
.pr-dash pre { font-size: clamp(8.5px, 1.02vw, 12.5px); line-height: 1.55; }
.pr-dash .dg-note {
  font-family: var(--sans); font-size: 11.5px; color: var(--dim);
  margin: 10px 4px 2px; text-align: center;
}

/* horizontal scrollbars appearing mid-reveal must not change box height */
.diagram-scroll { scrollbar-gutter: stable; }

/* ================= /pricing v4 — Marcos review round ================= */
/* hero: centered, Runneth-style — no right-panel window above the fold */
.pr-hero-c { text-align: center; }
.pr-hero-c h1.wwd-hed { margin-left: auto; margin-right: auto; }
.pr-hero-c .sub { margin-left: auto; margin-right: auto; }
.pr-hero-c .eyebrow { letter-spacing: .2em; }
.pr-hero-c .pr-trust { margin-top: 26px; }

/* three equal cards, CTAs pinned to a shared bottom line */
.pr-cards { align-items: stretch; }
.pr-card { display: flex; flex-direction: column; }
.pr-card .pr-cta { margin-top: auto; }
.pr-card .pr-list { margin-bottom: 18px; }

/* the relocated fee window (lives at the fixed-fee moment, not the hero) */
.pr-fee-wrap { max-width: 680px; margin: clamp(22px, 3.5vh, 32px) auto 0; }

/* wide wrap: figures breathe beyond the 1200 column */
.sec-in.wide { max-width: 1360px; }
.pr-dash { padding: 20px clamp(16px, 2.5vw, 34px) 18px; }
.pr-dash pre { font-size: clamp(9px, 1.3vw, 14px); line-height: 1.75; }
/* the centered hero must not center the cards' interiors */
.pr-hero-c .pr-cards { text-align: left; }
/* the dashboard window hugs its content instead of floating in a void */
.pr-dash { max-width: 1040px; margin-left: auto; margin-right: auto; }

/* ================= /pricing v5 — band architecture (Runneth rhythm) =====
   Large full-bleed alternating bands with big centered band headlines:
   dark bands alternate with base sections. */
.sec.band {
  background: #121412;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-top: clamp(76px, 10vh, 132px);
  padding-top: clamp(64px, 9vh, 112px);
  padding-bottom: clamp(72px, 10vh, 124px);
}
.sec.band + .sec.band { margin-top: 0; border-top: 0; padding-top: clamp(64px, 9vh, 112px); }
/* surfaces sitting on a dark band lift one step */
.sec.band .diagram, .sec.band .lad-card {
  background: #191c19; border-color: #2f342c;
}
/* big centered band headlines (Runneth scale) */
.sec.centered h2.sec-h { font-size: clamp(28px, 3.4vw, 46px); max-width: 30ch; }
.sec.centered p.body { max-width: 62ch; font-size: 14.5px; }
/* interiors stay left-aligned inside centered bands */
.sec.centered .lad-grid, .sec.centered .qa, .sec.centered .diagram pre { text-align: left; }
.qa { max-width: 880px; margin-left: auto; margin-right: auto; }
.sec.centered .pr-fee-wrap { text-align: left; }

/* ================= /pricing v6 — legibility + spacing round ============ */
/* bigger small-text (his squint complaint — most notably the brands row) */
.bk-brands-label { font-size: 12.5px; }
.bk-brands { font-size: 13.5px; letter-spacing: .1em; line-height: 2.1; }
.pr-trust { margin-top: 32px; }
.pr-terms { font-size: 12px; line-height: 1.9; margin-top: 12px; }
.pr-role { font-size: 13px; }
.pr-inc { font-size: 11.5px; }
.pr-for { font-size: 13.5px; }
.pr-list li { font-size: 13px; line-height: 1.65; padding: 7px 0 7px 24px; }
.pr-cards { gap: 18px; margin-top: clamp(34px, 5vh, 52px); }
.pr-card { padding: 26px 26px 28px; }
.lad-grid { gap: 18px; }
.pr-dash .dg-note { font-size: 12.5px; margin-top: 12px; }

/* the most-popular treatment returns (Marcos's call, Runneth-style) */
.pr-card.hot { border-color: var(--amber-dim); box-shadow: 0 0 44px rgba(242, 178, 74, .10); }
.pr-card.hot .pr-cta { background: #fff; color: #000; }
.pr-card.hot .pr-cta:hover, .pr-card.hot .pr-cta:focus-visible { background: transparent; color: #fff; }

/* Calendly's close control sits on the popup frame instead of the viewport. */
@media (min-width: 976px) {
  .page-pricing .calendly-overlay .calendly-popup {
    width: 420px !important;
    min-width: 0 !important;
    max-width: 420px;
  }
}
.page-pricing .calendly-overlay .calendly-popup > .calendly-popup-close {
  top: -18px !important;
  right: -18px !important;
  width: 38px;
  height: 38px;
  box-sizing: border-box;
  border: 1px solid var(--paper);
  border-radius: 50%;
  background-color: #121412;
  background-position: center;
  background-size: 14px;
  z-index: 4;
}
.page-pricing .calendly-overlay .calendly-popup > .calendly-popup-close:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}
@media (max-width: 975px) {
  .page-pricing .calendly-overlay .calendly-popup > .calendly-popup-close {
    top: 10px !important;
    right: 10px !important;
  }
}

/* ================= wwd v3 consolidation components ================= */
/* service-status panel (the-offer) */
.status-panel {
  border: 1px solid var(--line); border-radius: 10px; background: #121412;
  overflow: hidden; margin-top: clamp(22px, 3.5vh, 34px);
}
.status-panel .sp-head {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px; border-bottom: 1px solid var(--hairline);
  color: var(--dim); font-size: 11.5px; letter-spacing: .1em;
}
.status-panel .sp-head .sp-ok { color: var(--amber); }
.status-panel .sp-row {
  display: grid; grid-template-columns: 106px 1fr 44px; gap: 6px 16px;
  padding: 14px 16px; border-bottom: 1px solid var(--hairline);
}
.status-panel .sp-row:last-child { border-bottom: 0; }
.status-panel .sp-k { color: var(--amber); font-size: 13px; }
.status-panel .sp-v {
  font-family: var(--sans); font-size: 14px; line-height: 1.65;
  color: var(--body); max-width: 60ch;
}
.status-panel .sp-v b { color: var(--paper); font-weight: 600; }
.status-panel .sp-s { color: var(--amber); font-size: 12px; text-align: right; }
@media (max-width: 560px) {
  .status-panel .sp-row { grid-template-columns: 1fr 40px; }
  .status-panel .sp-k { grid-column: 1 / -1; }
}

/* mono tables (schedule + comparison) — horizontal scroll like .diagram-scroll */
.tscroll {
  overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  margin-top: clamp(22px, 3.5vh, 34px);
  border: 1px solid var(--line); border-radius: 10px;
}
.wwd-table {
  border-collapse: collapse; width: 100%; min-width: 540px;
  background: #121412; font-family: var(--mono); font-size: 13.5px;
}
.wwd-table th {
  text-align: left; color: var(--dim); font-weight: 400; font-size: 11.5px;
  letter-spacing: .1em; padding: 10px 16px; border-bottom: 1px solid var(--hairline);
}
.wwd-table td {
  padding: 11px 16px; border-bottom: 1px solid var(--hairline);
  vertical-align: top; color: var(--txt); line-height: 1.6;
}
.wwd-table tr:last-child td { border-bottom: 0; }
.wwd-table tbody tr:hover td { background: #181b18; }
.wwd-table td.cad { color: var(--amber); white-space: nowrap; width: 1%; font-size: 12.5px; }
.wwd-table.cmp th.us-h { color: var(--amber); }
.wwd-table.cmp td.rl { color: var(--dim); white-space: nowrap; width: 1%; font-size: 12.5px; }
.wwd-table.cmp td.us { color: var(--txt); }
.wwd-table.cmp td.us::before { content: "▸ "; color: var(--amber); }
.wwd-table.cmp td.them { color: var(--body); }

/* track record: mono role line inside stat cards */
.stat-card .role-line {
  font-family: var(--mono); color: var(--dim); font-size: 11.5px;
  letter-spacing: .05em; margin: 8px 0 0;
}

/* fit-check list (who-we-work-with) */
.fit-check { margin-top: clamp(20px, 3vh, 30px); display: inline-block; text-align: left; }
.fit-list { margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.fit-list li { padding: 3px 0; color: var(--txt); }
.fit-list .ok { color: var(--amber); }
.fit-verdict { color: var(--amber); margin: 10px 0 0; font-size: 13.5px; }

/* ================= hww v7 consolidation components ================= */
/* operating-model rule line */
.rule-line { font-family: var(--mono); font-size: 13.5px; color: var(--dim); margin: 18px 0 0; }
.rule-line .r { color: var(--amber); }

/* module cycle table cells */
.wwd-table.mods td.cyc { color: var(--pink); white-space: nowrap; width: 1%; font-size: 12px; letter-spacing: .06em; }
.wwd-table.mods td.mod { color: var(--amber); white-space: nowrap; width: 1%; font-size: 12.5px; }
.wwd-table.mods td.cad { color: var(--dim); }

/* module-cycle closing note */
.mod-note { font-family: var(--sans); font-size: 13.5px; line-height: 1.7; color: var(--dim); margin: 14px 0 0; max-width: 66ch; }
.mod-note b { color: var(--body); font-weight: 400; }

/* ================= /about-us: portrait particle field ================= */
/* the hero portrait runs on the same glyph-particle engine as the homepage
   dog (cosmo-ascii-mte.js) — the wrapper reserves the artwork's box so the
   canvas has a stable host to measure against */
.au-canvas {
  position: relative; min-width: 0; overflow: visible;
  aspect-ratio: 167 / 166;   /* cols*0.602 / rows*1.16 of the portrait art */
  max-width: min(100%, 520px); margin: 0 auto;
}
@media (prefers-reduced-motion: no-preference) {
  .au-canvas { touch-action: none; } /* finger drags drive the particles, not scroll */
}
.au-canvas { display: flex; align-items: center; justify-content: center; }
.au-visual .portrait-canvas {
  display: block; pointer-events: none;
  filter: drop-shadow(0 0 12px rgba(127, 214, 255, .22));
  -webkit-mask-image: linear-gradient(#000 78%, rgba(0,0,0,.55) 90%, transparent 100%);
          mask-image: linear-gradient(#000 78%, rgba(0,0,0,.55) 90%, transparent 100%);
}

/* ================= /pricing v7 — row-aligned tier cards ================= */
/* brands roster relocated below the cards — framed by hairlines */
.pr-hero-c .pr-trust {
  margin-top: clamp(30px, 4.5vh, 44px);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 18px 0 20px;
}
/* the feature-list divider runs edge-to-edge across the card */
.pr-inc {
  margin-left: -26px; margin-right: -26px;
  padding-left: 26px; padding-right: 26px;
}
/* non-subgrid fallback: the .pr-for spacer, recalibrated for the v6 font size */
@media (min-width: 1081px) {
  .pr-for { min-height: 44px; }
}
@supports (grid-template-rows: subgrid) {
  @media (min-width: 1081px) {
    .pr-cards { grid-template-rows: repeat(7, auto) 1fr auto; }
    .pr-card  { display: grid; grid-template-rows: subgrid; grid-row: span 9; row-gap: 0; }
    /* shared row tracks align the rows now — the spacer is superseded */
    .pr-for { min-height: 0; }
  }
}

/* the fixed-fee math as a plain table (was the ASCII-bar window) */
.pr-fee-table {
  border: 1px solid var(--line); border-radius: 10px; background: #121412;
  overflow: hidden;
}
.pr-fee-wrap .wwd-table.pr-fee { min-width: 0; }
.wwd-table.pr-fee th { padding: 14px 20px; }
.wwd-table.pr-fee td { padding: 13px 20px; }
.wwd-table.pr-fee td.sp { color: var(--dim); }
.wwd-table.pr-fee td.them { color: var(--pink); }
.wwd-table.pr-fee td.us { color: #3DFC6E; }
.pr-fee-note {
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
  color: var(--dim); margin: 14px 2px 0;
}
