:root {
  --blue: #0169B4;
  --blue-deep: #084C80;
  --navy: #0A1B30;
  --navy-soft: #10263F;
  --ink: #0E1B2A;
  --body: #3D4A5C;
  --muted: #6B7788;
  --bg: #F6F4EF;
  --bg-raised: #FDFCF9;
  --accent: #0169B4;
  --dawn: #E8A54B;
  --night: #071426;
  --line: rgba(14, 27, 42, 0.12);
  --line-accent: rgba(1, 105, 180, 0.25);

  --head: 'Archivo', sans-serif;
  --text: 'Inter', sans-serif;

  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-7: 6rem;
  --sp-8: 8rem;

  --text-xs: 0.6875rem;
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-base: 260ms;
  --dur-slow: 420ms;
}

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

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

body {
  font-family: var(--text);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--body);
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012 0.017' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.53 0 0 0 0 0.48 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 120% 70% at 50% -10%, rgba(1, 105, 180, 0.05), transparent 60%),
    linear-gradient(175deg, #F8F6F1 0%, #F4F1EA 48%, #F6F4EF 100%);
  background-attachment: fixed;
  background-size: 420px 420px, cover, cover;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

h1 {
  font-weight: 300;
  font-size: clamp(2.75rem, 7.2vw, 6.25rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
}

p {
  max-width: 62ch;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--dur-base) var(--ease);
}

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

.wrap {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

.wrap-wide {
  width: min(1360px, 94vw);
  margin-inline: auto;
}

section {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 8.5rem);
}

.section-line {
  border-top: 1px solid var(--line-accent);
}

.eyebrow {
  display: inline-block;
  font-family: var(--text);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}

.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.6;
  color: var(--body);
  font-weight: 400;
}

.text-link {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  transition: color var(--dur-base) var(--ease);
}

.text-link:hover {
  color: var(--blue);
}

.text-link .arr {
  transition: transform var(--dur-base) var(--ease-spring);
}

.text-link:hover .arr {
  transform: translateX(4px);
}

.on-dark {
  color: rgba(246, 244, 239, 0.75);
}

.on-dark h2, .on-dark h3 {
  color: #F6F4EF;
}

.on-dark .text-link {
  color: #F6F4EF;
}

.on-dark .text-link:hover {
  color: #7FB8DE;
}

.rv {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-spring), transform 0.75s var(--ease-spring);
}

.rv.vis {
  opacity: 1;
  transform: none;
}

.rv-d1 { transition-delay: 0.06s }
.rv-d2 { transition-delay: 0.12s }
.rv-d3 { transition-delay: 0.18s }
.rv-d4 { transition-delay: 0.24s }
.rv-d5 { transition-delay: 0.30s }
.rv-d6 { transition-delay: 0.36s }
.rv-d7 { transition-delay: 0.42s }
.rv-d8 { transition-delay: 0.48s }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

::selection {
  background: rgba(1, 105, 180, 0.18);
  color: var(--ink);
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .grain, .loader, .nav-burger, .insights-nav, .hero-scroll, .hero-rays, .hero-dawn,
  .ghost-num, .ghost-mountain, .footer-rays {
    display: none !important;
  }

  .nav {
    position: static;
    background: #fff;
  }

  .rv {
    opacity: 1 !important;
    transform: none !important;
  }

  section {
    padding-block: 1.5rem;
  }
}
