/* ==========================================================================
   PulsePlay Technologies — Design System v2 "Paper & Ink"
   Warm paper canvas · near-black ink · signature red · petrol as the second hue
   Dark is rationed to objects (comparison band, CTA block, dashboard, footer).
   ========================================================================== */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/figtree-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-var.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibmplexmono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibmplexmono-500.woff2') format('woff2');
}

/* ---------- Tokens: light "paper" set (default) ---------- */
:root {
  /* Surfaces */
  --surface-0: #EFE9DD;        /* sand band (.section--canvas) */
  --surface-1: #F7F4EE;        /* paper canvas (body, plain sections, hero) */
  --surface-2: #FFFFFF;        /* cards / panels */
  --surface-3: #FFFFFF;        /* chips, small tiles */
  --surface-accent: #FBEFEC;   /* red-tinted panel */
  --input-bg: #FFFFFF;

  /* Red — fills vs text */
  --red: #E5202E;              /* fills: buttons, stamp rules, chart */
  --red-bright: #FF3B47;       /* fills on dark, glows */
  --red-deep: #8B0000;         /* pressed / sweep layer */
  --red-text: #C8141F;         /* red as text on light (5.4:1 on paper) */
  --red-soft: rgba(229, 32, 46, 0.10);
  --red-glow: rgba(229, 32, 46, 0.22);

  /* Petrol — the second hue (data, focus, callouts) */
  --petrol: #0F4C5C;
  --petrol-tint: #DCEAEE;
  --petrol-ring: rgba(15, 76, 92, 0.20);

  /* Ink */
  --text: #141416;
  --text-2: #35353B;
  --text-3: #55555E;
  --text-4: #5F5F68;

  /* Borders */
  --border: #E3DDD0;
  --border-soft: #EAE5DA;
  --border-strong: #C9C1B2;
  --border-ghost: #8E8A80;

  /* Textures */
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.21'/%3E%3C/svg%3E");
  --grain-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
  --grain: var(--grain-light);
  --dot: rgba(20, 20, 22, 0.20);
  --hatch: rgba(20, 20, 22, 0.06);
  --ledger: rgba(20, 20, 22, 0.08);
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2355555E' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");

  /* Fonts */
  --font-display: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Type scale */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-subheading: 20px;
  --text-h-sm: clamp(24px, 2.2vw, 28px);
  --text-h: clamp(28px, 3.2vw, 36px);
  --text-h-lg: clamp(32px, 4vw, 48px);
  --text-display: clamp(40px, 6vw, 72px);
  --tracking-tight: -0.02em;

  /* Spacing (4px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-7: 28px; --s-8: 32px; --s-9: 36px; --s-10: 40px; --s-12: 48px; --s-16: 64px;
  --s-20: 80px; --s-26: 104px; --s-32: 128px; --s-40: 160px;

  /* Layout */
  --page-max: 1200px;
  --gutter: 20px;
  --section-gap: clamp(80px, 10vw, 140px);
  --card-pad: 24px;

  /* Radius */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-full: 9999px;

  /* Shadows (warm, so panels read as paper on paper) */
  --shadow-md: 0 1px 2px rgba(60, 45, 20, 0.05), 0 12px 28px -14px rgba(60, 45, 20, 0.18);
  --shadow-xl: 0 2px 4px rgba(60, 45, 20, 0.05), 0 18px 36px -16px rgba(60, 45, 20, 0.22);
  --shadow-float: 0 1px 2px rgba(60, 45, 20, 0.05), 0 24px 48px -24px rgba(60, 45, 20, 0.24), 0 0 0 1px rgba(20, 20, 22, 0.02);
  --shadow-red: 0 10px 24px -10px rgba(229, 32, 46, 0.45);
  --rim: inset 0 1px 0 rgba(255, 255, 255, 0.85);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur: 320ms;

  color-scheme: light;
}

/* ---------- Tokens: dark "ink" set (objects and bands) ---------- */
.section--dark, .cta-band, .footer, .card--dark, .dash__panel--main, .theme-dark {
  --surface-0: #0F0F11;
  --surface-1: #121214;
  --surface-2: #1C1C20;
  --surface-3: #232328;
  --surface-accent: #241416;
  --input-bg: #1C1C20;
  --red-text: #FF4D4D;
  --red-soft: rgba(255, 77, 77, 0.14);
  --red-glow: rgba(255, 59, 71, 0.30);
  --petrol: #6FB3C4;
  --petrol-tint: rgba(111, 179, 196, 0.16);
  --petrol-ring: rgba(111, 179, 196, 0.28);
  --text: #F4F1EA;
  --text-2: #D6D2C9;
  --text-3: #A9A9B2;
  --text-4: #8A8A94;
  --border: #27272C;
  --border-soft: #202024;
  --border-strong: #3A3A41;
  --border-ghost: #6B6B74;
  --grain: var(--grain-dark);
  --dot: rgba(244, 241, 234, 0.16);
  --hatch: rgba(244, 241, 234, 0.06);
  --ledger: rgba(244, 241, 234, 0.07);
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23A9A9B2' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.30), 0 12px 28px -14px rgba(0, 0, 0, 0.55);
  --shadow-xl: 0 2px 4px rgba(0, 0, 0, 0.30), 0 18px 36px -16px rgba(0, 0, 0, 0.60);
  --shadow-float: 0 1px 2px rgba(0, 0, 0, 0.30), 0 30px 60px -24px rgba(0, 0, 0, 0.55);
  --rim: inset 0 1px 0 rgba(255, 255, 255, 0.09);
  color-scheme: dark;
  color: var(--text);
}
/* Light object nested inside a dark band (the "us" column) */
.compare__col--us, .theme-light {
  --surface-0: #EFE9DD;
  --surface-1: #F7F4EE;
  --surface-2: #FFFFFF;
  --surface-3: #FFFFFF;
  --surface-accent: #FBEFEC;
  --input-bg: #FFFFFF;
  --red-text: #C8141F;
  --red-soft: rgba(229, 32, 46, 0.10);
  --red-glow: rgba(229, 32, 46, 0.22);
  --petrol: #0F4C5C;
  --petrol-tint: #DCEAEE;
  --petrol-ring: rgba(15, 76, 92, 0.20);
  --text: #141416;
  --text-2: #35353B;
  --text-3: #55555E;
  --text-4: #5F5F68;
  --border: #E3DDD0;
  --border-soft: #EAE5DA;
  --border-strong: #C9C1B2;
  --border-ghost: #8E8A80;
  --grain: var(--grain-light);
  --dot: rgba(20, 20, 22, 0.20);
  --hatch: rgba(20, 20, 22, 0.06);
  --ledger: rgba(20, 20, 22, 0.08);
  --rim: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  color-scheme: light;
  color: var(--text);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--grain) 0 0 / 220px 220px repeat, var(--surface-1);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: var(--tracking-tight); color: var(--text); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; color: var(--text); }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; border-radius: var(--r-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--red); color: #fff; border-radius: var(--r-md); font-weight: 500; }
.skip-link:focus { top: 16px; }

/* ---------- Typography ---------- */
.display { font-size: var(--text-display); line-height: 1.02; }
.h-lg { font-size: var(--text-h-lg); line-height: 1.1; }
.h { font-size: var(--text-h); line-height: 1.15; }
.h-sm { font-size: var(--text-h-sm); line-height: 1.25; }
.lead { font-size: var(--text-lg); color: var(--text-2); line-height: 1.6; font-weight: 400; }
.lead--lg { font-size: var(--text-subheading); }
.muted { color: var(--text-3); }
.mono { font-family: var(--font-mono); letter-spacing: 0; }
.accent { color: var(--red-text); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--red-text);
  margin-bottom: var(--s-5);
}
.eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--red); transform-origin: left; }
.eyebrow--plain::before { display: none; }
/* dash draws when the eyebrow (or its reveal parent) becomes visible */
.reveal .eyebrow::before, .eyebrow.reveal::before { transform: scaleX(0); transition: transform 600ms var(--ease) 120ms; }
.reveal.is-visible .eyebrow::before, .eyebrow.reveal.is-visible::before { transform: scaleX(1); }

.section-head { max-width: 760px; margin-bottom: var(--s-12); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head .lead { margin-top: var(--s-5); }

/* ---------- Layout / bands ---------- */
.container { width: 100%; max-width: calc(var(--page-max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 860px; }
.section { padding: var(--section-gap) 0; position: relative; background: var(--grain) 0 0 / 220px 220px repeat, var(--surface-1); }
.section > .container { position: relative; z-index: 1; }
.section--tight { padding: calc(var(--section-gap) * 0.6) 0; }
.section--flush-top { padding-top: 0; }
/* white sheet: cards inside take the paper tone */
.section--bordered { border-top: 1px solid var(--border); background-color: #FFFFFF; --surface-2: #F7F4EE; --surface-3: #F7F4EE; }
/* sand band: cards inside are white */
.section--canvas { background-color: var(--surface-0); }
/* dark band: the brand's black, lit from above */
.section--dark { background-color: var(--surface-1); border-top: 0; --surface-2: #1C1C20; --surface-3: #232328; }
.section--dark::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 70% 45% at 50% 0%, rgba(244, 241, 234, 0.05), transparent 60%); }
.grid { display: grid; gap: var(--s-4); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-16); align-items: center; }
.stack > * + * { margin-top: var(--s-4); }
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }
.rule-red { width: 48px; height: 2px; background: var(--red); border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--r-full);
  font-family: var(--font-body); font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  line-height: 1; white-space: nowrap; border: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red-deep); transform: translateX(-101%); transition: transform 420ms var(--ease); }
.btn--primary:hover::before { transform: translateX(0); }
.btn--primary:hover { box-shadow: var(--shadow-red); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); box-shadow: none; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-ghost); }
.btn--ghost:hover { border-color: var(--text); background: var(--text); color: var(--surface-1); transform: translateY(-1px); }
.btn--white { background: #fff; color: #141416; }
.btn--white:hover { background: #F4F1EA; transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(0,0,0,0.6); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 18px 34px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: 0.6; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text); font-size: 15px;
  background-image: linear-gradient(var(--red-text), var(--red-text)); background-repeat: no-repeat; background-size: 0% 1px; background-position: left calc(100% - 1px);
  padding-bottom: 2px; transition: color var(--dur) var(--ease), background-size 360ms var(--ease);
}
.link-arrow svg { width: 16px; height: 16px; flex: none; transition: transform var(--dur) var(--ease); color: var(--red-text); }
.link-arrow:hover { color: var(--red-text); background-size: 100% 1px; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Cards ---------- */
.card {
  position: relative; display: block; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--card-pad); overflow: hidden;
  box-shadow: var(--rim);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--red); box-shadow: 0 1px 0 var(--red-deep);
  transform: scaleX(0); transform-origin: left; transition: transform 480ms var(--ease);
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-xl), var(--rim); transform: translateY(-4px); background: #FFFFFF; }
.card:hover::before { transform: scaleX(1); }
.card--static:hover { transform: none; box-shadow: var(--rim); background: var(--surface-2); border-color: var(--border); }
.card--static::before { display: none; }
.card--lg { padding: var(--s-8); }
.card--accent { background: var(--surface-accent); border-color: rgba(229, 32, 46, 0.30); }
.card--accent::before { display: block; transform: scaleX(1); }
.card--accent.card--static:hover { background: var(--surface-accent); border-color: rgba(229, 32, 46, 0.30); }
.card--dark { background: var(--grain) 0 0 / 220px 220px repeat, linear-gradient(180deg, rgba(255,255,255,0.05), transparent 40%), #141416; border-color: #2A2A2F; box-shadow: var(--rim); }
.card--dark.card--static:hover { background: var(--grain) 0 0 / 220px 220px repeat, linear-gradient(180deg, rgba(255,255,255,0.05), transparent 40%), #141416; border-color: #2A2A2F; }
.card--dark::before { display: block; transform: scaleX(1); background: var(--red-bright); box-shadow: none; }
.card__icon {
  width: 40px; height: 40px; border-radius: var(--r-md); display: grid; place-items: center;
  background: var(--red-soft); color: var(--red-text); margin-bottom: var(--s-5);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform 500ms var(--spring);
}
.card__icon svg { width: 20px; height: 20px; }
.card:hover .card__icon { background: var(--red); color: #fff; transform: rotate(-6deg) scale(1.06); }
.card__title { font-size: 20px; line-height: 1.25; margin-bottom: var(--s-3); font-family: var(--font-display); font-weight: 600; }
.card__text { color: var(--text-3); font-size: 15px; line-height: 1.6; }
.card__index { font-family: var(--font-mono); font-size: 13px; color: var(--red-text); letter-spacing: 0.08em; margin-bottom: var(--s-4); }

/* Tags / chips */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; padding: 6px 12px; border-radius: var(--r-full);
  font-size: 13px; font-weight: 400; color: var(--text-2);
  background: var(--surface-3); border: 1px solid var(--border);
  transition: border-color 200ms var(--ease), color 200ms var(--ease), transform 200ms var(--ease), background 200ms var(--ease);
}
.tag:hover { border-color: var(--text); color: var(--text); transform: translateY(-1px); }
.tag.is-active { background: var(--petrol-tint); color: var(--petrol); border-color: transparent; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--r-full);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-3); border: 1px solid var(--border-strong); background: var(--surface-3);
}
.badge--red { color: var(--red-text); border-color: rgba(229, 32, 46, 0.40); background: var(--red-soft); }

/* Pulse dot */
.pulse-dot { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red-text); flex: none; }
.pulse-dot::after, .pulse-dot::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--red-text); animation: pulse-ring 2.4s var(--ease) infinite; }
.pulse-dot::before { animation-delay: 1.2s; }
@keyframes pulse-ring { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }

/* Check list */
.check-list { display: grid; gap: 14px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-2); font-size: 16px; line-height: 1.5; }
.check-list svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--red-text); }
.check-list--muted li { color: var(--text-3); }
.check-list--muted svg { color: var(--text-4); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 244, 238, 0.78); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--border); background: rgba(247, 244, 238, 0.92); box-shadow: 0 8px 24px -20px rgba(20, 20, 22, 0.30); }
.header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); transform: scaleX(var(--progress, 0)); transform-origin: left; pointer-events: none; }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: var(--s-6); }
.logo { display: inline-flex; align-items: center; flex: none; border-radius: var(--r-sm); }
.logo__img { height: 36px; width: auto; display: block; transition: transform var(--dur) var(--ease); }
.logo:hover .logo__img { transform: translateY(-1px) scale(1.02); }
.footer .logo__img { height: 44px; }
@media (max-width: 640px) { .logo__img { height: 30px; } .footer .logo__img { height: 38px; } }
.nav { display: flex; align-items: center; gap: var(--s-8); }
.nav__link { font-size: 14.5px; font-weight: 500; color: var(--text-3); transition: color var(--dur) var(--ease); position: relative; padding: 6px 0; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--text); transform: scaleX(0); transform-origin: right; transition: transform 280ms var(--ease); }
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); height: 2px; background: var(--red); }
.header__cta { display: flex; align-items: center; gap: var(--s-4); }
.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--r-md); }
.burger span { display: block; width: 22px; height: 1.5px; background: var(--text); position: relative; transition: transform var(--dur) var(--ease), background var(--dur) var(--ease); }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 22px; height: 1.5px; background: var(--text); transition: transform var(--dur) var(--ease), top var(--dur) var(--ease), background var(--dur) var(--ease); }
.burger span::before { top: -7px; } .burger span::after { top: 7px; }
.burger:hover span, .burger:hover span::before, .burger:hover span::after { background: var(--red-text); }
.burger[aria-expanded="true"] span { background: transparent !important; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
.mobile-nav {
  display: none; position: fixed; inset: 72px 0 0 0; z-index: 99;
  background: var(--grain) 0 0 / 220px 220px repeat, var(--surface-1);
  padding: var(--s-8) var(--gutter); flex-direction: column; gap: var(--s-2);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a { font-family: var(--font-display); font-size: 28px; font-weight: 600; padding: 14px 0; border-bottom: 1px solid var(--border); color: var(--text); transition: color 240ms var(--ease), transform 240ms var(--ease); }
.mobile-nav a:not(.btn):hover { color: var(--red-text); transform: translateX(6px); }
.mobile-nav.is-open > a { animation: nav-in 420ms var(--ease) both; }
.mobile-nav.is-open > a:nth-child(1) { animation-delay: 40ms; } .mobile-nav.is-open > a:nth-child(2) { animation-delay: 80ms; }
.mobile-nav.is-open > a:nth-child(3) { animation-delay: 120ms; } .mobile-nav.is-open > a:nth-child(4) { animation-delay: 160ms; }
.mobile-nav.is-open > a:nth-child(5) { animation-delay: 200ms; } .mobile-nav.is-open > a:nth-child(6) { animation-delay: 240ms; }
@keyframes nav-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.mobile-nav a.btn { margin-top: var(--s-6); align-self: flex-start; font-family: var(--font-body); font-size: 16px; border-bottom: 0; padding: 14px 26px; }
.mobile-nav__meta { margin-top: auto; color: var(--text-4); font-size: 13px; font-family: var(--font-mono); }
body.nav-open { overflow: hidden; }

/* ---------- Footer ---------- */
.footer {
  position: relative; overflow: hidden; border-top: 1px solid #27272C;
  background: var(--grain) 0 0 / 220px 220px repeat, radial-gradient(ellipse 60% 40% at 50% 0%, rgba(244, 241, 234, 0.04), transparent 60%), var(--surface-0);
  padding: var(--s-20) 0 var(--s-10);
}
.footer::before { content: ""; position: absolute; right: -80px; top: -40px; width: 520px; height: 420px; pointer-events: none; background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.3px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 65%); mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 65%); opacity: 0.6; }
.footer > .container { position: relative; z-index: 1; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--s-12); }
.footer__brand .logo { margin-bottom: var(--s-5); }
.footer__tagline { color: var(--text-2); font-size: 15px; max-width: 320px; line-height: 1.6; }
.footer__col h4 { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-4); margin-bottom: var(--s-5); }
.footer__col ul { display: grid; gap: 12px; }
.footer__col a, .footer__legal a {
  color: var(--text-3); font-size: 15px; transition: color var(--dur) var(--ease), background-size 280ms var(--ease);
  background-image: linear-gradient(var(--red-text), var(--red-text)); background-repeat: no-repeat; background-size: 0% 1px; background-position: left 100%;
}
.footer__col a:hover, .footer__legal a:hover { color: var(--text); background-size: 100% 1px; }
.footer__legal { font-size: 13.5px; color: var(--text-3); line-height: 1.7; }
.footer__legal strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 4px; }
.footer__bottom { margin-top: var(--s-16); padding-top: var(--s-6); border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; font-size: 13px; color: var(--text-4); }
.footer__bottom .mono { font-size: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(72px, 9vw, 120px) 0 clamp(64px, 8vw, 110px); background: var(--grain) 0 0 / 220px 220px repeat, var(--surface-1); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--border); }
.hero__glow { position: absolute; inset: 0; pointer-events: none; z-index: 0; transform: translateY(var(--gy, 0px)); }
.hero__glow::before {
  content: ""; position: absolute; width: 860px; height: 860px; left: -220px; top: -440px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(229, 32, 46, 0.16), rgba(229, 32, 46, 0) 70%);
  mix-blend-mode: multiply; animation: wash-a 16s ease-in-out infinite alternate; will-change: transform;
}
.hero__glow::after {
  content: ""; position: absolute; width: 720px; height: 720px; right: -260px; bottom: -400px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(15, 76, 92, 0.14), rgba(15, 76, 92, 0) 70%);
  mix-blend-mode: multiply; animation: wash-b 20s ease-in-out infinite alternate; will-change: transform;
}
@keyframes wash-a { to { transform: translate3d(-28px, 18px, 0) scale(1.04); } }
@keyframes wash-b { to { transform: translate3d(22px, -16px, 0) scale(1.05); } }
.hero__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.6;
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 65%); mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 65%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s-16); align-items: center; }
.hero__title { font-size: var(--text-display); line-height: 1.0; letter-spacing: -0.03em; font-weight: 700; max-width: 12ch; }
.hero__title em { font-style: normal; color: var(--red-text); position: relative; display: inline-block; }
.hero__title em::after { content: ""; position: absolute; left: 0.02em; right: 0.02em; bottom: 0.02em; height: 0.07em; background: var(--red); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform 600ms var(--ease) 900ms; }
.hero__title.is-visible em::after, .hero__title:not(.reveal) em::after { transform: scaleX(1); }
.hero__lead { margin-top: var(--s-6); font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 520px; line-height: 1.55; }
.hero__actions { margin-top: var(--s-8); display: flex; gap: var(--s-4); flex-wrap: wrap; align-items: center; }
.hero__note { margin-top: var(--s-6); display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; color: var(--text-3); }
.hero--page { padding-bottom: clamp(48px, 6vw, 80px); }
.hero--page .hero__glow { opacity: 0.6; }
.hero--page .hero__inner { grid-template-columns: 1fr; }
.hero--page .hero__title { max-width: 16ch; font-size: clamp(36px, 5vw, 64px); }
.hero--center { text-align: center; }
.hero--center .hero__title, .hero--center .hero__lead { margin-left: auto; margin-right: auto; }
.hero--center .hero__actions { justify-content: center; }

/* ---------- Dashboard mockup (hero visual): dark object on paper ---------- */
.dash { position: relative; }
.dash__panel {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-float), var(--rim);
  padding: 18px 20px 20px; position: relative; overflow: hidden;
}
.dash__panel--main {
  background: var(--grain) 0 0 / 220px 220px repeat, linear-gradient(180deg, rgba(255,255,255,0.06), transparent 38%), linear-gradient(180deg, #1C1C20, #141418);
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 2px 6px rgba(20, 20, 22, 0.10), 0 36px 70px -28px rgba(20, 20, 22, 0.45), 0 50px 110px -40px rgba(229, 32, 46, 0.22), var(--rim);
  transform: rotate(-1.2deg) translateY(var(--py, 0px));
}
.dash__panel--side { position: absolute; width: 56%; right: -16px; bottom: -36px; transform: rotate(1.6deg); background: #FFFFFF; animation: float-side 7s ease-in-out infinite alternate; }
@keyframes float-side { to { transform: rotate(1.9deg) translateY(-6px); } }
.dash__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dash__panel--side .dash__bar { background: var(--petrol-tint); margin: -18px -20px 16px; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.dash__panel--side .dash__bar .dash__label { color: var(--petrol); }
.dash__dots { display: flex; gap: 6px; }
.dash__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); display: block; }
.dash__dots i:first-child { background: var(--red); }
.dash__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-4); }
.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { background: var(--surface-3); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px; box-shadow: var(--rim); }
.kpi__name { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-4); margin-bottom: 8px; }
.kpi__val { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; display: flex; align-items: baseline; gap: 8px; color: var(--text); }
.kpi__val small { font-family: var(--font-mono); font-size: 11px; color: var(--red-bright); font-weight: 500; }
.kpi:nth-child(2) .kpi__val small { color: var(--petrol); }
.dash__chart { height: 150px; position: relative; }
.dash__chart svg { width: 100%; height: 100%; overflow: visible; }
.dash__chart .axis { stroke: var(--border); stroke-width: 1; }
.dash__chart .line { fill: none; stroke: var(--red-bright); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dash__chart .area { fill: url(#areaFill); opacity: 0.9; }
.dash__chart .line-2 { fill: none; stroke: var(--petrol); stroke-width: 1.5; stroke-dasharray: 3 4; opacity: 0.8; }
.dash__chart .pt { fill: var(--red-bright); stroke: #1C1C20; stroke-width: 3; transform-box: fill-box; transform-origin: center; }
.dash__foot { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-4); letter-spacing: 0.06em; }
.funnel { display: grid; gap: 8px; }
.funnel__row { display: grid; grid-template-columns: 86px 1fr 40px; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; }
.funnel__bar { height: 8px; border-radius: 4px; background: var(--surface-1); overflow: hidden; border: 1px solid var(--border); }
.funnel__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--red-deep), var(--red)); border-radius: 4px; transform-origin: left; }
.funnel__row span:last-child { text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; }
.dash__caption { position: absolute; left: 0; bottom: -64px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-4); }
@media (prefers-reduced-motion: no-preference) {
  .kpi { opacity: 0; animation: rise 500ms var(--ease) forwards; }
  .kpi:nth-child(1) { animation-delay: 300ms; } .kpi:nth-child(2) { animation-delay: 380ms; } .kpi:nth-child(3) { animation-delay: 460ms; }
  .dash .line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.8s var(--ease) 0.5s forwards; }
  .dash .line-2 { stroke-dasharray: 3 4; stroke-dashoffset: 0; opacity: 0; animation: fade 1.2s var(--ease) 0.9s forwards; }
  .dash .area { opacity: 0; animation: fade 1s var(--ease) 1.4s forwards; }
  .dash .pt { transform: scale(0); animation: pop 420ms var(--spring) forwards; }
  .dash .pt:nth-of-type(1) { animation-delay: 1.9s; } .dash .pt:nth-of-type(2) { animation-delay: 2.02s; } .dash .pt:nth-of-type(3) { animation-delay: 2.14s; }
  .funnel__bar i { transform: scaleX(0); animation: grow 1s var(--ease) 1.0s forwards; }
  .funnel__row:nth-child(2) .funnel__bar i { animation-delay: 1.15s; }
  .funnel__row:nth-child(3) .funnel__bar i { animation-delay: 1.3s; }
  .funnel__row:nth-child(4) .funnel__bar i { animation-delay: 1.45s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes pop { to { transform: scale(1); } }
@keyframes grow { to { transform: scaleX(1); } }

/* ---------- Comparison (Not another agency) ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); align-items: stretch; }
.compare__col { padding: var(--s-8); border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface-2); position: relative; overflow: hidden; box-shadow: var(--rim); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.compare__col:not(.compare__col--us)::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(135deg, var(--hatch) 0 1px, transparent 1px 9px); -webkit-mask-image: linear-gradient(to bottom, transparent 55%, #000); mask-image: linear-gradient(to bottom, transparent 55%, #000); opacity: 0.8; }
.compare__col--us { background: var(--grain) 0 0 / 220px 220px repeat, #FFFFFF; border-color: var(--border); box-shadow: 0 2px 4px rgba(0,0,0,0.25), 0 30px 60px -24px rgba(0, 0, 0, 0.6), var(--rim); }
.compare__col--us::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--red); box-shadow: 0 1px 0 var(--red-deep); z-index: 1; }
.compare__col--us:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0,0,0,0.25), 0 36px 70px -24px rgba(0, 0, 0, 0.7), var(--rim); }
.compare__title { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: var(--s-6); padding-bottom: var(--s-5); border-bottom: 1px solid var(--border); color: var(--text); }
.compare__col--us .compare__title { border-bottom-color: var(--border); }
.compare__title .badge { font-size: 10.5px; }
.compare .check-list li { font-size: 16px; }
.compare__col--us .check-list svg { transition: transform var(--dur) var(--ease); }
.compare__col--us:hover .check-list svg { transform: translateX(2px); }

/* ---------- Chain (Full business approach) ---------- */
.chain { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; position: relative; counter-reset: step; }
.chain::before { content: ""; position: absolute; inset: -28px 0; z-index: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, transparent 0 31px, var(--ledger) 31px 32px); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent); }
.chain__step { position: relative; z-index: 1; text-align: center; padding: var(--s-6) var(--s-2); }
.chain__step::before, .chain__step::after { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; z-index: 0; }
.chain__step::before { background: var(--border-strong); }
.chain__step::after { background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 420ms var(--ease); }
.chain__step:first-child::before, .chain__step:first-child::after { left: 50%; }
.chain__step:last-child::before, .chain__step:last-child::after { right: 50%; }
.chain__node {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 10px; width: 100%; max-width: 150px; border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--border-strong); box-shadow: var(--rim);
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2);
  transform: scale(0.96);
  transition: border-color 480ms var(--ease), color 480ms var(--ease), box-shadow 480ms var(--ease), background 480ms var(--ease), transform 240ms var(--ease);
}
.chain__step.is-lit::after { transform: scaleX(1); }
.chain__step.is-lit .chain__node { border-color: var(--text); color: var(--surface-1); background: var(--text); transform: scale(1); }
.chain__step.is-lit:last-child .chain__node { border-color: var(--red); color: #fff; background: var(--red); box-shadow: 0 0 0 6px rgba(229, 32, 46, 0.12), 0 10px 24px -10px rgba(229, 32, 46, 0.5); }
.chain__node:hover { transform: translateY(-2px) scale(1); border-color: var(--text); box-shadow: 0 10px 20px -12px rgba(60, 45, 20, 0.4), var(--rim); }
.chain__step.is-lit .chain__node:hover { border-color: var(--red); }
.chain__step.is-lit:last-child .chain__node:hover { background: var(--red-deep); border-color: var(--red-deep); }
.chain__quote { margin-top: var(--s-12); text-align: center; font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 32px); font-weight: 600; letter-spacing: -0.02em; max-width: 820px; margin-left: auto; margin-right: auto; line-height: 1.25; }
.chain__quote em { font-style: normal; color: var(--red-text); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.process__step { padding: var(--s-7) var(--s-6); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-2); position: relative; box-shadow: var(--rim); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.process__step:hover { transform: translateY(-3px); background: #FFFFFF; box-shadow: var(--shadow-xl), var(--rim); border-color: var(--border-strong); }
.process__num { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; color: var(--red-text); display: flex; align-items: center; gap: 12px; margin-bottom: var(--s-6); }
.process__num::after { content: ""; flex: 1; height: 1px; background: var(--border-strong); transform-origin: left; transition: transform 600ms var(--ease), background var(--dur) var(--ease); }
.process__step.reveal .process__num::after { transform: scaleX(0); }
.process__step.reveal.is-visible .process__num::after { transform: scaleX(1); transition-delay: 300ms; }
.process__step:hover .process__num::after { background: var(--red); }
.process__title { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: var(--s-3); }
.process__text { color: var(--text-3); font-size: 15px; line-height: 1.6; }

/* ---------- Criteria ---------- */
.criteria { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.criteria__item { padding: var(--s-6); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-2); display: flex; gap: var(--s-4); align-items: flex-start; box-shadow: var(--rim); transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.criteria__item .num { font-family: var(--font-mono); font-size: 12px; color: var(--red-text); letter-spacing: 0.1em; flex: none; min-width: 32px; height: 24px; display: inline-grid; place-items: center; border-radius: var(--r-full); transition: background 240ms var(--ease), color 240ms var(--ease); }
.criteria__item:hover { background: #FFFFFF; border-color: var(--border-strong); box-shadow: var(--shadow-md), var(--rim); }
.stack .criteria__item:hover { transform: translateX(4px); }
.criteria .criteria__item:hover { transform: translateY(-3px); }
.criteria__item:hover .num { background: var(--text); color: var(--surface-1); }
.criteria__item h3 { font-size: 17px; font-family: var(--font-display); font-weight: 600; margin-bottom: 6px; }
.criteria__item p { color: var(--text-3); font-size: 14.5px; line-height: 1.55; }

/* ---------- Case study placeholders ---------- */
.case { min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: var(--r-lg); padding: var(--s-6); transition: border-color 480ms var(--ease), background 480ms var(--ease), transform var(--dur) var(--ease); }
.case:hover { border-style: solid; background: #FFFFFF; transform: translateY(-2px); }
.case__top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.case__visual { margin: var(--s-6) 0; height: 92px; border-radius: var(--r-md); background: var(--surface-0) repeating-linear-gradient(135deg, var(--hatch) 0 1px, transparent 1px 9px); border: 1px solid var(--border); position: relative; overflow: hidden; transition: background-position 480ms var(--ease); }
.case:hover .case__visual { background-position: 12px 0; }
.case__visual::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 24px; height: 1px; background: linear-gradient(90deg, transparent, rgba(229, 32, 46, 0.6), transparent); }
.case__meta { display: grid; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-4); }
.case__meta span { display: flex; justify-content: space-between; border-bottom: 1px dotted var(--border-strong); padding-bottom: 6px; }
.case__meta b { color: var(--text-3); font-weight: 400; }

/* ---------- Stat row ---------- */
.statrow { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); }
.statrow__item { padding: var(--s-6); border-right: 1px solid var(--border); transition: background var(--dur) var(--ease); }
.statrow__item:hover { background: #FFFFFF; }
.statrow__item:last-child { border-right: 0; }
.statrow__val { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -0.03em; color: var(--text); line-height: 1; transition: color var(--dur) var(--ease); }
.statrow__item:hover .statrow__val { color: var(--red-text); }
.statrow__val span { color: var(--red-text); }
.statrow__lbl { margin-top: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-4); }

/* ---------- CTA band: dark object on paper ---------- */
.cta-band {
  position: relative; overflow: hidden; border: 1px solid #2A2A2F; border-radius: var(--r-xl);
  background: var(--grain) 0 0 / 220px 220px repeat, radial-gradient(ellipse 70% 45% at 50% 0%, rgba(244, 241, 234, 0.06), transparent 60%), var(--surface-1);
  box-shadow: 0 2px 6px rgba(20, 20, 22, 0.08), 0 40px 80px -32px rgba(20, 20, 22, 0.45), var(--rim);
  padding: clamp(48px, 6vw, 88px) var(--s-8); text-align: center;
}
.cta-band::before { content: ""; position: absolute; width: 760px; height: 760px; left: 50%; top: -520px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(229, 32, 46, 0.30), transparent 70%); pointer-events: none; animation: wash-c 14s ease-in-out infinite alternate; will-change: transform; }
@keyframes wash-c { to { transform: translateX(-50%) translateY(26px); } }
.cta-band::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.3px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse at 50% 100%, #000 10%, transparent 65%); mask-image: radial-gradient(ellipse at 50% 100%, #000 10%, transparent 65%); opacity: 0.6; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: var(--text-h-lg); max-width: 14ch; margin: 0 auto var(--s-5); line-height: 1.1; }
.cta-band p { color: var(--text-2); max-width: 520px; margin: 0 auto var(--s-8); font-size: 17px; }

/* ---------- Service detail blocks ---------- */
.service { display: grid; grid-template-columns: 300px 1fr; gap: var(--s-12); padding: var(--s-12) 0; border-top: 1px solid var(--border); position: relative; }
.service:last-child { border-bottom: 1px solid var(--border); }
.service::before { content: ""; position: absolute; left: calc(-1 * var(--gutter)); top: var(--s-12); bottom: var(--s-12); width: 3px; border-radius: 2px; background: var(--red); transform: scaleY(0); transform-origin: top; transition: transform 400ms var(--ease); }
.service:hover::before { transform: scaleY(1); }
.service__head h3 { font-size: 26px; margin: var(--s-3) 0 var(--s-4); transition: transform var(--dur) var(--ease); }
.service:hover .service__head h3 { transform: translateX(4px); }
.service:hover .card__index { color: var(--red-deep); }
.service__head p { color: var(--text-3); font-size: 15px; line-height: 1.6; }
.service__body .tags { gap: 10px; }
.service__body .tag { padding: 9px 14px; font-size: 14px; }
.service__intro { color: var(--text-2); margin-bottom: var(--s-6); font-size: 16px; line-height: 1.6; }

/* ---------- Model cards ---------- */
.model-card { padding: var(--s-8); }
.model-card__num { font-family: var(--font-mono); color: var(--red-text); font-size: 12px; letter-spacing: 0.12em; margin-bottom: var(--s-6); display: inline-block; transition: transform 240ms var(--ease); }
.model-card:hover .model-card__num { transform: translateX(4px); }
.model-card h3 { font-size: 22px; margin-bottom: var(--s-3); }
.model-card p { color: var(--text-3); font-size: 15px; line-height: 1.6; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-6); padding: 22px 0; font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--text); transition: color 240ms var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary > * { transition: transform 240ms var(--ease); }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 20px; color: var(--red-text); flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--border-strong); border-radius: 50%; background: var(--surface-2); transition: transform var(--dur) var(--ease), background 240ms var(--ease), color 240ms var(--ease), border-color 240ms var(--ease); }
.faq summary:hover { color: var(--red-text); }
.faq summary:hover::after, .faq details[open] summary::after { background: var(--text); color: var(--surface-1); border-color: var(--text); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__body { padding: 0 0 24px; color: var(--text-3); max-width: 720px; line-height: 1.65; }
.faq details[open] .faq__body { animation: faq-in 360ms var(--ease) both; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--s-5); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.field { display: grid; gap: 8px; }
.field label { font-size: 13.5px; font-weight: 500; color: var(--text-2); transition: color 240ms var(--ease); }
.field:focus-within > label { color: var(--petrol); }
.field label .req { color: var(--red-text); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-weight: 400; color: var(--text); background: var(--input-bg);
  border: 1px solid var(--border-ghost); border-radius: var(--r-md); padding: 13px 14px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
  appearance: none; -webkit-appearance: none;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text-3); }
.field select { background-image: var(--select-chevron); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-4); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px var(--petrol-ring); }
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: 12.5px; color: var(--text-4); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--red); }
.field.is-invalid input:focus, .field.is-invalid select:focus, .field.is-invalid textarea:focus { box-shadow: 0 0 0 3px rgba(229, 32, 46, 0.16); }
.field .error { display: none; font-size: 12.5px; color: var(--red-text); }
.field.is-invalid .error { display: block; animation: faq-in 300ms var(--ease) both; }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-3); line-height: 1.5; cursor: pointer; }
.checkbox:hover { color: var(--text-2); }
.checkbox input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; flex: none; margin-top: 2px; border: 1px solid var(--border-ghost); border-radius: 4px; background: var(--input-bg); display: grid; place-items: center; cursor: pointer; transition: border-color 200ms var(--ease), background 200ms var(--ease); }
.checkbox input:hover { border-color: var(--text); }
.checkbox input:checked { background: var(--red); border-color: var(--red); }
.checkbox input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform 200ms var(--spring); }
.checkbox input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.checkbox a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); transition: text-decoration-color 200ms var(--ease); }
.checkbox a:hover { text-decoration-color: var(--red-text); }
.form__status { display: none; padding: 14px 16px; border-radius: var(--r-md); font-size: 14.5px; border: 1px solid; animation: faq-in 300ms var(--ease) both; }
.form__status.is-error { display: block; color: #8B0000; background: rgba(229, 32, 46, 0.08); border-color: rgba(229, 32, 46, 0.5); }
.form__status.is-success { display: block; color: #1F5A2E; background: rgba(40, 140, 80, 0.10); border-color: rgba(46, 139, 87, 0.6); }
.hp { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.form-note { font-size: 13px; color: var(--text-4); line-height: 1.6; }
.form-panel { background: var(--grain) 0 0 / 220px 220px repeat, var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-md), var(--rim); }
.form-side { display: grid; gap: var(--s-5); align-content: start; }
.form-side .card { padding: var(--s-6); }

/* ---------- Form page layouts ---------- */
.layout-apply { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.layout-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; align-items: start; }
@media (max-width: 960px) {
  .layout-apply, .layout-contact { grid-template-columns: 1fr; }
  .layout-apply .form-side { order: -1; }
  .layout-apply .form-side .card:nth-child(n+2) { display: none; }
}

/* ---------- Info list (contact / legal) ---------- */
.info-list { display: grid; gap: var(--s-4); }
.info-list__item { display: grid; grid-template-columns: 140px 1fr; gap: var(--s-4); padding: 16px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.info-list__item dt { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-4); padding-top: 3px; }
.info-list__item dd { margin: 0; color: var(--text-2); line-height: 1.6; }
.info-list__item dd a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--border-strong); transition: text-decoration-color 200ms var(--ease), text-decoration-thickness 200ms var(--ease); }
.info-list__item dd a:hover { text-decoration-color: var(--red-text); text-decoration-thickness: 2px; }

/* ---------- Legal prose ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin: var(--s-12) 0 var(--s-4); padding-top: var(--s-6); border-top: 1px solid var(--border); }
.prose h2:first-of-type { border-top: 0; padding-top: 0; margin-top: var(--s-8); }
.prose h3 { font-size: 18px; margin: var(--s-7) 0 var(--s-3); font-family: var(--font-body); font-weight: 600; }
.prose p, .prose li { color: var(--text-2); font-size: 16px; line-height: 1.7; }
.prose p + p { margin-top: var(--s-4); }
.prose ul { margin: var(--s-4) 0; padding-left: 0; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 2px; background: var(--red); }
.prose a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--border-strong); transition: text-decoration-color 200ms var(--ease), text-decoration-thickness 200ms var(--ease); }
.prose a:hover { text-decoration-color: var(--red-text); text-decoration-thickness: 2px; }
.prose table { width: 100%; border-collapse: collapse; margin: var(--s-5) 0; font-size: 14.5px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border: 1px solid var(--border); vertical-align: top; color: var(--text-2); }
.prose th { background: var(--surface-2); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.prose code { font-family: var(--font-mono); font-size: 0.92em; background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; }
.prose .meta { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.06em; color: var(--text-4); text-transform: uppercase; }
.prose .callout { border: 1px solid rgba(15, 76, 92, 0.25); border-left: 3px solid var(--petrol); background: var(--petrol-tint); border-radius: var(--r-md); padding: 16px 18px; margin: var(--s-6) 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--s-8) 0 0; }
.toc a { font-size: 13px; padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--r-full); color: var(--text-3); background: var(--surface-2); transition: color 200ms var(--ease), border-color 200ms var(--ease), transform 200ms var(--ease); }
.toc a:hover { color: var(--text); border-color: var(--text); transform: translateY(-1px); }

/* ---------- Consent banner (dormant until analytics is enabled) ---------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 520px; margin-left: auto; background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-float); display: none; }
.consent.is-visible { display: block; animation: faq-in 360ms var(--ease) both; }
.consent p { font-size: 14px; color: var(--text-2); margin-bottom: 14px; }
.consent a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.consent__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out), clip-path 900ms var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 90ms; }
.reveal[data-delay="2"] { transition-delay: 180ms; }
.reveal[data-delay="3"] { transition-delay: 270ms; }
.reveal[data-delay="4"] { transition-delay: 360ms; }
.reveal[data-delay="5"] { transition-delay: 450ms; }
.reveal[data-delay="6"] { transition-delay: 540ms; }
/* variants keyed off existing classes */
.card.reveal, .process__step.reveal, .criteria__item.reveal, .case.reveal, .form-panel.reveal { transform: translateY(28px) scale(0.98); }
.compare__col.reveal:first-child { transform: translateX(-24px); }
.compare__col--us.reveal { transform: translateX(24px); }
.chain.reveal { transform: none; }
.dash.reveal { transform: translateY(32px) scale(0.985); }
/* editorial mask on headings */
h1.reveal, .chain__quote.reveal { clip-path: inset(0 0 100% 0); }
h1.reveal.is-visible, .chain__quote.reveal.is-visible { clip-path: inset(-0.1em -0.1em -0.3em -0.1em); }
.reveal > .h-lg { clip-path: inset(0 0 100% 0); transition: clip-path 900ms var(--ease-out); transition-delay: inherit; }
.reveal.is-visible > .h-lg { clip-path: inset(-0.1em -0.1em -0.3em -0.1em); }
/* child cascades once the parent is visible */
.reveal .tags .tag { opacity: 0; transform: translateY(8px); transition: opacity 420ms var(--ease), transform 420ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease), background 200ms var(--ease); }
.reveal.is-visible .tags .tag { opacity: 1; transform: none; }
.reveal.is-visible .tags .tag:hover { transform: translateY(-1px); }
.reveal.is-visible .tags .tag:nth-child(1) { transition-delay: 60ms; } .reveal.is-visible .tags .tag:nth-child(2) { transition-delay: 90ms; }
.reveal.is-visible .tags .tag:nth-child(3) { transition-delay: 120ms; } .reveal.is-visible .tags .tag:nth-child(4) { transition-delay: 150ms; }
.reveal.is-visible .tags .tag:nth-child(5) { transition-delay: 180ms; } .reveal.is-visible .tags .tag:nth-child(6) { transition-delay: 210ms; }
.reveal.is-visible .tags .tag:nth-child(7) { transition-delay: 240ms; } .reveal.is-visible .tags .tag:nth-child(8) { transition-delay: 270ms; }
.reveal.is-visible .tags .tag:nth-child(9) { transition-delay: 300ms; } .reveal.is-visible .tags .tag:nth-child(10) { transition-delay: 330ms; }
.reveal.is-visible .tags .tag:nth-child(n+11) { transition-delay: 360ms; }
.reveal.is-visible .tags .tag:hover { transition-delay: 0ms; }
.reveal .check-list li { opacity: 0; transform: translateX(-8px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.reveal.is-visible .check-list li { opacity: 1; transform: none; }
.reveal.is-visible .check-list li:nth-child(1) { transition-delay: 200ms; } .reveal.is-visible .check-list li:nth-child(2) { transition-delay: 260ms; }
.reveal.is-visible .check-list li:nth-child(3) { transition-delay: 320ms; } .reveal.is-visible .check-list li:nth-child(4) { transition-delay: 380ms; }
.reveal.is-visible .check-list li:nth-child(5) { transition-delay: 440ms; } .reveal.is-visible .check-list li:nth-child(n+6) { transition-delay: 500ms; }

/* ambient animations pause when their section is off-screen */
.is-offscreen .hero__glow::before, .is-offscreen .hero__glow::after, .is-offscreen .dash__panel--side, .is-offscreen .pulse-dot::before, .is-offscreen .pulse-dot::after, .cta-band.is-offscreen::before { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0ms !important; }
  .reveal, .reveal > .h-lg, h1.reveal, .chain__quote.reveal { opacity: 1; transform: none; clip-path: none; }
  .reveal .eyebrow::before, .eyebrow.reveal::before, .process__step.reveal .process__num::after, .hero__title em::after { transform: scaleX(1); }
  .reveal .tags .tag, .reveal .check-list li, .kpi, .dash .area, .dash .line-2 { opacity: 1; transform: none; }
  .dash .pt { transform: scale(1); }
  .dash .line { stroke-dashoffset: 0; }
  .funnel__bar i { transform: scaleX(1); }
  .hero__glow::before, .hero__glow::after, .dash__panel--side, .cta-band::before { animation: none; }
  .dash__panel--side { transform: rotate(1.6deg); }
  .pulse-dot::after, .pulse-dot::before { display: none; }
}

/* ---------- Print ---------- */
@media print {
  body, .section, .hero, .section--bordered, .section--canvas { background: #fff !important; color: #000; }
  .section--dark, .cta-band, .footer, .card--dark, .dash__panel--main, .compare__col { background: #fff !important; color: #000 !important; --text: #000; --text-2: #222; --text-3: #333; --text-4: #444; --border: #ccc; box-shadow: none !important; }
  .hero__grid, .hero__glow, .header::after, .footer::before, .cta-band::before, .cta-band::after, .chain::before { display: none !important; }
  .header { position: static; background: #fff; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .chain { grid-template-columns: repeat(4, 1fr); row-gap: var(--s-4); }
  .chain__step::before, .chain__step::after, .chain::before { display: none; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--s-12); }
  .hero__title { max-width: 14ch; }
  .dash { max-width: 640px; margin-top: var(--s-6); }
  .dash__panel--side { position: relative; width: 100%; right: 0; bottom: 0; margin-top: 14px; transform: none; animation: none; }
  .dash__panel--main { transform: none; }
  .dash__caption { position: static; margin-top: 14px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; gap: var(--s-10); }
  .criteria { grid-template-columns: repeat(2, 1fr); }
  .service { grid-template-columns: 1fr; gap: var(--s-6); }
  .statrow { grid-template-columns: repeat(2, 1fr); }
  .statrow__item:nth-child(2) { border-right: 0; }
  .statrow__item:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 820px) {
  .nav, .header__cta .btn { display: none; }
  .burger { display: inline-flex; }
  .compare { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --card-pad: 20px; }
  .hero__glow::before { width: 560px; height: 560px; left: -200px; top: -320px; }
  .hero__glow::after { width: 460px; height: 460px; right: -200px; bottom: -260px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .process, .criteria { grid-template-columns: 1fr; }
  .chain { grid-template-columns: 1fr 1fr; }
  .chain__node { max-width: none; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .dash__kpis { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .kpi { padding: 10px; } .kpi__val { font-size: 17px; }
  .info-list__item { grid-template-columns: 1fr; gap: 6px; }
  .hero__actions .btn { width: 100%; }
  .cta-band { padding-left: var(--s-5); padding-right: var(--s-5); }
  .statrow { grid-template-columns: 1fr; }
  .statrow__item { border-right: 0; border-bottom: 1px solid var(--border); }
  .statrow__item:last-child { border-bottom: 0; }
  .service::before { display: none; }
}
