/* ============================================================
   FELIX GODBOUT — Infrastructure Architect  ·  v2 (light)
   Editorial / story-driven / conversion-focused
   Warm paper · warm ink · burnt-clay accent
   ============================================================ */

:root {
  /* ---- light, warm world ---- */
  --paper:   #efebe2;   /* base warm bone */
  --paper-2: #f5f2ea;   /* lighter band */
  --paper-3: #e9e4d8;   /* slightly deeper band */
  --ink:     #16140f;   /* warm near-black */
  --ink-2:   #2c281f;
  --soft:    #565049;   /* secondary text */
  --dim:     #8b8478;   /* muted labels */
  --faint:   #b6ae9f;   /* hairline text */

  --clay:      #c0461d;  /* burnt-clay accent */
  --clay-hi:   #d75f37;
  --clay-soft: rgba(192, 70, 29, 0.10);

  --line:   rgba(22, 20, 15, 0.13);
  --line-2: rgba(22, 20, 15, 0.22);
  --hair:   rgba(22, 20, 15, 0.07);

  /* dark band (final CTA) */
  --ink-bg: #14120d;

  --display: 'Schibsted Grotesk', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --gutter: clamp(20px, 5.2vw, 110px);
  --maxw: 1500px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease2: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- background field ---------- */
#bg-canvas {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: 0; pointer-events: none;
}
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(var(--hair) 1px, transparent 1px),
    linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: clamp(60px, 7vw, 110px) clamp(60px, 7vw, 110px);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 90%);
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 90%);
}
.bg-grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxNjAnIGhlaWdodD0nMTYwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC45JyBudW1PY3RhdmVzPScyJyBzdGl0Y2hUaWxlcz0nc3RpdGNoJy8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9JzEwMCUnIGhlaWdodD0nMTAwJScgZmlsdGVyPSd1cmwoI24pJyBvcGFjaXR5PScwLjM1Jy8+PC9zdmc+");
}
.content { position: relative; z-index: 2; }

/* ---------- primitives ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--clay);
  display: inline-flex; align-items: center; gap: 11px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--clay); opacity: 0.8; }
.eyebrow.plain::before { display: none; }

h1, h2, h3 { font-weight: 500; letter-spacing: -0.035em; line-height: 1.0; }
.display {
  font-size: clamp(2.7rem, 8vw, 7.2rem);
  font-weight: 500; letter-spacing: -0.045em; line-height: 0.94;
}
.h2 { font-size: clamp(2rem, 4.6vw, 4.2rem); letter-spacing: -0.04em; line-height: 1.0; }
.h3 { font-size: clamp(1.5rem, 2.8vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.04; }
.lede { font-size: clamp(1.1rem, 1.45vw, 1.4rem); color: var(--soft); line-height: 1.5; font-weight: 400; letter-spacing: -0.015em; }
.mono-tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
em.clay { font-style: normal; color: var(--clay); }

.reveal-line { display: inline-block; overflow: hidden; padding-bottom: 0.08em; vertical-align: top; }
.reveal-line > span { display: inline-block; will-change: transform; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  padding: 16px 28px; border-radius: 100px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: transform .55s var(--ease), background .4s var(--ease2), color .4s, box-shadow .55s, border-color .4s;
  position: relative; white-space: nowrap;
}
.btn .arw { transition: transform .55s var(--ease); }
.btn:hover { background: var(--clay); border-color: var(--clay); transform: translateY(-2px); box-shadow: 0 18px 40px -18px rgba(192,70,29,0.7); }
.btn:hover .arw { transform: translateX(5px); }
.btn-lg { padding: 19px 34px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: transparent; color: var(--clay); border-color: var(--clay); box-shadow: none; transform: translateY(-2px); }
.btn-paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-paper:hover { background: var(--clay); border-color: var(--clay); color: var(--paper); }

.text-link {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.03em; color: var(--ink);
  display: inline-flex; align-items: center; gap: 9px; padding-bottom: 3px;
  border-bottom: 1px solid var(--line-2); transition: color .3s, border-color .3s, gap .4s var(--ease);
}
.text-link:hover { color: var(--clay); border-color: var(--clay); gap: 13px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter);
  transition: background .5s var(--ease2), border-color .5s, padding .5s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(239,235,226,0.78);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  border-bottom: 1px solid var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; }
.brand .mark {
  width: 27px; height: 27px; border-radius: 7px; position: relative;
  border: 1.5px solid var(--ink); display: grid; place-items: center; flex: none;
}
.brand .mark::before, .brand .mark::after { content: ""; position: absolute; background: var(--clay); }
.brand .mark::before { width: 11px; height: 2px; }
.brand .mark::after { width: 2px; height: 11px; }
.brand b { font-weight: 600; }
.brand .role { color: var(--dim); }
.brand .sep { color: var(--faint); }
.nav-right { display: flex; align-items: center; gap: 6px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--soft); padding: 9px 14px; border-radius: 8px; transition: color .3s, background .3s;
}
.nav-links a:hover { color: var(--ink); background: var(--hair); }
.nav-cta { margin-left: 10px; padding: 12px 22px; }
.lang { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; padding: 0 4px 0 10px; }
.lang a { color: var(--dim); transition: color .3s; }
.lang a:hover { color: var(--ink); }
.lang a.on { color: var(--ink); }
.lang span { color: var(--faint); }
.nav-toggle { display: none; }

/* ---------- floating CTA (conversion) ---------- */
.float-cta {
  position: fixed; right: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 36px); z-index: 45;
  opacity: 0; transform: translateY(20px) scale(0.96); pointer-events: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  box-shadow: 0 22px 50px -18px rgba(20,18,13,0.5);
}
.float-cta.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

/* ---------- HERO ---------- */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 130px; padding-bottom: clamp(34px, 6vh, 70px); position: relative;
}
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: auto; flex-wrap: wrap; }
.hero-tag {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim); text-align: right; line-height: 1.9;
}
.hero h1 { max-width: 18ch; margin: 26px 0 0; }
.hero-sub { display: flex; gap: clamp(24px, 5vw, 90px); align-items: flex-end; margin-top: clamp(26px, 4vh, 44px); flex-wrap: wrap; }
.hero-sub .lede { max-width: 40ch; }
.hero-cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-micro { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.05em; color: var(--dim); margin-top: 16px; }
.scroll-cue {
  position: absolute; left: var(--gutter); bottom: 22px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint);
  display: flex; align-items: center; gap: 10px;
}
.scroll-cue .bar { width: 1px; height: 32px; background: var(--line-2); position: relative; overflow: hidden; }
.scroll-cue .bar::after { content:""; position:absolute; top:-50%; left:0; width:100%; height:50%; background: var(--clay); animation: cue 2.4s var(--ease2) infinite; }
@keyframes cue { 0%{transform:translateY(-100%)} 60%,100%{transform:translateY(300%)} }

/* ---------- stat strip (odometer) ---------- */
.stats {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat { padding: clamp(26px, 3.4vw, 48px) clamp(18px,2vw,34px); border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--mono); font-weight: 500; letter-spacing: -0.02em; line-height: 1;
  font-size: clamp(2rem, 4vw, 3.6rem); display: flex; align-items: baseline;
}
.stat .num .roll { display: inline-flex; overflow: hidden; height: 1em; }
.stat .num .roll .reel { display: flex; flex-direction: column; }
.stat .num .roll .reel span { height: 1em; line-height: 1; }
.stat .num .pre, .stat .num .suf { color: var(--clay); }
.stat .lbl { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--soft); margin-top: 14px; max-width: 22ch; line-height: 1.45; }

/* ---------- section scaffold ---------- */
.section { padding: clamp(90px, 14vh, 190px) 0; position: relative; }
.section.band { background: var(--paper-3); }
.sec-head { max-width: 62ch; margin-bottom: clamp(40px, 7vh, 90px); }
.sec-head .h2 { margin-top: 20px; }

/* ---------- STORY (stacked statements) ---------- */
.story-intro { max-width: 30ch; margin-bottom: clamp(30px,5vh,60px); }
.story-line {
  display: grid; grid-template-columns: 90px 1fr; gap: clamp(18px, 4vw, 60px);
  padding: clamp(34px, 5vh, 62px) 0; border-top: 1px solid var(--line); align-items: start;
}
.story-line:last-of-type { border-bottom: 1px solid var(--line); }
.story-line .si { font-family: var(--mono); font-size: 13px; color: var(--clay); letter-spacing: 0.06em; padding-top: 0.5em; }
.story-line .st { font-size: clamp(1.6rem, 3.4vw, 3rem); letter-spacing: -0.03em; line-height: 1.08; max-width: 22ch; }
.story-line .st b { font-weight: 500; }
.story-line .sd { color: var(--soft); font-size: clamp(1rem, 1.2vw, 1.18rem); line-height: 1.5; max-width: 44ch; margin-top: 16px; }
.story-cta { margin-top: clamp(40px,6vh,72px); display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* ---------- MATH ---------- */
.math-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(36px, 5vw, 90px); align-items: center; }
.math-grid .h2 { margin: 18px 0 24px; }
.math-grid .lede { max-width: 44ch; }
.math-panel {
  border: 1px solid var(--line); border-radius: 16px; background: var(--paper-2);
  padding: clamp(26px, 3vw, 44px); position: relative; overflow: hidden;
  box-shadow: 0 30px 70px -45px rgba(20,18,13,0.4);
}
.bar-row { margin-bottom: 26px; }
.bar-row .bar-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.03em; color: var(--soft); margin-bottom: 11px; white-space: nowrap; }
.bar-row .bar-label .v { color: var(--ink); font-size: 15px; }
.bar-track { height: 16px; border-radius: 8px; background: var(--paper-3); border: 1px solid var(--line); overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: 8px; transition: width 1.5s var(--ease); }
.bar-fill.rent { background: repeating-linear-gradient(45deg, var(--line-2), var(--line-2) 2px, transparent 2px, transparent 9px); }
.bar-fill.own { background: linear-gradient(90deg, var(--clay), var(--clay-hi)); box-shadow: 0 0 20px rgba(192,70,29,0.35); }
.math-result { margin-top: 6px; padding-top: 24px; border-top: 1px dashed var(--line-2); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.math-result > div { display: flex; flex-direction: column; gap: 9px; }
.math-result .lbl { font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: 0.05em; white-space: nowrap; }
.math-result .big { font-family: var(--mono); font-size: clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing: -0.02em; line-height: 1; }
.math-result .retained { font-family: var(--mono); font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--clay); line-height: 1; }

/* ---------- PRACTICE (services) ---------- */
.practice-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(40px,6vh,72px); }
.practice-head .lede { max-width: 46ch; }
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  background: var(--paper-2);
  box-shadow: 0 34px 80px -56px rgba(20, 18, 13, 0.4);
}
.svc {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(24px, 2.4vw, 38px); min-height: 196px; display: flex; flex-direction: column;
  background: transparent; transition: background .5s var(--ease2); position: relative;
}
.svc:hover { background: #fbf9f3; }
.svc .top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; }
.svc .ic { width: 28px; height: 28px; color: var(--clay); }
.svc .n { font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: 0.1em; }
.svc h3 { font-size: clamp(1.15rem, 1.5vw, 1.45rem); letter-spacing: -0.025em; margin: 20px 0 9px; }
.svc p { color: var(--dim); font-size: 14px; line-height: 1.5; }
.practice-note { margin-top: 40px; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.practice-note p { font-size: clamp(1.05rem, 1.4vw, 1.3rem); max-width: 48ch; letter-spacing: -0.01em; }
.practice-note p b { font-weight: 500; }

/* ---------- PROOF (quote + creds + mandates) ---------- */
.quote-block { max-width: 30ch; }
.bigquote { font-size: clamp(1.8rem, 3.6vw, 3.2rem); letter-spacing: -0.03em; line-height: 1.1; }
.bigquote em { font-style: normal; color: var(--clay); }
.proof-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.proof-body { color: var(--soft); font-size: clamp(1.05rem, 1.3vw, 1.25rem); line-height: 1.55; max-width: 52ch; }
.creds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.cred {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.03em; color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 100px; padding: 9px 16px;
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
}
.cred .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--clay); flex: none; }

.mandate-list { margin-top: clamp(46px,7vh,80px); border-top: 1px solid var(--line); }
.mandate {
  display: grid; grid-template-columns: 70px minmax(0,1fr) minmax(0,1.1fr); gap: clamp(16px,3vw,48px);
  padding: clamp(26px,4vh,42px) 0; border-bottom: 1px solid var(--line); align-items: baseline;
  transition: background .5s, padding-left .5s var(--ease);
}
.mandate:hover { background: var(--paper-2); padding-left: 14px; }
.mandate .mn { font-family: var(--mono); font-size: 12px; color: var(--clay); letter-spacing: 0.08em; }
.mandate .mt h3 { font-size: clamp(1.2rem,1.9vw,1.7rem); letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 7px; }
.mandate .mt .cl { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.mandate .mr { color: var(--soft); font-size: clamp(0.98rem,1.1vw,1.12rem); line-height: 1.5; }
.nda { font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: 0.05em; margin-top: 24px; }

/* ---------- STEPS ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.step { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(28px,3vw,46px); min-height: 230px; display: flex; flex-direction: column; }
.step .sn { font-family: var(--mono); font-size: clamp(2.2rem,3.6vw,3.2rem); color: var(--faint); line-height: 1; margin-bottom: auto; }
.step h3 { font-size: clamp(1.2rem,1.7vw,1.6rem); letter-spacing: -0.025em; margin: 26px 0 11px; }
.step p { color: var(--dim); font-size: 15px; line-height: 1.55; }

/* ---------- FINAL CTA (dark band) ---------- */
.cta-band { background: var(--ink-bg); color: var(--paper); position: relative; overflow: hidden; }
.cta-band .bg-grid-d {
  position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 90px 90px;
  -webkit-mask-image: radial-gradient(120% 90% at 30% 0%, #000, transparent 80%);
  mask-image: radial-gradient(120% 90% at 30% 0%, #000, transparent 80%);
}
.cta-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(40px,5vw,90px); align-items: start; position: relative; z-index: 1; }
.cta-band .eyebrow { color: var(--clay-hi); }
.cta-band .eyebrow::before { background: var(--clay-hi); }
.cta-band h2 { font-size: clamp(2.2rem, 4.6vw, 4.4rem); letter-spacing: -0.04em; line-height: 0.98; margin: 18px 0 22px; }
.cta-band .lede { color: rgba(239,235,226,0.66); max-width: 40ch; }
.cta-meta { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; overflow: hidden; margin-top: 40px; }
.cmi { padding: 20px 22px; border-right: 1px solid rgba(255,255,255,0.12); border-bottom: 1px solid rgba(255,255,255,0.12); }
.cmi:nth-child(2n) { border-right: none; }
.cmi:nth-last-child(-n+2) { border-bottom: none; }
.cmi .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(239,235,226,0.5); margin-bottom: 8px; }
.cmi .v { font-size: 14.5px; color: var(--paper); }

/* form */
.form-card { background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: clamp(26px,3vw,40px); backdrop-filter: blur(8px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1/-1; }
.field label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(239,235,226,0.55); }
.field input, .field select, .field textarea {
  font-family: var(--display); font-size: 15px; color: var(--paper);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.16);
  border-radius: 9px; padding: 13px 14px; width: 100%; transition: border-color .3s, background .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(239,235,226,0.32); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--clay-hi); background: rgba(215,95,55,0.07); box-shadow: 0 0 0 3px rgba(215,95,55,0.14); }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23efebe2' stroke-width='1.5' fill='none' stroke-linecap='round' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.field select option { background: #1f1c15; color: var(--paper); }
.form-submit { grid-column: 1/-1; display: flex; align-items: center; gap: 18px; margin-top: 6px; flex-wrap: wrap; }
.form-note { font-family: var(--mono); font-size: 11px; color: rgba(239,235,226,0.4); letter-spacing: 0.03em; }
.form-status { font-family: var(--mono); font-size: 12px; letter-spacing: 0.03em; }
.form-status.ok { color: var(--clay-hi); }
.form-status.err { color: #ff9a7d; }
.placeholder-flag { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: #ffd9a0; background: rgba(255,180,90,0.08); border: 1px dashed rgba(255,180,90,0.4); border-radius: 6px; padding: 8px 12px; margin-bottom: 18px; display: block; }

/* ---------- footer ---------- */
.footer { background: var(--ink-bg); color: var(--paper); padding: clamp(40px,6vh,72px) 0 44px; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.footer .fb { font-family: var(--mono); font-size: 13px; }
.footer .fb span { color: rgba(239,235,226,0.5); }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-family: var(--mono); font-size: 13px; color: rgba(239,235,226,0.78); display: inline-flex; gap: 9px; align-items: center; transition: color .3s; }
.footer-links a:hover { color: var(--clay-hi); }
.footer-links a .ar { color: rgba(239,235,226,0.4); transition: transform .4s var(--ease); }
.footer-links a:hover .ar { transform: translateX(3px); color: var(--clay-hi); }
.footer-bottom { margin-top: clamp(36px,5vh,60px); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; color: rgba(239,235,226,0.42); }

/* ---------- reveal ---------- */
.fx { opacity: 0; }
html.no-js .fx { opacity: 1 !important; transform: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 920px) {
  .nav-links { display: none; }
  .math-grid, .practice-head, .proof-grid, .cta-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .story-line { grid-template-columns: 1fr; gap: 12px; }
  .mandate { grid-template-columns: 50px 1fr; }
  .mandate .mr { grid-column: 2; }
  .brand .role, .brand .sep { display: none; }
}
@media (max-width: 600px) {
  .svc-grid, .form-grid, .cta-meta { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .nav-cta { display: none; }
  .cmi { border-right: none; }
  .hero { padding-top: 92px; padding-bottom: 40px; }
  .hero h1 { max-width: none; margin-top: 18px; }
  .display { font-size: clamp(2.15rem, 11vw, 3.4rem); }
  .hero-sub { gap: 28px; margin-top: 30px; }
  .float-cta { font-size: 12px; padding: 13px 20px; bottom: 14px; right: 14px; }
  .practice-note, .story-cta { flex-direction: column; align-items: flex-start; gap: 22px; }
  .math-result { flex-wrap: wrap; gap: 22px; }
  .form-submit { align-items: flex-start; }
  .bar-row .bar-label { white-space: normal; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .fx { opacity: 1 !important; transform: none !important; }
}
