:root {
  color-scheme: dark;
  --page: #101214;
  --panel: #171c1c;
  --text: #f7f8fa;
  --muted: #b4bac2;
  --line: #343d43;
  --accent: #78dab1;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 1rem/1.5 var(--font-ui, Geist, sans-serif);
}
a { color: inherit; text-underline-offset: .28em; }
a:focus-visible { outline: none; text-decoration: underline; background: #203a30; }
.shell { width: min(1280px, calc(100% - 2 * clamp(18px, 5vw, 68px))); margin-inline: auto; }
.topbar {
  height: 84px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.wordmark { display: flex; align-items: center; padding: 5px; }
.wordmark img { display: block; }
.top-link { font-size: .875rem; color: var(--muted); text-decoration: none; padding: 8px 4px; }
.top-link:hover, .top-link:focus-visible { color: var(--text); text-decoration: underline; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(30px, 5.5vw, 90px);
  padding-block: clamp(52px, 10vw, 147px);
}
h1, h2, h3, p, figure { margin: 0; }
h1 { font-size: clamp(2.35rem, 5vw, 5.25rem); font-weight: 550; line-height: 1.02; letter-spacing: -.063em; }
h1 span { display: block; margin-bottom: .15em; color: var(--muted); }
.intro p { max-width: 39ch; margin-block: 24px 30px; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.2rem); }
.action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 6px;
  background: var(--accent);
  color: #101b16;
  text-decoration: none;
  font-weight: 620;
}
.action:hover, .action:focus-visible { background: #b7f0d7; color: #101b16; text-decoration: underline; }
.action svg { flex: none; }
.cycle { min-width: 0; background: var(--panel); border: 1px solid var(--line); padding: clamp(14px, 2.3vw, 32px); border-radius: 8px; }
.cycle > svg { display: block; width: 100%; margin-block: 18px 10px; }
.figure-header, figcaption { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.figure-header { justify-content: space-between; }
.figure-header strong { font-weight: 590; }
.figure-header span, figcaption { font-size: .78rem; color: var(--muted); }
figcaption span { display: inline-flex; align-items: center; gap: 6px; }
figcaption span::before { content: ''; display: block; width: 12px; height: 2px; background: #c4d0cb; }
figcaption .curve-key::before { background: var(--accent); }
.method { border-top: 1px solid var(--line); padding-block: 44px 64px; }
h2 { font-size: clamp(1.65rem, 3vw, 2.7rem); font-weight: 550; letter-spacing: -.04em; }
.method ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 40px; margin: 26px 0 0; padding-left: 22px; }
.method li::marker { color: var(--accent); font-family: var(--font-data); }
.method h3 { font-size: 1rem; font-weight: 620; }
.method p { color: var(--muted); margin-top: 5px; }
.footer { padding-block: 20px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .83rem; }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; }
  .cycle { max-width: 680px; }
}
@media (max-width: 590px) {
  .topbar { height: 64px; }
  .topbar img { width: 98px; height: auto; }
  .method ol { grid-template-columns: 1fr; }
}
