:root {
  --ink: #14213d;
  --ink-soft: #3d4a66;
  --muted: #6b7489;
  --bg: #fbf8f3;
  --bg-alt: #f3eee5;
  --surface: #ffffff;
  --line: #e6dfd3;
  --accent: #e4572e;
  --accent-ink: #ffffff;
  --accent-soft: #fde4da;
  --teal: #1f8a70;
  --teal-soft: #d6efe7;
  --dark: #14213d;
  --dark-ink: #f4efe6;
  --radius: 16px;
  --shadow: 0 20px 50px -20px rgba(20, 33, 61, .25);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1ece3;
    --ink-soft: #c9c4bb;
    --muted: #9a9fae;
    --bg: #0f1628;
    --bg-alt: #141c31;
    --surface: #1a2440;
    --line: #2a3555;
    --accent: #f26b43;
    --accent-soft: #3a2420;
    --teal: #3cc59f;
    --teal-soft: #173a33;
    --dark: #0a1020;
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h1 em { font-style: italic; color: var(--accent); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--accent); margin-bottom: .8em; }
.lede { font-size: 1.15rem; color: var(--ink-soft); }


/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; }
.logo svg { width: 30px; height: 30px; color: var(--accent); }

/* Hero */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero .lede { font-size: clamp(1.2rem, 2.2vw, 1.5rem); margin-top: .6em; }
.hero-sub { color: var(--ink-soft); max-width: 520px; }
@media (max-width: 880px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .echo { max-width: 340px; }
}

/* Echo graphic */
.echo { width: 100%; max-width: 540px; aspect-ratio: 1; margin-inline: auto; }
.echo svg { width: 100%; height: 100%; overflow: visible; }
.echo .pulse { transform-box: view-box; transform-origin: 50% 50%; }
.echo .link { stroke: var(--ink-soft); stroke-width: 1; }
.echo .ring { fill: none; stroke: var(--ink); stroke-opacity: .13; stroke-width: 1.5; }
.echo .ring.dash { stroke-dasharray: 2 9; stroke-linecap: round; stroke-opacity: .28; }
.echo .beam { stroke: var(--accent); stroke-opacity: .35; stroke-width: 1.5; stroke-dasharray: 3 11; stroke-linecap: round; animation: flow 1.4s linear infinite; }
@keyframes flow { from { stroke-dashoffset: 28; } to { stroke-dashoffset: 0; } }
.echo .dot { fill: var(--accent); transform-box: fill-box; transform-origin: center; }
.echo .dot.blink { animation: blink 5s ease-in-out infinite; animation-delay: var(--d, 0s); }
.echo .dot.t { fill: var(--teal); }
.echo .dot.i { fill: var(--ink-soft); }
@keyframes blink {
  0%, 100% { opacity: .4; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1.15); }
}
.echo .pulse { fill: none; stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: 0; animation: echo 12s ease-out infinite; }
.echo .pulse:nth-of-type(2) { animation-delay: 4s; }
.echo .pulse:nth-of-type(3) { animation-delay: 8s; }
@keyframes echo {
  0% { transform: scale(.06); opacity: .7; }
  100% { transform: scale(1); opacity: 0; }
}
.echo .g0 { stop-color: var(--accent); stop-opacity: .22; }
.echo .g1 { stop-color: var(--accent); stop-opacity: 0; }
.echo .core { fill: var(--accent); }
.echo .core-ring { fill: none; stroke: var(--accent); stroke-width: 2; stroke-opacity: .45; }

@media (prefers-reduced-motion: reduce) {
  .echo * { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Sections */
.section { padding: 96px 0; position: relative; }
.section.alt { background: var(--bg-alt); }
@media (max-width: 700px) { .section { padding: 64px 0; } }

/* Approach */
.approach { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.approach p:last-child { color: var(--ink-soft); margin: 0; }
@media (max-width: 800px) { .approach { grid-template-columns: 1fr; gap: 40px; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.steps li { display: flex; align-items: center; gap: 24px; }
.steps h3 { margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); }
.step-num {
  flex: none; display: grid; place-items: center;
  width: clamp(48px, 8vw, 64px); height: clamp(48px, 8vw, 64px);
  border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  font: 600 clamp(1.3rem, 3vw, 1.7rem) var(--serif); box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent-soft) 45%, transparent);
}

/* Statement */
.statement h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: .6em; }
.statement .lede { max-width: 620px; margin: 0 auto; }

/* Principles (dark) */
.section.dark { background: var(--dark); color: var(--dark-ink); }
.section.dark h2 { margin: 0; }
.section.dark p:not(.eyebrow) { color: color-mix(in srgb, var(--dark-ink) 72%, transparent); }
.section.dark p.lede { color: var(--dark-ink); font-size: 1.3rem; }
.section.dark p:last-child { margin: 0; }
.trust-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
@media (max-width: 800px) { .trust-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Footer */
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer-grid p { margin: 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
