/* ============================================================
   ZMS — Detailer rebuild, 2026
   Loaded AFTER styles.css. Black / white / yellow.
   Yellow is an accent of last resort: one highlighted phrase
   or one CTA per screen, never decoration.
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --bg-2: #101010;
  --bg-deep: #050505;
  --text: #ffffff;
  --text-soft: #b6b6b6;
  --text-faint: #7c7c7c;
  --rule: rgba(255, 255, 255, 0.15);
  --rule-soft: rgba(255, 255, 255, 0.08);
  --gold: #e6e6e6;      /* legacy accents go neutral so yellow stays rare */
  --hivis: #ffc719;
  --blue: #cfcfcf;
}

.bg-scrim {
  background: linear-gradient(180deg,
    rgba(5, 5, 5, 0.74) 0%,
    rgba(5, 5, 5, 0.60) 38%,
    rgba(5, 5, 5, 0.88) 100%);
}

/* ---------- shared rhythm ---------- */

.d-sec { padding: clamp(64px, 9vw, 132px) 0; }
.d-sec-tight { padding: clamp(44px, 6vw, 84px) 0; }

.d-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.d-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4.1vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 20ch;
}
.d-h2.wide { max-width: 28ch; }

.d-body {
  color: var(--text-soft);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  max-width: 58ch;
}
.d-body p + p { margin-top: 1.05em; }
.d-body strong { color: var(--text); font-weight: 600; }

.mark { color: var(--hivis); }

/* ---------- hero ---------- */

/* `isolation` gives the hero its own stacking context, so the video's
   z-index is scoped here instead of competing with the page-level
   .bg-scrim (fixed, z-index -1) — which would otherwise paint over it. */
.d-hero {
  position: relative;
  isolation: isolate;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(48px, 7vw, 96px);
  overflow: hidden;
  background: var(--bg-deep);
}
.d-hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* Heavy on the left where the type sits, open on the right so the
   footage stays visible. Plus a floor fade into the next section. */
.d-hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(5,5,5,.90) 0%, rgba(5,5,5,.66) 46%, rgba(5,5,5,.24) 100%),
    linear-gradient(0deg, rgba(5,5,5,.92) 0%, rgba(5,5,5,0) 38%);
}
.d-hero > .wrap { position: relative; z-index: 2; }
.hero-cue { z-index: 2; }
.d-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.05rem, 6vw, 4.3rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  max-width: 17ch;
}
.d-hero .d-body { margin-top: clamp(18px, 2.4vw, 28px); max-width: 52ch; }
.d-hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: clamp(26px, 3.4vw, 38px);
  align-items: center;
}

/* ---------- the moment: offset narrative, deliberately not a grid ---------- */

.d-moment {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}
.d-moment-media { position: relative; }
.d-moment-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.06);
}
.d-moment-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 45%, rgba(5,5,5,.55));
}
@media (max-width: 860px) {
  .d-moment { grid-template-columns: 1fr; }
  .d-moment-media { order: -1; }
}

/* ---------- pull line ---------- */

.d-pull {
  border-left: 3px solid var(--hivis);
  padding: 6px 0 6px 22px;
  margin: clamp(26px, 3.5vw, 40px) 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.3vw, 1.6rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 30ch;
}

/* ---------- the system: connected flow, deliberately unnumbered ---------- */

.d-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(30px, 4vw, 52px);
  border-top: 1px solid var(--rule);
}
.d-flow-step {
  padding: clamp(22px, 2.6vw, 34px) clamp(18px, 2vw, 28px) clamp(26px, 3vw, 38px);
  border-right: 1px solid var(--rule-soft);
  position: relative;
}
.d-flow-step:last-child { border-right: 0; }
.d-flow-step::before {
  content: "";
  position: absolute; top: -1px; left: 0;
  width: 34px; height: 3px;
  background: var(--rule);
}
.d-flow-step.is-key::before { background: var(--hivis); }
.d-flow-when {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.d-flow-step h3 {
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.55vw, 1.2rem);
  font-weight: 650;
  line-height: 1.22;
  margin-bottom: 9px;
  letter-spacing: -0.01em;
}
.d-flow-step p { color: var(--text-soft); font-size: 0.945rem; line-height: 1.55; }

@media (max-width: 900px) {
  .d-flow { grid-template-columns: 1fr 1fr; }
  .d-flow-step:nth-child(2n) { border-right: 0; }
}
@media (max-width: 540px) {
  .d-flow { grid-template-columns: 1fr; }
  .d-flow-step { border-right: 0; border-bottom: 1px solid var(--rule-soft); }
}

/* ---------- what's inside: editorial rows, not cards ---------- */

.d-rows { margin-top: clamp(26px, 3.4vw, 44px); border-top: 1px solid var(--rule); }
.d-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(14px, 3vw, 48px);
  padding: clamp(20px, 2.5vw, 30px) 0;
  border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
}
.d-row h3 {
  font-family: var(--font-display);
  font-size: clamp(1.06rem, 1.75vw, 1.32rem);
  font-weight: 650;
  letter-spacing: -0.01em;
}
.d-row p { color: var(--text-soft); font-size: 1rem; line-height: 1.6; }
@media (max-width: 760px) { .d-row { grid-template-columns: 1fr; gap: 7px; } }

/* ---------- fit / not fit ---------- */

.d-fit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: clamp(26px, 3.4vw, 42px);
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
}
.d-fit > div { background: #0b0b0b; padding: clamp(26px, 3.4vw, 44px); }
.d-fit-yes { border-top: 3px solid var(--hivis); }
.d-fit-no { border-top: 3px solid var(--rule); }
.d-fit h3 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.d-fit p {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.45;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.d-fit-no p { color: var(--text-soft); }
@media (max-width: 720px) { .d-fit { grid-template-columns: 1fr; } }

/* ---------- audit band ---------- */

.d-audit {
  border: 1px solid var(--rule);
  background: linear-gradient(150deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  padding: clamp(30px, 4.4vw, 62px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
}
.d-audit ul { list-style: none; display: grid; gap: 11px; }
.d-audit li {
  color: var(--text-soft);
  padding-left: 20px;
  position: relative;
  font-size: 0.985rem;
  line-height: 1.5;
}
.d-audit li::before {
  content: "";
  position: absolute; left: 0; top: 0.62em;
  width: 8px; height: 1px;
  background: var(--text-faint);
}
@media (max-width: 820px) { .d-audit { grid-template-columns: 1fr; } }

/* ---------- closing cta ---------- */

.d-cta { text-align: center; padding: clamp(64px, 9vw, 128px) 0; }
.d-cta h2 {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(1.9rem, 4.6vw, 3.2rem);
  line-height: 1.07;
  letter-spacing: -0.025em;
  max-width: 20ch;
  margin: 0 auto;
}
.d-cta .d-body { margin: 20px auto 0; }
.d-cta-note {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 22px;
}

/* ---------- misc ---------- */

.d-stat-line {
  display: flex; flex-wrap: wrap;
  gap: clamp(20px, 4vw, 56px);
  margin-top: clamp(24px, 3vw, 38px);
  padding-top: clamp(20px, 2.6vw, 30px);
  border-top: 1px solid var(--rule-soft);
}
.d-stat-line div { max-width: 26ch; }
.d-stat-line dt { font-family: var(--font-display); font-weight: 650; font-size: 1.02rem; margin-bottom: 5px; }
.d-stat-line dd { color: var(--text-soft); font-size: 0.93rem; line-height: 1.5; }

.d-note {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.btn-primary { background: var(--hivis); color: #101010; border-color: var(--hivis); }
.btn-primary:hover { background: #ffd54a; border-color: #ffd54a; }

/* page hero for interior pages */
.d-page-hero { padding: clamp(96px, 13vw, 168px) 0 clamp(40px, 6vw, 72px); }
.d-page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.95rem, 5.2vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 19ch;
}
.d-page-hero .d-body { margin-top: 20px; }
