/* AF Legacy: site styles.
 * The page opens on a commercial: a pinned stage that plays Face's real morning from his own
 * kitchen video as you scroll (the machine, the coffee maker, the copper mug, then Face drinking).
 * It only pins when <html> has the "cine" class; without it (motion turned off, no JavaScript)
 * the same moments read as a normal page with still pictures. After the commercial the page
 * moves into morning light: the live demo, about, the business side, questions, then the form.
 */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/big-shoulders-display.woff2") format("woff2");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #0b0a09;
  --night-2: #14110f;
  --night-3: #1f1b17;
  --bone: #efe9e1;
  --bone-2: rgba(239, 233, 225, 0.76);
  --bone-3: rgba(239, 233, 225, 0.5);
  --paper: #eeece8;
  --paper-2: #e3e0da;
  --ink: #16120f;
  --ink-2: #4d4640;
  --rule: rgba(22, 18, 15, 0.14);
  --gold: #c9a35a;
  --gold-hi: #dfbd78;
  --copper: #b8693a;
  --copper-ink: #8a4520;
  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --text: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --gutter: max(clamp(20px, 5.5vw, 72px), env(safe-area-inset-left, 0px));
  --head-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--night);
  color: var(--bone);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--head-h);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  /* set on body too: a page that embeds this one (a preview, an app's web view) may give body its own colours */
  background: var(--night);
  color: var(--bone);
  font: 400 17px/1.55 var(--text);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 800; }
figure, blockquote { margin: 0; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.paper :focus-visible { outline-color: var(--copper-ink); }

.skip {
  position: fixed;
  left: 12px; top: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--bone);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s;
}
.skip:focus { transform: none; }

/* ------------------------------------------------------------------ type */
.display, .sec-title {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.004em;
  text-wrap: balance;
}
.sec-title { font-size: clamp(46px, 9.5vw, 92px); max-width: 14ch; }
.lede {
  font-size: clamp(18px, 0.9vw + 14px, 21px);
  line-height: 1.5;
  color: var(--bone-2);
  max-width: 34em;
  text-wrap: pretty;
}
.paper .lede { color: var(--ink-2); }
.sec-title + .lede { margin-top: 20px; }
.said p {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 8.6vw, 64px);
  line-height: 1.02;
  letter-spacing: 0.002em;
  text-wrap: balance;
  max-width: 17ch;
}
.said footer {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
}
.said footer::before { content: ""; display: inline-block; width: 22px; height: 1px; margin-right: 10px; vertical-align: middle; background: currentColor; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font: 600 16px/1 var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-ghost { border-color: rgba(239, 233, 225, 0.5); color: var(--bone); background: rgba(11, 10, 9, 0.18); }
.btn-ghost:hover { border-color: var(--bone); }
.btn-line { border-color: rgba(201, 163, 90, 0.75); color: var(--bone); }
.btn-line:hover { border-color: var(--gold-hi); background: rgba(201, 163, 90, 0.12); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--copper-ink); }
.btn-line-ink { border-color: var(--ink); color: var(--ink); }
.btn-line-ink:hover { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: 0.6; cursor: default; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.paper .text-link { color: var(--copper-ink); }
.play-ico {
  width: 22px; height: 22px;
  border: 1px solid currentColor;
  border-radius: 50%;
  position: relative;
  flex: none;
}
.play-ico::after {
  content: "";
  position: absolute;
  left: 8px; top: 6px;
  border-left: 8px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* ------------------------------------------------------------------ header */
.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  height: calc(var(--head-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  color: var(--bone);
  background: linear-gradient(rgba(3, 3, 3, 0.55), rgba(3, 3, 3, 0));
  transition: background-color 0.3s;
}
.site-head.is-solid { background: rgba(11, 10, 9, 0.96); }
@supports (backdrop-filter: blur(8px)) {
  .site-head.is-solid { background: rgba(11, 10, 9, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 34px; height: auto; }
.brand span { font-family: var(--text); font-weight: 600; font-size: 13px; letter-spacing: 0.32em; color: var(--gold); }
.head-tools { display: flex; align-items: center; gap: 6px; }
.sound-btn, .menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  background: none;
  border: 0;
  color: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}
.sound-ico { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound-ico i { width: 2px; height: 30%; background: currentColor; transition: height 0.2s; }
.sound-btn[aria-pressed="true"] .sound-ico i { animation: eq 0.9s ease-in-out infinite alternate; }
.sound-btn[aria-pressed="true"] .sound-ico i:nth-child(2) { animation-delay: -0.3s; }
.sound-btn[aria-pressed="true"] .sound-ico i:nth-child(3) { animation-delay: -0.6s; }
.sound-btn[aria-pressed="true"] .sound-ico i:nth-child(4) { animation-delay: -0.15s; }
@keyframes eq { from { height: 25%; } to { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .sound-btn[aria-pressed="true"] .sound-ico i { animation: none; height: 80%; } }
.menu-btn span::after {
  content: "";
  display: inline-block;
  width: 18px; height: 7px;
  margin-left: 10px;
  border-top: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  vertical-align: middle;
}

.site-nav {
  position: fixed;
  inset: calc(var(--head-h) + env(safe-area-inset-top, 0px)) 0 0 0;
  display: none;
  flex-direction: column;
  gap: 24px;
  padding: 24px var(--gutter) 40px;
  background: var(--night);
  overflow-y: auto;
}
.nav-open .site-nav { display: flex; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid rgba(239, 233, 225, 0.12);
  font-family: var(--display);
  font-weight: 700;
  font-size: 38px;
  line-height: 1;
  text-decoration: none;
}
.nav-list a[aria-current="true"] { color: var(--gold); }
.nav-cta { align-self: flex-start; }

@media (min-width: 900px) {
  .menu-btn { display: none; }
  .site-head { gap: 28px; }
  .head-tools { order: 3; }
  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 0;
    background: none;
    overflow: visible;
  }
  .nav-list { display: flex; gap: 26px; }
  .nav-list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    border: 0;
    font-family: var(--text);
    font-weight: 400;
    font-size: 15px;
    color: var(--bone-2);
  }
  .nav-list a:hover { color: var(--bone); }
  .nav-list a[aria-current="true"] { color: var(--bone); box-shadow: inset 0 -1px 0 var(--gold); }
  .nav-cta { min-height: 44px; padding: 0 16px; font-size: 15px; }
}

/* ------------------------------------------------------------------ the commercial */
.ad { position: relative; background: #030303; }
.ad-film, .ad-light, .ad-backdrop, .ad-shade { display: none; }

/* still layout (motion off, no JS): the moments one after another, each with its picture */
.ad-beat {
  display: grid;
  gap: 24px;
  padding: calc(var(--head-h) + 24px) var(--gutter) 56px;
}
.ad-beat + .ad-beat { padding-top: 24px; }
.ad-beat .still { max-width: 34rem; }
.ad-beat .still img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ad-beat h1.display { font-size: clamp(50px, 13vw, 112px); max-width: 11ch; }
.ad-beat h2.display { font-size: clamp(44px, 11vw, 96px); max-width: 11ch; }
.ad-beat .display + .lede { margin-top: 16px; }
.ad-beat .cta-row { margin-top: 24px; }
.cue { display: none; }
@media (min-width: 900px) {
  .ad-beat { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 56px; }
  .ad-beat .still { grid-column: 2; grid-row: 1; justify-self: end; width: 100%; }
  .ad-beat .copy { grid-column: 1; grid-row: 1; }
}

/* the commercial: one pinned stage, the words fade in over it */
.cine .ad { height: 720vh; }
.cine .ad-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.cine .ad-film, .cine .ad-light, .cine .ad-backdrop, .cine .ad-shade {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cine .ad-film { overflow: hidden; background: #030303; z-index: 0; }   /* its own stacking context: the light and shade sit above every shot */
/* the shots: one in front, the one before it underneath while it fades in. A shot's intro
   (shots 2 and 3) sits on top of its loop until the loop takes over. */
.ad-intro { display: none; }
.cine .ad-shot, .cine .ad-intro {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--fx, 50%) var(--fy, 50%);
  background: #030303;
  opacity: 0;
  transform: scale(var(--push, 1));
  transform-origin: var(--fx, 50%) 45%;
  transition: opacity 0.85s ease;
}
/* where each shot keeps its subject when a narrow screen crops the sides */
.ad-shot-1 { --fx: 30%; }
.ad-shot-2 { --fx: 75%; }
.ad-shot-3 { --fx: 42%; }
.ad-shot-4 { --fx: 50%; }
.ad-shot-5 { --fx: 46%; --fy: 30%; }
/* between the coffee maker close-up and the wider shot of it (either way): a quick dissolve,
   nearly a cut (a slow one would show the machine twice) */
.cine .ad-shot.ad-shot-3, .cine .ad-shot.ad-shot-4 { transition-duration: 0.3s; }
.cine .ad-intro { display: block; }
.cine .ad-shot.is-back, .cine .ad-intro.is-back { opacity: 1; z-index: 1; transition: none; }
.cine .ad-shot.is-front, .cine .ad-intro.is-front { opacity: 1; z-index: 2; }
.cine .ad-intro.is-done { opacity: 0; transition: none; }
.cine .ad-shot.is-instant { transition: none; }
.cine .ad-backdrop { display: none; }
/* the sun coming up: warm light from the window side, stronger as the scroll goes on */
.cine .ad-light {
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(90% 60% at 100% 8%, rgba(255, 196, 120, 0.7), rgba(255, 170, 90, 0.18) 45%, rgba(255, 160, 80, 0) 70%),
    linear-gradient(200deg, rgba(255, 190, 120, 0.22), rgba(255, 190, 120, 0) 55%);
  mix-blend-mode: screen;
}
.cine .ad-shade {
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 3, 3, 0.45) 0, rgba(3, 3, 3, 0) 16%),
    linear-gradient(0deg, rgba(3, 3, 3, 0.9) 0, rgba(3, 3, 3, 0.66) 26%, rgba(3, 3, 3, 0) 50%);
}
/* words at the bottom, over Face's white tank top: a deeper shade */
@media (max-width: 899px) and (min-height: 521px), (max-aspect-ratio: 1/1) {
  .cine .ad-stage.on-face .ad-shade {
    background:
      linear-gradient(180deg, rgba(3, 3, 3, 0.45) 0, rgba(3, 3, 3, 0) 16%),
      linear-gradient(0deg, rgba(3, 3, 3, 0.95) 0, rgba(3, 3, 3, 0.82) 30%, rgba(3, 3, 3, 0.4) 48%, rgba(3, 3, 3, 0) 62%);
  }
}
.cine .ad-beat {
  display: block;
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  padding: 0;
  z-index: 3;
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.22s ease, transform 0.8s var(--ease);
  pointer-events: none;
}
.cine .ad-beat.is-on {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease 0.22s, transform 0.9s var(--ease) 0.22s;
  pointer-events: auto;
}
.cine .ad-beat .still { display: none; }
/* the opening words show at once, before the 3D has started */
.cine:not(.cine-ready) .ad-open { opacity: 1; transform: none; pointer-events: auto; }
.cine .ad-beat h1.display { font-size: clamp(46px, min(12.4vw, 7.4svh), 112px); }
.cine .ad-beat h2.display { font-size: clamp(42px, min(11.5vw, 7svh), 96px); }
.cine .ad-beat .lede { font-size: clamp(17px, min(4.4vw, 2.4svh), 21px); max-width: 30em; }
.cine .ad-beat .cta-row { margin-top: clamp(16px, 2.6svh, 26px); }
.cine .cue {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(14px, 2.2svh, 24px);
  font-size: 14px;
  color: var(--bone-2);
}
.cine .cue::before {
  content: "";
  width: 1px; height: 30px;
  background: linear-gradient(var(--gold), rgba(201, 163, 90, 0));
  transform-origin: top;
}
@media (prefers-reduced-motion: no-preference) { .cine .cue::before { animation: cue 2.4s ease-in-out infinite; } }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 899px) {
  /* keep the middle lines clear of the demo button in the corner */
  .cine .ad-beat:not(.ad-open):not(.ad-close) { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
}

/* wide screens: the words on the left; the film is a tall panel on the right, over a soft,
   blurred copy of the shot that's showing */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .cine .ad-shade {
    background:
      linear-gradient(180deg, rgba(3, 3, 3, 0.5) 0, rgba(3, 3, 3, 0) 14%),
      linear-gradient(90deg, rgba(3, 3, 3, 0.82) 0, rgba(3, 3, 3, 0.5) 30%, rgba(3, 3, 3, 0) 54%);
  }
  .cine .ad-backdrop {
    display: block;
    background-color: #030303;
    background-position: 50% 40%;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(44px) brightness(0.42) saturate(0.9);
    transform: scale(1.18);
  }
  .cine .ad-film, .cine .ad-light {
    left: auto;
    right: 0;
    width: min(58%, calc(100svh * 0.76));
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0, #000 22%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0, #000 22%);
  }
  .cine .ad-shot { object-position: 50% var(--fy, 50%); transform-origin: 50% 45%; }
  .cine .ad-beat {
    right: auto;
    width: min(40rem, 44%);
    top: auto;
    bottom: 13vh;
  }
  .cine .ad-beat h1.display { font-size: clamp(64px, 6.4vw, 124px); }
  .cine .ad-beat h2.display { font-size: clamp(56px, 5.6vw, 108px); }
  .said p { font-size: clamp(44px, 4.4vw, 76px); }
}
/* short landscape phones */
@media (orientation: landscape) and (max-height: 520px) {
  .cine .ad-shade { background: linear-gradient(90deg, rgba(3, 3, 3, 0.86) 0, rgba(3, 3, 3, 0.6) 36%, rgba(3, 3, 3, 0) 60%); }
  .cine .ad-beat { right: auto; width: 50%; bottom: 18px; }
  .cine .ad-beat h1.display, .cine .ad-beat h2.display { font-size: clamp(32px, 11svh, 56px); }
  .cine .ad-beat .lede { font-size: 15px; }
  .cine .said p { font-size: clamp(28px, 9svh, 44px); }
  .cine .cue { display: none; }
  .cine .ad-shot { --fy: 40%; }
  /* little height: the opening keeps its headline and buttons; the line under it stays for screen readers */
  .cine .ad-open { width: 58%; }
  .cine .ad-open .lede { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cine .ad-beat .cta-row { margin-top: 14px; flex-wrap: nowrap; }
  .cine .ad-beat .cta-row .btn { min-height: 44px; padding: 0 14px; font-size: 15px; white-space: nowrap; }
}

/* ------------------------------------------------------------------ morning-light sections */
.paper { background: var(--paper); color: var(--ink); }
.paper.alt { background: var(--paper-2); }
.wrap { max-width: 78rem; margin: 0 auto; padding: 0 var(--gutter); }
.paper, .about, .join { padding: clamp(84px, 12vw, 152px) 0; }

/* live demo */
.demo-grid { display: grid; gap: 40px; align-items: start; }
.demo-card {
  background: var(--paper);
  border-top: 3px solid var(--copper);
  padding: clamp(24px, 3.4vw, 40px);
}
.demo-card h3 { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; }
.ticks { list-style: none; margin: 18px 0 26px; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.42em;
  width: 12px; height: 6px;
  border-left: 2px solid var(--copper-ink);
  border-bottom: 2px solid var(--copper-ink);
  transform: rotate(-45deg);
}
@media (min-width: 900px) { .demo-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 72px; } }

/* about face (dark) */
.about { background: var(--night); }
.about-grid { display: grid; gap: 36px; align-items: center; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-copy .lede { margin-top: 18px; }
.said-block { margin: 30px 0 22px; padding-left: 18px; border-left: 2px solid var(--gold); }
.said-block p { font-size: clamp(28px, 6.4vw, 44px); max-width: 22ch; }
.about-copy > p:not(.lede) { color: var(--bone-2); max-width: 34em; }
.achievements { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; }
.achievements li { padding-left: 18px; position: relative; }
.achievements li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 8px; height: 1px; background: var(--gold); }
@media (min-width: 900px) { .about-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 80px; } }

/* business, questions */
.business-grid, .qa-grid { display: grid; gap: 28px; align-items: start; }
.business .plain { margin-top: 14px; color: var(--ink-2); max-width: 34em; }
.business .btn { margin-top: 28px; }
@media (min-width: 900px) {
  .business-grid, .qa-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 72px; }
}
.faqs { border-top: 1px solid var(--ink); }
.faq { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 22px 48px 22px 0;
  font-weight: 600;
  font-size: clamp(18px, 1.4vw + 12px, 21px);
  line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: "";
  position: absolute;
  right: 10px; top: 50%;
  width: 16px; height: 2px;
  background: var(--copper-ink);
  transition: transform 0.25s;
}
.faq summary::after { transform: rotate(90deg); }
.faq[open] summary::after { transform: rotate(0deg); }
.faq p { padding: 0 0 24px; color: var(--ink-2); max-width: 42em; }

/* ------------------------------------------------------------------ contact */
.join { background: var(--night-2); border-top: 1px solid rgba(201, 163, 90, 0.25); }
.join-grid { display: grid; gap: 44px; }
.join-copy .lede { margin-top: 18px; }
.direct { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.direct a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; text-underline-offset: 5px; }
.join-form {
  background: var(--night-3);
  padding: clamp(22px, 3.4vw, 40px);
  border: 1px solid rgba(239, 233, 225, 0.08);
  display: grid;
  gap: 20px;
  align-content: start;
}
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 15px; padding: 0; }
.field legend { margin-bottom: 8px; }
.field input[type="text"], .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  background: #0f0d0b;
  color: var(--bone);
  border: 1px solid rgba(239, 233, 225, 0.22);
  border-radius: 2px;
  font: inherit;
  font-size: 17px;
}
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 163, 90, 0.25); }
.field input[aria-invalid="true"] { border-color: #e48a7a; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 400 !important; font-size: 17px !important; cursor: pointer; }
.choice input { width: 20px; height: 20px; accent-color: var(--gold); margin: 0; }
.opt { font-weight: 400; color: var(--bone-3); }
.hint { font-size: 14px; color: var(--bone-3); }
.err { font-size: 14px; color: #f0a596; min-height: 0; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; }
.join-form .btn { justify-self: start; min-width: 140px; }
.form-status { font-size: 15px; color: var(--bone-2); }
.form-status:empty { display: none; }
.form-status.is-error { color: #f0a596; }
.join-done { padding: clamp(22px, 3.4vw, 40px); background: var(--night-3); }
.join-done h3 { font-size: 48px; }
.join-done .lede { margin-top: 12px; }
@media (min-width: 900px) { .join-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: 80px; align-items: start; } }

/* ------------------------------------------------------------------ sticky demo button */
.sticky-cta {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.sticky-cta.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.sticky-cta .btn { box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7); }
.sticky-cta .btn.is-off { display: none; }
.tour-stop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  background: rgba(11, 10, 9, 0.85);
  color: var(--bone);
  border: 1px solid rgba(239, 233, 225, 0.4);
  border-radius: 2px;
  font-weight: 600;
  cursor: pointer;
}
.tour-stop span { width: 10px; height: 10px; background: currentColor; }

/* ------------------------------------------------------------------ footer */
.site-foot { background: var(--night); padding: 56px 0 calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(239, 233, 225, 0.08); }
.foot-grid { display: grid; gap: 30px; }
.foot-line { margin-top: 12px; font-family: var(--display); font-weight: 700; font-size: 28px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.foot-links a { display: inline-flex; min-height: 44px; align-items: center; color: var(--bone-2); text-decoration: none; }
.foot-links a:hover { color: var(--bone); text-decoration: underline; text-underline-offset: 5px; }
.foot-links + .foot-links { margin-top: 6px; }
.foot-tools { display: grid; gap: 10px; justify-items: start; }
.motion-toggle {
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--bone-2);
  text-decoration: underline;
  text-underline-offset: 5px;
  cursor: pointer;
}
.transcript summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; color: var(--bone-2); text-decoration: underline; text-underline-offset: 5px; }
.transcript ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--bone-2); max-width: 44em; }
.legal { font-size: 14px; color: var(--bone-3); max-width: 60em; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); } .legal { grid-column: 1 / -1; } }

/* ------------------------------------------------------------------ simple pages (404, thanks) */
.page-simple { min-height: 80vh; display: grid; align-content: center; gap: 18px; padding: 120px var(--gutter) 80px; }
.page-simple h1.display { font-size: clamp(48px, 12vw, 96px); max-width: 14ch; }
