/* Layout: full-width split. The name panel is the club crest: turmeric "home kit" by day, black "away kit" by night.
   Football is the visual language (scoreboard, shot map, match reports); the words stay plain. Square corners, hairlines. */
:root {
  --brand: #f2c230;          /* turmeric: constant across kits */
  --paper: #ffffff;
  --ink: #121212;
  --muted: #5d5c57;
  --line: #e4e2db;
  --panel: #f2c230;
  --panel-ink: #121212;
  --ok: #157347;
  --well: #f6f5f1;
  --pitch: #2f6b3f;
  --pitch-line: rgba(255, 255, 255, .78);
  --board: #0d0f0e;
  --led: #f2c230;
  --led-dim: #3a3317;
  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Instrument Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --dot: "Doto", "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #131312; --ink: #ecebe5; --muted: #a4a39c; --line: #2c2b28; --panel: #1b1a17; --panel-ink: #f2c230;
    --ok: #4cc38a; --well: #1b1b19; --pitch: #234f2f; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #131312; --ink: #ecebe5; --muted: #a4a39c; --line: #2c2b28; --panel: #1b1a17; --panel-ink: #f2c230;
  --ok: #4cc38a; --well: #1b1b19; --pitch: #234f2f; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 3px; text-underline-offset: 4px; }
a:hover { text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, label:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.05; text-wrap: balance; }
p { margin: 0 0 1em; }

.shell { display: grid; grid-template-columns: minmax(340px, 36vw) minmax(0, 1fr); min-height: 100vh; }

/* ---------- panel ---------- */
.panel { background: var(--panel); color: var(--panel-ink); position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 20px; padding-inline: clamp(24px, 3.2vw, 52px); padding-block: 30px; }
.panel a { text-decoration-color: currentColor; text-decoration-thickness: 1.5px; }
.panel .name { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(56px, 6vw, 118px); line-height: 0.86; letter-spacing: -0.01em; }
.panel .name a { text-decoration: none; }
.panel .role { font-size: 18.5px; line-height: 1.45; max-width: 30ch; font-weight: 500; margin: 0; }
.panel .status { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; }
.panel .status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.panel nav { display: grid; gap: 0; font-family: var(--display); font-weight: 700; font-size: 23px; text-transform: uppercase; letter-spacing: 0.01em; }
.panel nav a { text-decoration: none; width: fit-content; }
.panel nav a:hover, .panel nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.panel .contact { margin-top: auto; display: grid; gap: 4px; font-size: 15px; }
.panel .contact .row { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.kit { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.kit button { font: 600 14px var(--body); color: var(--panel-ink); background: none; border: 1.5px solid currentColor; padding: 6px 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.kit button:hover { background: var(--panel-ink); color: var(--panel); }
.kit .swatch { width: 14px; height: 14px; border: 1.5px solid currentColor; background: linear-gradient(90deg, #f2c230 50%, #121212 50%); }
.kit .season { font-family: var(--mono); font-size: 12.5px; }

/* ---------- content ---------- */
.content { min-width: 0; padding-inline: clamp(20px, 4.2vw, 76px); padding-block: 36px 64px; }
.sec { padding-block: 40px 44px; border-bottom: 1px solid var(--line); }
.sec:last-of-type { border-bottom: 0; }
.sec > h2, .page-title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(40px, 4.6vw, 64px); letter-spacing: -0.005em; margin-bottom: 22px; }
.sec-intro { max-width: 62ch; color: var(--muted); margin-top: -8px; }
.lead { font-size: 21px; line-height: 1.5; max-width: 62ch; }
.muted { color: var(--muted); }
.label { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); margin: 0; }
.facts div { padding: 12px 16px 14px 0; border-right: 1px solid var(--line); margin-right: 16px; }
.facts div:last-child { border-right: 0; }
.facts dt { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 16px; line-height: 1.4; }

.briefs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 28px; }
.brief { border-top: 2px solid var(--ink); padding-top: 12px; }
.brief .quote { font-family: var(--display); font-weight: 700; font-size: 27px; line-height: 1.05; text-transform: uppercase; margin: 6px 0 10px; }
.brief p { font-size: 16px; color: var(--muted); margin: 0; }
.more { margin-top: 22px; font-weight: 600; }

/* ---------- matchday scoreboard ---------- */
.board { background: var(--board); color: var(--led); padding: clamp(16px, 2.4vw, 28px); border: 6px solid #232624; box-shadow: inset 0 0 0 1px #000; }
.board-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 24px; }
.cell { min-width: 0; }
.cell .k { font: 500 11.5px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #9a8f63; margin-bottom: 6px; }
.cell .v { font-family: var(--dot); font-weight: 900; font-size: clamp(26px, 2.6vw, 40px); line-height: 1; text-transform: uppercase; text-shadow: 0 0 10px rgba(242, 194, 48, .45); overflow-wrap: anywhere; }
.cell .v.sm { font-size: clamp(20px, 1.9vw, 28px); }
.cell .s { font: 13px/1.4 var(--body); color: #c9c2a4; margin-top: 6px; }
.cell.wide { grid-column: span 2; }
.cell.full { grid-column: 1 / -1; }
.board hr { grid-column: 1 / -1; border: 0; border-top: 1px dashed var(--led-dim); margin: 2px 0; width: 100%; }
.board .ticker { grid-column: 1 / -1; font: 13.5px/1.5 var(--mono); color: #c9c2a4; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.board .ticker b { color: var(--led); font-weight: 500; }
.board-foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; margin-top: 28px; }
.live-card { min-width: 0; border-top: 2px solid var(--ink); padding-top: 12px; }
.live-card h3 { font-family: var(--body); font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.live-card h3 .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex: none; }
.live-card.ok h3 .dot { background: var(--ok); }
.rows { display: grid; font-size: 15px; }
.rows .r { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.rows .r span:last-child { font-family: var(--mono); font-size: 13.5px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.live-card .meta { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.skeleton { color: var(--muted); font-size: 15px; }

/* ---------- pitch graphics (shot map + take a shot) ---------- */
.pitch-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.pitch { width: 100%; height: auto; display: block; background: var(--pitch); }
.pitch .ln { fill: none; stroke: var(--pitch-line); stroke-width: .35; }
.pitch .net { fill: rgba(255, 255, 255, .15); stroke: var(--pitch-line); stroke-width: .35; }
.pitch .stripe { fill: rgba(255, 255, 255, .035); }
.shot { cursor: pointer; }
.shot circle { stroke: #fff; stroke-width: .45; transition: r .15s; }
.shot.goal circle { fill: var(--brand); stroke: #121212; }
.shot.miss circle { fill: rgba(0, 0, 0, .25); }
.shot text { font: 600 2.1px var(--body); fill: #fff; paint-order: stroke; stroke: rgba(0, 0, 0, .55); stroke-width: .5px; pointer-events: none; }
.shot:hover circle, .shot:focus circle, .shot.on circle { stroke-width: .9; }
.shot:focus { outline: none; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; margin-right: 6px; border: 1.5px solid var(--ink); }
.legend .g { background: var(--brand); }
.legend .m { background: transparent; }
.shot-card { border-top: 2px solid var(--ink); padding-top: 12px; min-height: 170px; }
.shot-card h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 30px; margin: 4px 0 8px; }
.shot-card p { margin: 0 0 10px; }

.demo-out { border-top: 2px solid var(--ink); padding-top: 12px; }
.demo-out .xg { font-family: var(--display); font-weight: 900; font-size: 84px; line-height: .9; font-variant-numeric: tabular-nums; }
.demo-out .xg small { font-size: 26px; font-weight: 700; margin-left: 6px; }
.demo-opts { display: flex; gap: 16px; flex-wrap: wrap; margin: 14px 0; font-size: 15px; }
.demo-opts label { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.demo-opts input { accent-color: #121212; width: 16px; height: 16px; }
.ball { fill: #fff; stroke: #121212; stroke-width: .35; }
.aim { stroke: var(--brand); stroke-width: .5; stroke-dasharray: 1 .8; }
.cone { fill: rgba(242, 194, 48, .22); }

/* ---------- work ---------- */
.role-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; padding-block: 18px; border-top: 1px solid var(--line); }
.role-row:first-of-type { border-top: 0; padding-top: 0; }
.role-row .when { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 4px; font-variant-numeric: tabular-nums; }
.role-row h3 { font-size: 21px; font-weight: 700; font-family: var(--body); line-height: 1.25; }
.role-row .org { color: var(--muted); margin-bottom: 8px; }
.role-row ul { margin: 0; padding-left: 18px; max-width: 78ch; }
.role-row li { margin: 5px 0; }

/* ---------- projects ---------- */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 40px; margin-top: 44px; }
.project { min-width: 0; display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 24px; }
.project .shotimg { aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--ink); background: var(--well); margin-bottom: 8px; }
.project .shotimg img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.project h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 32px; }
.project p { margin: 0; }
.project .links { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 600; font-size: 15px; margin-top: 4px; }
details.report summary, details.decisions summary { cursor: pointer; font-weight: 600; font-size: 15px; }
details.decisions ul { margin: 8px 0 0; padding-left: 18px; font-size: 15.5px; color: var(--muted); }
details.decisions li { margin: 6px 0; }
details.decisions li strong { color: var(--ink); }
.score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 12px 0 10px; padding: 10px 12px; background: var(--well); border-top: 2px solid var(--ink); }
.score .team { font-size: 14px; line-height: 1.25; }
.score .team:last-child { text-align: right; }
.score .nums { font-family: var(--display); font-weight: 900; font-size: 30px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.moments { list-style: none; margin: 0; padding: 0; font-size: 15px; color: var(--muted); }
.moments li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.moments time { font-family: var(--mono); font-size: 12.5px; color: var(--ink); padding-top: 2px; }
.motm { margin-top: 10px; font-size: 15px; }
.motm b { font-family: var(--display); text-transform: uppercase; font-size: 17px; letter-spacing: .02em; margin-right: 6px; }

/* ---------- results ---------- */
.table-scroll { overflow-x: auto; }
table.results { width: 100%; border-collapse: collapse; }
table.results th { text-align: left; font: 500 12.5px/1.3 var(--mono); color: var(--muted); padding: 0 16px 10px 0; border-bottom: 2px solid var(--ink); }
table.results td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
table.results td.n { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- principles ---------- */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; }
.principles div { border-top: 1px solid var(--line); padding-top: 12px; }
.principles h3 { font-family: var(--body); font-size: 18px; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.principles p { margin: 0; color: var(--muted); }

/* ---------- ideas: transfer window ---------- */
.window { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
@media (min-width: 1700px) { .window { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.col { min-width: 0; }
.col-head { border-top: 4px solid var(--ink); padding-top: 10px; margin-bottom: 12px; }
.col-head h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 30px; }
.col-head p { font-size: 13.5px; color: var(--muted); margin: 2px 0 0; }
.col.signed .col-head { border-color: var(--brand); }
.idea { border: 1px solid var(--line); padding: 12px 14px; margin-bottom: 12px; background: var(--paper); }
.idea h3 { font-family: var(--body); font-size: 16.5px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.idea p { font-size: 14.5px; color: var(--muted); margin: 0 0 8px; }
.idea .meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font: 12px var(--mono); color: var(--muted); }
.idea .meta .src { color: var(--ink); }
.col.released .idea { background: var(--well); }
.col.released .idea h3 { color: var(--muted); }

/* ---------- ask ---------- */
.ask-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 40px; align-items: start; }
.ask-sugg { display: grid; gap: 8px; margin-top: 16px; justify-items: start; }
.ask-sugg button { font: 600 15px var(--body); color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.console { border: 1px solid var(--ink); }
.ask-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--ink); font-size: 14px; font-weight: 600; }
.ask-head .mode { font: 400 12.5px var(--mono); color: var(--muted); }
.ask-log { height: 340px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; background: var(--well); }
.msg { max-width: 92%; font-size: 15.5px; line-height: 1.55; white-space: pre-wrap; }
.msg.me { align-self: flex-end; background: var(--brand); color: #121212; padding: 7px 12px; font-weight: 500; }
.msg.bot { align-self: flex-start; }
.msg .src, .msg .trace { display: block; font: 12px/1.45 var(--mono); color: var(--muted); white-space: normal; }
.msg .trace { margin-bottom: 4px; }
.msg .src { margin-top: 6px; }
.ask-form { display: flex; border-top: 1px solid var(--ink); }
.ask-form input { flex: 1; min-width: 0; padding: 12px 14px; border: 0; background: var(--paper); color: var(--ink); font: 16px var(--body); }
.ask-form input:focus-visible { outline-offset: -2px; }
.ask-form button { font: 700 15px var(--body); padding: 0 20px; border: 0; border-left: 1px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; }
.ask-tiers { margin-top: 18px; font-size: 14px; color: var(--muted); display: grid; gap: 8px; justify-items: start; }
.ask-tiers button { font: 600 14px var(--body); background: none; color: var(--ink); border: 1px solid var(--ink); padding: 7px 12px; cursor: pointer; }
.ask-tiers button:disabled { opacity: 0.45; cursor: default; }
.progress { height: 3px; background: var(--line); width: 100%; display: none; }
.progress i { display: block; height: 100%; width: 0; background: var(--brand); transition: width 0.3s; }

.foot { padding-top: 28px; font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- narrower screens ---------- */
@media (max-width: 1240px) {
  .briefs { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(2) { border-right: 0; }
  .ask-grid, .pitch-wrap { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .panel { position: static; height: auto; gap: 18px; }
  .panel .name { font-size: clamp(56px, 18vw, 112px); }
  .panel nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 22px; }
  .panel .contact { margin-top: 0; }
  .projects, .principles, .board-foot { grid-template-columns: minmax(0, 1fr); }
  .role-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (max-width: 560px) {
  .facts, .window, .board-grid { grid-template-columns: minmax(0, 1fr); }
  .cell.wide { grid-column: auto; }
  .facts div { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); }
  table.results td.n { font-size: 26px; }
  .demo-out .xg { font-size: 64px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
