@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fbfaf7;
  --bg-2: #f3f1ec;
  --text: #16181d;
  --text-2: #33363f;
  --muted: #646976;
  --rule: #e2dfd7;
  --accent: #2a4bb8;
  --ink: #0b0e16;
  --ink-2: #111522;
  --on-ink: #eceff5;
  --on-ink-muted: #a2aabb;
  --halo: #9db8ff;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.dark :focus-visible, .hero :focus-visible, .top :focus-visible, .foot :focus-visible { outline-color: var(--halo); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; color: inherit; margin: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--bg); color: var(--text); padding: 8px 14px; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 64px; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--on-ink); text-decoration: none; font: 600 .78rem/1 var(--sans); letter-spacing: .2em; }
.wordmark:hover { text-decoration: none; }
.top nav { display: flex; gap: clamp(16px, 2.6vw, 32px); }
.top nav a { color: var(--on-ink-muted); text-decoration: none; font-size: .9rem; }
.top nav a:hover { color: var(--on-ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(900px 600px at 72% 45%, rgba(70, 105, 210, .16), transparent 70%), var(--ink);
  color: var(--on-ink);
  padding-block: clamp(80px, 13vw, 168px) clamp(80px, 12vw, 152px);
}
.halo {
  position: absolute; z-index: -1;
  width: min(900px, 92vw); aspect-ratio: 1;
  right: max(-300px, -20vw); top: 50%; transform: translateY(-50%);
  opacity: .95; pointer-events: none;
  /* fade the left side so the frame lines never run through the text */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 22%, #000 42%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 22%, #000 42%);
}
.halo .l { transform-origin: 300px 300px; animation: breathe 12s ease-in-out infinite; }
.halo .l2 { animation-delay: -2s; } .halo .l3 { animation-delay: -4s; } .halo .l4 { animation-delay: -6s; }
.halo .l5 { animation-delay: -8s; } .halo .l6 { animation-delay: -10s; }
.halo .glow { transform-origin: 300px 300px; animation: glow 9s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.018); } }
@keyframes glow { 0%, 100% { opacity: .8; } 50% { opacity: 1; } }

.hero__text { position: relative; max-width: 620px; }
.label { font: 600 .74rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--halo); margin: 0 0 22px; }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.9rem); line-height: 1.03; letter-spacing: -0.025em; margin-bottom: 28px; text-wrap: balance; }
.hero__lead { font-size: clamp(1.08rem, 1.6vw, 1.22rem); line-height: 1.6; color: var(--on-ink-muted); margin: 0 0 40px; max-width: 34em; }
.hero__lead strong { color: var(--on-ink); font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 .95rem/1 var(--sans); letter-spacing: .01em;
  padding: 16px 26px; border-radius: 3px; border: 1px solid transparent;
  background: var(--on-ink); color: var(--ink); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease;
}
.btn:hover { background: #fff; text-decoration: none; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(80px, 10vw, 136px); border-top: 1px solid var(--rule); }
.section--alt { background: var(--bg-2); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(32px, 6vw, 96px); }
.split__head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.12; text-wrap: balance; }
.split__head p { color: var(--muted); margin: 16px 0 0; max-width: 24em; }
@media (min-width: 961px) { .split__head { position: sticky; top: 104px; align-self: start; } }

.prose { font-family: var(--serif); font-size: 1.2rem; line-height: 1.7; color: var(--text-2); }
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }

/* Creed */
.creed { list-style: none; margin: 0; padding: 0; counter-reset: art; }
.creed li { counter-increment: art; padding-block: 30px; border-top: 1px solid var(--rule); }
.creed li:first-child { border-top: 0; padding-top: 0; }
.creed li::before { content: "Article " counter(art, upper-roman); display: block; font: 600 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.creed h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.25; margin-bottom: 10px; }
.creed p { font-family: var(--serif); font-size: 1.12rem; line-height: 1.7; color: var(--text-2); margin: 0; }

/* Future */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 8px 0 48px; }
.pillar { border-top: 2px solid var(--text); padding-top: 18px; }
.pillar h3 { font-size: 1.3rem; margin-bottom: 8px; }
.pillar p { margin: 0; color: var(--text-2); font-size: 1rem; line-height: 1.6; }

/* Voices */
.voices-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 48px; margin-bottom: clamp(40px, 5vw, 64px); }
.voices-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.12; }
.voices-head p { color: var(--muted); margin: 0; max-width: 30em; }
.voices { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.voice { display: flex; flex-direction: column; padding: 36px 32px 34px; border-bottom: 1px solid var(--rule); }
.voice:not(:nth-child(3n + 1)) { border-left: 1px solid var(--rule); }
.voice__who { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.voice__who img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; filter: grayscale(1) contrast(1.05); background: var(--rule); flex: none; }
.voice__name { font: 600 1rem/1.3 var(--sans); margin: 0; }
.voice__role { font-size: .86rem; line-height: 1.4; color: var(--muted); margin: 2px 0 0; }
.voice blockquote { margin: 0 0 18px; font-family: var(--serif); font-size: 1.22rem; line-height: 1.45; color: var(--text); }
.voice__ctx { margin: auto 0 0; font-size: .86rem; line-height: 1.5; color: var(--muted); }
.voice__ctx a { color: var(--muted); }
.fineprint { margin: 28px 0 0; font-size: .86rem; color: var(--muted); max-width: 60em; }

/* FAQ */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 24px 0; font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.35; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--sans); color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq .answer { padding: 0 0 26px; max-width: 46em; color: var(--text-2); font-size: 1.02rem; }
.faq .answer p { margin: 0; }

/* ---------- Contact (dark) ---------- */
.dark { background: var(--ink); color: var(--on-ink); border-top: 0; }
.dark .split__head p { color: var(--on-ink-muted); }
.dark a { color: var(--halo); }
.form { display: grid; gap: 20px; max-width: 640px; }
.field { display: grid; gap: 8px; }
.field span { font-size: .88rem; font-weight: 500; color: var(--on-ink); }
.field small { color: var(--on-ink-muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--on-ink);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(162, 170, 187, .35); border-radius: 3px;
  padding: 14px 15px; transition: border-color .15s ease, background-color .15s ease;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--halo); background: rgba(255, 255, 255, .07); }
.field [aria-invalid="true"] { border-color: #ff9d92; }
.err { color: #ffb4ab; font-style: normal; font-size: .85rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.status { margin: 0; }
.status:empty { margin-top: -20px; }
.status.ok { color: #9fe0b9; }
.status.bad { color: #ffb4ab; }
.privacy-note { font-size: .86rem; color: var(--on-ink-muted); margin: 0; max-width: 40em; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: var(--on-ink-muted); border-top: 1px solid rgba(255, 255, 255, .08); font-size: .88rem; }
.foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; padding-block: 32px; }
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: var(--on-ink-muted); text-decoration: none; }
.foot a:hover { color: var(--on-ink); }

/* ---------- Simple pages (privacy, credits, thanks, 404) ---------- */
.page { padding-block: clamp(64px, 9vw, 120px); }
.page__inner { max-width: 760px; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.1; margin-bottom: 28px; }
.page h2 { font-size: 1.4rem; margin: 40px 0 10px; }
.page p, .page li { color: var(--text-2); }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: 10px; }
.hero--full { min-height: calc(100vh - 64px); display: flex; align-items: center; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .voices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .voice:not(:nth-child(3n + 1)) { border-left: 0; }
  .voice:nth-child(2n) { border-left: 1px solid var(--rule); }
  .halo { opacity: .5; right: -30vw; }
}
@media (max-width: 680px) {
  .pillars { grid-template-columns: 1fr; gap: 28px; }
  .voices { grid-template-columns: 1fr; }
  .voice, .voice:nth-child(2n) { border-left: 0; padding-inline: 0; }
  .halo { width: 140vw; right: -62vw; opacity: .5; }
  .top nav a { font-size: .85rem; }
  .prose { font-size: 1.12rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
