/* ==========================================================================
   Nudge — landing
   ========================================================================== */

:root {
  --bone: #f3f1ec;
  --paper: #fbfaf7;
  --white: #ffffff;
  --ink: #121212;
  --ink-2: #4a4843;
  --ink-3: #6b675f;   /* 4.8:1 on bone */
  --line: rgba(18, 18, 18, 0.09);
  --line-2: rgba(18, 18, 18, 0.16);
  /* warm espresso darks: the same lamp-lit home after dark */
  --night: #16110d;
  --night-2: #211913;
  --night-line: rgba(255, 236, 222, 0.11);
  /* ember is the puck's LED: fills, glows, the signal colour */
  --ember: #ff5b1f;
  --ember-hi: #ff7a45;     /* ember text on dark surfaces */
  --ember-deep: #e0480f;   /* large ember type on light (3.7:1 on bone) */
  --ember-ink: #a33a0e;    /* small ember type on light (6.6:1 on white, 4.7:1 on tints) */
  --ember-soft: rgba(255, 91, 31, 0.12);
  --on-ember: #2a0f04;     /* text on ember surfaces (7:1) */
  /* status: fills keep their brightness; *-ink variants pass 4.5:1 as text */
  --ok: #2f9e5b;
  --ok-ink: #1f7a45;
  --warn: #e08a2c;
  --warn-ink: #a8540c;

  --display: "Bricolage Grotesque", "Geist", ui-sans-serif, system-ui, sans-serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(20px, 4vw, 48px);
  --maxw: 1240px;
  --radius: 34px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 1px 2px rgba(18, 18, 18, 0.04), 0 12px 32px -12px rgba(18, 18, 18, 0.12);
  --shadow-float: 0 1px 2px rgba(18, 18, 18, 0.05), 0 24px 60px -20px rgba(18, 18, 18, 0.25);

  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
/* Lenis smooth scroll (official stylesheet, v1.3) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--ember); color: var(--on-ember); }
html { scrollbar-color: rgba(42, 15, 4, 0.32) var(--bone); }
input, textarea { caret-color: var(--ember); }
:focus-visible { outline: 2px solid var(--ember-deep); outline-offset: 3px; border-radius: 8px; } /* 3.7:1 on bone */
/* Mobile browsers widen the layout viewport to fit anything that overflows; clip at the root too.
   (clip, not hidden: hidden on body would turn it into a scroll container and break position: sticky) */
html { overflow-x: hidden; overflow-x: clip; }

/* skip link: first stop for keyboard users, straight to the sign-up */
.skip {
  position: fixed; left: 16px; top: 16px; z-index: 300;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 500;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}
.skip:focus { transform: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; }
.muted { color: var(--ink-3); }
.small { font-size: 12px; }
.ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg use { pointer-events: none; }

/* film grain */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-optical-sizing: auto; }
h1, h2 {
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}
h2 { font-size: clamp(38px, 4.8vw, 72px); }
h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
em { font-style: normal; }

/* word-mask reveal (JS splits [data-words] headings) */
.wm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.wi { display: inline-block; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 34ch; text-wrap: pretty; }


/* ---------- buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h);
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  transition: transform 0.5s var(--spring), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
}
.btn .ico { transition: transform 0.5s var(--spring); }
.btn:hover { transform: translateY(-2px) rotate(-1.2deg); }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn-sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn-sm .ico { width: 14px; height: 14px; }
.btn-dark {
  background: var(--ink); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 8px 20px -8px rgba(18,18,18,0.5);
}
.btn-dark:hover { background: #2a2a2a; }
.btn-ghost {
  background: rgba(255,255,255,0.55);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line-2) inset;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: #fff; }
.btn-ember {
  background: var(--ember); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 10px 30px -10px rgba(255, 91, 31, 0.8);
}
.btn-ember:hover { background: #ff6d36; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo-word { font-size: 20px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.logo-mark {
  /* the Nudge mark: a sage dot giving the house a nudge (assets/nudge-mark.svg, 227 × 196) */
  width: 26px; height: 22px;
  background: url("assets/nudge-mark.svg") center / contain no-repeat;
  flex: none;
}
.logo-mark i { display: none; }
.logo-mark.sm { width: 19px; height: 16px; }

/* ---------- nav ----------
   No bar, set straight on the page: the logo on the left; small uppercase links and a dashed "join"
   pill on the right. Each link's letters roll over on hover, a dashed line marks the section you're
   in (and slides to the link you point at), and the page dims behind while you choose. Bone over
   the dark surfaces, ink over the light ones; once the page has moved, a soft fade sits behind. */
.nav {
  --nav-ink: var(--ink);
  --nav-on: var(--bone); /* text on a filled pill */
  --nav-bg: var(--bone);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; gap: clamp(20px, 3vw, 40px);
  padding: 26px clamp(28px, 3.4vw, 48px) 0;
  color: var(--nav-ink);
  pointer-events: none;
  transition: transform 0.6s var(--ease), color 0.4s var(--ease);
}
.nav.on-dark { --nav-ink: var(--bone); --nav-on: var(--ink); --nav-bg: var(--night); }
.nav.is-hidden { transform: translateY(-130%); }
.nav > a, .nav > button, .nav-links { pointer-events: auto; }
.nav::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; z-index: -1;
  height: 116px;
  background: linear-gradient(var(--nav-bg) 30%, transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.nav.is-scrolled::before { opacity: 0.94; }
.nav .logo { color: inherit; transition: color 0.4s var(--ease); }

.nav-links {
  position: relative;
  display: flex; gap: clamp(18px, 2.4vw, 34px);
  margin-left: auto;
}
.nav-links a, .nav-cta, .nav-menu-btn {
  font-family: var(--sans);
  font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1;
}
.nav-links a { padding: 10px 0; color: inherit; transition: opacity 0.2s var(--ease); }
.nav-links:hover a { opacity: 0.5; }
.nav-links:hover a:hover, .nav-links a.is-current { opacity: 1; }
/* rolling letters: each sits in a clip with its twin underneath, and rolls up a beat after the last */
.fl { display: inline-block; overflow: hidden; overflow: clip; vertical-align: top; }
.fl-i { position: relative; display: inline-block; transition: transform 0.6s var(--spring); transition-delay: calc(var(--i) * 18ms); }
.fl-i::after { content: attr(data-c); position: absolute; left: 0; top: 100%; }
a:hover .fl-i, a:focus-visible .fl-i { transform: translateY(-100%); }
.nav-line {
  position: absolute; left: 0; bottom: 1px;
  width: 0; height: 1px;
  background: repeating-linear-gradient(90deg, currentColor 0 3px, transparent 3px 6px);
  opacity: 0;
  transition: transform 0.45s var(--ease), width 0.45s var(--ease), opacity 0.3s var(--ease);
  pointer-events: none;
}

.nav-cta, .nav-menu-btn {
  position: relative;
  display: inline-flex; align-items: center;
  height: 40px;
  padding: 0 18px 0 31px;
  border: 1px dashed currentColor;
  border-radius: 999px;
  background: none;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.nav-cta::before, .nav-menu-btn::before {
  content: "";
  position: absolute; left: 15px; top: 50%;
  width: 6px; height: 6px; margin-top: -3px;
  border-radius: 50%;
  background: var(--ember);
}
.nav-cta:hover { background: var(--nav-ink); color: var(--nav-on); border-color: var(--nav-ink); border-style: solid; }
.nav-menu-btn { display: none; margin-left: auto; }
.nmb-close { display: none; }

/* the page dims behind the links while you choose (and behind the menu on phones) */
.nav-veil {
  position: fixed; inset: 0; z-index: -2;
  background: rgba(22, 17, 13, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
@media (hover: hover) {
  .nav-links:hover ~ .nav-veil { opacity: 1; }
}

/* phones: a dark panel slides in from the right with the links set large */
.nav-menu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1;
  width: min(84vw, 420px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 96px 30px 30px;
  color: var(--bone);
  background: var(--night);
  pointer-events: auto;
  animation: panelIn 0.5s var(--ease);
}
.nav-menu[hidden] { display: none; }
@keyframes panelIn { from { transform: translateX(100%); } }
.nav-menu a:not(.btn) {
  padding: 2px 0 6px;
  font-family: var(--display);
  font-size: clamp(34px, 9.4vw, 46px); font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--bone);
}
.nav-menu a:first-child { margin-top: auto; }
.nav-menu a.is-current { background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 8px) left bottom / 100% 1.5px no-repeat; }
.nav-menu-cta { margin-top: auto; }
.nav.menu-open .nav-veil { opacity: 1; pointer-events: auto; }
.nav.menu-open .nav-menu-btn { z-index: 2; background: var(--bone); color: var(--ink); border-color: var(--bone); border-style: solid; }
.nav.menu-open .nmb-open { display: none; }
.nav.menu-open .nmb-close { display: inline; }

/* ==========================================================================
   STAGE (hero / problem / inside share one sticky canvas)
   ========================================================================== */
.stage { position: relative; }
.puck-layer {
  position: fixed; inset: 0;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}
.puck-layer.is-front { z-index: 4; }
.puck-layer.is-off canvas, .puck-layer.is-off .puck-shadow { visibility: hidden; }
.puck-layer canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.puck-layer canvas.is-ready { opacity: 1; }
.puck-shadow {
  position: absolute;
  left: 0; top: 0;
  width: 100px; height: 30px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(40, 30, 20, 0.32), rgba(40, 30, 20, 0.12) 55%, transparent);
  filter: blur(6px);
  will-change: transform, opacity;
  opacity: 0;
}
.puck-glow {
  position: absolute; left: 0; top: 0;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 110, 50, 0.55), rgba(255, 91, 31, 0.18) 45%, rgba(255, 91, 31, 0) 100%);
  opacity: 0;
  will-change: transform, opacity;
}
.puck-layer.is-off .puck-glow { visibility: hidden; }
.puck-fallback { display: none; }
.no-webgl .puck-fallback {
  display: grid; place-items: center;
  position: absolute; inset: 0;
}
.no-webgl .puck-fallback .css-puck { position: absolute; }

.sticky {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
  overflow: clip; /* clips without becoming a scroll container */
}

/* ---------- hero: the puck on a dark field of dots ----------
   A card inset from the page's edges. The puck itself is 3D (in the canvas above); the dots behind
   it ripple out from it, once each time the headline's word turns over and hard on a nudge. */
.hero {
  position: relative;
  height: calc(100vh - 12px);
  height: calc(100svh - 12px);
  min-height: 560px;
  margin: 12px 12px 0;
  border-radius: 30px;
  overflow: hidden;
  overflow: clip;
  color: var(--bone);
  background: linear-gradient(180deg, #211913 0%, var(--night) 62%);
}
.hero-field {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  /* strongest round the puck, quiet behind the headline */
  -webkit-mask-image: radial-gradient(80% 95% at var(--fx, 50%) var(--fy, 70%), #000 30%, rgba(0, 0, 0, 0.18) 100%);
  mask-image: radial-gradient(80% 95% at var(--fx, 50%) var(--fy, 70%), #000 30%, rgba(0, 0, 0, 0.18) 100%);
}
/* above the puck canvas, so the copy is never under the puck */
.hero-inner {
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
  will-change: transform, opacity;
}
.hero-inner a, .hero-inner button { pointer-events: auto; }
.hero-head {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding-top: clamp(112px, 16vh, 168px);
}
.hero-title {
  margin: 0;
  font-size: clamp(46px, 7vw, 112px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: var(--bone);
}
.hero-title .line { display: block; width: fit-content; margin-inline: auto; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero-for { color: rgba(243, 241, 236, 0.5); font-weight: 500; }
/* rolling device word: its box is as wide as the longest word, and the line slides to stay centred */
.rot {
  position: relative;
  display: inline-grid;
  vertical-align: bottom;
  overflow: hidden;
  padding-bottom: 0.24em; margin-bottom: -0.24em;
  text-align: left;
  grid-template-columns: minmax(0, 1fr);
  color: var(--ember-hi);
}
.hero-title .line-2 {
  padding-bottom: 0.26em; margin-bottom: -0.26em;
  transform: translateX(var(--shift, 0px));
  transition: transform 0.7s var(--ease);
}
.squiggle {
  position: absolute; left: 0.02em; bottom: 0.03em;
  width: calc(var(--ww, 100%) * 0.94); height: 0.17em;
  transition: width 0.5s var(--ease);
  overflow: visible;
  pointer-events: none;
}
.squiggle path {
  fill: none;
  stroke: var(--ember);
  stroke-width: 3.2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.squiggle.draw path { animation: squiggle 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards; }
@keyframes squiggle { to { stroke-dashoffset: 0; } }
.rot-w {
  grid-area: 1 / 1;
  justify-self: start;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(110%);
  transition: transform 0.75s var(--ease), opacity 0.35s var(--ease);
}
.rot-w.is-on { opacity: 1; transform: none; transition-delay: 0.08s; }
.rot-w.is-out { opacity: 0; transform: translateY(-60%); transition-duration: 0.45s, 0.25s; }
.hero-title .line-in { display: inline-block; }
.js .hero-title .line-in { transform: translateY(110%); }

.hero-sub {
  margin-top: clamp(18px, 2.6vh, 26px);
  max-width: 34ch;
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.45;
  color: rgba(243, 241, 236, 0.68);
  text-wrap: balance;
}
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: clamp(22px, 3.4vh, 32px); }
.btn-light {
  background: var(--bone); color: var(--ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 12px 30px -12px rgba(0, 0, 0, 0.7);
}
.btn-light:hover { background: #fff; }
.btn-line { background: rgba(255, 236, 222, 0.04); color: var(--bone); box-shadow: 0 0 0 1px rgba(255, 236, 222, 0.22) inset; }
.btn-line:hover { background: rgba(255, 236, 222, 0.1); }

/* a hand-drawn note pointing at the puck */
.nudge-hint {
  position: absolute; left: 0; top: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 4px 6px;
  border: 0; border-radius: 12px;
  background: none;
  color: var(--bone);
  cursor: pointer;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s var(--ease), visibility 0s 0.4s;
}
.nudge-hint.is-on { visibility: visible; opacity: 1; transition: opacity 0.8s var(--ease) 0.6s, visibility 0s; }
.nh-label {
  display: block;
  font-family: var(--display);
  font-size: clamp(19px, 1.35vw, 25px); font-weight: 600;
  letter-spacing: -0.02em;
  transform: rotate(-5deg);
  transition: color 0.3s var(--ease), transform 0.5s var(--spring);
}
.nudge-hint:hover .nh-label { color: var(--ember-hi); transform: rotate(-3deg) translateY(-2px); }
.nh-arrow { width: clamp(96px, 6.6vw, 128px); height: auto; aspect-ratio: 120 / 70; margin: -2px 0 0 34px; overflow: visible; }
.nh-arrow path { fill: none; stroke: var(--ember); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pulse-dot {
  position: relative;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ember);
}
.pulse-dot::after {
  content: ""; position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--ember);
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(1.8); opacity: 0; } }

.puck-hit {
  position: absolute; left: 0; top: 0;
  z-index: 3;
  width: 100px; height: 60px;
  padding: 0; border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.puck-hit:focus-visible { outline: 2px solid var(--ember-hi); outline-offset: 8px; }

/* intro animation (pre-JS state set via .is-loading) */
.is-loading [data-intro] { opacity: 0; transform: translateY(18px); filter: blur(6px); }
[data-intro] { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); }

/* ---------- problem: a wall of apps that falls into one word ---------- */
.problem { position: relative; height: 240vh; }
.problem-head {
  position: relative; z-index: 2;
  padding-top: clamp(96px, 14vh, 140px);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.problem-head h2 { font-size: clamp(36px, 4.2vw, 64px); }
.problem-head .lede { margin-inline: auto; margin-top: 16px; }
.swap { display: grid; }
.swap > div { grid-area: 1 / 1; }
.swap-b { opacity: 0; }

/* fourteen apps, fourteen identities: every one arrives with its own type, colour, login and alert */
.wall {
  position: absolute; left: 0; right: 0;
  top: var(--wall-top, 42%); bottom: 5vh;
  z-index: 2;
  display: flex; flex-wrap: wrap; justify-content: center; align-content: center;
  gap: 0.16em 0.42em;
  padding: 0 var(--gutter);
  font-size: clamp(30px, 5.2vw, 90px);
  line-height: 1;
  pointer-events: none;
}
.wa { position: relative; display: inline-flex; align-items: flex-start; white-space: nowrap; }
.wn { display: inline-block; font-family: var(--display); }
.wn .l { display: inline-block; white-space: pre; will-change: transform, opacity; }
.bdg {
  position: relative; top: -0.12em;
  min-width: 1.6em; height: 1.6em;
  margin-left: 0.1em;
  padding: 0 0.45em;
  border-radius: 999px;
  display: grid; place-items: center;
  font: 600 0.2em/1 var(--sans);
  color: #fff;
  background: #d6302a; /* alert red, AA with white */
  box-shadow: 0 0 0 0.12em var(--bone);
}
.bdg.ping { animation: bdg-ping 0.6s var(--spring); }
@keyframes bdg-ping { 0% { scale: 1; } 35% { scale: 1.45; } 100% { scale: 1; } }
.tag {
  align-self: center;
  margin-left: 0.3em;
  padding: 0.45em 0.7em;
  border-radius: 0.4em;
  font: 500 0.17em/1 var(--mono);
  font-style: normal;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  background: rgba(18, 18, 18, 0.06);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.w1 { font-size: 1.12em; }
.w1 .wn { font-weight: 800; letter-spacing: -0.06em; color: #e9a800; }
.w2 .wn { font-family: var(--mono); font-size: 0.62em; letter-spacing: 0.14em; color: #2f6bff; align-self: center; }
.w3 .wn { font-weight: 250; letter-spacing: -0.03em; color: #14a37f; }
.w4 { transform: rotate(-3deg); }
.w4 .wn { font-weight: 800; letter-spacing: 0.02em; color: transparent; -webkit-text-stroke: 0.035em #7b4dff; }
.w5 .wn { font-weight: 700; font-stretch: 75%; color: #0f9f9a; }
.w6 .wn { font-family: var(--sans); font-weight: 500; color: #20b4e8; transform: skewX(-12deg); }
.w7 .wn { font-weight: 800; letter-spacing: -0.07em; color: #23232a; }
.w8 { transform: rotate(2deg); }
.w8 .wn { font-size: 0.9em; font-weight: 600; color: #e0479e; }
.w9 .wn { font-family: var(--mono); font-size: 0.7em; color: #6b675f; align-self: center; }
.w10 .wn { font-family: var(--sans); font-weight: 400; letter-spacing: -0.04em; color: #4e9a3a; }
.w11 .wn { font-size: 0.82em; font-weight: 700; font-stretch: 75%; letter-spacing: 0.06em; color: #c2621f; align-self: center; }
.w12 .wn { font-weight: 700; color: transparent; -webkit-text-stroke: 0.03em var(--ink); }
.w13 .wn { font-size: 1.22em; font-weight: 200; color: #5f9fd8; }
.w14 { transform: rotate(-2deg); }
.w14 .wn { font-weight: 800; color: #e23b3b; }

/* the word they fall into; the puck lands after it as the full stop */
.word {
  position: absolute; left: 0; right: 0;
  top: var(--word-top, 52%);
  z-index: 2;
  margin: 0;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(104px, 21vw, 300px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--ink);
  pointer-events: none;
}
.word span { display: inline-block; opacity: 0; will-change: transform, opacity; }
.word-dot { display: inline-block; width: var(--dot, 0px); height: 0; }

/* ---------- inside ---------- */
.inside {
  position: relative;
  height: 430vh;
  background: var(--night);
  color: #fff;
  border-radius: var(--radius) var(--radius) 0 0;
}
.inside .sticky { overflow: clip; }
.spot {
  position: absolute; inset: 0;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background:
    radial-gradient(42% 52% at var(--sx, 50%) var(--sy, 45%), rgba(255, 120, 60, 0.2), rgba(255, 91, 31, 0.06) 45%, transparent 75%),
    radial-gradient(60% 40% at 50% 110%, rgba(255, 91, 31, 0.1), transparent 70%);
  opacity: var(--so, 1);
  pointer-events: none;
}
.show { position: absolute; inset: 0; pointer-events: none; --gap: 220px; }
.show-l, .show-r {
  position: absolute; top: 50%;
  margin: 0;
  font-size: clamp(40px, 6.2vw, 104px);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.88;
  transform: translateY(-50%);
  white-space: nowrap;
}
.show-l { right: calc(50% + var(--gap)); text-align: right; }
.show-r { left: calc(50% + var(--gap)); color: rgba(255,255,255,0.42); }
.dim-label {
  position: absolute; left: 0; top: 0;
  margin: 0;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px; letter-spacing: 0.08em;
  color: #fff;
  background: var(--night);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.22) inset;
  opacity: 0;
  white-space: nowrap;
}
.dim-note {
  position: absolute; left: 0; top: 0;
  margin: 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

/* construction drawing: the puck from above as the circles it is drawn from, with bezier
   anchors (squares), handles (dots) and guides running off the edges of the screen */
.cad { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; visibility: hidden; } /* in the puck layer, over the canvas: a pen tool over a shape */
.cad .guide { stroke: rgba(255, 236, 222, 0.16); stroke-width: 1; stroke-dasharray: 3 6; vector-effect: non-scaling-stroke; }
.cad .guide.fine { stroke: rgba(255, 236, 222, 0.09); }
.cad .arc { fill: none; stroke: var(--ember); stroke-width: 1.4; stroke-dasharray: 2 4; }
.cad .arc.in { stroke-width: 1.2; opacity: 0.85; }
.cad .handle { stroke: var(--ember); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0.85; }
.cad .knob { fill: var(--ember); }
.cad .anchor { fill: var(--ember); stroke: #16110d; stroke-width: 1.5; }
.cad .mic { fill: none; stroke: var(--ember); stroke-width: 1.3; }
.cad .dimline { stroke: rgba(255, 255, 255, 0.6); stroke-width: 1; }
.inside-copy { opacity: 0; }
.inside-h { font-size: clamp(32px, 3.4vw, 52px); }
.inside h2 .muted, .inside .muted { color: rgba(255,255,255,0.42); }
.inside .lede { color: rgba(255,255,255,0.66); max-width: 32ch; margin-top: 22px; }
.inside-copy {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; justify-content: center;
}
.inside-copy > * { max-width: 420px; }
.snap-note {
  margin-top: 28px;
  color: rgba(255,255,255,0.5);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.snap-note.is-on { opacity: 1; }

.labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.labels li {
  position: absolute; left: 0; top: 0;
  display: flex; align-items: center;
  opacity: 0;
  will-change: transform, opacity;
}
.lbl-line {
  position: relative;
  height: 1px;
  width: var(--w, 80px);
  background: linear-gradient(90deg, rgba(255,255,255,0.15), rgba(255,255,255,0.45));
  transform-origin: left center;
  transform: scaleX(var(--s, 1));
}
.lbl-line::before {
  content: "";
  position: absolute; left: -3px; top: -3px;
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.12);
}
.lbl-text {
  display: inline-flex; align-items: center; gap: 10px;
  margin-left: 12px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  background: rgba(40, 31, 24, 0.9);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1) inset;
}
.lbl-text i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ember-hi);
}

/* ==========================================================================
   HOW (pinned stepper)
   ========================================================================== */
.how {
  position: relative;
  z-index: 3;
  height: 300vh;
  margin-top: calc(var(--radius) * -1);
  background: var(--bone);
  border-radius: var(--radius) var(--radius) 0 0;
}
/* the puck's cable, from behind it to the router off-screen (drawn in as the puck lands) */
.how-cable { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; visibility: hidden; }
.how-cable.is-on { visibility: visible; }
.no-webgl .how-cable { display: none; }
.how-cable path { fill: none; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.cable { stroke: #262529; }
.cable-hi { stroke: rgba(255, 255, 255, 0.2); }
.cable-shade { stroke: rgba(40, 30, 20, 0.14); filter: blur(3px); }
.how-grid {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.how-copy h2 { margin-bottom: 44px; font-size: clamp(36px, 3.9vw, 60px); }
.steps { display: flex; flex-direction: column; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  padding: 20px 0 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  transition: color 0.5s var(--ease);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num { padding-top: 4px; transition: color 0.5s var(--ease); }
.step h3 { color: inherit; transition: color 0.5s var(--ease); }
.step-desc {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.6s var(--ease), opacity 0.45s var(--ease);
}
.step-desc > p {
  min-height: 0;
  overflow: hidden;
  padding-top: 8px;
  font-size: 15.5px;
  color: var(--ink-2);
  max-width: 40ch;
}
.step.is-active { color: var(--ink); }
.step.is-active .step-num { color: var(--ember-ink); }
.step.is-active .step-desc { grid-template-rows: 1fr; opacity: 1; }
.step-bar {
  position: absolute; left: 0; top: -1px;
  height: 1px; width: 100%;
  overflow: hidden;
}
.step-bar i {
  display: block; height: 100%; width: 100%;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(0);
}

.how-device { perspective: 1400px; display: flex; justify-content: center; }
.device {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: min(540px, 70vh);
  border-radius: 38px;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(18,18,18,0.06), var(--shadow-float);
  overflow: hidden;
  overflow: clip;
  transform-style: preserve-3d;
  will-change: transform;
}
.device::before {
  /* top sheen */
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0) 30%);
  pointer-events: none;
}
.device-top {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px 0;
}
.device-home { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; letter-spacing: -0.02em; }
.device-status {
  color: var(--ink-3);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(18,18,18,0.04);
  transition: color 0.4s, background-color 0.4s;
}
.scene {
  position: absolute; inset: 64px 0 0;
  padding: 18px 24px 24px;
  display: flex; flex-direction: column;
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
}

/* scene 1 */
.count-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.count {
  font-family: var(--display);
  font-size: 76px; font-weight: 600;
  letter-spacing: -0.04em; line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.radar {
  position: relative;
  width: 74px; height: 74px;
  border-radius: 50%;
}
.radar i {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid var(--line-2);
}
.radar i:nth-child(2) { inset: 14px; }
.radar i:nth-child(3) { inset: 28px; background: var(--ink); border: 0; box-shadow: 0 0 0 4px rgba(255,91,31,0.12); }
.radar span {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255,91,31,0.35), rgba(255,91,31,0) 30%);
  animation: sweep 2.4s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.rooms { display: flex; flex-direction: column; }
.rooms li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.dots { display: flex; gap: 5px; }
.dots i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink);
  transform: scale(0);
}
.protos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.protos li {
  font-size: 12.5px; font-weight: 500;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--ink-3);
  box-shadow: 0 0 0 1px var(--line) inset;
  transition: none;
}
.protos li.on { color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--line-2) inset, 0 4px 10px -6px rgba(18,18,18,0.25); }

/* scene 2 */
.newdev {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 8px 20px -14px rgba(18,18,18,0.3);
  margin-bottom: 18px;
}
.newdev strong { display: block; font-weight: 500; font-size: 15px; letter-spacing: -0.01em; }
.newdev-ico, .toast-ico, .hico {
  position: relative;
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--bone);
  flex: none;
}
.newdev-ico svg, .toast-ico svg, .hico svg, .repo svg, .node svg, .sat svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.newdev-ico b {
  position: absolute; top: -5px; right: -5px;
  width: 16px; height: 16px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 600; color: #fff;
  background: var(--ember);
}
.label { color: var(--ink-3); font-size: 12.5px; font-weight: 500; margin-bottom: 8px; }
.repos { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.repo {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  font-family: var(--mono); font-size: 12.5px;
  color: var(--ink-2);
  box-shadow: 0 0 0 1px var(--line) inset;
  transition: none;
}
.repo svg { width: 15px; height: 15px; color: var(--ink-3); }
.repo em { font-family: var(--mono); font-style: normal; font-size: 11.5px; color: var(--ink-3); margin-left: auto; letter-spacing: 0; }
.repo .tick { margin-left: 4px; }
.tick {
  width: 18px; height: 18px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--ok); color: #fff;
  flex: none;
}
.tick svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.repo .tick { transform: scale(0); }
.pick-tag {
  font-family: var(--sans); font-size: 11.5px; font-weight: 600;
  color: var(--ember-ink);
  padding: 2px 8px; border-radius: 999px;
  background: var(--ember-soft);
  opacity: 0; transform: scale(0.9);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.repo.is-picked .pick-tag { opacity: 1; transform: none; }
.repo.is-picked { color: var(--ink); background: #fff; box-shadow: 0 0 0 1.5px var(--ink) inset, 0 8px 18px -12px rgba(18,18,18,0.4); }
.repo.is-picked svg { color: var(--ember-deep); }
.repo.is-dim { opacity: 0.42 !important; }
.repo { transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), color 0.4s var(--ease); }
.pipeline {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-bottom: 18px;
}
.pipeline li {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11.5px; color: var(--ink-3);
  text-align: center;
}
.node {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper);
  color: var(--ink-3);
  box-shadow: 0 0 0 1px var(--line-2) inset;
}
.pipeline li.on { color: var(--ink); }
.pipeline li.on .node { background: var(--ink); color: #fff; box-shadow: none; }
.pipeline li.done .node { background: var(--ok); }
.pipe-track {
  position: absolute; left: 12.5%; right: 12.5%; top: 19px;
  height: 2px; background: var(--line);
  z-index: 0;
}
.pipe-fill { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.seen { margin-top: auto; }
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px 10px 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 14px 30px -16px rgba(18,18,18,0.35);
}
.toast strong { font-weight: 500; font-size: 15px; letter-spacing: -0.01em; }
.ok-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-left: auto; box-shadow: 0 0 0 4px rgba(47,158,91,0.15); }

/* scene 3 */
.scene-ask { padding-top: 12px; }
.room {
  position: relative;
  height: 150px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ebe7df, #e2ddd3);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 0 0 1px var(--line) inset;
}
.room::after {
  /* darkness overlay */
  content: "";
  position: absolute; inset: 0;
  background: #121216;
  opacity: var(--dark, 0);
  pointer-events: none;
}
.room-window {
  position: absolute; left: 22px; top: 20px;
  width: 92px; height: 96px;
  border-radius: 8px;
  background: linear-gradient(180deg, #bcd7f0, #f6e2c4);
  box-shadow: 0 0 0 4px #f7f5f0;
  overflow: hidden;
}
.room-blind {
  position: absolute; left: 0; right: 0; top: 0;
  height: 100%;
  background: repeating-linear-gradient(180deg, #f2efe9 0 7px, #d9d4ca 7px 8px);
  transform-origin: top;
  transform: scaleY(var(--blind, 0.12));
}
.room-lamp {
  position: absolute; left: 150px; top: 0;
  width: 2px; height: 46px;
  background: #b8b2a6;
}
.room-lamp i {
  position: absolute; left: -15px; top: 44px;
  width: 32px; height: 16px;
  border-radius: 16px 16px 4px 4px;
  background: #2b2b2b;
}
.room-lamp i::after {
  content: "";
  position: absolute; left: 50%; top: 10px;
  width: 180px; height: 140px;
  transform: translateX(-50%);
  background: radial-gradient(50% 60% at 50% 0%, rgba(255, 214, 150, 0.85), rgba(255, 214, 150, 0) 70%);
  opacity: var(--lamp, 1);
}
.room-tv {
  position: absolute; right: 22px; bottom: 26px;
  width: 132px; height: 76px;
  border-radius: 6px;
  background: #1a1a1c;
  box-shadow: 0 0 0 3px #2a2a2c;
  z-index: 1;
}
.room-tv i {
  position: absolute; inset: 4px;
  border-radius: 3px;
  background: radial-gradient(120% 140% at 30% 20%, #ffb07a 0%, var(--ember) 45%, #7a2408 100%);
  opacity: var(--tv, 0);
  box-shadow: 0 0 40px 10px rgba(255,122,61,calc(var(--tv, 0) * 0.35));
}
.room-tv { z-index: 2; }
.room::after { z-index: 1; }
.chat { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.bubble-me {
  align-self: flex-end;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border-radius: 18px 18px 6px 18px;
  background: var(--ink); color: #fff;
  font-size: 15px; font-weight: 500;
  min-height: 42px;
}
.wave { display: inline-flex; align-items: center; gap: 3px; height: 16px; }
.wave i { width: 3px; height: 100%; border-radius: 2px; background: var(--ember); animation: wave 0.9s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: -0.2s; }
.wave i:nth-child(3) { animation-delay: -0.4s; }
.wave i:nth-child(4) { animation-delay: -0.6s; }
.wave i:nth-child(5) { animation-delay: -0.1s; }
@keyframes wave { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
.said { display: inline-block; overflow: hidden; white-space: nowrap; }
.actions { display: flex; flex-direction: column; gap: 8px; }
.actions li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.actions .tick { transform: scale(0); }
.reply {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: auto;
}

/* ==========================================================================
   EVERYDAY (bento)
   ========================================================================== */
.everyday { position: relative; z-index: 3; background: var(--bone); padding: clamp(96px, 14vh, 160px) 0 clamp(64px, 10vh, 120px); }
.section-head { margin-bottom: clamp(40px, 6vh, 64px); }
.section-head .lede { margin-top: 20px; }
.bento {
  perspective: 1600px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(36px, 5vh, 56px) 16px;
}
/* zigzag: narrow + wide, then wide + narrow */
.card-fix, .card-compat { grid-column: span 5; }
.card-discover, .card-ask { grid-column: span 7; }
.card { display: flex; flex-direction: column; }
.card > h3, .card > p { padding-inline: 6px; }
.card > h3 { margin-top: 22px; margin-bottom: 6px; }
.card > p { color: var(--ink-2); font-size: 15.5px; text-wrap: pretty; }
.card-visual {
  position: relative;
  height: 340px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f1eee8, #ebe8e1);
  box-shadow: 0 0 0 1px rgba(18,18,18,0.07), 0 1px 0 rgba(255,255,255,0.8) inset, 0 22px 44px -26px rgba(18,18,18,0.32);
  overflow: hidden;
  overflow: clip;
  padding: 18px;
  display: flex; flex-direction: column;
  transition: box-shadow 0.4s var(--ease);
}
.card:hover .card-visual { box-shadow: 0 0 0 1px rgba(18,18,18,0.1), 0 1px 0 rgba(255,255,255,0.8) inset, 0 30px 60px -28px rgba(18,18,18,0.36); }

/* fix */
.health { display: flex; flex-direction: column; gap: 8px; }
.hrow.quiet { box-shadow: 0 0 0 1px var(--line); background: rgba(255,255,255,0.55); }
.hrow {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 10px 24px -18px rgba(18,18,18,0.4);
}
.hico { background: var(--bone); }
.htext { min-width: 0; flex: 1; }
.htext strong { display: block; font-weight: 500; font-size: 14.5px; letter-spacing: -0.01em; }
.hstate { display: grid; font-size: 12.5px; }
.hstate > span, .hsum > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 6px; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hstate .s-b, .hsum .s-b { opacity: 0; transform: translateY(6px); }
.is-fixed > .htext .s-a, .is-fixed .hstate .s-a, .hsum.is-fixed .s-a { opacity: 0; transform: translateY(-6px); }
.is-fixed .hstate .s-b, .hsum.is-fixed .s-b { opacity: 1; transform: none; }
.warn { color: var(--warn-ink); }
.ok { color: var(--ok-ink); }
.spin {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid currentColor; border-right-color: transparent;
  animation: sweep 0.8s linear infinite;
}
.hbtn {
  /* floats over the row, so the longer "fixed" status gets the full width once it fades */
  position: absolute; right: 12px; top: 50%;
  display: inline-flex; align-items: center;
  height: 30px; padding: 0 12px;
  border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 500;
  white-space: nowrap;
  transform: translateY(-50%);
  transition: transform 0.3s var(--ease), opacity 0.35s var(--ease);
}
.hbtn.is-press { transform: translateY(-50%) scale(0.92); }
.is-fixed .hbtn { opacity: 0; transform: translateY(-50%) scale(0.85); }
.hsum {
  display: grid;
  margin-top: auto;
  font-size: 13px; font-weight: 500;
  padding: 12px 4px 0;
  border-top: 1px solid var(--line);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 4px rgba(224,138,44,0.18); }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 4px rgba(47,158,91,0.15); }
.hsum .s-a { color: var(--ink); }
.hsum .s-b { color: var(--ink); }

/* discover */
.day { display: flex; flex-direction: column; height: 100%; }
.day-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.day-head .mono:first-child { font-size: 22px; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.day-track {
  position: relative;
  height: 34px;
  border-radius: 10px;
  /* night stays neutral; daylight takes the one accent, softly */
  background: linear-gradient(90deg,
    rgba(18,18,18,0.09) 0%, rgba(18,18,18,0.07) 22%, rgba(255,91,31,0.16) 29%,
    rgba(255,91,31,0.08) 50%, rgba(255,91,31,0.16) 72%, rgba(18,18,18,0.07) 79%, rgba(18,18,18,0.09) 100%);
  box-shadow: 0 0 0 1px rgba(18,18,18,0.08) inset;
}
.ev {
  position: absolute; top: 50%; left: var(--at);
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1.5px var(--ink-3);
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.4s var(--spring);
}
.ev { box-shadow: 0 0 0 1.5px rgba(18,18,18,0.45); }
.ev.on { background: var(--ember); box-shadow: 0 0 0 2px #fff, 0 0 0 6px rgba(255,91,31,0.35); transform: scale(1.15); }
.playhead {
  position: absolute; top: -6px; bottom: -6px; left: 0;
  width: 2px; margin-left: -1px;
  border-radius: 2px;
  background: var(--ink);
  will-change: transform;
}
.day-axis { display: flex; justify-content: space-between; margin-top: 8px; color: var(--ink-3); font-size: 11.5px; }
.day-axis span { width: 25%; }
.routines { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.routines li {
  display: flex; align-items: center; gap: 12px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.routines li .mono { color: var(--ink-3); font-size: 11.5px; transition: color 0.4s; }
.routines li em {
  margin-left: auto;
  font-style: normal; font-size: 11.5px; font-weight: 600;
  color: var(--ember-ink);
  padding: 2px 7px; border-radius: 6px;
  background: var(--ember-soft);
}
.routines li.on { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.routines li.on .mono { color: var(--ember-ink); }

/* ask: the one dark card, a conversation that keeps going while it's on screen */
.card-ask .card-visual {
  padding: 18px 20px;
  color: #fff;
  background-color: var(--night);
  background-image: radial-gradient(70% 60% at 50% 118%, rgba(255, 91, 31, 0.24), rgba(255, 91, 31, 0) 70%);
  box-shadow: 0 30px 60px -34px rgba(22, 17, 13, 0.7);
}
.card-ask:hover .card-visual { box-shadow: 0 34px 70px -34px rgba(22, 17, 13, 0.75); }
.ask { display: flex; flex-direction: column; height: 100%; }
.ask-log {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 34%);
  mask-image: linear-gradient(180deg, transparent 0, #000 34%);
}
.msg { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.55s var(--ease), opacity 0.45s var(--ease); }
.msg.in { grid-template-rows: 1fr; opacity: 1; }
.msg-in { min-height: 0; overflow: hidden; display: flex; align-items: flex-end; gap: 10px; padding-top: 10px; }
.msg.q .msg-in { justify-content: flex-end; }
.bubble { max-width: 80%; padding: 9px 15px; font-size: 15px; line-height: 1.35; }
.msg.q .bubble { color: #fff; background: rgba(255, 255, 255, 0.1); border-radius: 18px 18px 6px 18px; }
.msg.a .bubble { color: var(--ink); background: #fff; border-radius: 18px 18px 18px 6px; font-weight: 500; }
.msg.a .logo-mark { margin-bottom: 5px; }
.dots3 { display: inline-flex; gap: 4px; padding: 6px 2px; }
.dots3 i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: blink 1s infinite; }
.dots3 i:nth-child(2) { animation-delay: 0.15s; }
.dots3 i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.ask-bar {
  flex: none;
  display: flex; align-items: center; gap: 12px;
  min-height: 52px; margin-top: 14px;
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 1px rgba(255, 236, 222, 0.12) inset;
}
.ask-mic {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transition: background-color 0.35s var(--ease), transform 0.5s var(--spring);
}
.ask-mic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ask-wave { display: inline-flex; align-items: center; gap: 3px; height: 18px; }
.ask-wave i { width: 3px; height: 100%; border-radius: 2px; background: rgba(255, 236, 222, 0.3); transform: scaleY(0.22); transition: transform 0.3s var(--ease), background-color 0.3s; }
.ask-hint { font-size: 14px; color: rgba(255, 236, 222, 0.6); }
.card-ask.is-listening .ask-mic { background: var(--ember); transform: scale(1.06); }
.card-ask.is-listening .ask-wave i { background: var(--ember-hi); animation: wave 0.9s ease-in-out infinite; }
.ask-wave i:nth-child(2) { animation-delay: -0.3s; }
.ask-wave i:nth-child(3) { animation-delay: -0.55s; }
.ask-wave i:nth-child(4) { animation-delay: -0.1s; }
.ask-wave i:nth-child(5) { animation-delay: -0.7s; }
.ask-wave i:nth-child(6) { animation-delay: -0.4s; }
.ask-wave i:nth-child(7) { animation-delay: -0.2s; }

/* compat */
.card-compat .card-visual { padding: 0; display: grid; place-items: center; }
.orbits { position: relative; width: 260px; height: 260px; display: grid; place-items: center; }
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(18,18,18,0.16);
  animation: sweep linear infinite;
}
.o1 { width: 120px; height: 120px; animation-duration: 18s; }
.o2 { width: 190px; height: 190px; animation-duration: 28s; animation-direction: reverse; }
.o3 { width: 258px; height: 258px; animation-duration: 40s; }
.sat {
  position: absolute; top: 50%; left: 0;
  width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 6px 14px -8px rgba(18,18,18,0.4);
  animation: sweep linear infinite reverse;
  animation-duration: inherit;
}
.o2 .sat { animation-direction: normal; }
.sat.s2 { left: 100%; }
.sat svg { width: 15px; height: 15px; }
.olabel {
  position: absolute;
  font-size: 11.5px; font-weight: 500;
  color: var(--ink-2);
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(251,250,247,0.9);
  box-shadow: 0 0 0 1px var(--line);
  white-space: nowrap;
}
.l1 { top: calc(50% - 60px - 11px); }
.l2 { top: calc(50% + 95px - 11px); }
.l3 { top: calc(50% - 129px - 11px); }

/* CSS puck (used in bento, beta and fallback): stacked elliptical slices */
.css-puck {
  --d: 64px;
  --e: calc(var(--d) * 0.42);
  position: relative;
  isolation: isolate;
  width: var(--d);
  height: calc(var(--e) + var(--d) * 0.25);
}
.css-puck > b {
  position: absolute; left: 0; right: 0;
  top: calc(var(--e) / 2);
  border-radius: 0 0 50% 50% / 0 0 calc(var(--e) / 2) calc(var(--e) / 2);
}
.css-puck::after {
  content: "";
  position: absolute; z-index: -1;
  left: 8%; right: 8%;
  bottom: calc(var(--d) * -0.1);
  height: calc(var(--e) * 0.55);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,0.35), transparent);
  filter: blur(calc(var(--d) * 0.03));
}
.cp-base {
  height: calc(var(--e) / 2 + var(--d) * 0.25);
  background: linear-gradient(90deg, #0f0f10, #3b3b3f 38%, #1d1d1f 70%, #0d0d0e);
}
.cp-led {
  height: calc(var(--e) / 2 + var(--d) * 0.138);
  background: linear-gradient(90deg, #e2481a, #ffb08a 40%, #ff5b1f 75%, #c63c12);
  box-shadow: 0 calc(var(--d) * 0.03) calc(var(--d) * 0.12) rgba(255, 91, 31, 0.55);
}
.cp-shell {
  height: calc(var(--e) / 2 + var(--d) * 0.12);
  background: linear-gradient(90deg, #c9c2b7, #f4f0ea 40%, #e2ddd4 72%, #bfb8ad);
}
.css-puck > .cp-top {
  top: 0;
  height: var(--e);
  border-radius: 50%;
  background: radial-gradient(90% 120% at 42% 25%, #fffefb 0%, #efebe4 55%, #ded8ce 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset;
}
.cp-top::after {
  content: "";
  position: absolute; inset: 22% 22%;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(18,18,18,0.08) inset;
}
.css-puck.sm { --d: 58px; }
.css-puck.lg { --d: 280px; }

/* ==========================================================================
   COMPARE
   ========================================================================== */
.compare { position: relative; z-index: 3; background: var(--bone); padding: clamp(64px, 10vh, 120px) 0; }
.cmp {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto repeat(4, auto);
  gap: 0 16px;
}
.cmp-col {
  grid-row: span 5;
  display: grid;
  grid-template-rows: subgrid;
  padding: 8px 28px 12px;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.cmp-col header { padding: 22px 0 22px; }
.cmp-col h3 { display: flex; align-items: center; gap: 9px; font-size: 22px; margin-bottom: 4px; }
.cmp-col header p { color: var(--ink-3); font-size: 15px; }
.cmp-col dl { padding: 16px 0 18px; border-top: 1px solid var(--line); }
.cmp-col dt { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.cmp-col dd { font-size: 15.5px; color: var(--ink-2); text-wrap: pretty; }
.cmp-col.is-nudge {
  background: var(--night);
  color: #fff;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.5);
}
.is-nudge header p { color: rgba(255,255,255,0.55); }
.is-nudge dl { border-top-color: var(--night-line); }
.is-nudge dt { color: var(--ember-hi); }
.is-nudge dd, .cmp-col dd { margin: 0; }
.is-nudge dd { color: rgba(255,255,255,0.85); }
.fine { margin-top: 24px; font-size: 12.5px; color: var(--ink-3); max-width: 70ch; }

/* ==========================================================================
   MISSION
   ========================================================================== */
/* the home after dark: words switch on like lamps as you read, the key ones get marked up */
.mission {
  position: relative; z-index: 3;
  padding: clamp(104px, 18vh, 200px) 0;
  color: #fff;
  background: var(--night);
  border-radius: var(--radius);
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
}
.mission::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(55% 80% at 88% 118%, rgba(255, 91, 31, 0.2), rgba(255, 91, 31, 0) 70%);
  pointer-events: none;
}
.mission-text {
  font-family: var(--display);
  font-size: clamp(30px, 4.2vw, 60px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.26; /* room between lines for the marks */
  max-width: 20em;
  text-wrap: balance;
}
.mission-text .w { opacity: 0.16; transition: opacity 0.2s linear; }
.mk { position: relative; white-space: nowrap; }
.mk svg { position: absolute; overflow: visible; pointer-events: none; }
.mk path {
  fill: none;
  stroke: var(--ember);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.mk-under svg { left: -3%; bottom: -0.12em; width: 106%; height: 0.2em; }
.mk-double svg { left: -2%; bottom: -0.17em; width: 104%; height: 0.24em; }
.mk-ring svg { left: -5%; top: 2%; width: 110%; height: 104%; }

/* ==========================================================================
   BETA
   ========================================================================== */
.beta { position: relative; z-index: 3; background: var(--bone); padding: clamp(56px, 9vh, 112px) 0 clamp(48px, 8vh, 96px); }
.beta-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 32px;
  padding: clamp(40px, 7vw, 96px);
  border-radius: 44px;
  background:
    radial-gradient(70% 90% at 78% 50%, #ff8a55 0%, rgba(255,138,85,0) 60%),
    linear-gradient(160deg, #ff6a2c 0%, var(--ember) 45%, #f04a12 100%);
  color: var(--on-ember);
  overflow: hidden;
  overflow: clip; /* not a scroll container: focus/scrollIntoView can't shift the card's content */
  isolation: isolate;
  box-shadow: 0 40px 80px -40px rgba(224, 72, 15, 0.55);
}
.beta-card :focus-visible { outline-color: var(--on-ember); }
.beta-glow {
  position: absolute; z-index: -1;
  right: -10%; top: 50%;
  width: 70%; aspect-ratio: 1;
  transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(255,240,228,0.45), rgba(255,240,228,0) 70%);
  pointer-events: none;
}
.beta-card h2 { font-size: clamp(40px, 5.4vw, 80px); }
.beta-card .lede { color: rgba(42, 15, 4, 0.82); margin-top: 20px; }
.beta-form {
  display: flex; gap: 8px;
  margin-top: 36px;
  padding: 6px;
  max-width: 480px;
  border-radius: 999px;
  background: rgba(255, 246, 240, 0.28);
  box-shadow: 0 0 0 1px rgba(42, 15, 4, 0.14) inset;
  transition: box-shadow 0.3s, background-color 0.3s;
}
.beta-form[hidden] { display: none; }
.beta-form:focus-within { background: rgba(255, 246, 240, 0.4); box-shadow: 0 0 0 1.5px var(--on-ember) inset; }
.beta-form.is-error { box-shadow: 0 0 0 1.5px var(--on-ember) inset; animation: shake 0.45s var(--ease); }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.beta-form input {
  flex: 1; min-width: 0;
  height: 48px;
  padding: 0 18px;
  border: 0; outline: 0;
  background: transparent;
  color: var(--on-ember);
  font-size: 16px;
}
.beta-form input::placeholder { color: rgba(42, 15, 4, 0.7); }
.beta-form .btn:disabled { cursor: progress; }
.beta-form.is-busy .btn .ico { animation: nudgeRight 0.9s var(--ease) infinite; }
@keyframes nudgeRight { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
/* honeypot: present for bots, invisible and unreachable for people */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.beta-msg { min-height: 24px; margin-top: 14px; font-size: 14.5px; font-weight: 500; color: var(--on-ember); }
.beta-msg.is-error { display: flex; align-items: flex-start; gap: 8px; }
.beta-msg.is-error::before {
  content: "!"; flex: none;
  width: 20px; height: 20px; margin-top: 1px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
  background: var(--on-ember); color: var(--ember);
}
.beta-note { margin-top: 2px; font-size: 14px; color: rgba(42, 15, 4, 0.82); }
.beta-done {
  margin-top: 36px;
  max-width: 480px;
}
.beta-done[hidden] { display: none; }
.beta-done:focus { outline: none; }
.beta-done-title {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display);
  font-size: 26px; font-weight: 600;
  letter-spacing: -0.02em;
}
.beta-done-title .tick { width: 30px; height: 30px; background: var(--on-ember); color: var(--ember); }
.beta-done-title .tick svg { width: 16px; height: 16px; }
.beta-done p { margin-top: 8px; font-size: 15.5px; color: rgba(42, 15, 4, 0.82); overflow-wrap: anywhere; }
.beta-done p b { color: var(--on-ember); font-weight: 600; }
.beta-again {
  margin-top: 14px;
  padding: 10px 0;
  border: 0; background: none;
  font-size: 14.5px; font-weight: 600;
  color: var(--on-ember);
  text-decoration: underline; text-underline-offset: 4px;
  cursor: pointer;
}
.beta-puck { display: grid; place-items: center; min-height: 340px; }
.has-webgl .beta-puck .css-puck { visibility: hidden; }
.beta-puck .css-puck { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.foot { position: relative; z-index: 3; background: var(--bone); padding: clamp(56px, 9vh, 96px) 0 32px; }
.foot-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 48px;
  padding-bottom: clamp(40px, 7vh, 72px);
}
.foot-line {
  margin-top: 28px;
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 28px; }
.share-q { font-size: 15px; color: var(--ink-2); }
.share .btn.is-done { color: #fff; background: var(--ink); box-shadow: none; }
.foot-cols { display: flex; gap: clamp(40px, 7vw, 112px); }
.foot-cols div { display: flex; flex-direction: column; gap: 10px; }
.foot-h { color: var(--ink-3); font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.foot-cols a { font-size: 15px; color: var(--ink-2); width: fit-content; transition: color 0.2s; }
.foot-cols a:hover { color: var(--ink); }
.foot-bottom {
  display: flex; align-items: center; gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.foot-bottom p { margin: 0; }
.foot-status { display: inline-flex; align-items: center; gap: 10px; }
.foot-up {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-2);
  transition: color 0.2s;
}
.foot-up .ico { width: 13px; height: 13px; transform: rotate(180deg); transition: transform 0.4s var(--spring); }
.foot-up:hover { color: var(--ink); }
.foot-up:hover .ico { transform: rotate(180deg) translateY(3px); }

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee {
  position: relative; z-index: 3;
  background: var(--bone);
  padding: clamp(40px, 8vh, 96px) 0 clamp(24px, 4vh, 48px);
  overflow: hidden;
}
.mq-row { white-space: nowrap; line-height: 1; }
.mq-track {
  display: inline-flex; align-items: center; gap: 0.32em;
  font-size: clamp(64px, 11vw, 190px);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.04em;
  will-change: transform;
}
.mq-track i {
  /* the Nudge mark between the words */
  width: 0.46em; height: 0.4em;
  background: url("assets/nudge-mark.svg") center / contain no-repeat;
  flex: none;
}


/* reveal (set by JS) */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) and (min-width: 861px) {
  .bento > .card { grid-column: span 6; }
}

@media (max-width: 860px) {
  .show-l, .show-r { left: 0; right: 0; text-align: center; transform: none; font-size: clamp(44px, 13vw, 72px); }
  .show-l { top: 15vh; }
  .show-r { top: auto; bottom: 19vh; }
  .nav { padding: 20px 20px 0; }
  .nav-links, .nav-cta { display: none; }
  .nav-menu-btn { display: inline-flex; }

  .hero { height: calc(100vh - 8px); height: calc(100svh - 8px); margin: 8px 8px 0; border-radius: 24px; }
  .hero-head { padding-top: 104px; }
  .hero-title { font-size: clamp(36px, 10.4vw, 76px); }
  .hero-sub { font-size: 16px; margin-top: 14px; max-width: 28ch; }
  .hero-ctas { margin-top: 20px; }
  .nh-label { font-size: 18px; }
  .nh-arrow { width: 84px; height: 50px; margin-left: 24px; }
  .wall { font-size: clamp(24px, 8.6vw, 44px); gap: 0.2em 0.36em; bottom: 7vh; }
  .word { font-size: clamp(72px, 24vw, 150px); }


  .inside-copy { justify-content: flex-start; padding-top: 92px; }
  .inside-h { font-size: 30px; }
  .inside .lede { font-size: 15.5px; margin-top: 14px; }
  .snap-note { position: absolute; bottom: 28px; left: var(--gutter); margin: 0; }
  .lbl-text { font-size: 11.5px; line-height: 1.25; padding: 5px 10px 5px 7px; gap: 6px; margin-left: 8px; white-space: normal; max-width: var(--max, 150px); border-radius: 12px; }
  .lbl-text i { font-size: 11px; }

  .how-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-items: stretch;
    gap: 18px;
    padding-top: 84px;
    padding-bottom: 20px;
  }
  .how-copy h2 { font-size: 30px; margin-bottom: 14px; }
  .steps { display: grid; }
  .step { grid-area: 1 / 1; border: 0 !important; padding: 12px 0 0; opacity: 0; transition: opacity 0.5s var(--ease); }
  .step.is-active { opacity: 1; }
  .step:last-child { border: 0; }
  .step-bar { top: 0; background: var(--line); }
  .step-desc > p { font-size: 14.5px; }
  .how-device { align-items: flex-start; }
  .device { height: 100%; max-height: 520px; border-radius: 26px; }

  .bento { grid-template-columns: 1fr; }
  .bento > .card { grid-column: auto; }

  .cmp { grid-template-columns: 1fr; gap: 12px; }
  .cmp-col { grid-row: auto; display: block; padding: 6px 22px 6px; }

  .beta-card { grid-template-columns: 1fr; }
  .beta-puck { order: -1; }
  .css-puck.lg { --d: 180px; }
  .beta-puck { min-height: 250px; }

  .foot-top { flex-direction: column; gap: 40px; }
  .foot-bottom { flex-wrap: wrap; gap: 10px 20px; }
  .foot-up { margin-left: 0; }
}

@media (max-width: 860px) and (max-height: 760px) {
  .how-copy h2 { display: none; } /* short phones: give the app mock the room */
}

@media (max-width: 480px) {
  .beta-form { flex-direction: column; border-radius: 22px; }
  .beta-form input { flex: none; width: 100%; }
  .beta-form .btn { width: 100%; }
  .device { border-radius: 22px; }
  .scene { padding: 14px 18px 18px; inset: 58px 0 0; }
  .device-top { padding: 18px 18px 0; }
  .count { font-size: 60px; }
  .room { height: 128px; }
  .card-visual { height: 304px; }
}

@media (max-height: 720px) and (min-width: 861px) {
  .how-copy h2 { margin-bottom: 24px; }
  .step { padding: 14px 0 16px; }
}

@media (pointer: coarse) {
  .btn-sm { --h: 44px; }
  .nudge-hint, .logo { min-height: 44px; }
  .foot-cols div { gap: 0; }
  .foot-cols a, .foot-up { display: inline-flex; align-items: center; min-height: 44px; }
}

/* landscape phones: everything must fit in ~390px of height */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 0; }
  .hero-head { align-items: flex-start; text-align: left; padding-top: 70px; padding-right: 50%; }
  .hero-title .line { margin-inline: 0; }
  .hero-title .line-2 { transform: none; }
  .hero-title { font-size: clamp(30px, 5.4vw, 52px); }
  .hero-sub { font-size: 14.5px; margin-top: 8px; }
  .hero-ctas { justify-content: flex-start; margin-top: 14px; }
  .hero-ctas .btn { --h: 42px; padding: 0 18px; font-size: 14px; }
  .problem-head { padding-top: 58px; }
  .problem h2 { font-size: 28px; }
  .problem .lede { display: none; }
  .wall { font-size: clamp(18px, 3.4vw, 30px); bottom: 3vh; }
  .word { font-size: clamp(64px, 14vw, 120px); }
  /* no height to stack the showcase heading around the puck: side by side again */
  .show-l, .show-r { top: 50%; bottom: auto; left: auto; right: auto; transform: translateY(-50%); font-size: clamp(30px, 5.6vw, 52px); }
  .show-l { right: calc(50% + var(--gap)); text-align: right; }
  .show-r { left: calc(50% + var(--gap)); text-align: left; }
  .how-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; align-items: center; padding-top: 52px; padding-bottom: 0; }
  .how-copy h2 { display: none; }
  .how-device { zoom: 0.64; }
  .device { height: 500px; max-height: none; }
}

@media (prefers-reduced-motion: reduce) {
  /* no movement; state changes stay visible as short fades */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-property: opacity, color, background-color, border-color, box-shadow, stroke !important;
    transition-duration: 0.2s !important;
    transition-delay: 0s !important;
  }
  .is-loading [data-intro] { opacity: 1; transform: none; filter: none; }
  .squiggle path { stroke-dashoffset: 0; }
  .spin { border-right-color: currentColor; opacity: 0.6; }
}
