@font-face {
  font-family: "Switzer";
  src: url("assets/fonts/Switzer-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fbf8f0;
  --surface: #ffffff;
  --ink: #0d0d0d;
  --muted: #6b6860;
  --line: rgba(13, 13, 13, 0.12);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --r: 12px; --r-lg: 20px; --r-pill: 999px;
  --gutter: clamp(16px, 4.5vw, 64px);
  --wrap: 1280px;
  --fly-w: clamp(280px, 46vw, 720px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Switzer", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, canvas { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

.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;
}

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* ── nav ─────────────────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: var(--s5);
  padding: var(--s4) var(--gutter);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; }
.brand-mark { width: 30px; height: auto; }
.brand-word { font-weight: 640; font-size: 19px; letter-spacing: -0.01em; }

.nav-links { display: flex; gap: var(--s5); font-size: 14px; font-weight: 500; }
.nav-links a { padding: 6px 0; border-bottom: 1px solid transparent; }
.nav-links a:hover { border-bottom-color: var(--ink); }

.nav-actions { display: flex; justify-content: flex-end; gap: var(--s2); }

/* ── pills ───────────────────────────────────────────────────────────────── */

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 var(--s4);
  border-radius: var(--r-pill);
  font-size: 14px; font-weight: 520; line-height: 1;
  white-space: nowrap; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, opacity 0.15s;
}
.pill-ghost { background: rgba(13, 13, 13, 0.06); border: 0; }
.pill-ghost:hover { background: rgba(13, 13, 13, 0.11); }
.pill-solid { background: var(--ink); color: var(--bg); border: 0; }
.pill-solid:hover { background: #333; }
.pill[disabled], .pill[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.pill[data-unset] { opacity: 0.45; cursor: not-allowed; }
.pill-mark { width: 14px; height: 14px; object-fit: contain; }
.pill-pons .pill-mark { width: auto; height: 18px; }
.pill-x { padding: 0 13px; }

/* ── hero ────────────────────────────────────────────────────────────────── */

.hero {
  display: flex; flex-direction: column; align-items: center;
  padding: var(--s8) var(--gutter) 0;
}

.hero h1 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 560; letter-spacing: -0.02em; line-height: 1.15;
  text-align: center;
  margin-bottom: var(--s5);
}

.prompt {
  position: relative;
  width: min(100%, 680px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: var(--s4) 60px var(--s4) var(--s5);
  box-shadow: 0 1px 0 rgba(13, 13, 13, 0.03);
}
.prompt:focus-within { border-color: rgba(13, 13, 13, 0.3); }
.prompt-input {
  display: block; width: 100%; min-height: 48px; max-height: 140px;
  resize: none; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 17px; line-height: 1.4; color: var(--ink);
  padding: 0;
}
.prompt-input::placeholder { color: var(--muted); }
.prompt-send {
  position: absolute; right: 12px; bottom: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: var(--ink); color: var(--bg);
  font-size: 18px; font-weight: 600; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
}
.prompt-send:hover { background: #333; }
.prompt-send[disabled] { opacity: 0.35; cursor: not-allowed; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); margin-top: var(--s4); }
.chip {
  height: 36px; padding: 0 14px;
  border-radius: var(--r-pill); border: 1px solid var(--line); background: transparent;
  font-size: 13px; font-weight: 500; cursor: pointer;
}
.chip:hover { background: rgba(13, 13, 13, 0.06); }

/* the thread slot is reserved so a send moves nothing but the words */
.thread {
  width: min(100%, 680px);
  height: 196px;
  margin-top: var(--s6);
  display: flex; flex-direction: column; gap: var(--s3);
  overflow: hidden;
}
.msg { max-width: 82%; font-size: 15px; line-height: 1.45; }
.msg-user {
  align-self: flex-end;
  background: rgba(13, 13, 13, 0.06);
  border-radius: 18px; padding: 10px 16px;
}
.msg-model { align-self: flex-start; }
.thought { margin-bottom: var(--s2); }
.thought-sum {
  list-style: none; cursor: pointer; color: var(--muted); font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
}
.thought-sum::-webkit-details-marker { display: none; }
.thought-sum::after { content: "\203A"; display: inline-block; transition: transform 0.2s; }
.thought[open] .thought-sum::after { transform: rotate(90deg); }
.thought-sum.is-live { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.45; } }
.thought-steps {
  margin: var(--s2) 0 0; padding-left: 0; list-style: none;
  color: var(--muted); font-size: 14px; line-height: 1.5;
  border-left: 1px solid var(--line); padding-left: var(--s3);
}
.answer { font-size: 16px; min-height: 1.45em; }
.answer::after { content: ""; }
.answer.is-typing::after { content: "\258D"; margin-left: 2px; animation: pulse 0.9s steps(2) infinite; }

/* the fly sits on the page: same cream as the page, edges faded so no rectangle shows */
.fly {
  position: relative;
  width: var(--fly-w);
  aspect-ratio: 8 / 3;
  margin-top: var(--s4);
  /* multiply turns the clip's cream into the page's cream, the mask hides the last step at the rim */
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 98%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 98%);
}
.fly > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; filter: brightness(1.05); }
.fly-clip { opacity: 0; transition: opacity 0.28s; }
.fly-clip.is-on { opacity: 1; }

/* ── sections ────────────────────────────────────────────────────────────── */

section { width: min(100%, var(--wrap)); margin: 0 auto; padding: var(--s8) var(--gutter) 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4);
  flex-wrap: wrap;
  margin-bottom: var(--s5);
}
.section-head h2, .feature-title { font-size: clamp(22px, 2.4vw, 28px); font-weight: 560; letter-spacing: -0.015em; line-height: 1.2; }
.meta { display: flex; gap: var(--s3); font-size: 13px; color: var(--muted); font-weight: 500; }
.meta span + span { position: relative; padding-left: var(--s3); }
.meta span + span::before { content: "\00b7"; position: absolute; left: 0; }

.feature-media {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  aspect-ratio: 16 / 7; background: var(--bg);
  border: 1px solid var(--line);
}
.feature-media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.walk-canvas { opacity: 0; transition: opacity 0.3s; }
.walk-canvas.is-on { opacity: 1; }

.rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s7); }
.row { display: grid; grid-template-columns: 144px minmax(0, 1fr); gap: var(--s5); align-items: center; }
.row img { border-radius: var(--r); width: 144px; height: 144px; object-fit: cover; border: 1px solid var(--line); }
.row h3 { font-size: 18px; font-weight: 520; line-height: 1.3; margin-bottom: var(--s2); letter-spacing: -0.01em; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.card-media {
  aspect-ratio: 1 / 1; border-radius: var(--r-lg); overflow: hidden;
  display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line);
  margin-bottom: var(--s4);
}
.card-fly { object-fit: contain; mix-blend-mode: multiply; filter: brightness(1.05); }
.card-fly.s1 { width: 72%; }
.card-fly.s2 { width: 36%; }
.card-fly.s3 { width: 15%; }
.card h3 { font-size: 18px; font-weight: 520; margin-bottom: var(--s1); }

.safety {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s7); align-items: center;
}
.safety-media img { border-radius: var(--r-lg); width: 100%; max-width: 440px; height: auto; border: 1px solid var(--line); }
.safety-text h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 560; letter-spacing: -0.015em; margin-bottom: var(--s3); }
.safety-text p { font-size: 17px; max-width: 34ch; margin-bottom: var(--s4); }

.company { padding-bottom: var(--s9); }
.company-sub { color: var(--muted); font-size: 14px; font-weight: 500; }
.contract {
  display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap;
  padding: var(--s4) var(--s5);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  margin-bottom: var(--s4);
}
.ca {
  flex: 1 1 320px; min-width: 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 15px; line-height: 1.5;
  overflow-wrap: anywhere; user-select: all;
}
.ca.is-empty { font-family: inherit; color: var(--muted); user-select: none; }
.company-actions { display: flex; gap: var(--s2); flex-wrap: wrap; }

/* ── responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .rows { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
  .card h3 { font-size: 15px; }
  .feature-media { aspect-ratio: 16 / 9; }
}

@media (max-width: 760px) {
  .nav { grid-template-columns: auto 1fr; }
  .nav-links { display: none; }
  .pill { height: 36px; padding: 0 12px; font-size: 13px; }
  .pill-pons span { display: none; }
  .hero { padding-top: var(--s7); }
  .thread { height: 176px; }
  :root { --fly-w: min(88vw, 420px); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card-media { aspect-ratio: 16 / 9; }
  .safety { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: 96px minmax(0, 1fr); gap: var(--s4); }
  .row img { width: 96px; height: 96px; }
  .row h3 { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .fly-clip, .walk-canvas, .thought-sum.is-live { transition: none; animation: none; }
}
