:root {
  --bg-0: #0d0b0a;
  --bg-1: #151210;
  --bg-2: #1d1916;
  --bg-3: #26211d;
  --text-1: #f3ede6;
  --text-2: #a39a90;
  --text-3: #6f675f;
  --line: rgba(243, 237, 230, 0.08);
  --line-strong: rgba(243, 237, 230, 0.16);
  --accent: #f97316;
  --accent-h: #ea6808;
  --accent-deep: #c2410c;
  --accent-text: #ffb27a;
  --glow: rgba(249, 115, 22, 0.18);
  --success: #4ade80;
  --warn: #fbbf24;
  --error: #f87171;

  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-display: var(--font-mono);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 160ms;
  --t-mid: 320ms;
  --t-slow: 600ms;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 10px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg-0); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-1);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Film grain: keeps the large dark areas from looking flat and digital */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: rgba(249, 115, 22, 0.35); color: #fff; }
img, svg { display: block; max-width: 100%; }

a { color: var(--accent-text); text-decoration: none; transition: color var(--t-fast) ease; }
a:hover { color: var(--text-1); }
a.link {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 1px;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
  margin: 0;
}
h1 em, h2 em, h3 em { font-style: normal; color: var(--accent-text); }
p { margin: 0 0 1em; text-wrap: pretty; }
code, .mono { font-family: var(--font-mono); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Terminal vocabulary ---------- */
.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--text-3);
}
.prompt {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-1);
  overflow-wrap: anywhere;
}
.prompt .path { color: var(--text-3); }
.prompt .sign { color: var(--accent); margin: 0 0.5ch; }
.prompt .arg { color: var(--accent-text); }
.output { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-2); }
.output::before { content: "> "; color: var(--accent); }
.comment { font-family: var(--font-mono); color: var(--text-3); }
.comment::before { content: "# "; }

.cursor {
  display: inline-block;
  width: 0.55em;
  height: 0.95em;
  margin-left: 0.08em;
  vertical-align: -0.08em;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.6);
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tag-ok { color: var(--success); border-color: rgba(74, 222, 128, 0.3); background: rgba(74, 222, 128, 0.06); }
.tag-todo { color: var(--warn); border-color: rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.06); }
.tag-accent { color: var(--accent-text); border-color: rgba(249, 115, 22, 0.35); background: rgba(249, 115, 22, 0.06); }

.term {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(21, 18, 16, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 237, 230, 0.025);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
}
.term-dots { display: flex; gap: 6px; flex: none; }
.term-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(243, 237, 230, 0.14); }
.term-dots i:first-child { background: rgba(249, 115, 22, 0.75); }
.term-body { padding: 16px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background var(--t-mid) ease, border-color var(--t-mid) ease, backdrop-filter var(--t-mid) ease;
}
.site-header.scrolled, .site-header.menu-open {
  background: rgba(13, 11, 10, 0.8);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-1);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.brand:hover { color: var(--text-1); }
.brand-mark { width: 20px; height: 20px; color: var(--accent); filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.55)); }
.brand .brand-tilde { color: var(--text-3); font-weight: 400; }
.brand:hover .brand-mark { animation: flicker 1.2s steps(1) 1; }
@keyframes flicker {
  0%, 100% { opacity: 1; } 20% { opacity: 0.7; } 35% { opacity: 1; } 55% { opacity: 0.82; } 70% { opacity: 1; }
}
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 26px); font-family: var(--font-mono); font-size: 0.82rem; }
.nav-links a { position: relative; color: var(--text-2); padding: 4px 0; white-space: nowrap; }
.nav-links a::before {
  content: ">";
  position: absolute;
  left: -1.4ch;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--t-fast) ease, transform var(--t-mid) var(--ease-out);
}
.nav-links a:hover { color: var(--text-1); }
.nav-links a:hover::before, .nav-links a[aria-current="page"]::before { opacity: 1; transform: none; }
.nav-links a[aria-current="page"] { color: var(--accent-text); }
.nav-links a.nav-cta {
  color: var(--text-1);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 7px 14px;
  transition: border-color var(--t-fast) ease, background var(--t-fast) ease;
}
.nav-links a.nav-cta::before { display: none; }
.nav-links a.nav-cta:hover, .nav-links a.nav-cta[aria-current="page"] { border-color: var(--accent); background: rgba(249, 115, 22, 0.08); color: var(--text-1); }
.nav-toggle { display: none; }

/* collapses to the menu button below 860px: German and Spanish labels need more room than the English ones did */
@media (max-width: 860px) {
  .nav-links { gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
  .site-nav { height: auto; min-height: 60px; padding-top: 10px; padding-bottom: 10px; }
  .js .site-nav { height: 60px; padding: 0 var(--gutter); }
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    margin-right: -10px;
    background: none; border: 0; cursor: pointer; color: var(--text-1);
  }
  .nav-toggle-bars, .nav-toggle-bars::before {
    display: block; width: 20px; height: 1.5px; background: currentColor;
    transition: transform var(--t-mid) var(--ease-out);
  }
  .nav-toggle-bars { position: relative; transform: translateY(-3px); }
  .nav-toggle-bars::before { content: ""; position: absolute; top: 6px; left: 0; }
  .menu-open .nav-toggle-bars { transform: translateY(0) rotate(45deg); }
  .menu-open .nav-toggle-bars::before { transform: translateY(-6px) rotate(-90deg); }
  .js .nav-links {
    position: absolute;
    top: 60px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--bg-0);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -12px rgba(0, 0, 0, 0.7);
    font-size: 0.98rem;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--t-mid) var(--ease-out), transform var(--t-mid) var(--ease-out), visibility 0s linear var(--t-mid);
  }
  .js .menu-open .nav-links { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .js .nav-links a { width: 100%; padding: 14px 0 14px 2ch; border-bottom: 1px solid var(--line); }
  .js .nav-links a::before { left: 0; top: 14px; }
  .js .nav-links a.nav-cta { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 0 14px 2ch; background: none; color: var(--accent-text); }
}

/* ---------- Language switcher (plain links; the menu opens on hover/focus, no JS needed) ---------- */
.lang-switch { position: relative; flex: none; }
.lang-current {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong); border-radius: 8px;
  color: var(--text-2); cursor: pointer; white-space: nowrap;
  transition: border-color var(--t-fast) ease, color var(--t-fast) ease;
}
.lang-current svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; }
.lang-current::after { content: "▾"; font-size: 0.7em; color: var(--text-3); }
.lang-switch:hover .lang-current, .lang-switch:focus-within .lang-current { border-color: var(--accent); color: var(--text-1); }
.lang-menu {
  position: absolute; right: 0; top: 100%;
  margin: 0; padding: 8px 6px 6px; list-style: none;
  min-width: 100%; width: max-content;
  background: var(--bg-1); border: 1px solid var(--line-strong); border-radius: 10px;
  box-shadow: 0 18px 36px -12px rgba(0, 0, 0, 0.7);
  visibility: hidden; opacity: 0; transform: translateY(-4px);
  transition: opacity var(--t-fast) ease, transform var(--t-fast) ease, visibility 0s linear var(--t-fast);
  z-index: 60;
}
.lang-switch:hover .lang-menu, .lang-switch:focus-within .lang-menu { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.nav-links .lang-menu a { display: block; padding: 6px 12px; border-radius: 6px; color: var(--text-2); white-space: nowrap; }
.nav-links .lang-menu a::before { display: none; }
.nav-links .lang-menu a:hover { background: var(--bg-3); color: var(--text-1); }
.nav-links .lang-menu a[aria-current] { color: var(--accent-text); }

@media (max-width: 860px) {
  .lang-switch { width: 100%; padding-top: 14px; }
  .lang-current { display: none; }
  .lang-menu { position: static; visibility: visible; opacity: 1; transform: none; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; width: auto; padding: 0; background: none; border: 0; box-shadow: none; }
  .js .nav-links .lang-menu a { width: auto; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 0.85rem; }
  .js .nav-links .lang-menu a[aria-current] { border-color: var(--accent); }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: 500 0.88rem/1 var(--font-mono);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease-out), background var(--t-fast) ease, border-color var(--t-fast) ease, box-shadow var(--t-mid) ease, color var(--t-fast) ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent);
  color: #1a0d04;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
  background: #fb8a3c;
  color: #1a0d04;
  box-shadow: 0 8px 40px -6px rgba(249, 115, 22, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-ghost { border-color: var(--line-strong); color: var(--text-1); background: rgba(13, 11, 10, 0.4); }
.btn-ghost:hover { border-color: var(--text-2); color: var(--text-1); }
.btn .arrow { transition: transform var(--t-mid) var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.is-loading { color: transparent !important; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(26, 13, 4, 0.25);
  border-top-color: #1a0d04;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Inner pages ---------- */
.page { max-width: 760px; margin: 0 auto; padding: clamp(48px, 9vw, 96px) var(--gutter) 120px; }
.page-narrow { max-width: 600px; }
.page-head { margin-bottom: 48px; }
.page-head .prompt { display: block; margin-bottom: 22px; }
.page-head h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
.page-head h1::before { content: "# "; color: var(--text-3); font-weight: 400; }
.page-head .lede { color: var(--text-2); font-size: 1.08rem; max-width: 52ch; margin: 20px 0 0; }

/* ---------- Prose (legal text) ---------- */
.prose { color: var(--text-1); font-size: 1rem; }
.prose h2 {
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  margin: 60px 0 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.prose h2::before { content: "##"; color: var(--text-3); font-weight: 400; }
.prose h2:first-child { margin-top: 0; }
.prose h2 .num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent-text); letter-spacing: 0; order: 2; margin-left: auto; }
.prose p, .prose li { color: #d9d1c8; }
.prose strong { color: var(--text-1); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin: 6px 0; }
.prose ul li::marker { content: "- "; color: var(--accent); font-family: var(--font-mono); }
.table-wrap { overflow-x: auto; margin: 20px 0 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose tr:last-child td { border-bottom: 0; }
.prose th { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3); font-weight: 400; background: var(--bg-1); }
.prose td { color: #d9d1c8; transition: background var(--t-fast) ease; }
.prose td:last-child { white-space: nowrap; font-family: var(--font-mono); font-size: 0.82rem; }
.prose tr:hover td { background: rgba(243, 237, 230, 0.025); }
@media (max-width: 600px) {
  .prose th, .prose td { padding: 10px 10px; }
  .prose td:last-child { font-size: 0.72rem; }
}
@media (max-width: 359px) { .prose td:last-child { white-space: normal; } }

/* ---------- Panels, notices ---------- */
.panel {
  position: relative;
  background: rgba(21, 18, 16, 0.78);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 30px);
}
.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid rgba(249, 115, 22, 0.25);
  background: rgba(249, 115, 22, 0.05);
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 0.9rem;
  color: var(--text-2);
  margin: 0 0 26px;
}
.notice::before { content: "i"; flex: none; font-family: var(--font-mono); color: var(--accent); font-weight: 600; width: 1ch; }
.notice strong { color: var(--text-1); font-weight: 600; }
.notice p { margin: 0; }

/* ---------- Forms ---------- */
.field { margin-bottom: 22px; }
.field > label, .field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-2);
  margin-bottom: 8px;
}
.field > label::before { content: "--"; color: var(--text-3); margin-right: 0.3ch; }
.input-wrap { position: relative; display: block; }
.input-wrap::before {
  content: ">";
  position: absolute;
  left: 14px; top: 13px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-3);
  pointer-events: none;
  transition: color var(--t-fast) ease;
}
.input-wrap:focus-within::before { color: var(--accent); }
.input {
  width: 100%;
  padding: 13px 15px 13px 34px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(13, 11, 10, 0.85);
  color: var(--text-1);
  font: 0.95rem/1.5 var(--font-body);
  caret-color: var(--accent);
  transition: border-color var(--t-fast) ease, box-shadow var(--t-mid) var(--ease-out), background var(--t-fast) ease;
}
.input::placeholder { color: var(--text-3); font-family: var(--font-mono); font-size: 0.85rem; }
.input:hover { border-color: rgba(243, 237, 230, 0.26); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14); background: #110e0c; }
textarea.input { min-height: 140px; resize: vertical; }
.hint { font-size: 0.84rem; color: var(--text-2); margin: 10px 0 0; }
.hint strong { color: var(--text-1); font-weight: 500; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.88rem; color: var(--text-2); cursor: pointer; margin: 26px 0 0; }
.check input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 20px; height: 20px;
  margin: 1px 0 0;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--bg-0);
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: background var(--t-fast) ease, border-color var(--t-fast) ease;
}
.check input::after {
  content: "";
  width: 10px; height: 6px;
  border: 2px solid #1a0d04;
  border-top: 0; border-right: 0;
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform var(--t-mid) var(--ease-out);
}
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }

.dropzone {
  position: relative;
  border-radius: 8px;
  padding: 26px 20px;
  text-align: center;
  color: var(--text-2);
  cursor: pointer;
  background: rgba(13, 11, 10, 0.85);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transition: background var(--t-mid) ease, color var(--t-fast) ease;
  --dash: rgba(243, 237, 230, 0.22);
  background-image:
    repeating-linear-gradient(90deg, var(--dash) 0 8px, transparent 8px 16px),
    repeating-linear-gradient(90deg, var(--dash) 0 8px, transparent 8px 16px),
    repeating-linear-gradient(0deg, var(--dash) 0 8px, transparent 8px 16px),
    repeating-linear-gradient(0deg, var(--dash) 0 8px, transparent 8px 16px);
  background-size: 100% 1px, 100% 1px, 1px 100%, 1px 100%;
  background-position: 0 0, 0 100%, 0 0, 100% 0;
  background-repeat: no-repeat;
}
.dropzone:hover, .dropzone:focus-visible { --dash: rgba(249, 115, 22, 0.6); color: var(--text-1); }
.dropzone.is-dragover {
  --dash: var(--accent);
  color: var(--text-1);
  background-color: rgba(249, 115, 22, 0.06);
  animation: march 0.6s linear infinite;
}
@keyframes march {
  to { background-position: 16px 0, -16px 100%, 0 -16px, 100% 16px; }
}
.dropzone .dz-icon { width: 24px; height: 24px; margin: 0 auto 10px; color: var(--accent); }
.dropzone small { display: block; color: var(--text-3); margin-top: 4px; font-size: 0.74rem; }
#preview { display: none; max-width: 100%; max-height: 260px; border-radius: 8px; margin: 16px auto 0; animation: fadeUp var(--t-slow) var(--ease-out); }

.form-submit { width: 100%; margin-top: 30px; padding: 15px 24px; }
#status { margin-top: 18px; font-family: var(--font-mono); font-size: 0.85rem; min-height: 1.4em; }
#status:not(:empty) { animation: fadeUp var(--t-mid) var(--ease-out); }
#status.success { color: var(--success); }
#status.error { color: var(--error); }
#status.success::before { content: "✓ "; }
#status.error::before { content: "✗ "; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 52px 0 40px; color: var(--text-2); font-size: 0.85rem; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.footer-grid .brand { font-size: 1.35rem; }
.footer-tag { margin: 12px 0 0; color: var(--text-3); font-family: var(--font-mono); font-size: 0.78rem; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.8rem; }
.footer-links a { color: var(--text-2); }
.footer-links a:hover { color: var(--text-1); }
.footer-base { margin-top: 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-3); font-family: var(--font-mono); font-size: 0.74rem; }

/* Typewriter targets stay invisible only for the instant between first paint and site.js emptying them */
.motion [data-type]:not(.type-ready) { visibility: hidden; }

/* ---------- Scroll reveal: quick "printed output", only when JS + motion are available ---------- */
.motion .reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 360ms var(--ease-out), transform 480ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.motion .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .btn.is-loading::after { animation-duration: 1.4s !important; animation-iteration-count: infinite !important; }
}
