@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("/fonts/onest-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Fragment Mono";
  src: url("/fonts/fragment-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --page: #0b0c0e;
  --surface: #121418;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --rule: #23262f;
  --control: #6b7280;
  --accent: #F59E0B;
  --on-accent: #0b0c0e;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --radius: 6px;
  --gutter: clamp(16px, 5vw, 48px);
  --display: "Outfit", system-ui, sans-serif;
  --body: "Onest", system-ui, sans-serif;
  --mono: "Fragment Mono", ui-monospace, monospace;
}
:root[data-theme="light"] {
  color-scheme: light;
  --page: #f7f6f2;
  --surface: #efece6;
  --text: #18181b;
  --muted: #52525b;
  --rule: #dcd8ce;
  --control: #71717a;
  --accent: #92400E;
  --on-accent: #ffffff;
}
@media (max-width: 339px) {
  :root { --gutter: 10px; }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, .brand {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}
a { color: var(--accent); text-underline-offset: 0.2em; }
a[href^="mailto:"] { overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
main:focus { outline: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus-visible { left: 12px; }

.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
.label, .number, .theme-switch, label {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
}
.label, .number, .small { color: var(--muted); }
.small { font-size: 0.875rem; }

.booth-grid {
  position: absolute;
  inset: 0 0 auto;
  height: min(600px, 100vh);
  z-index: -1;
  background-image:
    linear-gradient(to right, var(--rule) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, transparent 95%);
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.3125rem;
  text-decoration: none;
  padding-block: 6px;
  white-space: nowrap;
}
.brand-mark { flex: none; display: block; }
.mark-accent { fill: var(--accent); }
.mark-plate { fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.mark-front { fill: none; stroke: var(--accent); stroke-width: 2.8; }
.mark-mountain { fill: currentColor; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--text);
  font-size: 0.9375rem;
  text-decoration: none;
}
.nav-link:hover { color: var(--accent); }
.nav-link[aria-current="page"] { color: var(--accent); text-decoration: underline; }
.contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
}
.theme-switch {
  min-height: 44px;
  padding: 0 12px;
  background: none;
  color: var(--text);
  border: 1px solid var(--control);
  border-radius: var(--radius);
  cursor: pointer;
}

.opening {
  display: grid;
  gap: 36px;
  padding-block: clamp(32px, 6vw, 84px) clamp(48px, 8vw, 104px);
}
.opening-text { display: grid; gap: 18px; align-content: start; }
h1 { font-size: clamp(2.125rem, 1.35rem + 4.2vw, 4rem); line-height: 1.04; max-width: 17ch; }
h1[data-lines] { min-height: 3.16em; }
@media (max-width: 560px) {
  h1[data-lines] { min-height: 4.3em; }
}
h1.swapping { opacity: 0; transform: translateY(-8px); }
.lede { font-size: 1.125rem; max-width: 44ch; }
.quiet { color: var(--muted); max-width: 44ch; font-size: 0.9375rem; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.primary, .secondary {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
}
.primary { background: var(--accent); color: var(--on-accent); }
.primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--text)); }
.secondary { color: var(--text); border-color: var(--control); }
.secondary:hover { border-color: var(--text); }

.capture {
  position: relative;
  display: grid;
  background: var(--surface);
  border: 1px solid var(--control);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
  cursor: pointer;
}
.capture:hover { border-color: var(--accent); }
.capture:has(.capture-open:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.capture video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #0b0c0e;
}
.capture-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font: 400 0.8125rem/1.4 var(--mono);
}
.capture-open {
  min-height: 32px;
  padding: 4px 10px;
  background: none;
  color: var(--text);
  border: 1px solid var(--control);
  border-radius: var(--radius);
  font: 400 0.8125rem/1.2 var(--mono);
  cursor: pointer;
  flex: none;
}
.capture-open::after {
  content: "";
  position: absolute;
  inset: 0;
}
.capture:hover .capture-open {
  border-color: var(--accent);
  color: var(--accent);
}
.capture-open:focus-visible { outline: none; }

.video-modal {
  width: min(1160px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100vh - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}
.video-modal::backdrop {
  background: rgba(6, 7, 9, 0.84);
}
.video-modal-frame {
  display: grid;
  background: var(--surface);
  border: 1px solid var(--control);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}
.video-modal-frame video {
  display: block;
  width: 100%;
  max-height: min(76vh, 720px);
  height: auto;
  aspect-ratio: 16 / 9;
  background: #0b0c0e;
  object-fit: contain;
}
.video-modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-top: 1px solid var(--rule);
  color: var(--text);
  font: 400 0.875rem/1.4 var(--mono);
}
.video-modal-close {
  min-height: 40px;
  padding: 0 16px;
}

.moves { display: grid; }
.move {
  display: grid;
  gap: 28px;
  padding-block: clamp(40px, 7vw, 88px);
  border-top: 1px solid var(--rule);
}
.move-text { display: grid; gap: 14px; align-content: start; min-width: 0; }
.move h2 { font-size: clamp(1.75rem, 1.25rem + 2.4vw, 2.75rem); max-width: 18ch; }
.move .why { font-size: 1.125rem; color: var(--accent); max-width: 40ch; }
.move-text p:not(.why):not(.number) { max-width: 48ch; }

.demo {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--control);
  border-radius: var(--radius);
  min-width: 0;
}
.demo p { margin: 0; }
.demo-label, .where, .badge, .tap, .status { font: 400 0.8125rem/1.4 var(--mono); letter-spacing: 0; }
.demo-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
}
.demo .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.demo .row + .row { padding-top: 12px; border-top: 1px solid var(--rule); }
.demo .item { font-weight: 500; overflow-wrap: anywhere; }
.demo .count { font: 400 1.25rem/1.2 var(--mono); color: var(--text); }
.where { color: var(--muted); }
.badge { color: var(--accent); }
.tap { padding: 6px 10px; border: 1px solid var(--control); border-radius: var(--radius); color: var(--text); }
.status { min-height: 2.8em; padding-top: 8px; border-top: 1px solid var(--rule); color: var(--accent); }

.downloads {
  display: grid;
  gap: 28px;
  padding-block: clamp(40px, 7vw, 80px);
  border-top: 1px solid var(--rule);
}
.downloads-head { display: grid; gap: 12px; }
.downloads-head h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); }
.dl-grid { display: grid; gap: 14px; }
.dl-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--control);
  border-radius: var(--radius);
  text-decoration: none;
}
.dl-card:hover { border-color: var(--accent); }
.dl-card strong { font-family: var(--display); font-size: 1.25rem; font-weight: 400; color: var(--text); }

.chart { display: grid; gap: 48px; padding-top: 40px; }
.chart-group, .price-group { display: grid; gap: 12px; }
.chart-group h2, .price-group h2 { font-size: 1.5rem; }
.chart table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.chart :is(th, td) { padding: 12px 0; border-top: 1px solid var(--rule); text-align: left; vertical-align: top; font-weight: 400; }
.chart thead th { border-top: 0; color: var(--muted); font: 400 0.8125rem/1.4 var(--mono); }
.chart :is(thead th, td):not(:first-child) { width: 5.5rem; text-align: right; }
.chart th[scope="row"] { padding-right: 12px; }
.chart .name { display: block; font-weight: 500; }
.chart .what { display: block; color: var(--muted); font-size: 0.9375rem; }
.chart td { font-size: 0.9375rem; overflow-wrap: anywhere; }
.chart td.no { color: var(--muted); }

.who { display: grid; gap: 12px; padding-block: 48px; border-top: 1px solid var(--rule); }
.who h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem); }
.who p { max-width: 56ch; }

.contact-form { display: grid; gap: 16px; max-width: 520px; margin-top: 16px; }
.field { display: grid; gap: 6px; }
label { color: var(--muted); }
input, textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--control);
  border-radius: var(--radius);
  font: inherit;
}
textarea { resize: vertical; }
:is(input, textarea)[aria-invalid="true"] { border-color: var(--text); border-width: 2px; }
.cf-turnstile { min-height: 65px; }
button.primary { justify-content: center; font: 500 1rem var(--body); cursor: pointer; }
button.primary:disabled { cursor: progress; }
button.secondary { background: none; justify-content: center; font: 500 0.9375rem var(--body); cursor: pointer; }
button.secondary:disabled { opacity: 0.6; cursor: progress; }
.form-message { padding-top: 16px; border-top: 1px solid var(--rule); }

.site-footer { margin-top: 32px; padding-block: 48px 32px; border-top: 1px solid var(--rule); font-size: 0.9375rem; }
.foot-grid { display: grid; gap: 32px; }
.foot-brand { display: grid; gap: 8px; justify-items: start; }
.tagline { color: var(--accent); }
.blurb, .legal-small, .powered { color: var(--muted); }
.legal-small { margin-top: 12px; font-size: 0.8125rem; }
.site-footer h2 { margin-bottom: 12px; font: 400 0.8125rem/1.4 var(--mono); letter-spacing: 0; color: var(--muted); }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.site-footer li a { display: inline-block; padding-block: 6px; color: var(--text); text-decoration: none; }
.site-footer li a:hover { color: var(--accent); }
.powered { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 0.8125rem; }
.powered a { color: inherit; }

.legal { padding-block: clamp(32px, 6vw, 72px); }
.legal-head { display: grid; gap: 16px; padding-bottom: 32px; border-bottom: 1px solid var(--rule); }
.legal-head h1 { font-size: clamp(2.25rem, 1.4rem + 4vw, 4rem); max-width: none; }
.legal-head .lede { max-width: 58ch; }
.legal-head .label { padding-bottom: 0; }
.legal-grid { display: grid; gap: 32px; padding-top: 32px; }
.legal-nav ol { margin: 0; padding: 0; list-style: none; display: grid; }
.legal-nav a { display: block; padding: 8px 0 8px 14px; border-left: 2px solid var(--rule); color: var(--muted); font-size: 0.9375rem; text-decoration: none; }
.legal-nav a:hover { color: var(--text); }
.legal-nav a[aria-current] { color: var(--accent); border-left-color: var(--accent); }
.legal-body { display: grid; gap: 40px; min-width: 0; }
.legal-section { display: grid; gap: 12px; scroll-margin-top: 24px; }
.legal-section h2 { font-size: 1.5rem; }
.legal-section :is(p, ul) { max-width: 68ch; }
.legal-section ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.legal-section strong { font-weight: 500; }

@media (min-width: 700px) {
  .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: minmax(0, 2fr) 1fr 1fr; }
}
@media (min-width: 900px) {
  .opening { grid-template-columns: minmax(0, 1fr) minmax(380px, 560px); gap: 48px; align-items: center; }
  .move { grid-template-columns: minmax(0, 1fr) minmax(360px, 520px); gap: 56px; align-items: center; }
  .move:nth-child(even) .move-text { order: 2; }
  .legal-grid { grid-template-columns: 260px minmax(0, 1fr); gap: 64px; padding-top: 48px; }
  .legal-nav { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow-y: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  .secondary, .dl-card, .capture, .capture-open, input, textarea {
    transition: border-color 0.2s var(--ease);
  }
  .reveal { transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
  h1[data-lines] { transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }
  .reveal.below { opacity: 0; transform: translateY(14px); }
}
@media (forced-colors: active) {
  .booth-grid { display: none; }
}
@media print {
  .reveal.below { opacity: 1; transform: none; }
}
