/* =====================================================================
   Concaten8 Data Services — site stylesheet
   Refined modern consultancy: navy ink on warm white, with the brand
   gradient swoosh as the recurring kinetic motif.
   ===================================================================== */

:root {
  /* Palette */
  --ink:        #00115b;
  --ink-soft:   #1a2a6e;
  --ink-2:      #0a1a4d;
  --slate:      #455866;
  --slate-2:    #6a7a87;
  --paper:      #ffffff;
  --bone:       #fbfaf6;
  --mist:       #f3f6fc;
  --mist-2:     #eaf0fa;
  --line:       #e3e8f1;
  --line-soft:  #eef2f8;
  --signal:     #3b6cf6;
  --signal-2:   #b8d4ff;
  --signal-3:   #5b8aff;

  /* Type */
  --display:  'Fraunces', ui-serif, Georgia, serif;
  --body:     'Manrope', system-ui, sans-serif;
  --mono:     'JetBrains Mono', ui-monospace, monospace;

  /* Scale */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(44px, 4.5vw, 72px);

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-snap-type: y proximity;
  scroll-padding-top: 72px;
  overflow-x: hidden;
}
/* Desktop: every section fills the viewport and centres its content
   so mandatory snap has a clean anchor on each one. */
@media (min-width: 821px) {
  .section {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  color: var(--slate);
  background: var(--paper);
  font-feature-settings: "ss01","cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
}

/* Mobile: gentle proximity snap between sections. Proximity (not
   mandatory) means long sections that exceed viewport height still
   scroll freely, but short sections softly lock into place. */
@media (max-width: 820px) {
  html { scroll-snap-type: y proximity; scroll-padding-top: 64px; }
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

::selection { background: var(--ink); color: var(--paper); }

/* ===== Typography ===== */
.display {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  font-size: clamp(36px, 4.2vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.022em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  text-wrap: balance;
}
.display em {
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  /* inline-block + generous padding so italic overshoot, descenders
     and background-clip: text don't crop the letterforms */
  display: inline-block;
  padding: 0.02em 0.14em 0.16em 0.04em;
  margin: 0 -0.14em -0.16em -0.04em;
  background: linear-gradient(100deg, var(--ink) 0%, var(--signal) 55%, var(--ink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.display--md { font-size: clamp(28px, 2.9vw, 46px); line-height: 1.08; }
.display--lg { font-size: clamp(56px, 9vw, 140px); line-height: 0.94; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}
.eyebrow--small { font-size: 11px; letter-spacing: 0.22em; color: var(--slate-2); margin-bottom: 18px; }
.eyebrow--light { color: var(--signal-2); }
.eyebrow-mark {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}

/* ===== Layout ===== */
.section {
  position: relative;
  padding: var(--section-y) var(--gutter);
  isolation: isolate;
  overflow: hidden;
  scroll-snap-align: start;
}
.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}
.section-head { margin-bottom: clamp(28px, 3vw, 48px); max-width: 1100px; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-lede {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--slate);
  max-width: 56ch;
  margin-top: 24px;
}
.section-head--center .section-lede { margin-inline: auto; }

/* ===== Section numerals (matching slides) ===== */
.section-num {
  position: absolute;
  top: clamp(28px, 5vw, 56px);
  right: clamp(20px, 4vw, 56px);
  width: 44px; height: 44px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  background: var(--paper);
  z-index: 5;
  transition: transform .6s var(--ease);
}
.section-num span { display: block; line-height: 1; }
.section-num::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px dashed var(--line);
  border-radius: 999px;
  opacity: 0;
  animation: ringIn 1.4s var(--ease) forwards;
  animation-delay: .4s;
}
.section-num--light { border-color: var(--signal-2); color: var(--signal-2); background: transparent; }
.section-num--light::before { border-color: rgba(184,212,255,.35); }

@keyframes ringIn {
  0%   { opacity: 0; transform: scale(.85) rotate(0deg); }
  100% { opacity: 1; transform: scale(1) rotate(8deg); }
}

/* ===== Dot grid (signature texture from the slides) ===== */
.dot-grid {
  position: absolute;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--ink) 1px, transparent 1.4px);
  background-size: 14px 14px;
  opacity: 0.18;
  z-index: 0;
}
.dot-grid--hero {
  width: 240px; height: 320px;
  bottom: 80px; left: -20px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
}
.dot-grid--about {
  width: 260px; height: 260px;
  top: 40px; right: 80px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
  opacity: 0.14;
}
.dot-grid--contact {
  width: 320px; height: 320px;
  top: 60px; right: 40px;
  background-image: radial-gradient(circle, var(--signal-2) 1px, transparent 1.4px);
  opacity: 0.25;
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 70%);
}

/* ===== Header / Nav ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), padding .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255,255,255,0.92);
  border-bottom-color: var(--line);
  padding-top: 14px; padding-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-img {
  height: 44px;
  width: auto;
  display: block;
}
.site-header.is-scrolled .brand-img { height: 38px; transition: height .3s var(--ease); }
.brand-img { transition: height .3s var(--ease); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, 28px);
}
.primary-nav a {
  position: relative;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  padding: 10px 4px;
  transition: color .25s var(--ease);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a:hover::after,
.primary-nav a.is-active::after { transform: scaleX(1); }
.primary-nav a.is-active { color: var(--ink); }

.nav-cta {
  margin-left: 8px;
  padding: 12px 16px !important;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink) !important;
  transition: background .3s var(--ease), color .3s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--ink); color: var(--paper) !important; }

/* Small secondary sign-in link — sits alongside the CTA in the top right */
.nav-signin {
  margin-left: 6px;
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate) !important;
  border-radius: 999px;
  transition: color .3s var(--ease), background .3s var(--ease);
}
.nav-signin::after { display: none; }
.nav-signin:hover { color: var(--ink) !important; background: rgba(0, 17, 91, 0.06); }

/* hide all but CTA on small screens */
@media (max-width: 900px) {
  .primary-nav a:not(.nav-cta):not(.nav-signin) { display: none; }
  .nav-signin { display: none; }
}
/* Desktop/tablet: show the full wordmark, hide the mark-only variant */
.brand-img--mark { display: none; }

@media (max-width: 560px) {
  .site-header { padding: 14px 18px; }
  /* Swap to compact CC8 mark only on mobile */
  .brand-img--full { display: none; }
  .brand-img--mark { display: block; height: 40px; }
  .site-header.is-scrolled .brand-img--mark { height: 36px; }
  /* Compact CTA — with the CC8 mark there's room, and this remains the
     only way to reach contact from the header once scrolled past the hero */
  .nav-cta {
    font-size: 10.5px;
    letter-spacing: 0.1em;
    padding: 9px 14px !important;
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  min-height: 48px;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--ink-soft);
  transform: translateY(-1px);
}
.btn-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn-light {
  background: var(--paper);
  color: var(--ink);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -18px rgba(0,0,0,.5); }
.btn-outline-light {
  color: var(--paper);
  border-color: rgba(255,255,255,.4);
}
.btn-outline-light:hover { border-color: var(--paper); background: rgba(255,255,255,.06); transform: translateY(-2px); }

/* ===== Reveal animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal.is-in:nth-child(2) { transition-delay: .05s; }
.reveal.is-in:nth-child(3) { transition-delay: .1s; }
.reveal.is-in:nth-child(4) { transition-delay: .15s; }

/* =====================================================================
   01 — HERO
   ===================================================================== */
.section--hero {
  padding-top: clamp(90px, 9vw, 120px);
  padding-bottom: clamp(32px, 4vw, 64px);
  background: linear-gradient(180deg, var(--paper) 0%, var(--bone) 100%);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 820px) {
  .section--hero {
    min-height: auto;
    padding-top: clamp(90px, 16vw, 120px);
    padding-bottom: clamp(40px, 8vw, 64px);
  }
}
.hero-grid {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 520px);
  gap: clamp(32px, 4.5vw, 72px);
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: clamp(32px, 6vw, 56px);
  }
}
@media (max-width: 560px) {
  .hero-copy { text-align: left; }
  .hero-copy .eyebrow { margin-bottom: 14px; }
  .hero-body { margin-top: 18px; font-size: 15px; line-height: 1.55; }
  /* Hide hero CTA on mobile — redundant with the sticky header "Get in touch" */
  .section--hero .hero-actions { display: none; }
  /* Let text-wrap: balance do its job — desktop <br/>s break at awkward points on narrow screens */
  .section--hero .display br { display: none; }
  /* Slightly smaller, tighter headline on very narrow screens */
  .section--hero .display {
    font-size: clamp(32px, 9.2vw, 44px);
    line-height: 1.05;
    letter-spacing: -0.025em;
  }
  /* Tighten the gap between hero copy and the forecast card */
  .hero-grid { gap: 28px; }
}
.hero-copy { max-width: 780px; }
.hero-copy .eyebrow { margin-bottom: 18px; }
.hero-body {
  margin-top: 24px;
  max-width: 52ch;
  font-size: clamp(14px, 0.95vw, 16px);
  line-height: 1.55;
  color: var(--slate);
}
.hero-body p + p { margin-top: 10px; }
.hero-punch {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(17px, 1.4vw, 21px);
  color: var(--ink);
  margin-top: 16px !important;
  padding-left: 16px;
  border-left: 2px solid var(--signal);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-actions .btn { padding: 11px 20px; font-size: 13.5px; letter-spacing: 0.005em; }
.hero-aside {
  position: relative;
  align-self: center;
}
/* ---------- Forecast card (live reforecast loop) ---------- */
.forecast-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 18px 16px;
  box-shadow:
    0 40px 80px -44px rgba(0,17,91,.32),
    0 2px 0 0 rgba(0,17,91,.04);
  position: relative;
  isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.hero-aside { min-width: 0; }
@media (max-width: 560px) {
  .forecast-card { padding: 14px 16px 16px; border-radius: 6px; }
  .forecast-kpis--4 .kpi { padding: 8px 6px; }
  .forecast-kpis--4 .kpi-label { font-size: 9.5px; letter-spacing: 0.08em; }
  .forecast-kpis--4 .kpi-value { font-size: 16px; }
  .forecast-kpis--4 .kpi-delta { font-size: 9px; }
  .q-text { font-size: 18px; }
  /* Bump the top eyebrow label slightly — "SCENARIO PLANNING · 5 YEAR HORIZON" was near-illegible */
  .forecast-label { font-size: 10px; letter-spacing: 0.1em; }
  .forecast-question .q-prefix { font-size: 10.5px; letter-spacing: 0.1em; }
}

/* Top label + status */
.forecast-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line-soft);
}
.forecast-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--slate-2);
  text-transform: uppercase;
}
.forecast-label strong {
  color: var(--ink);
  font-weight: 500;
  transition: color .3s var(--ease);
}
.label-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(59,108,246,.55);
  animation: labelPulse 2.2s infinite;
}
@keyframes labelPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59,108,246,.55); }
  50%      { box-shadow: 0 0 0 7px rgba(59,108,246,0); }
}
.forecast-status {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  padding: 5px 10px;
  border-radius: 2px;
  background: rgba(59,108,246,0.12);
  color: var(--signal);
  transition: background .3s var(--ease), color .3s var(--ease);
  min-width: 108px;
  text-align: center;
}
.forecast-status.is-recalc {
  background: rgba(255,156,40,0.14);
  color: #b35a00;
  animation: recalcBlink 0.45s ease-in-out infinite alternate;
}
@keyframes recalcBlink {
  from { opacity: 0.55; }
  to   { opacity: 1; }
}

/* Chart */
.blueprint {
  width: 100%;
  height: auto;
  display: block;
}
#mainLine, #areaPath, #ghostLine {
  transition: none; /* animated via JS via d attribute */
}

/* KPIs */
.forecast-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 10px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.kpi {
  padding: 10px 12px 10px;
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.kpi:last-child { border-right: none; }
.kpi-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-2);
}
.kpi-value {
  font-family: var(--display);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  font-variation-settings: "opsz" 60, "SOFT" 30;
}
.kpi-delta {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--slate-2);
  min-height: 12px;
  transition: color .3s var(--ease);
}
.kpi-delta.is-up   { color: #0a8f4a; }
.kpi-delta.is-down { color: #b53d2b; }

/* ---------- Question header (What if… ?) ---------- */
.forecast-question {
  padding: 12px 2px 10px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 6px;
}
.q-prefix {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 4px;
}
.q-text {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 60, "SOFT" 60;
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.q-text.is-fading {
  opacity: 0;
  transform: translateY(-4px);
}

/* ---------- Bank balance sparkline ---------- */
.sparkline-wrap {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}
.sparkline-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
  padding: 0 2px;
}
.sparkline-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-2);
}
.sparkline-range {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--slate-2);
  opacity: 0.7;
}
.sparkline {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- KPI 4-column variant ---------- */
.forecast-kpis--4 {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 10px;
}
.forecast-kpis--4 .kpi {
  padding: 10px 8px 10px;
}
.forecast-kpis--4 .kpi-value {
  font-size: clamp(18px, 1.5vw, 22px);
}

/* ---------- Verdict strip ---------- */
.forecast-verdict {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 2px 2px;
  font-family: var(--display);
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--ink);
  font-variation-settings: "opsz" 36, "SOFT" 30;
}
.verdict-mark {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--signal);
  transition: color .3s var(--ease);
}
.verdict-text {
  transition: opacity .28s var(--ease), transform .28s var(--ease);
  font-style: italic;
}
.verdict-text.is-fading {
  opacity: 0;
  transform: translateY(-3px);
}
.forecast-verdict.is-good    .verdict-mark { color: #0a8f4a; }
.forecast-verdict.is-warn    .verdict-mark { color: #d28a1d; }
.forecast-verdict.is-bad     .verdict-mark { color: #b53d2b; }
.forecast-verdict.is-neutral .verdict-mark { color: var(--signal); }

/* Hero swoosh (large, draws on load) */
.hero-swoosh {
  position: absolute;
  top: 60px;
  left: -8%;
  width: 116%;
  height: 180px;
  z-index: 0;
  opacity: 0.9;
  pointer-events: none;
}
.swoosh-main, .swoosh-back {
  stroke-dasharray: 2200;
  stroke-dashoffset: 2200;
  animation: drawSwoosh 2.6s var(--ease-out) forwards;
}
.swoosh-back { animation-delay: .15s; opacity: 0.6; }
@keyframes drawSwoosh { to { stroke-dashoffset: 0; } }

/* Scroll cue */
.hero-scroll {
  position: absolute;
  bottom: 20px;
  left: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate-2);
  z-index: 3;
}
@media (max-height: 860px) { .hero-scroll { display: none; } }
.scroll-line {
  display: block;
  width: 1px;
  height: 56px;
  background: rgba(0, 17, 91, 0.18);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 40%;
  background: var(--ink);
  animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-aside { max-width: 480px; }
}

/* =====================================================================
   02 — WHAT WE DO
   ===================================================================== */
.section--what {
  background: var(--paper);
  padding-top: clamp(16px, 1.8vw, 28px);
  padding-bottom: clamp(16px, 1.8vw, 28px);
}
@media (max-width: 820px) {
  .section--what {
    padding-top: clamp(56px, 12vw, 96px);
    padding-bottom: clamp(56px, 12vw, 96px);
  }
  .what-grid { gap: clamp(32px, 6vw, 48px); }
  .what-left .section-head { margin-bottom: 16px; }
}
.what-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.what-left { min-width: 0; }
.what-left .section-head { margin-bottom: clamp(24px, 2.6vw, 40px); }
.what-copy p { margin-bottom: 14px; max-width: 60ch; font-size: 15px; line-height: 1.6; color: #38465a; }
.what-copy .emphasis {
  font-family: var(--display);
  font-size: clamp(20px, 1.75vw, 25px);
  font-style: italic;
  color: var(--ink);
  line-height: 1.45;
  border-left: 2px solid var(--signal);
  padding-left: 22px;
  margin-top: 32px !important;
  max-width: 56ch;
  font-variation-settings: "opsz" 60, "SOFT" 50;
}
/* ---------- Architectural truss: CC8 as the keystone ---------- */
.truss {
  align-self: center;
  width: 100%;
  margin-left: auto;
  position: relative;
}
.truss-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

/* Pillar labels under the supports */
.truss-label {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  fill: var(--ink);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 36, "SOFT" 30;
}

/* Ambient glow behind keystone */
.truss-ambient {
  opacity: 0;
  transform-origin: 240px 20px;
}
.reveal.is-in .truss-ambient {
  animation: trussGlowIn 1.6s var(--ease-out) 1.3s forwards;
}
@keyframes trussGlowIn {
  from { opacity: 0; transform: scale(.5); }
  to   { opacity: 1; transform: scale(1); }
}

/* ===== Draw-in animations ===== */

@keyframes trussFade { to { opacity: 1; } }

/* Ground line draws across */
.truss-ground {
  stroke-dasharray: 460;
  stroke-dashoffset: 460;
}
.reveal.is-in .truss-ground {
  animation: trussDraw .9s var(--ease-out) 0.25s forwards;
}
@keyframes trussDraw { to { stroke-dashoffset: 0; } }

/* Ground hatching fades in after the line */
.truss-hatch { opacity: 0; }
.reveal.is-in .truss-hatch {
  animation: trussFade .6s var(--ease-out) 0.7s forwards;
}

/* Support footings rise into place */
.truss-node {
  opacity: 0;
  transform: translateY(8px);
}
.reveal.is-in .truss-node {
  animation: trussFootingIn .6s var(--ease-out) forwards;
}
.reveal.is-in .truss-node--1 { animation-delay: 0.5s; }
.reveal.is-in .truss-node--2 { animation-delay: 0.6s; }
.reveal.is-in .truss-node--3 { animation-delay: 0.7s; }
@keyframes trussFootingIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Labels fade up with their supports */
.truss-label { opacity: 0; }
.reveal.is-in .truss-label--1 { animation: trussLabelIn .7s var(--ease-out) 0.55s forwards; }
.reveal.is-in .truss-label--2 { animation: trussLabelIn .7s var(--ease-out) 0.65s forwards; }
.reveal.is-in .truss-label--3 { animation: trussLabelIn .7s var(--ease-out) 0.75s forwards; }
@keyframes trussLabelIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Arches draw in — quadratic arc path length ~= 260 */
.truss-arch {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
}
.reveal.is-in .truss-arch--left  { animation: trussDraw 1.1s var(--ease-out) 0.8s forwards; }
.reveal.is-in .truss-arch--right { animation: trussDraw 1.1s var(--ease-out) 0.95s forwards; }

/* Centre strut (Data → keystone) rises */
.truss-pillar {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}
.reveal.is-in .truss-pillar {
  animation: trussDraw 1s var(--ease-out) 1.0s forwards;
}

/* Triangulated bracing — 2 clean diagonals */
.truss-brace {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
}
.reveal.is-in .truss-brace--1 { animation: trussDraw .9s var(--ease-out) 1.2s forwards; }
.reveal.is-in .truss-brace--2 { animation: trussDraw .9s var(--ease-out) 1.3s forwards; }

/* Keystone arrives last, with a spring */
.truss-keystone {
  opacity: 0;
  transform-origin: 240px 20px;
}
.reveal.is-in .truss-keystone {
  animation: trussKeystoneIn 1s var(--ease-out) 1.5s forwards;
}
@keyframes trussKeystoneIn {
  0%   { opacity: 0; transform: scale(0); }
  65%  { opacity: 1; transform: scale(1.15); }
  100% { opacity: 1; transform: scale(1); }
}

/* Keystone pulsing ring, forever */
.truss-keystone-pulse {
  transform-origin: 240px 20px;
}
.reveal.is-in .truss-keystone-pulse {
  animation: trussPulse 2.8s ease-in-out 2.3s infinite;
}
@keyframes trussPulse {
  0%, 100% { r: 36; opacity: 0.5; }
  50%      { r: 54; opacity: 0; }
}

@media (max-width: 900px) {
  .truss { width: 100%; max-width: 520px; margin: 0 auto; }
}

/* Copy on the left — strong tags */
.what-copy strong { color: var(--ink); font-weight: 600; }

/* Responsive — stack under the copy on narrower viewports */
@media (max-width: 900px) {
  .bridge-diagram { max-width: 440px; margin: 0 auto; }
}

@media (max-width: 900px) {
  .what-grid { grid-template-columns: 1fr; }
}

/* Divider swoosh between sections */
.divider-swoosh {
  position: absolute;
  bottom: -120px;
  left: -8%;
  width: 116%;
  height: 240px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.divider-swoosh--flip { transform: scaleY(-1); top: -120px; bottom: auto; }

/* =====================================================================
   03 — SERVICES
   ===================================================================== */
.section--services {
  background: var(--bone);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: clamp(16px, 1.6vw, 26px);
  padding-bottom: clamp(16px, 1.6vw, 26px);
}
.section--services .section-head { margin-bottom: clamp(10px, 1.1vw, 16px); }

/* ---------- Bento grid of service cards (4-column showcase) ---------- */
.services-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.2vw, 16px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.bento-card {
  list-style: none;
  display: flex;
}
.bento-button {
  appearance: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font: inherit;
  color: inherit;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  transition: transform .55s var(--ease), border-color .55s var(--ease), box-shadow .55s var(--ease);
}
.bento-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(59,108,246,0.10), transparent 60%);
  opacity: 0;
  transition: opacity .55s var(--ease);
  pointer-events: none;
  z-index: -1;
}
.bento-button:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 0 26px 50px -28px rgba(0,17,91,.32);
}
.bento-button:hover::before { opacity: 1; }

.bento-visual {
  background: var(--bone);
  border-bottom: 1px solid var(--line);
  padding: clamp(12px, 1.4vw, 18px) clamp(14px, 1.6vw, 20px);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.bento-visual svg {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
}

.bento-content {
  padding: clamp(12px, 1.4vw, 18px) clamp(14px, 1.6vw, 20px) clamp(14px, 1.6vw, 20px);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.bento-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--signal);
  display: block;
  margin-bottom: 6px;
}
.bento-title {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  margin: 0 0 6px;
  font-variation-settings: "opsz" 60, "SOFT" 30;
  text-wrap: balance;
}
.bento-desc {
  font-family: var(--body);
  font-size: clamp(12px, 0.85vw, 13px);
  line-height: 1.45;
  color: #38465a;
  margin: 0;
}

@media (max-width: 1080px) {
  .services-bento { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .section--services {
    padding-top: clamp(56px, 12vw, 88px);
    padding-bottom: clamp(56px, 12vw, 88px);
  }
  .modules { padding: 22px; }
  .modules-chips li { font-size: 10.5px; padding: 7px 12px; }
}

/* ---------- Modules card: mobile-only flourish ----------
   Turns the plain box into a small stage: a growing left rail,
   a subtle blueprint dot backdrop, and chips that reveal one at
   a time — literally demonstrating "one module at a time". */
@media (max-width: 560px) {
  .modules {
    position: relative;
    padding: 24px 22px 26px 26px;
    border-radius: 10px;
    overflow: hidden;
    background:
      radial-gradient(circle at 0% 0%, rgba(59,108,246,0.07), transparent 55%),
      radial-gradient(circle at 100% 100%, rgba(59,108,246,0.05), transparent 50%),
      var(--paper);
    box-shadow:
      0 30px 60px -40px rgba(0,17,91,.25),
      0 1px 0 0 rgba(0,17,91,.04);
  }
  /* Growing accent rail on the left */
  .modules::before {
    content: "";
    position: absolute;
    left: 0; top: 14px; bottom: 14px;
    width: 3px;
    background: linear-gradient(180deg, var(--signal) 0%, var(--ink) 100%);
    border-radius: 0 3px 3px 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 1.2s var(--ease-out) 0.15s;
  }
  .modules.is-in::before { transform: scaleY(1); }

  /* Blueprint dot backdrop, faded at top/bottom */
  .modules::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0,17,91,0.08) 1px, transparent 1.4px);
    background-size: 14px 14px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
    pointer-events: none;
    opacity: 0.7;
  }
  .modules-head,
  .modules-chips { position: relative; z-index: 1; }

  .modules-eyebrow { color: var(--signal); }
}

/* ---------- Modules chip drop-in (all viewports) ----------
   Chips start fully collapsed so the card is short. JS adds .is-dropped
   to each in turn, and because we're animating max-width/max-height/
   padding, the flex-wrap container genuinely grows taller as each chip
   lands — literally demonstrating "one module at a time". */
.modules--animating .modules-chips li {
  max-width: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  border-width: 0;
  opacity: 0;
  transform: translateY(-18px) scale(0.4);
  overflow: hidden;
  white-space: nowrap;
  transition:
    max-width .45s var(--ease-out),
    max-height .4s var(--ease-out),
    padding .45s var(--ease-out),
    border-width .3s var(--ease-out),
    opacity .35s var(--ease-out),
    transform .55s cubic-bezier(.34, 1.56, .64, 1);
}
.modules--animating .modules-chips li.is-dropped {
  max-width: 280px;
  max-height: 48px;
  padding: 8px 14px;
  border-width: 1px;
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .modules--animating .modules-chips li {
    max-width: none; max-height: none;
    padding: 8px 14px; border-width: 1px;
    opacity: 1; transform: none; transition: none;
  }
}
@media (max-width: 560px) {
  .modules--animating .modules-chips li {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
  }
  .modules--animating .modules-chips li.is-dropped {
    max-width: 240px;
    max-height: 46px;
    padding: 7px 12px;
  }
}
@media (max-width: 560px) and (prefers-reduced-motion: reduce) {
  .modules::before { transform: scaleY(1); transition: none; }
}

/* ---------- Services: swipeable horizontal carousel on mobile ---------- */
@media (max-width: 720px) {
  .services-bento {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Let cards extend to edge of viewport */
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 20px;
    scroll-padding-left: var(--gutter);
  }
  .services-bento::-webkit-scrollbar { display: none; }
  .bento-card {
    flex: 0 0 100%;
    width: 100%;
    max-width: none;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    min-width: 0;
    /* Fill the viewport height minus space taken by the section header
       above and the swipe hint below, so only one card is visible at a
       time and the next section doesn't peek through. */
    min-height: calc(100dvh - 260px);
  }
  .bento-button {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    border-color: rgba(0, 17, 91, 0.14);
    box-shadow:
      0 30px 60px -30px rgba(0, 17, 91, 0.28),
      0 6px 18px -10px rgba(0, 17, 91, 0.18),
      0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  }
  /* Drop the fixed 16:9 aspect ratio on mobile and let the visual flex
     to fill available space above the text content. */
  .bento-visual {
    aspect-ratio: auto;
    flex: 1 1 auto;
    min-height: 0;
    padding: 24px;
  }
  .bento-visual svg { max-width: 100%; }
  .bento-content { flex: 0 0 auto; padding: 20px 22px 24px; }
  .services-bento { padding-left: var(--gutter); padding-right: var(--gutter); }
  .bento-button { height: 100%; }
  .bento-visual { padding: 20px 22px; }
  .modules-title { font-size: 17px; }

  /* Carousel indicator: dots showing progress through the four cards */
  .services-bento + .services-hint {
    display: grid;
    justify-content: center;
    align-items: center;
    margin-top: 14px;
    position: relative;
  }
  .services-dots,
  .services-hint__scroll { grid-area: 1 / 1; }
  .services-dots {
    display: flex;
    gap: 10px;
    align-items: center;
    transition: opacity .35s var(--ease), transform .35s var(--ease);
  }
  .services-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(0, 17, 91, 0.18);
    transition: background .35s var(--ease), transform .35s var(--ease), width .35s var(--ease);
  }
  .services-dot.is-active {
    background: var(--ink);
    transform: scale(1.15);
  }
  .services-hint__scroll {
    justify-self: center;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
    font-weight: 500;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .35s var(--ease), transform .35s var(--ease);
    animation: scrollHintBounce 1.6s var(--ease) infinite;
    animation-play-state: paused;
    pointer-events: none;
  }
  /* When on the final card, crossfade dots out and scroll cue in */
  .services-hint.is-end .services-dots { opacity: 0; transform: translateY(-4px); }
  .services-hint.is-end .services-hint__scroll { opacity: 1; transform: none; animation-play-state: running; }
  @keyframes scrollHintBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(3px); }
  }
}
@media (min-width: 721px) {
  .services-hint { display: none !important; }
}

/* Old list styles kept below for unused/legacy reference */
.services-list {
  border-top: 1px solid var(--line);
  margin-top: clamp(4px, 0.6vw, 10px);
}
.services-list > li { list-style: none; }
.service-row {
  /* button reset */
  appearance: none;
  background: transparent;
  border: none;
  font: inherit;
  text-align: left;
  width: 100%;
  /* layout — giant italic numeral + content stack */
  display: grid;
  grid-template-columns: clamp(80px, 9vw, 140px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding: clamp(14px, 1.8vw, 26px) clamp(8px, 1.2vw, 18px);
  border-bottom: 1px solid var(--line);
  position: relative;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: padding .45s var(--ease), background .45s var(--ease);
  isolation: isolate;
  overflow: hidden;
}
.services-list > li:last-child .service-row { border-bottom: 0; }
.service-content { min-width: 0; }
.service-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(59,108,246,0.07), rgba(59,108,246,0));
  opacity: 0;
  transition: opacity .5s var(--ease);
  z-index: -1;
  pointer-events: none;
}
.service-row::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--signal);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .5s var(--ease);
  pointer-events: none;
}
.service-row:hover { padding-left: clamp(20px, 3vw, 40px); }
.service-row:hover::before { opacity: 1; }
.service-row:hover::after  { transform: scaleY(1); }

/* Giant italic gradient numeral — the section's signature visual */
.service-num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(64px, 7.5vw, 110px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  background: linear-gradient(120deg, var(--ink) 0%, var(--signal) 55%, var(--ink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  /* breathing room so italic overshoot and gradient text don't crop */
  padding: 0.04em 0.14em 0.10em 0.04em;
  margin: 0 -0.14em -0.10em -0.04em;
  text-align: center;
  transition: transform .5s var(--ease);
}
.service-row:hover .service-num {
  transform: translateX(4px);
}

.service-title {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  margin: 0 0 6px;
  font-variation-settings: "opsz" 96, "SOFT" 30;
}
.service-desc {
  font-family: var(--body);
  font-size: clamp(13.5px, 1vw, 15px);
  line-height: 1.5;
  color: #38465a;
  max-width: 60ch;
  margin: 0;
}
.service-desc em {
  font-family: var(--display);
  font-style: italic;
  color: var(--ink);
  font-variation-settings: "opsz" 36, "SOFT" 60;
}


/* ---------- Modular platforms beat ---------- */
.modules {
  margin-top: clamp(12px, 1.4vw, 20px);
  padding: clamp(14px, 1.6vw, 22px) clamp(16px, 1.8vw, 26px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.3vw, 16px);
}
.modules-head { min-width: 0; }
.modules-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 8px;
}
.modules-title {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 60, "SOFT" 30;
  margin: 0;
  text-wrap: balance;
}
.modules-sublede {
  margin-top: 8px;
  font-family: var(--body);
  font-style: italic;
  font-size: clamp(13px, 0.95vw, 15px);
  line-height: 1.4;
  color: var(--slate);
  white-space: nowrap;
}
.modules-title em {
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 60, "SOFT" 80;
  background: linear-gradient(100deg, var(--ink) 0%, var(--signal) 55%, var(--ink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  padding: 0 0.08em;
  margin: 0 -0.08em;
}
.modules-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.modules-chips li {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bone);
  cursor: default;
}
.modules-chips__more {
  background: transparent !important;
  border-style: dashed !important;
  color: var(--slate-2) !important;
  font-style: italic;
}


.services-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(14px, 1.8vw, 24px);
}
.services-cta .btn { padding: 13px 24px; font-size: 14px; }

/* ---------- Service detail modal (<dialog>) ---------- */
.service-modal {
  border: none;
  background: transparent;
  padding: 0;
  max-width: min(640px, 92vw);
  width: 100%;
  max-height: 88vh;
  max-height: 88dvh;
  color: var(--ink);
  margin: auto;
}
@media (max-width: 560px) {
  .service-modal { max-width: 94vw; max-height: 92dvh; }
  .modal-inner { padding: 28px 24px 24px; }
  .modal-title { font-size: 30px; }
  .modal-lede { font-size: 15px; }
  .modal-close { top: 12px; right: 12px; width: 34px; height: 34px; }
}
.service-modal::backdrop {
  background: rgba(0, 17, 91, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Open animation */
.service-modal[open] {
  animation: modalIn .35s var(--ease-out) both;
}
.service-modal[open]::backdrop {
  animation: backdropIn .35s ease both;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes backdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-inner {
  background: var(--paper);
  border-radius: 6px;
  padding: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 56px) clamp(28px, 4vw, 48px);
  box-shadow: 0 60px 120px -40px rgba(0,17,91,.55);
  position: relative;
  max-height: 88vh;
  overflow-y: auto;
}

.modal-close {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  position: absolute;
  top: 16px;
  right: 16px;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.modal-close:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  transform: rotate(90deg);
}

.modal-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 14px;
}
.modal-title {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  margin: 0 0 20px;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  text-wrap: balance;
}
.modal-title em {
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  display: inline-block;
  padding: 0.02em 0.14em 0.16em 0.04em;
  margin: 0 -0.14em -0.16em -0.04em;
  background: linear-gradient(100deg, var(--ink) 0%, var(--signal) 55%, var(--ink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.modal-lede {
  font-family: var(--body);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.55;
  color: #38465a;
  margin: 0 0 28px;
  max-width: 56ch;
}
.modal-lede em {
  font-family: var(--display);
  font-style: italic;
  color: var(--ink);
  font-variation-settings: "opsz" 36, "SOFT" 60;
}
.modal-section-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.modal-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}
.modal-list li {
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.5;
  color: #46566a;
  padding: 6px 0 6px 22px;
  position: relative;
}
.modal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 12px;
  height: 1px;
  background: var(--signal);
}
.modal-outcome {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 28px;
  padding-left: 16px;
  border-left: 2px solid var(--signal);
  font-variation-settings: "opsz" 36, "SOFT" 50;
}
.modal-outcome strong {
  font-style: normal;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  display: block;
  margin-bottom: 4px;
  font-weight: 400;
}
.modal-cta {
  padding: 13px 24px;
  font-size: 14px;
}

@media (max-width: 720px) {
  .service-row {
    grid-template-columns: 70px 1fr;
    gap: 16px 20px;
  }
  .service-num { font-size: 56px; }
}

/* =====================================================================
   AI — pragmatic
   ===================================================================== */
.section--ai {
  background: var(--mist);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: clamp(28px, 3vw, 44px);
  padding-bottom: clamp(28px, 3vw, 44px);
  position: relative;
}
@media (max-width: 820px) {
  .section--ai {
    padding-top: clamp(56px, 12vw, 88px);
    padding-bottom: clamp(56px, 12vw, 88px);
    /* Give AI a full viewport anchor on mobile so proximity snap
       can't skim past it, and force the browser to stop here even
       under fast flick-scrolls. */
    min-height: 100vh;
    min-height: 100dvh;
    scroll-snap-stop: always;
  }
}
@media (max-width: 560px) {
  .ai-demo-body { padding: 16px 18px 18px; }
  .ai-demo-question { font-size: 17px; gap: 10px; }
  .ai-demo-row { gap: 10px; padding: 8px 0; }
  .ai-demo-row-label { font-size: 12.5px; }
  .ai-demo-row-value { font-size: 11.5px; }
  .ai-demo-summary { font-size: 14px; }
}
.section--ai .section-head { margin-bottom: clamp(18px, 2vw, 28px); }
.section--ai .section-lede { font-size: clamp(14px, 1.05vw, 16px); line-height: 1.55; }
.section--ai::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--ink) 1px, transparent 1.4px);
  background-size: 18px 18px;
  opacity: 0.05;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}
/* ---------- AI conversation demo ---------- */
.ai-demo {
  width: 100%;
  max-width: 720px;
  margin: clamp(20px, 2.4vw, 32px) auto 0;
  position: relative;
  min-width: 0;
}
.ai-demo-frame {
  width: 100%;
  box-sizing: border-box;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0,17,91,.25);
}
.ai-demo-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-2);
}
.ai-demo-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(59,108,246,.55);
  animation: aiDotPulse 2.2s infinite;
  flex-shrink: 0;
}
@keyframes aiDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59,108,246,.55); }
  50%      { box-shadow: 0 0 0 7px rgba(59,108,246,0); }
}

.ai-demo-body {
  padding: clamp(18px, 2vw, 24px) clamp(22px, 2.4vw, 30px) clamp(20px, 2.2vw, 26px);
  /* Lock a consistent height so the frame doesn't jump between examples */
  min-height: 380px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
@media (max-width: 560px) {
  .ai-demo-body { min-height: 380px; }
}

.ai-demo-question {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
  font-variation-settings: "opsz" 60, "SOFT" 60;
  display: flex;
  gap: 14px;
  align-items: baseline;
  min-width: 0;
}
.ai-demo-question .ai-demo-q-text {
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: break-word;
}
.ai-demo-prompt {
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  color: var(--signal);
  letter-spacing: 0.12em;
  flex-shrink: 0;
}
.ai-demo-q-text { display: inline; }

.ai-demo-thinking {
  display: flex;
  gap: 6px;
  margin: 14px 0 0 26px;
  height: 7px;
}
.ai-demo-thinking span {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--signal);
  opacity: 0.4;
}

.ai-demo-answer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.ai-demo-a-lead {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-2);
  margin: 0 0 14px;
}
.ai-demo-answer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ai-demo-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  gap: 16px;
}
.ai-demo-row-label {
  font-family: var(--body);
  font-size: clamp(13px, 1vw, 14.5px);
  color: #38465a;
  flex: 1;
  min-width: 0;
}
.ai-demo-row-value {
  font-family: var(--mono);
  font-size: clamp(12px, 0.95vw, 13.5px);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.ai-demo-summary {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.4;
  color: var(--ink);
  margin: 14px 0 0;
  font-variation-settings: "opsz" 36, "SOFT" 50;
}
.ai-demo-summary strong {
  font-style: normal;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.92em;
  color: var(--ink);
  background: linear-gradient(100deg, var(--ink) 0%, var(--signal) 60%, var(--ink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 0.04em;
}

/* ---------- AI demo: page indicator dots ---------- */
.ai-demo-pages {
  margin-left: auto;
  display: flex;
  gap: 6px;
  align-items: center;
}
.ai-demo-page {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  transition: background .5s var(--ease), transform .5s var(--ease);
}
.ai-demo-page.is-active {
  background: var(--ink);
  transform: scale(1.15);
}

/* ---------- AI demo: class-based animation states ---------- */
.ai-demo .ai-demo-question,
.ai-demo .ai-demo-thinking,
.ai-demo .ai-demo-a-lead,
.ai-demo .ai-demo-row,
.ai-demo .ai-demo-summary {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
}
.ai-demo .is-in {
  opacity: 1;
  transform: translateY(0);
}
.ai-demo .is-out {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}

/* Thinking dots — pulse continuously while visible */
.ai-demo .ai-demo-thinking span {
  animation: aiThinkDot 1.4s ease-in-out infinite;
}
.ai-demo .ai-demo-thinking span:nth-child(2) { animation-delay: 0.2s; }
.ai-demo .ai-demo-thinking span:nth-child(3) { animation-delay: 0.4s; }
@keyframes aiThinkDot {
  0%, 60%, 100% { opacity: 0.4; transform: scale(1); }
  30% { opacity: 1; transform: scale(1.25); }
}


/* =====================================================================
   04 — PROCESS
   ===================================================================== */
.section--process {
  background: var(--paper);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 820px) {
  .section--process {
    min-height: auto;
    padding-top: clamp(56px, 12vw, 96px);
    padding-bottom: clamp(56px, 12vw, 96px);
  }
}
/* ---------- Horizontal process flow ---------- */
.process-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}
/* The connecting line that runs through the markers */
.process-flow::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 12.5%;
  right: 12.5%;
  height: 1.5px;
  background: var(--ink);
  opacity: 0.25;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.6s var(--ease-out) .15s;
  z-index: 1;
}
.process-flow.is-in::before { transform: scaleX(1); }

.process-step {
  list-style: none;
  text-align: center;
  padding: 0 clamp(12px, 1.5vw, 24px);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.process-marker {
  position: relative;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  z-index: 2;
}
.process-marker::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--paper);
  border: 1.8px solid var(--ink);
  opacity: 0;
  transform: scale(0);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
}
.process-marker-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--ink);
  opacity: 0;
  transform: scale(0);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
}

.process-flow.is-in .process-step:nth-child(1) .process-marker::before,
.process-flow.is-in .process-step:nth-child(1) .process-marker-dot { transition-delay: 0.45s; }
.process-flow.is-in .process-step:nth-child(2) .process-marker::before,
.process-flow.is-in .process-step:nth-child(2) .process-marker-dot { transition-delay: 0.85s; }
.process-flow.is-in .process-step:nth-child(3) .process-marker::before,
.process-flow.is-in .process-step:nth-child(3) .process-marker-dot { transition-delay: 1.25s; }
.process-flow.is-in .process-step:nth-child(4) .process-marker::before,
.process-flow.is-in .process-step:nth-child(4) .process-marker-dot { transition-delay: 1.65s; }

.process-flow.is-in .process-marker::before {
  opacity: 1;
  transform: scale(1);
}
.process-flow.is-in .process-marker-dot {
  opacity: 1;
  transform: scale(1);
}

.process-step:hover .process-marker::before {
  background: var(--ink);
}
.process-step:hover .process-marker-dot {
  background: var(--paper);
}

.process-num {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--signal);
  letter-spacing: 0.18em;
  display: block;
  margin-bottom: 8px;
}
.process-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 0 10px;
  font-variation-settings: "opsz" 60, "SOFT" 30;
}
.process-desc {
  font-family: var(--body);
  font-size: clamp(13px, 0.95vw, 14px);
  line-height: 1.5;
  color: #38465a;
  max-width: 26ch;
  margin: 0 auto;
}

/* ---------- Closing italic statement ---------- */
.process-statement {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 1.55vw, 24px);
  line-height: 1.5;
  color: var(--ink);
  text-align: center;
  max-width: 64ch;
  margin: clamp(48px, 5vw, 72px) auto 0;
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line);
  font-variation-settings: "opsz" 60, "SOFT" 50;
  text-wrap: balance;
}
.process-statement strong {
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(100deg, var(--ink) 0%, var(--signal) 55%, var(--ink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  padding: 0 0.04em;
  margin: 0 -0.04em;
}

@media (max-width: 900px) {
  .process-flow { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .process-flow::before { display: none; }
  .process-marker { margin-bottom: 16px; }
  .process-title { font-size: 22px; }
}
@media (max-width: 560px) {
  .process-flow { grid-template-columns: 1fr; gap: 32px; }
  .process-statement { margin-top: 40px; padding-top: 28px; font-size: 16px; }
}

/* =====================================================================
   05 — ABOUT
   ===================================================================== */
.section--about {
  background: var(--mist);
  border-top: 1px solid var(--line);
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
  margin-top: clamp(-20px, -2vw, -48px);
}
.about-copy p {
  margin-bottom: 18px;
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.65;
  color: #38465a;
}
.about-copy strong { color: var(--ink); font-weight: 600; }
.about-copy em {
  color: var(--ink);
  font-family: var(--display);
  font-style: italic;
  font-size: 1.08em;
  font-variation-settings: "opsz" 36, "SOFT" 60;
  line-height: inherit;
}

.about-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 36px 32px 32px;
  margin: 0;
  box-shadow: 0 40px 80px -50px rgba(0,17,91,.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  max-width: 340px;
  justify-self: center;
}
.about-avatar {
  width: clamp(160px, 18vw, 220px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 2px solid var(--ink);
  box-shadow: 0 24px 48px -24px rgba(0,17,91,.32);
  background: var(--mist);
}
.about-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Focus on the face — head is in the upper portion of the photo */
  object-position: center 18%;
  display: block;
}
.about-name {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
}
.about-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 4px 0 0;
}
.about-meta {
  font-size: 13px;
  color: var(--slate-2);
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  width: 100%;
}
.about-team {
  font-family: var(--display);
  font-style: italic;
  font-size: 13px;
  color: var(--slate-2);
  margin: 4px 0 0;
  font-variation-settings: "opsz" 36, "SOFT" 60;
}

.stack { margin-top: clamp(64px, 8vw, 112px); }
.stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.stack-chips li {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink);
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.stack-chips li:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    align-items: center;
    margin-top: 0;
    gap: clamp(28px, 6vw, 44px);
  }
  .about-card {
    position: static;
    max-width: 360px;
    justify-self: center;
    order: -1;
  }
}
@media (max-width: 820px) {
  .section--about {
    padding-top: clamp(56px, 12vw, 88px);
    padding-bottom: clamp(56px, 12vw, 88px);
  }
}

/* =====================================================================
   06 — CASE STUDIES
   ===================================================================== */
.section--work {
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
}
.case {
  padding: clamp(36px, 4vw, 56px);
  border-right: 1px solid var(--line);
  background: var(--paper);
  position: relative;
  transition: background .4s var(--ease);
}
.case:last-child { border-right: none; }
.case--alt { background: var(--bone); }
.case:hover { background: var(--mist); }

.case-sector {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 20px;
}
.case-head h3 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--ink);
  font-size: clamp(26px, 2.4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 22ch;
}
.case-body {
  margin-top: 28px;
  font-size: 15px;
  color: var(--slate);
}
.case-body p + p { margin-top: 14px; }

.case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 36px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.case-stats > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.case-stats > div { padding-right: 18px; }
.case-stats dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-2);
  margin-bottom: 10px;
}
.case-stats dd { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.stat-num {
  font-family: var(--display);
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-unit {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-2);
}

@media (max-width: 900px) {
  .cases { grid-template-columns: 1fr; }
  .case { border-right: none; border-bottom: 1px solid var(--line); }
  .case:last-child { border-bottom: none; }
}

/* =====================================================================
   07 — CONTACT (dark navy moment)
   ===================================================================== */
.section--contact {
  background: var(--ink);
  color: var(--mist);
  text-align: center;
  padding-top: clamp(72px, 8vw, 120px);
  padding-bottom: clamp(64px, 7vw, 104px);
}
@media (max-width: 560px) {
  .section--contact {
    padding-top: clamp(72px, 16vw, 96px);
    padding-bottom: clamp(56px, 14vw, 80px);
  }
  .section--contact .display {
    font-size: clamp(40px, 11vw, 56px) !important;
  }
  .contact-actions { flex-direction: column; gap: 12px; }
  .contact-actions .btn { width: 100%; justify-content: center; }
  .contact-signoff { flex-direction: column; gap: 12px; margin-top: 32px; }
  .contact-signoff-text { text-align: center; }
  .contact-body { font-size: 15px; }
}
.section--contact .display {
  color: var(--paper);
  font-size: clamp(44px, 6vw, 88px);
  line-height: 1.0;
}
.section--contact .display em {
  background: linear-gradient(100deg, #b8d4ff 0%, #ffffff 50%, #b8d4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  padding: 0.02em 0.14em 0.16em 0.04em;
  margin: 0 -0.14em -0.16em -0.04em;
}
.contact-swoosh {
  position: absolute;
  top: 30%;
  left: -8%;
  width: 116%;
  height: 320px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.contact-body {
  max-width: 56ch;
  margin: 32px auto 0;
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.6;
  color: rgba(255,255,255,.88);
  position: relative;
  z-index: 2;
}
.contact-actions {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}
.contact-actions .btn { padding: 15px 26px; font-size: 15px; }

/* Personal sign-off with mini avatar */
.contact-signoff {
  position: relative;
  z-index: 2;
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.contact-signoff-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(184,212,255,.4);
  flex-shrink: 0;
  background: var(--ink-2);
}
.contact-signoff-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}
.contact-signoff-text {
  text-align: left;
}
.contact-signoff-line {
  font-family: var(--display);
  font-style: italic;
  font-size: 15px;
  line-height: 1.3;
  color: #ffffff;
  margin: 0;
  font-variation-settings: "opsz" 36, "SOFT" 60;
}
.contact-signoff-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(184,212,255,.65);
  margin: 3px 0 0;
}

.contact-fineprint {
  position: relative;
  z-index: 2;
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  background: var(--ink-2);
  color: rgba(255,255,255,.78);
  padding: clamp(48px, 6vw, 80px) var(--gutter) 32px;
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
}
.brand--footer .brand-img { height: 48px; filter: brightness(0) invert(1); }
.footer-tagline p {
  font-family: var(--display);
  font-size: clamp(16px, 1.4vw, 19px);
  font-style: italic;
  color: rgba(255,255,255,.72);
  max-width: 40ch;
}
.footer-links {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-links a {
  color: var(--paper);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color .3s var(--ease);
}
.footer-links a:hover { border-bottom-color: var(--signal-3); }
.footer-rule {
  max-width: var(--container);
  margin: 40px auto 24px;
  height: 1px;
  background: rgba(255,255,255,.12);
}
.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.footer-mono { color: var(--signal-2); opacity: 0.8; }
.site-footer--minimal { padding-top: 32px; }
.footer-legal {
  font-style: normal;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
  line-height: 1.5;
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-legal { text-align: left; }
}

/* ===== Reduce motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
