/* Strategem site — "Flow" design system (2026 redesign). One committed look: a night stream of homes, then quiet light pages. */
:root {
  --night: #0F1823;        /* the stream's ground */
  --navy: #1B2738;         /* brand navy */
  --gold: #F2B148;         /* brand gold */
  --gold-dk: #C98A22;
  --slate: #7A91B0;        /* the homes in the stream */
  --mist: #C3CEDC;         /* secondary text on night */
  --white: #FFFFFF;
  --light: #F8F9FA;        /* brand light gray */
  --body: #4A4A4A;         /* brand body gray */
  --muted: #667487;
  --line: #E0E0E0;
  --display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Plus Jakarta Sans', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(18px, 4vw, 56px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--body); font-family: var(--text); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wrap { max-width: 1320px; margin: 0 auto; padding-inline: var(--gutter); }

/* Type roles, all in the site's own two faces */
.label { font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.big { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: -0.035em; line-height: 0.9; color: var(--navy); }
.night .label { color: var(--mist); }
.night .big { color: var(--white); }

/* Buttons: square, no pills */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; padding: 15px 24px; border: 2px solid transparent; white-space: nowrap; cursor: pointer; background: none; }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: #FFC45F; border-color: #FFC45F; }
.btn-ghost { border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }
.btn-line { border-color: var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); color: var(--white); }


/* ---------- Top bar ---------- */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--night); border-bottom: 1px solid rgba(195, 206, 220, 0.12); }
.bar-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.bar-logo { flex: none; }
.bar-logo img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav a { display: flex; align-items: baseline; gap: 8px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--mist); padding: 24px 0 22px; border-bottom: 3px solid transparent; white-space: nowrap; }
.nav a b { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: #6F83A0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--gold); }
.nav a[aria-current="page"] b { color: var(--gold); }
.nav .sep { width: 1px; height: 22px; background: rgba(195, 206, 220, 0.2); }
.nav .btn { padding: 11px 18px; border-bottom: 2px solid var(--gold); }
.nav .btn-gold, .nav .btn-gold:hover { color: var(--navy); }
.menu-btn { display: none; margin-left: auto; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); background: none; border: 2px solid rgba(255,255,255,0.5); padding: 9px 14px; }

/* ---------- The stream ---------- */
canvas.flow { --flow-ground: #0F1823; display: block; width: 100%; height: 100%; background: var(--night); touch-action: pan-y; }
.night { background: var(--night); color: var(--mist); }
.stream { position: relative; }
.stage { position: sticky; top: 72px; height: calc(100vh - 72px); z-index: 0; overflow: hidden; }
.stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(15,24,35,0.92) 0%, rgba(15,24,35,0.72) 34%, rgba(15,24,35,0) 64%); }
.hint { margin-top: 28px; display: flex; align-items: center; gap: 10px; pointer-events: none; font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist); }
.hint svg { width: 16px; height: 16px; }
.hint .touch { display: none; }
@media (pointer: coarse) { .hint .mouse { display: none; } .hint .touch { display: inline; } }
.beats { position: relative; z-index: 1; pointer-events: none; margin-top: calc(-100vh + 72px); }
.beats a, .beats button { pointer-events: auto; }
.beat { min-height: calc(100vh - 72px); display: flex; align-items: center; padding-block: 80px; }
.beat-in { max-width: 580px; }
.hero h1 { font-size: clamp(46px, 6.2vw, 100px); margin-top: 22px; }
.hero h1 span { display: block; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { margin-top: 28px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--mist); max-width: 30em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.beat .card { background: rgba(15, 24, 35, 0.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(195, 206, 220, 0.14); padding: clamp(24px, 3vw, 40px); pointer-events: auto; }
.beat .num { display: flex; align-items: center; gap: 14px; }
.beat .num i { font-style: normal; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--navy); background: var(--mist); width: 34px; height: 34px; display: grid; place-items: center; transition: background .4s; }
.beat.is-on .num i { background: var(--gold); }
.beat h2 { font-size: clamp(46px, 5.4vw, 84px); margin-top: 18px; }
.beat .verb { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2vw, 28px); color: var(--gold); margin-top: 12px; line-height: 1.2; }
.beat .lede { margin-top: 16px; color: var(--mist); font-size: 17px; }
.inside { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid rgba(195, 206, 220, 0.16); }
.inside li { border-bottom: 1px solid rgba(195, 206, 220, 0.16); }
.inside a { display: grid; grid-template-columns: 1fr auto; gap: 1px 14px; padding: 12px 0; text-decoration: none; }
.inside strong { color: var(--white); font-weight: 600; font-size: 16px; }
.inside em { grid-column: 1 / -1; font-style: normal; font-size: 14px; color: var(--mist); }
.inside span { color: var(--mist); font-family: var(--display); }
.inside a:hover strong { color: var(--gold); }
.beat .btn { margin-top: 24px; }

/* ---------- Quiet light sections ---------- */
.section { padding-block: 112px; }
.section.gray { background: var(--light); }
.head h2 { font-size: clamp(34px, 4.4vw, 64px); margin-top: 14px; }
.head p { margin-top: 20px; font-size: 19px; max-width: 34em; color: var(--muted); }

/* Roll call: every builder by name, joined by the same little house as the stream */
.roll { margin-top: 56px; font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3.3vw, 50px); line-height: 1.35; letter-spacing: -0.02em; color: var(--navy); text-wrap: pretty; }
@media (min-width: 561px) { .roll span { white-space: nowrap; } }
.roll svg { display: inline-block; width: 0.42em; height: 0.42em; margin: 0 0.32em 0.08em; vertical-align: middle; }

/* Carousel of builder comments */
.car-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.car-btns { display: flex; gap: 8px; }
.car-btns button { width: 48px; height: 48px; border: 2px solid var(--navy); background: transparent; color: var(--navy); font-size: 18px; font-weight: 700; cursor: pointer; }
.car-btns button:hover { background: var(--navy); color: var(--white); }
.car-view { overflow: hidden; margin-top: 40px; }
.car-track { display: flex; gap: 24px; will-change: transform; }
.car-card { flex: 0 0 calc((100% - 48px) / 3); margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; padding: 30px 30px 26px; background: var(--white); border: 1px solid var(--line); }
.car-card blockquote { margin: 0; font-size: 18px; line-height: 1.6; color: var(--navy); }
.car-card figcaption { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); }
.car-card figcaption svg { width: 14px; height: 14px; flex: none; }

/* Training record */
.nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; margin-top: 56px; }
.nums .v { font-family: var(--display); font-weight: 700; font-size: clamp(52px, 5.4vw, 84px); line-height: 1; letter-spacing: -0.03em; color: var(--navy); font-variant-numeric: tabular-nums; }
.nums .v.pending { color: #C9D1DB; }
.nums .k { margin-top: 14px; padding-top: 12px; border-top: 2px solid var(--navy); font-weight: 600; color: var(--navy); }
.nums .s { margin-top: 2px; font-size: 14px; color: var(--muted); }

/* Closing ask over a calm stream */
.ask { position: relative; overflow: hidden; }
.ask canvas.flow { position: absolute; inset: 0; height: 100%; }
.ask::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(15,24,35,0.93) 0%, rgba(15,24,35,0.75) 42%, rgba(15,24,35,0.1) 78%); }
.ask-in { position: relative; z-index: 1; padding-block: 128px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; pointer-events: none; }
.ask-in a, .ask-in .contact { pointer-events: auto; }
.ask h2 { font-size: clamp(44px, 5.6vw, 92px); }
.ask p { margin-top: 22px; font-size: 19px; color: var(--mist); max-width: 30em; }
.contact { display: grid; gap: 0; background: rgba(15, 24, 35, 0.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(195, 206, 220, 0.14); }
.contact div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 16px 20px; border-bottom: 1px solid rgba(195, 206, 220, 0.14); }
.contact div:last-child { border-bottom: none; }
.contact span:last-child { color: var(--white); font-weight: 600; user-select: all; }

/* Footer */
.foot { background: var(--night); color: #8A99AD; padding-block: 64px 30px; font-size: 15px; border-top: 1px solid rgba(195, 206, 220, 0.1); }
.foot-top { display: flex; align-items: flex-start; gap: 48px; }
.foot-brand { flex: 0 0 280px; }
.foot-brand p { margin: 0; line-height: 1.6; max-width: 36em; }
.foot-brand-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.foot-logo { height: 30px; width: auto; }
.foot-links { flex: 1; display: flex; justify-content: space-between; gap: 32px; }
.foot-links a { white-space: nowrap; }
@media (max-width: 1280px) { .foot-top { flex-wrap: wrap; gap: 40px; } .foot-brand { flex: 0 0 100%; } .members { flex: 0 0 auto; } }
.foot h4 { margin: 0 0 14px; font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--white); }
.foot a { display: block; padding: 4px 0; color: var(--mist); text-decoration: none; }
.foot a:hover { color: var(--gold); }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(195, 206, 220, 0.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 13px; }

/* ---------- Pillar page ---------- */
.p-head { position: relative; overflow: hidden; }
.p-head canvas.flow { position: absolute; inset: 0; height: 100%; }
.p-head::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(15,24,35,0.94) 0%, rgba(15,24,35,0.74) 44%, rgba(15,24,35,0.15) 80%); }
.p-in { position: relative; z-index: 1; padding-block: 88px 96px; pointer-events: none; }
.p-in a, .p-in nav { pointer-events: auto; }
.p-in h1 { font-size: min(13vw, 190px); margin-top: 20px; }
.p-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: end; margin-top: 18px; }
.p-in .sub { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 2.8vw, 40px); line-height: 1.12; color: var(--gold); }
.p-in .lede { margin-top: 18px; color: var(--mist); font-size: clamp(18px, 1.5vw, 20px); max-width: 32em; }
.p-in .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.contents { background: rgba(15, 24, 35, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(195, 206, 220, 0.16); }
.contents .label { display: block; padding: 14px 20px; border-bottom: 1px solid rgba(195, 206, 220, 0.16); }
.contents a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; text-decoration: none; color: var(--white); font-weight: 600; border-bottom: 1px solid rgba(195, 206, 220, 0.1); }
.contents a:last-child { border-bottom: none; }
.contents a small { font-family: var(--display); font-weight: 500; font-size: 13px; color: var(--mist); }
.contents a:hover { color: var(--gold); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.filters button { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; padding: 10px 16px; border: 2px solid var(--line); background: var(--white); color: var(--navy); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.prog { margin-top: 20px; border-top: 2px solid var(--navy); }
.prog-head, .prog-row { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.5fr) minmax(0, 3fr) 28px; gap: 24px; align-items: center; }
.prog-head { padding: 14px 0; border-bottom: 1px solid var(--line); }
.prog-row { padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--navy); }
.prog-row:hover { background: var(--light); }
.prog-row[hidden] { display: none; }
.prog-name { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; }
.prog-fam { display: block; margin-top: 6px; }
.prog-what { font-size: 16px; color: var(--muted); }
.prog-go { font-family: var(--display); font-weight: 700; }
.dur { display: grid; gap: 8px; }
.dur-track { position: relative; height: 12px; }
.dur-bar { position: absolute; left: 0; top: 3px; height: 6px; width: var(--w); background: var(--navy); }
.dur-more { position: absolute; top: 3px; left: var(--w); width: var(--more); height: 6px; background: repeating-linear-gradient(90deg, var(--navy) 0 6px, transparent 6px 10px); }
.dur-ticks { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(27,39,56,0.18) 0 1px, transparent 1px 25%); }
.dur-label { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.dur-key { display: inline-flex; align-items: center; gap: 8px; }
.dur-key i { display: inline-block; width: 32px; height: 6px; background: var(--navy); }

.guide { margin-top: 56px; background: var(--gold); color: var(--navy); padding: 36px clamp(24px, 4vw, 48px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.guide h3 { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.4vw, 32px); text-transform: uppercase; letter-spacing: -0.01em; }
.guide p { margin-top: 6px; }
.guide .btn { background: var(--navy); color: var(--white); border-color: var(--navy); }
.guide .btn:hover { background: #26364D; }

.progs2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; margin-top: 48px; }
.p2 { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--white); border: 1px solid var(--line); }
.p2 h3 { font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--navy); letter-spacing: -0.01em; }
.p2 p { color: var(--muted); }
.p2 .btn { align-self: flex-start; margin-top: auto; }
.p2.tbd { background: transparent; border: 2px dashed #C3CBD5; }
.p2.tbd h3, .p2.tbd p { color: #8F9BAA; }

.record { margin-top: 48px; background: var(--night); color: var(--mist); padding: clamp(28px, 4vw, 48px); }
.record .nums { margin-top: 0; }
.record .nums .v { color: var(--white); }
.record .nums .v.pending { color: #33445C; }
.record .nums .k { color: var(--white); border-top-color: var(--gold); }
.record .nums .s { color: var(--mist); }
/* Training results dashboard (inside the dark record panel) */
.dash { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.dash .panel { background: rgba(195, 206, 220, 0.05); border: 1px solid rgba(195, 206, 220, 0.12); padding: clamp(20px, 2.6vw, 30px); min-width: 0; }
.dash .panel.wide { grid-column: 1 / -1; }
.dash h3 { margin: 0; font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); }
.dash .note { margin: 8px 0 0; font-size: 14px; color: #8A99AD; }
.big-score { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; }
.big-score b { font-family: var(--display); font-weight: 700; font-size: clamp(48px, 5vw, 72px); line-height: 1; letter-spacing: -0.03em; color: var(--gold); font-variant-numeric: tabular-nums; }
.big-score span { color: var(--mist); font-size: 15px; }
.dist, .bars { display: grid; gap: 10px; margin-top: 20px; }
.dist .row, .bars .row { display: grid; grid-template-columns: var(--label, 64px) minmax(0, 1fr) 46px; align-items: center; gap: 12px; font-size: 14px; }
.bars .row { --label: minmax(0, 13em); }
.dist .row span:first-child, .bars .row span:first-child { color: var(--mist); }
.dist .row span:last-child, .bars .row span:last-child { text-align: right; color: var(--white); font-variant-numeric: tabular-nums; font-weight: 600; }
.track { height: 10px; background: rgba(195, 206, 220, 0.1); position: relative; }
.track i { position: absolute; inset: 0 auto 0 0; background: var(--gold); }
.stack { display: flex; height: 18px; margin-top: 20px; }
.stack i { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 14px; font-size: 14px; color: var(--mist); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend em { width: 12px; height: 12px; display: inline-block; }
.legend b { color: var(--white); font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips span { font-size: 13px; padding: 6px 10px; border: 1px solid rgba(195, 206, 220, 0.2); color: var(--mist); }
.dash .bycourse { margin-top: 12px; }
.dash .bycourse td.n { color: var(--mist); }
@media (max-width: 760px) {
  .dash { grid-template-columns: minmax(0, 1fr); }
  .bars .row { grid-template-columns: minmax(0, 1fr) 46px; }
  .bars .row .track { grid-column: 1 / -1; grid-row: 2; }
}

.bycourse { width: 100%; border-collapse: collapse; margin-top: 44px; }
.bycourse th { font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #8A99AD; text-align: left; padding: 10px 0; border-bottom: 1px solid rgba(195,206,220,0.3); }
.bycourse td { padding: 16px 0; border-bottom: 1px solid rgba(195,206,220,0.12); color: var(--white); font-weight: 600; }
.bycourse .n { text-align: right; font-family: var(--display); font-variant-numeric: tabular-nums; }
.bycourse td.n { color: #4E5E75; }
.names { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.names li { padding: 10px 16px; border: 1px solid var(--line); font-weight: 600; color: var(--navy); background: var(--white); }

.topics { list-style: none; padding: 0; margin: 44px 0 0; max-width: 860px; counter-reset: tp; }
.topics li { counter-increment: tp; display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 20px 0; border-bottom: 2px dashed #D3D9E0; font-family: var(--display); font-weight: 600; font-size: 20px; color: #9AA5B3; }
.topics li::before { content: counter(tp, decimal-leading-zero); color: var(--gold-dk); font-weight: 700; }

.next { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--navy); margin-top: 96px; }
.next a { display: block; padding: 34px 0; text-decoration: none; }
.next a + a { text-align: right; border-left: 1px solid var(--line); padding-left: 24px; }
.next .big { display: block; margin-top: 12px; font-size: clamp(34px, 4.2vw, 64px); }
.next a:hover .big { color: var(--gold-dk); }

/* ---------- Responsive ---------- */
/* The full menu needs ~1300px in Spanish (with Home); below that it folds into the Menu button. */
@media (max-width: 1300px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--night); padding: 6px var(--gutter) 20px; border-bottom: 1px solid rgba(195,206,220,0.14); }
  .nav.open { display: flex; }
  .nav a { padding: 15px 0; border-bottom: 1px solid rgba(195,206,220,0.12); }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: rgba(195,206,220,0.12); }
  .nav .about { display: flex; }
  .nav .sep { display: none; }
  .nav .btn { margin-top: 16px; justify-content: center; }
}
@media (max-width: 1100px) {
  .stage::after { background: rgba(15,24,35,0.62); }
  .beat-in { max-width: none; }
  .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ask-in, .p-grid { grid-template-columns: minmax(0, 1fr); }
  .prog-head { display: none; }
  .prog-row { grid-template-columns: minmax(0, 1fr) 24px; grid-template-areas: "name go" "dur go" "what go"; gap: 12px 16px; }
  .prog-row > div:first-child { grid-area: name; }
  .prog-row .dur { grid-area: dur; max-width: 360px; }
  .prog-what { grid-area: what; }
  .prog-go { grid-area: go; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding-block: 76px; }
  .beat { padding-block: 56px; }
  .hero h1 { font-size: clamp(42px, 13.5vw, 64px); }
  .beat h2 { font-size: clamp(34px, 11vw, 52px); }
  .foot-top { flex-direction: column; gap: 32px; } .foot-links { flex-direction: column; gap: 24px; }
  .next { grid-template-columns: 1fr; }
  .next a + a { text-align: left; border-left: none; border-top: 1px solid var(--line); padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Example E additions ---------- */
.car-tools { display: flex; align-items: center; gap: 8px; }
.car-pause { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; border: 2px solid var(--navy); background: transparent; color: var(--navy); font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.car-pause:hover { background: var(--navy); color: var(--white); }
.car-progress { margin-top: 22px; height: 3px; background: var(--line); position: relative; overflow: hidden; }
.car-progress i { position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--gold); transform-origin: left; animation: read 10s linear forwards; }
.is-paused .car-progress i { animation-play-state: paused; }
.no-auto .car-progress { display: none; }
@keyframes read { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.car-note { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* Builder schedule (from Example C) */
.sched-note { margin-top: 10px; }
.schedule { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); margin-top: 48px; border-top: 3px solid var(--navy); border-left: 1px solid var(--line); }
.schedule figure { margin: 0; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: 12px 14px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); min-height: 156px; }
.schedule .mark { font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: var(--muted); }
.schedule .logo { display: flex; align-items: center; justify-content: center; }
.schedule img { max-height: 52px; max-width: 126px; width: auto; height: auto; object-fit: contain; }
.schedule figcaption { font-size: 14px; font-weight: 600; color: var(--navy); line-height: 1.3; }
.schedule figure:hover { background: var(--light); }

/* Finale beat */
.beat.finale .card { border-color: rgba(242, 177, 72, 0.4); }
.beat.finale .num i { background: var(--gold); }

/* Closing section with the contact form */
.ask-in { align-items: start; }
.ask-in .left { pointer-events: auto; }
.ask .reach { margin-top: 34px; display: grid; gap: 10px; }
.ask .reach div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; }
.ask .reach span:last-child { color: var(--white); font-weight: 600; user-select: all; }
.form-card { pointer-events: auto; background: rgba(15, 24, 35, 0.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(195, 206, 220, 0.18); padding: clamp(22px, 3vw, 36px); }
.form-card h3 { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--white); }
form[data-contact] { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-top: 20px; }
.fld { display: grid; gap: 7px; }
.fld.full { grid-column: 1 / -1; }
.fld label { font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mist); }
.fld label b { color: var(--gold); font-weight: 700; }
.fld input, .fld select, .fld textarea { width: 100%; font: inherit; font-size: 16px; color: var(--white); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(195, 206, 220, 0.3); padding: 12px 14px; border-radius: 0; }
.fld textarea { min-height: 120px; resize: vertical; }
.fld select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mist) 50%), linear-gradient(135deg, var(--mist) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.fld select option { color: var(--navy); }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--gold); background: rgba(255, 255, 255, 0.1); }
.err { font-size: 14px; color: #FFB4A8; }
.form-hint { grid-column: 1 / -1; font-size: 14px; color: var(--mist); }
.form-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { outline: none; }
.done h3 { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--white); }
.done p { margin-top: 10px; color: var(--mist); }

@media (max-width: 1100px) { .car-card { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 700px) { .car-card { flex-basis: 100%; } form[data-contact] { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .schedule { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.car-btn { width: 48px; height: 48px; border: 2px solid var(--navy); background: transparent; color: var(--navy); font-size: 18px; font-weight: 700; cursor: pointer; }
.car-btn:hover { background: var(--navy); color: var(--white); }

[hidden] { display: none !important; }
.ask .form-card p { margin-top: 0; max-width: none; }
.ask .form-hint { font-size: 14px; color: var(--mist); }
.ask .done p { margin-top: 10px; font-size: 16px; }

/* ---------- Full-site additions ---------- */
.nav__cta { display: none; }                        /* placeholder the language picker replaces */
.language-switcher { display: inline-flex; align-items: center; gap: 6px; color: var(--mist); padding: 6px 8px; border: 1px solid rgba(195,206,220,0.25); }
.language-switcher:hover, .language-switcher:focus-within { border-color: var(--gold); color: var(--white); }
.language-switcher svg { width: 16px; height: 16px; flex: none; }
.language-switcher__select { appearance: none; background: transparent; border: 0; color: inherit; font-family: var(--display); font-weight: 600; font-size: 14px; cursor: pointer; padding-right: 2px; }
.language-switcher__select option { color: var(--navy); }
@media (max-width: 940px) { .language-switcher { align-self: flex-start; margin-top: 14px; } }

.page-lede { max-width: 38em; }
.prose { max-width: 720px; }
.prose h2 { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--navy); margin: 44px 0 12px; letter-spacing: -0.01em; }
.prose h3 { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--navy); margin: 28px 0 8px; }
.prose p, .prose li { color: var(--body); }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 20px; }
.prose a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* Program rows open in place to show what each one fixes and who should come */
details.prog-row { display: block; padding: 0; }
details.prog-row > summary { list-style: none; display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.5fr) minmax(0, 3fr) 28px; gap: 24px; align-items: center; padding: 22px 0; cursor: pointer; }
details.prog-row > summary::-webkit-details-marker { display: none; }
details.prog-row .prog-go { transition: transform .25s; display: inline-block; }
details.prog-row[open] .prog-go { transform: rotate(90deg); }
details.prog-row .more { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px 40px; padding: 4px 0 28px; }
details.prog-row .more p { color: var(--body); }
details.prog-row .more .who { font-size: 15px; color: var(--muted); }
details.prog-row .more .who b { display: block; font-family: var(--display); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); margin-bottom: 6px; }
@media (max-width: 940px) {
  details.prog-row > summary { grid-template-columns: minmax(0, 1fr) 24px; grid-template-areas: "name go" "dur go" "what go"; gap: 12px 16px; }
  details.prog-row > summary > div:first-child { grid-area: name; }
  details.prog-row > summary .dur { grid-area: dur; max-width: 360px; }
  details.prog-row > summary .prog-what { grid-area: what; }
  details.prog-row > summary .prog-go { grid-area: go; }
  details.prog-row .more { grid-template-columns: 1fr; }
}

/* Offer blocks on the pillar pages */
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; margin-top: 48px; }
.offer { display: flex; flex-direction: column; gap: 12px; padding: 30px; background: var(--white); border: 1px solid var(--line); }
.section.gray .offer { background: var(--white); }
.offer h3 { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--navy); letter-spacing: -0.015em; }
.offer p { color: var(--body); }
.offer ul { margin: 4px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.offer li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--navy); font-weight: 500; }
.offer .btn { align-self: flex-start; margin-top: auto; }
.offer.wide { grid-column: 1 / -1; }
.offer .meta { display: flex; gap: 10px; flex-wrap: wrap; }
.tag { font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); background: var(--light); border: 1px solid var(--line); padding: 5px 9px; }
.tag.gold { background: var(--gold); border-color: var(--gold); }

/* Products on the Intelligence page */
.product { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: start; padding-block: 64px; border-top: 1px solid var(--line); }
.product:first-of-type { border-top: 2px solid var(--navy); }
.product h3 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 3.4vw, 48px); letter-spacing: -0.025em; color: var(--navy); margin-top: 10px; }
.product h3.plogo { margin-top: 14px; line-height: 0; }
.product h3.plogo img { height: clamp(40px, 3.6vw, 52px); width: auto; max-width: 100%; display: block; }
.product .kicker { font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--navy); margin-top: 8px; }
.product .body p { color: var(--body); }
.product .body p + p { margin-top: 14px; }
.product .body ul { margin: 22px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.product .body li { padding: 11px 0 11px 22px; border-bottom: 1px solid var(--line); position: relative; }
.product .body li::before { content: ''; position: absolute; left: 0; top: 19px; width: 10px; height: 10px; background: var(--gold); clip-path: polygon(0 100%, 0 42%, 50% 0, 100% 42%, 100% 100%); }
.product .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
/* Below 1180px the two buttons no longer fit side by side in a half column, so the text drops underneath. */
@media (max-width: 1180px) { .product { grid-template-columns: 1fr; gap: 24px; } .product .body { max-width: 72ch; } }
@media (max-width: 940px) { .product { gap: 20px; padding-block: 48px; } }

/* Tool and video pop-ups */
.modal { position: fixed; inset: 0; z-index: 9500; display: none; background: rgba(15, 24, 35, 0.86); padding: 24px; }
.modal.open { display: flex; align-items: center; justify-content: center; }
.modal-box { position: relative; width: min(1180px, 100%); height: min(86vh, 900px); background: var(--white); display: flex; flex-direction: column; }
.modal-box.video { height: auto; background: var(--night); }
.modal-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 16px; background: var(--night); color: var(--white); }
.modal-top h2 { font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--white); }
.modal-top a, .modal-top button { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); background: none; border: 1px solid rgba(255,255,255,0.4); padding: 8px 12px; cursor: pointer; text-decoration: none; }
.modal-body { position: relative; flex: 1; }
.modal-body iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal-body video { width: 100%; display: block; max-height: 78vh; background: #000; }
.modal-wait { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-family: var(--display); }

/* About */
.founders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 48px; }
.founder { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: start; }
.founder img { width: 150px; height: 180px; object-fit: cover; filter: grayscale(0.15); }
.founder h3 { font-family: var(--display); font-weight: 700; font-size: 28px; color: var(--navy); letter-spacing: -0.02em; }
.founder .label { margin-top: 4px; }
.founder p { margin-top: 12px; color: var(--body); }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 0; margin-top: 48px; border-top: 2px solid var(--navy); }
.value { padding: 26px 22px 28px 0; border-bottom: 1px solid var(--line); }
.value h3 { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--navy); display: flex; align-items: center; gap: 10px; }
.value h3 svg { width: 14px; height: 14px; flex: none; }
.value p { margin-top: 10px; color: var(--body); font-size: 16px; }
.value p.fine { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .founders { grid-template-columns: 1fr; } .founder { grid-template-columns: 110px minmax(0, 1fr); } .founder img { width: 110px; height: 132px; } }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 28px; margin-top: 48px; }
.post { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: inherit; }
.post:hover { border-color: var(--navy); }
.post img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--light); }
.post .in { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post h3 { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--navy); letter-spacing: -0.01em; line-height: 1.2; }
.post p { color: var(--muted); font-size: 15px; }
.post .go { margin-top: auto; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); }
.posts-empty { grid-column: 1 / -1; padding: 60px 0; color: var(--muted); }

/* Member logos in the footer */
.members { display: grid; grid-template-columns: repeat(2, auto); align-items: center; justify-items: center; column-gap: 24px; row-gap: 18px; }
.members img { height: 42px; width: auto; opacity: 0.85; }
.foot .social { display: inline-flex; align-items: center; color: var(--mist); text-decoration: none; padding: 0; }
.foot .social svg { width: 18px; height: 18px; fill: currentColor; }

/* Form messages */
.form-msg { grid-column: 1 / -1; font-size: 15px; padding: 12px 14px; border: 1px solid; }
.form-msg.bad { color: #FFB4A8; border-color: rgba(255,180,168,0.4); background: rgba(255,180,168,0.08); }
.cf-turnstile { grid-column: 1 / -1; min-height: 65px; }

/* Tear Down The Walls wordmark in the footer (easter egg, carried over from the previous site) */
.footer__egg { display: inline-flex; flex-direction: column; align-items: center; margin-top: 22px; font-family: 'Bebas Neue', 'Space Grotesk', sans-serif; line-height: 0.9; text-decoration: none; opacity: 0.35; transition: opacity .4s ease; }
.footer__egg:hover, .footer__egg:focus-visible { opacity: 1; }
.footer__egg span { display: block; text-transform: uppercase; letter-spacing: 0.02em; color: #FFFFFF; }
.footer__egg-top { font-size: 30px; }
.footer__egg-mid { display: flex !important; align-items: center; gap: 6px; margin: 3px 0 2px; font-size: 15px; }
.footer__egg-mid i { display: block; width: 22px; height: 2px; background: #EA8C2E; }
.footer__egg-bottom { font-size: 44px; color: #EA8C2E !important; }
.members .card-logo { height: 70px; background: #FFFFFF; padding: 10px 14px; border-radius: 8px; opacity: 1; }
.members .dba { width: 190px; object-fit: contain; }
.members .nahb, .members .acce { height: 90px; }

/* Articles */
.article { max-width: 780px; margin: 0 auto; padding: 72px var(--gutter) 96px; }
.article__back { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); text-decoration: none; }
.article__language-notice { margin-top: 20px; padding: 12px 16px; background: var(--light); border-left: 3px solid var(--gold); }
.article__title { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -0.03em; color: var(--navy); margin-top: 24px; text-wrap: balance; }
.article__meta { margin-top: 14px; font-size: 15px; color: var(--muted); }
.article__hero { width: 100%; margin-top: 32px; aspect-ratio: 16 / 9; object-fit: cover; }
.article__content { margin-top: 36px; }
.article__content h2 { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.15; color: var(--navy); margin: 44px 0 12px; letter-spacing: -0.015em; }
.article__content h3 { font-family: var(--display); font-weight: 700; font-size: 21px; color: var(--navy); margin: 30px 0 8px; }
.article__content p, .article__content li { font-size: 18px; line-height: 1.7; color: var(--body); }
.article__content p + p { margin-top: 16px; }
.article__content ul, .article__content ol { padding-left: 22px; margin: 14px 0; }
.article__content a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.article__content img { max-width: 100%; height: auto; }
.article__cta { margin-top: 56px; padding: 32px; background: var(--night); color: var(--mist); }
.article__cta h3 { color: var(--white); margin-top: 0; }
.article__cta p { color: var(--mist); }
.article__cta a { color: var(--gold); }
.legal .last-updated { color: var(--muted); font-size: 15px; margin-top: 6px; }
.band-link { background: var(--night); padding-block: 64px; }
.band-link .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.band-link h2 { font-size: clamp(30px, 3.6vw, 48px); }

@media (max-width: 420px) {
  .btn { white-space: normal; text-align: center; justify-content: center; }
  .bycourse th { font-size: 11px; letter-spacing: 0.06em; }
  .bycourse .n { padding-left: 10px; }
}
