/* All Things Jeffrey
   Design language: aircraft maintenance bay. Machined steel, stencil type,
   data plates and discrepancy logs. One accent per hub, drawn from its subject. */

/* Fonts are hosted with the site (SIL Open Font License), so nothing depends on Google Fonts. */
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/big-shoulders-display-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); }

@property --accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #e8e2d0;
}

:root {
  --bg: #161b20;
  --bg-2: #1d242b;
  --plate-1: #29323a;
  --plate-2: #1f272e;
  --ink: #ece6d4;
  --ink-2: #a8b0b7;
  --ink-3: #7d868e;
  --line: rgba(236, 230, 212, 0.14);
  --line-strong: rgba(236, 230, 212, 0.28);
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --text: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rail: 280px;
  --rail-h: 0px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

body[data-hub="home"]      { --accent: #e8e2d0; }
body[data-hub="sports"]    { --accent: #5ec2e8; }
body[data-hub="corvettes"] { --accent: #f2c300; }
body[data-hub="ai"]        { --accent: #b4c63e; }
body[data-hub="creative"]  { --accent: #ff6a2b; }
body[data-hub="social"]    { --accent: #3fc6a8; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 700px at 22% 8%, rgba(120, 140, 155, 0.16), transparent 60%),
    radial-gradient(900px 600px at 95% 100%, rgba(0, 0, 0, 0.45), transparent 70%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .045 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  transition: --accent 0.8s ease;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.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;
}
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 6px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ───────────── Gear rail ───────────── */

.rail {
  position: fixed;
  z-index: 5;
  left: 0; top: 0; bottom: 0;
  width: var(--rail);
  overflow: hidden;
  pointer-events: none;
}
.rail-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rail-gl { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rail.is-gl .rail-svg { display: none; }
.rail-shadows, .rail-buttons { position: absolute; inset: 0; }

.gear-shadow {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.62) 62%, rgba(0, 0, 0, 0) 100%);
  transform: translate(7px, 11px);
  filter: blur(3px);
}

#steel .s0 { stop-color: #d4d9dd; }
#steel .s1 { stop-color: #9aa2a9; }
#steel .s2 { stop-color: #747c84; }
#steel .s3 { stop-color: #545b62; }
#steelDark .d0 { stop-color: #343d45; }
#steelDark .d1 { stop-color: #1b2127; }
#hot .h0 { stop-color: var(--accent); }
#hot .h1 { stop-color: var(--accent); }
@supports (color: color-mix(in srgb, red, blue)) {
  #hot .h0 { stop-color: color-mix(in srgb, var(--accent) 55%, #ffffff); }
  #hot .h1 { stop-color: color-mix(in srgb, var(--accent) 80%, #000000); }
}

.gear .overlay { opacity: 0; transition: opacity 0.7s ease; }
.gear.on .overlay { opacity: 0.88; }
.gear.hover:not(.on) .overlay { opacity: 0.3; }
.gear .groove { fill: none; stroke: rgba(0, 0, 0, 0.35); stroke-width: 1; }
.gear .edge { fill: none; stroke: rgba(255, 255, 255, 0.28); stroke-width: 0.8; }
.gear .hole { fill: #11161a; }
.gear .well { fill: url(#steelDark); }

.rail-buttons { pointer-events: none; }
.gear-btn {
  position: absolute;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  text-align: center;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.05;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.gear-btn .ico { width: 1.7em; height: 1.7em; display: none; }
.gear-btn .ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gear-btn[aria-current="page"] { color: #fff; }
.gear-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.is-dock .gear-btn .lab { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.is-dock .gear-btn .ico { display: block; }

/* ───────────── Layout ───────────── */

.brand {
  position: fixed;
  z-index: 4;
  top: 0;
  left: var(--rail);
  right: 0;
  padding: 22px clamp(24px, 4vw, 64px) 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
body[data-hub="home"] .brand { opacity: 0; }
body[data-hub="home"] .brand-mark { pointer-events: none; }
.brand-mark {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand-mark svg { color: var(--accent); }

.stage {
  --top: 96px;
  position: relative;
  margin-left: var(--rail);
  padding: var(--top) clamp(24px, 4vw, 64px) 72px;
  max-width: calc(1180px + var(--rail));
  min-height: 100vh;
  outline: none;
  overflow-x: clip;
}

.panel { position: relative; }
.panel[hidden] { display: none; }
.panel.is-leaving {
  opacity: 0;
  transform: translateX(-26px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.panel.is-entering { animation: bay-in 0.8s var(--ease) both; }
@keyframes bay-in {
  from { clip-path: inset(0 100% 0 0); transform: translateX(36px); opacity: 0.2; }
  to   { clip-path: inset(0 0 0 0);    transform: translateX(0);     opacity: 1; }
}

.display {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(64px, 9.5vw, 148px);
  line-height: 0.88;
  letter-spacing: 0.005em;
  color: var(--ink);
  text-wrap: balance;
}
.panel-head { margin-bottom: 8px; }
.panel-sub {
  margin-top: 18px;
  max-width: 52ch;
  color: var(--ink-2);
  font-size: 19px;
}
.h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1;
  letter-spacing: 0.01em;
  margin: 48px 0 16px;
}
.feed-title { margin-top: 56px; margin-bottom: 0; }

/* ───────────── Home ───────────── */

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 380px);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  min-height: min(760px, calc(100vh - var(--top) - 40px));
  min-height: min(760px, calc(100dvh - var(--top) - 40px));
  padding-bottom: 32px;
}
.hero-copy { position: relative; z-index: 1; }
.hero-title { margin-top: 18px; font-size: clamp(72px, 10vw, 168px); line-height: 0.84; text-transform: uppercase; }
.hero-title .ln { display: block; }
.hero-bar { display: block; width: 168px; height: 7px; margin-top: 26px; border-radius: 4px; background: var(--accent); }
.hero-lede { margin-top: 24px; max-width: 46ch; font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 30px; }
.hero-actions .live-pill { margin-top: 0; }
.gear-hint { margin-top: 18px; color: var(--ink-3); font-size: 15px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--accent); color: #12171b; box-shadow: 0 10px 30px -12px var(--accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -14px var(--accent); }

.hero-photo { position: relative; margin: 0; padding: 26px 0 40px; }
.hero-photo .frame {
  position: relative;
  z-index: 1;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(145deg, #3d4750, #1c2329 70%);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.hero-photo img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; }
.hero-photo figcaption {
  position: absolute;
  z-index: 2;
  left: 22px;
  bottom: 54px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(18, 23, 27, 0.86);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-gear { width: 112%; left: -28%; top: 26%; z-index: 0; }
.hero-gear-sm { --gc: var(--accent); width: 30%; right: -9%; top: -2%; z-index: 2; }

/* Game day */
.gameday {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  margin-top: 8px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--plate-1), var(--plate-2));
  border: 1px solid var(--line);
}
.gameday[hidden] { display: none; }
.gameday-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.gameday-label .live-dot[hidden] { display: none; }
.gameday-row { display: flex; flex-wrap: wrap; gap: 10px; flex: 1 1 400px; }
.gd {
  flex: 1 1 200px;
  display: grid;
  grid-template-columns: 6px 1fr;
  gap: 2px 12px;
  align-items: center;
  padding: 10px 14px 10px 10px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  text-decoration: none;
}
.gd:hover { border-color: var(--line-strong); }
.gd::before { content: ""; grid-row: 1 / span 2; align-self: stretch; border-radius: 3px; background: var(--team, var(--accent)); }
.gd b { font-family: var(--display); font-weight: 900; font-size: 22px; letter-spacing: 0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.gd span { font-size: 13.5px; color: var(--ink-2); line-height: 1.3; }
.gd.is-live { border-color: rgba(255, 92, 72, 0.5); }
.gd.is-live span { color: #ff9a8b; }

/* The gear train (hub tiles) */
.train { padding-top: 96px; scroll-margin-top: 24px; }
.train-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: 28px; }
.train-head p { max-width: 40ch; color: var(--ink-2); }
.h2-xl { margin: 0; font-size: clamp(44px, 5.4vw, 76px); font-weight: 900; text-transform: uppercase; line-height: 0.9; }

.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.tile {
  --tc: var(--ink);
  position: relative;
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 250px;
  padding: 28px 30px 24px;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  isolation: isolate;
  background: linear-gradient(165deg, var(--plate-1), #181e23);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--tc) 16%, transparent), transparent 60%),
    linear-gradient(165deg, var(--plate-1), #181e23);
  border: 1px solid color-mix(in srgb, var(--tc) 32%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 24px 50px -34px rgba(0, 0, 0, 0.9);
  transition: transform 0.35s var(--ease), border-color 0.3s ease, box-shadow 0.35s ease;
}
.tile:hover, .tile:focus-visible {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--tc) 70%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 30px 60px -30px color-mix(in srgb, var(--tc) 45%, #000);
}
.tile:focus-visible { outline-color: var(--tc); }
.t-sports    { --tc: #5ec2e8; grid-row: span 2; }
.t-corvettes { --tc: #f2c300; }
.t-ai        { --tc: #b4c63e; }
.t-creative  { --tc: #ff6a2b; }
.t-social    { --tc: #3fc6a8; }

.tile-gear {
  --gc: var(--tc);
  z-index: -1;
  width: 210px;
  right: -64px;
  top: -64px;
  opacity: 0.42;
  transition: opacity 0.4s ease;
}
.t-sports .tile-gear { width: 300px; right: -90px; top: -90px; }
.t-creative .tile-gear { top: auto; bottom: -80px; }
.tile-gear .gx-rot, .tile-gear .gx-lit { transition: transform 1.1s var(--ease); }
.tile:hover .tile-gear, .tile:focus-visible .tile-gear { opacity: 0.75; }
.tile:hover .tile-gear .gx-rot, .tile:focus-visible .tile-gear .gx-rot { transform: rotate(77deg); }
.tile:hover .tile-gear .gx-lit, .tile:focus-visible .tile-gear .gx-lit { transform: rotate(-77deg); }

.tile-kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tc); }
.tile-title { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(36px, 3.2vw, 50px); line-height: 0.92; text-transform: uppercase; }
.t-sports .tile-title { font-size: clamp(44px, 4.4vw, 64px); }
.tile-note, .tile-text { color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.tile-text { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tile-go {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--tc);
}
.tile-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.tile:hover .tile-go svg { transform: translateX(4px); }

.team-chips, .tile-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border-radius: 8px;
  background: rgba(14, 18, 22, 0.66);
  border: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.05em;
  line-height: 1.2;
}
.tc::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--team, var(--tc)); }
.c-sea { --team: #69be28; } .c-mar { --team: #1fb5ad; } .c-krk { --team: #99d9d9; } .c-uw { --team: #a891d6; } .c-van { --team: #2fb36b; }
.chip-plain { padding: 7px 13px; border-radius: 8px; background: rgba(14, 18, 22, 0.66); border: 1px solid var(--line); font-weight: 600; font-size: 15px; line-height: 1.3; }

.tile-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile-stats:empty { display: none; }
.stat { padding: 12px 14px; border-radius: 12px; background: rgba(14, 18, 22, 0.62); border: 1px solid var(--line); }
.stat small { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.stat b { display: block; margin-top: 2px; font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { display: block; font-size: 13px; color: var(--ink-2); }
.tile-list { display: flex; flex-direction: column; gap: 8px; }
.tile-head { display: block; padding: 11px 14px; border-radius: 10px; background: rgba(14, 18, 22, 0.55); border: 1px solid var(--line); }
.tile-head b { display: block; font-weight: 600; font-size: 15.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-head span { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-3); }

.t-creative { flex-direction: row; flex-wrap: wrap; align-items: stretch; gap: 20px; }
.t-creative .tile-body { flex: 1 1 180px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.t-creative .tile-go { flex-basis: 100%; }
.tile-media {
  position: relative;
  flex: 0 1 230px;
  min-height: 140px;
  border-radius: 12px;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, #262c32 0 12px, #20262b 12px 24px);
  border: 1px solid var(--line);
}
.tile-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: var(--tc); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); transition: transform 0.3s var(--ease); }
.tile-play::after { content: ""; margin-left: 4px; border-left: 16px solid #12171b; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.tile:hover .tile-play { transform: scale(1.08); }

.plate {
  position: relative;
  margin-top: 36px;
  max-width: 62ch;
  padding: 30px 34px 28px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 16px 16px, #0f1418 0 3px, #5a646c 3.5px 5px, transparent 5.5px),
    radial-gradient(circle at calc(100% - 16px) 16px, #0f1418 0 3px, #5a646c 3.5px 5px, transparent 5.5px),
    radial-gradient(circle at 16px calc(100% - 16px), #0f1418 0 3px, #5a646c 3.5px 5px, transparent 5.5px),
    radial-gradient(circle at calc(100% - 16px) calc(100% - 16px), #0f1418 0 3px, #5a646c 3.5px 5px, transparent 5.5px),
    linear-gradient(160deg, var(--plate-1), var(--plate-2));
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 40px -22px rgba(0, 0, 0, 0.8);
}

/* Vision plate */
.vision { margin-top: 96px; max-width: none; padding: clamp(32px, 4vw, 56px) clamp(28px, 5vw, 64px); }
.plate-label { font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); }
.vision-lead { margin-top: 14px; max-width: 24ch; font-family: var(--display); font-weight: 800; font-size: clamp(34px, 3.8vw, 54px); line-height: 1.02; color: var(--ink); }
.vision-body { margin-top: 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; max-width: 980px; }
.vision-body p { margin: 0; color: var(--ink-2); }
.plate.vision p + p { margin-top: 0; }

/* ───────────── Tabs, feed ───────────── */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 6px;
  margin: 26px 0 8px;
  border-bottom: 1px solid var(--line);
}
.tab {
  background: none;
  border: 0;
  padding: 11px 14px 10px;
  margin-bottom: -1px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink-2);
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.tab:hover { color: var(--ink); }
.tab[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--accent); }

.feed { margin-top: 4px; }
.feed-item {
  position: relative;
  display: block;
  padding: 18px 0 17px 20px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.feed-item::before {
  content: "";
  position: absolute;
  left: 0; top: 20px; bottom: 19px;
  width: 3px;
  background: var(--tick, var(--accent));
  opacity: 0.55;
  transition: opacity 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}
.feed-item:hover::before, .feed-item:focus-visible::before { opacity: 1; top: 14px; bottom: 13px; }
.feed-title-text {
  display: block;
  max-width: 72ch;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.34;
  color: var(--ink);
}
.feed-item:hover .feed-title-text { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.feed-meta { display: block; margin-top: 4px; color: var(--ink-3); font-size: 14.5px; }
.feed-meta .src { color: var(--ink-2); font-weight: 500; }
.feed-meta span + span { margin-left: 14px; }
.feed-meta .team { color: var(--tick, var(--ink-2)); font-weight: 500; }

.state {
  padding: 28px 0;
  color: var(--ink-2);
  max-width: 60ch;
}
.state button {
  margin-top: 12px;
  padding: 9px 16px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  font-weight: 600;
}
.state button:hover { border-color: var(--accent); }

.skeleton { padding: 18px 0 17px 20px; border-bottom: 1px solid var(--line); }
.skeleton i {
  display: block; height: 14px; border-radius: 3px; margin: 8px 0;
  background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.12), rgba(255,255,255,.05));
  background-size: 220% 100%;
  animation: sheen 1.4s linear infinite;
}
.skeleton i:first-child { width: 82%; height: 18px; }
.skeleton i:last-child { width: 26%; }
@keyframes sheen { from { background-position: 120% 0; } to { background-position: -120% 0; } }

.rundown {
  margin-top: 28px;
  max-width: 68ch;
  padding: 4px 0 4px 22px;
  border-left: 4px solid var(--accent);
}
.rundown h2 { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; margin-bottom: 8px; }
.rundown p { font-size: 18.5px; line-height: 1.65; color: #dcd7c7; }
.rundown small { display: block; margin-top: 10px; color: var(--ink-3); font-size: 14px; }

.fineprint { margin-top: 36px; max-width: 70ch; color: var(--ink-3); font-size: 14.5px; }

/* ───────────── Team plates ───────────── */

.plates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.plates:empty { display: none; }
.tplate {
  position: relative;
  padding: 18px 20px 16px 24px;
  border-radius: 6px;
  background: linear-gradient(160deg, var(--plate-1), var(--plate-2));
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.tplate::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--team, var(--accent)); }
.tplate h3 { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; }
.tplate .rec { margin-top: 10px; font-family: var(--display); font-weight: 900; font-size: 46px; line-height: 0.9; font-variant-numeric: tabular-nums; }
.tplate .rec small { font-family: var(--text); font-weight: 500; font-size: 14px; color: var(--ink-3); margin-left: 6px; }
.tplate p { margin-top: 8px; font-size: 15px; color: var(--ink-2); line-height: 1.4; }
.tplate .next strong { color: var(--ink); font-weight: 600; }

/* ───────────── Corvettes ───────────── */

.garage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.car {
  position: relative;
  padding: 24px 26px 24px;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--plate-1), var(--plate-2));
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.car .yr { font-family: var(--display); font-weight: 900; font-size: 84px; line-height: 0.85; color: var(--accent); }
.car h3 { margin-top: 10px; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; }
.car p { margin-top: 10px; color: var(--ink-2); font-size: 16px; line-height: 1.5; max-width: 44ch; }
.car .specs { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.car .specs li { padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 99px; font-size: 13.5px; color: var(--ink-2); }

.log-intro { color: var(--ink-2); max-width: 60ch; margin-bottom: 14px; }
.log { border-top: 1px solid var(--line-strong); }
.log-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) 96px;
  gap: 8px 24px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.log-row b { display: block; font-weight: 600; }
.log-row span.k { display: none; color: var(--ink-3); font-size: 13px; }
.log-row p { color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.chip {
  justify-self: end;
  padding: 3px 11px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.chip.fixed { color: #0f1418; background: var(--accent); border-color: var(--accent); }
.chip.open  { color: var(--accent); border-color: var(--accent); }
.chip.planned { color: var(--ink-2); }

/* ───────────── Creative ───────────── */

.kit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px 32px; }
.kit h3 { font-family: var(--display); font-weight: 800; font-size: 26px; padding-bottom: 8px; border-bottom: 3px solid var(--accent); line-height: 1; }
.kit ul { list-style: none; }
.kit li { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 16px; }
.kit li em { font-style: normal; color: var(--ink-3); font-size: 14px; margin-left: 6px; }

.reel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.reel-item { position: relative; border-radius: 6px; overflow: hidden; background: #0e1216; border: 1px solid var(--line-strong); aspect-ratio: 16 / 9; }
.reel-item button { position: absolute; inset: 0; width: 100%; border: 0; background: none; cursor: pointer; }
.reel-item img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.reel-item .play {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: var(--accent); display: grid; place-items: center;
}
.reel-item .play::after { content: ""; border-left: 18px solid #0f1418; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.reel-item iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reel-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px; font-weight: 600; font-size: 15px; background: linear-gradient(transparent, rgba(0,0,0,.78)); text-align: left; pointer-events: none; }

/* ───────────── Social ───────────── */

.social-groups { display: grid; gap: 40px; margin-top: 36px; }
.social-group h2 { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 3vw, 40px); line-height: 1; text-transform: uppercase; }
.social-group > p { margin-top: 6px; color: var(--ink-2); }
.socials { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 18px; }
.social {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr 20px;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 14px;
  text-decoration: none;
  overflow: hidden;
  background: linear-gradient(160deg, var(--plate-1), var(--plate-2));
  border: 1px solid var(--line-strong);
  transition: border-color 0.25s ease, transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.social:hover, .social:focus-visible { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 20px 40px -26px var(--accent); }
.social .s-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(14, 18, 22, 0.7); border: 1px solid var(--line); color: var(--accent); }
.social .s-ico svg, .social .s-arrow { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.social .s-arrow { width: 18px; height: 18px; color: var(--ink-3); transition: transform 0.3s var(--ease), color 0.2s ease; }
.social:hover .s-arrow { transform: translate(3px, -3px); color: var(--accent); }
.social b { display: block; font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; }
.social span.h { display: block; margin-top: 6px; color: var(--ink-2); font-size: 15px; overflow-wrap: anywhere; }
.social-reel { margin-top: 24px; }

.foot { margin-top: 88px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.noscript { padding: 20px; border: 1px solid var(--line-strong); border-radius: 8px; margin-bottom: 20px; }

/* ───────────── Phones and small tablets: gear dock at the bottom ───────────── */

@media (max-width: 859px) {
  .rail { top: auto; right: 0; width: auto; height: var(--rail-h); background: linear-gradient(to top, #161b20 0%, #161b20 58%, rgba(22,27,32,0.88) 80%, rgba(22,27,32,0)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); -webkit-mask-image: linear-gradient(to top, #000 82%, transparent); mask-image: linear-gradient(to top, #000 82%, transparent); }
  .brand { left: 0; padding: 16px 20px 0; }
  .stage { --top: 72px; margin-left: 0; padding: var(--top) 20px calc(var(--rail-h) + 40px); }
  .display { font-size: clamp(56px, 17vw, 96px); }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 8px; }
  .hero-photo { order: -1; max-width: 420px; padding: 8px 0 24px; }
  .hero-photo img { aspect-ratio: 4 / 3; object-position: 50% 62%; }
  .hero-photo figcaption { bottom: 38px; }
  .hero-gear { width: 72%; left: auto; right: -38%; top: -4%; }
  .hero-gear-sm { width: 20%; right: auto; left: -4%; top: -4%; }
  .hero-title { font-size: clamp(60px, 18vw, 104px); }
  .train { padding-top: 64px; }
  .vision { margin-top: 64px; }
  .vision-body { grid-template-columns: 1fr; }
  .plate { padding: 24px 22px; }
  .log-row { grid-template-columns: 1fr; }
  .log-row span.k { display: block; }
  .chip { justify-self: start; }
  .car .yr { font-size: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  .panel.is-entering { animation: none; }
  .panel.is-leaving { transition: none; }
  body { transition: none; }
  .skeleton i { animation: none; }
}

/* Section drum: while a hub change is turning, panels become faces of a cylinder. */
.stage.turning {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  perspective: 1500px;
  perspective-origin: 50% 50%;
}
.stage.turning .panel {
  position: absolute;
  top: var(--top);
  left: clamp(24px, 4vw, 64px);
  right: clamp(24px, 4vw, 64px);
  height: calc(100vh - var(--top));
  overflow: hidden;
  backface-visibility: hidden;
  will-change: transform, opacity;
}
.stage.turning .foot { display: none; }
@media (max-width: 859px) {
  .stage.turning .panel { left: 20px; right: 20px; }
}

/* ───────────── Live scores ───────────── */

.scoreboard {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.game {
  position: relative;
  padding: 14px 18px 14px 24px;
  border-radius: 6px;
  background: linear-gradient(160deg, var(--plate-1), var(--plate-2));
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.game::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--team, var(--accent)); }
.game.is-live { border-color: rgba(255, 92, 72, 0.55); }
.game-status { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); font-weight: 500; margin-bottom: 6px; }
.game-row { display: grid; grid-template-columns: 1fr auto; align-items: baseline; padding: 2px 0; }
.game-row b { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.05; letter-spacing: 0.01em; color: var(--ink-2); }
.game-row span { font-family: var(--display); font-weight: 900; font-size: 38px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.game-row.ours b, .game-row.ours span { color: var(--ink); }
.game-row.won span { color: var(--accent); }
.game-row small { font-family: var(--text); font-weight: 400; font-size: 14px; color: var(--ink-3); margin-left: 8px; letter-spacing: 0; }

.live-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: #ff5c48; box-shadow: 0 0 0 0 rgba(255, 92, 72, 0.6);
  animation: live-pulse 1.6s ease-out infinite;
}
.live-word { color: #ff8a7a; font-weight: 600; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 92, 72, 0.6); } 100% { box-shadow: 0 0 0 9px rgba(255, 92, 72, 0); } }

.live-pill {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 16px; padding: 8px 16px 8px 14px;
  border-radius: 99px; border: 1px solid rgba(255, 92, 72, 0.55);
  background: rgba(255, 92, 72, 0.08);
  text-decoration: none; font-weight: 600; font-size: 16px; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.live-pill:hover { background: rgba(255, 92, 72, 0.16); }
.live-pill[hidden] { display: none; }

.gear-btn .live-tag {
  position: absolute; top: 4%; right: 2%;
  padding: 1px 6px; border-radius: 99px;
  background: #ff5c48; color: #fff;
  font-size: 10px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.4;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.is-dock .gear-btn .live-tag { font-size: 0; width: 11px; height: 11px; padding: 0; top: 6%; right: 6%; }

/* ───────────── Sound toggle ───────────── */

.sound-btn {
  position: fixed; z-index: 6; top: 16px; right: 18px;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  background: rgba(22, 27, 32, 0.7);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  cursor: pointer; color: var(--ink-2);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.sound-btn:hover { color: var(--ink); border-color: var(--accent); }
.sound-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sound-btn .spk { fill: currentColor; stroke: none; }
.sound-btn[aria-pressed="true"] { color: var(--accent); }
.sound-btn[aria-pressed="true"] .off, .sound-btn[aria-pressed="false"] .on { display: none; }

@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
  .tile-gear .gx-rot, .tile-gear .gx-lit { transition: none; }
}

/* Standalone pages (404) have no gear rail. */
body:not(:has(#rail)) .stage { margin-left: 0; }

/* ───────────── Tiles at narrower widths ───────────── */

@media (max-width: 1180px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { grid-column: span 1; }
  .t-sports { grid-column: span 2; grid-row: auto; }
  .t-sports .tile-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tiles { grid-template-columns: 1fr; }
  .tile, .t-sports { grid-column: auto; }
  .t-sports .tile-list { display: flex; }
  .tile { padding: 24px 22px 20px; min-height: 0; }
  .tile-media { flex-basis: 100%; min-height: 170px; }
}


/* ───────────── Machined gears (hero and tiles) ─────────────
   Each gear is a stack of layers cut to the gear's outline with a mask. The outline turns;
   the lighting inside it turns the other way, so highlights stay put like real light on
   turning metal. Brushed and lathe-turned finishes are gradients; no images. */

.gear-x { position: absolute; display: block; aspect-ratio: 1; pointer-events: none; filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.6)) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5)); }
.gx-rot, .gx-metal, .gx-edge, .gx-lit, .gx-bolts { position: absolute; inset: 0; display: block; }
.gx-metal, .gx-edge { -webkit-mask: url("/assets/gear-big.svg") center / 100% 100% no-repeat; mask: url("/assets/gear-big.svg") center / 100% 100% no-repeat; }
.gx-edge { -webkit-mask-image: url("/assets/gear-big-edge.svg"); mask-image: url("/assets/gear-big-edge.svg"); }
.gear-s .gx-metal { -webkit-mask-image: url("/assets/gear-small.svg"); mask-image: url("/assets/gear-small.svg"); }
.gear-s .gx-edge { -webkit-mask-image: url("/assets/gear-small-edge.svg"); mask-image: url("/assets/gear-small-edge.svg"); }

/* Steel: turning marks, a soft key light, and anisotropic streaks around the axis */
.gx-metal .gx-lit {
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0 0.5px, rgba(0, 0, 0, 0.06) 0.5px 2px, rgba(255, 255, 255, 0) 2px 3.5px),
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 70% 82%, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0) 50%),
    conic-gradient(from 18deg at 50% 50%, #5e666d, #cfd4d8 7%, #7b838a 15%, #9aa2a8 24%, #555c62 34%, #b9c0c5 45%, #e2e6e9 50%, #8a9298 57%, #5a6167 68%, #aeb5bb 79%, #d0d5d9 86%, #6d757b 94%, #5e666d);
}
/* Bevelled edge catching the light from the upper left */
.gx-edge .gx-lit { background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.18) 36%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.75)); }

/* Tinted gears: the same finish in the hub's color, like anodized metal */
.gear-s .gx-metal .gx-lit {
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06) 0 0.5px, rgba(0, 0, 0, 0.08) 0.5px 2px, rgba(255, 255, 255, 0) 2px 3.5px),
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 45%),
    conic-gradient(from 18deg at 50% 50%,
      color-mix(in srgb, var(--gc) 55%, #000), color-mix(in srgb, var(--gc) 60%, #fff) 8%,
      color-mix(in srgb, var(--gc) 85%, #000) 18%, var(--gc) 30%,
      color-mix(in srgb, var(--gc) 50%, #000) 42%, color-mix(in srgb, var(--gc) 50%, #fff) 52%,
      color-mix(in srgb, var(--gc) 80%, #000) 64%, color-mix(in srgb, var(--gc) 75%, #fff) 80%,
      color-mix(in srgb, var(--gc) 55%, #000));
}

/* Hub boss with a lathe-turned face, a bore, and six bolts */
.gx-boss { position: absolute; inset: 37%; border-radius: 50%; overflow: hidden; box-shadow: 0 5px 12px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.5), inset 0 -2px 3px rgba(0, 0, 0, 0.5); }
.gx-boss .gx-lit {
  background:
    radial-gradient(circle at 50% 50%, #0b0f12 0 15%, #2b3238 16%, #6b737a 19%, rgba(0, 0, 0, 0) 21%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 0 0.6px, rgba(0, 0, 0, 0.1) 0.6px 1.6px),
    conic-gradient(from 40deg, #6a7279, #e4e8eb 10%, #7c848a 22%, #aab1b7 36%, #5b6268 50%, #dde1e4 62%, #737b81 76%, #b7bec3 88%, #6a7279);
}
.gx-bolts {
  inset: 37%;
  background:
    radial-gradient(circle at 79.5% 67.0%, #dfe3e6 0 1.6%, #8c949b 2.6%, #3c444b 5.4%, rgba(0,0,0,.55) 6.4%, transparent 7.6%),
    radial-gradient(circle at 50.0% 84.1%, #dfe3e6 0 1.6%, #8c949b 2.6%, #3c444b 5.4%, rgba(0,0,0,.55) 6.4%, transparent 7.6%),
    radial-gradient(circle at 20.5% 67.1%, #dfe3e6 0 1.6%, #8c949b 2.6%, #3c444b 5.4%, rgba(0,0,0,.55) 6.4%, transparent 7.6%),
    radial-gradient(circle at 20.5% 33.0%, #dfe3e6 0 1.6%, #8c949b 2.6%, #3c444b 5.4%, rgba(0,0,0,.55) 6.4%, transparent 7.6%),
    radial-gradient(circle at 50.0% 15.9%, #dfe3e6 0 1.6%, #8c949b 2.6%, #3c444b 5.4%, rgba(0,0,0,.55) 6.4%, transparent 7.6%),
    radial-gradient(circle at 79.5% 33.0%, #dfe3e6 0 1.6%, #8c949b 2.6%, #3c444b 5.4%, rgba(0,0,0,.55) 6.4%, transparent 7.6%);
}

/* ───────────── Motion ─────────────
   Everything below is decoration: with reduced motion, or in browsers without these
   features, the page is complete and still. */

@media (prefers-reduced-motion: no-preference) {
  /* Headline stamps in, line by line */
  .hero-title .ln { animation: stamp 0.9s var(--ease) both; }
  .hero-title .ln + .ln { animation-delay: 0.12s; }
  .hero-bar { animation: bar-in 1s 0.35s var(--ease) both; transform-origin: left center; }
  .hero-lede, .hero-actions, .gear-hint { animation: rise 0.8s 0.3s var(--ease) both; }
  .hero-photo .frame { animation: rise 1s 0.15s var(--ease) both; }

  /* The hero gears turn slowly on their own... */
  .hero-gear .gx-rot { animation: spin 90s linear infinite; }
  .hero-gear .gx-lit { animation: spin-back 90s linear infinite; }
  .hero-gear-sm .gx-rot { animation: spin-back 32s linear infinite; }
  .hero-gear-sm .gx-lit { animation: spin 32s linear infinite; }

  /* ...and, where supported, scrolling drives them instead. */
  @supports (animation-timeline: scroll()) {
    .hero-gear .gx-rot { animation: spin-scroll linear both; animation-timeline: scroll(root); }
    .hero-gear .gx-lit { animation: spin-scroll-undo linear both; animation-timeline: scroll(root); }
    .hero-gear-sm .gx-rot { animation: spin-scroll-back linear both; animation-timeline: scroll(root); }
    .hero-gear-sm .gx-lit { animation: spin-scroll-back-undo linear both; animation-timeline: scroll(root); }

    /* Sections engage as they scroll into view */
    .reveal {
      animation: engage linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 28%;
    }
    .tiles .tile.reveal:nth-child(even) { animation-range: entry 6% cover 32%; }
    .feed-item, .tplate, .game, .car, .social, .reel-item, .log-row {
      animation: engage linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 18%;
    }
    /* While a hub change is turning, keep everything visible. */
    .stage.turning .reveal, .stage.turning .feed-item, .stage.turning .tplate, .stage.turning .game,
    .stage.turning .car, .stage.turning .social, .stage.turning .reel-item, .stage.turning .log-row { animation: none; }
  }
}

@keyframes stamp {
  from { opacity: 0; transform: translateY(0.35em) scale(1.06); clip-path: inset(0 0 100% 0); }
  60%  { opacity: 1; }
  to   { opacity: 1; transform: none; clip-path: inset(0 0 -10% 0); }
}
@keyframes bar-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-back { to { transform: rotate(-360deg); } }
@keyframes spin-scroll { from { transform: rotate(0deg); } to { transform: rotate(240deg); } }
@keyframes spin-scroll-back { from { transform: rotate(0deg); } to { transform: rotate(-680deg); } }
@keyframes spin-scroll-undo { from { transform: rotate(0deg); } to { transform: rotate(-240deg); } }
@keyframes spin-scroll-back-undo { from { transform: rotate(0deg); } to { transform: rotate(680deg); } }
@keyframes engage {
  from { opacity: 0; transform: translateY(42px) rotateX(10deg) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
