/* ============================================================
   NEUROVALYS — Design System v2 (éditorial chaud)
   Conseil & Transformation IA — variante terracotta + crème
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Neutrals (Zinc scale, kept for API compat) */
  --zinc-50:  #fafafa;
  --zinc-100: #f4f4f5;
  --zinc-150: #ececee;
  --zinc-200: #e4e4e7;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-700: #3f3f46;
  --zinc-800: #27272a;
  --zinc-900: #18181b;
  --zinc-950: #09090b;

  /* Brand — palette logo v2 */
  --brand-navy:      #0E2A4D;
  --brand-navy-deep: #081E39;
  --brand-navy-mid:  #1F3E66;
  --brand-terracotta:      #B8653E;
  --brand-terracotta-soft: #D18A60;
  --brand-terracotta-deep: #A55531;
  --brand-cream:       #EFE7D7;
  --brand-cream-deep:  #E2D8C3;
  --brand-paper:       #F5EFE0;
  --brand-line:        #D9D2C1;
  --brand-neutral:     #5A6170;

  /* Accent alias (API compat) */
  --accent:        var(--brand-terracotta);
  --accent-600:    var(--brand-terracotta-deep);
  --accent-400:    var(--brand-terracotta-soft);
  --accent-weak:   rgba(184, 101, 62, 0.08);
  --accent-border: rgba(184, 101, 62, 0.22);
  --accent-rgb:    184, 101, 62;

  /* Surfaces */
  --bg:         var(--brand-paper);
  --bg-card:    #FFFFFF;
  --bg-dark:    var(--brand-navy);
  --bg-subtle:  var(--brand-cream);
  --ink:        var(--brand-navy);
  --ink-soft:   #3B4660;
  --ink-mute:   var(--brand-neutral);
  --line:       rgba(14, 42, 77, 0.10);
  --line-soft:  rgba(14, 42, 77, 0.06);
  --line-dark:  rgba(239, 231, 215, 0.10);

  /* Type stack — Geist sans + Fraunces serif display + Geist Mono */
  --font-sans:    'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-mono:    'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 40px;

  /* Shadows — teintées navy (jamais pur noir) */
  --sh-xs: 0 1px 0 rgba(14, 42, 77, 0.05);
  --sh-sm: 0 1px 2px rgba(14, 42, 77, 0.06), 0 1px 0 rgba(14, 42, 77, 0.04);
  --sh-md: 0 6px 16px -8px rgba(14, 42, 77, 0.14), 0 2px 6px -2px rgba(14, 42, 77, 0.07);
  --sh-lg: 0 20px 40px -18px rgba(14, 42, 77, 0.20), 0 6px 12px -6px rgba(14, 42, 77, 0.08);
  --sh-inset: inset 0 1px 0 rgba(255, 255, 255, 0.06);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-1: 160ms var(--ease);
  --t-2: 260ms var(--ease);
  --t-3: 420ms var(--ease);
  --t-6: 600ms var(--ease);

  /* Layout */
  --page-max: 1400px;
  --nav-h: 120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100dvh;
}

/* Grain overlay — fixed, pointer-events none, never on scrolling containers */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(14, 42, 77, 0.024) 1px, transparent 0);
  background-size: 3px 3px;
  opacity: 0.6;
  mix-blend-mode: multiply;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-1), opacity var(--t-1);
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--accent-weak);
  color: var(--accent-600);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

/* H1 / H2 en serif éditorial Fraunces — nuance "premium" */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-feature-settings: 'ss01', 'ss02', 'ss03';
  font-variation-settings: 'opsz' 96, 'SOFT' 50;
}

h1 em,
h2 em,
.hero__title em,
.hero__title .accent,
.p-header__title em,
.cta-band h2 em {
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  color: var(--accent);
  font-weight: 300;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h4 {
  font-size: 1.06rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 65ch;
}

.mono {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum';
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--accent);
}

.eyebrow--dark {
  color: var(--zinc-400);
}

.eyebrow--dark::before {
  background: var(--accent-400);
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  position: relative;
  z-index: 2;
}

.section {
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
}

.section--tight {
  padding: clamp(60px, 8vw, 100px) 0;
}

.section--dark {
  background: var(--bg-dark);
  color: var(--zinc-300);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--brand-cream);
}

.section--dark p {
  color: var(--zinc-400);
}

.section--subtle {
  background: var(--bg-subtle);
}

/* Section header (left-aligned asymmetric, not centered) */
.s-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
  margin-bottom: clamp(48px, 8vw, 96px);
}

.s-head__title {
  max-width: 18ch;
}

.s-head__meta {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-bottom: 6px;
}

.s-head__meta p {
  color: var(--ink-mute);
  font-size: 1.02rem;
  max-width: 38ch;
}

@media (max-width: 880px) {
  .s-head {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  will-change: transform, opacity;
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="1"] { transition-delay: 60ms; }
.reveal[data-delay="2"] { transition-delay: 140ms; }
.reveal[data-delay="3"] { transition-delay: 220ms; }
.reveal[data-delay="4"] { transition-delay: 300ms; }
.reveal[data-delay="5"] { transition-delay: 380ms; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background var(--t-3), border-color var(--t-3), backdrop-filter var(--t-3);
  border-bottom: 1px solid transparent;
}

.nav--solid {
  background: rgba(250, 250, 249, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-color: var(--line);
}

.nav--dark {
  color: var(--brand-cream);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.nav__logo {
  display: flex;
  align-items: center;
  transition: transform var(--t-2);
}

.nav__logo:active {
  transform: scale(0.97);
}

.nav__logo img {
  height: 88px;
  width: auto;
  transition: height var(--t-2);
}

.nav--solid .nav__logo img {
  height: 80px;
}

.nav__logo--light { display: block; }
.nav__logo--dark { display: none; }

.nav--solid .nav__logo--light { display: none; }
.nav--solid .nav__logo--dark { display: block; }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  list-style: none;
}

.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  padding: 8px 4px;
  position: relative;
  transition: color var(--t-1);
}

.nav--solid .nav__link {
  color: var(--ink-soft);
}

.nav__link:hover {
  color: #ffffff;
}

.nav--solid .nav__link:hover {
  color: var(--ink);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-2);
}

.nav__link:hover::after,
.nav__link[data-active="true"]::after {
  transform: scaleX(1);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--brand-navy);
  background: var(--brand-cream);
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform var(--t-1), background var(--t-1);
}

.nav--solid .nav__cta {
  background: var(--brand-navy-deep);
  color: var(--brand-cream);
}

.nav__cta:hover {
  transform: translateY(-1px);
}

.nav__cta:active {
  transform: scale(0.98);
}

.nav__cta svg {
  width: 14px;
  height: 14px;
  transition: transform var(--t-1);
}

.nav__cta:hover svg {
  transform: translateX(2px);
}

/* Mobile toggle */
.nav__burger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: 8px;
  transition: background var(--t-1);
}

.nav__burger span {
  width: 20px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t-2), opacity var(--t-1);
  display: block;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 999px;
  transition: transform var(--t-1), background var(--t-2), border-color var(--t-2), color var(--t-2), box-shadow var(--t-2);
  line-height: 1;
  cursor: pointer;
  letter-spacing: -0.005em;
  user-select: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--t-1);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--brand-navy-deep);
  color: var(--brand-cream);
  box-shadow: var(--sh-sm);
}

.btn--primary:hover {
  background: var(--zinc-800);
  transform: translateY(-1px);
  box-shadow: var(--sh-md);
}

.btn--primary-accent {
  background: var(--accent);
  color: var(--brand-cream);
  box-shadow: 0 6px 20px -10px rgba(var(--accent-rgb), 0.6);
}

.btn--primary-accent:hover {
  background: var(--accent-600);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: inherit;
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  background: var(--zinc-100);
  border-color: var(--zinc-300);
  transform: translateY(-1px);
}

.section--dark .btn--ghost {
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--brand-cream);
}

.section--dark .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn--lg {
  padding: 17px 30px;
  font-size: 1rem;
}

.btn--sm {
  padding: 10px 16px;
  font-size: 0.85rem;
}

/* Inline text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  transition: gap var(--t-1), color var(--t-1);
}

.link-arrow svg {
  width: 14px;
  height: 14px;
  transition: transform var(--t-1);
}

.link-arrow:hover {
  gap: 12px;
  color: var(--accent);
}

.section--dark .link-arrow {
  color: var(--brand-cream);
}

.section--dark .link-arrow:hover {
  color: var(--accent-400);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  background: var(--bg-dark);
  color: var(--brand-cream);
  overflow: hidden;
  padding-top: var(--nav-h);
  isolation: isolate;
}

/* Mesh gradient background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 85% 20%, rgba(var(--accent-rgb), 0.15), transparent 50%),
    radial-gradient(900px 500px at 10% 100%, rgba(var(--accent-rgb), 0.08), transparent 60%),
    radial-gradient(600px 400px at 50% 50%, rgba(255, 255, 255, 0.02), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* Grid pattern */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 75%);
  pointer-events: none;
  z-index: -1;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  min-height: calc(100dvh - var(--nav-h));
  padding: clamp(48px, 6vw, 80px) 0 clamp(80px, 10vw, 120px);
}

@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: clamp(48px, 8vw, 64px);
    align-items: start;
    padding: clamp(32px, 6vw, 56px) 0 clamp(64px, 10vw, 96px);
  }
}

.hero__left {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--zinc-300);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  letter-spacing: 0.04em;
  align-self: flex-start;
}

.hero__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-400);
  position: relative;
}

.hero__status-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent-400);
  animation: pulse-ring 2.4s var(--ease-out) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 1.0;
  letter-spacing: -0.035em;
  color: var(--brand-cream);
  font-weight: 400;
  font-variation-settings: 'opsz' 120, 'SOFT' 60;
}

.hero__title em {
  font-style: italic;
  font-weight: 300;
  color: rgba(239, 231, 215, 0.7);
  display: block;
  letter-spacing: -0.03em;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}

.hero__title .accent {
  color: var(--accent-400);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.03em;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}

.hero__sub {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.55;
  color: var(--zinc-400);
  max-width: 52ch;
  margin-top: var(--sp-3);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

.hero__meta {
  display: flex;
  gap: var(--sp-6);
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  flex-wrap: wrap;
}

.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__meta-value {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--brand-cream);
  letter-spacing: -0.02em;
}

.hero__meta-label {
  font-size: 0.78rem;
  color: var(--zinc-500);
  letter-spacing: 0.02em;
}

/* Hero right — bento mini-cards */
.hero__right {
  position: relative;
  height: 100%;
  min-height: 480px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 12px;
}

.h-card {
  position: relative;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--sp-4);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--sh-inset);
  transition: transform var(--t-3), border-color var(--t-3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.h-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
}

.h-card--1 { grid-column: 1 / span 4; grid-row: 1 / span 3; animation: float-soft 12s var(--ease-in-out) infinite; }
.h-card--2 { grid-column: 5 / span 2; grid-row: 1 / span 5; animation: float-soft 14s var(--ease-in-out) infinite reverse; }
.h-card--3 { grid-column: 1 / span 3; grid-row: 4 / span 5; animation: float-soft 16s var(--ease-in-out) infinite 2s; }
.h-card--4 { grid-column: 4 / span 3; grid-row: 6 / span 3; animation: float-soft 13s var(--ease-in-out) infinite 1s; }

@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.h-card__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--zinc-500);
}

.h-card__value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--brand-cream);
  letter-spacing: -0.02em;
}

.h-card__sub {
  font-size: 0.82rem;
  color: var(--zinc-400);
  line-height: 1.5;
}

.h-card__icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-400);
}

.h-card__bar {
  height: 3px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
}

.h-card__bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--fill, 60%);
  background: var(--accent-400);
  border-radius: 4px;
  animation: bar-shimmer 3s var(--ease-in-out) infinite;
}

@keyframes bar-shimmer {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

.h-card__chart {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding-top: 8px;
}

.h-card__chart span {
  flex: 1;
  background: linear-gradient(to top, rgba(var(--accent-rgb), 0.7), rgba(var(--accent-rgb), 0.15));
  border-radius: 2px;
  min-height: 10%;
  animation: bar-rise 2.4s var(--ease-out) both;
}

@keyframes bar-rise {
  from { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 980px) {
  .hero__right {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .hero__right {
    min-height: 300px;
    gap: 8px;
  }
  .h-card { padding: var(--sp-3); }
  .h-card__value { font-size: 1.15rem; }
}

/* ============================================================
   MARQUEE (trust row)
   ============================================================ */
.marquee {
  background: var(--bg-dark);
  color: var(--zinc-400);
  padding: var(--sp-4) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
  position: relative;
}

.marquee__track {
  display: flex;
  gap: var(--sp-8);
  white-space: nowrap;
  animation: marquee-scroll 40s linear infinite;
  will-change: transform;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--zinc-400);
  flex-shrink: 0;
}

.marquee__item svg {
  width: 14px;
  height: 14px;
  color: var(--accent-400);
  flex-shrink: 0;
}

.marquee__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--zinc-600);
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SERVICES (bento, asymmetric)
   ============================================================ */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.bento__card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(28px, 3vw, 40px);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-3), border-color var(--t-3), box-shadow var(--t-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  min-height: 320px;
  box-shadow: 0 1px 0 rgba(14, 42, 77, 0.03);
}

.bento__card:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 42, 77, 0.14);
  box-shadow: 0 28px 40px -24px rgba(14, 42, 77, 0.14);
}

.bento__card--wide { grid-column: span 4; }
.bento__card--narrow { grid-column: span 2; }
.bento__card--half { grid-column: span 3; }
.bento__card--dark {
  background: var(--bg-dark);
  color: var(--zinc-300);
  border-color: var(--line-dark);
}

.bento__card--dark h3 {
  color: var(--brand-cream);
}

.bento__card--dark p {
  color: var(--zinc-400);
}

.bento__card--dark .link-arrow {
  color: var(--brand-cream);
}

.bento__card--dark:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 40px -24px rgba(0, 0, 0, 0.5);
}

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__card--wide,
  .bento__card--narrow,
  .bento__card--half { grid-column: span 2; }
}

@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bento__card { min-height: 240px; }
}

.pole {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.pole__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
}

.pole__badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.bento__card--dark .pole__badge {
  color: var(--zinc-400);
  border-color: rgba(255, 255, 255, 0.12);
}

.pole__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: var(--accent-weak);
  color: var(--accent);
  flex-shrink: 0;
}

.bento__card--dark .pole__icon {
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--accent-400);
}

.pole__title {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.pole__desc {
  color: var(--ink-mute);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 48ch;
}

.bento__card--dark .pole__desc {
  color: var(--zinc-400);
}

.pole__list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.pole__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--line-soft);
  font-size: 0.92rem;
  color: var(--ink-soft);
  align-items: baseline;
}

.pole__list li:first-child {
  border-top: none;
}

.bento__card--dark .pole__list li {
  border-top-color: var(--line-dark);
  color: var(--zinc-300);
}

.pole__list-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
}

.bento__card--dark .pole__list-num {
  color: var(--zinc-500);
}

.pole__footer {
  margin-top: auto;
  padding-top: var(--sp-4);
}

/* Stat cards (small bento cells) */
.stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-3);
  height: 100%;
  min-height: 220px;
}

.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.bento__card--dark .stat__num {
  color: var(--brand-cream);
}

.stat__num sup {
  font-size: 0.5em;
  color: var(--accent);
  margin-left: 4px;
  letter-spacing: 0;
}

.stat__label {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-mute);
}

.bento__card--dark .stat__label {
  color: var(--zinc-400);
}

.stat__sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}

/* ============================================================
   METHOD — horizontal timeline
   ============================================================ */
.method {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  position: relative;
  margin-top: var(--sp-7);
}

.method::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-border) 20%, var(--accent-border) 80%, transparent);
  pointer-events: none;
}

.method__step {
  padding-top: var(--sp-7);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.method__marker {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.method__dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background var(--t-2), color var(--t-2), border-color var(--t-2);
}

.method__step:hover .method__dot {
  background: var(--accent);
  color: var(--brand-cream);
  border-color: var(--accent);
}

.section--dark .method__dot {
  background: var(--bg-dark);
  color: var(--accent-400);
  border-color: rgba(var(--accent-rgb), 0.4);
}

.section--dark .method__step:hover .method__dot {
  background: var(--accent-400);
  color: var(--bg-dark);
}

.method__phase {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-left: 4px;
}

.section--dark .method__phase {
  color: var(--zinc-500);
}

.method__title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section--dark .method__title { color: var(--brand-cream); }

.method__desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-mute);
}

.section--dark .method__desc { color: var(--zinc-400); }

@media (max-width: 900px) {
  .method { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
  .method::before { display: none; }
}

@media (max-width: 520px) {
  .method { grid-template-columns: 1fr; gap: var(--sp-5); }
}

/* ============================================================
   DIFF (why us) — zig-zag list
   ============================================================ */
.diff {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.diff__list {
  display: flex;
  flex-direction: column;
}

.diff__row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--sp-5);
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--line);
  transition: background var(--t-2);
  position: relative;
}

.diff__row:last-child { border-bottom: 1px solid var(--line); }

.diff__num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
  padding-top: 4px;
}

.diff__title {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-2);
  color: var(--ink);
}

.diff__desc {
  color: var(--ink-mute);
  font-size: 0.95rem;
}

.diff__row:hover .diff__title { color: var(--accent-600); }

.diff__aside {
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-4));
  padding: var(--sp-6);
  background: var(--brand-navy-deep);
  color: var(--brand-cream);
  border-radius: var(--r-xl);
  overflow: hidden;
  isolation: isolate;
}

.diff__aside::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 300px at 70% 10%, rgba(var(--accent-rgb), 0.15), transparent 60%);
  z-index: -1;
}

.diff__quote {
  font-family: var(--font-sans);
  font-size: 1.18rem;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--brand-cream);
  margin: var(--sp-5) 0 var(--sp-6);
}

.diff__quote-mark {
  font-family: var(--font-mono);
  font-size: 3rem;
  line-height: 0.5;
  color: var(--accent-400);
  font-weight: 300;
  display: block;
}

.diff__author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.diff__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--brand-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.diff__author-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--brand-cream);
}

.diff__author-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--zinc-500);
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .diff { grid-template-columns: 1fr; }
  .diff__aside { position: static; }
}

/* ============================================================
   CASES — zig-zag rows
   ============================================================ */
.cases {
  display: flex;
  flex-direction: column;
  gap: var(--sp-7);
}

.case {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) minmax(0, 0.7fr);
  gap: clamp(24px, 4vw, 56px);
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--line);
  align-items: start;
  transition: opacity var(--t-2);
}

.case:last-child { border-bottom: 1px solid var(--line); }

.case:hover {
  opacity: 1;
}

.cases:hover .case:not(:hover) {
  opacity: 0.5;
}

.case__client {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case__tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 500;
}

.case__name {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}

.case__mission {
  font-size: 0.88rem;
  color: var(--ink-mute);
  font-family: var(--font-mono);
}

.case__body {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
}

.case__result {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-4);
  background: var(--accent-weak);
  border: 1px solid var(--accent-border);
  border-radius: var(--r-md);
}

.case__result-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-600);
}

.case__result-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .case {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }
  .case__body { padding-left: 0; }
}

/* ============================================================
   ABOUT — asymmetric
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.about__card {
  position: relative;
  background: var(--brand-navy-deep);
  color: var(--brand-cream);
  border-radius: var(--r-2xl);
  padding: clamp(32px, 4vw, 56px);
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 5 / 6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 20% 110%, rgba(var(--accent-rgb), 0.22), transparent 60%),
    radial-gradient(400px 300px at 100% 0%, rgba(var(--accent-rgb), 0.08), transparent 55%);
  z-index: -1;
}

.about__card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 50%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 50%);
  z-index: -1;
  pointer-events: none;
}

.about__avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-400), var(--accent-600));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--brand-cream);
  letter-spacing: 0.04em;
}

.about__card h3 {
  font-size: 1.6rem;
  letter-spacing: -0.025em;
  color: var(--brand-cream);
  margin-top: var(--sp-6);
}

.about__role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-400);
  margin-top: 6px;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: var(--sp-6);
}

.about__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about__stat-value {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--brand-cream);
}

.about__stat-label {
  font-size: 0.72rem;
  color: var(--zinc-500);
  letter-spacing: 0.02em;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.about__text h2 {
  max-width: 18ch;
}

.about__text p {
  max-width: 60ch;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--sp-4);
}

.about__tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  color: var(--ink-soft);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background var(--t-1), border-color var(--t-1), color var(--t-1);
}

.about__tag:hover {
  background: var(--accent-weak);
  border-color: var(--accent-border);
  color: var(--accent-600);
}

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about__card { aspect-ratio: auto; }
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--brand-navy-deep);
  color: var(--brand-cream);
  overflow: hidden;
  isolation: isolate;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 500px at 50% 100%, rgba(var(--accent-rgb), 0.2), transparent 60%),
    radial-gradient(600px 400px at 10% 0%, rgba(var(--accent-rgb), 0.05), transparent 60%);
  z-index: -1;
}

.cta-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.cta-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--brand-cream);
  max-width: 16ch;
  font-weight: 400;
  font-variation-settings: 'opsz' 120, 'SOFT' 60;
}

.cta-band h2 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent-400);
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}

.cta-band__meta {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding-bottom: 4px;
}

.cta-band__meta p {
  color: var(--zinc-400);
  max-width: 40ch;
  font-size: 1.02rem;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

@media (max-width: 800px) {
  .cta-band__grid { grid-template-columns: 1fr; gap: var(--sp-6); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg);
  color: var(--ink-mute);
  padding: clamp(56px, 8vw, 96px) 0 var(--sp-6);
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-6);
  margin-bottom: var(--sp-8);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.footer__logo {
  height: 40px;
  width: auto;
}

.footer__brand p {
  font-size: 0.92rem;
  color: var(--ink-mute);
  max-width: 34ch;
}

.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin-bottom: var(--sp-4);
  font-weight: 500;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color var(--t-1);
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
  .footer__brand { grid-column: span 2; }
}

@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-navy-deep);
  color: var(--brand-cream);
  border-radius: 50%;
  box-shadow: var(--sh-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--t-2);
  z-index: 50;
}

.back.is-in {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.back:active { transform: scale(0.95); }

.back svg { width: 18px; height: 18px; }

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.p-header {
  position: relative;
  padding: calc(var(--nav-h) + clamp(60px, 8vw, 100px)) 0 clamp(60px, 8vw, 100px);
  background: var(--brand-navy-deep);
  color: var(--brand-cream);
  overflow: hidden;
  isolation: isolate;
}

.p-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 500px at 100% 100%, rgba(var(--accent-rgb), 0.14), transparent 55%),
    radial-gradient(600px 400px at 0% 0%, rgba(var(--accent-rgb), 0.06), transparent 60%);
  z-index: -1;
}

.p-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 85%);
  z-index: -1;
  pointer-events: none;
}

.p-header__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: end;
}

.p-header__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  letter-spacing: -0.03em;
  color: var(--brand-cream);
  max-width: 14ch;
  font-weight: 400;
  font-variation-settings: 'opsz' 120, 'SOFT' 60;
}

.p-header__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent-400);
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}

.p-header__lede {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--zinc-400);
  max-width: 44ch;
  padding-bottom: 4px;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--zinc-500);
  margin-bottom: var(--sp-5);
  text-transform: uppercase;
}

.crumbs a {
  color: var(--zinc-400);
  transition: color var(--t-1);
}

.crumbs a:hover { color: var(--brand-cream); }

.crumbs span[aria-current="page"] { color: var(--brand-cream); }

@media (max-width: 800px) {
  .p-header__grid { grid-template-columns: 1fr; gap: var(--sp-5); align-items: start; }
}

/* ============================================================
   DETAIL CARDS (inner service pages)
   ============================================================ */
.offers {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.offer {
  grid-column: span 3;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition: transform var(--t-3), border-color var(--t-3), box-shadow var(--t-3);
  position: relative;
  overflow: hidden;
}

.offer:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 42, 77, 0.16);
  box-shadow: 0 24px 40px -20px rgba(14, 42, 77, 0.12);
}

.offer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.offer__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.offer__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: var(--accent-weak);
  color: var(--accent);
}

.offer h3 {
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.offer p {
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--ink-mute);
}

.offer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  padding-top: var(--sp-4);
  margin-top: auto;
  border-top: 1px solid var(--line-soft);
}

.offer__meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.offer__meta-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.offer__meta-value {
  font-family: var(--font-mono);
  font-size: 0.96rem;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.offer__meta-value strong {
  color: var(--accent-600);
  font-weight: 500;
}

@media (max-width: 900px) {
  .offers { grid-template-columns: 1fr; }
  .offer { grid-column: auto; }
}

/* Process strip (inside inner pages) */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  margin-top: var(--sp-7);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
}

.process__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.process__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
}

.process__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.process__desc {
  font-size: 0.88rem;
  color: var(--ink-mute);
  line-height: 1.55;
}

@media (max-width: 800px) {
  .process { grid-template-columns: repeat(2, 1fr); }
}

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

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.contact-info__item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--sp-3);
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--line);
  align-items: flex-start;
}

.contact-info__item:first-of-type { border-top: none; padding-top: 0; }

.contact-info__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: var(--accent-weak);
  color: var(--accent);
  flex-shrink: 0;
}

.contact-info__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin-bottom: 4px;
}

.contact-info__value {
  font-size: 1rem;
  color: var(--ink);
  font-weight: 500;
}

.contact-info__value a:hover { color: var(--accent); }

.contact-note {
  padding: var(--sp-5);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  margin-top: var(--sp-4);
}

.contact-note strong {
  color: var(--ink);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.contact-note p {
  font-size: 0.92rem;
  color: var(--ink-mute);
  margin: 0;
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: clamp(28px, 4vw, 48px);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: 0 1px 0 rgba(14, 42, 77, 0.03);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
}

.form__label[data-required="true"]::after {
  content: ' *';
  color: var(--accent);
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--t-1), background var(--t-1), box-shadow var(--t-1);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--zinc-400);
}

.form__input:hover,
.form__textarea:hover,
.form__select:hover {
  border-color: var(--zinc-300);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px var(--accent-weak);
}

.form__input.is-invalid,
.form__textarea.is-invalid,
.form__select.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

.form__textarea {
  min-height: 160px;
  resize: vertical;
  font-family: var(--font-sans);
}

.form__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.form__error {
  font-size: 0.8rem;
  color: #dc2626;
  min-height: 1em;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity var(--t-1), transform var(--t-1);
}

.form__error.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Honeypot */
.form__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.form__submit {
  align-self: flex-start;
  margin-top: var(--sp-2);
}

.form__message {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  font-size: 0.92rem;
  display: none;
}

.form__message.is-visible { display: block; }

.form__message--success {
  background: var(--accent-weak);
  color: var(--accent-600);
  border: 1px solid var(--accent-border);
}

.form__message--error {
  background: rgba(220, 38, 38, 0.06);
  color: #991b1b;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

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

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

/* ============================================================
   LEGAL PAGE
   ============================================================ */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 4vw, 48px);
}

.legal h2 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: var(--sp-7);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--line);
}

.legal h2:first-of-type { margin-top: 0; }

.legal h3 {
  font-size: 1.05rem;
  color: var(--ink);
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-2);
  font-weight: 600;
}

.legal p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: var(--sp-3);
}

.legal strong { color: var(--ink); font-weight: 600; }

.legal__date {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-top: var(--sp-7);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}

/* ============================================================
   RESPONSIVE — mobile overrides
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --nav-h: 84px;
  }

  .nav__logo img,
  .nav--solid .nav__logo img {
    height: 56px;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(85vw, 340px);
    height: 100dvh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: var(--sp-6);
    gap: var(--sp-4);
    background: var(--bg);
    border-left: 1px solid var(--line);
    transition: right var(--t-3);
  }

  .nav__links.is-open { right: 0; }

  .nav__link,
  .nav--solid .nav__link {
    color: var(--ink);
    font-size: 1.4rem;
    font-weight: 500;
  }

  .nav__cta {
    background: var(--brand-navy-deep);
    color: var(--brand-cream);
    font-size: 0.95rem;
    padding: 14px 22px;
    margin-top: var(--sp-2);
  }

  .nav__burger {
    display: inline-flex;
    z-index: 101;
    color: inherit;
  }

  .nav__burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .nav__burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav__burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
}

/* Level 4+ variance → single-column on < 768px */
@media (max-width: 768px) {
  .hero__grid,
  .s-head,
  .diff,
  .about,
  .cta-band__grid,
  .p-header__grid,
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: clamp(32px, 6vw, 48px);
  }
  .hero__left,
  .hero__right { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .marquee__track { animation: none; }
  .h-card { animation: none; }
  .hero__status-dot::after { display: none; }
}

/* ---------- Print ---------- */
@media print {
  .nav, .back, .cta-band, .marquee, .hero::before, .hero::after, body::before { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { min-height: auto; background: #fff; color: #000; padding-top: 0; }
  .hero__title, .hero__sub, .hero__meta-value, .hero__meta-label { color: #000 !important; }
  a { color: #000; text-decoration: underline; }
}
