/* Layout: a drawing sheet. White logo strip, black title band with logo-green linework, views laid out on the sheet, title block as the footer. */
:root {
  --green: #82A530;         /* the logo's green */
  --green-deep: #4F6E22;    /* headings on light ground */
  --green-ink: #4A6A16;     /* green dark enough for small text on light ground */
  --band: #111410;          /* the logo's black, a touch toward green */
  --plate: #FFFFFF;         /* logo strip stays white in both themes */
  --plate-fg: #111410;
  --line-band: rgba(130,165,48,.5);
  --bg: #F6F8F1;
  --surface: #FFFFFF;
  --fg: #171A14;
  --muted: #5B6253;
  --line: #DCE3D0;
  --on-band: #EEF3E4;
  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, ui-monospace, monospace;
  --radius: 4px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --green: #94BC38; --green-deep: #B4D66A; --green-ink: #A8CC55; --band: #0A0C08;
    --bg: #12150F; --surface: #1B2016; --fg: #EDF1E6; --muted: #A9B19E; --line: #2D3524; --on-band: #EEF3E4;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --green: #94BC38; --green-deep: #B4D66A; --green-ink: #A8CC55; --band: #0A0C08;
  --bg: #12150F; --surface: #1B2016; --fg: #EDF1E6; --muted: #A9B19E; --line: #2D3524; --on-band: #EEF3E4;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1; margin: 0; text-wrap: balance; letter-spacing: .01em; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--green-ink); }

/* Title band */
.band { background: var(--band); color: var(--on-band); border-bottom: 3px solid var(--green); }
.plate { background: var(--plate); color: var(--plate-fg); border-bottom: 1px solid #E3E8DA; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 14px; flex-wrap: wrap; }
.mark { display: block; width: min(340px, 100%); }
.mark img { display: block; width: 100%; height: auto; }
.nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; flex-wrap: wrap; font-size: 14px; font-weight: 500; }
.nav ul a { text-decoration: none; color: var(--plate-fg); }
.nav ul a:hover { color: #4A6A16; text-decoration: underline; text-underline-offset: 4px; }

.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; padding-block: 56px 64px; }
.hero > * { min-width: 0; }
.hero h1 { font-size: clamp(48px, 8vw, 92px); font-weight: 900; text-transform: uppercase; }
.hero h1 span { color: var(--green); display: block; }
.hero p.lead { font-size: 19px; max-width: 34ch; margin: 22px 0 28px; color: var(--on-band); opacity: .92; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: var(--radius); font-weight: 600; text-decoration: none; font-size: 15px; border: 2px solid var(--green); cursor: pointer; font-family: var(--font-body); }
.btn.primary { background: var(--green); color: var(--band); }
.btn.ghost { background: transparent; color: var(--on-band); }
.btn:hover { filter: brightness(1.08); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #E0443E; box-shadow: 0 0 0 3px rgba(224,68,62,.25); }

/* The two AIs, drawn as a section cut */
.dual { border: 1.5px solid var(--green); border-radius: var(--radius); padding: 22px; position: relative; background: rgba(0,0,0,.18); }
.dual .tag { position: absolute; top: -11px; left: 16px; background: var(--band); padding: 0 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--green); }
.dual-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
.dual-row > div { min-width: 0; }
.ai { font-family: var(--font-display); font-size: 30px; font-weight: 800; line-height: 1.05; }
.ai small { display: block; font-family: var(--font-body); font-size: 13px; font-weight: 400; opacity: .8; margin-top: 6px; line-height: 1.4; }
.plus { font-family: var(--font-display); font-size: 44px; color: var(--green); }
.schedule { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line-band); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 13px; }
.schedule strong { color: var(--green); font-weight: 500; }
.mantra { margin: 14px 0 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.2; letter-spacing: .02em; text-transform: uppercase; color: var(--on-band); }

section.block { padding-block: 64px; border-bottom: 1px solid var(--line); }
section.block h2 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; text-transform: uppercase; color: var(--green-deep); margin: 8px 0 14px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) section.block h2 { color: var(--fg); } }
:root[data-theme="dark"] section.block h2 { color: var(--fg); }
.intro { max-width: 62ch; color: var(--muted); margin: 0 0 32px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; }
.step .num { font-family: var(--font-mono); font-size: 12px; color: var(--green-ink); letter-spacing: .1em; }
.step h3 { font-size: 26px; font-weight: 800; margin: 8px 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.lineup-h { margin: 44px 0 16px; }
.altitude { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 4vw, 40px); line-height: 1.1; text-transform: uppercase; color: var(--green-deep); margin: 4px 0 14px; max-width: 24ch; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .altitude { color: var(--green); } }
:root[data-theme="dark"] .altitude { color: var(--green); }
.lineup { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.lineup-soon { border-style: dashed; background: transparent; }

/* Help library */
.lib-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.lib-tools input { flex: 1 1 260px; min-width: 0; padding: 12px 14px; font: inherit; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--fg); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { font-family: var(--font-mono); font-size: 12px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--green-deep); border-color: var(--green-deep); color: var(--on-band); }
.lib { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.lib li { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.lib li > * { min-width: 0; }
.lib .q { font-weight: 500; }
.lib .meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.lib .cat { font-family: var(--font-mono); font-size: 11px; color: var(--green-ink); letter-spacing: .08em; text-transform: uppercase; }
.sample-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.empty { padding: 18px 4px; color: var(--muted); }

.watch { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.watch a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 18px; border: 1.5px solid var(--line); border-radius: var(--radius); text-decoration: none; background: var(--surface); font-weight: 600; }
.watch a span { font-family: var(--font-mono); font-size: 12px; color: var(--muted); font-weight: 400; }
.watch a:hover { border-color: var(--green); }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.about > * { min-width: 0; }
.about p { max-width: 60ch; margin: 0 0 14px; }
.contact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.copyrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.addr { font-family: var(--font-mono); font-size: 17px; user-select: all; }
.btn.small { padding: 8px 14px; font-size: 13px; background: transparent; color: var(--fg); }

/* Family library */
.fam-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; min-width: 0; }
.stat .v { font-family: var(--font-display); font-size: 40px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .k { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: 6px; }
.goal { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 12px; }
.goal i { display: block; height: 100%; background: var(--green); }
.compat { display: inline-flex; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: 12px; padding: 6px 12px; border: 1.5px solid var(--green); border-radius: 999px; color: var(--green-ink); margin-bottom: 18px; }
.fam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.fam { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.fam .img { background: #FFFFFF; aspect-ratio: 1; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.fam .img .spr { display: block; width: 100%; height: 100%; background-repeat: no-repeat; }
.fam .img .noimg { font-family: var(--font-mono); font-size: 11px; color: #6B7261; }
.fam .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.fam .nm { font-size: 13.5px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.fam .meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: auto; }
.fam .catalog { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.fam .catalog .pill { background: var(--green); color: var(--band); align-self: flex-start; }
.fam .rng { font-family: var(--font-mono); font-size: 11px; color: var(--fg); font-variant-numeric: tabular-nums; }
.fam .dl { margin-top: 8px; font-family: var(--font-mono); font-size: 11px; padding: 6px 8px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); }
.more-row { display: flex; justify-content: center; margin-top: 20px; }
.more-row .btn { background: transparent; color: var(--fg); }
.fam-count { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin: 0 0 14px; }

/* Rogue model */
.rogue-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.rg { border-top: 3px solid var(--green); padding-top: 14px; min-width: 0; }
.rg h3 { font-size: 26px; font-weight: 800; margin: 6px 0 8px; }
.rg p { margin: 0; color: var(--muted); font-size: 15px; }
.proof { margin-top: 36px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: var(--band); color: var(--on-band); border-radius: var(--radius); padding: 26px 28px; }
.proof > * { min-width: 0; }
.proof-num { font-family: var(--font-display); font-weight: 900; font-size: 64px; line-height: .9; color: var(--green); white-space: nowrap; }
.proof-num small { font-size: 18px; font-weight: 600; color: var(--on-band); letter-spacing: .04em; text-transform: uppercase; margin-right: 10px; }
.proof-num span { font-size: 22px; color: var(--on-band); opacity: .7; margin: 0 10px 0 0; }
.proof p { margin: 0; font-size: 16px; max-width: 60ch; }

/* Design vs construction */
.kind-tabs { display: flex; gap: 0; border: 1.5px solid var(--green-deep); border-radius: var(--radius); overflow: hidden; width: fit-content; max-width: 100%; margin-bottom: 14px; flex-wrap: wrap; }
.kind-tabs button { font: 600 14px var(--font-body); padding: 10px 18px; border: 0; background: var(--surface); color: var(--fg); cursor: pointer; }
.kind-tabs button[aria-pressed="true"] { background: var(--green-deep); color: var(--on-band); }
.kind-note { font-size: 14px; color: var(--muted); max-width: 70ch; margin: 0 0 18px; }
.kind-tag { display: inline-block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 6px; border-radius: 3px; border: 1px solid var(--line); color: var(--muted); }
.kind-tag.c { border-color: var(--green); color: var(--green-ink); }
.dc { width: 100%; border-collapse: collapse; font-size: 14px; margin: 6px 0 24px; }
.dc th, .dc td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dc th { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.dc td:first-child { font-weight: 600; white-space: nowrap; }

/* Services */
.svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.svc > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.svc h3 { font-size: 26px; font-weight: 800; margin: 6px 0 8px; }
.svc p { margin: 0; color: var(--muted); font-size: 15px; }

/* Bad Families series */
.bf-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; margin-bottom: 26px; }
.bf-feature > * { min-width: 0; }
.bf-feature a.thumb { position: relative; display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.bf-feature a.thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.play { position: absolute; inset: 0; display: grid; place-items: center; }
.play span { width: 72px; height: 72px; border-radius: 50%; background: var(--green); display: grid; place-items: center; box-shadow: 0 4px 18px rgba(0,0,0,.35); }
.play span::after { content: ""; margin-left: 6px; border-left: 22px solid var(--band); border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.bf-feature h3 { font-size: 34px; font-weight: 800; margin: 6px 0 10px; }
.bf-feature p { margin: 0 0 16px; color: var(--muted); max-width: 52ch; }
.bf-stats { display: flex; gap: 22px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 13px; }
.bf-stats b { display: block; font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--green-ink); }
.bf-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.bf-list a { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; min-width: 0; }
.bf-list a:hover { border-color: var(--green); }
.bf-list img { width: 112px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; background: #000; display: block; }
.bf-list .st { font-family: var(--font-mono); font-size: 11px; color: var(--green-ink); letter-spacing: .08em; text-transform: uppercase; }
.bf-list .tt { font-size: 13.5px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.bf-list .du { font-family: var(--font-mono); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bf-list a > div { min-width: 0; }

.w-topics { display: flex; flex-wrap: wrap; border: 1.5px solid var(--green-deep); border-radius: var(--radius); overflow: hidden; width: fit-content; max-width: 100%; margin: 4px 0 14px; }
.w-topics button { font: 700 15px var(--font-body); padding: 11px 18px; border: 0; background: var(--surface); color: var(--fg); cursor: pointer; }
.w-topics button span { font: 400 12px var(--font-mono); margin-left: 6px; opacity: .75; }
.w-topics button[aria-pressed="true"] { background: var(--green-deep); color: var(--on-band); }
.w-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin: 6px 0 24px; }
.w-tabs button { font: 600 15px var(--font-body); color: var(--muted); background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 10px 14px; cursor: pointer; }
.w-tabs button span { font: 400 12px var(--font-mono); margin-left: 6px; color: var(--muted); }
.w-tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--green); }
.w-tabs button:hover { color: var(--fg); }
.w-title { font-size: 30px; font-weight: 800; margin: 0 0 8px; }
.rf-groups { display: grid; gap: 26px; }
.rf-groups h3 { font-size: 24px; font-weight: 800; margin: 0 0 4px; }
.rf-groups .rf-sub { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin: 0 0 12px; }

.dual-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 3px; margin-bottom: 16px; }
.rogue-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; margin-bottom: 30px; }
.rogue-intro > * { min-width: 0; }
.rogue-intro .intro { margin: 0; font-size: 18px; color: var(--fg); }
.rogue-intro img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.svc > div { overflow: hidden; }
.svc-img { display: block; width: calc(100% + 40px); max-width: none; margin: -20px -20px 16px; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.coll { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }
.coll > * { min-width: 0; }
.coll-img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.coll p { max-width: 62ch; color: var(--muted); }
.coll-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.coll-list li { padding-left: 16px; border-left: 3px solid var(--green); }
@media (max-width: 820px) { .rogue-intro, .coll { grid-template-columns: 1fr; } }
.band.has-video { position: relative; overflow: hidden; isolation: isolate; }
.band-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band-tint { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,12,8,.88) 0%, rgba(10,12,8,.72) 45%, rgba(10,12,8,.45) 100%); }
.band.has-video .dual { background: rgba(10,12,8,.6); backdrop-filter: blur(3px); }
@media (max-width: 820px) { .band-tint { background: rgba(10,12,8,.78); } }
@media (prefers-reduced-motion: reduce) { .band-video { display: none; } .band.has-video { background: var(--band) url("img/hero-poster-seasons-640.jpg") center / cover; } }

.story { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 36px; align-items: center; }
.story > * { min-width: 0; }
.story .intro { margin-bottom: 14px; }
.story-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .06em; margin: 0; }
.story-video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); display: block; }
@media (max-width: 820px) { .story { grid-template-columns: 1fr; } }
.story-alt { margin-top: 44px; grid-template-columns: 1.2fr 0.8fr; }
.story-h3 { font-size: 36px; font-weight: 800; margin: 0 0 10px; text-transform: uppercase; }
@media (max-width: 820px) { .story-alt { grid-template-columns: 1fr; } .story-alt > div { order: -1; } }
.shorts { margin-top: 44px; display: grid; grid-template-columns: repeat(3, auto); gap: 20px; align-items: center; justify-content: start; }
.shorts-text { grid-column: 1 / -1; max-width: 70ch; }
.shorts > * { min-width: 0; }
.short { margin: 0; width: 220px; }
.short video { width: 100%; height: auto; aspect-ratio: 9 / 16; background: #000; border-radius: 10px; display: block; }
.short figcaption { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 8px; text-align: center; }
@media (max-width: 1000px) { .shorts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .shorts-text { grid-column: 1 / -1; } .short { width: 100%; } }
.season-toggle { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 16px; z-index: 2; display: flex; border: 1px solid rgba(238,243,228,.35); border-radius: 999px; overflow: hidden; background: rgba(10,12,8,.55); }
.season-toggle button { font: 600 12px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border: 0; background: transparent; color: var(--on-band); cursor: pointer; opacity: .75; }
.season-toggle button[aria-pressed="true"] { background: var(--green); color: var(--band); opacity: 1; }
@media (max-width: 560px) { .shorts { grid-template-columns: 1fr 1fr; } }

.bf-list .wspr { display: block; width: 112px; aspect-ratio: 16 / 9; border-radius: 3px; background-color: #000; background-repeat: no-repeat; }
.story-head { margin-bottom: 26px; }
.story-head h2 { margin-bottom: 0; }
.story-first { margin-top: 0; margin-bottom: 44px; }
.story + .story { margin-top: 44px; }
.story-alt.story-first { margin-top: 0; }
/* Series + system families */.series { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.serie { border-top: 3px solid var(--green); padding-top: 14px; min-width: 0; }
.serie h3 { font-size: 28px; font-weight: 800; margin: 6px 0 8px; }
.serie p { margin: 0; color: var(--muted); font-size: 15px; }
.sysfam { width: 100%; border-collapse: collapse; font-size: 14px; }
.sysfam th, .sysfam td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sysfam th { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.sysfam td:first-child { font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }
.pill { display: inline-block; font-family: var(--font-mono); font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--line); color: var(--fg); white-space: nowrap; }
.scroll-x { overflow-x: auto; }
.site-note { font-family: var(--font-mono); font-size: 12px; color: var(--on-band); opacity: .75; margin-top: 18px; letter-spacing: .04em; }

/* Title block footer */
footer { padding-block: 40px 48px; }
.titleblock { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; border: 2px solid var(--fg); font-family: var(--font-mono); font-size: 12px; }
.titleblock > div { padding: 10px 12px; border-left: 1px solid var(--fg); min-width: 0; }
.titleblock > div:first-child { border-left: 0; }
.titleblock > .tb-note { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--fg); font-size: 13px; }
.tb-note span { color: var(--muted); margin-left: 6px; white-space: nowrap; }
.tb-note span::before { content: "— "; }
.titleblock label { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.titleblock .big { font-family: var(--font-display); font-size: 24px; font-weight: 900; letter-spacing: .04em; }
.titleblock .big b { color: var(--green-ink); }

@media (max-width: 820px) {
  .hero, .about { grid-template-columns: 1fr; }
  .steps, .series, .svc { grid-template-columns: 1fr; }
  .rogue-grid { grid-template-columns: 1fr 1fr; }
  .bf-feature { grid-template-columns: 1fr; }
  .proof { grid-template-columns: 1fr; }
  .proof-num { font-size: 48px; white-space: normal; }
  .fam-stats { grid-template-columns: 1fr; }
  .titleblock { grid-template-columns: 1fr 1fr; }
  .titleblock > div:nth-child(3) { border-left: 0; }
  .titleblock > div:nth-child(n+3) { border-top: 1px solid var(--fg); }
}
@media (max-width: 520px) {
  .rogue-grid { grid-template-columns: 1fr; }
  .dc td:first-child { white-space: normal; }
}
@media (max-width: 460px) {
  .dual-row { grid-template-columns: 1fr; }
  .plus { line-height: .6; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---- multi-page additions ---- */
.nav ul a[aria-current="page"] { color: var(--green-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.sheet-card { display: block; text-decoration: none; color: inherit; }
.sheet-card:hover h3 { color: var(--green-ink); text-decoration: underline; text-underline-offset: 4px; }
.sheet-card .eyebrow { font-family: var(--font-mono); }

/* four service cards */
.svc { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1040px) { .svc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .svc { grid-template-columns: 1fr; } }

/* ================= structure v2 ================= */
.nav ul { gap: 18px; }
.nav ul a[aria-current="page"] { color: var(--green-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
:root { --red: #B8322A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --red: #E8786E; } }
:root[data-theme="dark"] { --red: #E8786E; }

/* line drawings */
.draw { display: block; width: 100%; height: auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.draw .faint { opacity: .45; }
.draw .red { stroke: var(--red); }
.draw.big { color: var(--green); max-width: 340px; justify-self: end; }
.draw.ink { color: var(--green-ink); }

/* sheet title band for inner pages: drafting grid on the band */
.sheet-band { position: relative; background-color: var(--band);
  background-image: linear-gradient(rgba(130,165,48,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(130,165,48,.10) 1px, transparent 1px);
  background-size: 24px 24px; }
.sheet-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; padding-block: 44px 48px; }
.sheet-head > * { min-width: 0; }
.sheet-head h1 { font-size: clamp(44px, 7vw, 80px); font-weight: 900; text-transform: uppercase; color: var(--on-band); margin-top: 6px; }
.sheet-head .lead { font-size: 18px; max-width: 46ch; margin: 16px 0 0; color: var(--on-band); opacity: .9; }
@media (max-width: 820px) { .sheet-head { grid-template-columns: 1fr; } .draw.big { max-width: 220px; justify-self: start; } }

/* home sheet index */
.sheet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 18px; }
.sheet-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 18px; min-width: 0; }
.sheet-card .draw { color: var(--green-ink); height: 92px; margin-bottom: 8px; border-bottom: 1px dashed var(--line); padding-bottom: 10px; }
.sheet-card h3 { font-size: 26px; font-weight: 800; }
.sheet-card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.sheet-card:hover { border-color: var(--green); }
.sheet-card:hover h3 { color: var(--green-ink); }
.step h3 a { text-decoration: none; }
.step h3 a:hover { color: var(--green-ink); text-decoration: underline; text-underline-offset: 4px; }

/* cover-sheet drawing list */
.sheet-index { width: 100%; max-width: 720px; border-collapse: collapse; margin: 6px 0 34px; border-top: 2px solid var(--fg); border-bottom: 2px solid var(--fg); font-size: 15px; }
.sheet-index th { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--fg); font-weight: 500; }
.sheet-index td { padding: 9px 12px; border-bottom: 1px solid var(--line); }
.sheet-index tr:last-child td { border-bottom: 0; }
.sheet-index .sn { font-family: var(--font-mono); font-weight: 600; color: var(--green-ink); white-space: nowrap; width: 90px; }
.sheet-index .st { font-family: var(--font-mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.sheet-index a { text-decoration: none; font-weight: 600; }
.sheet-index a:hover { color: var(--green-ink); text-decoration: underline; text-underline-offset: 4px; }
.sheet-index .here { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-left: 8px; text-transform: uppercase; letter-spacing: .08em; }

/* two-up grids */
.svc.two, .steps.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .svc.two, .steps.two { grid-template-columns: 1fr; } }
.svc .svc-link, .svc .svc-text { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: inherit; }
.svc .svc-link:hover { border-color: var(--green); }

/* family tiers + ski grades */
.tier-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 6px 0 26px; }
.tier-tabs button { text-align: left; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--fg); cursor: pointer; font: inherit; min-width: 0; }
.tier-tabs button b { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 800; text-transform: uppercase; line-height: 1.05; }
.tier-tabs button span { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 6px; }
.tier-tabs button[aria-pressed="true"] { border-color: var(--green-deep); background: var(--green-deep); color: var(--on-band); }
.tier-tabs button[aria-pressed="true"] span { color: var(--on-band); opacity: .8; }
@media (max-width: 720px) { .tier-tabs { grid-template-columns: 1fr; } }
.ski-legend { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 18px 20px; }
.ski-legend ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ski-legend li { min-width: 0; }
.ski-legend li b { display: block; margin: 8px 0 2px; }
.ski-legend li span:not(.ski) { font-size: 14px; color: var(--muted); }
@media (max-width: 820px) { .ski-legend ul { grid-template-columns: 1fr 1fr; } }
.howto-note { margin: 16px 0 0; font-size: 14.5px; color: var(--muted); max-width: 80ch; }
.howto-note b { color: var(--fg); }
.ski { display: inline-block; width: 14px; height: 14px; vertical-align: -1px; margin-right: 6px; position: relative; }
.ski-1 { background: #2E9E44; border-radius: 50%; }
.ski-2 { background: #1F63C6; }
.ski-3 { background: #111410; transform: rotate(45deg) scale(.82); box-shadow: 0 0 0 1.5px var(--ski-edge, transparent); }
.ski-4 { width: 28px; }
.ski-4::before, .ski-4::after { content: ""; position: absolute; top: 0; width: 14px; height: 14px; background: #111410; transform: rotate(45deg) scale(.82); box-shadow: 0 0 0 1.5px var(--ski-edge, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ski-edge: #EDF1E6; } }
:root[data-theme="dark"] { --ski-edge: #EDF1E6; }
.ski-4::before { left: 0; } .ski-4::after { left: 13px; }
.fam .howto { font-family: var(--font-mono); font-size: 11px; color: var(--green-ink); text-decoration: none; }

/* bitch and gripe: redlines */
.redlines { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.redline { position: relative; padding: 22px 22px 20px 26px; border: 2px dashed var(--red); border-radius: 26px 18px 30px 16px / 18px 28px 16px 30px; min-width: 0; }
.redline h3 { font-size: 26px; font-weight: 800; color: var(--red); margin: 0 0 8px; padding-right: 30px; }
.redline p { margin: 0; color: var(--fg); font-size: 15px; }
.delta { position: absolute; top: -14px; right: 16px; width: 34px; height: 30px; display: grid; place-items: end center; padding-bottom: 4px; background: var(--red); color: var(--bg); font: 700 13px var(--font-mono); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.gripe-yours { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.gripe-yours > * { min-width: 0; }
@media (max-width: 820px) { .gripe-yours { grid-template-columns: 1fr; } }

/* tutorials search */
#vqResults { margin-top: 8px; }
.wspr.ans { display: grid; place-items: center; font: 800 28px var(--font-display); color: var(--green); }

/* best family curtain */
.gate { display: flex; gap: 10px; flex-wrap: wrap; max-width: 460px; }
.gate input { flex: 1 1 220px; min-width: 0; padding: 12px 14px; font: inherit; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--fg); }
.gate-msg { min-height: 1.6em; color: var(--red); font-family: var(--font-mono); font-size: 13px; }
.gate-note { font-size: 13px; color: var(--muted); margin-top: 18px; }
#familyBody .ctas { margin-top: 8px; }
