/* ------------------------------------------------------------------
   Tokens
------------------------------------------------------------------- */
:root {
  --bg: #fbf8f4;
  --bg-alt: #f3eee7;
  --surface: #ffffff;
  --text: #16181d;
  --muted: #596070;
  --line: #e4ded5;
  --accent: #c8401b;
  --accent-ink: #ffffff;
  --accent-2: #0d7a70;
  --glow-1: rgba(200, 64, 27, .16);
  --glow-2: rgba(13, 122, 112, .14);
  --todo: rgba(255, 196, 0, .35);
  --shadow: 0 1px 2px rgba(20, 20, 30, .05), 0 12px 32px rgba(20, 20, 30, .07);
  --shadow-lift: 0 2px 4px rgba(20, 20, 30, .06), 0 18px 44px rgba(20, 20, 30, .12);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0f15; --bg-alt: #10161f; --surface: #161d28; --text: #eef1f6; --muted: #9ba5b6;
    --line: #252f40; --accent: #ff6b3d; --accent-ink: #15100d; --accent-2: #3ccfbf;
    --glow-1: rgba(255, 107, 61, .22); --glow-2: rgba(60, 207, 191, .16);
    --todo: rgba(255, 196, 0, .22);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.4);
    --shadow-lift: 0 2px 4px rgba(0,0,0,.5), 0 18px 44px rgba(0,0,0,.55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0f15; --bg-alt: #10161f; --surface: #161d28; --text: #eef1f6; --muted: #9ba5b6;
  --line: #252f40; --accent: #ff6b3d; --accent-ink: #15100d; --accent-2: #3ccfbf;
  --glow-1: rgba(255, 107, 61, .22); --glow-2: rgba(60, 207, 191, .16);
  --todo: rgba(255, 196, 0, .22);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.4);
  --shadow-lift: 0 2px 4px rgba(0,0,0,.5), 0 18px 44px rgba(0,0,0,.55);
  color-scheme: dark;
}

/* ------------------------------------------------------------------
   Base
------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  counter-reset: sec;
}
::selection { background: var(--accent); color: var(--accent-ink); }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 600; }
h1 { font-size: clamp(3.4rem, 9vw, 6.4rem); font-weight: 700; letter-spacing: -.035em; line-height: .98; }
h2 { font-size: clamp(2rem, 4.4vw, 3rem); max-width: 22ch; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
strong { font-weight: 650; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(64px, 10vw, 128px) 0; position: relative; }
.section.alt { background: var(--bg-alt); }
.section.alt::before, .section.alt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}
.section.alt::before { top: 0; }
.section.alt::after { bottom: 0; }
.center { text-align: center; }
.center h2 { margin-inline: auto; }
.center .cta { justify-content: center; }
.sub { color: var(--muted); font-size: 1.12rem; max-width: 62ch; }
.center .sub { margin-inline: auto; }

/* Numbered section labels: 01 — ABOUT */
.eyebrow { font: 700 .76rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 1.1rem; }
.section .eyebrow { counter-increment: sec; display: flex; align-items: center; gap: 12px; }
.section .eyebrow::before { content: counter(sec, decimal-leading-zero); color: var(--muted); font-weight: 600; }
.section .eyebrow::after { content: ""; width: 44px; height: 1px; background: var(--accent); opacity: .6; }
.center .eyebrow { justify-content: center; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

/* Scroll progress */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); z-index: 70; }

/* ------------------------------------------------------------------
   Nav
------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 16px;
  padding: 10px 20px; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line);
}
.brand { font: 700 1.05rem var(--serif); text-decoration: none; background: var(--accent); color: var(--accent-ink); width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; letter-spacing: -.02em; }
.nav nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav nav a { text-decoration: none; padding: 8px 13px; border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color .15s, background .15s; }
.nav nav a:hover { color: var(--text); background: var(--bg-alt); }
.nav nav a[aria-current="true"] { color: var(--accent-ink); background: var(--accent); }
.icon-btn { flex: none; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center; transition: border-color .15s, transform .15s; }
.icon-btn:hover { border-color: var(--accent); transform: rotate(-12deg); }

/* ------------------------------------------------------------------
   Hero
------------------------------------------------------------------- */
.hero {
  padding: clamp(48px, 9vw, 112px) 0 0; overflow: hidden; position: relative;
  background:
    radial-gradient(55% 50% at 88% 6%, var(--glow-1), transparent 70%),
    radial-gradient(45% 45% at 0% 92%, var(--glow-2), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
@media (min-width: 920px) { .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.1fr); } }
.hero h1 .accent { color: var(--accent); font-style: italic; font-weight: 600; }
.lede { font-size: clamp(1.15rem, 2.2vw, 1.4rem); color: var(--muted); max-width: 32ch; margin-top: 1.4rem; line-height: 1.55; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 14px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 600; font-size: .98rem; background: var(--surface); transition: transform .18s, border-color .18s, box-shadow .18s; }
.btn:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.arc-card { position: relative; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 26px 24px 16px; box-shadow: var(--shadow-lift); }
.arc-card svg { width: 100%; height: auto; }
.arc-badge { position: absolute; top: 24px; right: 28px; text-align: right; z-index: 1; }
.arc-badge b { display: block; font: 700 clamp(1.7rem, 3.6vw, 2.4rem)/1 var(--serif); letter-spacing: -.02em; }
.arc-badge span { font: 700 .68rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.arc-card figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .85rem; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 6px; }
#arc-svg .ground { stroke: var(--line); stroke-width: 3; stroke-linecap: round; }
#arc-svg .ticks line { stroke: var(--line); stroke-width: 2; }
#arc-svg .ghost { fill: none; stroke: var(--line); stroke-width: 2.5; stroke-dasharray: 3 9; stroke-linecap: round; }
#arc-svg .trail { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-dasharray: 2 9; stroke-linecap: round; }
#arc-svg #ball { fill: var(--accent); filter: drop-shadow(0 4px 8px color-mix(in srgb, var(--accent) 50%, transparent)); }
#arc-svg .landing line { stroke: var(--accent-2); stroke-width: 3; stroke-linecap: round; opacity: 0; transition: opacity .3s; }
#arc-svg .landing text { fill: var(--text); font: 700 15px var(--sans); opacity: 0; transition: opacity .3s; }
#arc-svg .landing.on line, #arc-svg .landing.on text { opacity: 1; }
#arc-svg .axis { fill: var(--muted); font: 12px var(--sans); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 20px; padding: 26px 20px 22px; text-align: center; transition: transform .2s, box-shadow .2s; }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat b { display: block; font: 700 clamp(2.4rem, 5vw, 3.4rem)/1 var(--serif); letter-spacing: -.03em; color: var(--accent); margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.stat.feature { background: var(--accent); border-color: var(--accent); box-shadow: var(--shadow-lift); }
.stat.feature b, .stat.feature span { color: var(--accent-ink); }

/* ------------------------------------------------------------------
   Layout helpers and cards
------------------------------------------------------------------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; align-items: start; }
@media (min-width: 860px) { .two-col { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 72px; } }
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 48px; }
@media (min-width: 800px) { .cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); position: relative; transition: transform .2s, box-shadow .2s; }
.card::before { content: ""; position: absolute; left: 28px; top: 0; width: 36px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card h3 { margin-top: .4rem; }
.card p:last-child { margin-bottom: 0; }
.tag { display: inline-block; font: 700 .68rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); border: 1px solid currentColor; border-radius: 999px; padding: 6px 11px; margin: .4rem 0 14px; }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.plain li { padding-left: 22px; position: relative; }
.plain li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 22px 0 0; }
.chips li { border: 1px solid var(--line); background: var(--surface); padding: 8px 15px; border-radius: 999px; font-size: .9rem; font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,.04); }

.photo { margin: 0; }
.photo-ph { aspect-ratio: 4 / 5; max-height: 460px; width: 100%; border-radius: 26px; border: 2px dashed var(--line); background: linear-gradient(160deg, var(--bg-alt), var(--surface)); display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); }
.photo figcaption { color: var(--muted); font-size: .85rem; margin-top: 10px; }

/* ------------------------------------------------------------------
   State champion callout
------------------------------------------------------------------- */
.champ {
  display: flex; align-items: center; gap: clamp(18px, 4vw, 36px); margin-top: 48px;
  padding: clamp(26px, 4.5vw, 44px); border-radius: 28px; border: 1.5px solid var(--accent);
  background:
    radial-gradient(60% 120% at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-lift); position: relative; overflow: hidden;
}
.champ-medal { font-size: clamp(3rem, 8vw, 5rem); line-height: 1; flex: none; filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--accent) 45%, transparent)); }
.champ-kicker { font: 700 .78rem/1.35 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 .5rem; }
.champ-num { font: 700 clamp(3.4rem, 11vw, 6.4rem)/.95 var(--serif); margin: 0; letter-spacing: -.035em; }
.champ-note { margin: .7rem 0 0; color: var(--muted); }
@media (max-width: 560px) { .champ { flex-direction: column; align-items: flex-start; } }

.subhead { margin: 64px 0 0; font-size: 1.5rem; }
.chips.sports { margin-top: 16px; }
.chips.sports li { border-color: color-mix(in srgb, var(--accent-2) 55%, var(--line)); font-weight: 600; }

/* ------------------------------------------------------------------
   Timeline: date column, line, entry
------------------------------------------------------------------- */
.timeline { list-style: none; margin: 40px 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; top: 14px; bottom: 14px; left: 6px; width: 2px; background: linear-gradient(var(--accent), var(--accent-2)); opacity: .45; }
.timeline li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 0 16px 34px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 24px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg-alt); border: 3px solid var(--accent); }
.timeline time { font: 700 .74rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.timeline h3 { margin: 0 0 .25em; }
.timeline p { margin: 0; color: var(--muted); max-width: 64ch; }
.timeline li.is-champ::before { background: var(--accent); width: 20px; height: 20px; left: -3px; top: 22px; border-color: var(--bg-alt); box-shadow: 0 0 0 3px var(--accent); }
.timeline li.is-champ > div { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line)); border-radius: 18px; padding: 18px 22px; margin-top: 6px; }
.timeline li.is-champ h3 { color: var(--accent); }
.timeline li.is-champ p { color: var(--text); }
@media (min-width: 760px) {
  .timeline::before { left: 206px; }
  .timeline li { grid-template-columns: 170px minmax(0, 1fr); gap: 0 52px; padding: 16px 0; }
  .timeline li::before { left: 200px; top: 24px; }
  .timeline li.is-champ::before { left: 197px; }
  .timeline time { text-align: right; padding-top: 4px; }
}

/* ------------------------------------------------------------------
   Contact + footer
------------------------------------------------------------------- */
#contact .wrap {
  background:
    radial-gradient(70% 120% at 50% 0%, var(--glow-1), transparent 70%),
    var(--surface);
  border: 1px solid var(--line); border-radius: 32px; padding: clamp(40px, 7vw, 84px) clamp(20px, 5vw, 64px); box-shadow: var(--shadow);
}
.foot { border-top: 1px solid var(--line); padding: 30px 0 96px; color: var(--muted); font-size: .9rem; }
.foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------------------
   Draft helper (remove before showcasing)
------------------------------------------------------------------- */
.todo { border-radius: 3px; }
body.draft:not(.hide-todo) .todo { background: var(--todo); box-shadow: 0 0 0 2px var(--todo); }
.draft-pill { position: fixed; left: 12px; bottom: 12px; z-index: 60; display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .82rem; box-shadow: var(--shadow); max-width: calc(100% - 24px); }
body:not(.draft) .draft-pill { display: none; }
.draft-pill mark { color: inherit; }

/* ------------------------------------------------------------------
   Motion
------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .stat:hover, .icon-btn:hover { transform: none; }
  .progress { display: none; }
}
