/* ============================================================
   18新利中文官方站 · shared site kit  /assets/site.css
   夜间球场数据指挥中心：深墨绿基底 · 荧光青数据 · 橙色角标
   ============================================================ */

/* ---------- 1. reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #0A1F18;
  color: #F4F0E6;
  font-family: "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
time { font-variant-numeric: tabular-nums; }

/* ---------- 2. tokens ---------- */
:root {
  --ink-950: #050B09;
  --pitch-900: #0A1F18;
  --pitch-800: #113329;
  --pitch-700: #1B4A3C;
  --cyan-500: #38F2D0;
  --cyan-300: #9FFBE8;
  --orange-500: #FF7A2F;
  --warm-white: #F4F0E6;
  --mist-300: #B8C9C2;
  --teal-600: #1FA88A;

  --surface: rgba(17, 51, 41, 0.72);
  --surface-deep: rgba(10, 31, 24, 0.9);
  --line: rgba(56, 242, 208, 0.14);
  --line-strong: rgba(56, 242, 208, 0.34);

  --font-title: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-data: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --wrap: 1240px;
  --gutter: clamp(18px, 4vw, 44px);
  --header-h: 74px;
}

/* ---------- 3. base typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--warm-white);
}

p { line-height: 1.8; }

strong { color: var(--warm-white); font-weight: 700; }

::selection {
  background: rgba(56, 242, 208, 0.28);
  color: var(--warm-white);
}

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan-500);
  outline-offset: 3px;
  border-radius: 6px;
}

#main-content { scroll-margin-top: calc(var(--header-h) + 14px); }

/* ---------- 4. skip link ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--cyan-500);
  color: #04211B;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transform: translateY(-180%);
  transition: transform 0.22s ease;
}

.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- 5. layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 840px; }

.section { padding-block: clamp(44px, 6vw, 84px); }
.section--tight { padding-block: clamp(28px, 4vw, 50px); }

/* ---------- 6. buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn--primary {
  background: var(--cyan-500);
  color: #04211B;
  box-shadow: 0 12px 28px -16px rgba(56, 242, 208, 0.9);
}

.btn--primary:hover { background: var(--cyan-300); transform: translateY(-1px); }

.btn--ghost {
  border-color: rgba(56, 242, 208, 0.4);
  background: rgba(56, 242, 208, 0.06);
  color: var(--cyan-300);
}

.btn--ghost:hover {
  border-color: var(--cyan-500);
  background: rgba(56, 242, 208, 0.14);
  color: var(--warm-white);
}

.btn--quiet {
  border-color: rgba(184, 201, 194, 0.28);
  color: var(--mist-300);
}

.btn--quiet:hover { border-color: var(--mist-300); color: var(--warm-white); }

/* ---------- 7. header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
}

.site-header__bar {
  position: relative;
  background: linear-gradient(180deg, rgba(5, 11, 9, 0.88), rgba(5, 11, 9, 0));
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header[data-scrolled="true"] .site-header__bar {
  background: rgba(8, 26, 21, 0.97);
  border-bottom-color: var(--line);
  box-shadow: 0 22px 44px -30px #000;
  backdrop-filter: blur(10px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  max-width: var(--wrap);
  min-height: var(--header-h);
  margin-inline: auto;
  padding: 12px var(--gutter);
}

/* brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  border: 1px solid rgba(56, 242, 208, 0.35);
  background: linear-gradient(150deg, #133A2F, #0A1F18);
  box-shadow: inset 0 0 18px rgba(56, 242, 208, 0.18);
}

.brand__mark::before {
  content: "18";
  font-family: var(--font-data);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--cyan-500);
}

.brand__mark-dot {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 0 0 3px var(--pitch-900);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--warm-white);
}

.brand__sub {
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--mist-300);
}

/* navigation */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  margin-inline: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.1vw, 16px);
}

.nav__item { position: relative; }

.nav__link {
  position: relative;
  display: inline-block;
  padding: 9px 4px;
  font-size: 14px;
  color: var(--mist-300);
  transition: color 0.2s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal-600);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.24s ease, background-color 0.24s ease;
}

.nav__link:hover { color: var(--warm-white); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__link[aria-current="page"] { color: var(--cyan-300); font-weight: 600; }

.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--cyan-500);
}

.nav__cta { display: none; }

/* header tools */
.header__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
}

.header__stamp {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mist-300);
  white-space: nowrap;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan-500);
}

.header__stamp .dot {
  box-shadow: 0 0 0 4px rgba(56, 242, 208, 0.14);
  animation: stamp-pulse 2.6s ease-in-out infinite;
}

@keyframes stamp-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 4px rgba(56, 242, 208, 0.14); }
  50% { opacity: 0.62; box-shadow: 0 0 0 7px rgba(56, 242, 208, 0.06); }
}

/* badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.badge--alert {
  background: rgba(255, 122, 47, 0.14);
  border-color: rgba(255, 122, 47, 0.5);
  color: #FFC49B;
}

.badge--alert:hover {
  background: rgba(255, 122, 47, 0.24);
  border-color: var(--orange-500);
  transform: translateY(-1px);
}

.badge__tag {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 6px;
  background: var(--orange-500);
  color: #1A0B03;
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 700;
}

/* nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid rgba(56, 242, 208, 0.35);
  border-radius: var(--radius-pill);
  background: rgba(17, 51, 41, 0.6);
  color: var(--cyan-300);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.24s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.nav-toggle__label { white-space: nowrap; }

/* scroll progress */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 3;
  height: 2px;
  background: rgba(56, 242, 208, 0.08);
}

.scroll-progress > span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--teal-600), var(--cyan-500) 72%, var(--orange-500));
}

/* ---------- 8. footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink-950);
  color: var(--mist-300);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 242, 208, 0.5), transparent);
}

.site-footer__glow {
  position: absolute;
  inset: auto -12% -70% -12%;
  height: 460px;
  pointer-events: none;
  background: radial-gradient(58% 100% at 50% 100%, rgba(31, 168, 138, 0.3), transparent 72%);
}

.footer__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(130px, 1fr)) minmax(230px, 1.35fr);
  gap: clamp(26px, 3vw, 44px);
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(44px, 6vw, 80px) var(--gutter) clamp(26px, 3vw, 40px);
}

.footer__brand { min-width: 0; }

.brand--footer { margin-bottom: 0; }

.brand--footer .brand__name { font-size: 22px; }
.brand--footer .brand__sub { color: rgba(184, 201, 194, 0.75); }

.footer__tagline {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist-300);
}

.footer__stamp {
  margin-top: 14px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(184, 201, 194, 0.8);
}

.footer__signal {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 24px;
  margin-top: 18px;
}

.footer__signal span {
  width: 4px;
  height: 44%;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan-500), rgba(56, 242, 208, 0.12));
  opacity: 0.75;
}

.footer__signal span:nth-child(odd) { height: 64%; }
.footer__signal span:nth-child(3n) { height: 100%; }
.footer__signal span:nth-child(4n) { height: 32%; opacity: 0.45; }

.footer__col { min-width: 0; }

.footer__title {
  margin-bottom: 14px;
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--cyan-300);
}

.footer__list { display: grid; gap: 10px; }

.footer__link {
  font-size: 14px;
  color: var(--mist-300);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer__link:hover { color: var(--cyan-300); padding-left: 3px; }

/* contact chips */
.contact-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 10px;
  padding: 10px 12px;
  border: 1px solid rgba(56, 242, 208, 0.16);
  border-radius: var(--radius-md);
  background: rgba(17, 51, 41, 0.66);
}

.contact-chip + .contact-chip { margin-top: 10px; }

.contact-chip__label {
  grid-column: 1 / -1;
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(184, 201, 194, 0.82);
}

.contact-chip__value {
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--warm-white);
  overflow-wrap: anywhere;
}

.contact-chip__btn {
  padding: 4px 10px;
  border: 1px solid rgba(56, 242, 208, 0.34);
  border-radius: var(--radius-pill);
  background: rgba(56, 242, 208, 0.07);
  color: var(--cyan-300);
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.contact-chip__btn:hover {
  border-color: var(--cyan-500);
  background: rgba(56, 242, 208, 0.16);
  color: var(--warm-white);
}

.contact-chip__btn[data-state="ok"] {
  border-color: var(--cyan-500);
  background: var(--cyan-500);
  color: #04211B;
}

.contact-chip__btn[data-state="fail"] {
  border-color: rgba(255, 122, 47, 0.6);
  background: rgba(255, 122, 47, 0.16);
  color: #FFC49B;
}

.footer__address {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(184, 201, 194, 0.9);
}

.footer__meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 18px var(--gutter) 30px;
  border-top: 1px solid rgba(56, 242, 208, 0.12);
  font-size: 12px;
  color: rgba(184, 201, 194, 0.85);
}

.footer__copy {
  margin-right: auto;
  font-family: var(--font-data);
  letter-spacing: 0.04em;
}

.footer__icp {
  font-family: var(--font-data);
  letter-spacing: 0.04em;
}

.footer__meta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__meta-links a {
  color: var(--mist-300);
  transition: color 0.2s ease;
}

.footer__meta-links a:hover { color: var(--cyan-300); }

/* ---------- 9. shared page components ---------- */
.page-head { padding-block: clamp(34px, 5vw, 70px) clamp(18px, 3vw, 32px); }

.page-head__title {
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.1;
}

.page-head__lede {
  margin-top: 18px;
  max-width: 62ch;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.85;
  color: var(--mist-300);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan-300);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange-500);
}

/* breadcrumbs */
.breadcrumbs { padding-top: 18px; }

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(184, 201, 194, 0.72);
}

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

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  color: rgba(56, 242, 208, 0.5);
}

.breadcrumbs__link { color: inherit; transition: color 0.2s ease; }
.breadcrumbs__link:hover { color: var(--cyan-300); }
.breadcrumbs__current { color: var(--cyan-300); }

/* grid */
.grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 26px);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.grid--aside { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr); }

/* cards */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(17, 51, 41, 0.86), rgba(10, 31, 24, 0.88));
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.card--flat { background: rgba(17, 51, 41, 0.5); }

.card--accent {
  border-color: rgba(255, 122, 47, 0.4);
  background: linear-gradient(160deg, rgba(38, 30, 22, 0.7), rgba(10, 31, 24, 0.9));
}

.card__title {
  font-family: var(--font-title);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.32;
  color: var(--warm-white);
}

.card__text {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--mist-300);
}

.card__meta {
  margin-top: 12px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(184, 201, 194, 0.8);
}

/* pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid rgba(56, 242, 208, 0.28);
  border-radius: var(--radius-pill);
  background: rgba(56, 242, 208, 0.07);
  color: var(--cyan-300);
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.pill--orange {
  border-color: rgba(255, 122, 47, 0.45);
  background: rgba(255, 122, 47, 0.1);
  color: #FFC49B;
}

.pill--muted {
  border-color: rgba(184, 201, 194, 0.26);
  background: rgba(184, 201, 194, 0.06);
  color: var(--mist-300);
}

/* data */
.data-num {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat__value {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--cyan-500);
}

.stat__label {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mist-300);
}

/* image container base */
.media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(27, 74, 60, 0.9), rgba(10, 31, 24, 0.95));
}

.media__frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #0A1F18;
  background-image:
    radial-gradient(120% 140% at 18% 0%, rgba(56, 242, 208, 0.22), transparent 60%),
    radial-gradient(90% 120% at 92% 100%, rgba(255, 122, 47, 0.16), transparent 66%),
    repeating-linear-gradient(90deg, rgba(244, 240, 230, 0.06) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(244, 240, 230, 0.05) 0 1px, transparent 1px 48px);
}

.media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media__caption {
  padding: 12px 16px;
  border-top: 1px solid rgba(56, 242, 208, 0.12);
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mist-300);
}

.media--wide .media__frame { aspect-ratio: 21 / 9; }
.media--tall .media__frame { aspect-ratio: 4 / 5; }

/* prose */
.prose {
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.9;
  color: var(--mist-300);
}

.prose > * + * { margin-top: 16px; }

.prose h2 {
  margin-top: 36px;
  font-family: var(--font-title);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.35;
  color: var(--warm-white);
}

.prose h3 {
  margin-top: 26px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--cyan-300);
}

.prose ul { display: grid; gap: 8px; }

.prose ul li {
  position: relative;
  padding-left: 18px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--cyan-500);
}

.prose a {
  color: var(--cyan-300);
  border-bottom: 1px solid rgba(56, 242, 208, 0.4);
}

.prose a:hover { border-bottom-color: var(--cyan-500); }

/* reveal protocol */
html[data-reveal-ready="true"] [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

html[data-reveal-ready="true"] [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 10. responsive ---------- */
@media (max-width: 1180px) {
  .header__stamp { display: none; }
}

@media (max-width: 1024px) {
  .header__cta { display: none; }
  .footer__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col--contact { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

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

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    max-height: calc(100vh - var(--header-h) - 8px);
    overflow: auto;
    padding: 12px var(--gutter) 22px;
    background: rgba(7, 23, 19, 0.985);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 34px 64px -32px #000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  }

  .nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__item { border-bottom: 1px solid rgba(56, 242, 208, 0.1); }

  .nav__link {
    display: block;
    padding: 14px 4px;
    font-size: 16px;
  }

  .nav__link::after { display: none; }

  .nav__link[aria-current="page"] {
    padding-left: 16px;
    color: var(--cyan-500);
  }

  .nav__link[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 18px;
    border-radius: 3px;
    background: var(--cyan-500);
    transform: translateY(-50%);
  }

  .nav__cta {
    display: inline-flex;
    justify-content: center;
    margin-top: 16px;
  }

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

@media (max-width: 720px) {
  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__meta { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer__copy { margin-right: 0; }
}

@media (max-width: 600px) {
  .brand__sub { display: none; }
  .brand__name { font-size: 18px; }
  .brand__mark { width: 34px; height: 34px; border-radius: 11px; }
  .badge { padding: 6px 9px; font-size: 11px; }
  .header__tools { gap: 8px; }
  .media__frame { aspect-ratio: 4 / 3; }
  .media--tall .media__frame { aspect-ratio: 3 / 4; }
}

@media (max-width: 420px) {
  .header__badge { display: none; }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  html[data-reveal-ready="true"] [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .card:hover,
  .btn:hover { transform: none; }
}
