/* Bluff Road Bike Co — shared styles for index.html and about.html
   Palette comes straight off the logo: bison navy, Hoosier gold, Florida crimson.
   The one loud idea on the site is the service rack: manila repair tags hanging off a bar. */

:root {
  --navy: #021328;
  --navy-2: #0a2140;
  --navy-line: rgba(233, 189, 55, .18);
  --gold: #E9BD37;
  --gold-2: #f3cf5e;
  --crimson: #A70D37;
  --concrete: #ECEBE6;     /* garage-floor light section */
  --concrete-2: #E1DFD8;
  --manila: #E9DAB1;       /* repair-tag card stock */
  --manila-edge: #cdb98a;
  --string: #8c7a52;
  --ink: #021328;
  --ink-soft: #3d4a5c;
  --chalk: rgba(245, 240, 228, .78);
  --chalk-dim: rgba(245, 240, 228, .55);

  --display: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  --cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(80px, 11vw, 140px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--concrete);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 300; background: var(--gold); color: var(--navy); padding: 10px 16px; font-family: var(--cond); font-weight: 700; text-decoration: none; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.dark { background: var(--navy); color: var(--chalk); }
.dark h2, .dark h3 { color: #F5F0E4; }

/* ── Type ─────────────────────────────────────── */
h1, h2 { font-family: var(--display); font-weight: 400; line-height: .92; letter-spacing: .01em; text-wrap: balance; }
h2 { font-size: clamp(48px, 7.4vw, 96px); margin-bottom: 28px; }
h3 { font-family: var(--cond); font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: .01em; }
.lede { font-size: clamp(18px, 1.6vw, 20px); max-width: 58ch; color: var(--ink-soft); }
.dark .lede { color: var(--chalk); }
.kicker { font-family: var(--cond); font-weight: 600; font-size: 17px; color: var(--crimson); margin-bottom: 14px; }
.dark .kicker { color: var(--gold); }

/* ── Buttons ──────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--cond); font-weight: 700; font-size: 18px; letter-spacing: .02em;
  padding: 15px 28px; border-radius: 3px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-2); }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: rgba(233,189,55,.12); }
.btn-ink { background: var(--navy); color: #F5F0E4; }
.btn-ink:hover { background: var(--navy-2); }

/* ── Nav ──────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(2, 19, 40, .96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--navy-line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #F5F0E4; }
.brand img { width: 22px; height: auto; }
.brand span { font-family: var(--display); font-size: 25px; letter-spacing: .06em; line-height: 1; padding-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { font-family: var(--cond); font-weight: 600; font-size: 17px; color: var(--chalk); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold); }
.nav-links .btn { padding: 9px 18px; font-size: 16px; color: var(--navy); }
.nav-links .btn:hover { color: var(--navy); }
.menu-btn { display: none; background: none; border: 0; color: #F5F0E4; width: 44px; height: 44px; cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }
.drawer { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .drawer {
    position: fixed; inset: 68px 0 auto 0; z-index: 99;
    background: var(--navy); border-bottom: 2px solid var(--crimson);
    padding: 8px var(--gutter) 24px;
  }
  .drawer.open { display: block; }
  .drawer a { display: block; padding: 14px 0; font-family: var(--cond); font-weight: 600; font-size: 22px; color: #F5F0E4; text-decoration: none; border-bottom: 1px solid var(--navy-line); }
  .drawer a.btn { margin-top: 18px; border: 0; color: var(--navy); }
}

/* ── Hero ─────────────────────────────────────── */
.hero { background: var(--navy); color: var(--chalk); position: relative; overflow: hidden; }
.hero-in {
  display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 40px;
  min-height: min(calc(100svh - 68px), 920px);
  padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px);
}
.hero h1 { font-size: clamp(60px, 8.4vw, 128px); color: #F5F0E4; margin-bottom: 30px; }
.hero h1 .l { display: block; }
.hero h1 .l2 { color: var(--gold); }
.hero .lede { margin-bottom: 36px; max-width: 46ch; color: var(--chalk); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-mark { justify-self: end; width: min(100%, 460px); }
.hero-facts {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0;
  margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--navy-line);
}
.hero-facts div { padding-right: 32px; margin-right: 32px; border-right: 1px solid var(--navy-line); }
.hero-facts div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-facts b { display: block; font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; color: var(--gold); letter-spacing: .02em; }
.hero-facts span { font-family: var(--cond); font-size: 16px; color: var(--chalk-dim); }

/* the one orchestrated moment: headline rises line by line, then the bison arrives */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .l, .hero .lede, .hero-ctas, .hero-facts { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .hero h1 .l2 { animation-delay: .1s; }
  .hero h1 .l3 { animation-delay: .2s; }
  .hero .lede { animation-delay: .32s; }
  .hero-ctas { animation-delay: .42s; }
  .hero-facts { animation-delay: .55s; }
  .hero-mark { animation: arrive 1.2s cubic-bezier(.2,.7,.2,1) .25s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes arrive { from { opacity: 0; transform: translateY(40px) scale(.94); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; min-height: 0; max-height: none; gap: 8px; }
  .hero-mark { order: -1; justify-self: start; width: 150px; margin-bottom: 18px; }
  .hero-facts { grid-template-columns: 1fr; gap: 14px; }
  .hero-facts div { border: 0; margin: 0; padding: 0; display: flex; align-items: baseline; gap: 12px; }
  .hero-facts b { font-size: 28px; min-width: 92px; }
}

/* ── Sections ─────────────────────────────────── */
.section { padding: var(--section) 0; }
.section-head { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: end; margin-bottom: 64px; }
.section-head h2 { margin-bottom: 0; }
.section-head .lede { justify-self: end; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 44px; } .section-head .lede { justify-self: start; } }

/* ── Service rack (signature) ─────────────────── */
.rack {
  position: relative; padding: 28px 28px 40px; margin: 0 calc(var(--gutter) * -0.5);
  /* pegboard */
  background-color: #E4E2DB;
  background-image: radial-gradient(circle at center, rgba(2,19,40,.16) 0 2.6px, transparent 3.2px);
  background-size: 30px 30px; background-position: 15px 15px;
  border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(2,19,40,.06);
}
.tags { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 32px; }
.tag-wrap { position: relative; display: flex; flex-direction: column; padding-top: 44px; transform: rotate(var(--r, 0deg)); transform-origin: 50% 8px; transition: transform .6s cubic-bezier(.3,1.7,.5,1); }
.tag-wrap::before { /* string */
  content: ''; position: absolute; left: 50%; top: 8px; width: 2px; height: 64px;
  background: var(--string); transform: translateX(-50%); z-index: 2;
}
.tag-wrap::after { /* peg */
  content: ''; position: absolute; left: 50%; top: 0; width: 16px; height: 16px; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3a5578, var(--navy) 65%); z-index: 3;
  box-shadow: 0 2px 3px rgba(2,19,40,.35);
}
.tag-wrap:hover { transform: rotate(0deg); }
.tag {
  position: relative; background: var(--manila); color: var(--ink);
  padding: 58px 28px 26px;
  clip-path: polygon(22% 0, 78% 0, 100% 9%, 100% 100%, 0 100%, 0 9%);
  filter: drop-shadow(0 1px 0 var(--manila-edge));
  flex: 1;
}
.tag::before { /* grommet */
  content: ''; position: absolute; left: 50%; top: 16px; width: 20px; height: 20px; transform: translateX(-50%);
  border-radius: 50%; background: #E4E2DB; box-shadow: 0 0 0 5px #d8c79a, inset 0 1px 2px rgba(0,0,0,.25);
}
.tag h3 { font-size: 24px; margin-bottom: 8px; }
.tag p { font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
.tag .price { margin-top: 22px; padding-top: 16px; border-top: 2px dashed rgba(140,122,82,.45); display: flex; align-items: baseline; gap: 10px; }
.tag .price small { font-family: var(--cond); font-size: 15px; color: var(--ink-soft); }
.tag .price strong { font-family: var(--display); font-weight: 400; font-size: 54px; line-height: .9; color: var(--crimson); }
.tag .price em { font-style: normal; font-family: var(--cond); font-weight: 600; font-size: 16px; color: var(--ink); }
.rack-note { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 28px; border-top: 1px solid rgba(2,19,40,.15); }
.rack-note p { color: var(--ink-soft); max-width: 52ch; }
.rack-note strong { color: var(--ink); }

@media (max-width: 980px) { .tags { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .rack { margin: 0 -8px; padding: 18px 14px 28px; }
  .tags { grid-template-columns: 1fr; gap: 18px; }
  .rack-note { grid-template-columns: 1fr; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { .tag-wrap { transition: none; } }

/* ── How it works ─────────────────────────────── */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; position: relative; counter-reset: s; }
.steps li:not(:last-child)::after { content: ''; position: absolute; top: 27px; left: 68px; right: -28px; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 16px); opacity: .6; }
.steps li { position: relative; counter-increment: s; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy); border: 2px solid var(--gold); color: var(--gold);
  font-family: var(--display); font-size: 30px; padding-top: 3px; margin-bottom: 24px; position: relative;
}
.steps h3 { margin-bottom: 8px; }
.steps p { font-size: 16px; color: var(--chalk-dim); }
.steps a { color: var(--gold); text-underline-offset: 3px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .steps li:not(:last-child)::after { top: 64px; bottom: -26px; left: 27px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--gold) 0 10px, transparent 10px 16px); }
  .steps li { padding-left: 80px; min-height: 56px; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ── Owner ────────────────────────────────────── */
.owner { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.owner .photo { position: relative; isolation: isolate; margin-right: 14px; }
.owner .photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 3px; }
.owner .photo::after { content: ''; position: absolute; inset: 14px -14px -14px 14px; border: 2px solid var(--gold); border-radius: 3px; z-index: -1; }
.owner figcaption { margin-top: 30px; font-family: var(--cond); font-size: 15px; color: var(--ink-soft); }
.owner .prose p { margin-bottom: 18px; max-width: 62ch; color: var(--ink-soft); }
.owner .prose p:first-of-type { font-size: 21px; line-height: 1.5; color: var(--ink); }
.sig { font-family: var(--cond); font-weight: 700; font-size: 18px; color: var(--crimson); }
.pull {
  margin-top: 48px; padding: 32px 0 0; border-top: 2px solid var(--navy);
}
.pull blockquote { font-family: var(--cond); font-weight: 600; font-size: clamp(22px, 2.3vw, 28px); line-height: 1.3; color: var(--ink); max-width: 40ch; }
.pull cite { display: block; margin-top: 14px; font-style: normal; font-family: var(--cond); font-size: 16px; color: var(--ink-soft); }
.pull cite::before { content: ''; display: inline-block; width: 26px; height: 2px; background: var(--crimson); vertical-align: middle; margin-right: 10px; }
@media (max-width: 860px) { .owner { grid-template-columns: 1fr; } .owner figure { max-width: 420px; } }

/* ── Reviews ──────────────────────────────────── */
.stars { display: inline-flex; gap: 4px; color: var(--gold); }
.stars svg { width: 20px; height: 20px; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.review { padding: 8px 36px 8px 0; }
.review + .review { padding-left: 36px; border-left: 1px solid var(--navy-line); }
.review p { font-size: 19px; line-height: 1.55; color: #F5F0E4; margin: 18px 0 20px; }
.review cite { font-style: normal; font-family: var(--cond); font-weight: 600; color: var(--gold); }
.reviews-foot { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.reviews-foot a { font-family: var(--cond); font-weight: 600; font-size: 18px; color: var(--gold); text-underline-offset: 4px; }
@media (max-width: 860px) {
  .reviews { grid-template-columns: 1fr; }
  .review, .review + .review { padding: 28px 0; border-left: 0; border-top: 1px solid var(--navy-line); }
}

/* ── Area + FAQ ───────────────────────────────── */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 100px); }
.towns { list-style: none; margin: 8px 0 24px; }
.towns li { font-family: var(--display); font-size: clamp(34px, 3.6vw, 46px); line-height: 1.08; color: var(--ink); }
.towns li:first-child { color: var(--crimson); }
.area-note { color: var(--ink-soft); max-width: 44ch; }
.faq details { border-top: 1px solid rgba(2,19,40,.18); }
.faq details:last-child { border-bottom: 1px solid rgba(2,19,40,.18); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-family: var(--cond); font-weight: 700; font-size: 21px; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--display); font-size: 34px; line-height: 1; color: var(--crimson); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--ink-soft); max-width: 62ch; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .faq details p { padding-right: 0; } }

/* ── Contact ──────────────────────────────────── */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.phone { display: inline-block; white-space: nowrap; font-family: var(--display); font-size: clamp(52px, 6.6vw, 92px); line-height: .95; color: var(--gold); text-decoration: none; letter-spacing: .01em; margin: 6px 0 10px; }
.phone:hover { color: var(--gold-2); }
.phone-note { font-family: var(--cond); font-size: 17px; color: var(--chalk-dim); margin-bottom: 32px; }
.contact-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.contact-list { list-style: none; border-top: 1px solid var(--navy-line); }
.contact-list li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--navy-line); }
.contact-list dt, .contact-list .k { font-family: var(--cond); font-weight: 600; color: var(--chalk-dim); }
.contact-list a { color: #F5F0E4; text-underline-offset: 3px; text-decoration-color: rgba(233,189,55,.5); }
.contact-list a:hover { color: var(--gold); }

.form { background: #F5F0E4; color: var(--ink); padding: clamp(28px, 4vw, 44px); border-radius: 4px; border-top: 6px solid var(--crimson); }
.dark .form h3, .form h3 { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1; margin-bottom: 6px; color: var(--ink); }
.form > p { color: var(--ink-soft); margin-bottom: 26px; font-size: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--cond); font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1.5px solid rgba(2,19,40,.22); border-radius: 3px; -webkit-appearance: none;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(233,189,55,.55); }
.field textarea { min-height: 130px; resize: vertical; }
.form .btn { width: 100%; }
.form-status { margin-top: 14px; font-family: var(--cond); font-weight: 600; font-size: 17px; min-height: 1.4em; }
.form-status.ok { color: #1d6b3a; }
.form-status.err { color: var(--crimson); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } .contact-list li { grid-template-columns: 90px 1fr; } }

/* ── Footer ───────────────────────────────────── */
.footer { background: #010c1a; color: var(--chalk-dim); padding: 56px 0 20px; border-top: 3px solid var(--crimson); }
.footer-in { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--navy-line); }
.footer .brand span { font-size: 28px; }
.footer p { font-size: 15px; margin-top: 10px; max-width: 40ch; }
.footer nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer nav a { font-family: var(--cond); font-weight: 600; font-size: 16px; color: var(--chalk); text-decoration: none; }
.footer nav a:hover { color: var(--gold); }
.footer .herdco-footer { margin-top: 28px !important; }

/* ── About page ───────────────────────────────── */
.page-hero { background: var(--navy); color: var(--chalk); padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 8vw, 100px); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(64px, 11vw, 160px); color: #F5F0E4; max-width: 10ch; }
.page-hero .lede { margin-top: 24px; color: var(--chalk); }
.page-hero-mark { position: absolute; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); bottom: -40px; width: min(36vw, 400px); opacity: .9; }
@media (max-width: 760px) { .page-hero-mark { width: 120px; bottom: auto; top: 28px; opacity: .35; } }
@media (prefers-reduced-motion: no-preference) { .page-hero h1, .page-hero .lede { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; } .page-hero .lede { animation-delay: .12s; } .page-hero-mark { animation: arrive 1.2s cubic-bezier(.2,.7,.2,1) .2s both; } }

.story { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 6vw, 88px); }
.story .prose p { font-size: 19px; margin-bottom: 20px; max-width: 60ch; color: var(--ink-soft); }
.story .prose p:first-child { font-size: 22px; line-height: 1.5; color: var(--ink); }
.story .prose em { font-style: italic; }
.story .prose .bluff-line { font-family: var(--display); font-size: clamp(40px, 5vw, 64px); line-height: .95; color: var(--crimson); margin: 36px 0; max-width: 14ch; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }

.garage { width: 100%; border-collapse: collapse; }
.garage th, .garage td { text-align: left; padding: 22px 16px 22px 0; border-bottom: 1px solid var(--navy-line); vertical-align: baseline; }
.garage thead th { font-family: var(--cond); font-weight: 600; font-size: 15px; color: var(--chalk-dim); padding-top: 0; padding-bottom: 12px; }
.garage tbody th { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3.6vw, 46px); line-height: 1; color: #F5F0E4; }
.garage td { font-family: var(--cond); font-size: 18px; color: var(--chalk); }
.garage td.disc { color: var(--gold); font-weight: 600; }
.garage .retired { display: inline-block; margin-left: 10px; font-size: 14px; font-weight: 700; color: #fff; background: var(--crimson); padding: 3px 9px; border-radius: 2px; vertical-align: middle; }
@media (max-width: 680px) {
  .garage thead { display: none; }
  .garage tr { display: grid; grid-template-columns: 1fr auto; padding: 18px 0; border-bottom: 1px solid var(--navy-line); }
  .garage th, .garage td { border: 0; padding: 2px 0; }
  .garage tbody th { grid-column: 1 / -1; }
}

.identity { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.identity .logo-plate { background: var(--navy); border-radius: 4px; padding: 10%; position: sticky; top: 100px; }
.identity dl dt { font-family: var(--display); font-size: 40px; line-height: 1; margin-top: 34px; }
.identity dl dt:first-child { margin-top: 0; }
.identity dl dd { margin-top: 10px; color: var(--ink-soft); max-width: 60ch; }
.identity dl dd + dd { margin-top: 12px; }
@media (max-width: 860px) { .identity { grid-template-columns: 1fr; } .identity .logo-plate { position: static; max-width: 340px; } }

/* athletes — flip cards (data from the Sheet) */
.athletes-hint { font-family: var(--cond); color: var(--chalk-dim); margin: -12px 0 32px; }
.athletes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.flip-card { perspective: 1000px; aspect-ratio: 3 / 4; cursor: pointer; }
.flip-card-inner { position: relative; width: 100%; height: 100%; transition: transform .6s cubic-bezier(.3,.8,.3,1); transform-style: preserve-3d; }
.flip-card.flipped .flip-card-inner { transform: rotateY(180deg); }
@media (prefers-reduced-motion: reduce) { .flip-card-inner { transition: none; } }
.flip-card-front, .flip-card-back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 4px; overflow: hidden; }
.flip-card-front { background: var(--navy-2); }
.flip-card-front img { width: 100%; height: 100%; object-fit: cover; }
.athlete-placeholder { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--display); font-size: 88px; color: var(--gold); background: var(--navy-2); }
.athlete-name-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 18px 16px; font-family: var(--display); font-size: 32px; line-height: 1; color: #F5F0E4; background: linear-gradient(transparent, rgba(2,19,40,.92)); }
.flip-hint { position: absolute; top: 12px; right: 12px; font-family: var(--cond); font-weight: 600; font-size: 13px; color: var(--navy); background: var(--gold); padding: 3px 9px; border-radius: 2px; }
.flip-card-back { transform: rotateY(180deg); background: var(--manila); color: var(--ink); padding: 24px 22px; display: flex; flex-direction: column; gap: 12px; }
.back-name { font-family: var(--display); font-size: 34px; line-height: 1; color: var(--crimson); }
.back-stat-label { font-family: var(--cond); font-size: 14px; color: var(--ink-soft); }
.back-stat-value { font-family: var(--cond); font-weight: 700; font-size: 18px; line-height: 1.2; }
.back-quote { margin-top: auto; font-size: 15px; font-style: italic; color: var(--ink-soft); }

/* races */
.races-grid { border-top: 2px solid var(--navy); }
.race-card { display: grid; grid-template-columns: 160px 1fr auto; gap: 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid rgba(2,19,40,.16); }
.race-style { font-family: var(--cond); font-weight: 600; color: var(--crimson); }
.race-name { font-family: var(--display); font-size: clamp(30px, 3.4vw, 42px); line-height: 1; }
.race-reg a { font-family: var(--cond); font-weight: 600; color: var(--ink); text-underline-offset: 3px; word-break: break-all; }
.race-iykyk { font-family: var(--cond); font-weight: 700; font-size: 15px; color: var(--gold); background: var(--navy); padding: 4px 10px; border-radius: 2px; white-space: nowrap; }
@media (max-width: 680px) { .race-card { grid-template-columns: 1fr; gap: 6px; } }

/* stats */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); }
.stat h3 { font-family: var(--display); font-weight: 400; font-size: 40px; color: #F5F0E4; margin-bottom: 24px; }
.chart-container { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 28px; align-items: center; }
.chart-wrap { position: relative; }
.chart-logo-overlay { position: absolute; top: 50%; left: 50%; width: 38%; transform: translate(-50%, -50%); pointer-events: none; border-radius: 50%; }
.chart-labels { display: grid; gap: 2px; }
.chart-label-item { display: grid; grid-template-columns: 12px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--navy-line); }
.chart-label-dot { width: 12px; height: 12px; border-radius: 2px; }
.chart-label-name { font-family: var(--cond); font-weight: 600; font-size: 17px; color: #F5F0E4; }
.chart-label-pct { font-family: var(--display); font-size: 24px; color: var(--gold); }
@media (max-width: 1000px) { .stats { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .athletes-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } .athlete-name-overlay { font-size: 24px; } .chart-container { grid-template-columns: 1fr; } .chart-wrap { max-width: 240px; } }

.loading { font-family: var(--cond); font-size: 17px; color: var(--chalk-dim); padding: 24px 0; }
.loading-light { color: var(--ink-soft); }

.cta-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
.cta-band h2 { margin: 0; max-width: 14ch; }
