/* Final Ball stylesheet. Sections follow the page from top to bottom; the editorial layer at the end overrides earlier rules. */

/* ==================== 1. Design tokens ==================== */
/* Light and dark palettes; the hero always uses the dark set. */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --tile: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --hair: rgba(0, 0, 0, 0.09);
  --track: #e8e8ed;
  --blue: #0071e3;
  --nav: rgba(255, 255, 255, 0.72);
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.04), 0 16px 40px -18px rgba(0, 0, 0, 0.18);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial,
    sans-serif;
  --r-xl: 28px;
  --r-lg: 18px;
  --live-c: #e5126b;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --bg-alt: #101012;
    --tile: #1c1c1e;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #86868b;
    --hair: rgba(255, 255, 255, 0.12);
    --track: #2c2c2e;
    --blue: #2997ff;
    --nav: rgba(22, 22, 23, 0.72);
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 20px 50px -20px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000;
  --bg-alt: #101012;
  --tile: #1c1c1e;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #86868b;
  --hair: rgba(255, 255, 255, 0.12);
  --track: #2c2c2e;
  --blue: #2997ff;
  --nav: rgba(22, 22, 23, 0.72);
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

/* ==================== 2. Base ==================== */
body {
  margin: 0;
}
[hidden] {
  display: none !important;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--nav);
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  letter-spacing: inherit;
}
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 8px;
}
h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.028em;
}
p {
  margin: 0;
}
.gutter {
  padding-left: max(22px, env(safe-area-inset-left, 0px));
  padding-right: max(22px, env(safe-area-inset-right, 0px));
}
.inner {
  max-width: 1160px;
  margin: 0 auto;
}
.num {
  font-variant-numeric: tabular-nums;
}

/* ==================== 3. Navigation and mode switch ==================== */
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--nav);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hair);
}
.nav .inner {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.wordmark svg {
  width: 22px;
  height: 22px;
}
.links {
  display: flex;
  gap: 22px;
  font-size: 13px;
  color: var(--text-2);
  margin-right: auto;
}
.links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.links a:hover {
  color: var(--text);
}
.seg {
  display: inline-flex;
  background: var(--track);
  border-radius: 999px;
  padding: 2px;
  position: relative;
}
.seg button {
  position: relative;
  z-index: 1;
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--text-2);
  transition: color 0.25s;
  white-space: nowrap;
}
.seg button[aria-pressed="true"] {
  color: var(--text);
}
.seg .thumb {
  position: absolute;
  z-index: 0;
  top: 2px;
  bottom: 2px;
  border-radius: 999px;
  background: var(--tile);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.12),
    0 0 0 0.5px rgba(0, 0, 0, 0.04);
  transition:
    left 0.35s cubic-bezier(0.3, 0.7, 0.2, 1),
    width 0.35s cubic-bezier(0.3, 0.7, 0.2, 1);
}
/* Mode switch: scoreboard-style tabs along the bottom edge of the nav, live bar in the hero club's colour. */
.modes {
  display: inline-flex;
  align-items: stretch;
  align-self: stretch;
  gap: 22px;
  position: relative;
  margin-bottom: -1px;
}
.modes button {
  display: flex;
  align-items: center;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text-3);
  white-space: nowrap;
  transition: color 0.25s;
}
.modes button:hover {
  color: var(--text-2);
}
.modes button[aria-pressed="true"] {
  color: var(--text);
}
.modes .thumb {
  position: absolute;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--live-c);
  transition:
    left 0.35s cubic-bezier(0.3, 0.7, 0.2, 1),
    width 0.35s cubic-bezier(0.3, 0.7, 0.2, 1),
    background 0.6s;
}
.modes button:focus-visible {
  outline: none;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 6px;
}
@media (max-width: 760px) {
  .links {
    display: none;
  }
  .nav .inner {
    justify-content: space-between;
  }
  .wordmark span {
    display: none;
  }
}

/* ==================== 4. Hero ==================== */
/* Always-dark stage, glow tinted by the featured club, network figure with analysis readouts. */
.hero {
  --bg: #0b0b0d;
  --tile: #161618;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #75757b;
  --hair: rgba(255, 255, 255, 0.12);
  --track: #2a2a2d;
  color-scheme: dark;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  padding-block: 52px 40px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -15%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
      38% 46% at 70% 44%,
      color-mix(in srgb, var(--hero-c, #555) 26%, transparent),
      transparent 72%
    ),
    radial-gradient(
      26% 30% at 8% 96%,
      color-mix(in srgb, var(--hero-c, #555) 18%, transparent),
      transparent 70%
    );
  animation: drift 16s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(120% 90% at 70% 40%, transparent 55%, rgba(0, 0, 0, 0.55));
}
/* faint dot grid behind the figure */
.heroGrid {
  position: relative;
}
.heroGrid::before {
  content: "";
  position: absolute;
  inset: -40px -6vw -40px 30%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1.4px) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(60% 60% at 60% 50%, #000 15%, transparent 80%);
  mask-image: radial-gradient(60% 60% at 60% 50%, #000 15%, transparent 80%);
}
@keyframes drift {
  to {
    transform: translate3d(-3%, 2.5%, 0) scale(1.06);
  }
}
.heroGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 0 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .heroGrid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.plRow {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.plLogo {
  height: 40px;
  width: auto;
  display: block;
}
.plRow .sep {
  width: 1px;
  height: 28px;
  background: var(--hair);
}
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-2);
}
.kicker i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hero-c, var(--text-3));
  transition: background 0.6s;
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--hero-c, #888) 25%, transparent),
    0 0 18px var(--hero-c, transparent);
}
.hero h1 {
  font-size: clamp(42px, 4.2vw, 60px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  margin-top: 18px;
}
.hero h1 span {
  color: var(--hero-c, var(--text));
  transition: color 0.6s;
}
/* Portfolio framing: eyebrow, method chips, CTAs */
.eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.eyebrow span {
  color: var(--text);
  padding: 3px 8px;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hero-c, #888) 60%, transparent);
  background: color-mix(in srgb, var(--hero-c, #888) 14%, transparent);
  transition:
    box-shadow 0.6s,
    background 0.6s;
}
.methods {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.methods button {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  padding: 6px 11px;
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px var(--hair);
  transition:
    color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
.methods button:hover,
.methods button[aria-expanded="true"] {
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--hero-c, var(--text));
  background: color-mix(in srgb, var(--hero-c, #888) 10%, transparent);
}
.ctaRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.25s,
    background 0.6s;
}
.cta svg {
  width: 11px;
  height: 11px;
}
.cta.pri {
  color: #fff;
  background: var(--hero-c, #e5126b);
  box-shadow:
    0 8px 24px -10px var(--hero-c, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.cta.pri:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 30px -10px var(--hero-c, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.cta.sec {
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--hair);
}
.cta.sec:hover {
  box-shadow: inset 0 0 0 1px var(--text-2);
}
.methods button::after {
  content: "?";
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  margin-left: 6px;
  border-radius: 50%;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-3);
  box-shadow: inset 0 0 0 1px var(--hair);
  vertical-align: 1px;
}
.hud .hc {
  cursor: help;
}
.hud .hk {
  text-decoration: underline dotted color-mix(in srgb, var(--text-3) 70%, transparent);
  text-underline-offset: 3px;
}
.hud .hc:hover .hk,
.hud .hc:focus-visible .hk {
  color: var(--text);
}
.hud .hc:focus-visible {
  outline: none;
}
.tagline {
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-top: 16px;
  max-width: 30em;
  line-height: 1.4;
}
.lede {
  font-size: 15px;
  color: var(--text-2);
  max-width: 34em;
  margin-top: 8px;
  line-height: 1.55;
}
.lede b {
  color: var(--text);
  font-weight: 600;
}
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hair);
}
.facts button {
  width: 100%;
  display: grid;
  grid-template-columns: 8.5em minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--hair);
  text-align: left;
  transition:
    padding 0.25s,
    background 0.25s;
}
.facts button:hover {
  padding-left: 12px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--fc) 20%, transparent), transparent 75%);
}
.facts .fl {
  font-size: 12.5px;
  color: var(--text-3);
  font-weight: 500;
}
.facts .fv {
  font-size: 15.5px;
  font-weight: 600;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 8px;
}
.facts .fv .mi {
  width: 24px;
  height: 24px;
  flex: none;
}
.facts .fv .mi svg {
  width: 100%;
  height: 100%;
  display: block;
}
.facts .fn {
  font-size: 14px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.facts .fn::after {
  content: " →";
  color: var(--text-3);
  transition: color 0.2s;
}
.facts button:hover .fn::after {
  color: var(--fc);
}
@media (max-width: 520px) {
  .facts button {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 2px;
  }
  .facts .fl {
    grid-column: 1 / -1;
  }
  .plRow .sep {
    display: none;
  }
}
.heroViz {
  position: relative;
  width: 100%;
  max-width: 540px;
  justify-self: end;
  margin-bottom: 76px;
}
@media (max-width: 900px) {
  .heroViz {
    margin: 10px -10% 0;
  }
}
.heroViz svg#hero {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1;
  cursor: pointer;
}
/* Hero centre: the crest floats on a soft spotlight that fades the chords out behind it, no panel. */
.heroBadge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  isolation: isolate;
}
.heroBadge::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 44%;
  width: 150%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--bg) 92%, transparent) 0%,
    color-mix(in srgb, var(--bg) 80%, transparent) 45%,
    color-mix(in srgb, var(--bg) 35%, transparent) 72%,
    transparent 100%
  );
}
.heroBadge::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 38%;
  width: 80%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--hero-c) 45%, transparent), transparent);
  filter: blur(10px);
  transition: background 0.8s;
}
.heroBadge .bc {
  width: 72%;
  aspect-ratio: 1;
  margin: 0 auto;
}
.heroBadge .bc img,
.heroBadge .bc svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.heroBadge .bc img {
  filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, 0.7)) drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 28px color-mix(in srgb, var(--hero-c) 55%, transparent));
}
.heroBadge .bc.pop > * {
  animation: crestIn 0.7s cubic-bezier(0.2, 0.8, 0.2, 1.15) both;
}
@keyframes crestIn {
  from {
    opacity: 0;
    transform: scale(0.82) translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.heroBadge .bn {
  font-size: clamp(15px, 1.7vw, 20px);
  font-weight: 800;
  margin-top: 10px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.heroBadge .bs {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 2px;
}
/* Analysis readouts in the corners of the hero figure */
.hud .hc {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-left: 10px;
  border-left: 2px solid var(--hero-c, var(--text-3));
  transition: border-color 0.6s;
  max-width: 30%;
}
.hud .tl {
  left: 8%;
  top: 7%;
}
.hud .tr {
  right: 8%;
  top: 7%;
}
.hud .bl {
  left: 8%;
  bottom: 6.5%;
}
.hud .br {
  right: 8%;
  bottom: 6.5%;
}
.hud .hk {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
.hud b {
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 750;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hud .hs {
  font-size: 11.5px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hud.swap .hc > * {
  animation: hudIn 0.5s ease both;
}
@keyframes hudIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}
.crop i {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 0 solid color-mix(in srgb, var(--text) 35%, transparent);
}
.crop i:nth-child(1) {
  left: 4%;
  top: 3%;
  border-width: 1px 0 0 1px;
}
.crop i:nth-child(2) {
  right: 4%;
  top: 3%;
  border-width: 1px 1px 0 0;
}
.crop i:nth-child(3) {
  left: 4%;
  bottom: 3%;
  border-width: 0 0 1px 1px;
}
.crop i:nth-child(4) {
  right: 4%;
  bottom: 3%;
  border-width: 0 1px 1px 0;
}
.fig {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 56px);
  text-align: center;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.heroCtl {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ctl {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--hair);
  display: grid;
  place-items: center;
  color: var(--text-2);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  transition:
    border-color 0.2s,
    color 0.2s;
}
.ctl:hover {
  border-color: var(--text);
  color: var(--text);
}
.ctl svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}
.prog {
  width: 90px;
  height: 2px;
  border-radius: 2px;
  background: var(--hair);
  overflow: hidden;
  margin: 0 6px;
}
.prog i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--hero-c, var(--text));
  box-shadow: 0 0 10px var(--hero-c, transparent);
}

/* ==================== 5. Sections ==================== */
.section {
  padding-block: 76px;
}
.section.alt {
  background: var(--bg-alt);
}
.secHead {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 14px 30px;
  margin-bottom: 30px;
}
.secHead h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.secHead p {
  color: var(--text-2);
  font-size: 16px;
  max-width: 32em;
  font-weight: 500;
  line-height: 1.5;
}
.secHead .sk {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--live-c);
  margin-bottom: 8px;
  max-width: none;
}

/* ==================== 6. Club grid ==================== */
.glance {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.mini {
  position: relative;
  background: var(--tile);
  border-radius: 18px;
  padding: 8px 10px 14px;
  text-align: center;
  box-shadow: 0 0 0 1px var(--hair);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.mini:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--cc) 55%, transparent),
    0 16px 30px -16px color-mix(in srgb, var(--cc) 70%, transparent);
}
.mini[aria-pressed="true"] {
  box-shadow:
    0 0 0 2px var(--cc),
    0 16px 30px -16px color-mix(in srgb, var(--cc) 70%, transparent);
}
.mini svg {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  display: block;
}
.mini svg image {
  transition: transform 0.3s cubic-bezier(0.3, 0.7, 0.2, 1.2);
  transform-origin: center;
  transform-box: fill-box;
}
.mini:hover svg image {
  transform: scale(1.08);
}
.mini .nm {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini .st {
  display: block;
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 1px;
  white-space: nowrap;
}
.mini .st i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sc);
  margin-right: 5px;
  vertical-align: 0;
}
.mini path.draw {
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  animation: draw 1.2s cubic-bezier(0.3, 0.6, 0.2, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* ==================== 7. Crest tiles ==================== */
/* Filled version shows on hover and selection. */
.cf {
  opacity: 0;
  transition: opacity 0.35s ease;
}
.rows button:hover .cf,
.bar:hover .cf,
.facts button:hover .cf,
.solid .cf {
  opacity: 1;
}

/* ==================== 8. Club stage and info column ==================== */
.stageCard {
  background: var(--tile);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  overflow: hidden;
}
@media (max-width: 920px) {
  .stageCard {
    grid-template-columns: minmax(0, 1fr);
  }
}
.netCol {
  position: relative;
  padding: 18px;
  min-width: 0;
}
.netCol svg {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1;
}
.egoBar {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  z-index: 2;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--track);
  color: var(--text);
  transition: background 0.2s;
}
.chip:hover {
  background: color-mix(in srgb, var(--track) 70%, var(--text) 12%);
}
.netHint {
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
  padding: 0 18px 4px;
}
.infoCol {
  border-left: 1px solid var(--hair);
  padding: 30px 30px 34px;
  min-width: 0;
  max-height: 860px;
  overflow-y: auto;
}
@media (max-width: 920px) {
  .infoCol {
    border-left: 0;
    border-top: 1px solid var(--hair);
    max-height: none;
  }
}
.teamHd {
  display: flex;
  align-items: center;
  gap: 14px;
}
.teamHd .ic {
  width: 52px;
  height: 52px;
  flex: none;
}
.teamHd .ic svg {
  width: 100%;
  height: 100%;
  display: block;
}
.teamHd h3 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}
.teamHd .sub {
  font-size: 13.5px;
  color: var(--text-2);
  margin-top: 2px;
}
.backLink {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
}
.backLink:hover {
  color: var(--text);
}
.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.kpi b {
  display: block;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.kpi span {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.3;
  display: block;
  margin-top: 3px;
}
.tag {
  display: inline-block;
  margin-top: 18px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--tc);
  background: color-mix(in srgb, var(--tc) 12%, transparent);
}
.blk {
  margin-top: 30px;
}
.blk h4 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.blk .note {
  font-size: 13.5px;
  color: var(--text-2);
  margin-bottom: 12px;
}
.bars {
  display: grid;
  gap: 4px;
}
.bar {
  display: grid;
  grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr) 3.4em;
  align-items: center;
  gap: 12px;
  padding: 7px 8px;
  margin: 0 -8px;
  border-radius: 10px;
  text-align: left;
  transition: background 0.2s;
}
.bar:hover {
  background: var(--bg-alt);
}
.bar .nm {
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar .nm small {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--text-2);
}
.bar .tr {
  display: block;
  height: 6px;
  border-radius: 6px;
  background: var(--track);
  overflow: hidden;
}
.bar .fl {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 6px;
  background: var(--tc);
  transition: width 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bar .v {
  font-size: 13px;
  color: var(--text-2);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.bar.lead .nm {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bar .mi {
  width: 20px;
  height: 20px;
  flex: none;
}
.bar .mi svg {
  width: 100%;
  height: 100%;
  display: block;
}
.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.rows button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  margin: 0 -8px;
  width: calc(100% + 16px);
  border-radius: 10px;
  text-align: left;
  transition: background 0.2s;
}
.rows button:hover {
  background: var(--bg-alt);
}
.rows .l {
  flex: 1;
  min-width: 0;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rows .r {
  font-size: 13px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  flex: none;
}
.rows .chev {
  color: var(--text-3);
  font-size: 15px;
}
.rows .mi {
  width: 20px;
  height: 20px;
  flex: none;
}
.rows .mi svg {
  width: 100%;
  height: 100%;
  display: block;
}
.clusters {
  display: grid;
  gap: 10px;
}
.cl {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
}
.cl i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  margin-top: 5px;
  background: var(--sw);
}
.cl b {
  color: var(--text);
  font-weight: 600;
}

.vtog {
  display: flex;
  gap: 22px;
  margin-top: 22px;
  border-bottom: 1px solid var(--hair);
}
.vtog button {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-3);
  padding: 0 0 10px;
  position: relative;
  transition: color 0.2s;
}
.vtog button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--tc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.vtog button[aria-pressed="true"] {
  color: var(--text);
}
.vtog button[aria-pressed="true"]::after {
  transform: none;
}
.vtog button:hover {
  color: var(--text);
}
.egoBack {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  padding: 6px 4px;
}
.egoBack:hover {
  color: var(--text);
}

/* ==================== 9. Network marks and tooltip ==================== */
#net .edge,
#hero .edge {
  fill: none;
  stroke-linecap: round;
  transition: opacity 0.3s;
}
#net .hit {
  fill: none;
  stroke: transparent;
  cursor: pointer;
  pointer-events: stroke;
}
#net .edge.flow {
  stroke-dasharray: 14 8;
  animation: flow 0.9s linear infinite;
}
#net .edge.flow.rev {
  animation-direction: reverse;
}
@keyframes flow {
  to {
    stroke-dashoffset: -44;
  }
}
#net .node {
  cursor: pointer;
}
#net .node circle,
#hero .node circle {
  stroke: var(--tile);
}
#net .node text,
#hero .node text {
  font-family: var(--sans);
  font-weight: 600;
  fill: var(--text);
  paint-order: stroke;
  stroke: var(--tile);
  stroke-width: 5px;
  stroke-linejoin: round;
  pointer-events: none;
  letter-spacing: -0.01em;
}
#hero .node circle {
  stroke: var(--bg);
}
#hero .node text {
  stroke: var(--bg);
}
#net.dimming .edge:not(.hot) {
  opacity: 0.06 !important;
}
#net.dimming .node:not(.hot) {
  opacity: 0.25;
}
.node {
  transition: opacity 0.3s;
}
.tip {
  position: absolute;
  pointer-events: none;
  z-index: 5;
  background: color-mix(in srgb, var(--tile) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
  max-width: 240px;
  box-shadow:
    0 10px 30px -10px rgba(0, 0, 0, 0.35),
    0 0 0 0.5px var(--hair);
  opacity: 0;
  transform: scale(0.97);
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.tip.on {
  opacity: 1;
  transform: none;
}
.tip b {
  font-size: 14px;
}
.tip .s {
  color: var(--text-2);
}

/* ==================== 10. Duo sheet ==================== */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.scrim.on {
  opacity: 1;
  pointer-events: auto;
}
.sheet {
  position: fixed;
  z-index: 41;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(460px, 100vw);
  background: var(--tile);
  box-shadow: -20px 0 60px -20px rgba(0, 0, 0, 0.35);
  transform: translateX(104%);
  transition: transform 0.45s cubic-bezier(0.3, 0.7, 0.15, 1);
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.sheet.on {
  transform: none;
}
.sheetHd {
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--hair);
}
.sheetHd .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.closeBtn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--track);
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  color: var(--text-2);
}
.sheetHd h3 {
  font-size: 26px;
  font-weight: 700;
  margin-top: 10px;
  line-height: 1.1;
}
.dirs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.dir {
  background: var(--bg-alt);
  border-radius: 14px;
  padding: 12px 14px;
  min-width: 0;
}
.dir b {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: block;
  line-height: 1.1;
}
.dir span {
  font-size: 12.5px;
  color: var(--text-2);
}
.sumLine {
  font-size: 13.5px;
  color: var(--text-2);
  margin-top: 12px;
}
.filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.filters button {
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--track);
  color: var(--text-2);
  transition:
    background 0.2s,
    color 0.2s;
}
.filters button[aria-pressed="true"] {
  background: var(--text);
  color: var(--tile);
}
.sheetBody {
  overflow-y: auto;
  padding: 4px 24px 30px;
  flex: 1;
}
.mHd {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-2);
  padding: 18px 0 6px;
  font-weight: 500;
}
.mHd b {
  color: var(--text);
  font-weight: 600;
}
.play {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--hair);
  animation: rise 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes rise {
  from {
    opacity: 0.001;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.play svg {
  width: 64px;
  height: 48px;
  display: block;
  border-radius: 8px;
}
.play .t {
  font-size: 14.5px;
  line-height: 1.35;
}
.play .t b {
  font-weight: 600;
}
.play .m {
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 2px;
}
.goalPill {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--tc);
  border-radius: 5px;
  padding: 1px 6px;
  margin-right: 6px;
  vertical-align: 1px;
}
.empty {
  color: var(--text-2);
  font-size: 14px;
  padding: 16px 0;
}

/* ==================== 11. League panels ==================== */
.bento {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.panel {
  background: var(--tile);
  border-radius: var(--r-xl);
  padding: 22px 26px 24px;
  min-width: 0;
  box-shadow: var(--shadow);
  position: relative;
}
.pHd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.panel .k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.ptabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--hair);
}
.ptabs button {
  font-size: 12px;
  font-weight: 650;
  padding: 5px 11px;
  border-radius: 7px;
  color: var(--text-2);
  transition:
    background 0.25s,
    color 0.25s;
}
.ptabs button:hover {
  color: var(--text);
}
.ptabs button[aria-pressed="true"] {
  background: var(--live-c);
  color: #fff;
}
.panel .d {
  font-size: 13.5px;
  color: var(--text-2);
  margin-bottom: 4px;
}
.pane[hidden] {
  display: none;
}
.pane .facts button {
  padding: 9px 4px;
  grid-template-columns: minmax(0, 1fr) auto;
  row-gap: 1px;
}
.pane .facts .fl {
  grid-column: 1 / -1;
  font-size: 11.5px;
}
.chartBox {
  margin-top: 10px;
  overflow-x: auto;
}
.chartBox svg {
  display: block;
  width: 100%;
  height: auto;
}
.ax text {
  font-family: var(--sans);
  font-size: 11px;
  fill: var(--text-3);
}
.ax line {
  stroke: var(--hair);
}
.ax path {
  display: none;
}

/* ==================== 12. Clustering: chance-creation styles ==================== */
.styWrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
.styChart {
  padding: 14px 16px 16px;
}
.styChart .chartBox {
  margin-top: 0;
}
.axNote {
  font-size: 12px;
  color: var(--text-3);
  margin: 6px 6px 0;
}
#cSty .hull {
  transition: opacity 0.3s;
}
#cSty .pt {
  transition: opacity 0.3s;
}
#cSty .clab {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  paint-order: stroke;
  stroke: var(--tile);
  stroke-width: 6px;
  stroke-linejoin: round;
  pointer-events: none;
  transition: opacity 0.3s;
}
#cSty .axl {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  fill: var(--text-3);
}
#cSty.focus .hull:not(.on),
#cSty.focus .pt:not(.on),
#cSty.focus .clab:not(.on) {
  opacity: 0.12;
}
.styTip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  width: 220px;
  padding: 10px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--tile) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 12px 30px -12px rgba(0, 0, 0, 0.4),
    0 0 0 1px var(--hair);
  font-size: 12.5px;
  line-height: 1.45;
  opacity: 0;
  transition: opacity 0.15s;
}
.styTip.on {
  opacity: 1;
}
.styTip b {
  font-size: 14px;
  display: block;
}
.styTip .s {
  color: var(--sc);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.styTip .r {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-2);
}
.styTip .r span:last-child {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.styCards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
.styCard {
  background: var(--tile);
  border-radius: 16px;
  padding: 14px 16px 14px;
  box-shadow: 0 0 0 1px var(--hair);
  cursor: default;
  transition:
    box-shadow 0.25s,
    transform 0.25s;
}
.styCard:hover,
.styCard.on {
  box-shadow:
    0 0 0 1.5px var(--sc),
    0 14px 30px -18px var(--sc);
  transform: translateY(-2px);
}
.styCard .sh {
  display: flex;
  align-items: center;
  gap: 8px;
}
.styCard .sh i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sc);
  box-shadow: 0 0 10px var(--sc);
}
.styCard .sh b {
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.01em;
}
.styCard .sh span {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.styCard p {
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 4px;
}
.prof {
  display: grid;
  gap: 3px;
  margin-top: 10px;
}
.pr {
  display: grid;
  grid-template-columns: 7.2em minmax(0, 1fr) 2.6em;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-3);
}
.pr .pb {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: var(--track);
}
.pr .pb::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -2px;
  bottom: -2px;
  width: 1px;
  background: var(--text-3);
  opacity: 0.6;
}
.pr .pb i {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 3px;
  background: var(--sc);
}
.pr .z {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
}
.mem {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
}
.mem button {
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 6px;
  transition: transform 0.2s;
}
.mem button:hover {
  transform: scale(1.18);
}
.mem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ==================== 13. Method ==================== */
.pipe {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: none;
}
.pipe li {
  position: relative;
  background: var(--tile);
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: 0 0 0 1px var(--hair);
  display: flex;
  flex-direction: column;
}
.pipe li + li::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 34px;
  width: 14px;
  height: 2px;
  background: linear-gradient(90deg, var(--hair), var(--live-c));
}
.pipe .pn {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--live-c);
  border-radius: 5px;
  padding: 2px 6px;
  align-self: flex-start;
}
.pipe h4 {
  font-size: 17px;
  margin: 12px 0 4px;
  letter-spacing: -0.02em;
}
.pipe p {
  font-size: 13.5px;
  color: var(--text-2);
  flex: 1;
}
.pipe code,
.method .fx {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11.5px;
  color: var(--text-2);
}
.pipe code {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--hair);
}
.method .fx {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--tile);
  box-shadow: inset 0 0 0 1px var(--hair);
  line-height: 1.5;
}
.notes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 28px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--hair);
}
.notes h5 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 10px;
}
.notes p {
  font-size: 14px;
  color: var(--text-2);
}
.stack {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.stack li {
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px var(--hair);
}
.cav {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--text-2);
}
.cav li::marker {
  color: var(--live-c);
}
.method {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
@media (max-width: 860px) {
  .method {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .method {
    grid-template-columns: minmax(0, 1fr);
  }
}
.method h4 {
  font-size: 19px;
  margin: 10px 0 6px;
  letter-spacing: -0.02em;
}
.method p {
  font-size: 15px;
  color: var(--text-2);
}
.method svg {
  width: 40px;
  height: 40px;
}

/* ==================== 14. Analysis term cards ==================== */
.term {
  position: absolute;
  z-index: 60;
  width: 300px;
  padding: 14px 16px 12px;
  border-radius: 12px;
  background: #161618;
  color: #f5f5f7;
  box-shadow:
    0 18px 40px -12px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  font-size: 13px;
  line-height: 1.5;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.term.on {
  opacity: 1;
  transform: none;
}
.term .tk {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--live-c);
}
.term .tt {
  font-size: 15px;
  font-weight: 700;
  margin-top: 2px;
  letter-spacing: -0.01em;
}
.term .td {
  color: #b8b8be;
  margin-top: 6px;
}
.term .tv {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 3px;
}
.term .tv div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.term .tv span {
  color: #8e8e94;
}
.term .tv b {
  font-weight: 650;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ==================== 15. Footer and motion preferences ==================== */
footer {
  padding-block: 26px 40px;
  border-top: 1px solid var(--hair);
  font-size: 12.5px;
  color: var(--text-3);
}
footer .inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

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

/* ===================== Editorial layer =====================
   Journal-style finish: serif display and prose, small-caps labels, hairlines instead of soft shadows,
   squarer corners, calmer colour. Delete this whole block to return to the previous look. */
:root {
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --r-xl: 12px;
  --r-lg: 8px;
}
.hero h1,
.secHead h2,
.teamHd h3,
.sheetHd h3,
.wordmark span,
.heroBadge .bn {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.wordmark span {
  font-size: 19px;
}
.hero h1 {
  font-size: clamp(48px, 4.8vw, 68px);
  line-height: 1;
  letter-spacing: -0.025em;
}
.hero h1 span {
  font-style: italic;
  color: var(--hero-c, var(--text));
}
.tagline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--text);
  max-width: 28em;
}
.lede,
.secHead p,
.panel .d,
.styCard p,
.pipe p,
.method p:not(.fx),
.notes p,
.cav,
.axNote {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}
.secHead p {
  font-size: 17.5px;
  font-weight: 400;
  color: var(--text-2);
}
.panel .d,
.styCard p,
.axNote {
  font-size: 14.5px;
}
.pipe p,
.method p:not(.fx),
.cav,
.notes p {
  font-size: 15.5px;
}
.axNote b,
.fig b {
  font-family: var(--sans);
  font-weight: 700;
  font-style: normal;
  color: var(--text);
  letter-spacing: 0.02em;
}
.axNote {
  color: var(--text-2);
  margin: 10px 6px 0;
  max-width: 62em;
}

/* labels: small caps, one weight, no pills */
.eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  font-weight: 600;
}
.eyebrow span {
  padding: 0;
  background: none;
  box-shadow: none;
  color: var(--hero-c, var(--text));
}
.eyebrow span::after {
  content: "·";
  margin-left: 10px;
  color: var(--text-3);
}
.secHead .sk {
  font-family: var(--sans);
  color: var(--text-3);
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}
.secHead {
  align-items: start;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
  margin-bottom: 34px;
}
.secHead h2 {
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.08;
}
.fig {
  font-family: var(--serif);
  font-size: 13.5px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: var(--text-2);
}
.hud .hk,
.panel .k,
.notes h5,
.term .tk {
  letter-spacing: 0.14em;
}
.pipe code,
.method .fx {
  font-family: var(--mono);
}

/* calmer colour and light */
.hero::before {
  opacity: 0.55;
}
.hero h1 span,
.tagline {
  text-shadow: none;
}
.heroBadge::after {
  opacity: 0.6;
}
.kicker i {
  box-shadow: none;
}

/* buttons and chips: flat, square */
.cta {
  height: 40px;
  padding: 0 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}
.cta.pri {
  box-shadow: none;
}
.cta.pri:hover {
  box-shadow: none;
  filter: brightness(1.08);
  transform: none;
}
.methods a,
.methods button {
  border-radius: 4px;
  font-weight: 500;
  padding: 5px 10px;
}
.ptabs {
  border-radius: 6px;
}
.ptabs button {
  border-radius: 4px;
  font-weight: 600;
}

/* surfaces: hairlines, not soft shadows */
.panel,
.stageCard,
.tileB {
  box-shadow: 0 0 0 1px var(--hair);
}
.mini,
.styCard,
.pipe li {
  border-radius: 8px;
}
.mini:hover {
  transform: none;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--cc) 70%, transparent);
}
.mini[aria-pressed="true"] {
  box-shadow: 0 0 0 1.5px var(--cc);
}
.styCard:hover,
.styCard.on {
  transform: none;
  box-shadow: 0 0 0 1.5px var(--sc);
}
.styCard .sh i {
  box-shadow: none;
}
.styCard .sh b {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.mini .nm {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0;
}
.pipe .pn {
  background: none;
  color: var(--live-c);
  padding: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.pipe h4,
.method h4 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.pipe li + li::before {
  background: var(--hair);
}
.method .fx {
  border-radius: 4px;
  background: transparent;
}
.stack li {
  border-radius: 4px;
  font-weight: 500;
}
.term,
.styTip,
.tip {
  border-radius: 6px;
}
.term .tt {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
}
.term .td {
  font-family: var(--serif);
  font-size: 14px;
}
footer b {
  color: var(--text-2);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 14px;
}
/* =================== end editorial layer =================== */
