/* =========================================================================
   ScanUP — Craft layer  ("survey-grade / instrumentation editorial")
   Loaded AFTER scanup.css + scanup-anim.css. Re-skins the visual language:
   confident editorial type, hairline precision surfaces, numbered ledgers
   and matrices instead of uniform cards, disciplined navy/teal.
   ========================================================================= */

/* ---------- Type + shape tokens ---------- */
:root {
  --sans: var(--font-hanken), "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: var(--font-archivo), "Archivo", "Hanken Grotesk", sans-serif;
  --display-exp: "Archivo Expanded", var(--font-archivo), "Archivo", sans-serif;

  --r-sm: 3px; --r-md: 4px; --r-lg: 6px; --r-xl: 8px;
  --shadow-sm: none;
  --shadow-md: 0 1px 0 var(--border);
  /* keep a real elevation only for the platform mockup */
  --shadow-lg: 0 30px 80px rgba(8,23,41,0.22);

  --hair: rgba(15,28,46,0.14);
  --hair-strong: rgba(15,28,46,0.24);
  --hair-teal: rgba(16,179,187,0.34);
}

body { font-family: var(--sans); letter-spacing: -0.005em; }

/* ---------- Headlines: editorial, mixed-case, heavy ---------- */
h1, h2, h3, h4, h5, .display, .h2, .h3 { font-family: var(--display); }
.display, .h2 { text-transform: none; font-weight: 800; letter-spacing: -0.025em; }
.h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.04; }
.h3 { font-weight: 700; letter-spacing: -0.02em; }
.lead { font-weight: 400; color: var(--ink-500); }

/* mono labels stay; tighten + brighten the accent role */
.eyebrow { font-weight: 500; color: var(--blue-600); }
.accent-word { color: var(--blue-600); }

/* ---------- Hero — confident expanded headline ---------- */
.hero--bleed h1 {
  font-family: var(--display-exp);
  font-weight: 800; text-transform: none;
  font-size: clamp(2.6rem, 5.6vw, 4.7rem);
  line-height: 0.98; letter-spacing: -0.03em;
}
.hero .lead { font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: #c4d6dc; }
.hero__caps .cap span { font-family: var(--sans); font-weight: 500; }

/* ---------- Buttons: squared, technical ---------- */
.btn { border-radius: var(--r-md); font-family: var(--sans); font-weight: 600; letter-spacing: 0.01em; }
.btn--primary { box-shadow: none; }
.btn--primary:hover { box-shadow: 0 10px 26px rgba(22,179,187,0.30); }
.btn--ghost { border-width: 1px; }

/* ---------- Nav ---------- */
.nav__links a { font-family: var(--sans); }

/* =========================================================================
   SECTION FRAMING — left-aligned heads with a surveyor's index kicker
   ========================================================================= */
#problem .section-head, #how .section-head, #audience .section-head, #pillars .section-head {
  text-align: left; max-width: 880px; margin-inline: 0;
}
#problem .section-head .lead, #how .section-head .lead,
#audience .section-head .lead, #pillars .section-head .lead { margin-inline: 0; }
#problem .accent-rule, #how .accent-rule, #audience .accent-rule, #pillars .accent-rule { margin-inline: 0; transform-origin: left; }

.section-head[data-kicker]::before {
  content: attr(data-kicker);
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: 20px;
}
.bg-navy .section-head[data-kicker]::before, .bg-navy-deep .section-head[data-kicker]::before { color: var(--blue-400); }
.section-head--center[data-kicker]::before { justify-content: center; }

/* editorial index numbers (real .ix spans injected by JS) */
.ix { display: block; }
.ix--lg {
  grid-column: 1; grid-row: 1 / 3; align-self: start;
  font-family: var(--display-exp); font-weight: 800; font-size: 2.9rem; line-height: 0.9;
  letter-spacing: -0.03em; color: var(--blue-600);
  transition: color .25s ease, transform .25s ease;
}
.ix--lab {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue-600);
}
.ix--code {
  position: absolute; top: 22px; right: 24px;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; color: var(--ink-400);
}

/* =========================================================================
   PROBLEM — numbered editorial ledger (was 5 identical cards)
   ========================================================================= */
#problem .grid { display: block; max-width: 1000px; }
#problem .pcard {
  display: grid; grid-template-columns: 92px 1fr; align-items: start; gap: 4px 30px;
  background: transparent; border: 0; border-top: 1px solid var(--hair);
  border-radius: 0; box-shadow: none; padding: 30px 8px;
  text-align: left; transition: background .25s ease, padding .25s ease;
}
#problem .pcard:last-child { border-bottom: 1px solid var(--hair); }
#problem .pcard__ic { display: none; }
#problem .pcard h4 {
  grid-column: 2; align-self: center;
  font-family: var(--display); font-size: 1.35rem; font-weight: 700; text-transform: none;
  letter-spacing: -0.02em; color: var(--ink-900); margin: 0 0 6px;
}
#problem .pcard p { grid-column: 2; color: var(--ink-500); font-size: 1rem; max-width: 62ch; }
#problem .pcard:hover { background: linear-gradient(90deg, rgba(16,179,187,0.05), transparent 60%); padding-left: 18px; transform: none; box-shadow: none; border-color: var(--hair); }
#problem .pcard:hover .ix--lg { color: var(--navy-800); transform: translateX(2px); }

/* =========================================================================
   SOLUTION — hairline spec matrix (was 6 floating cards)
   =========================================================================*/
#solution .split { grid-template-columns: 0.9fr 1.7fr; }
#solution .grid.grid-3 {
  grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--hair); border: 1px solid var(--hair);
}
#solution .feat {
  background: var(--paper); border: 0; border-radius: 0; box-shadow: none;
  padding: 30px 26px 34px; position: relative;
}
#solution .feat::after { height: 2px; background: var(--blue-500); }
#solution .feat__top { margin-bottom: 22px; }
#solution .feat__ic {
  width: 42px; height: 42px; border-radius: 0; background: transparent;
  border: 1px solid var(--hair-teal); color: var(--blue-600);
}
#solution .feat h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.02em; }
#solution .feat:hover { background: #fbfdff; transform: none; box-shadow: none; }

/* =========================================================================
   AUDIENCE — hairline 2x2 matrix with sample plates + index (was 4 cards)
   =========================================================================*/
#audience .grid.grid-4 {
  grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--hair); border: 1px solid var(--hair);
}
#audience .aud {
  background: var(--paper); border: 0; border-radius: 0; box-shadow: none;
  padding: 40px; position: relative;
}
#audience .aud:hover { transform: none; background: #fbfdff; }
#audience .aud__ic { display: none; }
#audience .ix--lab { margin-bottom: 22px; }
#audience .aud__media { height: 184px; border-radius: 0; margin-bottom: 26px; overflow: hidden; }
#audience .aud__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
#audience .aud h3 { font-family: var(--display); font-size: 1.45rem; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 12px; }
#audience .aud p { font-size: 1rem; }

/* =========================================================================
   PILLARS — refined columns, big surveyor numerals
   =========================================================================*/
#pillars .plite { border-top: 1px solid var(--hair); padding-top: 8px; }
#pillars .plite__col { text-align: left; padding: 36px clamp(20px, 2.4vw, 38px); }
#pillars .plite__col:not(:last-child)::after { top: 36px; bottom: 36px; background: var(--hair); }
#pillars .plite__ic { margin: 0 0 24px; width: 44px; height: 44px; }
#pillars .ix--lab { margin-bottom: 16px; letter-spacing: 0.2em; }
#pillars .plite h3 { text-transform: none; font-family: var(--display); font-size: 1.12rem; font-weight: 700; letter-spacing: -0.02em; }

/* =========================================================================
   HOW IT WORKS — sharper, editorial numerals
   =========================================================================*/
#how .step__num { color: var(--blue-300); }
#how .step__big { -webkit-text-stroke-width: 1.4px; }
#how .step h3 { text-transform: none; font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; }
#how .step__ic { border-radius: var(--r-md); }

/* =========================================================================
   PLATFORM — sharpen radii, keep elevation
   =========================================================================*/
.dash { border-radius: var(--r-lg); }
.panel, .kpi, .tile, .list__row, .twinmedia, .ai, .ai__input, .ai__msg { border-radius: var(--r-md); }
.platform__head h4 { font-family: var(--display); font-weight: 800; letter-spacing: -0.025em; }
.navitem { border-radius: var(--r-sm); }
.dash__url, .dash__chip, .pill { border-radius: 3px; }

/* =========================================================================
   WORKFORCE / WHY NOW — type + flow refinement
   =========================================================================*/
.flow__ic, .driver__ic { border-radius: var(--r-md); }
.cap__ic { border-radius: var(--r-md); }
#workforce .ph, .ph { border-radius: var(--r-md); }
.flow__step span, .driver b { font-family: var(--sans); }

/* =========================================================================
   CTA — sharp instrument panel
   =========================================================================*/
.cta-split { border-radius: var(--r-lg); background: linear-gradient(120deg, #0c2545, #08182e); border: 1px solid var(--hair-teal); }
.cta-split::before {
  content: ""; position: absolute; inset: 14px; border: 1px solid rgba(99,210,220,0.16); pointer-events: none;
}
.cta-split .h2 { font-family: var(--display); }
.cta-split .btn--light { border-radius: var(--r-md); }

/* reticle ticks on the CTA corners for instrument feel */
.cta-split { position: relative; overflow: hidden; }

/* =========================================================================
   FOOTER
   =========================================================================*/
.footer h5 { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue-300); }
.footer__brand p { font-family: var(--sans); }
.socials a { border-radius: var(--r-sm); }

/* =========================================================================
   GLOBAL DETAIL — flatten leftover tinted icon chips into precise marks
   =========================================================================*/
.card { border-radius: var(--r-md); box-shadow: none; border-color: var(--hair); }
.card__icon, .feat__ic { border-radius: var(--r-sm); }

/* hairline grid texture a touch crisper on light sections */
.grid-texture--light { opacity: 0.8; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  #solution .split { grid-template-columns: 1fr; }
  #solution .grid.grid-3 { grid-template-columns: repeat(2, 1fr); }
  #audience .grid.grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  #solution .grid.grid-3 { grid-template-columns: 1fr; }
  #problem .pcard { grid-template-columns: 64px 1fr; gap: 2px 18px; }
  #problem .ix--lg { font-size: 2rem; }
}

/* =========================================================================
   IMMERSIVE — pinned "How It Works" scroll sequence
   =========================================================================*/
.how-rail { margin-top: 52px; height: 2px; background: rgba(99,210,220,0.18); border-radius: 2px; position: relative; overflow: hidden; }
.how-rail__fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--blue-500), var(--blue-300)); will-change: transform; }
#how .step { transition: opacity .5s cubic-bezier(.16,1,.3,1), transform .5s cubic-bezier(.16,1,.3,1); }
#how .step__ic, #how .step__num { transition: background .4s ease, color .4s ease, box-shadow .4s ease; }

@media (min-width: 921px) and (prefers-reduced-motion: no-preference) {
  #how.how-pin { padding: 0; height: 340vh; }
  #how .how-sticky {
    position: sticky; top: 0; height: 100vh;
    display: flex; flex-direction: column; justify-content: center; overflow: hidden;
  }
  #how .how-sticky > .container { width: 100%; }
  #how .steps { margin-top: 46px; }
  #how .step { opacity: 0.3; transform: scale(0.94); }
  #how .step.is-active { opacity: 1; transform: scale(1.03); }
  #how .step.is-active .step__ic { background: var(--blue-600); color: #fff; box-shadow: 0 16px 44px rgba(22,179,187,0.45); }
  #how .step.is-active .step__big { -webkit-text-stroke-color: var(--blue-300); }
  #how .step.is-active .step__num { color: var(--blue-300); }
}
