:root {
  --ink: #142628;
  --ink-2: #1d3538;
  --deep: #0f1f21;
  --paper: #f3efe7;
  --paper-2: #e9e3d7;
  --line: rgba(20, 38, 40, .16);
  --line-light: rgba(243, 239, 231, .18);
  --muted: #56676a;
  --muted-light: rgba(243, 239, 231, .66);
  --accent: #c9773f;
  --sage: #9fb3a8;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: min(1240px, 100% - clamp(40px, 8vw, 120px));
  --space: clamp(96px, 14vw, 200px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::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(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.05; max-width: 16ch; margin-bottom: .6em; }
h3 { font-size: 22px; line-height: 1.2; }
p { margin: 0 0 1em; }
em { font-style: italic; }
q { quotes: "„" "“"; font-family: var(--serif); font-style: italic; }

.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--paper); padding: 8px 14px; }

.eyebrow {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
  color: var(--muted); margin-bottom: 28px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--muted-light); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 100px;
  background: var(--ink); color: var(--paper);
  font: 500 15px/1 var(--sans); text-decoration: none; border: 0; cursor: pointer;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--accent); }
.btn:active { transform: scale(.98); }
.btn--small { padding: 11px 18px; font-size: 14px; }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--accent); color: var(--paper); }
.link-arrow {
  font-weight: 500; font-size: 15px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--line); padding-bottom: 4px;
  transition: border-color .3s;
}
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover { border-color: var(--ink); }
.link-arrow:hover::after { transform: translateX(4px); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .4s, border-color .4s, transform .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(243, 239, 231, .88); backdrop-filter: blur(14px); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { display: flex; align-items: center; gap: 40px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--serif); font-size: 19px; letter-spacing: -.01em; }
.brand__mark { width: 30px; height: 30px; }
.nav__links { display: flex; gap: 30px; margin-left: auto; font-size: 14px; }
.nav__links a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__toggle { display: none; }
.mobile-menu { display: none; }

/* Hero */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; align-items: flex-end;
  padding: 140px 0 clamp(56px, 8vw, 110px);
  background: radial-gradient(120% 80% at 85% 10%, #e3e7df 0%, var(--paper) 55%);
}
.hero__inner { position: relative; z-index: 2; }
.hero__title {
  font-size: clamp(64px, 13vw, 204px); line-height: .9; letter-spacing: -.045em; font-weight: 300;
  margin: 0 0 clamp(40px, 6vw, 72px);
}
.hero__title span { display: block; }
.hero__title span:last-child { padding-left: clamp(40px, 12vw, 220px); }
.hero__title em { color: var(--accent); font-weight: 300; }
.hero__foot { display: grid; grid-template-columns: minmax(0, 520px) auto; justify-content: space-between; align-items: end; gap: 40px; border-top: 1px solid var(--line); padding-top: 32px; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; margin: 0; }
.hero__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero__scroll { position: absolute; right: clamp(20px, 4vw, 60px); top: 50%; z-index: 2; width: 1px; height: 80px; background: var(--line); overflow: hidden; }
.hero__scroll span { position: absolute; inset: 0; background: var(--ink); animation: drip 2.4s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

/* Topography */
.topo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.topo path { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.topo--hero { opacity: .2; }
.topo--hero path { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 3.2s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.topo--dark { opacity: .14; }
.topo--dark path { stroke: var(--paper); }
.topo--portrait { opacity: .35; }
.topo--portrait path { stroke: var(--paper); }

/* Figures */
.figures { padding: var(--space) 0; }
.statement { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.18; letter-spacing: -.02em; max-width: 24ch; margin-bottom: clamp(72px, 10vw, 140px); }
.statement em { color: var(--accent); }
.fig-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.fig { margin: 0; padding: 28px 32px 0 0; }
.fig + .fig { padding-left: 32px; border-left: 1px solid var(--line); }
.fig figcaption { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fig__num { font-family: var(--serif); font-weight: 300; font-size: clamp(64px, 8vw, 120px); line-height: 1; letter-spacing: -.04em; margin: 40px 0 24px; }
.fig__num small { font-family: var(--sans); font-size: 15px; letter-spacing: 0; color: var(--muted); margin-left: 10px; font-weight: 400; }
.fig__text { color: var(--muted); max-width: 30ch; }

/* KET */
.ket { padding: 0 0 var(--space); }
.ket__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 140px); align-items: center; }
.ket__text p:not(.eyebrow) { max-width: 52ch; }
.cycle { margin: 0; }
.cycle svg { width: 100%; overflow: visible; }
.cycle__ring { fill: none; stroke: var(--line); stroke-width: 1; }
.cycle__run { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 90 727; transform-origin: 200px 200px; animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cycle__node circle { fill: var(--ink); }
.cycle__node text { font-family: var(--serif); font-size: 22px; fill: var(--ink); }
.cycle__center { font-family: var(--sans); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; text-anchor: middle; fill: var(--muted); }
.cycle__center--small { font-family: var(--serif); font-size: 16px; letter-spacing: 0; text-transform: none; font-style: italic; fill: var(--ink); }
.cycle figcaption { margin-top: 24px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: center; }

/* Topics */
.topics, .contact { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); padding: var(--space) 0; }
.topics .wrap, .contact .wrap { position: relative; z-index: 1; }
.topic-list { list-style: none; padding: 0; margin: clamp(48px, 6vw, 88px) 0 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(40px, 6vw, 96px); }
.topic-list li { display: grid; grid-template-columns: 56px 1fr; padding: 28px 0; border-top: 1px solid var(--line-light); }
.topic-list__n { font-size: 13px; color: var(--sage); padding-top: 6px; font-variant-numeric: tabular-nums; }
.topic-list h3 { font-size: clamp(22px, 2vw, 28px); margin-bottom: 8px; }
.topic-list p { grid-column: 2; color: var(--muted-light); margin: 0; }
.topics__note { margin-top: 64px; max-width: 58ch; color: var(--muted-light); border-left: 1px solid var(--accent); padding-left: 20px; }

/* Process */
.process { padding: var(--space) 0; }
.section-head { margin-bottom: clamp(48px, 6vw, 80px); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 32px 28px 0 0; position: relative; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step__n { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--accent); margin-bottom: 64px; }
.step h3 { margin-bottom: 14px; }
.step p:last-child { color: var(--muted); font-size: 16px; }

/* About */
.about { padding: 0 0 var(--space); }
.about__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(48px, 8vw, 140px); align-items: start; }
.portrait { margin: 0; position: sticky; top: 110px; }
.portrait__frame {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px;
  background: linear-gradient(160deg, #6f8a84 0%, var(--ink-2) 70%);
}
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait__initials { position: absolute; left: 28px; bottom: 20px; font-family: var(--serif); font-weight: 300; font-size: 96px; letter-spacing: -.04em; color: var(--paper); opacity: .9; }
.portrait figcaption { margin-top: 16px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.about__text h2 { max-width: 18ch; }
.about__text p:not(.eyebrow) { max-width: 56ch; }
.creds { margin: 48px 0 0; border-top: 1px solid var(--line); }
.creds div { display: grid; grid-template-columns: 180px 1fr; padding: 18px 0; border-bottom: 1px solid var(--line); }
.creds dt { font-size: 13px; color: var(--muted); }
.creds dd { margin: 0; }

/* Format */
.format { padding: var(--space) 0; background: var(--paper-2); }
.format__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.format__card { background: var(--paper); padding: 36px 32px 40px; border-radius: 2px; }
.format__card h3 { margin-bottom: 8px; }
.format__meta { font-size: 13px; color: var(--accent); margin-bottom: 28px; letter-spacing: .02em; }
.format__card p:last-child { color: var(--muted); margin: 0; font-size: 16px; }

/* FAQ */
.faq { padding: var(--space) 0; }
.faq__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(48px, 8vw, 140px); }
.faq__list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 26px 48px 26px 0; position: relative;
  font-family: var(--serif); font-size: clamp(20px, 1.8vw, 24px); line-height: 1.3;
}
summary::-webkit-details-marker { display: none; }
summary::after, summary::before { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 1px; background: var(--ink); transition: transform .35s var(--ease); }
summary::before { transform: rotate(90deg); }
details[open] summary::before { transform: rotate(0); }
details p { color: var(--muted); max-width: 60ch; padding-bottom: 28px; margin: 0; }

/* Contact */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 140px); align-items: start; }
.contact__grid > div > p:not(.eyebrow) { color: var(--muted-light); max-width: 44ch; }
.contact__list { list-style: none; padding: 0; margin: 48px 0 0; border-top: 1px solid var(--line-light); }
.contact__list li { display: grid; grid-template-columns: 120px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line-light); }
.contact__list span { font-size: 13px; color: var(--muted-light); }
.contact__list a { text-decoration-color: var(--accent); text-underline-offset: 4px; }
.form { display: grid; gap: 22px; }
.form label { display: grid; gap: 8px; font-size: 13px; color: var(--muted-light); }
.form input[type="text"], .form textarea {
  font: 17px/1.5 var(--sans); color: var(--paper);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-light);
  padding: 10px 0; border-radius: 0; resize: vertical; transition: border-color .3s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form textarea::placeholder { color: rgba(243, 239, 231, .35); }
.form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.form legend { font-size: 13px; color: var(--muted-light); margin-bottom: 4px; width: 100%; padding: 0; }
.form .radio { display: flex; flex-direction: row; align-items: center; gap: 8px; font-size: 15px; color: var(--paper); cursor: pointer; }
.form .radio input { accent-color: var(--accent); }
.form .btn { justify-self: start; margin-top: 8px; }
.form__hint { font-size: 13px; color: var(--muted-light); margin: 0; }
.form .is-invalid { border-color: var(--accent); }

/* Crisis */
.crisis { background: var(--deep); color: var(--paper); padding: 28px 0; font-size: 15px; }
.crisis__inner { display: flex; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; align-items: baseline; }
.crisis p { margin: 0; color: var(--muted-light); }
.crisis strong { color: var(--paper); font-weight: 500; }
.crisis__lines a { color: var(--paper); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--accent); }
.crisis__lines span { margin: 0 10px; opacity: .4; }

/* Footer */
.footer { background: var(--deep); color: var(--muted-light); border-top: 1px solid var(--line-light); padding: 48px 0; font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer__name { font-family: var(--serif); font-size: 22px; color: var(--paper); margin: 0; }
.footer__tag { margin: 0; }
.footer__links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--paper); }
.footer__copy { margin: 0; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1000px) {
  .nav__links, .nav .btn--small { display: none; }
  .nav__toggle { display: grid; gap: 6px; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
  .nav__toggle span { width: 24px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .mobile-menu:not([hidden]) { display: grid; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px max(20px, (100% - 1240px) / 2) 28px; }
  .mobile-menu a { font-family: var(--serif); font-size: 26px; text-decoration: none; padding: 10px clamp(20px, 4vw, 60px); }
  .nav.menu-open { background: var(--paper); }

  .hero__foot, .ket__grid, .about__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .format__grid { grid-template-columns: 1fr; }
  .portrait { position: static; max-width: 440px; }
  .cycle { max-width: 420px; margin-inline: auto; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .hero__title span:last-child { padding-left: 0; }
  .hero__scroll { display: none; }
  .fig-grid { grid-template-columns: 1fr; }
  .fig, .fig + .fig { padding: 28px 0 32px; border-left: 0; border-bottom: 1px solid var(--line); }
  .fig__num { margin: 20px 0 12px; }
  .topic-list { grid-template-columns: 1fr; }
  .topic-list li { grid-template-columns: 44px 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 28px 0 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .step__n { margin-bottom: 24px; }
  .creds div { grid-template-columns: 1fr; gap: 4px; }
  .crisis__lines span { display: none; }
  .crisis__lines a { display: inline-block; margin-top: 10px; margin-right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .topo--hero path { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}
