/* Shared by every page built as a card deck: tokens, nav, hero, the deck, cards, footer. */
:root {
  --bg: #000000; --ink: #ffffff; --dim: #bdbdbd; --rule: #3a3a3a;
  --accent: #e4ff3a;
  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Fira Code', ui-monospace, monospace;
  --peek: 18px; --pad: 60px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); transition: background-color .8s cubic-bezier(.25,.46,.45,.94); }
a { color: inherit; }
a:hover { opacity: .85; }
.wrap { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 24px 16px 120px; }

/* ---------- nav + hero ---------- */
nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.brand { text-decoration: none; font-family: var(--font-display); font-size: 26px; letter-spacing: .04em; }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px; font-weight: 600; font-size: 15px; }
.nav-links a { text-decoration: none; min-height: 44px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 999px; }
.nav-links a[aria-current="page"] { box-shadow: inset 0 0 0 2px #4a4a4a; }
.nav-links a.hi { padding: 0 18px; background: var(--accent); color: #111111; }
header.hero { padding: 88px 0 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero h1 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(56px, 9vw, 112px); line-height: .9; letter-spacing: .01em; }
.hero .sub { margin: 0; font-size: 22px; color: #d9d9d9; }
.hero .blurb { margin: 0; max-width: 36em; font-size: 16px; line-height: 1.55; color: var(--dim); }

/* ---------- the deck ---------- */
.deck-section { position: relative; }
.stage { position: sticky; top: 64px; display: flex; flex-direction: column; gap: 16px; }
.tabs { display: flex; gap: 6px; justify-content: safe center; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: 0 0 auto; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 2px solid #4a4a4a; background: transparent; color: var(--ink);
  font: 700 14px var(--font-body); cursor: pointer;
}
.tabs button[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: #111111; }
.deck { list-style: none; margin: 0; padding: 0; position: relative; height: min(660px, calc(100vh - 150px)); }
.deck > li {
  position: absolute; left: 0; right: 0; top: var(--pad); bottom: var(--pad);
  will-change: transform; transform-origin: 50% 0%; backface-visibility: hidden;
}
.deck > li > .shade { position: absolute; inset: 0; border-radius: 24px; background: #000000; opacity: 0; pointer-events: none; will-change: opacity; }
.card {
  height: 100%; border-radius: 24px; overflow: hidden; display: flex;
  background: var(--c-bg); color: var(--c-ink);
  box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 18px 40px rgba(0,0,0,.45);
}
.card-visual { flex: 1 1 50%; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; }
.card-text { flex: 1 1 50%; min-width: 0; padding: 40px 48px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; }
.badge { padding: 6px 12px; border-radius: 999px; border: 1.5px solid currentColor; font: 600 12px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.card-text h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 52px; line-height: .95; letter-spacing: .01em; }
.card-text p { margin: 0; font-size: 16px; line-height: 1.5; max-width: 30em; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { text-decoration: none; min-height: 48px; padding: 0 20px; display: inline-flex; align-items: center; border-radius: 999px; border: 2px solid var(--c-ink); background: transparent; color: var(--c-ink); font: 700 15px var(--font-body); cursor: pointer; }
.btn.solid { background: var(--c-ink); color: var(--c-bg); }
.legal { font: 12px var(--font-mono); letter-spacing: .04em; display: flex; flex-wrap: wrap; gap: 4px 14px; opacity: .9; }

footer.foot { margin-top: 80px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 14px; color: #cfcfcf; }
footer.foot .links { display: flex; flex-wrap: wrap; gap: 16px; }

@media (max-width: 760px) {
  :root { --peek: 10px; --pad: 34px; }
  .stage { top: 8px; }
  header.hero { padding: 56px 0 28px; }
  .deck { height: calc(100vh - 80px); }
  .card { flex-direction: column; }
  .card-visual { flex: 0 0 auto; padding: 18px 18px 0; }
  .card-text { flex: 1 1 auto; padding: 18px 20px 20px; gap: 10px; justify-content: flex-start; overflow-y: auto; }
  .card-text h2 { font-size: 38px; }
  .card-text p { font-size: 15px; }
  .btn { min-height: 44px; padding: 0 16px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  body { transition: none; }
}

/* four nav links must fit one row at 375px */
@media (max-width: 480px) {
  .nav-links { gap: 2px; }
  .nav-links a { padding: 0 8px; }
  .nav-links a.hi { padding: 0 14px; }
  /* app switcher: all four fit on a phone; wrap (never clip) on narrower screens */
  .tabs { flex-wrap: wrap; overflow-x: visible; gap: 6px 4px; }
  .tabs button { padding: 0 11px; font-size: 13px; }
}
