:root {
  --ground: #0A0C0E;
  --ground-2: #101317;
  --ink: #EDE7DC;
  --ink-2: #9EA5A8;
  --muted: #6C7378;
  --amber: #E8913C;
  --teal: #2E6B72;
  --teal-ink: #5FA3AB; /* teal lifted for legible small type on the dark ground */
  --hair: rgba(237, 231, 220, .13);
  --display: 'Syne', ui-sans-serif, system-ui, sans-serif;
  --sans: 'Sora', ui-sans-serif, system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 1px solid var(--amber); outline-offset: 4px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.label {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.amber { color: var(--amber); }
.teal { color: var(--teal-ink); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--ground); padding: 8px 14px; }
.skip:focus { left: 8px; }

/* ── Nav ─────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 58px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  background: rgba(10, 12, 14, .72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair);
}
.nav-mark { font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: -.02em; text-decoration: none; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-2); transition: color .2s;
}
.nav-links a:hover { color: var(--amber); }
.pill {
  font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; padding: 8px 16px; border: 1px solid var(--hair); border-radius: 999px;
  transition: border-color .2s, color .2s;
}
.pill:hover { border-color: var(--amber); color: var(--amber); }
@media (max-width: 640px) { .nav-links { display: none; } }

/* ── Portal hero ─────────────────────────────────── */
.portal { position: relative; height: 100vh; height: 100svh; }
.motion .portal { height: 250vh; }
.stage {
  position: relative; top: 0; height: 100vh; height: 100svh;
  overflow: hidden; isolation: isolate;
}
.motion .stage { position: sticky; }
.portal-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(var(--img-scale, 1)); transform-origin: 50% 60%;
  will-change: transform;
}
.portal-wash {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, var(--teal) 0%, var(--teal) 45%, var(--amber) 100%);
  mix-blend-mode: overlay;
  opacity: var(--wash, .28);
}
.portal-veil {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(10,12,14,.22) 30%, rgba(10,12,14,.55) 72%, rgba(10,12,14,.9) 100%);
}
.panel {
  position: absolute; top: 0; bottom: 0; width: 50.6%;
  background: var(--ground-2);
  will-change: transform;
}
.panel-l { left: 0; transform: translateX(var(--panel-l, -101%)); border-right: 1px solid var(--hair); }
.panel-r { right: 0; transform: translateX(var(--panel-r, 101%)); border-left: 1px solid var(--hair); }
.motion .panel-l { transform: translateX(var(--panel-l, 0%)); }
.motion .panel-r { transform: translateX(var(--panel-r, 0%)); }

.dot {
  position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px;
  border-radius: 50%; z-index: 3;
  transform: translate(var(--dx, 0px), var(--dy, 0px));
  opacity: var(--dot-o, 0);
}
.dot-a { background: var(--amber); box-shadow: 0 0 12px 2px rgba(232,145,60,.65); }
.dot-t { background: #4E9AA2; box-shadow: 0 0 12px 2px rgba(46,107,114,.8); }
.motion .dot { opacity: var(--dot-o, 1); }

.portal-title {
  position: absolute; inset: 0; z-index: 4; margin: 0;
  display: flex; align-items: center; justify-content: center; gap: .26em;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(26px, 5.2vw, 96px);
  line-height: 1;
  letter-spacing: var(--track, -.04em);
  white-space: nowrap;
  transform: scale(var(--title-scale, 1));
  pointer-events: none;
}
.half { display: inline-block; will-change: transform; transform: translateX(var(--shift, 0px)); }
.half-l { --shift: var(--shift-l, 0px); }
.half-r { --shift: var(--shift-r, 0px); }

.corner { position: absolute; z-index: 5; }
.c-tl { top: 82px; left: var(--gutter); }
.c-tr { top: 82px; right: var(--gutter); }
.c-bl { bottom: 28px; left: var(--gutter); }
.c-br { bottom: 28px; right: var(--gutter); }

/* ── Statement fold ──────────────────────────────── */
.statement {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden;
  border-top: 1px solid var(--hair);
  padding: 120px 0;
}
.statement-inner { position: relative; z-index: 2; }
.statement-text {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(24px, 3.6vw, 52px); line-height: 1.12; letter-spacing: -.02em;
  max-width: 22ch; margin: 18px 0 28px;
}
.statement-sub { max-width: 46ch; color: var(--ink-2); font-size: 15px; margin: 0; }
.statement-sub em { font-style: normal; color: var(--ink); }
.index-num {
  position: absolute; right: var(--gutter); bottom: -60px;
  font-family: var(--display); font-weight: 800; font-size: clamp(120px, 18vw, 260px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(237,231,220,.22);
  letter-spacing: -.04em; pointer-events: none;
}
.orb {
  position: absolute; z-index: 1; right: -8vw; top: 14%;
  width: clamp(220px, 34vw, 520px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  opacity: .32;
  transform: translateY(var(--orb-y, 0px)) rotate(var(--orb-r, 0deg));
  will-change: transform;
}
.orb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .orb { opacity: .18; top: 6%; } }

/* ── Products ────────────────────────────────────── */
.products { border-top: 1px solid var(--hair); padding: clamp(96px, 14vw, 160px) 0; }
.products-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.h2 {
  font-family: var(--display); font-weight: 800; letter-spacing: -.03em;
  font-size: clamp(32px, 4.6vw, 64px); line-height: 1.02; margin: 16px 0 20px;
}
.lede { color: var(--ink-2); max-width: 42ch; margin: 0 0 32px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  padding: 14px 22px; border-radius: 999px; transition: background .2s, color .2s, border-color .2s;
}
.btn-solid { background: var(--ink); color: var(--ground); border: 1px solid var(--ink); }
.btn-solid:hover { background: transparent; color: var(--ink); }
.btn-line { border: 1px solid var(--hair); }
.btn-line:hover { border-color: var(--amber); color: var(--amber); }

.deck-col { display: flex; flex-direction: column; align-items: center; }
.deck {
  position: relative; width: 100%; max-width: 480px; aspect-ratio: 1;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
  border-radius: 6px;
  container-type: inline-size;
}
.deck:focus-visible { outline-offset: 10px; }
.card {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: clamp(22px, 3vw, 34px);
  background: var(--ground-2);
  border: 1px solid var(--hair);
  border-radius: 6px;
  box-shadow: 0 24px 50px -18px rgba(0,0,0,.75), 0 2px 6px rgba(0,0,0,.4);
  transform-origin: 50% 100%;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .35s;
  overflow: hidden;
  cursor: grab;
}
.card.dragging { transition: none; cursor: grabbing; }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } }
.card-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--hair); }
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.dot-s { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot-a-s { background: var(--amber); }
.dot-t-s { background: var(--teal-ink); }
.dot-m-s { background: var(--muted); }
.card-name { font-family: var(--display); font-weight: 800; font-size: min(44px, 9cqi); letter-spacing: -.03em; line-height: 1; margin: auto 0 10px; }
.card-line { font-size: 15px; font-weight: 500; margin: 0 0 10px; }
.card-body { font-size: 13.5px; color: var(--ink-2); margin: 0 0 18px; max-width: 40ch; }
.card-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 18px; padding-top: 14px; border-top: 1px solid var(--hair); }
.card-meta dd { margin: 4px 0 0; font-size: 13px; }
.card-link { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--amber); align-self: flex-start; }
.card-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.card-link.muted { color: var(--muted); }
.card-next .card-name { color: var(--ink-2); }

.deck-hint { margin: 36px 0 12px; }
.deck-dots { display: flex; gap: 8px; }
.deck-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--hair); transition: background .25s; }
.deck-dots span.on { background: var(--amber); }

@media (max-width: 900px) {
  .products-grid { grid-template-columns: 1fr; }
  .deck { max-width: 420px; }
}
@media (max-width: 420px) {
  .deck { aspect-ratio: 4 / 5; }
}

/* ── Roster & board ──────────────────────────────── */
.roster { border-top: 1px solid var(--hair); padding: clamp(80px, 12vw, 140px) 0; }
.rows { list-style: none; margin: 24px 0 72px; padding: 0; border-top: 1px solid var(--hair); }
.row {
  display: grid; grid-template-columns: 160px 1fr auto; align-items: baseline; gap: 20px;
  padding: 22px 0; border-bottom: 1px solid var(--hair);
}
.row-name { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3.4vw, 44px); letter-spacing: -.02em; line-height: 1.1; text-decoration: none; transition: color .2s; }
a.row-name:hover { color: var(--amber); }
.muted-name { color: var(--muted); }
.row-label.amber { color: var(--amber); }
.row-label.teal { color: var(--teal-ink); }
.row-label.muted { color: var(--muted); }
.row-count { text-align: right; }

.board { width: 100%; border-collapse: collapse; }
.board thead th {
  text-align: left; font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2); padding: 0 16px 12px 0; border-bottom: 1px solid var(--hair);
}
.board tbody th { text-align: left; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.board tbody th, .board td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--hair); vertical-align: baseline; }
.board td { color: var(--ink-2); font-size: 14px; }

@media (max-width: 640px) {
  .row { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .row-label { grid-column: 1 / -1; }
  .board thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .board, .board tbody, .board tr { display: block; }
  .board tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; padding: 18px 0; border-bottom: 1px solid var(--hair); }
  .board tbody th { grid-column: 1 / -1; padding: 0 0 6px; border: 0; }
  .board td { padding: 0; border: 0; font-size: 13px; }
  .board td::before { content: attr(data-k); display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
}

/* ── Close ───────────────────────────────────────── */
.close { border-top: 1px solid var(--hair); padding-top: clamp(80px, 12vw, 140px); overflow: hidden; }
.close-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.close .h2 { margin-top: 0; }
.fine { color: var(--muted); font-size: 12.5px; margin: 0; }
.foot { display: flex; justify-content: space-between; margin-top: 72px; padding-top: 18px; padding-bottom: 18px; border-top: 1px solid var(--hair); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--amber); }
.bigmark {
  font-family: var(--display); font-weight: 800; white-space: nowrap; text-align: center;
  font-size: 7vw; line-height: .8; letter-spacing: -.04em;
  transform: translateY(14%);
  margin-top: 12px;
  user-select: none;
}

/* ── Entry reveals: only when motion is allowed; they never un-reveal ── */
.motion [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.motion [data-reveal].in { opacity: 1; transform: none; }
