/* Hallmark · pre-emit critique: P5 H5 E4 S5 R4 V5 · v4 zedai-DNA section-faithful */
@import url("tokens.css");

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

html, body {
  margin: 0;
  overflow-x: clip;
}

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  overflow-wrap: anywhere;
  min-width: 0;
}

p { margin: 0; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: var(--page-gutter);
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ───────────────────────── nav ───────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(10, 10, 16, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-medium), border-color var(--dur-medium);
}

.nav.scrolled {
  background: rgba(10, 10, 16, 0.88);
  border-bottom-color: var(--color-line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.4vw, 2.2rem);
}

.nav-links a:not(.btn) {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 72px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-2);
  transition: color var(--dur-short);
  white-space: nowrap;
}

.nav-links a:not(.btn):hover { color: var(--color-text); }

.nav-links a.active { color: var(--color-cyan); }

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-accent));
}

.nav-burger {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--color-text);
}

/* ───────────────────────── buttons ───────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 1.05rem 1.7rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short), background var(--dur-short), border-color var(--dur-short);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }

.btn-grad {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: 0 10px 32px -10px rgba(47, 107, 255, 0.65);
}

.btn-grad:hover { box-shadow: 0 14px 40px -10px rgba(47, 107, 255, 0.8); }

.btn-dark {
  background: rgba(10, 10, 16, 0.82);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
}

.btn-dark:hover { border-color: rgba(255, 255, 255, 0.32); }

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.42); }

.btn-pill {
  background: var(--grad-pill);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 1.1rem 2rem;
  box-shadow: 0 16px 44px -12px rgba(35, 196, 186, 0.65);
}

.btn-nav {
  background: var(--grad-cta);
  color: #fff;
  padding: 0.78rem 1.4rem;
  font-size: 0.92rem;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 26px -10px rgba(47, 107, 255, 0.7);
}

/* ───────────────────────── eyebrows ───────────────────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-cyan);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.eyebrow.no-dash::before { content: none; }

.eyebrow.center::after {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.light .eyebrow { color: var(--light-teal); }

/* ───────────────────────── hero ───────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: clip;
  padding: 7.5rem 0 5rem;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 24s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: none; }
  html { scroll-behavior: auto; }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(0deg, var(--color-bg) 0%, transparent 26%),
    linear-gradient(90deg, rgba(8, 8, 14, 0.82) 0%, rgba(8, 8, 14, 0.45) 48%, rgba(8, 8, 14, 0.2) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero h1 {
  max-width: 13ch;
  margin-top: var(--space-md);
  font-size: var(--text-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  background: var(--grad-silver);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede {
  max-width: 52ch;
  margin-top: var(--space-md);
  font-size: var(--text-lg);
  color: var(--color-text-2);
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

/* ───────────────────────── logos strip ───────────────────────── */

.logos { padding: var(--space-2xl) 0 var(--space-lg); }

.logos-cap {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-3);
  margin-bottom: var(--space-lg);
  padding-inline: var(--page-gutter);
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 5.5rem;
  width: max-content;
  padding-right: 5.5rem;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

.wordmark {
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: rgb(206, 213, 226);
  opacity: 0.42;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.wordmark.serif { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 600; }

.wordmark.caps {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ───────────────────────── stats band ───────────────────────── */

.stats-band { padding: var(--space-2xl) 0; }

.stats-band .cells {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--color-mint-line);
}

.stats-band .stat {
  padding: 2.6rem 1.5rem;
  text-align: center;
}

.stats-band .stat + .stat { border-left: 1px solid var(--color-mint-line); }

.stats-band b {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 4.4vw, 3.6rem);
  line-height: 1.05;
  color: var(--color-mint);
}

.stats-band span {
  display: block;
  margin-top: 0.7rem;
  font-size: 1.02rem;
  color: var(--color-text);
}

/* ───────────────────────── product (Kaptfy) ───────────────────────── */

.product { padding: var(--space-3xl) 0; }

.product .grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.product h2 {
  margin-top: var(--space-md);
  font-size: var(--text-display-s);
}

.product h2 .silver {
  background: var(--grad-silver);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.product .lede {
  margin-top: var(--space-md);
  color: var(--color-text-2);
  max-width: 56ch;
}

.feats {
  list-style: none;
  margin: var(--space-xl) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-lg);
}

.feats li {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.icon-sq {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--grad-icon);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 8px 22px -8px rgba(37, 99, 235, 0.65);
}

.feats h3 { font-size: 1.18rem; }

.feats p {
  margin-top: 0.35rem;
  font-size: 0.98rem;
  color: var(--color-text-2);
}

.product .actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.shot {
  margin: 0;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-card);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}

.shot img { width: 100%; height: auto; }

/* ───────────────────────── waves ───────────────────────── */

.wave {
  display: block;
  width: 100%;
  height: clamp(46px, 7vw, 100px);
  margin-bottom: -1px;
}

.wave.flip { transform: scaleX(-1); }

/* ───────────────────────── light sections ───────────────────────── */

.light {
  background: var(--light-bg);
  color: var(--light-text);
}

section.light { padding: var(--space-3xl) 0; }

section.light.tight { padding-top: var(--space-xl); }

.sec-head { max-width: 760px; }

.sec-head h2 {
  margin-top: var(--space-md);
  font-size: var(--text-display-s);
  color: var(--light-text);
}

.sec-head h2 .tw { color: var(--light-teal); }

.sec-head .sub {
  margin-top: var(--space-sm);
  font-size: var(--text-lg);
  color: var(--light-text-2);
  max-width: 54ch;
}

.sec-head.center {
  margin-inline: auto;
  text-align: center;
}

.sec-head.center .sub { margin-inline: auto; }

/* ───────────────────────── accordion carousel ───────────────────────── */

.acc {
  display: flex;
  gap: 14px;
  margin-top: var(--space-2xl);
  height: 500px;
}

.acc-item {
  position: relative;
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background-color: rgb(10, 14, 22);
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  text-align: left;
  font-family: var(--font-body);
  transition: flex 0.55s var(--ease-out);
}

.acc-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 9, 16, 0.3), rgba(6, 9, 16, 0.55) 55%, rgba(6, 9, 16, 0.86));
}

.acc-item.is-active { flex: 7; }

.acc-rail {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 0;
  opacity: 1;
  transition: opacity var(--dur-medium);
}

.acc-rail .num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.acc-rail .vt {
  writing-mode: vertical-rl;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.acc-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: clamp(1.4rem, 3vw, 2.6rem);
  opacity: 0;
  translate: 0 14px;
  transition: opacity 0.35s 0.18s, translate 0.35s 0.18s;
  pointer-events: none;
}

.acc-item.is-active .acc-rail { opacity: 0; }

.acc-item.is-active .acc-body { opacity: 1; translate: 0 0; pointer-events: auto; }

.badge-num {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-emerald);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 0.34rem 0.85rem;
}

.acc-body h3 {
  margin-top: 0.9rem;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: #fff;
}

.acc-tag {
  margin-top: 0.3rem;
  font-weight: 700;
  color: var(--color-cyan);
}

.acc-desc {
  margin-top: 0.7rem;
  max-width: 70ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.99rem;
}

.acc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.acc-pills span {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(8, 12, 20, 0.5);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.85rem;
}

.acc-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.2rem;
  font-weight: 700;
  color: var(--color-cyan);
}

/* ───────────────────────── light stats row ───────────────────────── */

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--light-line);
  text-align: center;
}

.stats-row b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1.05;
  color: var(--light-text);
}

.stats-row span {
  display: block;
  margin-top: 0.45rem;
  color: var(--light-text-2);
}

/* ───────────────────────── phases ───────────────────────── */

.phases {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: var(--space-2xl);
}

.phase {
  background: var(--light-card);
  border: 1px solid var(--light-line);
  border-radius: var(--radius-lg);
  padding: 1.9rem;
  box-shadow: 0 24px 50px -36px rgba(22, 34, 64, 0.35);
  display: flex;
  flex-direction: column;
}

.phase .ghost {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.8rem;
  line-height: 1;
  color: var(--light-teal-ghost);
}

.phase h3 {
  margin-top: 1.1rem;
  font-size: 1.22rem;
  color: var(--light-text);
}

.phase p {
  margin-top: 0.7rem;
  font-size: 0.95rem;
  color: var(--light-text-2);
  flex: 1;
}

.wk {
  align-self: flex-start;
  margin-top: 1.3rem;
  border: 1px solid var(--light-pill-line);
  background: var(--light-pill-bg);
  color: var(--light-teal-ink);
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 0.34rem 0.95rem;
  white-space: nowrap;
}

/* ───────────────────────── reach (split card) ───────────────────────── */

.reach { padding: var(--space-2xl) 0 var(--space-3xl); }

.reach-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  background: rgb(17, 17, 26);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.reach-photo {
  position: relative;
  min-height: 420px;
}

.reach-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reach-body { padding: clamp(2rem, 4.5vw, 3.6rem); }

.reach-body h2 {
  margin-top: var(--space-md);
  font-size: var(--text-display-s);
}

.reach-body h2 .silver {
  background: var(--grad-silver);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.reach-body .lede {
  margin-top: var(--space-md);
  color: var(--color-text-2);
  max-width: 50ch;
}

.blts {
  list-style: none;
  margin: var(--space-lg) 0 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.blts li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
}

.blt-ic {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(76, 201, 232, 0.5);
  background: rgba(76, 201, 232, 0.08);
  display: grid;
  place-items: center;
  color: var(--color-cyan);
}

.reach-body .actions { margin-top: var(--space-xl); }

.micro {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--color-text-3);
}

/* ───────────────────────── cases ───────────────────────── */

.cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  margin-top: var(--space-2xl);
}

.case {
  background: var(--light-card);
  border: 1px solid var(--light-line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 24px 50px -36px rgba(22, 34, 64, 0.3);
  display: flex;
  flex-direction: column;
}

.case .mark {
  align-self: flex-end;
  color: var(--light-teal);
}

.case > p {
  margin-top: 1rem;
  color: var(--light-text-2);
  flex: 1;
}

.case .sep {
  height: 1px;
  background: var(--light-line);
  margin: 1.4rem 0 1.3rem;
}

.case-foot {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.avatar {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

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

.avatar.v { background: linear-gradient(150deg, rgb(244, 162, 97), rgb(214, 108, 77)); }
.avatar.me { background: linear-gradient(150deg, rgb(100, 116, 139), rgb(51, 65, 85)); }

.case-foot b { display: block; font-size: 0.98rem; color: var(--light-text); }

.case-foot small { color: var(--light-text-2); font-size: 0.85rem; }

.case-link {
  margin-left: auto;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--light-teal);
  white-space: nowrap;
}

/* ───────────────────────── faq ───────────────────────── */

.faq-list {
  max-width: 860px;
  margin: var(--space-2xl) auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--light-line);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 1.5rem 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--light-text);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary svg {
  flex: none;
  transition: transform var(--dur-medium) var(--ease-out);
  color: var(--light-text-2);
}

.faq-item[open] summary svg { transform: rotate(180deg); }

.faq-item .a {
  padding: 0 0 1.6rem;
  color: var(--light-text-2);
  max-width: 70ch;
}

/* ───────────────────────── footer ───────────────────────── */

.foot {
  position: relative;
  background: rgb(10, 10, 16);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.foot::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-line);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.3fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.foot .blurb {
  margin-top: var(--space-md);
  color: var(--color-text-2);
  font-size: 0.96rem;
  max-width: 34ch;
}

.foot h4 {
  margin: 0 0 1.1rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-3);
}

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.foot ul a {
  color: var(--color-text-2);
  transition: color var(--dur-short);
}

.foot ul a:hover { color: var(--color-text); }

.foot .mailrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-text);
  font-weight: 600;
}

.foot .mailrow svg { color: var(--color-cyan); }

.foot .micro { margin-top: 0.8rem; }

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-line);
  color: var(--color-text-3);
  font-size: 0.9rem;
}

/* ───────────────────────── to-top ───────────────────────── */

.to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 60;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(18, 20, 30, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-medium);
}

.to-top.show { opacity: 1; pointer-events: auto; }

/* ───────────────────────── responsive ───────────────────────── */

@media (max-width: 960px) {
  .product .grid { grid-template-columns: minmax(0, 1fr); }
  .reach-card { grid-template-columns: minmax(0, 1fr); }
  .reach-photo { min-height: 300px; }
  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cases { grid-template-columns: minmax(0, 1fr); }
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav-burger { display: grid; place-items: center; }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 10, 16, 0.97);
    border-bottom: 1px solid var(--color-line);
    padding: 0.6rem var(--page-gutter) 1.2rem;
    display: none;
  }

  .nav-links.open { display: flex; }

  .nav-links a:not(.btn) { height: 52px; }

  .nav-links a.active::after { content: none; }

  .nav-links .btn-nav { margin-top: 0.8rem; }

  .acc {
    flex-direction: column;
    height: auto;
  }

  .acc-item {
    flex: none;
    min-height: 64px;
    transition: min-height 0.45s var(--ease-out);
  }

  .acc-item.is-active { flex: none; min-height: 460px; }

  .acc-rail {
    flex-direction: row;
    justify-content: flex-start;
    gap: 1rem;
    padding: 0 1.3rem;
  }

  .acc-rail .vt { writing-mode: horizontal-tb; letter-spacing: 0.14em; }
}

@media (max-width: 700px) {
  .stats-band .cells { grid-template-columns: minmax(0, 1fr); }
  .stats-band .stat + .stat {
    border-left: 0;
    border-top: 1px solid var(--color-mint-line);
  }
  .phases { grid-template-columns: minmax(0, 1fr); }
  .hero .actions .btn { flex: 1 1 100%; }
  .case-link { margin-left: 0; }
  .case-foot { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .stats-row { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}
