:root {
  --night: #09090b;
  --night-raised: #141419;
  --paper: #f2efe8;
  --paper-raised: #fbf9f4;
  --ink: #101014;
  --ink-soft: #5d5a61;
  --text-on-night: #f5f2eb;
  --text-on-night-soft: #aaa5ad;
  --rule: rgba(16, 16, 20, .14);
  --rule-dark: rgba(255, 255, 255, .16);
  --pink: #c52f64;
  --rust: #c2410c;
  --orange: #f4773f;
  --success: #18734b;
  --danger: #b42318;
  --action: linear-gradient(115deg, var(--pink), var(--rust));
  --display: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  --body: "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --shell: 1360px;
  --gutter: clamp(18px, 3vw, 40px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --z-base: 0;
  --z-sticky: 20;
  --z-nav: 40;
  --z-overlay: 80;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.62 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
[hidden] { display: none !important; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, summary, select { cursor: pointer; }
button, a { touch-action: manipulation; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin-top: 0; }
h1, h2, h3, h4 {
  margin-bottom: .58em;
  font-family: var(--display);
  font-weight: 650;
  line-height: 1.03;
  letter-spacing: -.038em;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 5.6vw, 5.25rem); }
h2 { font-size: clamp(2.25rem, 4.2vw, 3.95rem); }
h3 { font-size: clamp(1.35rem, 2.3vw, 2.15rem); letter-spacing: -.035em; line-height: 1.05; }
h4 { font-size: 1.05rem; letter-spacing: -.02em; line-height: 1.2; }
p { color: var(--ink-soft); }
code, kbd { font-family: var(--mono); }
kbd {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: .78em;
  font-weight: 650;
  box-shadow: inset 0 -2px rgba(0, 0, 0, .08);
}

.shell { width: min(var(--shell), calc(100% - (2 * var(--gutter)))); margin-inline: auto; }
.measure { max-width: 72ch; }
.night { background: var(--night); color: var(--text-on-night); }
.night h1, .night h2, .night h3, .night h4 { color: var(--text-on-night); }
.night p { color: var(--text-on-night-soft); }
.paper { background: var(--paper); color: var(--ink); }
.paper-raised { background: var(--paper-raised); color: var(--ink); }
.section { position: relative; padding-block: clamp(84px, 10vw, 152px); }
.section-compact { position: relative; padding-block: clamp(58px, 7vw, 96px); }
.rule-top { border-top: 1px solid var(--rule); }
.night .rule-top { border-color: var(--rule-dark); }

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 100;
  padding: 11px 16px;
  border-radius: 4px;
  background: var(--paper-raised);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease);
}
.skip-link:focus { transform: none; }

.system-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: inherit;
  font: 650 11px/1.2 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.system-label::before { content: ""; width: 30px; height: 1px; background: currentColor; opacity: .55; }
.lede { max-width: 66ch; font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.55; }
.fine { font-size: .78rem; line-height: 1.55; }
.mono { font-family: var(--mono); }
.accent-text {
  background: linear-gradient(115deg, #e05884, #f48b58);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.action-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lede + .action-row, p + .action-row { margin-top: 28px; }
.action {
  position: relative;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 720;
  line-height: 1;
  white-space: nowrap;
  transition: color 200ms, background-color 200ms, border-color 200ms, opacity 200ms, transform 200ms var(--ease);
}
.action::after { content: "→"; width: 1em; display: inline-grid; place-items: center; font: 500 .9rem/1 var(--mono); transition: transform 200ms var(--ease); }
.action:hover::after { transform: translateX(3px); }
.action:active { transform: scale(.985); }
.action-primary { background: var(--action); color: #fff; }
.action-primary:hover { filter: saturate(1.08) brightness(1.04); }
.action-paper { border-color: var(--rule); background: var(--paper-raised); color: var(--ink); }
.action-paper:hover { background: #fff; }
.action-night { border-color: var(--rule-dark); background: rgba(255, 255, 255, .04); color: var(--text-on-night); }
.action-night:hover { background: rgba(255, 255, 255, .1); }
.action-text { padding-inline: 0; border-radius: 0; color: inherit; }
.action[disabled], .action[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(197, 47, 100, .5);
  outline-offset: 3px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-nav);
  color: var(--text-on-night);
  transition: background-color 220ms, border-color 220ms, color 220ms;
}
.site-header::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--rule-dark); }
.site-header.is-scrolled { background: rgba(9, 9, 11, .9); backdrop-filter: blur(18px) saturate(125%); }
.nav-shell {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}
.brand {
  width: max-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 1.02rem/1 var(--display);
  letter-spacing: -.03em;
}
.brand img { width: 29px; height: 29px; border-radius: 7px; }
.nav-list { display: flex; align-items: center; gap: 4px; padding: 0; margin: 0; list-style: none; }
.nav-list a, .nav-list summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--text-on-night-soft);
  font-size: .78rem;
  font-weight: 650;
  list-style: none;
  transition: color 180ms, background-color 180ms;
}
.nav-list summary::-webkit-details-marker { display: none; }
.nav-list a:hover, .nav-list summary:hover, .nav-list a[aria-current="page"] { color: var(--text-on-night); }
.nav-list a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--pink); text-underline-offset: 7px; }
.nav-more { position: relative; }
.nav-more summary::after { content: "+"; margin-left: 6px; font-family: var(--mono); }
.nav-more[open] summary::after { content: "−"; }
.nav-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  display: grid;
  padding: 8px;
  border: 1px solid var(--rule-dark);
  background: rgba(19, 19, 24, .98);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .28);
}
.nav-popover a { width: 100%; padding-inline: 12px; }
.nav-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.nav-actions .action { min-height: 42px; padding-inline: 17px; }
.menu-button {
  width: 46px;
  height: 46px;
  display: none;
  place-items: center;
  border: 1px solid var(--rule-dark);
  border-radius: 50%;
  background: transparent;
  color: inherit;
}
.menu-glyph { position: relative; width: 18px; height: 12px; }
.menu-glyph::before, .menu-glyph::after { content: ""; position: absolute; left: 0; width: 18px; height: 1px; background: currentColor; transition: transform 180ms var(--ease), top 180ms var(--ease); }
.menu-glyph::before { top: 2px; }
.menu-glyph::after { top: 9px; }
.menu-button[aria-expanded="true"] .menu-glyph::before { top: 6px; transform: rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-glyph::after { top: 6px; transform: rotate(-45deg); }

.scroll-meter { position: fixed; top: 75px; left: 0; z-index: calc(var(--z-nav) + 1); width: 100%; height: 2px; transform: scaleX(0); transform-origin: left; background: var(--action); pointer-events: none; }

.media-stage {
  --stage-line: rgba(255, 255, 255, .15);
  position: relative;
  isolation: isolate;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--stage-line);
  background:
    linear-gradient(var(--stage-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--stage-line) 1px, transparent 1px),
    #101015;
  background-size: 52px 52px;
  color: var(--text-on-night);
}
.media-stage[data-tone="paper"] {
  --stage-line: rgba(16, 16, 20, .1);
  background:
    linear-gradient(var(--stage-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--stage-line) 1px, transparent 1px),
    var(--paper-raised);
  color: var(--ink);
}
.stage-orbit {
  position: absolute;
  left: var(--orbit-x, 54%);
  top: var(--orbit-y, 46%);
  width: min(52%, 410px);
  aspect-ratio: 1.18;
  border: 2px solid rgba(224, 88, 132, .72);
  border-right-color: rgba(244, 139, 88, .9);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-9deg);
  box-shadow: 0 0 70px rgba(197, 47, 100, .14);
  pointer-events: none;
  transition: left 280ms var(--ease), top 280ms var(--ease);
}
.stage-orbit::before { content: ""; position: absolute; width: 8px; height: 8px; right: 12%; top: 3%; border-radius: 50%; background: #f58b58; box-shadow: 0 0 22px #f58b58; }
.crop-corner { position: absolute; width: 34px; height: 34px; border-color: currentColor; opacity: .62; }
.crop-corner.tl { top: 28px; left: 28px; border-top: 1px solid; border-left: 1px solid; }
.crop-corner.br { right: 28px; bottom: 28px; border-right: 1px solid; border-bottom: 1px solid; }
.stage-coordinate { position: absolute; top: 26px; right: 28px; font: 500 10px/1.3 var(--mono); letter-spacing: .08em; opacity: .56; }
.stage-copy { position: absolute; left: 28px; right: 28px; bottom: 25px; z-index: 2; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.stage-copy strong { display: block; margin-bottom: 3px; font: 650 clamp(1.05rem, 2vw, 1.45rem)/1.1 var(--display); letter-spacing: -.025em; }
.stage-copy span { display: block; max-width: 42ch; color: inherit; opacity: .62; font-size: .75rem; }
.stage-index { font: 600 11px/1 var(--mono); letter-spacing: .08em; opacity: .62; }

.data-list { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--rule); }
.data-list > li { display: grid; grid-template-columns: minmax(150px, .65fr) 1.35fr; gap: 28px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.data-list strong { font-family: var(--display); letter-spacing: -.025em; }
.data-list span, .data-list p { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.night .data-list { border-color: var(--rule-dark); }
.night .data-list > li { border-color: var(--rule-dark); }
.night .data-list span, .night .data-list p { color: var(--text-on-night-soft); }

.faq-stack { border-top: 1px solid var(--rule); }
.faq-stack details { border-bottom: 1px solid var(--rule); }
.faq-stack summary { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; list-style: none; font: 650 1rem/1.3 var(--display); letter-spacing: -.02em; }
.faq-stack summary::-webkit-details-marker { display: none; }
.faq-stack summary::after { content: "+"; width: 30px; height: 30px; flex: none; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: 50%; font: 400 1rem/1 var(--mono); }
.faq-stack details[open] summary::after { content: "−"; }
.faq-stack .answer { max-width: 68ch; padding: 0 52px 22px 0; }
.faq-stack .answer p:last-child { margin-bottom: 0; }
.night .faq-stack, .night .faq-stack details { border-color: var(--rule-dark); }
.night .faq-stack summary::after { border-color: var(--rule-dark); }

.site-footer { position: relative; overflow: hidden; padding: 82px 0 28px; background: var(--night); color: var(--text-on-night); border-top: 1px solid var(--rule-dark); }
.site-footer::before { content: ""; position: absolute; width: 560px; aspect-ratio: 1.25; right: -180px; top: -260px; border: 1px solid rgba(224, 88, 132, .2); border-radius: 50%; transform: rotate(-10deg); }
.footer-grid { position: relative; display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 42px; padding-bottom: 52px; }
.footer-intro p { max-width: 31ch; margin-top: 16px; color: var(--text-on-night-soft); font-size: .86rem; }
.footer-title { margin: 0 0 12px; font: 600 10px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.footer-links { display: grid; padding: 0; margin: 0; list-style: none; }
.footer-links a { min-height: 42px; display: inline-flex; align-items: center; color: var(--text-on-night-soft); font-size: .79rem; transition: color 180ms; }
.footer-links a:hover { color: var(--text-on-night); }
.footer-bottom { position: relative; display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid var(--rule-dark); color: #77737b; font-size: .7rem; }

.status { min-height: 22px; margin: 12px 0 0; color: var(--ink-soft); font-size: .8rem; }
.status[data-state="error"] { color: var(--danger); }
.status[data-state="success"] { color: var(--success); }
.night .status { color: var(--text-on-night-soft); }
.night .status[data-state="error"] { color: #ff938b; }
.night .status[data-state="success"] { color: #6dd7a5; }

.reveal-ready { opacity: 0; transform: translateY(18px); transition: opacity 380ms var(--ease), transform 380ms var(--ease); }
.reveal-ready.is-visible { opacity: 1; transform: none; }

@media (max-width: 1060px) {
  .nav-shell { grid-template-columns: 1fr auto; }
  .nav-list {
    position: fixed;
    inset: 76px 14px auto;
    max-height: calc(100dvh - 92px);
    overflow-y: auto;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--rule-dark);
    background: rgba(9, 9, 11, .98);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
  }
  .nav-list.is-open { display: flex; }
  .nav-list a, .nav-list summary { width: 100%; min-height: 48px; padding-inline: 12px; }
  .nav-more { width: 100%; }
  .nav-popover { position: static; min-width: 0; padding: 0 0 4px 14px; border: 0; box-shadow: none; background: transparent; }
  .menu-button { display: grid; }
  .nav-actions { grid-column: 2; grid-row: 1; }
  .footer-grid { grid-template-columns: 2fr repeat(2, 1fr); }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  h1 { font-size: clamp(2.8rem, 12.5vw, 4rem); }
  h2 { font-size: clamp(2.15rem, 9vw, 3.05rem); }
  .site-header .action { min-height: 40px; padding-inline: 13px; font-size: .72rem; }
  .nav-shell { min-height: 68px; gap: 8px; }
  .nav-list { top: 68px; }
  .scroll-meter { top: 67px; }
  .brand span { display: none; }
  .section { padding-block: 78px; }
  .section-compact { padding-block: 56px; }
  .action-row { display: grid; }
  .action-row .action { width: 100%; }
  .media-stage { min-height: 340px; background-size: 38px 38px; }
  .stage-copy { align-items: start; flex-direction: column; }
  .data-list > li { grid-template-columns: 1fr; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
  .footer-intro { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

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

@media print {
  .site-header, .site-footer, .scroll-meter, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section, .section-compact { padding-block: 24px; }
  a { text-decoration: underline; }
}
