:root {
  --ink: #111318;
  --ink-2: #232831;
  --muted: #68707c;
  --paper: #f5f7f9;
  --white: #ffffff;
  --line: #dfe4e8;
  --signal: #ff4b2b;
  --signal-dark: #da2e12;
  --electric: #2864ff;
  --lime: #c7ff32;
  --display: "Barlow Condensed", Impact, sans-serif;
  --body: Inter, system-ui, sans-serif;
  --radius: 6px;
  --shadow: 0 18px 50px rgba(17, 19, 24, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 12px 16px; color: #fff; background: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: sticky; z-index: 50; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 70px; padding: 10px 18px; background: rgba(245,247,249,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(15px); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: inherit; text-decoration: none; }
.brand-icon { display: grid; place-items: center; width: 42px; height: 42px; color: #fff; background: var(--signal); font: 900 1.12rem/1 var(--display); transform: skew(-7deg); }
.brand > span:last-child { display: grid; }
.brand strong { font: 900 1.22rem/.9 var(--display); letter-spacing: .04em; }
.brand small { margin-top: 5px; color: var(--muted); font-size: .53rem; font-weight: 800; letter-spacing: .13em; }
.site-header nav { display: none; align-items: center; gap: 26px; }
.site-header nav a { display: inline-grid; place-items: center; min-height: 44px; color: var(--ink); font-size: .73rem; font-weight: 800; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.site-header nav .nav-cta { padding: 0 18px; color: #fff; background: var(--ink); }

.hero { position: relative; display: grid; gap: 38px; min-height: calc(100svh - 70px); padding: 64px 18px 20px; overflow: hidden; background: var(--white); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent 49.85%, rgba(17,19,24,.035) 50%, transparent 50.15%), linear-gradient(rgba(17,19,24,.035) 1px, transparent 1px); background-size: 180px 100%, 100% 72px; }
.hero-copy, .hero-score, .hero-strip { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--muted); font-size: .67rem; font-weight: 800; letter-spacing: .14em; }
.eyebrow span { width: 8px; height: 8px; background: var(--lime); border: 2px solid var(--ink); border-radius: 50%; box-shadow: 0 0 0 4px rgba(199,255,50,.3); }
.hero h1 { margin: 0; font: 900 clamp(4.4rem, 20vw, 10rem)/.78 var(--display); letter-spacing: -.045em; text-transform: uppercase; }
.hero h1 em { color: var(--signal); font-style: normal; }
.hero-lede { max-width: 530px; margin: 26px 0 0; color: var(--ink-2); font-size: 1rem; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button { display: inline-grid; place-items: center; min-width: 150px; min-height: 50px; padding: 0 20px; border: 1px solid var(--ink); color: var(--ink); font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.button-primary { color: #fff; background: var(--signal); border-color: var(--signal); }
.button-secondary { background: transparent; }
.hero-score { align-self: center; padding: 24px 0 0; border-top: 3px solid var(--ink); }
.score-label { color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .14em; }
.hero-score strong { display: block; margin-top: -5px; font: 900 clamp(7rem, 35vw, 13rem)/.85 var(--display); letter-spacing: -.06em; }
.score-meta { display: block; color: var(--muted); font-size: .68rem; font-weight: 700; }
.hero-score svg { width: 100%; height: auto; margin-top: 20px; overflow: visible; }
.pace-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.pace-fill { fill: rgba(40,100,255,.08); }
.pace-line { fill: none; stroke: var(--electric); stroke-width: 4; vector-effect: non-scaling-stroke; }
.hero-strip { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; align-self: end; background: var(--line); border: 1px solid var(--line); }
.hero-strip span { min-height: 58px; padding: 12px; background: var(--paper); color: var(--muted); font-size: .58rem; line-height: 1.5; }
.hero-strip b { display: block; color: var(--ink); font-size: .62rem; letter-spacing: .06em; }

.section { padding: 76px 18px; }
.section-heading { display: grid; gap: 14px; max-width: 1240px; margin: 0 auto 30px; }
.section-heading h2 { margin: 3px 0 0; font: 900 clamp(2.8rem, 13vw, 5.8rem)/.82 var(--display); letter-spacing: -.035em; text-transform: uppercase; }
.section-heading > p { max-width: 410px; margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.kicker { margin: 0; color: var(--signal); font-size: .63rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.stat-grid, .dashboard-grid, .kennel-layout, .special-grid, .filters, .history-table-wrap, .history-footer { max-width: 1240px; margin-inline: auto; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
.stat-card { position: relative; min-height: 164px; padding: 18px; background: var(--white); }
.stat-card-primary { color: #fff; background: var(--electric); }
.stat-index { position: absolute; top: 14px; right: 14px; color: currentColor; opacity: .35; font: 700 .7rem/1 var(--display); }
.stat-card strong { display: block; font: 900 3.5rem/.9 var(--display); letter-spacing: -.04em; }
.stat-card h3 { margin: 36px 0 3px; font: 800 1rem/1 var(--display); text-transform: uppercase; }
.stat-card p { margin: 0; color: var(--muted); font-size: .65rem; }
.stat-card-primary p { color: rgba(255,255,255,.72); }
.dashboard-grid { display: grid; gap: 12px; margin-top: 12px; }
.panel { padding: 20px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.panel-heading h3, .travel-card h3 { margin: 4px 0 0; font: 800 1.5rem/1 var(--display); text-transform: uppercase; }
.legend { display: none; color: var(--muted); font-size: .6rem; }
.legend i { display: inline-block; width: 9px; height: 9px; margin: 0 4px 0 9px; background: var(--electric); }
.legend i:last-of-type { background: var(--signal); }
.panel-number { color: var(--signal); font: 900 2rem/1 var(--display); }
.year-chart { display: grid; gap: 18px; }
.year-row { display: grid; grid-template-columns: 42px minmax(0,1fr) 50px; align-items: center; gap: 10px; }
.year-label { font: 800 .82rem/1 var(--display); }
.bar-track { position: relative; height: 22px; background: #edf0f3; overflow: hidden; }
.bar-attended, .bar-hared { position: absolute; inset: 0 auto 0 0; }
.bar-attended { background: var(--electric); }
.bar-hared { background: var(--signal); opacity: .95; }
.year-count { text-align: right; font: 700 .68rem/1 var(--display); }
.highlight-list { display: grid; margin: 0; }
.highlight-list div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.highlight-list dt { color: var(--muted); font-size: .7rem; }
.highlight-list dd { margin: 0; font: 800 .82rem/1.2 var(--body); text-align: right; }

.kennels-section { color: #fff; background: var(--ink); }
.section-heading.light > p { color: #a5acb5; }
.kennel-layout { display: grid; gap: 12px; }
.leaderboard, .travel-card { background: var(--ink-2); border: 1px solid #3a414c; }
.leaderboard { padding: 14px; }
.leaderboard-head, .leaderboard li { display: grid; grid-template-columns: minmax(0,1fr) 52px 44px; align-items: center; gap: 8px; }
.leaderboard-head { padding: 2px 8px 12px; color: #7e8794; font-size: .58rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.leaderboard-head span:not(:first-child) { text-align: right; }
.leaderboard ol { margin: 0; padding: 0; list-style: none; counter-reset: kennel; }
.leaderboard li { min-height: 58px; padding: 8px; border-top: 1px solid #3a414c; counter-increment: kennel; }
.leaderboard li.is-hidden { display: none; }
.kennel-name { display: grid; grid-template-columns: 28px minmax(0,1fr); align-items: center; min-width: 0; font-size: .72rem; font-weight: 700; }
.kennel-name::before { content: counter(kennel, decimal-leading-zero); color: var(--signal); font: 800 .67rem/1 var(--display); }
.kennel-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kennel-count { text-align: right; font: 900 1.15rem/1 var(--display); }
.kennel-hared { color: var(--lime); }
.text-button { min-height: 44px; margin-top: 8px; padding: 0 8px; color: var(--lime); background: transparent; border: 0; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.travel-stack { display: grid; gap: 12px; }
.travel-card { padding: 20px; }
.compact-bars { display: grid; gap: 15px; margin-top: 24px; }
.compact-bar-head { display: flex; justify-content: space-between; gap: 12px; color: #d8dde3; font-size: .69rem; font-weight: 700; }
.compact-bar-track { height: 8px; margin-top: 7px; background: #3a414c; }
.compact-bar-fill { height: 100%; background: var(--lime); }
.region-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.region-pill { display: inline-flex; align-items: baseline; gap: 7px; min-height: 44px; padding: 10px 12px; border: 1px solid #49515e; font-size: .67rem; }
.region-pill strong { color: var(--lime); font-size: .84rem; }

.special-section { background: #eef1f4; }
.special-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.special-card { position: relative; min-height: 158px; padding: 18px; overflow: hidden; background: var(--white); border-top: 4px solid var(--electric); }
.special-card:nth-child(3n+2) { border-color: var(--signal); }
.special-card:nth-child(3n+3) { border-color: #86bd00; }
.special-number { font: 900 3.8rem/.9 var(--display); letter-spacing: -.04em; }
.special-card h3 { max-width: 145px; margin: 26px 0 2px; font: 800 1rem/1 var(--display); text-transform: uppercase; }
.special-card p { margin: 0; color: var(--muted); font-size: .64rem; }
.special-slash { position: absolute; right: 10px; bottom: -21px; color: #eef1f4; font: 900 6.5rem/1 var(--display); transform: rotate(-16deg); }

.history-section { background: var(--white); }
.filters { display: grid; gap: 9px; margin-bottom: 20px; padding: 12px; background: var(--paper); border: 1px solid var(--line); }
.search-field { position: relative; }
.search-field svg { position: absolute; top: 50%; left: 14px; width: 18px; fill: none; stroke: var(--muted); stroke-width: 2; transform: translateY(-50%); }
.filters input, .filters select { width: 100%; min-height: 48px; padding: 0 13px; color: var(--ink); background: var(--white); border: 1px solid #cbd2d9; border-radius: 0; font-size: 1rem; }
.filters input { padding-left: 42px; }
.filter-reset { min-height: 48px; padding: 0 18px; color: #fff; background: var(--ink); border: 0; font-weight: 800; text-transform: uppercase; cursor: pointer; }
.history-table { display: none; width: 100%; border-collapse: collapse; }
.history-table th { padding: 13px 10px; color: var(--muted); border-bottom: 2px solid var(--ink); font-size: .6rem; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
.history-table td { padding: 15px 10px; border-bottom: 1px solid var(--line); font-size: .7rem; vertical-align: top; }
.history-table tbody tr:hover { background: #f4f7fb; }
.trail-title { display: block; font-weight: 800; }
.trail-meta { display: block; margin-top: 4px; color: var(--muted); font-size: .62rem; }
.role-chip { display: inline-grid; place-items: center; min-height: 30px; padding: 0 9px; background: #e9edf1; color: var(--muted); font-size: .58rem; font-weight: 800; text-transform: uppercase; }
.role-chip.is-hare { color: #fff; background: var(--signal); }
.mobile-history { display: grid; gap: 8px; }
.history-card { padding: 16px; background: var(--paper); border-left: 4px solid var(--electric); }
.history-card-top { display: flex; justify-content: space-between; gap: 12px; }
.history-card-number { color: var(--electric); font: 800 .72rem/1 var(--display); letter-spacing: .05em; }
.history-card-date { color: var(--muted); font-size: .66rem; }
.history-card h3 { margin: 14px 0 4px; font: 800 1.18rem/1 var(--display); text-transform: uppercase; }
.kennel-line { margin: 0; color: var(--signal); font-size: .68rem; font-weight: 800; }
.history-card-details { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 14px; color: var(--muted); font-size: .64rem; }
.history-footer { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 20px; }
.history-footer p { margin: 0; color: var(--muted); font-size: .7rem; }
.button-dark { color: #fff; background: var(--ink); }
.button-dark[hidden] { display: none; }

.methodology { display: grid; gap: 22px; color: #fff; background: var(--electric); }
.methodology .kicker { color: var(--lime); }
.methodology h2 { margin: 0; font: 900 clamp(3.2rem, 14vw, 7rem)/.82 var(--display); letter-spacing: -.035em; text-transform: uppercase; }
.methodology h2 em { color: var(--lime); font-style: normal; }
.method-notes { display: grid; gap: 16px; align-self: end; }
.method-notes p { margin: 0; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.4); font-size: .78rem; line-height: 1.55; }

footer { display: grid; gap: 18px; padding: 36px 18px max(36px, env(safe-area-inset-bottom)); color: #929aa6; background: var(--ink); font-size: .68rem; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand span { display: grid; place-items: center; width: 34px; height: 34px; color: #fff; background: var(--signal); font: 900 .9rem/1 var(--display); }
.footer-brand strong { color: #fff; font-size: .68rem; letter-spacing: .08em; }
footer p { margin: 0; }
footer a { display: inline-grid; align-items: center; min-height: 44px; color: #fff; font-weight: 800; text-decoration: none; }

@media (width >= 560px) {
  .site-header { padding-inline: 26px; }
  .site-header nav { display: flex; }
  .hero, .section { padding-inline: 32px; }
  .hero-strip { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .stat-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .special-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .filters { grid-template-columns: minmax(230px,2fr) repeat(3,minmax(120px,1fr)) auto; }
  .history-footer { flex-direction: row; justify-content: space-between; }
  footer { grid-template-columns: 1fr auto; align-items: center; }
  footer p { grid-column: 1 / -1; }
}

@media (width >= 820px) {
  .site-header { padding-inline: 4vw; }
  .hero { grid-template-columns: minmax(0,1fr) minmax(340px,.75fr); align-items: center; gap: 6vw; min-height: calc(100svh - 70px); padding: 70px 5vw 26px; }
  .hero-strip { grid-column: 1 / -1; }
  .section { padding: 98px 5vw; }
  .section-heading { grid-template-columns: 1fr auto; align-items: end; margin-bottom: 42px; }
  .stat-card { min-height: 202px; padding: 24px; }
  .stat-card strong { font-size: 5rem; }
  .dashboard-grid { grid-template-columns: minmax(0,1.45fr) minmax(290px,.75fr); }
  .panel { padding: 28px; }
  .legend { display: inline; }
  .kennel-layout { grid-template-columns: minmax(0,1.45fr) minmax(300px,.75fr); }
  .special-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .history-table { display: table; }
  .mobile-history { display: none; }
  .methodology { grid-template-columns: minmax(0,1.25fr) minmax(300px,.65fr); }
  footer { grid-template-columns: 1fr auto auto; padding-inline: 5vw; }
  footer p { grid-column: auto; }
}

@media (width >= 1180px) {
  .hero h1 { font-size: 9.5rem; }
  .hero-score strong { font-size: 13rem; }
  .special-grid { grid-template-columns: repeat(7, minmax(0,1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
