/* Aspera — site styles. Modernist tokens (design/_ds/…/styles.css), overridden to dark. */

:root {
  --bg: #0d0d0d;
  --surface: #1a1a1a;
  --text: #f5f5f5;
  --muted: #a0a0a0;
  --faint: #4a4a4a;
  --accent: #FF8C42;
  --accent-600: #f07a2e;
  --accent-700: #d9691f;
  --divider: color-mix(in srgb, #f5f5f5 18%, transparent);
  --font: "Archivo", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(20px, 5vw, 72px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font); font-weight: 800; margin: 0; }
p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--text); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }
.tnum { font-feature-settings: 'tnum' 1; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* — layout — */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 64px; align-items: center; }
.split-wide { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 56px 64px; align-items: start; }

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: flex-start; gap: 10px;
  font-family: var(--font); font-weight: 800; font-size: 14px; line-height: 1.2;
  padding: 8px 20px; border: 0; border-radius: 0; cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent-600); color: var(--bg); }
.btn-primary:active { background: var(--accent-700); }
.btn-primary:disabled { opacity: 0.6; cursor: progress; }
.btn-lg { min-height: 48px; font-size: 17px; }
.btn-ghost { background: transparent; color: var(--accent); padding-left: 0; min-height: 44px; }
.btn-ghost:hover { color: var(--text); }

/* — nav — */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--divider);
}
.nav-inner { height: 72px; display: flex; align-items: stretch; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; padding-right: 24px; color: var(--text); }
.logo:hover { color: var(--text); }
.logo-mark {
  display: grid; place-items: center; width: 32px; height: 32px;
  border: 2px solid var(--text); font-weight: 800; font-size: 16px; line-height: 1;
}
.logo-word { font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.tag {
  font-size: 12px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); border: 2px solid var(--divider); padding: 2px 8px;
}
.nav-links { display: flex; align-items: stretch; }
.nav-link {
  display: flex; align-items: center; padding: 0 16px; gap: 8px;
  font-size: 15px; line-height: 20px; color: var(--muted); transition: color 200ms;
}
.nav-link:hover, .nav-link.is-active { color: var(--text); }
.nav-link .num { font-size: 12px; font-weight: 800; color: var(--faint); font-feature-settings: 'tnum' 1; }
.nav-cta { display: flex; align-items: center; padding-left: 24px; }
.nav-cta .btn { min-height: 44px; }
.nav-back { display: flex; align-items: center; font-size: 15px; line-height: 20px; color: var(--muted); }
.scroll-progress { position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--text); }
@media (max-width: 720px) {
  .nav-link, .nav-inner .tag { display: none; }
  .logo { padding-right: 0; }
  .nav-cta { padding-left: 0; }
}

/* — type — */
.h1 { font-size: clamp(40px, 5vw, 56px); line-height: 1.06; letter-spacing: -0.02em; }
.h2 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.015em; }
.h3 { font-size: 22px; line-height: 28px; }
.kicker { font-size: 14px; line-height: 20px; font-weight: 800; color: var(--muted); font-feature-settings: 'tnum' 1; }
.lead { font-size: 18px; line-height: 28px; color: var(--muted); }
.body { font-size: 17px; line-height: 27px; max-width: 46ch; color: var(--muted); }
.small { font-size: 14px; line-height: 20px; color: var(--muted); }

/* — ruled rows — */
.rows { display: grid; font-size: 16px; line-height: 24px; }
.rows > * { padding: 14px 0; border-top: 2px solid var(--divider); }
.rows > *:last-child { border-bottom: 2px solid var(--divider); }
.row-dl { display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.row-dl > :first-child { color: var(--muted); }

/* — landing — */
.section { padding: 90px 0; border-top: 2px solid var(--divider); }
.hero {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 48px 64px; align-items: center; padding: 48px 0 72px; min-height: calc(100vh - 74px);
}
.hero .h1 { max-width: 15ch; }
.mask { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.mask > span { display: block; }
.h2.mask { padding-bottom: 0.12em; margin: 20px 0; }
.shot {
  justify-self: center; width: 100%; max-width: 300px; aspect-ratio: 1080 / 2410;
  border: 2px solid var(--divider);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.cta-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 40px; }
.chip { padding: 16px 20px; background: var(--surface); border: 2px solid var(--divider); font-size: 17px; line-height: 24px; }
.chips { display: grid; gap: 12px; margin-top: 32px; }

.chart-card { margin-top: 48px; padding: clamp(20px, 4vw, 40px); border: 2px solid var(--divider); background: var(--surface); }
.chart-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.chart-head strong { color: var(--text); }
.chart, .chart-axis { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.chart { align-items: end; height: 220px; margin-top: 32px; border-bottom: 2px solid var(--divider); }
.chart-col { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; height: 100%; min-width: 0; }
.chart-col span, .chart-axis { font-size: 12px; line-height: 16px; color: var(--muted); font-feature-settings: 'tnum' 1; }
.chart-axis { margin-top: 10px; }
.bar { background: var(--muted); transform-origin: 50% 100%; }
.bar.deload { background: var(--faint); }
.bar.last { background: var(--text); }
@media (max-width: 520px) { .chart-col span { font-size: 9px; } .chart, .chart-axis { gap: 4px; } }

.cells {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 2px; background: var(--divider); border: 2px solid var(--divider);
}
.cells > div { background: var(--bg); padding: clamp(24px, 4vw, 40px); }
.cells p { font-size: 16px; line-height: 25px; color: var(--muted); }
.cells .h3 { margin-bottom: 12px; }

.final { padding: 100px 0; }
.final .h2 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.06; letter-spacing: -0.02em; max-width: 18ch; }

/* — footer — */
.footer { border-top: 2px solid var(--divider); }
.footer-inner { padding: 32px var(--gutter); display: grid; gap: 20px; font-size: 14px; line-height: 20px; color: var(--muted); }
.footer-top { display: flex; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a[aria-current] { color: var(--text); }
.footer-legal { font-size: 12px; line-height: 18px; color: var(--muted); }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--text); }

/* — sub-pages — */
.page-head { padding: 72px 0 48px; border-bottom: 2px solid var(--divider); }
.page-head .h1 { margin-top: 16px; }
.page-head .lead { margin-top: 24px; max-width: 52ch; }
.meta { display: flex; gap: 8px 32px; flex-wrap: wrap; margin-top: 24px; }
.meta strong { color: var(--text); font-weight: 400; }

.legal { display: flex; flex-wrap: wrap; gap: 48px 64px; padding: 56px 0 96px; align-items: flex-start; }
.toc { position: sticky; top: 104px; flex: 1 1 220px; max-width: 280px; }
.toc-title { margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; font-size: 15px; line-height: 20px; }
.toc li { border-top: 2px solid var(--divider); }
.toc a { display: flex; gap: 12px; padding: 10px 0; color: var(--muted); }
.toc a:hover { color: var(--text); }
.toc .num { font-weight: 800; color: var(--faint); font-feature-settings: 'tnum' 1; }
@media (max-width: 760px) { .toc { position: static; max-width: none; } }

.article { flex: 999 1 480px; min-width: 0; max-width: 68ch; }
.article > .lead { margin-bottom: 32px; }
.article section { padding: 32px 0; border-top: 2px solid var(--divider); scroll-margin-top: 88px; }
.article h2 { display: flex; gap: 16px; font-size: 24px; line-height: 30px; margin: 0 0 16px; }
.article h2 .num { color: var(--faint); font-feature-settings: 'tnum' 1; }
.article h3 { font-size: 17px; line-height: 26px; margin: 24px 0 8px; color: var(--text); }
.article p, .article li, .article td { font-size: 16px; line-height: 26px; color: var(--muted); }
.article p + p { margin-top: 14px; }
.article strong { color: var(--text); font-weight: 600; }
.article ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; }
.article ul li { padding: 10px 0 10px 24px; border-top: 2px solid var(--divider); position: relative; }
.article ul li::before { content: "—"; position: absolute; left: 0; color: var(--faint); }
.summary { margin-bottom: 40px; }
.summary ul { margin: 0; }
.table-scroll { overflow-x: auto; margin-top: 16px; }
.article table { border-collapse: collapse; width: 100%; min-width: 520px; }
.article th, .article td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-top: 2px solid var(--divider); }
.article th { font-size: 13px; line-height: 20px; font-weight: 800; color: var(--text); }
.article td:first-child { color: var(--text); white-space: nowrap; }

.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.steps .num { font-weight: 800; color: var(--faint); font-feature-settings: 'tnum' 1; }
.steps strong { font-weight: 600; }
.sub-h2 { font-size: 24px; line-height: 30px; margin-bottom: 16px; }
.cells-sm { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.cells-sm > div { padding: 28px; }
.cells-sm .h3 { font-size: 18px; line-height: 24px; }
.cells-sm p { font-size: 15px; line-height: 24px; }

/* — forms — */
.card { border: 2px solid var(--divider); background: var(--surface); padding: clamp(24px, 4vw, 40px); }
.form { display: grid; gap: 24px; }
.field { display: grid; gap: 8px; font-size: 14px; line-height: 20px; color: var(--muted); }
input, textarea {
  font: inherit; font-size: 16px; color: var(--text); background: var(--surface);
  border: 2px solid var(--divider); border-radius: 0; padding: 12px 14px; width: 100%;
}
textarea { resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 15px; line-height: 22px; color: var(--text); cursor: pointer; }
.check input { width: 20px; height: 20px; padding: 0; margin: 1px 0 0; accent-color: var(--accent); }
.seg { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.seg legend { padding: 0; margin-bottom: 8px; font-size: 14px; line-height: 20px; color: var(--muted); }
.seg-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: var(--divider); border: 2px solid var(--divider); }
.seg-opt { position: relative; display: flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 15px; background: var(--surface); color: var(--text); cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.seg-opt:has(input:checked) { background: var(--accent); color: var(--bg); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; z-index: 1; }
.done { display: grid; gap: 16px; align-content: start; }
.done .kicker { color: var(--accent); }
.done .h2 { font-size: 28px; line-height: 34px; }
.done p:not(.kicker) { font-size: 16px; line-height: 25px; color: var(--muted); }
[hidden] { display: none !important; }

/* — easter egg — */
@keyframes eggIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes eggImg { from { clip-path: inset(100% 0 0 0); transform: translateY(24px); } to { clip-path: inset(0 0 0 0); transform: none; } }
.egg {
  position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center;
  padding: var(--gutter); cursor: pointer; animation: eggIn 900ms var(--ease) both;
}
.egg figure { margin: 0; display: grid; gap: 20px; max-width: 760px; width: 100%; }
.egg img { width: 100%; height: auto; border: 2px solid var(--divider); filter: grayscale(1); animation: eggImg 1600ms var(--ease) 150ms both; }
.egg figcaption { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; line-height: 20px; color: var(--muted); }
.egg figcaption strong { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .egg, .egg img { animation: none; }
}
