/* ============================================================
   GhostLabs - Capability Page Stylesheet
   Shared by every page under /capabilities/.
   Brand tokens mirrored from /brand-assets/07-colors/colors.css.
   Mid register: typography-driven, restrained motion, occasional
   illustration. No heavy gradients, no decorative effects.
   ============================================================ */

/* ── Skip-to-content (accessibility) ─────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10000;
}
.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 12px 24px;
  background: #07080A;
  color: #00FF99;
  font-family: monospace;
  font-size: 14px;
  border: 1px solid #00FF99;
  border-radius: 8px;
  text-decoration: none;
  z-index: 10000;
}

:root {
  --cloud:       #F0EEE9;
  --cloud-deep:  #E7E3D8;
  --cream-light: #FBF8F0;
  --ink:         #0F0E0C;
  --ink-2:       #1A1814;
  --tango:       #E24B1F;
  --smoke:       #8A857D;
  --fog:         #C9C3B7;
  --sage:        #6B7A4E;

  --f-display:   'Inter Tight', 'Inter', -apple-system, sans-serif;
  --f-body:      'Inter', -apple-system, system-ui, sans-serif;
  --f-mono:      'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cloud);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.04;
  color: var(--ink);
}
::selection { background: var(--tango); color: var(--cloud); }

/* ===== UTILITIES ===== */
.container    { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.container-sm { max-width:  920px; margin: 0 auto; padding: 0 48px; }
.container-md { max-width: 1080px; margin: 0 auto; padding: 0 48px; }
.mono {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--smoke);
  font-weight: 500;
}
.mono-tango { color: var(--tango); }
.muted { color: var(--smoke); }
.accent { color: var(--tango); }

/* Section bands - color rhythm */
section { position: relative; }
.band-cream { background: var(--cloud); }
.band-deep  { background: var(--cloud-deep); }
.band-ink   { background: var(--ink); color: var(--cloud); }
.band-ink h1, .band-ink h2, .band-ink h3, .band-ink h4 { color: var(--cloud); }

/* ===== NAV (matches mockup.html) ===== */
nav.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(240, 238, 233, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--fog);
}
nav.top .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 20px 48px;
  max-width: 1280px;
  margin: 0 auto;
}
.wordmark {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-display); font-size: 26px; font-weight: 700;
  letter-spacing: -0.028em; color: var(--ink);
}
.wordmark .mark { width: 26px; height: 35px; }
.wordmark .mark .body { fill: var(--ink); }
.wordmark .mark .slit { fill: var(--cloud); }
.nav-links { display: flex; gap: 40px; flex: 1; justify-content: center; }
.nav-links a {
  font-family: var(--f-mono); font-size: 12.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--smoke); font-weight: 500; transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-actions { display: flex; gap: 20px; align-items: center; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono); font-size: 12.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); font-weight: 500; transition: color 0.15s;
}
.nav-cta svg { width: 14px; height: 14px; transition: transform 0.15s; }
.nav-cta:hover { color: var(--tango); }
.nav-cta:hover svg { transform: translateX(3px); }
.nav-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; color: var(--smoke); transition: color 0.15s;
}
.nav-icon svg { width: 18px; height: 18px; }
.nav-icon:hover { color: var(--tango); }
.nav-quote-btn {
  display: inline-flex; align-items: center;
  padding: 4px 18px;
  background: var(--tango); color: var(--cloud);
  border: 0; border-radius: 999px;
  font-family: var(--f-display); font-size: 12.5px; font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease;
}
.nav-quote-btn:active,
.nav-quote-btn.is-open { background: var(--ink); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--f-display);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.12s;
  cursor: pointer;
}
.btn:active { transform: scale(0.98); }
.btn-solid       { background: var(--ink); color: var(--cloud); }
.btn-solid:hover { background: var(--tango); border-color: var(--tango); }
.btn-tango       { background: var(--tango); color: var(--cloud); border-color: var(--tango); }
.btn-tango:hover { background: var(--ink); border-color: var(--ink); }
.btn-outline     { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cloud); }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-arrow svg { width: 14px; height: 14px; transition: transform 0.18s; }
.btn-arrow:hover svg { transform: translateX(3px); }
.btn-link {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono); font-size: 12.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); font-weight: 500;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: color 0.15s, border-color 0.15s;
}
.btn-link:hover { color: var(--tango); border-color: var(--tango); }
.btn-link svg { width: 12px; height: 12px; transition: transform 0.18s; }
.btn-link:hover svg { transform: translateX(3px); }

/* ===== HERO ===== */
section.cap-hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--fog);
}
.cap-hero .inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
.cap-eyebrow {
  font-family: var(--f-mono);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--tango); font-weight: 500;
}
.cap-hero h1 {
  font-size: clamp(48px, 5.6vw, 84px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 22ch;
  margin: 0 0 20px 0;
}
.cap-hero h1 .accent { color: var(--tango); }
.cap-hero .lede {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(28, 25, 23, 0.72);
  max-width: 54ch;
  margin: 0 0 6px 0;
}
.cap-hero .actions {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  margin-top: 24px;
}

/* ===== SECTION HEADER ===== */
.sec-pad { padding: 112px 0; }
.sec-pad-tight { padding: 80px 0; }
.sec-head {
  margin-bottom: 56px;
}
.sec-head .index {
  font-family: var(--f-mono);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--tango); font-weight: 500;
  margin-bottom: 20px;
}
.sec-head h2 {
  font-size: clamp(36px, 3.8vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
  max-width: 22ch;
}
.sec-head h2 .accent { color: var(--tango); }
.sec-head .lede {
  font-size: 18px; color: var(--smoke);
  max-width: 60ch; line-height: 1.55;
}

/* ===== REFRAME (single big quote moment) ===== */
.reframe {
  padding: 112px 0;
}
.reframe-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
.reframe-grid .index {
  font-family: var(--f-mono);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--tango); font-weight: 500;
  margin-bottom: 20px;
}
.reframe h2 {
  font-size: clamp(32px, 3.4vw, 52px);
  letter-spacing: -0.028em;
  line-height: 1.12;
  margin-bottom: 32px;
  max-width: 28ch;
  font-weight: 600;
}
.reframe h2 .accent { color: var(--tango); }
.reframe p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 62ch;
  margin-bottom: 18px;
}
.reframe p:last-child { margin-bottom: 0; }
.band-deep .reframe p { color: var(--ink); }

/* ===== METHODOLOGY (4-step ladder) ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.step {
  padding-top: 24px;
  border-top: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
}
.step .n {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--tango); font-weight: 500; margin-bottom: 18px;
}
.step h3 {
  font-size: 22px;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  line-height: 1.18;
}
.step p { color: var(--smoke); font-size: 14px; line-height: 1.55; }
.step .timing {
  font-family: var(--f-mono);
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); margin-top: 14px;
}

/* ===== DELIVERABLES (grid) ===== */
.deliverables {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--fog);
}
.deliverable {
  padding: 24px 28px;
  border-bottom: 1px solid var(--fog);
  transition: background 0.18s;
}
.deliverable:hover { background: rgba(15, 14, 12, 0.025); }
.deliverable:nth-child(odd) { border-right: 1px solid var(--fog); padding-left: 0; }
.deliverable:nth-child(even) { padding-right: 0; }
.deliverable .body h4 {
  font-size: 16.5px; letter-spacing: -0.02em; margin-bottom: 6px;
}
.deliverable .body p { font-size: 14px; color: var(--smoke); line-height: 1.5; }

/* ===== STATS / PROOF - animated counters (mid register) ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
}
.stat {
  padding: 32px 24px 28px;
  border-bottom: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
}
.stat:last-child { border-right: 0; }
.stat .num {
  font-family: var(--f-display);
  font-size: 64px; font-weight: 700;
  letter-spacing: -0.04em; line-height: 1;
  color: var(--tango); margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.stat .num .suffix { font-size: 0.6em; color: var(--tango); margin-left: 2px; }
.stat .label {
  font-family: var(--f-body);
  font-size: 13px; line-height: 1.45;
  color: var(--ink);
}

/* ===== TRUST SIGNALS (4-up grid) ===== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--fog);
}
.trust {
  padding: 32px 28px;
  border-bottom: 1px solid var(--fog);
  border-right: 1px solid var(--fog);
}
.trust:nth-child(odd) { padding-left: 0; }
.trust:nth-child(2n) { border-right: 0; padding-right: 0; }
.trust h3 {
  font-size: 21px; letter-spacing: -0.02em;
  margin-bottom: 12px; line-height: 1.2;
}
.trust h3 .accent { color: var(--tango); }
.trust p {
  font-size: 14.5px; color: var(--smoke); line-height: 1.55;
  max-width: 48ch;
}

/* ===== FAQ (accordion) ===== */
.faq {
  border-top: 1px solid var(--ink);
}
.faq-item {
  border-bottom: 1px solid var(--fog);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: color 0.15s;
}
.faq-q:hover { color: var(--tango); }
.faq-q .plus {
  width: 18px; height: 18px;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.25s;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute;
  background: var(--ink);
  transition: background 0.15s;
}
.faq-q .plus::before { left: 0; right: 0; top: 50%; height: 1.5px; transform: translateY(-50%); }
.faq-q .plus::after  { top: 0; bottom: 0; left: 50%; width: 1.5px; transform: translateX(-50%); transition: transform 0.25s, background 0.15s; }
.faq-q:hover .plus::before, .faq-q:hover .plus::after { background: var(--tango); }
.faq-item.is-open .faq-q .plus::after { transform: translateX(-50%) rotate(90deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease, padding 0.32s ease;
}
.faq-item.is-open .faq-a {
  max-height: 600px;
  padding: 0 0 24px;
}
.faq-a p {
  font-size: 15.5px;
  color: var(--smoke);
  line-height: 1.65;
  max-width: 64ch;
  margin-bottom: 12px;
}
.faq-a p:last-child { margin-bottom: 0; }
.faq-a a { color: var(--tango); text-decoration: underline; text-underline-offset: 3px; }
.faq-a a:hover { text-decoration-thickness: 2px; }

/* ===== FINAL CTA (ink section) ===== */
section.final-cta {
  background: var(--ink);
  color: var(--cloud);
  padding: 144px 0;
}
.final-cta-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  align-items: start;
}
.final-cta .index {
  font-family: var(--f-mono);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--tango); font-weight: 500;
}
.final-cta h2 {
  font-size: clamp(40px, 5vw, 76px);
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--cloud);
  max-width: 22ch;
}
.final-cta h2 .accent { color: var(--tango); }
.final-cta .lede {
  font-size: 19px;
  color: rgba(240, 238, 233, 0.72);
  max-width: 56ch;
  line-height: 1.55;
}
.final-cta .actions {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  margin-top: 16px;
}
.final-cta .btn-tango { background: var(--tango); color: var(--cloud); border-color: var(--tango); }
.final-cta .btn-tango:hover { background: var(--cloud); color: var(--ink); border-color: var(--cloud); }
.final-cta .btn-outline { color: var(--cloud); border-color: var(--cloud); }
.final-cta .btn-outline:hover { background: var(--cloud); color: var(--ink); }
.final-cta .mono { color: rgba(240, 238, 233, 0.55); }

/* ===== FOOTER (matches mockup.html) ===== */
footer {
  background: var(--cloud-deep);
  padding: 96px 0 40px;
  border-top: 1px solid var(--fog);
}
.foot {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 72px;
}
.foot-col h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 18px;
  font-weight: 500;
}
.foot-col ul + h4 { margin-top: 28px; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; margin: 0; padding: 0; }
.foot-col ul a {
  color: var(--smoke);
  font-size: 13.5px;
  line-height: 1.4;
  transition: color 0.15s;
}
.foot-col ul a:hover { color: var(--tango); }
.foot-col .foot-soon {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--smoke);
  font-weight: 500;
  opacity: 0.6;
  transform: translateY(-1px);
}
.foot-col ul a:hover .foot-soon { opacity: 0.9; }
.foot .blurb {
  color: var(--smoke); font-size: 14px;
  line-height: 1.6; max-width: 36ch; margin-top: 20px;
}
.foot-bottom {
  padding: 32px 0 0;
  border-top: 1px solid var(--fog);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--smoke);
  gap: 32px;
  flex-wrap: wrap;
}
.foot-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  max-width: 620px;
  flex: 0 1 620px;
}

/* ===== QUOTE MODAL (matches mockup.html exactly) ===== */
.quote-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.quote-modal[hidden] { display: none; }
.quote-backdrop {
  position: absolute; inset: 0;
  background: rgba(15,14,12,0.62);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}
.quote-panel {
  position: relative;
  background: var(--cloud);
  border: 1px solid var(--ink);
  border-radius: 14px;
  width: 100%; max-width: 640px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 40px 40px 36px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
.quote-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px;
  background: transparent; color: var(--smoke);
  border: 0; cursor: pointer;
  font-size: 22px; line-height: 1;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.quote-close:hover { background: rgba(15,14,12,0.06); color: var(--ink); }
.quote-header { margin-bottom: 28px; }
.quote-kicker {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--tango); font-weight: 500; margin-bottom: 14px;
}
.quote-header h2 {
  font-family: var(--f-display);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.1;
  margin: 0 0 10px;
}
.quote-header p {
  font-size: 15px; color: var(--smoke); line-height: 1.55; max-width: 50ch;
}
.q-field { margin-bottom: 18px; display: flex; flex-direction: column; }
.q-field label {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--smoke); font-weight: 500; margin-bottom: 8px;
}
.q-field label .req { color: var(--tango); }
.q-field input,
.q-field select,
.q-field textarea {
  width: 100%;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--fog);
  outline: none;
  color: var(--ink);
  font-family: var(--f-body); font-size: 15px;
  padding: 10px 0;
  transition: border-color 0.2s;
}
.q-field input::placeholder, .q-field textarea::placeholder { color: var(--smoke); opacity: 0.5; }
.q-field input:focus, .q-field select:focus, .q-field textarea:focus { border-bottom-color: var(--tango); }
.q-field textarea { resize: vertical; min-height: 70px; font-family: var(--f-body); }
.q-field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6A62' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 0 center; background-size: 14px; padding-right: 24px; cursor: pointer; }
.q-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.q-submit {
  margin-top: 12px; width: 100%;
  background: var(--ink); color: var(--cloud);
  border: 0; padding: 16px 24px; border-radius: 999px;
  font-family: var(--f-display); font-size: 14px; font-weight: 600;
  letter-spacing: -0.005em; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  transition: background 0.15s;
}
.q-submit:hover { background: var(--tango); }
.q-submit:disabled { opacity: 0.6; cursor: wait; }
.q-submit svg { width: 14px; height: 14px; }
.q-status {
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: 11.5px; letter-spacing: 0.06em; color: var(--smoke);
  min-height: 18px; text-align: center;
}
.q-status.success { color: #1b8758; }
.q-status.error { color: var(--tango); }

/* ===== SCROLL-FADE-IN (mid register) ===== */
/* JS adds .js-ready to <html> on load - fade-in only activates when JS is confirmed running.
   Without .js-ready, all content is fully visible (no invisible-forever bug). */
.js-ready .fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-ready .fade-in.is-visible,
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HERO ILLUSTRATION (right rail) ===== */
.cap-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}
.cap-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cap-hero-visual svg,
.cap-hero-visual img {
  width: 100%;
  max-width: 520px;
  height: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  nav.top .inner { gap: 24px; padding: 20px 32px; }
  .nav-cta span { display: none; }
  .nav-icon { display: none; }
  .foot { grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
  .foot-col:nth-child(4),
  .foot-col:nth-child(5) { grid-column: span 1; }
}
@media (max-width: 1100px) {
  .foot { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .cap-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(2n+1) { border-right: 1px solid var(--ink); }
  .deliverables { grid-template-columns: 1fr; }
  .deliverable:nth-child(odd) { border-right: 0; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust:nth-child(2n) { border-right: 0; }
  .sec-head .index { margin-bottom: 14px; }
  .reframe-grid .index { margin-bottom: 14px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .nav-links { gap: 24px; }
  .nav-quote-btn { display: none; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
  }
  /* Dead span-based hamburger rules removed (HTML uses SVG icon, no spans) */
  .foot { grid-template-columns: 1fr; }
}

/* ===== MEGA-MENU (synced from mockup.html) ===== */
.nav-mega-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-mega-trigger > a {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.nav-mega-trigger::after {
  content: "";
  position: absolute;
  top: -21px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--tango);
  opacity: 0;
  transform: scaleX(0.5);
  transform-origin: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.nav-mega-trigger.is-open::after {
  opacity: 1;
  transform: scaleX(1);
}
.nav-mega-trigger.is-open > a { color: var(--ink); }

.mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  width: calc(100% - 96px);
  max-width: 1232px;
  background: var(--cloud);
  border: 1px solid var(--fog);
  border-radius: 18px;
  padding: 28px 32px 28px;
  box-shadow:
    0 2px 4px rgba(15, 14, 12, 0.04),
    0 18px 48px rgba(15, 14, 12, 0.10);
  z-index: 60;
  opacity: 0;
  transform: translate(-50%, -8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.mega-menu.is-open {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.mega-menu[hidden] { display: none; }

.mega-grid {
  display: grid;
  grid-template-columns: 320px 1fr 280px;
  gap: 36px;
  align-items: stretch;
}

.mega-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--smoke);
  font-weight: 500;
  margin-bottom: 18px;
}

.mega-col-solutions {
  display: flex;
  flex-direction: column;
}
.mega-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.mega-card {
  display: block;
  background: var(--cloud-deep);
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 20px 22px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.mega-card:hover {
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-1px);
}
.mega-card h4 {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.15;
  margin-bottom: 8px;
  color: var(--ink);
  transition: color 0.2s ease;
}
.mega-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--smoke);
  margin: 0;
  transition: color 0.2s ease;
}
.mega-card:hover h4 { color: var(--cloud); }
.mega-card:hover p { color: rgba(240, 238, 233, 0.7); }

.mega-col-capabilities {
  padding-top: 2px;
}
.mega-cap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
  align-items: start;
}
.cap-col {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--fog);
  transition: opacity 0.25s ease;
}
.cap-col a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid var(--fog);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.cap-col a::before {
  content: "→";
  color: var(--tango);
  font-size: 14px;
  opacity: 0;
  width: 0;
  margin-right: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, width 0.2s ease, transform 0.2s ease;
}
.cap-col a:hover {
  color: var(--tango);
}
.cap-col a:hover::before {
  opacity: 1;
  width: 14px;
  transform: translateX(0);
}

.mega-menu.is-spotlight-enterprise .cap-col-web3 { opacity: 0.38; }
.mega-menu.is-spotlight-web3      .cap-col-enterprise { opacity: 0.38; }
.mega-menu.is-spotlight-work      .cap-col-story    { opacity: 0.38; }
.mega-menu.is-spotlight-story     .cap-col-work     { opacity: 0.38; }

.mega-insight {
  display: flex;
  flex-direction: column;
  margin-top: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--cloud-deep);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  flex: 1;
}
.mega-insight:hover {
  transform: translateY(-2px);
}
.mega-insight-image {
  height: 130px;
  background: var(--ink);
  background-image: linear-gradient(135deg, #14110D 0%, #24201A 100%);
  position: relative;
  overflow: hidden;
}
.mega-insight-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../brand-assets/01-logo/svg/mark-tango-on-transparent.svg");
  background-repeat: no-repeat;
  background-position: 70% center;
  background-size: 88px;
  opacity: 0.85;
}
.mega-insight-meta {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.mega-insight-eyebrow {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tango);
  font-weight: 500;
}
.mega-insight-title {
  font-family: var(--f-display);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
}
.mega-insight-meta .mono {
  font-size: 10.5px;
  color: var(--smoke);
  margin-top: auto;
  padding-top: 8px;
}

@media (max-width: 1024px) {
  .mega-grid { grid-template-columns: 1fr; gap: 24px; }
  .mega-col-insight { display: none; }
  .mega-menu { width: calc(100% - 48px); padding: 24px; }
}

@media (max-width: 600px) {
  .container, .container-md, .container-sm,
  nav.top .inner, .cap-hero .inner, .reframe-grid,
  .final-cta-inner { padding-left: 24px; padding-right: 24px; }
  section.cap-hero { padding: 64px 0 56px; }
  .sec-pad { padding: 80px 0; }
  .reframe { padding: 80px 0; }
  section.final-cta { padding: 96px 0; }
  .steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; }
  .nav-links { display: none; }
  .mega-menu { display: none !important; }
  .quote-panel { padding: 32px 24px 28px; }
  .q-row { grid-template-columns: 1fr; gap: 0; }
  .nav-cta span { display: none; }
  .hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
  }
  /* Dead span-based hamburger rules removed (HTML uses SVG icon, no spans) */
  .mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(7,8,10,0.97);
    z-index: 1000;
    padding: 80px 32px 32px;
    flex-direction: column;
    gap: 8px;
  }
  .mobile-nav-overlay.open { display: flex; }
  .mobile-nav-overlay a {
    font-family: var(--f-mono, monospace);
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .mobile-nav-overlay a:hover { color: #00FF99; }
}

.hamburger-btn { display: none; }
.mobile-nav-overlay { display: none; }

/* ── Breadcrumb navigation — hidden, kept for schema.org only ─ */
.breadcrumb { display: none; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb li::after { content: '/'; margin-left: 4px; color: #C9A246; }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a { color: #8A857D; text-decoration: none; }
.breadcrumb a:hover { color: #E24B1F; }
.breadcrumb [aria-current="page"] { color: #0F0E0C; }
