/* ================ LAYOUT ================ */
.app {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.main {
  min-width: 0;
  padding: 0 40px 120px;
}

.section {
  margin-top: 96px;
  position: relative;
}

/* ============ SIDENAV ============ */
.sidenav {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  border-right: 1px solid var(--line-0);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: linear-gradient(180deg, var(--bg-0) 0%, color-mix(in oklch, var(--bg-0), var(--bg-1) 40%) 100%);
}
.sidenav__brand { display: flex; gap: 12px; align-items: center; }
.sidenav__mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--heat-0);
  color: var(--heat-0);
  border-radius: var(--r-sm);
}
.sidenav__name { font-size: 12px; letter-spacing: 0.12em; color: var(--ink-0); }
.sidenav__sub  { font-size: 9.5px; letter-spacing: 0.16em; color: var(--ink-2); margin-top: 2px; }

.sidenav__nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sidenav__link {
  display: grid;
  grid-template-columns: 28px 1fr 8px;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 13px;
  border-left: 1px solid transparent;
  transition: 120ms ease;
}
.sidenav__link:hover { color: var(--ink-0); background: var(--bg-1); }
.sidenav__link.is-active {
  color: var(--ink-0);
  background: var(--bg-1);
  border-left-color: var(--heat-0);
}
.sidenav__num { font-size: 10px; color: var(--ink-3); letter-spacing: 0.1em; }
.sidenav__dot {
  width: 4px; height: 4px;
  background: var(--ink-3);
  border-radius: 50%;
  opacity: 0;
}
.sidenav__link.is-active .sidenav__dot { opacity: 1; background: var(--heat-0); }

.sidenav__foot {
  font-size: 9.5px;
  color: var(--ink-3);
  letter-spacing: 0.12em;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ============ TOP BAR ============ */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  border-bottom: 1px solid var(--line-0);
  font-size: 10.5px;
  background: color-mix(in oklch, var(--bg-0), black 8%);
  position: sticky; top: 0;
  z-index: 20;
  backdrop-filter: blur(6px);
}
.topbar__left { display: flex; gap: 14px; align-items: center; color: var(--ink-2); letter-spacing: 0.1em; }
.topbar__right { color: var(--ink-1); letter-spacing: 0.1em; }
.topbar__sep { color: var(--line-1); }
.topbar__live { display: inline-flex; align-items: center; gap: 6px; color: var(--good); }
.topbar__live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--good);
  border-radius: 50%;
  box-shadow: 0 0 0 0 color-mix(in oklch, var(--good), transparent 40%);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklch, var(--good), transparent 30%); }
  70%  { box-shadow: 0 0 0 8px color-mix(in oklch, var(--good), transparent 100%); }
  100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--good), transparent 100%); }
}
.topbar__link { text-decoration: none; color: var(--ink-0); }
.topbar__link:hover { color: var(--heat-0); }

/* ============ HERO ============ */
.hero { padding-top: 48px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: start;
}
.hero__eyebrows { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 28px; }

.hero__name {
  font-family: var(--sans);
  font-weight: 550;
  line-height: 0.88;
  letter-spacing: -0.04em;
  font-size: clamp(64px, 9vw, 136px);
  display: flex;
  flex-direction: column;
}
.hero__name-first { color: var(--ink-2); font-weight: 350; }
.hero__name-last { color: var(--ink-0); }

.hero__lede {
  margin-top: 28px;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-1);
  text-wrap: pretty;
}

.hero__ctas { display: flex; gap: 10px; margin-top: 32px; flex-wrap: wrap; }

.hero__meta {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
  font-size: 11px;
  color: var(--ink-1);
  padding-top: 24px;
  border-top: 1px solid var(--line-0);
}
.hero__meta span { display: inline-block; color: var(--ink-3); width: 90px; }

/* measurables */
.measure {
  background: var(--bg-1);
  border: 1px solid var(--line-0);
  border-radius: var(--r-md);
}
.measure__head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-0);
  display: flex; justify-content: space-between; align-items: center;
}
.measure__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.measure__cell {
  padding: 20px;
  border-right: 1px solid var(--line-0);
  border-bottom: 1px solid var(--line-0);
  position: relative;
  min-height: 140px;
}
.measure__cell:nth-child(2n) { border-right: 0; }
.measure__cell:nth-child(n+3) { border-bottom: 0; }
.measure__cell.is-accent { background: linear-gradient(180deg, color-mix(in oklch, var(--heat-0), transparent 94%), transparent 60%); }
.measure__label { margin-bottom: 12px; }
.measure__val {
  display: flex; align-items: baseline; gap: 6px;
  font-size: clamp(32px, 3vw, 44px);
  color: var(--ink-0);
  letter-spacing: -0.03em;
}
.measure__cell.is-accent .measure__val { color: var(--heat-0); }
.measure__unit { font-size: 12px; color: var(--ink-2); }
.measure__sub { font-size: 10.5px; color: var(--ink-2); margin-top: 4px; letter-spacing: 0.08em; text-transform: uppercase; }
.spark { width: 100%; height: 32px; margin-top: 8px; display: block; }

.measure__foot {
  padding: 10px 18px;
  border-top: 1px solid var(--line-0);
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--ink-3); letter-spacing: 0.1em;
}

/* Ticker */
.ticker {
  margin-top: 48px;
  border-top: 1px solid var(--line-0);
  border-bottom: 1px solid var(--line-0);
  overflow: hidden;
  padding: 14px 0;
  background: color-mix(in oklch, var(--bg-0), black 8%);
}
.ticker__track {
  display: flex;
  white-space: nowrap;
  gap: 0;
  animation: ticker 90s linear infinite;
  font-size: 11px;
  color: var(--ink-1);
  letter-spacing: 0.12em;
}
.ticker__item { display: inline-flex; align-items: center; padding: 0 12px; }
.ticker__sep { color: var(--line-1); margin-left: 12px; }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============ SECTION HEAD ============ */
.sectionhead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-0);
  margin-bottom: 28px;
}
.sectionhead__left { display: flex; gap: 18px; align-items: baseline; }
.sectionhead__num { font-size: 11px; color: var(--heat-0); letter-spacing: 0.14em; }
.sectionhead__title {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.sectionhead__meta { font-size: 10.5px; color: var(--ink-2); letter-spacing: 0.14em; }

/* ============ BIO ============ */
.bio__grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  align-items: start;
}
.bio__portrait {
  padding: 16px;
  border-bottom: 1px solid var(--line-0);
}
.placeholder {
  aspect-ratio: 4/5;
  position: relative;
  background: var(--bg-2);
  border: 1px dashed var(--line-1);
  overflow: hidden;
  border-radius: var(--r-sm);
}
.placeholder__stripes {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0, transparent 14px,
    color-mix(in oklch, var(--line-1), transparent 50%) 14px,
    color-mix(in oklch, var(--line-1), transparent 50%) 15px
  );
}
.placeholder__label {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-2);
  text-transform: uppercase;
}

.bio__dl {
  padding: 16px 20px;
  font-size: 11px;
  display: flex; flex-direction: column;
}
.bio__dl > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  padding: 8px 0;
  border-top: 1px solid var(--line-0);
  letter-spacing: 0.08em;
}
.bio__dl > div:first-child { border-top: 0; }
.bio__dl dt { color: var(--ink-3); text-transform: uppercase; }
.bio__dl dd { color: var(--ink-0); text-transform: uppercase; }

.bio__story { display: flex; flex-direction: column; gap: 20px; }
.bio__narrative {
  padding: 20px 24px;
  border-left: 2px solid var(--heat-0);
  background: color-mix(in oklch, var(--heat-0), transparent 96%);
}
.bio__narrative p { line-height: 1.65; color: var(--ink-1); margin-bottom: 12px; font-size: 15px; }
.bio__narrative p:last-child { margin-bottom: 0; }

.timeline { list-style: none; padding: 14px 20px; }
.timeline__row {
  display: grid;
  grid-template-columns: 60px 14px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line-0);
  align-items: start;
}
.timeline__row:first-child { border-top: 0; }
.timeline__year { color: var(--ink-3); font-size: 11px; padding-top: 2px; }
.timeline__dot {
  width: 8px; height: 8px; background: var(--ink-2); border-radius: 50%;
  margin-top: 6px; justify-self: center;
  outline: 4px solid var(--bg-1);
}
.timeline__row:last-child .timeline__dot { background: var(--heat-0); }
.timeline__title { font-size: 14px; color: var(--ink-0); margin-bottom: 2px; }
.timeline__note { font-size: 10.5px; color: var(--ink-2); letter-spacing: 0.08em; }

/* ============ KPI ROW ============ */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border: 1px solid var(--line-0);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-1);
  margin-bottom: 20px;
}
.kpi {
  padding: 20px;
  border-right: 1px solid var(--line-0);
}
.kpi:last-child { border-right: 0; }
.kpi__k { margin-bottom: 14px; font-size: 9.5px; }
.kpi__v { display: flex; align-items: baseline; gap: 4px; font-size: 30px; letter-spacing: -0.03em; color: var(--ink-0); }
.kpi__u { font-size: 11px; color: var(--ink-2); }
.kpi__bar {
  position: relative;
  margin-top: 14px;
  height: 4px;
  background: var(--bg-3);
  border-radius: 2px;
}
.kpi__bar-fill {
  position: absolute; inset: 0 auto 0 0;
  background: var(--heat-0);
}
.kpi__pct {
  position: absolute; right: 0; top: -16px;
  font-size: 9.5px; color: var(--ink-2);
}
.kpi__pct span { color: var(--ink-3); margin-left: 2px; }

/* ============ STATS GRID ============ */
.stats-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.stats-grid--2 { grid-template-columns: 1fr 1fr; }

.plot-wrap { padding: 18px; }
.plot { width: 100%; height: auto; }
.plot-axis { font-family: var(--mono); font-size: 9px; fill: var(--ink-3); letter-spacing: 0.08em; }
.plot-pitch-label { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.05em; }
.plot-scales {
  display: flex; justify-content: space-between;
  padding: 8px 18px 14px;
  font-size: 10px; color: var(--ink-3); letter-spacing: 0.1em;
  border-top: 1px solid var(--line-0);
}

.panel__legend {
  display: flex;
  gap: 20px;
  padding: 12px 18px;
  border-top: 1px solid var(--line-0);
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--ink-1);
}
.legend-item { display: inline-flex; align-items: center; gap: 8px; letter-spacing: 0.05em; }
.legend-dot { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

/* Season line */
.season-line {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 10px;
}
.season-cell {
  padding: 14px 10px;
  border-right: 1px solid var(--line-0);
  border-bottom: 1px solid var(--line-0);
  text-align: left;
}
.season-cell:nth-child(6n), .season-cell:nth-child(12n) { border-right: 0; }
.season-cell:nth-child(n+7) { border-bottom: 0; }
.season-cell__k { font-size: 9.5px; color: var(--ink-3); letter-spacing: 0.14em; margin-bottom: 4px; }
.season-cell__v { font-size: 22px; color: var(--ink-0); letter-spacing: -0.02em; }

/* Percentile bars */
.pct-wrap { padding: 18px 20px; }
.pct-row {
  display: grid;
  grid-template-columns: 110px 1fr 40px;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
}
.pct-row__k { font-size: 10.5px; color: var(--ink-1); letter-spacing: 0.1em; }
.pct-row__track {
  position: relative;
  height: 6px;
  background: var(--bg-3);
  border-radius: 2px;
}
.pct-row__gridlines span {
  position: absolute; top: -2px; bottom: -2px;
  width: 1px; background: var(--line-1);
}
.pct-row__fill { position: absolute; inset: 0 auto 0 0; border-radius: 2px; }
.pct-row__dot {
  position: absolute;
  top: -3px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--ink-0);
  border: 2px solid var(--bg-1);
}
.pct-row__v { font-size: 13px; color: var(--ink-0); text-align: right; }
.pct-foot {
  display: grid;
  grid-template-columns: 110px repeat(5, 1fr) 40px;
  padding-top: 8px;
  border-top: 1px dashed var(--line-0);
  margin-top: 4px;
  font-size: 9.5px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
}
.pct-foot span { text-align: center; }
.pct-foot span:first-child { text-align: left; }

/* Heatmap */
.heatmap-row { display: grid; grid-template-columns: repeat(3, 1fr); padding: 24px; gap: 32px; }
.heatzone { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.heatzone__label { font-size: 10.5px; color: var(--ink-2); letter-spacing: 0.14em; }
.heatzone__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 220px;
  aspect-ratio: 1;
  gap: 2px;
  background: var(--bg-2);
  padding: 4px;
}
.heatcell {
  position: relative;
  display: grid; place-items: center;
  font-size: 10px;
}
.heatcell__v { color: rgba(0,0,0,0.6); font-weight: 600; font-size: 10px; }
.heatzone__zonebox {
  position: absolute;
  left: calc(20% + 4px); right: calc(20% + 4px);
  top: calc(20% + 4px); bottom: calc(20% + 4px);
  border: 1.5px solid var(--ink-0);
  pointer-events: none;
}
.heatzone__legend {
  display: flex; align-items: center; gap: 8px;
  font-size: 9.5px; color: var(--ink-3); letter-spacing: 0.1em;
}
.heatzone__gradient {
  width: 100px; height: 6px;
  background: linear-gradient(to right,
    oklch(0.30 0.02 255), oklch(0.55 0.12 55), var(--heat-0));
}

/* ============ ARSENAL ============ */
.arsenal { display: grid; grid-template-columns: 260px 1fr; gap: 20px; }
.arsenal__list { display: flex; flex-direction: column; gap: 8px; }
.arsenal__btn {
  background: var(--bg-1);
  border: 1px solid var(--line-0);
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  color: var(--ink-1);
  font-family: inherit;
  transition: 120ms ease;
  border-radius: var(--r-sm);
}
.arsenal__btn:hover { background: var(--bg-2); }
.arsenal__btn:focus-visible {
  outline: 2px solid var(--heat-0);
  outline-offset: 2px;
}
.arsenal__btn.is-active {
  background: var(--bg-2);
  border-color: var(--heat-0);
  color: var(--ink-0);
}
.arsenal__btn-head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.arsenal__code { font-size: 11px; letter-spacing: 0.1em; font-weight: 600; }
.arsenal__usage { font-size: 10.5px; color: var(--ink-2); }
.arsenal__name { font-size: 15px; margin-bottom: 10px; }
.arsenal__usage-bar {
  height: 3px;
  background: var(--bg-3);
  margin-bottom: 10px;
  overflow: hidden;
}
.arsenal__usage-bar > div { height: 100%; }
.arsenal__row {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--ink-2); letter-spacing: 0.08em;
}

.arsenal__detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  padding: 20px;
  gap: 20px;
}
.ars-card {
  background: var(--bg-2);
  border: 1px solid var(--line-0);
  padding: 18px;
  border-radius: var(--r-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 170px;
}
.ars-big {
  display: flex; align-items: baseline; gap: 6px;
  font-size: 36px;
  color: var(--ink-0);
  letter-spacing: -0.03em;
}
.ars-unit { font-size: 12px; color: var(--ink-2); }
.ars-row { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ink-2); letter-spacing: 0.1em; }

.veloband { padding-top: 8px; }
.veloband__track {
  position: relative;
  height: 44px;
  border-top: 1px solid var(--line-0);
  border-bottom: 1px solid var(--line-0);
}
.veloband__tick {
  position: absolute; top: 0; bottom: 0;
  border-left: 1px dashed var(--line-0);
  transform: translateX(-50%);
}
.veloband__tick span {
  position: absolute; bottom: -16px;
  font-size: 9px; color: var(--ink-3);
  transform: translateX(-50%);
  left: 50%;
}
.veloband__range { position: absolute; top: 6px; bottom: 6px; }
.veloband__avg {
  position: absolute; top: -2px; bottom: -2px;
  width: 2px;
  transform: translateX(-50%);
}

.rpm-dial svg { width: 120px; height: 120px; align-self: center; }
.rpm-dial__big { font-family: var(--mono); font-size: 18px; font-weight: 600; fill: var(--ink-0); }
.rpm-dial__sub { font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; fill: var(--ink-3); }

.ars-move {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.ars-move__label { font-size: 9px; color: var(--ink-3); letter-spacing: 0.14em; margin-bottom: 2px; }
.ars-move__v { font-size: 22px; color: var(--ink-0); letter-spacing: -0.02em; }
.ars-trail { width: 100%; height: auto; }

.ars-outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.outcome { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.outcome__ring {
  width: 88px; height: 88px;
  border-radius: 50%;
  display: grid; place-items: center;
  background:
    conic-gradient(var(--c) calc(var(--p) * 1%), var(--bg-3) 0);
  position: relative;
  font-size: 18px;
  color: var(--ink-0);
}
.outcome__ring::before {
  content: ""; position: absolute; inset: 6px;
  background: var(--bg-2);
  border-radius: 50%;
}
.outcome__ring > span { position: relative; z-index: 1; }
.outcome__pct { font-size: 10px; color: var(--ink-2); margin-left: 2px; }

.arsenal__grip {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  padding: 20px;
  border-top: 1px solid var(--line-0);
  align-items: center;
}
.arsenal__ball svg { width: 200px; height: 200px; }
.grip-row {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--line-0);
  font-size: 11px;
  color: var(--ink-1);
  letter-spacing: 0.08em;
}
.grip-row:first-child { border-top: 0; }
.grip-row b { color: var(--ink-0); font-weight: 500; font-size: 13px; }

/* ============ GAME LOG ============ */
.log-wrap { overflow-x: auto; }
.log-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
}
.log-table th, .log-table td {
  padding: 12px 16px;
  text-align: right;
  border-bottom: 1px solid var(--line-0);
  font-size: 12px;
}
.log-table th {
  text-align: right;
  font-size: 9.5px;
  color: var(--ink-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--bg-2);
  font-weight: 500;
}
.log-table th:first-child, .log-table td:first-child { text-align: left; padding-left: 20px; }
.log-table th:nth-child(2), .log-table td:nth-child(2) { text-align: left; }
.log-table tbody tr:hover { background: var(--bg-2); }
.log-k { color: var(--heat-0); font-weight: 600; }
.log-foot {
  display: flex; justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--line-0);
  font-size: 10.5px;
  color: var(--ink-2);
  letter-spacing: 0.1em;
}
.sparkbar { display: flex; gap: 2px; align-items: center; }
.sparkbar__cell {
  width: 4px; height: 12px;
  background: var(--bg-3);
  border-radius: 1px;
}
.sparkbar__cell.is-on { background: var(--heat-0); }

/* ============ SHOWCASES ============ */
.showcase-list { display: flex; flex-direction: column; gap: 8px; }
.showcase {
  display: grid;
  grid-template-columns: 100px 1fr auto auto;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  transition: 120ms ease;
}
.showcase:hover { background: var(--bg-2); }
.showcase__date { font-size: 11px; color: var(--heat-0); letter-spacing: 0.14em; }
.showcase__name { font-size: 16px; color: var(--ink-0); margin-bottom: 4px; }
.showcase__loc { font-size: 11px; color: var(--ink-2); letter-spacing: 0.1em; }
.showcase__arrow { color: var(--ink-3); font-size: 16px; }
.showcase:hover .showcase__arrow { color: var(--heat-0); }

/* ============ PRESS ============ */
.press-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.press {
  padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
  transition: 120ms ease;
}
.press:hover { border-color: var(--line-1); }
.press__head {
  display: flex; justify-content: space-between;
  font-size: 10.5px;
  letter-spacing: 0.14em;
}
.press__outlet { color: var(--heat-0); }
.press__date { color: var(--ink-3); }
.press__title {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink-0);
  text-wrap: pretty;
}
.press__quote {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-1);
  padding-left: 14px;
  border-left: 2px solid var(--line-1);
  font-style: italic;
  text-wrap: pretty;
}
.press__quote-mark { color: var(--heat-0); font-style: normal; padding: 0 2px; }
.press__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.press__byline { font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.1em; }
.press__source {
  font-size: 10px;
  color: var(--ink-3);
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: color 120ms ease;
}
.press__source:hover { color: var(--heat-0); }

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-card__body { padding: 20px 22px; display: flex; flex-direction: column; }
.contact-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  padding: 12px 0;
  border-top: 1px solid var(--line-0);
  align-items: baseline;
  gap: 10px;
}
.contact-row:first-child { border-top: 0; }
.contact-val { font-size: 13px; color: var(--ink-0); text-decoration: none; letter-spacing: 0.02em; word-break: break-word; }
a.contact-val:hover { color: var(--heat-0); }

.contact-cta {
  padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
  background: linear-gradient(180deg, color-mix(in oklch, var(--heat-0), transparent 94%), var(--bg-1));
  border-color: color-mix(in oklch, var(--heat-0), transparent 70%);
}
.contact-cta__head { font-size: 10.5px; color: var(--heat-0); }
.contact-cta__body { font-size: 14px; line-height: 1.55; color: var(--ink-1); }
.contact-form { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.contact-input {
  background: var(--bg-0);
  border: 1px solid var(--line-1);
  padding: 12px 14px;
  color: var(--ink-0);
  font-size: 13px;
  border-radius: var(--r-sm);
  outline: none;
  transition: 120ms ease;
}
.contact-input:focus { border-color: var(--heat-0); }
.contact-input::placeholder { color: var(--ink-3); }

/* ============ FOOTER ============ */
.footer {
  margin-top: 80px;
  padding-top: 20px;
  border-top: 1px solid var(--line-0);
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.12em;
}
.footer__top {
  margin-top: 14px;
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 120ms ease;
  font-family: var(--mono);
}
.footer__top:hover { color: var(--heat-0); }

/* ============ TWEAKS PANEL ============ */
.tweaks {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 280px;
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  border-radius: var(--r-md);
  font-family: var(--mono);
  font-size: 11px;
  z-index: 100;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.tweaks__head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-0);
  display: flex; justify-content: space-between;
  letter-spacing: 0.14em;
  color: var(--ink-1);
}
.tweaks__body { padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.tweak-row { display: flex; flex-direction: column; gap: 6px; }
.tweak-row > label { font-size: 9.5px; color: var(--ink-3); letter-spacing: 0.12em; }
.tweak-opts { display: flex; gap: 4px; flex-wrap: wrap; }
.tweak-opt {
  padding: 6px 10px;
  background: var(--bg-2);
  border: 1px solid var(--line-0);
  color: var(--ink-1);
  cursor: pointer;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.1em;
  border-radius: var(--r-sm);
}
.tweak-opt.is-on { background: var(--ink-0); color: var(--bg-0); border-color: var(--ink-0); }
.tweak-swatch { display: flex; gap: 6px; }
.tweak-swatch button {
  width: 28px; height: 28px; border: 2px solid var(--line-1);
  background: var(--c); cursor: pointer; border-radius: 50%;
}
.tweak-swatch button.is-on { border-color: var(--ink-0); }

/* ============ HERO PHOTO ============ */
.hero__right { display: flex; flex-direction: column; gap: 16px; }
.hero__photo {
  position: relative;
  border: 1px solid var(--line-0);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-2);
  aspect-ratio: 16/10;
}
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.95);
  display: block;
}
.hero__photo-tag {
  position: absolute; bottom: 10px; left: 12px;
  background: color-mix(in oklch, var(--bg-0), transparent 15%);
  backdrop-filter: blur(4px);
  border: 1px solid color-mix(in oklch, var(--heat-0), transparent 60%);
  padding: 6px 10px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-0);
  display: flex; align-items: center; gap: 8px;
  border-radius: var(--r-sm);
}

/* ============ BIO PORTRAIT IMG ============ */
.bio__portrait-img {
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-0);
  filter: contrast(1.04);
}

.measure__delta {
  font-size: 10px;
  color: var(--good);
  letter-spacing: 0.1em;
  margin-top: 2px;
}

/* ============ FEATURED LINE PANELS ============ */
.featured-lines { margin-bottom: 20px; }
.feat-line__body { padding: 22px 24px; display: flex; flex-direction: column; gap: 18px; }
.feat-line__hero { display: flex; flex-direction: column; gap: 4px; }
.feat-line__big {
  font-size: 56px;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink-0);
}
.feat-line__sub { font-size: 11px; color: var(--ink-2); letter-spacing: 0.12em; }
.feat-line__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line-0);
  border-bottom: 1px solid var(--line-0);
}
.feat-line__grid > div {
  padding: 12px 14px;
  border-right: 1px solid var(--line-0);
  display: flex; flex-direction: column; gap: 4px;
}
.feat-line__grid > div:last-child { border-right: 0; }
.feat-line__grid .stat-num { font-size: 22px; letter-spacing: -0.02em; }
.feat-line__note { font-size: 11px; color: var(--ink-2); letter-spacing: 0.06em; line-height: 1.5; }

/* ============ DATA PROVENANCE ============ */
.data-note {
  display: flex; gap: 10px; align-items: center;
  padding: 10px 14px;
  background: color-mix(in oklch, var(--warn), transparent 92%);
  border: 1px solid color-mix(in oklch, var(--warn), transparent 70%);
  color: var(--ink-1);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  border-radius: var(--r-sm);
}

.session-strip { margin-bottom: 20px; }
.session-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.session-cell {
  padding: 18px 20px;
  border-right: 1px solid var(--line-0);
  display: flex; flex-direction: column; gap: 6px;
}
.session-cell:last-child { border-right: 0; }
.session-cell.is-latest { background: color-mix(in oklch, var(--heat-0), transparent 94%); }
.session-cell__id { font-size: 10px; color: var(--heat-0); letter-spacing: 0.14em; }
.session-cell__date { font-size: 15px; color: var(--ink-0); letter-spacing: -0.01em; }
.session-cell__pitches { font-size: 10.5px; color: var(--ink-2); letter-spacing: 0.1em; }
.session-cell__note { font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.08em; }

/* ============ VELOCITY BAND CHART ============ */
.velo-chart { display: flex; flex-direction: column; gap: 14px; }
.velo-axis { position: relative; height: 14px; border-bottom: 1px solid var(--line-0); }
.velo-axis span { position: absolute; font-size: 9px; color: var(--ink-3); transform: translateX(-50%); }
.velo-rows { display: flex; flex-direction: column; gap: 8px; }
.velo-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.velo-row__label { display: flex; gap: 10px; align-items: baseline; }
.velo-row__label .mono { font-size: 12px; letter-spacing: 0.08em; font-weight: 600; }
.velo-row__name { font-size: 11px; color: var(--ink-2); }
.velo-row__track {
  position: relative;
  height: 38px;
  background: var(--bg-2);
  border: 1px solid var(--line-0);
  border-radius: var(--r-sm);
}
.velo-bar {
  position: absolute; top: 6px; bottom: 6px;
  border: 1px solid;
  border-radius: 2px;
}
.velo-mark {
  position: absolute; top: 0; bottom: 0;
  width: 2px;
  transform: translateX(-50%);
}
.velo-mark--avg { width: 2px; }
.velo-mark--max { background: transparent; border-left: 1px dashed; border-color: inherit; }
.velo-mark--at { background: var(--heat-0); width: 2px; }
.velo-mark__tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  color: var(--ink-2);
  white-space: nowrap;
  letter-spacing: 0.08em;
}
.velo-mark--at .velo-mark__tag { color: var(--heat-0); }

/* ============ REF COMPARE ============ */
.ref-wrap { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.ref-grid { display: flex; flex-direction: column; gap: 10px; }
.ref-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 12px;
}
.ref-label { font-size: 10.5px; letter-spacing: 0.1em; font-weight: 600; }
.ref-track {
  position: relative;
  height: 22px;
  background: var(--bg-2);
  border: 1px solid var(--line-0);
  border-radius: var(--r-sm);
}
.ref-tick { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line-0); }
.ref-mark {
  position: absolute; top: -2px; bottom: -2px;
  width: 2px;
  transform: translateX(-50%);
}
.ref-mark--indie { background: var(--ink-3); }
.ref-mark--mlb   { background: var(--ink-2); }
.ref-mark--lucas {
  width: 46px;
  top: 2px; bottom: 2px;
  transform: translateX(-50%);
  border-radius: 2px;
  display: grid; place-items: center;
}
.ref-mark--lucas span { font-size: 10px; color: var(--bg-0); font-weight: 600; }
.ref-mark--max { background: transparent; border-left: 1px dashed; }

.ref-legend {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: 10px; color: var(--ink-2); letter-spacing: 0.1em;
  padding-top: 10px;
  border-top: 1px dashed var(--line-0);
}
.ref-legend i.dot {
  display: inline-block; width: 10px; height: 4px;
  vertical-align: middle; margin-right: 6px;
}
.ref-legend .dot--indie { background: var(--ink-3); }
.ref-legend .dot--mlb { background: var(--ink-2); }
.ref-legend .dot--lucas { background: var(--heat-0); width: 14px; height: 8px; }
.ref-legend .dot--max { border-left: 1px dashed var(--ink-1); width: 0; height: 10px; }
.ref-scale {
  display: flex;
  justify-content: space-between;
  padding-left: 132px;
  font-size: 9px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}

/* ============ COMP TABLE ============ */
.comp-wrap { overflow-x: auto; }
.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
}
.comp-table th, .comp-table td {
  padding: 12px 14px;
  text-align: right;
  border-bottom: 1px solid var(--line-0);
  font-size: 12px;
  white-space: nowrap;
}
.comp-table th {
  font-size: 9.5px;
  color: var(--ink-3);
  letter-spacing: 0.14em;
  font-weight: 500;
  background: var(--bg-2);
}
.comp-table th:nth-child(-n+4), .comp-table td:nth-child(-n+4),
.comp-table th:last-child, .comp-table td:last-child { text-align: left; }
.comp-table th:first-child, .comp-table td:first-child { padding-left: 20px; }
.comp-table tbody tr:hover { background: var(--bg-2); }
.comp-ctx { color: var(--ink-0); font-weight: 600; font-family: var(--sans); }
.comp-src { color: var(--ink-3); font-size: 10.5px; letter-spacing: 0.08em; }
.comp-highlight { background: color-mix(in oklch, var(--heat-0), transparent 94%); }
.comp-highlight .comp-ctx { color: var(--heat-0); }
.is-good { color: var(--good); }
.is-warn { color: var(--warn); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .hero__grid, .bio__grid, .stats-grid, .stats-grid--2, .arsenal, .contact-grid, .press-grid, .arsenal__detail-grid {
    grid-template-columns: 1fr;
  }
  .kpi-row { grid-template-columns: repeat(3, 1fr); }
  .kpi { border-bottom: 1px solid var(--line-0); }
  .heatmap-row { grid-template-columns: 1fr; }
  .arsenal__grip { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .app { grid-template-columns: 1fr; }
  .sidenav { display: none; }
  .sidenav.is-mobile-open {
    display: flex;
    position: fixed;
    left: 0; top: 0; bottom: 0;
    z-index: 40;
    width: 240px;
    height: 100vh;
    box-shadow: 4px 0 32px rgba(0,0,0,0.55);
    overflow-y: auto;
  }
  .mobile-nav-toggle { display: block !important; }
  .main { padding: 0 20px 80px; }
  .topbar { padding: 10px 20px; font-size: 9.5px; }
  .topbar__left { overflow-x: auto; white-space: nowrap; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .season-line { grid-template-columns: repeat(3, 1fr); }
  .season-cell { border-right: 1px solid var(--line-0) !important; border-bottom: 1px solid var(--line-0) !important; }
  /* Fix hero photo on mobile — preserve pitcher subject */
  .hero__photo { aspect-ratio: 3/2; }
  /* Contact grid single col on mobile */
  .contact-grid { grid-template-columns: 1fr; }
  /* Press grid single col on mobile */
  .press-grid { grid-template-columns: 1fr; }
  /* Footer readable on mobile */
  .footer { gap: 8px; }
}
