/*
 * Umbra: landing and download page.
 * Colours, type and shapes come from the app (apps/mobile/src/design/tokens.ts): ink background,
 * bone text, one accent (Lumen) that means "trusted / your action". Controls are pills, cards 20 px,
 * showcase tiles 28 px, bubbles 18 px with a 6 px tail, avatars circles.
 * Motion: transform and opacity only. Everything has a still, readable state; JS adds the movement.
 */

@font-face {
  font-family: 'Geist';
  src: url('fonts/geist-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  src: url('fonts/geist-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('fonts/geist-mono-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0c0c0e;
  --bg-raised: #111114;
  --s1: #16161a;
  --s2: #1c1c21;
  --s3: #25252b;
  --line: #232329;
  --line-strong: #303037;
  --text: #f2f0eb;
  --text-2: #c9c6bf;
  --muted: #a3a09a;
  --faint: #75736e;
  --lumen: #c9f26b;
  --lumen-hover: #d7f88d;
  --lumen-deep: #9dc43f;
  --on-lumen: #0c0c0e;
  --lumen-tint: rgba(201, 242, 107, 0.12);
  --lumen-line: rgba(201, 242, 107, 0.32);
  --caution: #f5b047;
  --danger: #ff5d73;

  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Consolas, monospace;
  --emoji: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;

  /* Easing: strong ease-out for things arriving, ease-in-out for things moving on screen. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-brand: cubic-bezier(0.16, 1, 0.3, 1);
  /* Springs (damping 0.62 / 0.85), sampled into linear(). Fallback above for old engines. */
  --spring-pop: cubic-bezier(0.34, 1.4, 0.64, 1);
  --spring-soft: var(--ease-brand);

  --nav-h: 64px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring-pop: linear(0, 0.047, 0.161, 0.31, 0.47, 0.623, 0.757, 0.868, 0.954, 1.015, 1.054, 1.076, 1.083, 1.081, 1.073, 1.061, 1.047, 1.034, 1.023, 1.013, 1.005, 1, 0.996, 0.994, 0.993, 0.993, 0.994, 0.995, 0.996, 0.997, 0.998, 0.999, 1);
    --spring-soft: linear(0, 0.05, 0.164, 0.303, 0.443, 0.571, 0.681, 0.771, 0.841, 0.895, 0.934, 0.961, 0.98, 0.992, 1, 1.004, 1.006, 1.006, 1.006, 1.005, 1.004, 1.004, 1.003, 1.002, 1);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* Real clipping (body overflow would only propagate to the viewport). Clip does not break sticky. */
main,
.site-footer {
  overflow-x: clip;
}
/* Grain: one fixed, static layer. It breaks up banding in the large dark gradients. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background: url('img/grain.png') repeat;
  background-size: 128px 128px;
  opacity: 0.045;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
::selection {
  background: rgba(201, 242, 107, 0.3);
  color: var(--text);
}
:focus-visible {
  outline: 2px solid var(--lumen);
  outline-offset: 3px;
  border-radius: 6px;
}
[hidden] {
  display: none !important;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.i {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex-shrink: 0;
}
.mono {
  font-family: var(--mono);
  letter-spacing: 0;
}
.ui {
  color: var(--text);
  font-weight: 550;
}
@media (min-width: 560px) {
  .ui {
    white-space: nowrap;
  }
}
.sep {
  color: var(--faint);
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--lumen);
  color: var(--on-lumen);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 200ms var(--ease-out);
}
.skip:focus-visible {
  transform: none;
  outline-color: var(--text);
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---- Type ------------------------------------------------------------------------------------ */

h2 {
  font-size: clamp(2.15rem, 1.1rem + 3.4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.038em;
  font-weight: 600;
  text-wrap: balance;
}
h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.018em;
  font-weight: 600;
}
.section-lead {
  margin-top: 18px;
  max-width: 34rem;
  color: var(--text-2);
  font-size: clamp(1.06rem, 0.98rem + 0.35vw, 1.25rem);
  line-height: 1.5;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}
.section {
  position: relative;
  padding-block: clamp(72px, 8.5vw, 128px);
}
.section-head {
  margin-bottom: clamp(40px, 5vw, 64px);
}

/* ---- Buttons --------------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 160ms var(--ease-out),
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}
.btn .i {
  font-size: 1.2em;
  transition: transform 220ms var(--ease-out);
}
.btn:active {
  transform: scale(0.97);
}
.btn-lg {
  height: 58px;
  padding: 0 28px;
  font-size: 1.0625rem;
}
.btn-sm {
  height: 38px;
  padding: 0 18px;
  font-size: 0.9375rem;
}
.btn-primary {
  background: var(--lumen);
  color: var(--on-lumen);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 10px 30px -12px rgba(201, 242, 107, 0.55);
}
.btn-primary:focus-visible {
  outline-color: var(--text);
}
.btn-secondary {
  background: var(--s2);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--lumen-hover);
  }
  .btn-secondary:hover {
    background: var(--s3);
    border-color: #3a3a42;
  }
  .btn-ghost:hover {
    background: var(--s1);
    border-color: #3d3d45;
  }
  .btn:hover .i[aria-hidden] use[href='#i-download'],
  .btn:hover > .i:first-child {
    transform: translateY(1px);
  }
  .btn[href^='https']:hover .i {
    transform: translate(2px, -2px);
  }
}
.btn[aria-disabled='true'] {
  opacity: 0.45;
  pointer-events: none;
}
.btn-chip {
  margin-left: 2px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(12, 12, 14, 0.1);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
}
.btn-secondary .btn-chip,
.btn-ghost .btn-chip {
  background: var(--s3);
}

/* ---- Navigation -------------------------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  transition: transform 360ms var(--ease-out);
}
.nav-bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
  border-bottom: 1px solid rgba(242, 240, 235, 0.07);
  opacity: 0;
  transition: opacity 280ms ease;
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  @media (hover: hover) and (pointer: fine) {
    .nav-bg {
      background: rgba(12, 12, 14, 0.74);
      -webkit-backdrop-filter: saturate(160%) blur(16px);
      backdrop-filter: saturate(160%) blur(16px);
    }
  }
}
.nav-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
  transition: transform 360ms var(--ease-out);
}
.nav.is-condensed {
  transform: translateY(-8px);
}
.nav.is-condensed .nav-inner {
  transform: translateY(4px);
}
.nav.is-condensed .nav-bg {
  opacity: 1;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 999px;
}
.brand-mark {
  width: 26px;
  height: 26px;
  overflow: hidden;
  border-radius: 50%;
  transition: transform 360ms var(--ease-out);
}
.nav.is-condensed .brand-mark {
  transform: scale(0.9);
}
.bm-sun {
  fill: var(--lumen);
}
.bm-moon {
  fill: var(--bg);
}
.bm-bead {
  fill: #fbfff0;
  transform-box: fill-box;
  transform-origin: center;
}
.wordmark {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: 20px;
}
.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease;
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(242, 240, 235, 0.06);
}
.nav-cta {
  margin-left: auto;
  transition:
    opacity 260ms var(--ease-out),
    transform 260ms var(--ease-out),
    background-color 160ms ease,
    visibility 0s linear 0s;
}
.nav.hero-cta-visible .nav-cta {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px) scale(0.96);
  transition:
    opacity 200ms ease,
    transform 200ms ease,
    visibility 0s linear 200ms;
}
@media (max-width: 760px) {
  :root {
    --nav-h: 58px;
  }
  .nav-links {
    display: none;
  }
}

/* ---- Hero ------------------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(28px, 5vh, 56px));
  padding-bottom: clamp(48px, 7vw, 96px);
  overflow-x: clip;
  isolation: isolate;
}
.hero-light {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(48% 34% at 50% 64%, rgba(201, 242, 107, 0.085), transparent 70%),
    radial-gradient(60% 50% at 50% 0%, rgba(242, 240, 235, 0.04), transparent 70%);
}
.hero-copy {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-title {
  font-size: clamp(2.6rem, 0.9rem + 4.35vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 600;
  text-wrap: balance;
}
.hero-title .dim {
  color: var(--muted);
}
.hero-lead {
  margin-top: 20px;
  max-width: 34rem;
  color: var(--text-2);
  font-size: clamp(1.08rem, 0.98rem + 0.45vw, 1.3rem);
  line-height: 1.5;
  letter-spacing: -0.014em;
  text-wrap: balance;
}
.hero-cta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.pending {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(245, 176, 71, 0.1);
  color: var(--caution);
  font-size: 0.9375rem;
  font-weight: 500;
}
.pending .i {
  font-size: 1.15em;
}

/* Hero load-in. CSS only, so it plays before scripts run. */
@media (prefers-reduced-motion: no-preference) {
  .hero-title,
  .hero-lead,
  .hero-cta {
    animation: rise 900ms var(--ease-brand) both;
  }
  .hero-lead {
    animation-delay: 90ms;
  }
  .hero-cta {
    animation-delay: 170ms;
  }
  .stage-inner {
    animation: stage-in 1300ms var(--ease-brand) 220ms both;
  }
  .bm-moon {
    animation: eclipse 1400ms var(--ease-brand) 200ms both;
  }
  .bm-bead {
    animation: bead 520ms var(--ease-out) 1250ms both;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
@keyframes stage-in {
  from {
    opacity: 0;
    transform: translateY(56px) scale(0.97);
  }
}
@keyframes eclipse {
  from {
    transform: translate(-70px, -42px);
  }
}
@keyframes bead {
  from {
    opacity: 0;
    transform: scale(0.3);
  }
}

/* ---- Stage: a scaled drawing. 1em = 10 design px; the stage sets the scale. -------------------- */

.stage {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: clamp(20px, 2.4vw, 32px) auto 0;
  padding-inline: var(--gutter);
}
.stage {
  container-type: inline-size;
}
.stage-inner {
  position: relative;
  font-size: calc(100cqw / 118);
  height: 56em;
}
.stage-glow {
  position: absolute;
  left: 8%;
  right: 4%;
  bottom: 0;
  height: 26em;
  background:
    radial-gradient(50% 42% at 62% 58%, rgba(201, 242, 107, 0.11), transparent 72%),
    radial-gradient(40% 20% at 50% 96%, rgba(0, 0, 0, 0.55), transparent 80%);
  pointer-events: none;
}

/* Devices -------------------------------------------------------------------------------------- */

.phone {
  position: absolute;
  padding: 0.85em;
  border-radius: 4.4em;
  background: linear-gradient(152deg, #55555d 0%, #2a2a30 9%, #141418 32%, #0f0f12 60%, #26262c 88%, #4e4e56 100%);
  box-shadow:
    inset 0 0 0 0.1em rgba(255, 255, 255, 0.14),
    inset 0 0 0 0.35em #0b0b0d,
    0 4em 7em -2em rgba(0, 0, 0, 0.85),
    0 1.2em 2.4em -0.6em rgba(0, 0, 0, 0.6);
}
.phone::before,
.phone::after {
  content: '';
  position: absolute;
  right: -0.22em;
  width: 0.28em;
  border-radius: 0 0.3em 0.3em 0;
  background: linear-gradient(90deg, #2c2c32, #4a4a52);
}
.phone::before {
  top: 18%;
  height: 9%;
}
.phone::after {
  top: 30%;
  height: 5%;
}
.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 3.6em;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  font-size: var(--ps, 1em);
}
.p-status {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.4em;
  padding: 0 2.6em 0 2.9em;
  font-size: 1em;
}
.p-status > span:first-child {
  font-size: 1.35em;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.p-island {
  position: absolute;
  left: 50%;
  top: 1.1em;
  width: 8.4em;
  height: 2.4em;
  margin-left: -4.2em;
  border-radius: 2em;
  background: #000;
}
.p-sys {
  display: flex;
  align-items: flex-end;
  gap: 0.25em;
}
.p-sys i {
  display: block;
  width: 0.4em;
  border-radius: 0.1em;
  background: var(--text);
}
.p-sys i:nth-child(1) {
  height: 0.6em;
}
.p-sys i:nth-child(2) {
  height: 0.9em;
}
.p-sys i:nth-child(3) {
  width: 2.1em;
  height: 1.05em;
  margin-left: 0.5em;
  border-radius: 0.3em;
  background: linear-gradient(90deg, var(--text) 70%, rgba(242, 240, 235, 0.35) 70%);
}

.laptop {
  position: absolute;
}
.lid {
  position: relative;
  height: var(--lid-h);
  padding: 1.15em 1.15em 1.5em;
  border-radius: 1.8em 1.8em 0.7em 0.7em;
  background: #09090b;
  box-shadow:
    inset 0 0 0 0.12em #34343b,
    inset 0 0.16em 0 0.04em rgba(255, 255, 255, 0.08),
    0 3em 6em -2em rgba(0, 0, 0, 0.85);
}
.lid::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0.42em;
  width: 0.42em;
  height: 0.42em;
  margin-left: -0.21em;
  border-radius: 50%;
  background: #1d1d22;
  box-shadow: inset 0 0 0 0.08em #2c2c33;
}
.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 0.45em;
  background: var(--bg);
  font-size: var(--ls, 1em);
}
.base {
  position: relative;
  height: 2em;
  margin: 0 -5.5%;
  border-radius: 0.2em 0.2em 1.6em 1.6em / 0.2em 0.2em 1em 1em;
  background: linear-gradient(180deg, #4a4a52 0%, #2a2a30 22%, #16161a 70%, #0d0d0f 100%);
  box-shadow: 0 2.4em 3em -1.2em rgba(0, 0, 0, 0.9);
}
.base::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 14%;
  height: 0.7em;
  transform: translateX(-50%);
  border-radius: 0 0 0.8em 0.8em;
  background: linear-gradient(180deg, #1a1a1e, #2b2b31);
}

/* Shared app UI (rebuilt from the real apps; sizes in em of the drawing) ------------------------- */

.av {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.7em;
  height: 2.7em;
  border-radius: 50%;
  font-size: var(--avfs, 1.3em);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.t1 { background: #2b2620; color: #e8c9a0; }
.t2 { background: #1e2a28; color: #9fd6cf; }
.t3 { background: #2a1f28; color: #e3a9c9; }
.t4 { background: #24252f; color: #b9bfe6; }
.t5 { background: #2c221c; color: #f0a97c; }
.t6 { background: #20281f; color: #b5d99c; }
.t7 { background: #29292d; color: #d9d6cf; }
.t8 { background: #2d2618; color: #f2c979; }
.c3 { color: #e3a9c9; }
.c4 { color: #b9bfe6; }
.c8 { color: #f2c979; }

.seal {
  color: var(--lumen);
  font-size: 0.9em;
  vertical-align: -0.1em;
}
.notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  margin: 0.6em auto 0.4em;
  max-width: 90%;
  color: var(--text-2);
  font-size: 1.05em;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
}
.notice .i {
  color: var(--lumen);
  font-size: 1.1em;
}
.day {
  display: flex;
  justify-content: center;
  margin: 0.9em 0 0.5em;
}
.day > span {
  padding: 0.28em 1.1em;
  border-radius: 999px;
  background: var(--s2);
  border: 0.08em solid var(--line);
  color: var(--text-2);
  font-size: 1.05em;
  font-weight: 500;
}
.msg {
  display: flex;
  min-width: 0;
  margin-top: 0.35em;
}
.msg.out {
  justify-content: flex-end;
}
.bubble {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  column-gap: 0.6em;
  max-width: 82%;
  padding: 0.5em 0.75em 0.45em 0.85em;
  border-radius: 1.3em;
  font-size: var(--bfs, 1.3em);
  line-height: 1.36;
  letter-spacing: -0.01em;
}
.in .bubble {
  background: var(--s2);
  color: var(--text);
  border-bottom-left-radius: 0.42em;
}
.out .bubble {
  background: var(--lumen);
  color: var(--on-lumen);
  border-bottom-right-radius: 0.42em;
}
.bubble .t {
  min-width: 0;
  overflow-wrap: anywhere;
}
.meta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding-bottom: 0.1em;
  font-size: 0.72em;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.out .meta {
  color: rgba(12, 12, 14, 0.62);
}
.rc {
  font-size: 1.25em;
}
.out .rc.is-read {
  color: var(--on-lumen);
}
.badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.6em;
  height: 1.6em;
  margin-left: auto;
  padding: 0 0.45em;
  border-radius: 999px;
  background: var(--lumen);
  color: var(--on-lumen);
  font-size: 0.95em;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
}
.field {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 1.1em;
  border-radius: 999px;
  background: var(--s1);
  border: 0.08em solid var(--line);
  white-space: nowrap;
  overflow: hidden;
}
.field-text {
  color: var(--text);
}
.field-text:not(:empty)::after {
  content: '';
  display: inline-block;
  width: 0.08em;
  height: 1.1em;
  margin-left: 0.05em;
  vertical-align: -0.18em;
  background: var(--lumen);
}
.field-text:not(:empty) + .ph {
  display: none;
}
.ph {
  color: var(--faint);
}
.send {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.6em;
  height: 2.6em;
  border-radius: 50%;
  background: var(--lumen);
  color: var(--on-lumen);
  transition: transform 160ms var(--ease-out);
}
.send.is-press {
  transform: scale(0.86);
}

/* Phone chat */
.p-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.8em;
  height: 5.6em;
  padding: 0 1.4em 0 1em;
  border-bottom: 0.08em solid var(--line);
}
.p-back {
  font-size: 1.5em;
  transform: rotate(90deg);
  color: var(--text);
}
.p-head .av {
  --avfs: 1.25em;
}
.p-who {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.p-who b {
  font-size: 1.4em;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.p-who small {
  color: var(--muted);
  font-size: 0.95em;
  white-space: nowrap;
}
.p-thread {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.6em 1.1em 0.8em;
  overflow: hidden;
}
.p-composer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.8em;
  height: 6.6em;
  padding: 1.1em 1.1em 2.1em 1.4em;
  font-size: 1em;
}
.p-composer > .i {
  font-size: 1.8em;
  color: var(--muted);
}
.p-composer .field {
  font-size: 1.3em;
  height: 2.6em;
  padding: 0 0.9em;
}
.p-composer .send {
  font-size: 1.15em;
}

/* Desktop app */
.app {
  display: grid;
  grid-template-columns: 31% 1fr;
  height: 100%;
}
.d-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-raised);
  border-right: 0.08em solid var(--line);
}
.d-me {
  display: flex;
  align-items: center;
  gap: 0.7em;
  height: 5em;
  padding: 0 1em 0 1.1em;
}
.d-me .av {
  --avfs: 1.05em;
}
.d-me > span:not(.av) {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.d-me b {
  font-size: 1.15em;
  font-weight: 600;
  white-space: nowrap;
}
.d-me small {
  color: var(--muted);
  font-size: 0.85em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.d-me > .i {
  font-size: 1.5em;
  color: var(--text-2);
  margin-left: 0.2em;
}
.d-search {
  display: flex;
  align-items: center;
  gap: 0.6em;
  height: 2.9em;
  margin: 0 0.9em 0.8em;
  padding: 0 0.9em;
  border-radius: 999px;
  background: var(--s1);
  border: 0.08em solid var(--line);
  color: var(--muted);
  font-size: 1em;
}
.d-search > span {
  flex: 1;
  font-size: 1.05em;
  white-space: nowrap;
}
.d-search kbd {
  padding: 0.15em 0.45em;
  border-radius: 0.4em;
  border: 0.08em solid var(--line-strong);
  font-family: var(--mono);
  font-size: 0.85em;
}
.d-rows {
  padding: 0 0.6em;
}
.d-row {
  display: flex;
  align-items: center;
  gap: 0.85em;
  padding: 0.7em 0.75em;
  border-radius: 1em;
}
.d-row.is-sel {
  background: var(--s2);
}
.d-row .av {
  --avfs: 1.2em;
}
.d-row-b {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}
.d-row-top {
  display: flex;
  align-items: center;
  gap: 0.4em;
}
.d-row-top b {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.15em;
  font-weight: 600;
}
.d-row-top time {
  color: var(--muted);
  font-size: 0.95em;
  font-variant-numeric: tabular-nums;
}
.d-row.is-unread time {
  color: var(--lumen);
}
.d-row-pre {
  display: flex;
  align-items: center;
  gap: 0.4em;
  min-width: 0;
  color: var(--muted);
  font-size: 1.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.d-row.is-unread .d-row-pre {
  color: var(--text-2);
}
.d-row-pre .badge {
  font-size: 0.9em;
}
.you {
  color: var(--text-2);
}
.d-conv {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.d-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.9em;
  height: 5em;
  padding: 0 1.2em;
  border-bottom: 0.08em solid var(--line);
}
.d-head .av {
  --avfs: 1.15em;
}
.d-who {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.d-who b {
  font-size: 1.3em;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.d-who small {
  display: flex;
  align-items: center;
  gap: 0.35em;
  color: var(--text-2);
  font-size: 0.95em;
}
.d-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.35em 0.8em;
  border-radius: 999px;
  border: 0.08em solid var(--line-strong);
  color: var(--text-2);
  font-size: 0.95em;
  font-weight: 500;
}
.d-thread {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.6em 1.6em 0.8em;
  overflow: hidden;
  --bfs: 1.25em;
}
.d-thread .bubble {
  max-width: 70%;
}
.d-composer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.8em;
  height: 3.6em;
  margin: 0 1.2em 1.2em;
  padding: 0 0.5em 0 1em;
  border-radius: 999px;
  background: var(--s1);
  border: 0.08em solid var(--line);
}
.d-composer > .i {
  font-size: 1.5em;
  color: var(--muted);
}
.d-composer .field {
  height: auto;
  padding: 0;
  border: 0;
  background: none;
  font-size: 1.2em;
}
.d-composer .send {
  font-size: 0.95em;
}

/* Hero composition ------------------------------------------------------------------------------ */

.hero-phone {
  left: 5em;
  top: 8em;
  width: 23.5em;
  height: 47.5em;
  z-index: 3;
}
.hero-phone .phone-screen {
  --ps: 0.94em;
}
.hero-laptop {
  left: 45em;
  top: 6.4em;
  width: 70em;
  --lid-h: 44em;
  z-index: 1;
}
.relay {
  position: absolute;
  left: 36.8em;
  top: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9em;
  transform: translateX(-50%);
  text-align: center;
}
.relay-text {
  display: flex;
  flex-direction: column;
  height: 3.4em;
  line-height: 1.2;
}
.relay-text b {
  font-size: 1.45em;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.relay-text small {
  color: var(--lumen);
  font-size: 1.2em;
  font-weight: 500;
  white-space: nowrap;
}
.relay-mark {
  position: relative;
  width: 5.2em;
  height: 5.2em;
}
.relay-mark::before {
  content: '';
  position: absolute;
  inset: -2.6em;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(201, 242, 107, 0.4), rgba(201, 242, 107, 0.08) 60%, transparent);
  opacity: 0.45;
  transition: opacity 400ms ease, transform 600ms var(--ease-out);
}
.rm-sun,
.rm-moon {
  position: absolute;
  border-radius: 50%;
}
.rm-sun {
  inset: 0;
  background: var(--lumen);
}
.rm-moon {
  inset: 0.26em 0.36em 0.46em 0.16em;
  background: var(--bg);
}
.rm-bead {
  position: absolute;
  left: 0.42em;
  top: 0.86em;
  width: 0.46em;
  height: 0.46em;
  border-radius: 50%;
  background: #fbfff0;
  box-shadow: 0 0 0.5em 0.12em rgba(201, 242, 107, 0.7);
}
.relay.is-hit .relay-mark::before {
  opacity: 1;
  transform: scale(1.3);
}

.capsule {
  position: absolute;
  left: 36.8em;
  top: 5.1em;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  height: 3.6em;
  padding: 0 1.4em 0 1.1em;
  border-radius: 999px;
  background: #1a1f12;
  border: 0.1em solid rgba(201, 242, 107, 0.5);
  color: var(--lumen);
  box-shadow:
    0 0 0 0.5em rgba(201, 242, 107, 0.06),
    0 1.2em 2.4em -0.6em rgba(0, 0, 0, 0.8);
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
}
.capsule .i {
  font-size: 1.6em;
}
.capsule-text {
  display: inline-block;
  overflow: hidden;
  font-size: 1.3em;
  font-weight: 500;
}
.capsule.is-plain {
  background: var(--s2);
  border-color: var(--line-strong);
  color: var(--text);
}
.capsule.is-plain .i {
  opacity: 0.35;
}

.stage-toggle {
  position: absolute;
  right: var(--gutter);
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(22, 22, 26, 0.85);
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), color 150ms ease, border-color 150ms ease;
}
.stage-toggle:hover {
  color: var(--text);
  border-color: #3d3d45;
}
.stage-toggle:active {
  transform: scale(0.97);
}

.stage.is-js .capsule {
  opacity: 0;
}
.stage:not(.is-js) .relay-mark::before {
  opacity: 1;
  transform: scale(1.3);
}
.nav-sentinel {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 12px;
  pointer-events: none;
}

/* JS-driven states (only present while a scene animates) */
[data-hero].is-out,
.is-gone {
  opacity: 0;
}
.msg.is-pop {
  animation: pop 520ms var(--spring-pop) both;
  transform-origin: var(--pop-origin, 100% 100%);
}
.msg.in.is-pop {
  --pop-origin: 0% 100%;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(0.6em) scale(0.92);
  }
}

/* Narrow stage: phone in front, laptop behind on the right, conversation only. */
@container (max-width: 640px) {
  .stage-inner {
    font-size: calc(100cqw / 40);
    height: 45em;
  }
  .hero-laptop {
    left: 13em;
    top: 4em;
    width: 27.5em;
    --lid-h: 17.6em;
  }
  .hero-laptop .lid {
    padding: 0.7em 0.7em 1em;
    border-radius: 1.2em 1.2em 0.5em 0.5em;
  }
  .hero-laptop .base {
    height: 1.2em;
  }
  .hero-laptop .screen {
    --ls: 0.6em;
  }
  .hero-laptop .app {
    grid-template-columns: 1fr;
  }
  .hero-laptop .d-side,
  .hero-laptop .d-chip,
  .hero-laptop .notice {
    display: none;
  }
  .hero-phone {
    left: 0.4em;
    top: 11.4em;
    width: 16.4em;
    height: 33.4em;
    padding: 0.55em;
    border-radius: 2.9em;
  }
  .hero-phone .phone-screen {
    --ps: 0.72em;
    border-radius: 3.2em;
  }
  .relay {
    left: 12.4em;
    top: 0;
    font-size: 0.8em;
  }
  .capsule {
    left: 12.4em;
    top: 5.1em;
    font-size: 0.8em;
  }
  .stage-glow {
    left: 0;
    right: 0;
    height: 30em;
  }
  .stage-toggle {
    top: auto;
    bottom: -10px;
  }
}

/* ---- Link story: sticky scene, steps scroll past ---------------------------------------------- */

.story {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(32px, 5vw, 80px);
}
.story-head {
  padding-top: 8vh;
}
.story-steps {
  counter-reset: s;
  padding-bottom: 20vh;
}
.story-step {
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 26rem;
  transition: opacity 400ms ease;
}
.story-step h3 {
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
  letter-spacing: -0.028em;
}
.story-step h3::before {
  counter-increment: s;
  content: counter(s);
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-right: 12px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--lumen);
  font-size: 0.875rem;
  font-weight: 600;
  vertical-align: 4px;
  transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease;
}
.story-step p {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 1.0625rem;
}
.story.is-live .story-step {
  opacity: 0.62;
}
.story.is-live .story-step.is-on {
  opacity: 1;
}
.story.is-live .story-step.is-on h3::before {
  background: var(--lumen);
  border-color: var(--lumen);
  color: var(--on-lumen);
}
.story-scene {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
}
.scene {
  position: relative;
  width: 100%;
  container-type: inline-size;
}
.scene-inner {
  position: relative;
  font-size: calc(100cqw / 60);
  height: 46em;
}
.scene-glow {
  position: absolute;
  inset: 10% 0 -4% 0;
  background: radial-gradient(50% 46% at 50% 50%, rgba(201, 242, 107, 0.08), transparent 72%);
  pointer-events: none;
}
.scene-laptop {
  left: 0;
  top: 3em;
  width: 49em;
  --lid-h: 31em;
}
.scene-laptop .screen {
  --ls: 0.72em;
}
.scene-phone {
  left: 44.5em;
  top: 13em;
  width: 15.2em;
  height: 31.5em;
  padding: 0.55em;
  border-radius: 2.8em;
  z-index: 3;
  transition: transform 900ms var(--ease-in-out);
}
.scene-phone .phone-screen {
  --ps: 0.6em;
  border-radius: 3.8em;
}
.scene[data-step='2'] .scene-phone {
  transform: translate(-2.6em, -2.4em) rotate(-5deg);
}

/* Laptop: link screen vs app */
.s-link,
.s-app {
  position: absolute;
  inset: 0;
  transition: opacity 500ms ease, transform 700ms var(--ease-brand);
}
.s-link {
  display: flex;
  align-items: center;
  gap: 3em;
  padding: 0 10.5em 0 4.4em;
}
.scene[data-step='3'] .s-link {
  opacity: 0;
  transform: scale(0.97);
}
.scene:not([data-step='3']) .s-app {
  opacity: 0;
  transform: scale(1.02);
}
.s-qr-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4em;
  flex-shrink: 0;
}
.s-qr {
  position: relative;
  width: 19em;
  height: 19em;
  padding: 2.2em;
  border-radius: 2em;
  background: var(--text);
  transition: box-shadow 400ms ease;
}
.s-qr > svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: #0c0c0e;
  shape-rendering: crispEdges;
}
.s-qr-ok {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 2em;
  background: rgba(242, 240, 235, 0.86);
  color: #3d5a0b;
  font-size: 6em;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 300ms ease, transform 400ms var(--spring-pop);
}
.scene[data-step='2'] .s-qr {
  box-shadow: 0 0 0 0.35em var(--lumen);
}
.scene[data-step='2'] .s-qr-ok {
  opacity: 1;
  transform: none;
  transition-delay: 900ms;
}
.s-qr-col small {
  margin-top: 0.8em;
  color: var(--muted);
  font-size: 1.15em;
}
.s-qr-col b {
  font-size: 2.2em;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.s-link-text {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  min-width: 0;
}
.s-brand {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 2em;
  font-weight: 600;
  letter-spacing: -0.045em;
}
.s-mark {
  width: 1.1em;
  height: 1.1em;
}
.s-title {
  font-size: 2.6em;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.s-lead {
  color: var(--text-2);
  font-size: 1.35em;
  line-height: 1.4;
}
.s-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 0.4em;
  font-size: 1.35em;
  font-weight: 500;
  transition: opacity 300ms ease;
}
.s-wait {
  color: var(--muted);
}
.s-got {
  position: absolute;
  left: 0;
  bottom: 0;
  color: var(--lumen);
  opacity: 0;
}
.scene[data-step='2'] .s-wait {
  opacity: 0;
  transition-delay: 900ms;
}
.scene[data-step='2'] .s-got {
  opacity: 1;
  transition-delay: 900ms;
}

/* Phone: scan, confirm, chats */
.sp-scan,
.sp-confirm,
.sp-chats {
  position: absolute;
  inset: 4.4em 0 0;
  display: flex;
  flex-direction: column;
  transition: opacity 400ms ease, transform 600ms var(--ease-brand);
}
.sp-scan,
.sp-confirm {
  padding: 1.6em 1.8em;
  gap: 1.1em;
}
.sp-title {
  font-size: 2em;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.sp-text {
  color: var(--text-2);
  font-size: 1.35em;
  line-height: 1.4;
}
.sp-cam {
  position: relative;
  flex: 1;
  margin: 0.6em 0 2em;
  border-radius: 2em;
  background: radial-gradient(80% 60% at 50% 40%, #1d1d22, #0a0a0c);
  overflow: hidden;
}
.sp-cam-qr {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62%;
  aspect-ratio: 1;
  padding: 5%;
  border-radius: 1em;
  background: var(--text);
  fill: #0c0c0e;
  shape-rendering: crispEdges;
  transform: translate(-50%, -50%) rotate(-3deg) scale(0.92);
  opacity: 0;
  transition: opacity 400ms ease, transform 700ms var(--ease-brand);
}
.sp-corner {
  position: absolute;
  width: 18%;
  aspect-ratio: 1;
  border: 0.35em solid rgba(242, 240, 235, 0.7);
  transition: border-color 300ms ease, transform 500ms var(--ease-brand);
}
.sp-corner.c1 {
  left: 12%;
  top: 14%;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 1.2em;
}
.sp-corner.c2 {
  right: 12%;
  top: 14%;
  border-left: 0;
  border-bottom: 0;
  border-top-right-radius: 1.2em;
}
.sp-corner.c3 {
  left: 12%;
  bottom: 14%;
  border-right: 0;
  border-top: 0;
  border-bottom-left-radius: 1.2em;
}
.sp-corner.c4 {
  right: 12%;
  bottom: 14%;
  border-left: 0;
  border-top: 0;
  border-bottom-right-radius: 1.2em;
}
.sp-line {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 16%;
  height: 0.3em;
  border-radius: 1em;
  background: var(--lumen);
  box-shadow: 0 0 1.6em 0.3em rgba(201, 242, 107, 0.45);
  opacity: 0;
}
.scene[data-step='2'] .sp-cam-qr {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(-1deg) scale(1);
}
.scene[data-step='2'] .sp-corner {
  border-color: var(--lumen);
}
@media (prefers-reduced-motion: no-preference) {
  .scene[data-step='2'] .sp-line {
    animation: scan 900ms var(--ease-in-out) 250ms both;
  }
}
@keyframes scan {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(var(--scan-y, 22em));
  }
}
.sp-confirm small {
  margin-top: 1em;
  color: var(--muted);
  font-size: 1.25em;
  text-align: center;
}
.sp-confirm .sp-title {
  margin-top: 2em;
  text-align: center;
}
.sp-code {
  font-size: 2.8em;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-align: center;
}
.sp-confirm .sp-text {
  text-align: center;
}
.sp-btn {
  margin-top: auto;
  margin-bottom: 1.6em;
  display: grid;
  place-items: center;
  height: 3.6em;
  border-radius: 999px;
  background: var(--lumen);
  color: var(--on-lumen);
  font-size: 1.4em;
  font-weight: 600;
}
.scene:not([data-step='1']) .sp-scan {
  opacity: 0;
}
.scene[data-step='2'] .sp-scan {
  transition-delay: 1100ms;
}
.sp-confirm {
  opacity: 0;
  transform: translateY(3em);
}
.scene[data-step='2'] .sp-confirm {
  opacity: 1;
  transform: none;
  transition-delay: 1100ms;
}
.scene:not([data-step='3']) .sp-chats {
  opacity: 0;
  transform: translateX(2em);
}
.sp-chats {
  padding: 1em 1.2em;
}
.sp-chats-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.4em;
}
.sp-chats-head b {
  font-size: 3em;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.sp-new {
  display: grid;
  place-items: center;
  width: 3.4em;
  height: 3.4em;
  border-radius: 50%;
  background: var(--lumen);
  color: var(--on-lumen);
  font-size: 1.1em;
}
.sp-new .i {
  font-size: 1.5em;
}
.sp-filters {
  display: flex;
  gap: 0.5em;
  margin: 1.2em 0 0.8em;
}
.sp-filters span {
  padding: 0.5em 1em;
  border-radius: 999px;
  background: var(--s2);
  color: var(--text-2);
  font-size: 1.2em;
  font-weight: 500;
}
.sp-filters .is-on {
  background: var(--lumen);
  color: var(--on-lumen);
}
.sp-rows li {
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 0.85em 0.4em;
}
.sp-rows .av {
  --avfs: 1.45em;
}
.sp-row-b {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}
.sp-row-top {
  display: flex;
  align-items: center;
  gap: 0.4em;
}
.sp-row-top b {
  flex: 1;
  min-width: 0;
  font-size: 1.45em;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-row-top time {
  color: var(--muted);
  font-size: 1.15em;
}
.sp-rows li.s-new time {
  color: var(--lumen);
}
.sp-row-pre {
  display: flex;
  align-items: center;
  gap: 0.4em;
  color: var(--muted);
  font-size: 1.25em;
  white-space: nowrap;
  overflow: hidden;
}
.sp-rows li.s-new .sp-row-pre {
  color: var(--text-2);
}

/* The message that arrives on both devices at once, in step 3. */
.scene.is-live:not([data-step='3']) .s-new {
  opacity: 0;
  transform: translateY(0.6em) scale(0.96);
}
.scene.is-live .s-new {
  transition: opacity 360ms ease 700ms, transform 520ms var(--spring-pop) 700ms;
}

@container (max-width: 480px) {
  .scene-inner {
    font-size: calc(100cqw / 46);
    height: 43em;
  }
  .scene-laptop {
    width: 40em;
    top: 1em;
    --lid-h: 25.5em;
  }
  .scene-laptop .screen {
    --ls: 0.6em;
  }
  .scene-phone {
    left: 31em;
    top: 12em;
    width: 14.6em;
    height: 30em;
  }
  .scene-phone .phone-screen {
    --ps: 0.58em;
  }
  .s-link {
    gap: 2.5em;
    padding: 0 3em;
  }
}

/* ---- Bento ------------------------------------------------------------------------------------ */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 500px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 28px;
  background: var(--s1);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.tile-copy {
  position: relative;
  z-index: 1;
  max-width: 30rem;
}
.tile-copy h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.375rem;
}
.tile-copy h3 .i {
  color: var(--lumen);
}
.tile-copy p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.5;
}
.tile-chat {
  grid-column: span 7;
}
.tile-call {
  grid-column: span 5;
  background:
    radial-gradient(60% 46% at 50% 68%, rgba(201, 242, 107, 0.09), transparent 72%),
    var(--s1);
}
.tile-timer {
  grid-column: span 5;
  min-height: 440px;
  background:
    linear-gradient(160deg, rgba(245, 176, 71, 0.045), transparent 45%),
    var(--s1);
}
.tile-group {
  grid-column: span 7;
  min-height: 440px;
}
.tile-fed {
  grid-column: 1 / -1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 32px;
  background:
    radial-gradient(circle at 1px 1px, rgba(242, 240, 235, 0.07) 1px, transparent 1.5px) 0 0 / 22px 22px,
    var(--s1);
}

.vig {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  font-size: 10px;
  margin-top: 28px;
}

/* chat */
.v-thread {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 470px;
  margin-inline: auto;
  --bfs: 1.5em;
}
.v-thread .bubble {
  max-width: 80%;
}
.bubble.media {
  display: block;
  padding: 0.25em;
  width: 62%;
  max-width: 62%;
}
.bubble.media img {
  width: 100%;
  border-radius: 1.05em 1.05em 1.05em 0.3em;
}
.bubble.media .meta {
  position: absolute;
  right: 0.8em;
  bottom: 0.7em;
  padding: 0.3em 0.55em;
  border-radius: 999px;
  background: rgba(12, 12, 14, 0.55);
  color: var(--text);
}
.has-react {
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0.8em;
}
.reactions {
  margin-top: -1em;
  margin-left: 1em;
  position: relative;
  z-index: 1;
  display: flex;
}
.reaction {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  height: 2.8em;
  padding: 0 0.85em;
  border-radius: 999px;
  border: 0.25em solid var(--s1);
  background: #2d3420;
  box-shadow: inset 0 0 0 0.1em var(--lumen-line);
}
.reaction .emo {
  font-family: var(--emoji);
  font-size: 1.4em;
  line-height: 1;
}
.reaction b {
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text-2);
}
.reaction.is-land {
  animation: land 640ms var(--spring-pop) both;
}
@keyframes land {
  from {
    opacity: 0;
    transform: translateY(-1.4em) scale(0.6);
  }
}
.quote {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0.15em 0 0.4em;
  padding: 0.4em 0.7em;
  border-radius: 0.7em;
  border-left: 0.2em solid rgba(12, 12, 14, 0.55);
  background: rgba(12, 12, 14, 0.09);
  font-size: 0.86em;
  line-height: 1.3;
}
.quote b {
  font-weight: 600;
}
.quote span {
  opacity: 0.75;
}
.typing .bubble {
  display: flex;
  gap: 0.3em;
  padding: 0.85em 1em;
}
.typing i {
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  background: var(--muted);
}
@media (prefers-reduced-motion: no-preference) {
  .vig.is-playing .typing i {
    animation: dots 1.2s ease-in-out infinite;
  }
  .vig.is-playing .typing i:nth-child(2) {
    animation-delay: 0.15s;
  }
  .vig.is-playing .typing i:nth-child(3) {
    animation-delay: 0.3s;
  }
}
@keyframes dots {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-0.25em);
  }
}

/* call */
.vig-call {
  align-items: center;
  justify-content: center;
  gap: 2.6em;
}
.c-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  height: 2.8em;
  padding: 0 1.2em;
  border-radius: 999px;
  background: rgba(6, 6, 8, 0.72);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 1.25em;
  font-weight: 500;
}
.c-badge .i {
  color: var(--lumen);
}
.c-who {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
}
.c-av {
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 1em;
}
.c-av .av {
  --avfs: 3.6em;
  position: relative;
  z-index: 1;
  transition: box-shadow 400ms ease;
}
.c-wave {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 0.15em solid var(--lumen-line);
  opacity: 0;
}
.vig-call.is-ringing .c-wave {
  animation: wave 1.6s var(--ease-out) infinite;
}
.vig-call.is-ringing .c-wave.w2 {
  animation-delay: 0.5s;
}
@keyframes wave {
  from {
    opacity: 0.9;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.7);
  }
}
.vig-call.is-live .c-av .av {
  box-shadow: 0 0 0 0.3em var(--s1), 0 0 0 0.45em var(--lumen-line);
}
.c-who b {
  font-size: 2.4em;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.c-status {
  color: var(--text-2);
  font-size: 1.6em;
  font-variant-numeric: tabular-nums;
}
.c-controls {
  display: flex;
  gap: 1.4em;
}
.c-btn {
  display: grid;
  place-items: center;
  width: 5.4em;
  height: 5.4em;
  border-radius: 50%;
  background: var(--s3);
  color: var(--text);
}
.c-btn .i {
  font-size: 2.2em;
}
.c-hang {
  background: var(--danger);
  color: var(--on-lumen);
}

/* timer */
.vig-timer {
  gap: 2.2em;
}
.tm-opts {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
  justify-content: center;
}
.tm-opts span {
  position: relative;
  padding: 0.6em 1.1em;
  border-radius: 999px;
  background: var(--s2);
  border: 0.1em solid var(--line);
  color: var(--text-2);
  font-size: 1.35em;
  font-weight: 500;
  transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease;
}
.tm-opts span.is-on {
  background: var(--lumen-tint);
  border-color: var(--lumen-line);
  color: var(--lumen);
}
.tm-thread {
  --bfs: 1.5em;
}
.tm-thread .bubble {
  max-width: 88%;
}
.sys {
  margin-bottom: 0.8em;
  color: var(--muted);
  font-size: 1.3em;
  text-align: center;
}
.meta .i {
  font-size: 1.05em;
}
.tm-thread .msg.is-vanish {
  animation: vanish 700ms var(--ease-out) forwards;
}
@keyframes vanish {
  to {
    opacity: 0;
    transform: scale(0.94) translateY(-0.4em);
  }
}

/* group */
.g-head {
  display: flex;
  align-items: center;
  gap: 1em;
  padding-bottom: 1.2em;
  margin-bottom: 0.6em;
  border-bottom: 1px solid var(--line);
}
.g-head > span:last-child {
  display: flex;
  flex-direction: column;
}
.g-head b {
  font-size: 1.6em;
  font-weight: 600;
}
.g-head small {
  color: var(--muted);
  font-size: 1.25em;
}
.g-stack {
  position: relative;
  width: 4.6em;
  height: 4.6em;
  flex-shrink: 0;
}
.g-stack .av {
  --avfs: 1.15em;
  position: absolute;
}
.g-stack .av:first-child {
  right: 0;
  top: 0;
}
.g-stack .av:last-child {
  left: 0;
  bottom: 0;
  box-shadow: 0 0 0 0.2em var(--s1);
}
.g-thread {
  --bfs: 1.45em;
}
.g-thread .msg.in {
  align-items: flex-end;
  gap: 0.7em;
}
.g-thread .msg.in > .av {
  --avfs: 1.15em;
}
.who {
  width: 100%;
  font-size: 0.82em;
  font-weight: 600;
}

/* federation */
.vig-fed {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 0;
  min-height: 150px;
}
.f-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3em;
  flex-shrink: 0;
  width: 13em;
}
.f-icon {
  display: grid;
  place-items: center;
  width: 6em;
  height: 6em;
  margin-bottom: 0.4em;
  border-radius: 50%;
  background: var(--s2);
  border: 0.1em solid var(--line-strong);
  color: var(--text);
}
.f-icon .i {
  font-size: 2.6em;
}
.f-node b {
  font-size: 1.6em;
  font-weight: 600;
}
.f-node small {
  color: var(--muted);
  font-size: 1.3em;
}
.f-wire {
  position: relative;
  flex: 1;
  max-width: 34em;
  height: 0.2em;
  margin-top: -6.4em;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 0.8em, transparent 0.8em 1.4em);
}
.f-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 3.6em;
  height: 3.6em;
  margin: -1.8em 0 0 -1.8em;
  border-radius: 50%;
  background: #1a1f12;
  border: 0.1em solid rgba(201, 242, 107, 0.5);
  color: var(--lumen);
}
.f-dot .i {
  font-size: 1.6em;
}

/* ---- What the server sees ----------------------------------------------------------------------- */

.flow {
  position: relative;
  padding: clamp(24px, 4vw, 48px);
  border-radius: 28px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
}
.flow-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 40px);
  padding-top: 150px;
  --lane: 1;
}
.flow-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.flow-node > b {
  font-size: 1.0625rem;
  font-weight: 600;
}
.flow-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--s2);
  border: 1px solid var(--line-strong);
  font-size: 26px;
  transition: border-color 300ms ease, box-shadow 300ms ease;
}
.flow-node.is-here .flow-icon {
  border-color: var(--lumen-line);
  box-shadow: 0 0 0 6px var(--lumen-tint);
}
.flow-track {
  position: absolute;
  left: calc((100% - 2 * clamp(16px, 3vw, 40px)) / 6.5);
  right: calc((100% - 2 * clamp(16px, 3vw, 40px)) / 6.5);
  top: 180px;
  height: 2px;
  z-index: 0;
}
.flow-line {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 14px);
}
.flow-read {
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--s1);
  border: 1px solid var(--line);
  text-align: left;
  font-size: 0.9375rem;
  line-height: 1.4;
  transition: opacity 500ms ease, transform 600ms var(--ease-brand);
}
.flow-read small {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
}
.flow-plain {
  color: var(--text);
  font-weight: 550;
}
.flow-from {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-size: 0.875rem;
}
.flow-pair {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-weight: 550;
  transition: opacity 400ms ease;
}
.flow-pair .i {
  color: var(--muted);
}
.flow-forget {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--caution);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: opacity 400ms ease;
}
.flow-forget i {
  width: 14px;
  height: 2px;
  background: currentColor;
}
.flow-pair::after {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  top: 52%;
  height: 2px;
  background: var(--caution);
  transform-origin: left;
  transition: transform 600ms var(--ease-in-out);
}
.flow-send .flow-pair {
  opacity: 0.62;
}
.flow-sealed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--lumen);
  font-weight: 500;
}
.flow-cipher {
  color: var(--muted);
  font-size: 0.8125rem;
}
.flow-server {
  gap: 12px;
}
.flow-note {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 48rem;
}

/* Envelope travels in the lane above the nodes. */
.envelope {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 2;
  width: 248px;
  height: 124px;
  margin-left: -124px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(170deg, #22222a, #18181d);
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  transition: transform 300ms var(--ease-out);
}
.envelope::before {
  content: '';
  position: absolute;
  inset: 0 0 52% 0;
  background: linear-gradient(to bottom right, transparent 49.4%, var(--line-strong) 49.6%, transparent 50.6%) left / 50% 100% no-repeat,
    linear-gradient(to bottom left, transparent 49.4%, var(--line-strong) 49.6%, transparent 50.6%) right / 50% 100% no-repeat;
  opacity: 0.8;
}
.env-seal {
  position: absolute;
  left: 50%;
  top: 46%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: var(--lumen);
  color: var(--on-lumen);
  font-size: 16px;
  box-shadow: 0 0 0 4px rgba(201, 242, 107, 0.14);
}
.env-to {
  position: relative;
  color: var(--text);
  font-size: 0.75rem;
}
.env-lines {
  position: relative;
  color: var(--faint);
  font-size: 0.6875rem;
  line-height: 1.35;
  white-space: nowrap;
}
.envelope.is-open .env-lines {
  color: var(--text);
  font-size: 0.8125rem;
}
.envelope.is-open .env-seal {
  background: var(--s3);
  color: var(--muted);
  box-shadow: none;
}

/* JS-hidden flow parts */
.flow.is-live .flow-read.is-off {
  opacity: 0;
  transform: translateY(10px);
}
.flow.is-live .flow-send:not(.is-forgot) .flow-pair {
  opacity: 1;
}
.flow.is-live .flow-send:not(.is-forgot) .flow-pair::after {
  transform: scaleX(0);
}
.flow.is-live .flow-send:not(.is-forgot) .flow-forget {
  opacity: 0;
}

.sees {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.sees-col {
  padding: clamp(24px, 3vw, 32px);
  border-radius: 20px;
  background: var(--s1);
  border: 1px solid var(--line);
}
.sees-col h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1875rem;
}
.sees-not h3 .i {
  color: var(--lumen);
}
.sees-col h3 .i {
  font-size: 1.3em;
  color: var(--muted);
}
.sees-not h3 .i {
  color: var(--lumen);
}
.sees-col ul {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}
.sees-col li {
  position: relative;
  padding-left: 20px;
  color: var(--text-2);
  font-size: 0.9875rem;
  line-height: 1.5;
}
.sees-col li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--faint);
}
.sees-not li::before {
  border-color: var(--lumen);
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(40px, 5vw, 64px);
}
.facts dt {
  font-size: 1rem;
  font-weight: 600;
}
.facts dd {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.tip {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: clamp(32px, 4vw, 48px);
  padding: 18px 22px;
  border-radius: 20px;
  background: var(--lumen-tint);
  border: 1px solid var(--lumen-line);
  color: var(--text);
  font-size: 1rem;
  max-width: 52rem;
}
.tip .i {
  margin-top: 2px;
  font-size: 1.35em;
  color: var(--lumen);
}

/* ---- Steps ------------------------------------------------------------------------------------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}
.steps::before {
  content: '';
  position: absolute;
  left: 32px;
  right: calc(33.33% - 32px);
  top: 31px;
  height: 1px;
  background: linear-gradient(90deg, var(--lumen-line), var(--line-strong));
  transform-origin: left;
}
.step {
  position: relative;
}
.step-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--lumen);
  font-size: 26px;
}
.step h3 {
  margin-top: 22px;
  font-size: 1.375rem;
}
.step p {
  margin-top: 8px;
  color: var(--text-2);
  max-width: 22rem;
}
.note {
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ---- Downloads --------------------------------------------------------------------------------- */

.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.dl-grid.has-current {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: 20px;
  background: var(--s1);
  border: 1px solid var(--line);
  transition: border-color 200ms ease;
}
.dl-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dl-more {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dl-card.is-current {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(24px, 3.4vw, 44px);
  border-color: var(--lumen-line);
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(201, 242, 107, 0.08), transparent 60%),
    var(--s1);
}
.dl-card.is-current .dl-name {
  flex: 0 1 auto;
}
.dl-card.is-current h3 {
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}
.dl-card.is-current .dl-icon {
  width: 56px;
  height: 56px;
  font-size: 28px;
  color: var(--lumen);
}
.dl-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.dl-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--s2);
  border: 1px solid var(--line-strong);
  font-size: 22px;
}
.dl-name {
  flex: 1;
  min-width: 0;
}
.dl-kind {
  color: var(--muted);
  font-size: 0.875rem;
}
.tag {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--lumen-tint);
  color: var(--lumen);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}
.dl-version {
  color: var(--text-2);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
.dl-version.is-error {
  color: var(--caution);
}
.dl-version.is-fresh {
  animation: fresh 500ms var(--ease-out);
}
@keyframes fresh {
  from {
    opacity: 0;
  }
}
.dl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.dl-card.is-current .dl-actions .btn {
  height: 54px;
  padding: 0 26px;
}
.hint {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}
.notes {
  display: grid;
  gap: 10px;
}
.notes li {
  position: relative;
  padding-left: 18px;
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.notes li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--faint);
}
.cmd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 14px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.cmd code {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.5;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--text);
  scrollbar-width: thin;
}
.sha summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  border-radius: 6px;
}
.sha summary::-webkit-details-marker {
  display: none;
}
.sha summary:hover {
  color: var(--text);
}
.sha .caret {
  font-size: 0.85em;
  transition: transform 200ms var(--ease-out);
}
.sha[open] .caret {
  transform: rotate(180deg);
}
.sha-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 8px 8px 14px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.sha-label {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.8125rem;
}
.hash {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-2);
  overflow-wrap: anywhere;
}
.copy {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--s2);
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.copy:hover {
  background: var(--s3);
  color: var(--text);
}
.copy:active {
  transform: scale(0.95);
}
.copy .i {
  font-size: 15px;
  transition: opacity 160ms ease, transform 260ms var(--spring-pop);
}
.copy .i-done {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -7.5px 0 0 -7.5px;
  opacity: 0;
  transform: scale(0.5);
}
.copy-labeled .i-done {
  left: 18px;
}
.copy.is-copied {
  border-color: var(--lumen-line);
  color: var(--lumen);
}
.copy.is-copied .i-copy {
  opacity: 0;
  transform: scale(0.5);
}
.copy.is-copied .i-done {
  opacity: 1;
  transform: none;
}

/* ---- Updates, footer ------------------------------------------------------------------------------ */

.updates {
  padding-top: 0;
}
.updates-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  padding-top: clamp(64px, 8vw, 112px);
  border-top: 1px solid var(--line);
}
.updates-grid h2 {
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
}
.update-list {
  display: grid;
  gap: 24px;
}
.update-list dt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.update-list dt .i {
  color: var(--muted);
  font-size: 1.15em;
}
.update-list dd {
  margin-top: 6px;
  padding-left: 30px;
  color: var(--text-2);
  font-size: 0.9875rem;
}
.site-footer {
  padding: 48px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 32px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--text);
  font-weight: 600;
}
.mark {
  width: 22px;
  height: 22px;
}

/* ---- Reveal on scroll (JS marks only what is still below the fold) ------------------------------- */

.reveal.is-pending {
  opacity: 0;
  transform: translateY(28px);
}
.reveal.is-revealed {
  transition: opacity 800ms var(--ease-out), transform 1000ms var(--ease-brand);
}
.bento .reveal.is-revealed:nth-child(2),
.sees.is-revealed {
  transition-delay: 70ms;
}
.bento .reveal.is-revealed:nth-child(3) {
  transition-delay: 0ms;
}
.bento .reveal.is-revealed:nth-child(4) {
  transition-delay: 70ms;
}
.steps.is-pending::before {
  transform: scaleX(0);
}
.steps.is-revealed::before {
  transition: transform 1400ms var(--ease-in-out) 300ms;
}
.steps.is-pending .step-icon {
  transform: scale(0.85);
}
.steps.is-revealed .step-icon {
  transition: transform 700ms var(--spring-pop);
}
.steps.is-revealed .step:nth-child(2) .step-icon {
  transition-delay: 350ms;
}
.steps.is-revealed .step:nth-child(3) .step-icon {
  transition-delay: 700ms;
}

/* ---- Responsive -------------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .tile-chat,
  .tile-call,
  .tile-timer,
  .tile-group {
    grid-column: span 6;
  }
  .dl-grid.has-current {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dl-grid.has-current .dl-card:not(.is-current):last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .story {
    grid-template-columns: minmax(0, 1fr);
  }
  .story-copy {
    display: contents;
  }
  .story-head {
    order: 0;
    padding-top: 0;
    margin-bottom: 28px;
  }
  .story-scene {
    order: 1;
    position: sticky;
    top: calc(var(--nav-h) - 8px);
    z-index: 2;
    height: auto;
    padding: 12px 0 28px;
    background: linear-gradient(var(--bg) 82%, rgba(12, 12, 14, 0));
  }
  .story-steps {
    order: 2;
    padding-bottom: 8vh;
  }
  .story-step {
    min-height: 48vh;
    justify-content: flex-start;
    padding-top: 8vh;
  }
  .flow-grid {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 0;
    padding-left: 76px;
    gap: 28px;
    --lane: 0;
  }
  .flow-node {
    align-items: flex-start;
    text-align: left;
    gap: 10px;
  }
  .flow-icon {
    position: absolute;
    left: -76px;
    top: -6px;
    width: 52px;
    height: 52px;
    font-size: 22px;
  }
  .flow-node > b {
    min-height: 40px;
    display: flex;
    align-items: center;
  }
  .flow-read {
    max-width: none;
  }
  .flow-track {
    left: 25px;
    right: auto;
    top: 30px;
    bottom: 60px;
    width: 2px;
    height: auto;
  }
  .flow-line {
    background: repeating-linear-gradient(180deg, var(--line-strong) 0 8px, transparent 8px 14px);
  }
  .envelope {
    left: -76px;
    top: 0;
    width: 52px;
    height: 52px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    border-color: rgba(201, 242, 107, 0.5);
    background: #1a1f12;
  }
  .envelope::before,
  .env-to,
  .env-lines {
    display: none;
  }
  .flow:not(.is-live) .envelope {
    display: none;
  }
  .env-seal {
    top: 50%;
  }
  .sees,
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .steps::before {
    left: 31px;
    right: auto;
    top: 32px;
    bottom: 32px;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--lumen-line), var(--line-strong));
    transform-origin: top;
  }
  .steps.is-pending::before {
    transform: scaleY(0);
  }
  .step {
    padding-left: 88px;
  }
  .step-icon {
    position: absolute;
    left: 0;
    top: -4px;
  }
  .step h3 {
    margin-top: 12px;
  }
  .updates-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .tile-fed {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .tile-chat,
  .tile-call,
  .tile-timer,
  .tile-group {
    grid-column: 1 / -1;
  }
  .tile {
    min-height: 460px;
  }
  .tile-timer,
  .tile-group {
    min-height: 420px;
  }
  .tile-fed {
    min-height: 0;
  }
  .vig {
    font-size: 9.5px;
  }
  .dl-grid,
  .dl-grid.has-current {
    grid-template-columns: minmax(0, 1fr);
  }
  .dl-card.is-current {
    grid-template-columns: minmax(0, 1fr);
  }
  .dl-grid.has-current .dl-card:not(.is-current):last-child {
    grid-column: auto;
  }
  .hero-cta {
    margin-top: 26px;
    gap: 6px;
  }
  .hero-cta .btn-primary {
    width: 100%;
    max-width: 360px;
  }
  .hero-cta .btn-ghost {
    height: 40px;
    border-color: transparent;
    color: var(--text-2);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: var(--line-strong);
    text-underline-offset: 4px;
  }
  .hero-title {
    font-size: clamp(2.4rem, 1rem + 6.4vw, 2.9rem);
  }
  .hero-lead {
    margin-top: 16px;
    font-size: 1.0625rem;
  }

  .f-node {
    width: 10em;
  }
}

@media (max-width: 420px) {
  .vig {
    font-size: 8.6px;
  }
  .hero-cta .btn-lg {
    height: 56px;
    padding: 0 20px;
    font-size: 1rem;
  }
  .footer-brand {
    width: 100%;
  }
}

/* ---- Reduced motion: still, complete states ----------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .scene-phone,
  .s-link,
  .s-app,
  .sp-scan,
  .sp-confirm,
  .sp-chats,
  .sp-cam-qr,
  .s-qr-ok,
  .reveal,
  .flow-read {
    transition-property: opacity !important;
    transition-duration: 250ms !important;
    transform: none !important;
  }
  .scene[data-step='2'] .scene-phone {
    transform: none;
  }
  .reveal.is-pending {
    opacity: 1;
  }
  .c-wave {
    display: none;
  }
}

@media (prefers-contrast: more) {
  .nav-bg {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .tile,
  .dl-card,
  .sees-col,
  .flow-read {
    border-color: var(--line-strong);
  }
}
