:root {
  --paper: #F4F0E4;
  --paper-2: #FCFAF3;
  --ink: #101C2C;
  --ink-2: #241C16;
  --green: #1E6B45;
  --green-2: #3F8E64;
  --orange: #D9502A;
  --orange-2: #F08A5D;
  --slate: #5A6B7A;
  --line: #D9D1BE;
  --yellow: #E9B949;
  --white: #FCFAF3;
  --font: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shell-max: 1440px;
  --gutter: clamp(18px, 4.2vw, 72px);
  --shadow: 0 18px 48px rgba(16, 28, 44, 0.12);
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  min-height: 100vh;
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(217, 209, 190, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 209, 190, 0.14) 1px, transparent 1px);
  background-size: 56px 56px;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
textarea,
select {
  font-family: var(--font);
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

h1 {
  font-size: clamp(42px, 7.5vw, 96px);
  font-weight: 800;
  font-stretch: condensed;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

h2 {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 800;
  font-stretch: condensed;
  line-height: 1;
  letter-spacing: -0.04em;
}

h3 {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--orange);
  color: var(--white);
}

[hidden] {
  display: none !important;
}

#main-content {
  scroll-margin-top: 140px;
}

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.shell {
  width: min(var(--shell-max), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

.label--light {
  color: var(--orange-2);
}

.note {
  font-size: 12px;
  line-height: 1.65;
  color: var(--slate);
}

.lede {
  max-width: 38ch;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.72;
  color: var(--ink);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  color: var(--slate);
}

.kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--orange);
}

.skip-link {
  position: fixed;
  left: clamp(16px, 4vw, 32px);
  top: -120px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--orange);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: top 180ms ease;
}

.skip-link:focus {
  top: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--green) 0 34%, var(--paper) 34% 36%, var(--orange) 36% 46%, var(--ink) 46% 100%);
}

.progress-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  z-index: 3;
  pointer-events: none;
  background: transparent;
}

.progress-rail__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

.utility-strip {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid rgba(244, 240, 228, 0.18);
}

.utility-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 32px;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.utility-strip__index {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  color: var(--paper);
  white-space: nowrap;
}

.utility-strip__slash {
  color: var(--orange-2);
}

.utility-strip__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  color: rgba(244, 240, 228, 0.62);
  white-space: nowrap;
}

.utility-strip__divider {
  color: rgba(244, 240, 228, 0.28);
}

.status-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green-2);
  animation: statusPulse 2.6s infinite;
}

@keyframes statusPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(63, 142, 100, 0.55);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(63, 142, 100, 0);
  }
}

.header-main {
  position: relative;
}

.header-main__inner {
  display: grid;
  grid-template-columns: minmax(210px, auto) 1fr auto;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
}

.brand__mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  background: var(--green);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.1em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%);
}

.brand__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand__name {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.brand__sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--slate);
  white-space: nowrap;
}

.cmd-nav {
  min-width: 0;
}

.cmd-nav__list {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 1px;
}

.cmd-nav__item {
  display: flex;
}

.cmd-nav__link {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 11px 9px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.cmd-nav__link:hover {
  color: var(--green);
  border-bottom-color: var(--green);
  background: rgba(30, 107, 69, 0.06);
}

.cmd-nav__link[aria-current="page"] {
  color: var(--green);
  border-bottom-color: var(--orange);
}

.cmd-nav__link[aria-current="page"] .cmd-nav__index {
  color: var(--orange);
}

.cmd-nav__index {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
  color: var(--slate);
  letter-spacing: 0;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.header-tools__link {
  padding-bottom: 2px;
  color: var(--slate);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
  transition: color 180ms ease, border-color 180ms ease;
}

.header-tools__link:hover {
  color: var(--orange);
  border-color: var(--orange);
}

.header-tools__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: background-color 180ms ease, color 180ms ease;
}

.header-tools__cta:hover {
  background: var(--ink);
  color: var(--paper);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--green);
  color: var(--green);
}

.nav-toggle__box {
  display: inline-grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle__box span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle__label {
  line-height: 1;
}

@media (max-width: 1240px) and (min-width: 1101px) {
  .cmd-nav__link {
    padding-inline: 7px;
    font-size: 11px;
  }

  .brand__sub {
    display: none;
  }
}

@media (max-width: 1100px) {
  .header-main__inner {
    grid-template-columns: 1fr auto;
    min-height: 74px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .cmd-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    max-height: calc(100dvh - 112px);
    overflow: auto;
    background: var(--ink);
    color: var(--paper);
    border-bottom: 1px solid rgba(244, 240, 228, 0.2);
    box-shadow: 0 24px 48px rgba(16, 28, 44, 0.26);
  }

  .site-header[data-open] .cmd-nav,
  .cmd-nav[data-open] {
    display: block;
  }

  .cmd-nav__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    padding: 14px var(--gutter);
    background: rgba(244, 240, 228, 0.12);
  }

  .cmd-nav__item {
    display: block;
    background: var(--ink);
  }

  .cmd-nav__link {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    padding: 14px 12px;
    color: var(--paper);
    font-size: 15px;
    border-bottom: 0;
    border-left: 3px solid transparent;
  }

  .cmd-nav__link:hover {
    background: rgba(244, 240, 228, 0.08);
    color: var(--white);
    border-left-color: var(--green-2);
  }

  .cmd-nav__link[aria-current="page"] {
    background: rgba(30, 107, 69, 0.32);
    color: var(--yellow);
    border-left-color: var(--orange);
  }

  .cmd-nav__index {
    color: rgba(244, 240, 228, 0.48);
  }

  .site-header[data-open] .nav-toggle__box span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .site-header[data-open] .nav-toggle__box span:nth-child(2) {
    opacity: 0;
  }

  .site-header[data-open] .nav-toggle__box span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

@media (max-width: 720px) {
  .utility-strip__inner {
    gap: 8px;
    font-size: 9px;
  }

  .utility-strip__meta {
    display: none;
  }

  .header-main__inner {
    min-height: 68px;
  }

  .brand__mark {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .brand__name {
    font-size: 17px;
  }

  .brand__sub {
    display: none;
  }

  .header-tools__cta {
    display: none;
  }

  .header-tools__link {
    font-size: 10px;
  }

  .cmd-nav__list {
    grid-template-columns: 1fr;
    padding: 10px 16px 16px;
  }

  .nav-toggle {
    padding-inline: 10px;
  }

  .nav-toggle__label {
    display: none;
  }
}

/* Footer */
.site-footer {
  position: relative;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.footer-service {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(38px, 5.5vw, 68px) 0;
  background: var(--ink);
  color: var(--paper);
  border-top: 4px solid var(--green);
}

.footer-service::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(135deg, rgba(244, 240, 228, 0.055) 0 1px, transparent 1px 13px);
  opacity: 0.8;
  pointer-events: none;
}

.footer-service::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -56px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(244, 240, 228, 0.16);
  transform: rotate(45deg);
  pointer-events: none;
}

.footer-service__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 2fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.footer-service__lead {
  max-width: 34ch;
}

.footer-service__title {
  max-width: 9ch;
  margin-top: 10px;
  font-size: clamp(30px, 3.7vw, 52px);
  font-weight: 800;
  font-stretch: condensed;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.footer-service__note {
  max-width: 32ch;
  margin-top: 16px;
  color: rgba(244, 240, 228, 0.62);
  font-size: 13px;
  line-height: 1.7;
}

.footer-service__action {
  margin-top: 18px;
}

.footer-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 36px);
}

.contact-card {
  min-width: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(244, 240, 228, 0.24);
}

.contact-card__label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  color: var(--orange-2);
}

.contact-card__value {
  margin-top: 8px;
  color: var(--paper);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.contact-card__value.mono {
  font-family: var(--mono);
}

.contact-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  margin-top: 10px;
}

.copy-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid rgba(244, 240, 228, 0.32);
  background: transparent;
  color: rgba(244, 240, 228, 0.78);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.copy-btn:hover {
  border-color: var(--orange-2);
  color: var(--orange-2);
  background: rgba(240, 138, 93, 0.08);
}

.copy-status {
  min-height: 1em;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--yellow);
}

.copy-status[data-state="error"] {
  color: var(--orange-2);
}

.footer-main {
  padding: clamp(42px, 5vw, 76px) 0;
  background: var(--paper);
}

.footer-main__inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 2fr);
  gap: clamp(32px, 5vw, 84px);
}

.footer-brand-block {
  max-width: 32ch;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.footer-brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.footer-brand__text {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.footer-tagline {
  margin-top: 16px;
  color: var(--slate);
  font-size: 15px;
  line-height: 1.7;
}

.footer-meta {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--slate);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
}

.footer-col {
  min-width: 0;
}

.footer-col__title {
  padding-top: 10px;
  margin-bottom: 14px;
  border-top: 1px solid var(--ink);
  color: var(--slate);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-list {
  display: grid;
  gap: 8px;
}

.footer-list__link {
  display: inline-block;
  width: fit-content;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.footer-list__link:hover {
  color: var(--orange);
  border-color: var(--orange);
}

.footer-legal {
  padding: 16px 0;
  background: var(--ink-2);
  color: rgba(244, 240, 228, 0.66);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.footer-legal__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

.footer-legal__meta {
  font-family: var(--mono);
  color: var(--paper);
}

.footer-icp {
  font-family: var(--mono);
  color: rgba(244, 240, 228, 0.8);
}

.footer-legal__note {
  color: rgba(244, 240, 228, 0.46);
}

@media (max-width: 980px) {
  .footer-service__inner {
    grid-template-columns: 1fr;
  }

  .footer-service__title {
    max-width: 14ch;
  }

  .footer-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-main__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .footer-contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-legal__inner {
    display: grid;
    justify-items: start;
  }
}

@media (max-width: 460px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }
}

/* Shared page components */
.section {
  position: relative;
  padding-block: clamp(48px, 8vw, 104px);
}

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(220px, 4fr);
  align-items: end;
  gap: clamp(24px, 4vw, 64px);
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section__index {
  display: block;
  margin-bottom: 12px;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.section__title {
  max-width: 14ch;
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 800;
  font-stretch: condensed;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.section__lede {
  max-width: 38ch;
  margin-top: 14px;
  color: var(--slate);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.75;
}

.band--ink {
  background: var(--ink);
  color: var(--paper);
}

.band--green {
  background: var(--green);
  color: var(--paper);
}

.band--grid {
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(90, 107, 122, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 107, 122, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
}

.band--ink .section__title,
.band--green .section__title {
  color: var(--paper);
}

.band--ink .section__lede,
.band--green .section__lede {
  color: rgba(244, 240, 228, 0.72);
}

.band--ink .label,
.band--green .label {
  color: var(--orange-2);
}

@media (max-width: 820px) {
  .section__head {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-align: center;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

.btn--primary:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--ghost {
  border-color: var(--ink);
  background: var(--paper-2);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--text {
  min-height: auto;
  padding-inline: 0;
  border-bottom: 1px solid var(--orange);
  color: var(--orange);
  border-radius: 0;
}

.btn--text:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.breadcrumbs {
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--slate);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs__link {
  color: var(--slate);
  border-bottom: 1px solid transparent;
}

.breadcrumbs__link:hover {
  color: var(--orange);
  border-color: var(--orange);
}

.breadcrumbs__sep {
  color: var(--line);
}

.breadcrumbs__current {
  color: var(--ink);
  font-weight: 700;
}

.panel {
  position: relative;
  padding: clamp(18px, 3vw, 32px);
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.panel--cut {
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.panel--board {
  background-image:
    linear-gradient(rgba(90, 107, 122, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 107, 122, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}

.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.panel__title {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.panel__meta {
  color: var(--slate);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.stat {
  display: grid;
  gap: 4px;
}

.stat__value {
  font-family: var(--mono);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat__label {
  color: var(--slate);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.tag--green {
  color: var(--green);
  background: rgba(30, 107, 69, 0.08);
}

.tag--orange {
  color: var(--orange);
  background: rgba(217, 80, 42, 0.08);
}

.tag--yellow {
  color: var(--ink-2);
  background: rgba(233, 185, 73, 0.28);
}

.score-strip {
  background: var(--ink);
  color: var(--paper);
  border-block: 1px solid rgba(244, 240, 228, 0.18);
}

.score-strip__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--green-2) transparent;
}

.score-strip__item {
  flex: 0 0 clamp(250px, 32vw, 360px);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 12px;
  padding: 16px 18px;
  border-right: 1px solid rgba(244, 240, 228, 0.16);
  scroll-snap-align: start;
}

.score-strip__league {
  grid-column: 1 / -1;
  color: var(--orange-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.score-strip__team {
  align-self: end;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.score-strip__score {
  align-self: center;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: right;
}

.score-strip__meta {
  grid-column: 1 / -1;
  color: rgba(244, 240, 228, 0.55);
  font-family: var(--mono);
  font-size: 10px;
}

.timeline {
  position: relative;
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.timeline__item {
  position: relative;
  padding-bottom: 28px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 5px;
  width: 9px;
  height: 9px;
  background: var(--orange);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--line);
}

.timeline__time {
  margin-bottom: 4px;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.timeline__body {
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}

.band--ink .timeline__item::before {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px rgba(244, 240, 228, 0.24);
}

.band--ink .timeline__body {
  color: rgba(244, 240, 228, 0.82);
}

.table-wrap {
  overflow-x: auto;
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.data-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: rgba(217, 209, 190, 0.22);
  color: var(--slate);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.data-table td.num,
.data-table .num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}

.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.col-span-5 { grid-column: span 5; }
.col-span-6 { grid-column: span 6; }
.col-span-7 { grid-column: span 7; }
.col-span-8 { grid-column: span 8; }
.col-span-9 { grid-column: span 9; }

@media (max-width: 900px) {
  .grid-12 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .col-span-3,
  .col-span-4,
  .col-span-5 {
    grid-column: span 3;
  }

  .col-span-6,
  .col-span-7,
  .col-span-8,
  .col-span-9 {
    grid-column: span 6;
  }
}

@media (max-width: 600px) {
  .grid-12 {
    grid-template-columns: 1fr;
  }

  .col-span-2,
  .col-span-3,
  .col-span-4,
  .col-span-5,
  .col-span-6,
  .col-span-7,
  .col-span-8,
  .col-span-9 {
    grid-column: 1 / -1;
  }
}

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.tabs__tab {
  appearance: none;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-bottom: 0;
  background: transparent;
  color: var(--slate);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.tabs__tab:hover {
  background: rgba(30, 107, 69, 0.06);
  color: var(--green);
}

.tabs__tab[aria-selected="true"],
.tabs__tab.is-active {
  background: var(--green);
  color: var(--paper);
  border-color: var(--green);
}

.tabs__panel {
  padding-top: 18px;
}

.tabs__panel[hidden] {
  display: none !important;
}

.tabs__panel.is-active {
  animation: tabIn 180ms ease both;
}

@keyframes tabIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  min-height: 180px;
  background: var(--ink);
  border: 1px solid var(--line);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 240, 228, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 240, 228, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  mix-blend-mode: screen;
  opacity: 0.45;
}

.media-frame::after {
  content: "MG / FIELD NOTE";
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  padding: 2px 6px;
  background: rgba(16, 28, 44, 0.55);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.media-frame picture,
.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.media-frame img {
  filter: saturate(0.62) contrast(1.04);
}

.media-frame--board {
  aspect-ratio: 4 / 3;
  background: var(--green);
}

.media-frame--tablet {
  aspect-ratio: 3 / 4;
  background: var(--ink);
}

.media-frame__caption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 2;
  max-width: calc(100% - 120px);
  padding: 4px 8px;
  background: rgba(16, 28, 44, 0.7);
  color: var(--paper);
  font-size: 11px;
  line-height: 1.4;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.js [data-reveal].is-visible,
.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .status-dot {
    animation: none;
  }
}
