/* =================================================================
   MultiCloud Optimization — multicloudoptimization.com
   Design system
   - Palette: deep navy ink, near-white, terracotta accent
   - Type: Schibsted Grotesk (display/UI) · JetBrains Mono (data)
           · Newsreader italic (editorial accent)
   ================================================================= */

:root {
  /* --- Color: ink / paper / accent --- */
  --ink-900: #070c16;          /* deepest */
  --ink-800: #0b1320;          /* page base */
  --ink-700: #0f1828;          /* elevated surface */
  --ink-600: #131f33;          /* card */
  --ink-500: #1a2740;          /* hover surface */

  --paper:   #e8eef7;          /* high-contrast text */
  --paper-dim: #aab6cc;        /* secondary text */
  --paper-mute: #6f7e98;       /* tertiary / captions */

  --line:      rgba(232,238,247,0.10);   /* hairline */
  --line-soft: rgba(232,238,247,0.055);
  --line-strong: rgba(232,238,247,0.18);

  /* terracotta — the single warm accent */
  --accent:      #d97757;
  --accent-bright: #ec8a68;
  --accent-deep:  #b75d3f;
  --accent-tint:  rgba(217,119,87,0.12);
  --accent-glow:  rgba(217,119,87,0.30);

  /* supportive cool tones for data viz only */
  --data-a: #6b8cba;
  --data-b: #93a3c4;
  --data-ghost: rgba(170,182,204,0.35);

  /* --- Type --- */
  --sans: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Newsreader", Georgia, serif;

  /* --- Layout --- */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --radius-lg: 22px;

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

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--ink-800);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
::selection { background: var(--accent); color: var(--ink-900); }

/* page grain / depth: extremely subtle radial behind hero */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(120% 80% at 78% -10%, rgba(217,119,87,0.10), transparent 55%),
    radial-gradient(90% 70% at 8% 0%, rgba(107,140,186,0.08), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

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

section { position: relative; z-index: 1; }

.section-pad { padding-block: clamp(72px, 11vw, 150px); }

.rule { height: 1px; background: var(--line); border: 0; }

/* ---------- type utilities ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.center::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

h1, h2, h3 { font-weight: 600; line-height: 1.02; letter-spacing: -0.02em; }

.display {
  font-size: clamp(2.9rem, 7.2vw, 6.1rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.04;
}
.h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 600; letter-spacing: -0.02em; }

.serif-em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  line-height: 1.55;
  color: var(--paper-dim);
  font-weight: 400;
  max-width: 56ch;
  text-wrap: pretty;
}

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-mute);
}

.num { font-family: var(--mono); font-feature-settings: "tnum" 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform .35s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.btn-primary {
  background: var(--accent);
  color: var(--ink-900);
}
.btn-primary:hover { background: var(--accent-bright); transform: translateY(-2px); }

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--paper);
}
.btn-ghost:hover { border-color: var(--paper); background: rgba(232,238,247,0.04); }

.btn-sm { padding: 10px 18px; font-size: 14px; }

.textlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: border-color .3s, color .3s;
}
.textlink:hover { border-color: var(--accent); color: var(--accent); }
.textlink .arr { transition: transform .3s var(--ease); }
.textlink:hover .arr { transform: translate(3px,-3px); }

/* =================================================================
   NAV
   ================================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8,12,22,0.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 30px; height: 30px;
  position: relative;
  flex: none;
}
.brand-name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-name small {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-mute);
  margin-top: 3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--paper-dim);
  transition: color .25s;
  position: relative;
}
.nav-links a:hover { color: var(--paper); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; }

/* =================================================================
   HERO
   ================================================================= */
.hero { padding-top: 150px; padding-bottom: clamp(60px, 8vw, 110px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-eyebrow { margin-bottom: 30px; }
.hero h1 { margin-bottom: 28px; }
.hero .lede { margin-bottom: 38px; }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.hero-foot {
  margin-top: 54px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: clamp(28px, 4vw, 56px);
  flex-wrap: wrap;
}
.hero-foot .stat-k { font-family: var(--mono); font-size: clamp(1.5rem,2.4vw,2rem); font-weight: 500; letter-spacing: -0.02em; }
.hero-foot .stat-k b { color: var(--accent); font-weight: 500; }
.hero-foot .stat-l { font-size: 13px; color: var(--paper-mute); margin-top: 4px; max-width: 18ch; line-height: 1.35; }

/* hero viz panel */
.viz-panel {
  background: linear-gradient(180deg, var(--ink-700), var(--ink-800));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 26px 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.6);
}
.viz-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 18px;
}
.viz-title { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-dim); }
.viz-badge {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 7px;
}
.viz-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-glow); animation: pulse 2.4s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-glow); }
  70% { box-shadow: 0 0 0 9px rgba(217,119,87,0); }
  100% { box-shadow: 0 0 0 0 rgba(217,119,87,0); }
}
.viz-chart { width: 100%; height: 280px; position: relative; }
.viz-legend {
  display: flex; gap: 22px; margin-top: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; color: var(--paper-dim);
}
.viz-legend span { display: inline-flex; align-items: center; gap: 8px; }
.viz-legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.viz-readout {
  position: absolute; left: 26px; bottom: 64px;
  pointer-events: none;
}
.viz-readout .rk { font-family: var(--mono); font-size: clamp(1.6rem,2.6vw,2.3rem); font-weight: 500; color: var(--accent); letter-spacing: -0.02em; line-height: 1; }
.viz-readout .rl { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-mute); margin-top: 6px; }

/* =================================================================
   LOGO / TRUST STRIP
   ================================================================= */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-inner { display: flex; align-items: center; gap: clamp(24px,4vw,56px); padding-block: 30px; flex-wrap: wrap; }
.trust-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-mute); flex: none; }
.trust-logos { display: flex; align-items: center; gap: clamp(26px,4vw,52px); flex-wrap: wrap; flex: 1; }
.logo-ghost {
  font-weight: 700; font-size: clamp(15px,1.6vw,19px); letter-spacing: -0.02em;
  color: var(--paper-mute);
  opacity: 0.7;
  transition: color .3s, opacity .3s;
  display: inline-flex; align-items: center; gap: 8px;
}
.logo-ghost:hover { color: var(--paper); opacity: 1; }
.logo-ghost .glyph { font-family: var(--mono); color: var(--accent); }

/* =================================================================
   STAT BAND
   ================================================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-700);
}
.stat-cell {
  padding: clamp(26px,3vw,42px) clamp(22px,2.4vw,34px);
  border-right: 1px solid var(--line);
  position: relative;
}
.stat-cell:last-child { border-right: 0; }
.stat-cell .k {
  font-family: var(--mono);
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  display: flex;
  align-items: baseline;
}
.stat-cell .k .suffix { font-size: 0.5em; color: var(--accent); margin-left: 2px; }
.stat-cell .l { color: var(--paper-dim); font-size: 14.5px; margin-top: 16px; line-height: 1.4; }

/* =================================================================
   SECTION HEADER
   ================================================================= */
.sec-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 76px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head .eyebrow { margin-bottom: 26px; }
.sec-head h2 { margin-bottom: 22px; }

/* =================================================================
   SERVICES
   ================================================================= */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.svc {
  background: var(--ink-800);
  padding: clamp(30px,3.2vw,48px);
  transition: background .4s;
  position: relative;
  min-height: 290px;
  display: flex;
  flex-direction: column;
}
.svc:hover { background: var(--ink-700); }
.svc-no { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.svc-ico { margin: 22px 0 26px; }
.svc h3 { margin-bottom: 14px; }
.svc p { color: var(--paper-dim); font-size: 15.5px; line-height: 1.6; max-width: 42ch; }
.svc-tags { margin-top: auto; padding-top: 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--paper-dim);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 5px 12px;
}

/* =================================================================
   PROCESS
   ================================================================= */
.proc { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px,5vw,80px); align-items: start; }
.proc-steps { display: flex; flex-direction: column; }
.proc-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  transition: opacity .3s;
}
.proc-step:last-child { border-bottom: 1px solid var(--line); }
.proc-step .pn {
  font-family: var(--mono); font-size: 13px; color: var(--paper-mute);
  padding-top: 5px;
  transition: color .3s;
}
.proc-step.active .pn, .proc-step:hover .pn { color: var(--accent); }
.proc-step h3 { margin-bottom: 10px; transition: color .3s; }
.proc-step p { color: var(--paper-dim); font-size: 15px; max-width: 46ch; }
.proc-step:not(.active) { opacity: 0.55; }
.proc-step:not(.active):hover { opacity: 0.85; }

.proc-visual {
  position: sticky; top: 110px;
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}
.proc-visual .pv-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 24px; }
.proc-visual .pv-big { font-size: clamp(1.5rem,2.4vw,2.1rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 18px; }
.proc-visual .pv-body { color: var(--paper-dim); font-size: 15px; line-height: 1.6; }
.pv-metrics { margin-top: auto; padding-top: 30px; display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; border-top: 1px solid var(--line); }
.pv-metric .mk { font-family: var(--mono); font-size: 1.8rem; font-weight: 500; letter-spacing: -0.02em; color: var(--paper); }
.pv-metric .mk .s { color: var(--accent); font-size: 0.6em; }
.pv-metric .ml { font-size: 12.5px; color: var(--paper-mute); margin-top: 6px; }

/* =================================================================
   CALCULATOR
   ================================================================= */
.calc-band { background: var(--ink-900); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calc {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.calc-controls { }
.calc-row { margin-bottom: 34px; }
.calc-row:last-child { margin-bottom: 0; }
.calc-row .lab { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.calc-row .lab .name { font-size: 14.5px; font-weight: 500; color: var(--paper-dim); }
.calc-row .lab .val { font-family: var(--mono); font-size: 1.3rem; font-weight: 500; color: var(--paper); letter-spacing: -0.01em; }
.calc-row .lab .val .u { color: var(--accent); font-size: 0.7em; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; border-radius: 4px;
  background: var(--ink-500);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent);
  border: 4px solid var(--ink-900);
  box-shadow: 0 0 0 1px var(--accent), 0 6px 16px -4px var(--accent-glow);
  cursor: pointer;
  transition: transform .2s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); border: 4px solid var(--ink-900);
  box-shadow: 0 0 0 1px var(--accent); cursor: pointer;
}

.calc-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  font-family: var(--mono); font-size: 13px;
  padding: 9px 16px; border-radius: 100px;
  border: 1px solid var(--line-strong);
  color: var(--paper-dim);
  transition: all .25s;
}
.chip:hover { border-color: var(--paper-mute); color: var(--paper); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--ink-900); font-weight: 600; }

.calc-result {
  background: linear-gradient(180deg, var(--ink-700), var(--ink-800));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(30px,3.4vw,46px);
  position: relative;
  overflow: hidden;
}
.calc-result .rlab { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-mute); }
.calc-result .rbig {
  font-family: var(--mono);
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 14px 0 6px;
  color: var(--accent);
}
.calc-result .rsub { color: var(--paper-dim); font-size: 14.5px; }
.calc-bars { margin-top: 36px; display: flex; flex-direction: column; gap: 18px; }
.calc-bar .bl { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; color: var(--paper-dim); }
.calc-bar .bl .num { color: var(--paper); }
.calc-bar .track { height: 12px; border-radius: 8px; background: var(--ink-500); overflow: hidden; }
.calc-bar .fill { height: 100%; border-radius: 8px; transition: width .7s var(--ease); }
.calc-bar .fill.before { background: var(--data-a); }
.calc-bar .fill.after { background: var(--accent); }
.calc-note { margin-top: 26px; font-size: 12.5px; color: var(--paper-mute); line-height: 1.5; }

/* =================================================================
   CASE STUDY
   ================================================================= */
.case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px,5vw,72px);
  align-items: center;
}
.case-quote { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.7rem,3vw,2.6rem); line-height: 1.28; letter-spacing: -0.01em; text-wrap: pretty; }
.case-quote .hl { color: var(--accent); font-style: italic; }
.case-attr { margin-top: 32px; display: flex; align-items: center; gap: 16px; }
.case-attr .av { width: 46px; height: 46px; border-radius: 50%; background: var(--ink-500); border: 1px solid var(--line-strong); flex: none; }
.case-attr .who { font-weight: 600; font-size: 15px; }
.case-attr .role { font-size: 13px; color: var(--paper-mute); font-family: var(--mono); }

.case-card {
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.case-card .cc-img {
  height: 200px;
  background:
    repeating-linear-gradient(135deg, var(--ink-600) 0 14px, var(--ink-700) 14px 28px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; color: var(--paper-mute); letter-spacing: 0.08em;
}
.case-card .cc-body { padding: 30px; }
.case-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.case-grid2 .ck { font-family: var(--mono); font-size: 2rem; font-weight: 500; letter-spacing: -0.02em; }
.case-grid2 .ck .s { color: var(--accent); font-size: 0.6em; }
.case-grid2 .cl { font-size: 13px; color: var(--paper-mute); margin-top: 6px; }

/* =================================================================
   CTA
   ================================================================= */
.cta-band { position: relative; overflow: hidden; }
.cta-card {
  background: linear-gradient(135deg, var(--ink-700), var(--ink-900));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(44px, 6vw, 84px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(80% 120% at 50% 0%, rgba(217,119,87,0.16), transparent 60%);
  pointer-events: none;
}
.cta-card .eyebrow { margin-bottom: 26px; }
.cta-card h2 { margin: 0 auto 24px; max-width: 18ch; }
.cta-card .lede { margin: 0 auto 38px; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* =================================================================
   FOOTER
   ================================================================= */
.footer { border-top: 1px solid var(--line); padding-block: clamp(50px,6vw,80px) 40px; }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.foot-brand .brand { margin-bottom: 22px; }
.foot-brand p { color: var(--paper-dim); font-size: 14.5px; max-width: 34ch; line-height: 1.6; }
.foot-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-mute); margin-bottom: 20px; font-weight: 500; }
.foot-col a { display: block; color: var(--paper-dim); font-size: 14.5px; padding: 6px 0; transition: color .25s; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; border-top: 1px solid var(--line); flex-wrap: wrap; gap: 16px; }
.foot-bottom p { font-family: var(--mono); font-size: 12px; color: var(--paper-mute); }
.foot-bottom .fb-links { display: flex; gap: 24px; }
.foot-bottom .fb-links a { font-size: 13px; color: var(--paper-mute); transition: color .25s; }
.foot-bottom .fb-links a:hover { color: var(--paper); }

/* =================================================================
   SCROLL REVEAL
   ================================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .viz-badge .dot { animation: none; }
}

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .viz-panel { max-width: 620px; }
  .proc { grid-template-columns: 1fr; }
  .proc-visual { position: static; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: 0; }
  .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .calc { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-cell:last-child { border-bottom: 0; }
  .case-grid2 { grid-template-columns: 1fr; }
  .hero-foot { gap: 24px; }
}
