/* ==========================================================================
   博奥体育 · 共享样式  /assets/site.css
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  background: #05080F;
}

body,
h1, h2, h3, h4, h5, p,
ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }

ul, ol { list-style: none; }

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

button { font: inherit; color: inherit; background: none; border: 0; }

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

[hidden] { display: none !important; }

/* 2. Tokens --------------------------------------------------------------- */
:root {
  --ink-900: #05080F;
  --ink-800: #0B1524;
  --ink-700: #152740;
  --line: #24405F;

  --paper: #F4EEE3;
  --paper-2: #DED4C4;

  --cyan: #2FF0D0;
  --flame: #FF5A2B;
  --amber: #FFB43C;
  --steel: #93A8C4;
  --white: #EAF1FA;
  --teal: #0B7A6A;

  --font-display: "Oswald", "Archivo Narrow", "Barlow Condensed", "Arial Narrow",
                  "Helvetica Neue", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas,
               "Liberation Mono", "Courier New", monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 3.2vw, 40px);
  --edge: clamp(14px, 2.6vw, 34px);

  --cut-sm: 10px;
  --cut: 16px;
  --cut-lg: 26px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --header-h: 64px;
}

/* 3. Base ----------------------------------------------------------------- */
body {
  position: relative;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(36, 64, 95, 0.30) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 64, 95, 0.30) 1px, transparent 1px),
    radial-gradient(120% 70% at 78% -10%, rgba(47, 240, 208, 0.10), transparent 62%),
    radial-gradient(90% 60% at 6% 4%, rgba(255, 90, 43, 0.08), transparent 58%);
  background-size: 64px 64px, 64px 64px, 100% 100%, 100% 100%;
  opacity: 0.55;
}

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

::selection {
  background: var(--cyan);
  color: #04211C;
}

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

.stack {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.6vw, 20px);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.section { position: relative; padding-block: clamp(36px, 6vw, 88px); }
.section--tight { padding-block: clamp(20px, 3vw, 42px); }
.section--ink { background: var(--ink-800); }
.section--paper { background: var(--paper); color: #12181F; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 28px;
  margin-bottom: clamp(18px, 3vw, 36px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.section-head__title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.05;
}

.num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 9vw, 132px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--flame);
}

.rule { height: 1px; background: var(--line); }

.rule--diagonal {
  height: 18px;
  background-image: repeating-linear-gradient(
    102deg,
    rgba(36, 64, 95, 0.9) 0 1px,
    transparent 1px 14px
  );
}

.tick {
  display: inline-block;
  width: 8px;
  height: 8px;
  border: 1px solid var(--cyan);
  transform: rotate(45deg);
}

/* 5. Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.7em 1.15em;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  clip-path: polygon(
    var(--cut-sm) 0, 100% 0,
    100% calc(100% - var(--cut-sm)), calc(100% - var(--cut-sm)) 100%,
    0 100%, 0 var(--cut-sm)
  );
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease);
}

.btn--cta { background: var(--flame); color: #120502; }
.btn--cta:hover { background: #FF7A52; }

.btn--cyan { background: var(--cyan); color: #04211C; }
.btn--cyan:hover { background: #6FF7DF; }

.btn--ghost { border-color: var(--line); color: var(--steel); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn--paper { background: var(--paper); color: #0B1524; }
.btn--paper:hover { background: #FFFFFF; }

/* 6. Tags / Stats / Plates ------------------------------------------------ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: rgba(21, 39, 64, 0.5);
  color: var(--steel);
}

.tag--flame { color: var(--flame); border-color: rgba(255, 90, 43, 0.5); background: rgba(255, 90, 43, 0.10); }
.tag--cyan { color: var(--cyan); border-color: rgba(47, 240, 208, 0.45); background: rgba(47, 240, 208, 0.08); }
.tag--amber { color: var(--amber); border-color: rgba(255, 180, 60, 0.45); background: rgba(255, 180, 60, 0.08); }
.tag--paper { color: #0B1524; background: var(--paper-2); border-color: var(--paper-2); }

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--ink-700);
  border-left: 2px solid var(--cyan);
}

.stat__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1;
  color: var(--white);
}

.stat__unit {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}

.stat__label { font-size: 13px; color: var(--steel); }

.plate {
  position: relative;
  padding: 16px 18px;
  background: var(--ink-800);
  border: 1px solid var(--line);
  clip-path: polygon(
    0 0, calc(100% - var(--cut)) 0, 100% var(--cut),
    100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))
  );
}

.plate--paper { background: var(--paper); border-color: var(--paper-2); color: #0B1524; }

.plate__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
}

.plate__value {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.15;
  color: var(--white);
}

.plate--paper .plate__value { color: #0B1524; }

.plate__note {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--steel);
}

.plate--paper .plate__note { color: #3A4756; }

/* 7. Figures -------------------------------------------------------------- */
.figure {
  position: relative;
  overflow: hidden;
  background-color: var(--ink-800);
  background-image: repeating-linear-gradient(
    102deg,
    rgba(36, 64, 95, 0.55) 0 2px,
    transparent 2px 12px
  );
  border: 1px solid var(--line);
  clip-path: polygon(
    0 0, calc(100% - var(--cut-lg)) 0, 100% var(--cut-lg),
    100% 100%, var(--cut-lg) 100%, 0 calc(100% - var(--cut-lg))
  );
}

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

.figure--16-9 { aspect-ratio: 16 / 9; }
.figure--4-3 { aspect-ratio: 4 / 3; }
.figure--square { aspect-ratio: 1 / 1; }

.figure--paper {
  border-color: var(--paper-2);
  background-color: var(--paper-2);
  background-image: repeating-linear-gradient(
    102deg,
    rgba(11, 21, 36, 0.14) 0 2px,
    transparent 2px 12px
  );
}

.figure__tag {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(5, 8, 15, 0.84);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

/* 8. Breadcrumbs & grids -------------------------------------------------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--steel);
}

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

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  color: var(--line);
}

.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs__item[aria-current="page"] { color: var(--white); }

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

/* 9. Prose (paper reading area) ------------------------------------------- */
.prose {
  padding: clamp(22px, 3.6vw, 54px);
  background: var(--paper);
  color: #141A22;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  clip-path: polygon(
    0 0, calc(100% - var(--cut-lg)) 0, 100% var(--cut-lg),
    100% 100%, var(--cut-lg) 100%, 0 calc(100% - var(--cut-lg))
  );
}

.prose > * + * { margin-top: 1em; }

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: #0B1524;
}

.prose h2 { font-size: clamp(22px, 2.4vw, 30px); margin-top: 1.6em; }
.prose h3 { font-size: clamp(18px, 1.8vw, 22px); margin-top: 1.4em; }

.prose ul { list-style: disc; padding-left: 1.2em; }
.prose ol { list-style: decimal; padding-left: 1.2em; }
.prose li + li { margin-top: 0.4em; }

.prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: #0B1524; }

.prose code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--paper-2);
  padding: 0.1em 0.35em;
}

.prose blockquote {
  border-left: 3px solid var(--teal);
  padding-left: 1em;
  color: #3A4756;
}

/* 10. Frame guides -------------------------------------------------------- */
.frame-guides {
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
}

.frame-guides__edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(47, 240, 208, 0.35),
    rgba(36, 64, 95, 0.55) 26%,
    rgba(36, 64, 95, 0.14)
  );
}

.frame-guides__edge--left { left: var(--edge); }
.frame-guides__edge--right { right: var(--edge); }

@media (max-width: 1023px) {
  .frame-guides { display: none; }
}

/* 11. Skip link ----------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 0.65em 1em;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  background: var(--cyan);
  color: #04211C;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}

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

/* 12. Header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, #05080F 0%, #08101C 100%);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #04211C;
  background: var(--cyan);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

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

.brand__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-width: 44px;
  min-height: 44px;
  margin-left: auto;
  padding: 0 13px;
  border: 1px solid var(--line);
  color: var(--white);
  cursor: pointer;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

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

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.nav-toggle__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 24px);
  margin-left: auto;
  min-width: 0;
}

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

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  white-space: nowrap;
  transition: color 0.18s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s var(--ease);
}

.nav__link:hover { color: var(--white); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--white); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: clamp(10px, 1.6vw, 22px);
  border-left: 1px solid var(--line);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--steel);
  white-space: nowrap;
}

.header-status__dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--flame);
  box-shadow: 0 0 0 3px rgba(255, 90, 43, 0.18);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  z-index: 2;
  background: linear-gradient(90deg, var(--cyan), var(--amber) 55%, var(--flame));
}

@media (max-width: 1120px) {
  .header-status { display: none; }
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 6px var(--gutter) 20px;
    background: var(--ink-800);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.55);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .nav[data-open] { display: flex; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid rgba(36, 64, 95, 0.65); }

  .nav__link {
    width: 100%;
    min-height: 52px;
    padding: 0 2px;
    font-size: 14px;
  }

  .nav__link::after { bottom: 0; }

  .nav__foot {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 0 0;
    border-left: 0;
  }

  .nav__foot .btn { width: 100%; }
  .header-status { display: flex; white-space: normal; }
}

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

.scorebar {
  display: flex;
  align-items: stretch;
  background: var(--ink-800);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.scorebar__label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #1A0C04;
  background: var(--amber);
}

.scorebar__track {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.scorebar__track::-webkit-scrollbar { height: 4px; }
.scorebar__track::-webkit-scrollbar-track { background: transparent; }
.scorebar__track::-webkit-scrollbar-thumb { background: var(--line); }

.scorebar__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  border-right: 1px solid rgba(36, 64, 95, 0.7);
}

.scorebar__round {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--steel);
  white-space: nowrap;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.scorebar__round:hover {
  color: var(--cyan);
  background: rgba(47, 240, 208, 0.07);
}

.scorebar__state {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--flame);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: clamp(18px, 2.6vw, 40px);
  padding-block: clamp(32px, 5vw, 62px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 34ch;
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-brand__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-note {
  font-size: 14px;
  line-height: 1.7;
  color: var(--steel);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.footer-col__title {
  padding-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  border-bottom: 1px solid var(--line);
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  color: var(--steel);
  transition: color 0.18s var(--ease);
}

.footer-link:hover { color: var(--cyan); }

.footer-text {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--steel);
}

.footer-legal {
  border-top: 1px solid var(--line);
  background: #04060C;
}

.footer-legal__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 26px;
  padding-block: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  line-height: 1.8;
  color: var(--steel);
}

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

@media (max-width: 1080px) {
  .footer-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 720px) {
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-legal__inner { flex-direction: column; align-items: flex-start; }
}

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

/* 14. Grid responsiveness ------------------------------------------------- */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* 15. Motion -------------------------------------------------------------- */
html.js-init [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}

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

@keyframes ping-once {
  0% { box-shadow: 0 0 0 0 rgba(47, 240, 208, 0.55); }
  100% { box-shadow: 0 0 0 14px rgba(47, 240, 208, 0); }
}

.is-ping { animation: ping-once 0.9s var(--ease) 1; }

@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.js-init [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
