/* Mini HOTAS
   Type: B612, the typeface drawn for aircraft cockpit displays.
   Colour: the product itself. Night (the studio the renders sit in), panel grey (the body),
   handle red (the throttles and rudder), stick graphite. */

@font-face { font-family: "B612"; src: url("../fonts/b612-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "B612"; src: url("../fonts/b612-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --night: #0c0e11;
  --night-2: #121418;
  --rule: #24272c;
  --rule-2: #353940;
  --placard: #eceae4;
  --dim: #a2a6ad;
  --faint: #6e737b;
  --body: #d9dbde;          /* the enclosure grey, used for the datasheet panel */
  --ink: #131518;
  --ink-dim: #4b5058;
  --red: #c4202a;           /* the handle red */
  --red-hi: #dc2c36;

  --s-1: 0.875rem;
  --s0: 1.0625rem;
  --s1: 1.3125rem;
  --s2: 1.75rem;
  --s3: clamp(2rem, 3.4vw, 2.75rem);
  --s4: clamp(2.5rem, 5.2vw, 4.5rem);

  --wrap: 76rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --head-h: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--head-h); }
body {
  margin: 0; background: var(--night); color: var(--placard);
  font-family: "B612", ui-sans-serif, system-ui, sans-serif; font-size: var(--s0); line-height: 1.62;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--placard); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-weight: 700; line-height: 1.08; letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; max-width: 34em; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--placard); color: var(--ink); padding: 0.6rem 1rem; }
.skip:focus { top: 1rem; }

/* ---------- header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--head-h);
  transition: background-color 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.site-head.is-solid { background: rgba(12, 14, 17, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--rule); }
.site-head .wrap { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em; }
.brand svg { width: 28px; height: 28px; flex: none; }
.nav { display: flex; gap: 1.75rem; margin-left: auto; font-size: var(--s-1); }
.nav a { text-decoration: none; color: var(--dim); }
.nav a:hover { color: var(--placard); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 700; font-size: 0.95rem; line-height: 1; cursor: pointer;
  padding: 0.95rem 1.35rem; border-radius: 6px; border: 0; text-decoration: none;
  background: var(--red); color: #fff; transition: background-color 0.2s ease;
}
.btn:hover { background: var(--red-hi); color: #fff; }
.btn:disabled { opacity: 0.7; cursor: progress; }
.btn--small { padding: 0.7rem 1rem; font-size: 0.85rem; }

/* ---------- the stage: hero and the 360 spin ---------- */
.stage { position: relative; height: 560vh; }
.stage__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stage__media { position: absolute; inset: 0; }
/* the poster sets where the product sits; the canvas draws every frame into that same box */
.stage__media canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__media img { position: absolute; width: min(58vw, 102vh); height: auto; right: 2vw; top: 54%; transform: translateY(-50%); }
.stage__media canvas { opacity: 0; transition: opacity 0.6s ease; }
.stage.is-live .stage__media canvas { opacity: 1; }
.stage.is-live .stage__media img { visibility: hidden; transition: visibility 0s 0.6s; }

/* the text layer pins over the product: same screen, drawn on top */
.stage__copy { position: sticky; top: 0; height: 100vh; height: 100svh; margin-top: -100vh; margin-top: -100svh; display: flex; align-items: center; pointer-events: none; }
.stage__copy .panel.is-active { pointer-events: auto; }
.panel {
  position: absolute; left: 0; width: min(32rem, 38vw);
  opacity: 0; transform: translateY(14px); visibility: hidden;
  transition: opacity 0.45s ease, transform 0.6s cubic-bezier(.2,.7,.2,1), visibility 0s 0.45s;
}
.panel.is-active { opacity: 1; transform: none; visibility: visible; transition: opacity 0.5s ease 0.08s, transform 0.7s cubic-bezier(.2,.7,.2,1) 0.08s, visibility 0s; }
.panel h1 { font-size: clamp(2.4rem, 4.3vw, 4rem); margin-bottom: 1.3rem; }
.panel h2 { font-size: var(--s3); margin-bottom: 1rem; }
.panel p { color: var(--dim); font-size: var(--s1); line-height: 1.5; }
.panel--intro p.lede { color: var(--placard); opacity: 0.86; }
.panel .form-note { font-size: var(--s-1); color: var(--faint); line-height: 1.5; }
.panel .status { font-size: var(--s-1); color: var(--dim); line-height: 1.4; }
.status { display: flex; align-items: center; gap: 0.6rem; font-size: var(--s-1); color: var(--dim); margin: 1.4rem 0 0; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(196, 32, 42, 0.22); }

/* heading tape: the compass strip under the product, turning with it */
.tape {
  position: absolute; left: var(--tape-x, 50%); bottom: clamp(1.25rem, 4vh, 2.5rem); width: min(26rem, 70vw); height: 34px; transform: translateX(-50%);
  overflow: hidden; color: var(--faint); font-size: 11px; letter-spacing: 0.04em;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
  opacity: 0; transition: opacity 0.5s ease;
}
.stage.is-turning .tape { opacity: 1; }
.tape__strip { position: absolute; left: 50%; top: 0; height: 100%; will-change: transform; }
.tape__strip svg { height: 100%; width: auto; max-width: none; }
.tape::after { content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: 12px; background: var(--placard); }

/* phones: a quiet hint that the product can be turned by hand */
.swipe { display: none; position: absolute; left: 0; right: 0; bottom: 0.35rem; margin: 0; text-align: center; font-size: 0.75rem; color: var(--faint); pointer-events: none; transition: opacity 0.5s ease; }
.stage.is-swiped .swipe { opacity: 0; }

/* scroll hint at the bottom of the first screen */
.hint { position: absolute; left: var(--gutter); bottom: clamp(1.25rem, 4vh, 2.5rem); font-size: var(--s-1); color: var(--faint); display: flex; align-items: center; gap: 0.6rem; transition: opacity 0.4s ease; }
.hint span { width: 1px; height: 28px; background: linear-gradient(var(--faint), transparent); }
.stage.is-turning .hint { opacity: 0; }

/* ---------- forms ---------- */
.waitlist { margin-top: 2rem; max-width: 30rem; }
.field { display: flex; gap: 0.5rem; }
.field input {
  flex: 1; min-width: 0; font: inherit; font-size: 1rem; color: var(--placard);
  background: rgba(255,255,255,0.04); border: 1px solid var(--rule-2); border-radius: 6px; padding: 0.85rem 1rem;
}
.field input::placeholder { color: var(--faint); }
.field input:focus { outline: none; border-color: var(--placard); background: rgba(255,255,255,0.06); }
.field input[aria-invalid="true"] { border-color: var(--red-hi); }
.form-error { color: #ff8c8c; font-size: var(--s-1); margin: 0.5rem 0 0; min-height: 0; }
.form-error:empty { display: none; }
.form-note { color: var(--faint); font-size: var(--s-1); margin: 0.75rem 0 0; line-height: 1.5; }
.form-note a { color: var(--dim); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-done { margin-top: 2rem; max-width: 30rem; border-left: 2px solid var(--red); padding: 0.25rem 0 0.25rem 1.1rem; }
.form-done h3 { font-size: var(--s1); margin-bottom: 0.4rem; }
.form-done p { color: var(--dim); margin: 0; }
.form-done:focus { outline: none; }

/* ---------- sections ---------- */
.section { padding: clamp(5rem, 12vw, 10rem) 0; }
.section h2 { font-size: var(--s3); margin-bottom: 1.25rem; }
.lead { font-size: var(--s1); color: var(--dim); line-height: 1.55; }


/* size: the mug of tea */
.size { position: relative; padding: 0; }
.size figure { margin: 0; position: relative; }
.size img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.size picture { display: block; position: relative; }
.size picture img { display: block; }
.size picture::before, .size picture::after { content: ""; position: absolute; left: 0; right: 0; pointer-events: none; }
.size picture::before { top: 0; height: 18%; background: linear-gradient(var(--night), rgba(12, 14, 17, 0)); }
.size picture::after { bottom: 0; height: 26%; background: linear-gradient(rgba(12, 14, 17, 0), var(--night)); }
.size figcaption { z-index: 2; }
.size figcaption {
  position: absolute; left: 0; right: 0; top: 0; padding-top: clamp(3rem, 8vw, 7rem);
}
.size figcaption h2 { font-size: var(--s3); max-width: 8em; margin-bottom: 1rem; }
.size figcaption p { color: var(--dim); font-size: var(--s1); max-width: 20em; }

/* layout diagram */
.layout .wrap > p { color: var(--dim); }
.diagram { position: relative; margin: clamp(2.5rem, 6vw, 5rem) auto 0; width: min(100%, 34rem); aspect-ratio: 1; }
.diagram img { width: 100%; height: 100%; filter: drop-shadow(0 30px 40px rgba(0,0,0,0.55)); }
.diagram svg.leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.leaders line { stroke: rgba(236, 234, 228, 0.55); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.leaders circle { fill: var(--placard); }
.callout { position: absolute; width: 13rem; font-size: var(--s-1); line-height: 1.45; color: var(--dim); }
.callout b { display: block; color: var(--placard); font-size: var(--s0); margin-bottom: 0.15rem; }
.callout--left { text-align: right; transform: translate(-100%, -50%); }
.callout--right { transform: translate(0, -50%); }
.callout .n { display: none; }
.marker { display: none; }
.diagram-list { display: none; }

/* compact, never cramped */
.refined .grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.refined .copy { position: sticky; top: calc(var(--head-h) + 3rem); }
.shots { display: grid; gap: 1rem; }
.shots img { width: 100%; height: auto; border-radius: 4px; }

/* travel */
.travel { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--night-2); }
.travel .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.travel h2 { margin: 0; }
.travel p { margin: 0; max-width: 26em; }
.travel h2 { font-size: var(--s4); }
.travel p { color: var(--dim); font-size: var(--s1); line-height: 1.55; }

/* progress checklist */
.checklist { list-style: none; margin: clamp(2rem, 5vw, 3.5rem) 0 0; padding: 0; max-width: 46rem; }
.checklist li { display: flex; align-items: baseline; gap: 0.75rem; padding: 0.7rem 0; font-size: var(--s1); }
.checklist .item { flex: none; }
.checklist .dots { flex: 1; border-bottom: 2px dotted var(--rule-2); transform: translateY(-0.3em); min-width: 2rem; }
.checklist .state { flex: none; color: var(--dim); }
.checklist .state.done { color: var(--placard); }
.checklist .state.done::before { content: ""; display: inline-block; width: 0.5em; height: 0.9em; border: solid var(--red); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-0.1em, -0.15em); margin-right: 0.6em; }
.checklist .state.now { color: var(--placard); }

/* specs */
.specs { border-top: 1px solid var(--rule); padding-bottom: clamp(4rem, 8vw, 6.5rem); }
.sheet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 5rem); margin: clamp(2rem, 5vw, 3.5rem) 0 0; }
.sheet div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--rule); }
.sheet dt { font-weight: 700; color: var(--placard); }
.sheet dd { margin: 0; color: var(--dim); }

/* join */
.join { text-align: left; }
.join .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.join h2 { font-size: var(--s4); margin: 0; }
.join p { color: var(--dim); }

/* footer */
.site-foot { border-top: 1px solid var(--rule); padding: 2.5rem 0 3rem; font-size: var(--s-1); color: var(--faint); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; }
.site-foot .brand { color: var(--placard); font-size: 0.95rem; }
.site-foot nav { display: flex; gap: 1.5rem; margin-left: auto; }
.site-foot a { color: var(--dim); text-decoration: none; }
.site-foot a:hover { color: var(--placard); }

/* plain pages (privacy, 404) */
.page { padding: calc(var(--head-h) + 4rem) 0 6rem; }
.page h1 { font-size: var(--s3); margin-bottom: 0.5rem; }
.page h2 { font-size: var(--s1); margin: 2.5rem 0 0.6rem; }
.page p, .page li { color: var(--dim); max-width: 40em; }
.page .updated { color: var(--faint); font-size: var(--s-1); }

/* ---------- small screens ---------- */
@media (max-width: 60rem) {
  .nav { display: none; }
  .site-head .btn--small { margin-left: auto; }
  /* phones and small tablets: nothing pinned. The product turns on its own at the top
     (and follows a sideways swipe), then the page scrolls normally */
  .stage { height: auto; padding-top: var(--head-h); --pw: min(100vw, 34rem, 56svh); }
  .stage__pin { position: relative; top: auto; height: auto; overflow: visible; }
  .stage__media { position: relative; inset: auto; height: calc(var(--pw) / 1.25); touch-action: pan-y; -webkit-user-select: none; user-select: none; }
  .stage__media img { width: var(--pw); right: auto; left: 50%; top: 0; transform: translateX(-50%); }
  .stage__copy { position: relative; top: auto; height: auto; margin-top: 0; display: block; padding: 0.75rem 0 clamp(3.5rem, 12vw, 5rem); pointer-events: auto; }
  .panel { position: relative; left: auto; right: auto; width: auto; opacity: 1; visibility: visible; transform: none; transition: none; }
  .tape, .hint { display: none; }
  .swipe { display: block; }
  /* the features become a short list under the waitlist form */
  .panel--intro { margin-bottom: 3.25rem; }
  .panel:not(.panel--intro) { padding: 1.15rem 0 1.25rem; border-top: 1px solid var(--rule); }
  .panel:last-child { border-bottom: 1px solid var(--rule); }
  .panel:not(.panel--intro) h2 { font-size: 1.2rem; margin-bottom: 0.35rem; }
  .panel:not(.panel--intro) p { font-size: 0.95rem; line-height: 1.55; margin: 0; }
  .panel h1 { font-size: clamp(2rem, 8.4vw, 2.75rem); margin-bottom: 0.9rem; }
  .panel h2 { font-size: clamp(1.6rem, 7vw, 2.1rem); }
  .panel p { font-size: 1rem; }
  .panel--intro .lede { font-size: 0.95rem; line-height: 1.5; margin-bottom: 0; }
  .panel--intro .status { display: none; }
  .waitlist { margin-top: 1.25rem; }
  .field { flex-direction: column; }
  .refined .grid, .travel .wrap, .join .wrap { grid-template-columns: 1fr; }
  .refined .copy { position: static; }
  .size figcaption { position: static; padding: 2.5rem 0 0; }
  .callout, .leaders { display: none; }
  .marker { display: grid; position: absolute; width: 1.6rem; height: 1.6rem; border-radius: 50%; place-items: center; transform: translate(-50%, -50%);
            background: var(--placard); color: var(--ink); font-size: 0.75rem; font-weight: 700; }
  .diagram-list { display: block; list-style: none; padding: 0; margin: 2.5rem 0 0; counter-reset: c; }
  .diagram-list li { counter-increment: c; display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.9rem; padding: 0.8rem 0; border-top: 1px solid var(--rule); color: var(--dim); font-size: 0.95rem; }
  .diagram-list li::before { content: counter(c); display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--placard); color: var(--ink); font-size: 0.75rem; font-weight: 700; }
  .diagram-list b { display: block; color: var(--placard); }
  .sheet { grid-template-columns: 1fr; }
  .sheet div { grid-template-columns: 7.5rem 1fr; }
  .checklist li { font-size: 0.95rem; gap: 0.5rem; }
  .checklist .item { flex: 0 1 auto; min-width: 0; }
  .checklist .dots { min-width: 0.75rem; }
  .site-foot nav { margin-left: 0; }
}
/* phones get the closer crop of the mug photo (matches the <source> in index.html) */
@media (max-width: 47.5rem) {
  .size img { aspect-ratio: 24 / 25; }
}

/* without motion: the stage becomes an ordinary section */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage { height: auto; }
  .stage__pin { position: relative; height: auto; overflow: visible; }
  .stage__media { position: relative; height: auto; }
  .stage__media img { position: relative; width: min(100%, 60rem); margin: var(--head-h) auto 0; right: auto; top: auto; left: auto; transform: none; }
  .stage__media canvas, .tape, .hint, .swipe { display: none; }
  .stage { padding-top: 0; }
  .stage__copy { position: static; height: auto; margin-top: 0; display: block; padding: 0 0 4rem; pointer-events: auto; }
  .panel { position: static; width: auto; opacity: 1; visibility: visible; transform: none; transition: none; margin: 0 0 3rem; }
  .panel--intro { padding-top: 0; }
}
.no-js .stage { height: auto; }
.no-js .stage__pin { position: relative; height: auto; }
.no-js .stage__media { position: relative; height: auto; }
.no-js .stage__media img { position: relative; width: min(100%, 60rem); margin: var(--head-h) auto 0; right: auto; top: auto; left: auto; transform: none; }
.no-js .stage__media canvas, .no-js .swipe { display: none; }
.no-js .panel { position: static; opacity: 1; visibility: visible; transform: none; margin: 0 0 3rem; }
.no-js .stage { padding-top: 0; }
.no-js .stage__copy { position: static; height: auto; margin-top: 0; display: block; pointer-events: auto; }
