/* Reneka Digital — shared site stylesheet
   Used by every page. Includes the design system, modern interactions,
   and homepage-specific blocks (marquee, hero visual, etc). Components
   that don't exist on a given page simply have no markup to style. */

:root {
  /* Foreground / ink family */
  --ink: #0a1429;
  --ink-2: #0e1a36;
  --ink-3: #14224a;
  --ink-soft: rgba(10, 20, 41, 0.72);
  --ink-mute: rgba(10, 20, 41, 0.55);
  --ink-faint: rgba(10, 20, 41, 0.08);
  /* Surface / paper family */
  --paper: #fbfaf6;
  --paper-2: #f4f2eb;
  --paper-3: #ece8de;
  --line: #e2ddcf;
  --line-soft: #ede8da;
  /* Accent / gold family */
  --accent: #c9a24a;
  --accent-2: #b88c30;
  --accent-soft: rgba(201, 162, 74, 0.14);
  --navy: #0a1429;
  --gold: #c9a24a;
  --cream: #f4f2eb;
  --muted: rgba(10, 20, 41, 0.6);
  /* Hero / page-hero surface (always dark, light or dark scheme) */
  --hero-surface: #0a1429;
  --hero-text: #fbfaf6;
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 1px 2px rgba(10,20,41,0.04), 0 8px 24px -16px rgba(10,20,41,0.18);
  --shadow-lift: 0 20px 50px -24px rgba(10,20,41,0.28), 0 2px 6px rgba(10,20,41,0.04);
}

/* Auto dark mode — invert ink/paper for users who prefer dark.
   Hero surfaces stay dark on dark (already navy in light mode), so the
   only change there is they no longer "punch out" — section breaks come
   from line-color and warm surface-2 instead. */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1ebd9;          /* warm bone — main text on dark */
    --ink-2: #e2dbc6;
    --ink-3: #d3cab2;
    --ink-soft: rgba(241, 235, 217, 0.72);
    --ink-mute: rgba(241, 235, 217, 0.6);
    --ink-faint: rgba(241, 235, 217, 0.08);
    --paper: #0e1a2c;        /* deep navy — page background */
    --paper-2: #14233a;      /* slightly lifted surface */
    --paper-3: #1c2f4a;
    --line: rgba(241, 235, 217, 0.12);
    --line-soft: rgba(241, 235, 217, 0.06);
    --accent: #d6b365;       /* warmer gold for dark contrast */
    --accent-2: #e6c279;
    --accent-soft: rgba(214, 179, 101, 0.18);
    --muted: rgba(241, 235, 217, 0.55);
    /* Shadows are very subtle on dark */
    --shadow-card: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px -16px rgba(0,0,0,0.5);
    --shadow-lift: 0 20px 50px -24px rgba(0,0,0,0.6), 0 2px 6px rgba(0,0,0,0.2);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: 'ss01', 'ss02';
  overflow-x: hidden;
}
.serif { font-family: 'DM Sans', sans-serif; font-weight: 400; letter-spacing: -0.025em; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
a { color: inherit; text-decoration: none; }
a.inline { color: var(--ink); border-bottom: 1px solid var(--accent); transition: color 0.2s var(--ease); }
a.inline:hover { color: var(--accent-2); }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
section, [id] { scroll-margin-top: 80px; }
img { max-width: 100%; display: block; }
body.menu-open { overflow: hidden; }

/* Skip link */
.skip-link {
  position: absolute; left: 16px; top: 16px;
  padding: 10px 16px; border-radius: 8px;
  background: var(--ink); color: var(--paper);
  font-size: 14px; font-weight: 500;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
  z-index: 100;
}
.skip-link:focus { transform: translateY(0); }

/* Scroll-progress indicator */
#scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 60;
  pointer-events: none;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), #e8c878 50%, var(--accent));
  background-size: 200% 100%;
  will-change: transform;
}
@supports (animation-timeline: scroll()) {
  #scroll-progress {
    animation: scroll-progress linear, progress-shimmer 4s ease-in-out infinite;
    animation-timeline: scroll(root), auto;
  }
  @keyframes scroll-progress { to { transform: scaleX(1); } }
  @keyframes progress-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
  }
}

/* Eyebrows + container */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 400;
}
.eyebrow.gold { color: var(--accent-2); }
.eyebrow.on-dark { color: rgba(251,250,246,0.6); }
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 780px; margin: 0 auto; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  border: 1px solid transparent;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.25s var(--ease), box-shadow 0.3s var(--ease);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  --mag-x: 0px;
  --mag-y: 0px;
  transform: translate3d(var(--mag-x), var(--mag-y), 0);
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(80% 80% at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.btn:hover::before { opacity: 1; }
.btn:hover { transform: translate3d(var(--mag-x), calc(var(--mag-y) - 1px), 0); }
.btn:active { transform: translate3d(var(--mag-x), var(--mag-y), 0); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-3); box-shadow: 0 12px 28px -14px rgba(10,20,41,0.5); }
.btn-primary.on-dark { background: var(--paper); color: var(--ink); }
.btn-primary.on-dark:hover { background: #fff; box-shadow: 0 12px 28px -10px rgba(201,162,74,0.4); }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(10,20,41,0.18); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-ghost.on-dark { color: var(--paper); border-color: rgba(255,255,255,0.22); }
.btn-ghost.on-dark:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.55); }
.a-icon { display: inline-block; transition: transform 0.3s var(--ease); }
.btn:hover .a-icon { transform: translateX(3px); }

/* === Reveal animations === */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.04s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.10s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.22s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.28s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.34s; }

/* Card hover lift */
.card-hover {
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(10,20,41,0.16);
}

/* Subtle link underline draw */
.link-underline { position: relative; display: inline-block; }
.link-underline::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.link-underline:hover::after { transform: scaleX(1); }

/* === Nav === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), border-color 0.35s var(--ease);
  background: transparent;
  border-bottom: 1px solid transparent;
  color: var(--paper);
}
.nav.scrolled, .nav.solid {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
  color: var(--ink);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 24px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; transition: color 0.3s var(--ease); color: inherit; }
.nav-brand-text { font-family: 'DM Sans', sans-serif; font-size: 22px; letter-spacing: -0.035em; font-weight: 500; }
.brand-mark {
  width: 28px; height: 28px;
  display: inline-block;
  background: currentColor;
  -webkit-mask: var(--brand-mask) center / contain no-repeat;
          mask: var(--brand-mask) center / contain no-repeat;
  flex-shrink: 0;
}
.nav-items { display: flex; align-items: center; gap: 4px; }
.nav-items > .nav-item { position: relative; }
.nav-items > .nav-item > button {
  background: transparent; border: 0; padding: 10px 14px;
  font-size: 14px; font-weight: 400; opacity: 0.85;
  color: inherit;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
}
.nav-items > .nav-item:hover > button,
.nav-items > .nav-item.open > button { opacity: 1; }
.nav-end { display: flex; gap: 8px; align-items: center; }

/* Nav dropdowns */
.nav-dropdown {
  position: absolute; top: calc(100% - 4px); left: 0;
  min-width: 240px; padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  opacity: 0; pointer-events: none;
  transform: translateY(-6px) scale(0.985);
  transform-origin: top left;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.nav-item.open > .nav-dropdown {
  opacity: 1; pointer-events: auto;
  transform: translateY(0) scale(1);
}
.nav-dropdown.wide { min-width: 720px; }
.nav:not(.scrolled):not(.solid) .nav-dropdown {
  background: #0a1530;
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 16px 50px rgba(0,0,0,0.5);
  color: var(--paper);
}
.nav-dropdown a {
  display: block; padding: 9px 12px; border-radius: 8px;
  font-size: 13px; transition: background 0.18s var(--ease), color 0.18s var(--ease);
  color: inherit;
}
.nav-dropdown a:hover { background: rgba(13,27,61,0.05); }
.nav:not(.scrolled):not(.solid) .nav-dropdown a:hover { background: rgba(255,255,255,0.06); }
.nav-dropdown .col-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 4px 12px 8px;
  color: rgba(13,27,61,0.45);
}
.nav:not(.scrolled):not(.solid) .nav-dropdown .col-label { color: rgba(247,245,240,0.5); }
.nav-dropdown .cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

/* Hamburger toggle (visible only at <1100px) */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: 0;
  color: inherit; cursor: pointer;
  border-radius: 10px;
  place-items: center;
  transition: background 0.2s var(--ease);
}
.nav-toggle:hover { background: rgba(255,255,255,0.08); }
.nav.scrolled .nav-toggle:hover, .nav.solid .nav-toggle:hover { background: rgba(13,27,61,0.05); }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block; width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), background 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu drawer */
.mobile-menu {
  position: fixed; inset: 64px 0 0 0;
  background: var(--ink);
  color: var(--paper);
  padding: 32px 24px 96px;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 49;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}
.mobile-menu[data-open="true"] {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.mobile-menu .mm-section {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu .mm-section:first-child { padding-top: 8px; }
.mobile-menu .mm-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(247,245,240,0.5);
  margin-bottom: 12px;
}
.mobile-menu .mm-link {
  display: block;
  font-size: 18px; font-weight: 400;
  padding: 12px 0;
  color: var(--paper);
  border-radius: 4px;
  transition: color 0.2s var(--ease), padding-left 0.25s var(--ease);
}
.mobile-menu .mm-link:hover,
.mobile-menu .mm-link:focus-visible { color: var(--accent); padding-left: 6px; }
.mobile-menu .mm-cta { margin-top: 32px; display: flex; gap: 12px; flex-direction: column; }
.mobile-menu .mm-cta .btn { justify-content: center; }

/* === Page hero ===
   Hero surface is always dark — pinned to --hero-* tokens that don't flip
   in dark mode. This keeps the brand voice consistent across schemes. */
.page-hero {
  position: relative;
  background: var(--hero-surface);
  color: var(--hero-text);
  padding: 144px 0 96px;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 70%),
    radial-gradient(40% 35% at 80% 90%, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 70%);
  transition: transform 0.6s var(--ease);
  will-change: transform;
}
@supports (animation-timeline: scroll()) {
  .page-hero::before {
    animation: hero-parallax linear both;
    animation-timeline: scroll(root);
    animation-range: 0 800px;
    transition: none;
  }
  @keyframes hero-parallax { to { transform: translate3d(0, 80px, 0); } }
}
.page-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  opacity: 0.06;
  mix-blend-mode: overlay;
  z-index: 1;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.05;
  margin: 16px 0 24px;
  letter-spacing: -0.025em;
  font-weight: 400;
  max-width: 920px;
}
.page-hero h1 .gold { color: var(--accent); }
.page-hero h2.subhead {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; margin: 0 0 24px;
}
.page-hero .lede {
  font-size: 19px; line-height: 1.55;
  max-width: 760px;
  color: rgba(251,250,246,0.78);
  margin: 0 0 32px;
}
.page-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Breadcrumbs (inside page-hero) */
.crumbs {
  font-size: 13px;
  color: rgba(251,250,246,0.6);
  margin-bottom: 16px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}
.crumbs a { color: rgba(251,250,246,0.6); transition: color 0.2s var(--ease); }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { margin: 0 8px; opacity: 0.45; }

/* === Body sections (.s) === */
.s {
  padding: 96px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.s.cream { background: var(--paper-2); }
.s.dark {
  background: var(--hero-surface); color: var(--hero-text);
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative; isolation: isolate;
}
.s.dark::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  opacity: 0.04;
  mix-blend-mode: overlay;
  z-index: 0;
}
.s.dark > .container { position: relative; z-index: 1; }
.s h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 16px 0 20px;
}
.s h2 .gold { color: var(--accent); }
.s h3 {
  font-size: 22px; font-weight: 500;
  letter-spacing: -0.015em;
  margin: 32px 0 12px;
}
.s p { font-size: 17px; line-height: 1.65; max-width: 720px; margin: 0 0 16px; color: var(--ink-soft); }
.s p strong { color: var(--ink); font-weight: 600; }
.s p.lede { font-size: 21px; max-width: 760px; color: var(--ink-soft); margin-bottom: 32px; }
.s.dark p { color: rgba(251,250,246,0.85); }
.s.dark p strong { color: var(--paper); }
.s ul { padding-left: 0; list-style: none; max-width: 720px; }
.s ul li {
  position: relative;
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.s ul li strong { color: var(--ink); }
.s.dark ul li { border-bottom-color: rgba(255,255,255,0.08); color: rgba(251,250,246,0.85); }
.s.dark ul li strong { color: var(--paper); }
.s ul li::before {
  content: ''; position: absolute; left: 4px; top: 22px;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 999px;
}

/* Stat row (with optional 3D-tilt).
   Uses a container query so cards reflow based on the grid's available
   width, not the viewport — this lets the grid live inside narrower
   columns without manual breakpoint tuning. */
.stat-grid {
  container-type: inline-size;
  container-name: stat-grid;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
  perspective: 1200px;
}
@container stat-grid (max-width: 720px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@container stat-grid (max-width: 440px) {
  .stat-grid { grid-template-columns: 1fr; gap: 16px; }
}
.stat {
  padding: 24px; border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s var(--ease);
  transform-style: preserve-3d;
  --tilt-rx: 0deg; --tilt-ry: 0deg;
  transform: rotateX(var(--tilt-rx)) rotateY(var(--tilt-ry));
  will-change: transform;
}
.stat:hover {
  transform: rotateX(var(--tilt-rx)) rotateY(var(--tilt-ry)) translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(10,20,41,0.16);
}
.stat:hover .v { transform: translateZ(20px); }
.s.cream .stat { background: var(--paper); }
.s.dark .stat { background: var(--ink-2); border-color: rgba(255,255,255,0.08); }
.stat .v {
  font-family: 'DM Sans', sans-serif; font-weight: 400;
  font-size: clamp(40px, 4vw, 56px); letter-spacing: -0.04em; line-height: 1;
  color: var(--accent);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
  transition: transform 0.4s var(--ease);
  transform: translateZ(0);
}
.stat .l { font-size: 14px; color: var(--muted); line-height: 1.45; }
.s.dark .stat .l { color: rgba(251,250,246,0.7); }
@media (max-width: 760px) {
  .stat-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* Two-col body */
.two-col {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 64px; align-items: start;
}
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

/* FAQ */
.faq-list { max-width: 820px; }
.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.faq-item h3 {
  font-size: 20px; font-weight: 500;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.faq-item p { font-size: 16px; line-height: 1.65; margin: 0; color: var(--ink-soft); max-width: none; }

/* Tag */
.tag {
  display: inline-block;
  padding: 4px 10px; border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(201,162,74,0.18);
  color: var(--accent);
  margin-bottom: 12px;
}

/* === AAIA tabbed framework === */
.aaia-framework { padding: 120px 0; background: var(--paper); }
.aaia-head {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: end;
  margin-bottom: 56px;
}
.aaia-head .eyebrow { margin-bottom: 16px; }
.aaia-head h2 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05; letter-spacing: -0.02em;
  margin: 0; font-weight: 400;
}
.aaia-intro {
  font-size: 17px; color: var(--muted);
  line-height: 1.6; margin: 0; max-width: 480px;
}
.aaia-tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--line);
  margin: 0;
  scroll-margin-top: 96px; /* clear the sticky nav when tabs are scrolled into view */
}
.aaia-tab {
  flex: 1;
  padding: 20px 8px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.aaia-tab .aaia-tab-num {
  display: block;
  font-size: 11px; color: var(--muted);
  letter-spacing: 0.12em;
}
.aaia-tab .aaia-tab-label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 28px; margin-top: 4px;
  letter-spacing: -0.02em;
  color: var(--muted);
  transition: color 0.18s var(--ease);
}
.aaia-tab:hover .aaia-tab-label { color: var(--ink); }
.aaia-tab.is-active { border-bottom-color: var(--ink); }
.aaia-tab.is-active .aaia-tab-label { color: var(--ink); }
.aaia-panels {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 16px 16px;
}
.aaia-panel { padding: 56px 48px; }
.aaia-panel[hidden] { display: none; }
.aaia-panel-grid {
  container-type: inline-size;
  container-name: aaia-panel;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px;
}
@container aaia-panel (max-width: 640px) {
  .aaia-panel-grid { grid-template-columns: 1fr; gap: 32px; }
}
.aaia-panel-lede h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 36px; line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0; font-weight: 400;
  color: var(--ink);
}
.aaia-panel-lede p {
  font-size: 16px; color: var(--muted);
  line-height: 1.6; margin: 20px 0 0;
  max-width: 460px;
}
.aaia-panel-lede .btn { margin-top: 24px; }
.aaia-panel-list {
  list-style: none; padding: 0; margin: 0;
}
.aaia-panel-list li {
  display: flex; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px; line-height: 1.5;
  color: var(--ink);
}
.aaia-panel-list li:first-child { border-top: 1px solid var(--line); }
.aaia-panel-list li::before { display: none; }
.aaia-bullet-num {
  color: var(--accent);
  font-size: 12px; margin-top: 4px;
  flex-shrink: 0;
  letter-spacing: 0.06em;
}
.aaia-footnote {
  margin-top: 32px;
  font-size: 14px; color: var(--muted);
  text-align: center;
}
@media (max-width: 880px) {
  .aaia-framework { padding: 72px 0; }
  .aaia-head { grid-template-columns: 1fr; gap: 24px; }
  .aaia-tabs { gap: 0; }
  .aaia-tab { padding: 14px 6px; }
  .aaia-tab .aaia-tab-label { font-size: 18px; }
  .aaia-panel { padding: 32px 24px; }
  .aaia-panel-grid { grid-template-columns: 1fr; gap: 32px; }
  .aaia-panel-lede h3 { font-size: 28px; }
}

/* === Case studies hub (Decagon-style) === */
.cs-hub-hero {
  background: var(--hero-surface); color: var(--hero-text);
  padding: 144px 0 96px;
  position: relative; isolation: isolate; overflow: hidden;
}
.cs-hub-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--accent) 18%, transparent) 0%, transparent 70%),
    radial-gradient(40% 35% at 80% 90%, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 70%);
  transition: transform 0.6s var(--ease);
  will-change: transform;
}
@supports (animation-timeline: scroll()) {
  .cs-hub-hero::before {
    animation: hero-parallax linear both;
    animation-timeline: scroll(root);
    animation-range: 0 800px;
    transition: none;
  }
}
.cs-hub-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  opacity: 0.06;
  mix-blend-mode: overlay;
  z-index: 0;
}
.cs-hub-hero .container { position: relative; z-index: 2; }
.cs-hub-hero h1 {
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.02; letter-spacing: -0.025em;
  margin: 16px 0 24px;
  font-weight: 400;
  max-width: 14ch;
  color: var(--hero-text);
}
.cs-hub-hero p.lede {
  font-size: 21px; line-height: 1.5;
  max-width: 640px;
  color: rgba(251,250,246,0.78);
  margin: 0;
}

/* Featured cards — single-column, full-bleed image cards */
.cs-featured {
  background: var(--paper);
  padding: 96px 0;
}
.cs-featured-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 24px;
}
.cs-featured-card {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  min-height: 380px;
  padding: 56px 64px;
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  text-decoration: none;
}
.cs-featured-card::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(80% 60% at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent) 0%, transparent 60%);
  pointer-events: none;
}
.cs-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: color-mix(in srgb, var(--ink) 16%, transparent);
}
.cs-featured-card .cs-card-grid {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 56px; align-items: end;
  height: 100%; min-height: 268px;
}
.cs-featured-card .cs-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 16px;
}
.cs-featured-card .cs-logo-frame {
  display: inline-flex; align-items: center; justify-content: flex-start;
  height: 56px; padding: 8px 16px;
  margin-bottom: 28px;
  background: #fbfaf6; /* always light so logos stay legible in dark mode */
  border-radius: 10px;
  border: 1px solid rgba(20, 32, 46, 0.08);
}
.cs-featured-card .cs-logo {
  max-height: 40px; max-width: 200px;
  width: auto; height: auto;
  object-fit: contain;
  display: block;
}
.cs-featured-card h3 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1; letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0 0 16px;
  color: var(--ink);
  max-width: 22ch;
}
.cs-featured-card p {
  font-size: 16px; line-height: 1.55;
  color: var(--ink-soft);
  max-width: 48ch; margin: 0 0 24px;
}
.cs-featured-card .cs-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink);
}
.cs-featured-card .cs-arrow span:last-child { transition: transform 0.3s var(--ease); }
.cs-featured-card:hover .cs-arrow span:last-child { transform: translateX(4px); }
.cs-featured-card .cs-stat {
  text-align: right;
}
.cs-featured-card .cs-stat .v {
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1; font-weight: 400; letter-spacing: -0.04em;
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
}
.cs-featured-card .cs-stat .l {
  font-size: 13px; color: var(--muted);
  margin-top: 12px; max-width: 22ch; margin-left: auto;
}

@media (max-width: 760px) {
  .cs-featured-card { padding: 40px 28px; min-height: auto; }
  .cs-featured-card .cs-card-grid {
    grid-template-columns: 1fr; gap: 32px; min-height: auto;
  }
  .cs-featured-card .cs-stat { text-align: left; }
  .cs-featured-card .cs-stat .l { margin-left: 0; }
}

/* Grid section — 3-col cards with logo + stat + headline */
.cs-grid-section {
  background: var(--paper-2);
  padding: 96px 0;
}
.cs-grid-section .eyebrow { margin-bottom: 12px; }
.cs-grid-section h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1; letter-spacing: -0.02em;
  font-weight: 400; margin: 0 0 56px;
  color: var(--ink);
}
.cs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cs-grid-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 1 / 1.05;
  padding: 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  text-decoration: none;
}
.cs-grid-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 50% at 100% 0%, color-mix(in srgb, var(--accent) 8%, transparent) 0%, transparent 60%);
  pointer-events: none;
}
.cs-grid-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: color-mix(in srgb, var(--ink) 16%, transparent);
}
.cs-grid-card .cs-grid-logo-frame {
  display: inline-flex; align-items: center; justify-content: flex-start;
  height: 44px; padding: 6px 12px;
  background: #fbfaf6; /* always light for logo legibility in any color scheme */
  border-radius: 8px;
  border: 1px solid rgba(20, 32, 46, 0.08);
  align-self: flex-start;
}
.cs-grid-card .cs-grid-logo {
  max-height: 28px; max-width: 150px;
  width: auto; height: auto;
  object-fit: contain;
  display: block;
}
.cs-grid-card .cs-grid-stat {
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.1; font-weight: 400; letter-spacing: -0.02em;
  color: var(--accent-2);
  margin: auto 0 8px;
  font-variant-numeric: tabular-nums;
}
.cs-grid-card .cs-grid-stat-label {
  font-size: 13px; line-height: 1.45;
  color: var(--muted);
  margin-bottom: 16px;
}
.cs-grid-card .cs-grid-headline {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px; line-height: 1.3; letter-spacing: -0.01em;
  color: var(--ink); font-weight: 500;
  margin: 0;
}
.cs-grid-card .cs-grid-vertical {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-2);
  margin-top: 12px;
}
@media (max-width: 960px) {
  .cs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cs-grid { grid-template-columns: 1fr; }
  .cs-grid-card { aspect-ratio: auto; min-height: 320px; }
}

/* === Individual case study page (Decagon-style) === */
.cs-page-hero {
  background: var(--hero-surface); color: var(--hero-text);
  padding: 144px 0 88px;
  position: relative; isolation: isolate; overflow: hidden;
}
.cs-page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--accent) 18%, transparent) 0%, transparent 70%),
    radial-gradient(40% 35% at 80% 90%, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 70%);
  transition: transform 0.6s var(--ease);
  will-change: transform;
}
@supports (animation-timeline: scroll()) {
  .cs-page-hero::before {
    animation: hero-parallax linear both;
    animation-timeline: scroll(root);
    animation-range: 0 800px;
    transition: none;
  }
}
.cs-page-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  opacity: 0.06;
  mix-blend-mode: overlay;
  z-index: 0;
}
.cs-page-hero .container { max-width: 920px; text-align: center; position: relative; z-index: 2; }
.cs-page-hero .crumbs { text-align: left; max-width: none; }
.cs-page-hero .cs-hero-logo-plate {
  display: inline-flex; align-items: center; justify-content: center;
  height: 96px; padding: 16px 40px;
  background: #fbfaf6;
  border-radius: 16px;
  margin: 24px auto 32px;
  box-shadow: 0 16px 40px -16px rgba(0,0,0,0.4);
}
.cs-page-hero .cs-hero-logo {
  max-height: 64px; max-width: 280px;
  width: auto; height: auto;
  object-fit: contain;
  display: block;
}
.cs-page-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1; letter-spacing: -0.02em;
  font-weight: 400; max-width: 24ch;
  margin: 0 auto 48px;
  color: var(--hero-text);
}
.cs-hero-metric {
  display: inline-block;
  padding: 32px 56px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  margin-bottom: 40px;
}
.cs-hero-metric .v {
  font-size: clamp(56px, 7vw, 80px);
  line-height: 1; letter-spacing: -0.04em;
  font-weight: 400; color: var(--accent);
  font-variant-numeric: tabular-nums;
  display: block;
}
.cs-hero-metric .l {
  font-size: 14px; line-height: 1.5;
  color: rgba(251,250,246,0.78);
  margin-top: 12px; max-width: 36ch;
}
.cs-meta {
  display: flex; justify-content: center; gap: 48px;
  flex-wrap: wrap;
  padding: 24px 0 0;
  border-top: 1px solid rgba(251,250,246,0.12);
  margin-top: 16px;
}
.cs-meta dt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(251,250,246,0.55);
  margin-bottom: 6px;
}
.cs-meta dd {
  font-size: 15px; color: var(--hero-text);
  margin: 0; font-weight: 500;
}

/* Case study body — single column, narrow measure */
.cs-body { background: var(--paper); padding: 96px 0; }
.cs-body .container { max-width: 760px; }
.cs-body section + section { margin-top: 72px; }
.cs-body .cs-section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 16px;
}
.cs-body h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15; letter-spacing: -0.02em;
  font-weight: 400; margin: 0 0 24px;
  color: var(--ink);
}
.cs-body p {
  font-size: 17px; line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.cs-body p strong { color: var(--ink); font-weight: 600; }

/* Case study quote block — full-width, italicized */
.cs-quote {
  background: var(--paper-2);
  padding: 96px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cs-quote .container { max-width: 880px; text-align: center; }
.cs-quote blockquote {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.4; letter-spacing: -0.01em;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 32px;
  position: relative;
}
.cs-quote blockquote::before {
  content: '\201C'; display: block;
  font-size: 64px; line-height: 0.8;
  color: var(--accent);
  margin-bottom: 16px; font-style: normal;
}
.cs-quote .cs-quote-attr {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}

/* More case studies — 3-card row at bottom */
.cs-more {
  background: var(--paper);
  padding: 96px 0;
  border-top: 1px solid var(--line);
}
.cs-more h2 {
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.2; letter-spacing: -0.015em;
  font-weight: 400; margin: 0 0 40px;
  color: var(--ink);
}
.cs-more-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) {
  .cs-more-grid { grid-template-columns: 1fr; }
}

/* === CTA strip === */
.cta-strip {
  background: var(--hero-surface); color: var(--hero-text);
  padding: 96px 0;
  text-align: center;
  position: relative; isolation: isolate;
  overflow: hidden;
}
.cta-strip::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(50% 60% at 50% 100%, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 70%);
}
.cta-strip::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  opacity: 0.04;
  mix-blend-mode: overlay;
}
.cta-strip > .container { position: relative; z-index: 1; }
.cta-strip h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(36px, 5.5vw, 64px);
  letter-spacing: -0.025em; line-height: 1.05;
  margin: 0 0 16px;
  font-weight: 400;
}
.cta-strip h2 .gold { color: var(--accent); }
.cta-strip p {
  color: rgba(251,250,246,0.78); font-size: 18px;
  max-width: 640px; margin: 0 auto 32px;
  line-height: 1.55;
}
.cta-strip .actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* === Footer ===
   Footer surface stays dark in both schemes (always navy).
   We use a slightly lifted hero-surface tone for visual hierarchy. */
.site-footer {
  background: #0e1a36; /* fixed lifted-navy — never inverts */
  color: #fbfaf6;
  padding: 88px 0 40px;
  position: relative;
}
.site-footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,162,74,0.4), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  align-items: start;
}
.footer-brand .brand-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 22px; letter-spacing: -0.025em; font-weight: 500;
  color: var(--paper); margin-bottom: 18px;
}
.footer-brand p {
  font-size: 14px; color: rgba(247,245,240,0.6); line-height: 1.6;
  max-width: 280px; margin: 0;
}
.footer-brand .footer-socials {
  margin-top: 24px; display: flex; gap: 10px;
}
.footer-brand .footer-socials a {
  width: 38px; height: 38px; border-radius: 99px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 11px; color: rgba(247,245,240,0.75);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.06em;
}
.footer-brand .footer-socials a:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.32);
  color: #fff;
}
.footer-col .title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(251,250,246,0.5);
  margin-bottom: 18px;
}
.footer-col a {
  display: block; padding: 8px 0;
  min-height: 24px;
  line-height: 1.5;
  color: rgba(251,250,246,0.72);
  font-size: 13px;
  transition: color 0.2s var(--ease);
  white-space: nowrap;
}
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.footer-bottom > div:first-child {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: rgba(247,245,240,0.6); letter-spacing: 0.06em;
}
.footer-bottom .links {
  display: flex; gap: 24px; font-size: 12px; color: rgba(247,245,240,0.7);
}
.footer-bottom .links a { transition: color 0.2s var(--ease); }
.footer-bottom .links a:hover { color: var(--paper); }

/* === Responsive === */
@media (max-width: 1099px) {
  .nav-items { display: none; }
  .nav-toggle { display: grid; }
  .nav-end #navCta { display: none; }
}
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1.4fr repeat(2, 1fr); row-gap: 48px; }
}
@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .page-hero { padding: 112px 0 72px; }
  .page-hero .actions { flex-direction: column; align-items: stretch; }
  .page-hero .actions .btn { justify-content: center; }
  .s { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 480px) {
  .mobile-menu .mm-link { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}
@media (hover: none) {
  .btn:hover { transform: none; box-shadow: none; }
  .btn:hover::before { opacity: 0; }
  .stat:hover { transform: none; box-shadow: none; }
  .card-hover:hover { transform: none; }
}
