/* Home Plate Athletics - redesign (2026-11-14): charcoal / silver / white, red for emphasis.
   The original navy design is git tag design-v1.
   Rule for every animation here: its END state is the element's normal style, so with motion
   off (prefers-reduced-motion, block at the bottom) everything simply shows, finished. */

@font-face { font-family: 'Oswald'; font-weight: 600; font-display: swap; src: url('/fonts/oswald-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Oswald'; font-weight: 700; font-display: swap; src: url('/fonts/oswald-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); }

:root {
  --ink-0: #0b0c0e;      /* page */
  --ink-1: #121418;      /* raised */
  --ink-2: #1b1e23;      /* surfaces */
  --line: rgba(255, 255, 255, 0.1);
  --steel: #8c95a1;      /* muted text */
  --silver: #c9ced6;
  --white: #f5f6f8;
  --red: #d7102f;
  --red-hot: #ff2a48;
  --ok: #5fd08a;
  --err: #ff6b7d;
  --display: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ink-0); }
body {
  margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
  color: var(--silver); background: var(--ink-0); overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; color: var(--white); }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 3px; }
.kicker {
  margin: 0 0 14px; font-family: var(--display); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--steel);
}
.kicker::before { content: ''; display: inline-block; width: 26px; height: 2px; margin-right: 12px; vertical-align: middle; background: var(--red); }

/* ---------- Header: slim, transparent over the hero ---------- */
.site-header { position: absolute; inset: 0 0 auto; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name {
  font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--white);
}
.header-cta {
  font-family: var(--display); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.18em;
  text-transform: uppercase; text-decoration: none; color: var(--white); white-space: nowrap;
  padding: 9px 16px; border: 1px solid rgba(255,255,255,0.28); border-radius: 2px;
  transition: border-color .2s, background-color .2s;
}
.header-cta:hover { border-color: var(--red); background: rgba(215,16,47,0.14); }
.page-text .site-header { position: static; border-bottom: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100vh; min-height: 100svh; padding: 104px 0 104px;
  background:
    radial-gradient(1100px 700px at 78% 30%, #1f2228 0%, rgba(31,34,40,0) 70%),
    linear-gradient(180deg, #101215 0%, var(--ink-0) 100%);
  /* the hero's bottom edge is a shallow home-plate point */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 64px), 50% 100%, 0 calc(100% - 64px));
}
.hero-geo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.hero-light {
  position: absolute; z-index: -1; width: 900px; height: 900px; right: -180px; top: -120px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(215,16,47,0.16), rgba(215,16,47,0) 70%);
}
.hero-grid { display: grid; gap: 56px; align-items: center; }
.hero-logo { width: 100%; max-width: 230px; height: auto; margin: 0 0 18px -4px; }
.eyebrow {
  margin: 0 0 18px; font-family: var(--display); font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--steel);
}
.headline { font-size: clamp(3rem, 6.4vw, 6.4rem); line-height: 0.92; text-transform: uppercase; letter-spacing: -0.005em; }
.hl { display: block; white-space: nowrap; }
.hl-1 {
  background: linear-gradient(180deg, #ffffff 0%, #d9dde3 45%, #8f98a4 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hl-2 { color: var(--red); text-shadow: 0 0 40px rgba(215,16,47,0.35); }
.brand-line {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 22px 0 0;
  font-family: var(--display); font-weight: 600; font-size: 1.35rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--white);
}
.brand-line .sports { font-size: 0.85rem; letter-spacing: 0.28em; color: var(--steel); }
.hero-intro { max-width: 32em; margin: 14px 0 0; color: #a9b0ba; }

/* Signup, inside the hero */
.signup-card { margin-top: 30px; max-width: 520px; }
.signup-card h2 {
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--white);
}
.signup-intro { margin: 6px 0 14px; font-size: 0.95rem; color: var(--steel); }
.signup-form {
  display: flex; gap: 0; padding: 6px; border-radius: 4px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 20px 50px rgba(0,0,0,0.35);
  transition: border-color .2s;
}
.signup-form:focus-within { border-color: rgba(215,16,47,0.7); outline: 2px solid var(--red-hot); outline-offset: 2px; }
.signup-form input[type="email"] {
  flex: 1; min-width: 0; padding: 14px 14px; font: inherit; color: var(--white);
  background: transparent; border: 0; outline: none;
}
.signup-form input::placeholder { color: var(--steel); }
.signup-form button {
  flex: none; padding: 0 24px; min-height: 50px; border: 0; border-radius: 2px; cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: #fff; background: linear-gradient(180deg, #e8183a, #b70b26);
  box-shadow: 0 8px 24px rgba(215,16,47,0.35); transition: filter .2s, transform .2s;
}
.signup-form button:hover { filter: brightness(1.12); }
.signup-form button:active { transform: translateY(1px); }
.signup-form button:disabled { filter: grayscale(0.6); cursor: progress; }
.signup-form input:focus-visible { outline: none; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.signup-status { margin: 12px 0 0; font-weight: 600; font-size: 0.95rem; }
.signup-status:empty { display: none; }
.signup-status.is-ok { color: var(--ok); }
.signup-status.is-error { color: var(--err); }
.consent { margin: 10px 0 0; font-size: 0.8rem; color: var(--steel); }
.consent a { color: var(--steel); }

/* ---------- The home-plate centrepiece ---------- */
.plate-stage { position: relative; width: 100%; max-width: 560px; justify-self: center; }
.plate-box { position: relative; --mx: 50%; --my: 32%; }
.plate-svg { width: 100%; height: auto; overflow: visible; }
.plate-shadow { fill: #000; opacity: 0.55; transform: translate(0, 18px); filter: blur(18px); }
.plate-face { stroke: rgba(0,0,0,0.6); stroke-width: 2; }
.plate-inset { stroke: rgba(255,255,255,0.12); stroke-width: 1.5; }
.plate-split { stroke: url(#bevel); stroke-width: 3; opacity: 0.8; }
.plate-half { opacity: 0; transition: opacity .5s var(--ease); }
.plate-stage[data-active="train"] .plate-half--train,
.plate-stage[data-active="play"] .plate-half--play { opacity: 1; }
.plate-stage[data-hover="train"]:not([data-active="train"]) .plate-half--train,
.plate-stage[data-hover="play"]:not([data-active="play"]) .plate-half--play { opacity: 0.75; }
.plate-draw { stroke: #fff; stroke-width: 2; stroke-dasharray: 100; stroke-dashoffset: 0; opacity: 0; }
/* cursor light, clipped to the plate face (fine pointers only; plate.js sets --mx/--my) */
.plate-box::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255,255,255,0.10), rgba(255,255,255,0) 70%);
  clip-path: polygon(14% 10%, 86% 10%, 86% 50.2%, 50% 88.1%, 14% 50.2%);
  mix-blend-mode: screen; transition: background-position .2s;
}

/* The two tab buttons sit over the two halves of the plate. */
.plate-tabs {
  position: absolute; left: 14%; right: 14%; top: 10%; bottom: 11.9%;
  display: grid; grid-template-columns: 1fr 1fr;
}
.plate-tab {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 33% 6px 0; border: 0; background: none; cursor: pointer; color: var(--steel);
  font: inherit; transition: color .3s var(--ease);
}
.plate-tab .pt-kicker {
  font-family: var(--display); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.3em;
  text-transform: uppercase; margin-bottom: 4px;
}
.plate-tab .pt-label {
  font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 5.2vw, 4.2rem); line-height: 1;
  letter-spacing: 0.04em; text-transform: uppercase; color: #7f8793; /* >= 3.4:1 on every tab background */
  transition: color .3s var(--ease), text-shadow .3s var(--ease), transform .3s var(--ease);
}
.plate-tab:hover .pt-label { color: #c3c8cf; }
.plate-tab[aria-selected="true"] { color: #ffc2cb; }
.plate-tab[aria-selected="true"] .pt-label { color: var(--white); text-shadow: 0 0 28px rgba(255,42,72,0.65); transform: translateY(-2px); }
.plate-tab:focus-visible { outline-offset: -6px; }

/* Panels: stacked in one grid cell, so switching never changes the height. */
.mode-panels { display: grid; margin-top: 8px; }
.mode-panel { grid-area: 1 / 1; padding: 6px 4% 0; transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s; }
.mode-panel:focus-visible { outline-offset: 6px; }
.js .mode-panel:not([data-active]) { opacity: 0; transform: translateY(8px); visibility: hidden; }
html:not(.js) .mode-panel { grid-area: auto; }           /* no JavaScript: both show, stacked */
html:not(.js) .mode-panel + .mode-panel { margin-top: 18px; }
.mp-title { font-size: clamp(1.5rem, 2.6vw, 2rem); text-transform: uppercase; letter-spacing: 0.02em; }
.mp-label { color: var(--red); }
.mp-text { margin: 10px 0 0; color: #a9b0ba; }
.mp-points { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 14px 0 0; padding: 0; }
.mp-points li {
  position: relative; padding-left: 18px; font-family: var(--display); font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--white);
}
.mp-points li::before {
  content: ''; position: absolute; left: 0; top: 0.45em; width: 8px; height: 8px;
  background: var(--red); clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%);
}

/* ---------- Statement ---------- */
.statement { position: relative; overflow: hidden; isolation: isolate; padding: 72px 0 96px; margin-top: -40px; }
.statement-giant {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; z-index: -1;
  white-space: nowrap; font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(5rem, 17vw, 15rem); line-height: 1; letter-spacing: 0.01em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(201,206,214,0.16);
}
.statement-inner { position: relative; max-width: 900px; }
.statement-text { font-size: clamp(1.9rem, 4.4vw, 3.4rem); line-height: 1.1; text-transform: uppercase; }
.statement-note { margin: 22px 0 0; max-width: 36em; color: var(--steel); }

/* ---------- Location ---------- */
.location {
  position: relative; overflow: hidden; padding: 110px 0 120px;
  background: linear-gradient(180deg, var(--ink-0), #111317);
  border-top: 1px solid var(--line);
}
.location-geo { position: absolute; width: 640px; height: 640px; right: -160px; top: -60px; color: rgba(255,255,255,0.06); pointer-events: none; }
.location-inner { position: relative; }
.location-title { font-size: clamp(2.4rem, 7vw, 5.4rem); line-height: 0.95; text-transform: uppercase; max-width: 11em; }
.location-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 34px; }
.address { font-style: normal; color: #a9b0ba; line-height: 1.7; }
.address strong { color: var(--white); font-weight: 600; }
.button-outline {
  display: inline-flex; align-items: center; min-height: 50px; padding: 0 26px; text-decoration: none;
  font-family: var(--display); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white);
  border: 1px solid rgba(255,255,255,0.35); border-radius: 2px; transition: border-color .2s, background-color .2s;
}
.button-outline:hover { border-color: var(--red); background: rgba(215,16,47,0.14); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); color: var(--steel); font-size: 0.9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; padding-bottom: 24px; }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--steel); }

/* ---------- Privacy and other text pages ---------- */
.prose-page { padding: 64px 0 80px; }
.prose { max-width: 760px; }
.section-title { font-size: clamp(2.2rem, 6vw, 3.4rem); text-transform: uppercase; }
.prose h2 { font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 40px; }
.prose p { margin: 12px 0 0; color: #b4bac3; }
.prose a { color: var(--white); }
.effective { color: var(--steel) !important; margin-top: 14px !important; }
.pending { background: #4a3d00; color: #ffe27a; padding: 0 4px; border-radius: 3px; }
.notfound { padding: 120px 24px; text-align: center; }
.notfound a { color: var(--white); }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes plate-in { from { opacity: 0; transform: translateY(26px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 100; opacity: 0.9; } 70% { opacity: 0.9; } to { stroke-dashoffset: 0; opacity: 0; } }
.enter { animation: rise .9s var(--ease) both; }
.e1 { animation-delay: .05s; } .e2 { animation-delay: .18s; } .e3 { animation-delay: .3s; }
.e4 { animation-delay: .48s; } .e5 { animation-delay: .62s; }
.plate-stage.enter { animation-name: plate-in; animation-duration: 1.1s; animation-delay: .35s; }
.plate-draw { animation: draw 1.6s .55s var(--ease) both; }
.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-hidden { opacity: 0; transform: translateY(28px); }

/* ---------- Layout by width ---------- */
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 40px; }
  .signup-card { margin-top: 24px; }
  .hero-logo { max-width: 280px; }
}
@media (max-width: 999px) {
  .hero { padding-top: 104px; }
  /* narrower screens: the giant outline sits behind the paragraph, so keep it fainter */
  .statement-giant { -webkit-text-stroke-color: rgba(201,206,214,0.08); top: 34%; }
  .plate-stage { max-width: 520px; }
}
/* Phones: the plate becomes a wide two-part selector; the SVG and cursor light step aside. */
@media (max-width: 599px) {
  .wrap { padding: 0 18px; }
  .header-inner { min-height: 64px; }
  .brand-name { font-size: 0.8rem; letter-spacing: 0.16em; }
  .header-cta { padding: 7px 11px; font-size: 0.75rem; letter-spacing: 0.12em; }
  .hero { padding: 88px 0 64px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), 50% 100%, 0 calc(100% - 36px)); }
  .hero-logo { max-width: 190px; margin-bottom: 16px; }
  .eyebrow { font-size: 0.74rem; letter-spacing: 0.2em; }
  .brand-line { font-size: 1.1rem; }
  .signup-form { flex-direction: column; gap: 6px; }
  .signup-form button { min-height: 52px; }
  .plate-svg, .plate-box::after { display: none; }
  .plate-tabs { position: static; aspect-ratio: auto; gap: 4px; }
  .plate-tab {
    padding: 18px 8px 34px; background: linear-gradient(180deg, #23262c, #121418);
    border: 1px solid rgba(255,255,255,0.14);
  }
  .plate-tab--train { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 62%); }
  .plate-tab--play { clip-path: polygon(0 0, 100% 0, 100% 62%, 0 100%); }
  .plate-tab[aria-selected="true"] { background: linear-gradient(180deg, #5a0d19, #22070c); border-color: rgba(255,42,72,0.6); }
  .plate-tab .pt-label { font-size: 2.3rem; }
  .mode-panels { margin-top: 18px; }
  .mode-panel { padding: 0; }
  .statement { padding: 64px 0 72px; margin-top: -20px; }
  .signup-card h2 { letter-spacing: 0.12em; }
  .headline { font-size: clamp(2.6rem, 13vw, 4rem); }
  .location { padding: 84px 0 92px; }
  .location-geo { width: 420px; height: 420px; right: -200px; }
}

@media (max-width: 379px) {
  .brand-name { font-size: 0.7rem; letter-spacing: 0.1em; }
  .plate-tab .pt-kicker { font-size: 0.6rem; letter-spacing: 0.14em; white-space: nowrap; }
}

/* ---------- Motion off: everything shows, finished ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .plate-draw { opacity: 0; }
}
@media print {
  .site-header, .hero-geo, .hero-light, .statement-giant, .location-geo, .hero-logo, .plate-svg, .plate-tabs { display: none; }
  * { color: #000 !important; -webkit-text-fill-color: #000; text-shadow: none !important; }
  body, .hero, .location { background: #fff !important; color: #000; }
  .hero { clip-path: none; min-height: 0; }
  h1, h2, h3, .hl-1 { color: #000 !important; -webkit-text-fill-color: #000; }
  * { animation: none !important; }
  .reveal.is-hidden { opacity: 1; transform: none; }
  .js .mode-panel:not([data-active]) { opacity: 1; visibility: visible; transform: none; }
}
