/* TM coming-soon page: dark, backstage, one accent. Colors and type from docs/How TM works.md, section 10. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/fonts/Archivo-Variable.woff2") format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/IBMPlexMono-Regular.woff2") format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/IBMPlexMono-Medium.woff2") format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/IBMPlexMono-SemiBold.woff2") format('woff2');
}

:root {
  --bg: #0D0C0A;
  --s1: #181714;
  --s2: #22211D;
  --s3: #2E2C27;
  --ink: #F4F2EC;
  --ink-2: #BAB6AB;
  --ink-3: #8A867D;
  --ink-4: #615E57;
  --paper: #F3F0E7;
  --orange: #FF6A33;
  --on-orange: #1A0D07;
  --bad: #FF6B5B;
  --line: rgba(244, 242, 236, 0.12);
  --line-strong: rgba(244, 242, 236, 0.22);
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
/* The page stays still at its top and bottom (November 13, 2026): no rubber band past the edge, vertically only. */
html, body { overscroll-behavior-y: none; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(rgba(244, 242, 236, 0.075) 1px, transparent 1.2px);
  background-size: 22px 22px;
  background-position: 11px 11px;
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: minmax(300px, 1fr) auto auto;
}

/* The lanyard scene: a canvas draws the strap, the laminate is a real element at its end. */
.scene {
  position: relative;
  min-height: 300px;
  height: 54vh;
  height: 54svh;
  overflow: hidden;
  isolation: isolate;
}
.scene canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; }
.laminate {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  width: 150px;
  height: 171px;
  transform-origin: 0 0;
  will-change: transform;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.35));
  outline: none;
}
.laminate.dragging { cursor: grabbing; }
.laminate:focus-visible svg { outline: 2px solid var(--orange); outline-offset: 6px; border-radius: 12px; }
.laminate svg { display: block; }

/* Copy */
.copy {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 6px 20px 18px;
  text-align: center;
}
.copy > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.copy > :nth-child(1) { animation-delay: 0.15s; }
.copy > :nth-child(2) { animation-delay: 0.3s; }
.copy > :nth-child(3) { animation-delay: 0.45s; }
.copy > :nth-child(4) { animation-delay: 0.6s; }
.copy > :nth-child(5) { animation-delay: 0.8s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}
.dot { margin: 0 0.6em; color: var(--ink-4); }
h1 { margin: 0 0 18px; line-height: 1; }
.wordmark {
  display: block;
  font-weight: 820;
  font-stretch: 122%;
  letter-spacing: 0.02em;
  font-size: clamp(68px, 11.5vw, 128px);
  line-height: 0.9;
  color: var(--paper);
  background: linear-gradient(180deg, #FFFDF6 0%, #F3F0E7 48%, #CFCBBE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}
.name {
  display: block;
  margin-top: 12px;
  font-weight: 400;
  font-stretch: 100%;
  font-size: clamp(17px, 2.3vw, 23px);
  letter-spacing: 0.01em;
  color: var(--ink-2);
}
.lede {
  margin: 0 auto 26px;
  max-width: 54ch;
  font-size: clamp(15px, 1.7vw, 17.5px);
  color: var(--ink-2);
}
.actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.fine {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}

.btn-primary, .btn-secondary {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 15px 30px;
  font: 660 15.5px/1 var(--sans);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.12s, filter 0.15s, background-color 0.15s, box-shadow 0.25s;
}
.btn-primary {
  background: var(--orange);
  color: var(--on-orange);
  box-shadow: 0 0 0 0 rgba(255, 106, 51, 0), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 10px 34px rgba(255, 106, 51, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-primary:active { transform: translateY(1px); box-shadow: 0 4px 14px rgba(255, 106, 51, 0.3); }
.btn-primary:disabled { opacity: 0.6; cursor: default; filter: none; transform: none; box-shadow: none; }
.btn-secondary { background: var(--s3); color: var(--ink); }
.btn-secondary:hover { background: #38362F; }
.btn-primary:focus-visible, .btn-secondary:focus-visible, .close:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

/* The day sheet: a blank call sheet, mono rows with a dash where the times go, between two tear lines. */
.daysheet {
  list-style: none;
  margin: 30px auto 0;
  padding: 12px 0;
  max-width: 560px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 26px;
  border-top: 1px dashed var(--line-strong);
  border-bottom: 1px dashed var(--line-strong);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.daysheet li { display: flex; gap: 10px; align-items: baseline; }
.daysheet .k { color: var(--ink-4); }
.daysheet .v { color: var(--ink-2); font-weight: 500; }
.daysheet .v.hot { color: var(--orange); font-weight: 600; }

.foot {
  padding: 16px 20px 26px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-4);
}
.foot a { color: var(--ink-3); text-decoration: none; }
.foot a:hover { color: var(--ink-2); text-decoration: underline; }

/* The waitlist sheet */
.sheet {
  margin: auto;
  width: min(580px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100svh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--s1);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  overflow: auto;
  overscroll-behavior: contain;
}
.sheet[open] { animation: sheet-in 0.32s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
.sheet::backdrop { background: rgba(13, 12, 10, 0.74); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.sheet form, .sheet .done { padding: 26px 26px 22px; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sheet-head .eyebrow { margin-bottom: 8px; }
.sheet h2 {
  margin: 0;
  font-weight: 720;
  font-stretch: 108%;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.close {
  flex: none;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--s2);
  color: var(--ink-2);
  cursor: pointer;
  display: grid; place-items: center;
}
.close:hover { color: var(--ink); background: var(--s3); }

.fields { display: flex; flex-direction: column; gap: 18px; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field legend {
  display: block;
  padding: 0;
  margin: 0 0 7px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.opt { color: var(--ink-4); letter-spacing: 0.06em; text-transform: none; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--s2);
  color: var(--ink);
  font: 500 15.5px/1.4 var(--sans);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 106, 51, 0.22);
}
.field.invalid input, .field.invalid textarea { border-color: var(--bad); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .two { grid-template-columns: 1fr; gap: 18px; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; margin: 0; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--s2);
  color: var(--ink-2);
  font: 550 14px/1.2 var(--sans);
  cursor: pointer;
  transition: background-color 0.12s, color 0.12s, border-color 0.12s;
}
.chip:hover span { border-color: var(--ink-4); color: var(--ink); }
.chip input:checked + span { background: var(--paper); color: #1E1D19; border-color: var(--paper); }
.chip input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.field.invalid .chip span { border-color: rgba(255, 107, 91, 0.6); }

.error {
  margin: 7px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--bad);
}
.trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.sheet-foot { margin-top: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.sheet-foot .btn-primary { width: 100%; padding: 15px 20px; }
.sheet-foot .error { margin: 0; }
.done { text-align: center; padding-top: 34px !important; padding-bottom: 34px !important; }
.done h2 { margin-bottom: 10px; font-size: 28px; }
.done .lede { margin-bottom: 24px; }
.done strong { color: var(--ink); font-weight: 600; }

@media (max-width: 600px) {
  .sheet {
    width: 100vw;
    max-width: 100vw;
    margin: auto 0 0;
    max-height: calc(100vh - 24px);
    max-height: calc(100svh - 24px);
    border-radius: 16px 16px 0 0;
    border-bottom: 0;
  }
  .sheet form, .sheet .done { padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); }
  /* 16px, so iPhone Safari doesn't zoom the page in when a field is tapped (October 26, 2026). */
  .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field textarea { font-size: 16px; }
  .daysheet { gap: 6px 18px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary, .btn-secondary, .chip span { transition: none; }
  .copy > *, .sheet[open] { animation: none; }
}

/* The privacy policy and terms of service (October 22, 2026): one readable column. */
.legal { max-width: 720px; margin: 0 auto; padding: 40px 20px 64px; font-size: 16px; line-height: 1.65; }
.legal-home { display: inline-block; margin-bottom: 28px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); text-decoration: none; }
.legal h1 { font-size: clamp(30px, 6vw, 44px); font-weight: 760; letter-spacing: -0.01em; line-height: 1.1; margin: 0 0 8px; }
.legal h2 { font-size: 19px; font-weight: 700; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.legal b { color: var(--ink); font-weight: 600; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 0 0 8px; }
.legal a { color: var(--ink); text-underline-offset: 3px; }
.legal .legal-date { font-family: var(--mono); font-size: 13px; color: var(--ink-3); margin: 0 0 28px; }
.legal mark.todo { background: rgba(255, 106, 51, 0.18); color: var(--ink); padding: 0 4px; border-radius: 4px; }
.legal-foot { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
