/* ==========================================================================
   Riftwell — riftwell.dev
   One idea: the calm of a well-drawn sheet. A strict grid, large type, fine
   lines, one blue for the company and one orange for the door into the beta.
   Light is the first design; dark is designed, not inverted.
   Every page is complete with scripts blocked; motion is enhancement only.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  color-scheme: light;

  /* neutrals, biased cool toward the brand blue */
  --bg: #ffffff;
  --bg-2: #f5f7fa;
  --bg-3: #eceff4;
  --ink: #0a1324;
  --ink-2: #3a4456;
  --ink-3: #5f6b7e;
  --line: #e3e7ee;
  --line-2: #cdd4de;

  /* the company */
  --brand: #1d4ed8;
  --brand-hi: #1e40af;
  --brand-soft: #edf2ff;

  /* the one warm accent: the beta door */
  --warm: #c2410c;
  --warm-hi: #a5370b;
  --warm-ink: #ffffff;

  /* primary (ink) button */
  --solid: #0a1324;
  --solid-hi: #1c2840;
  --solid-ink: #ffffff;

  /* the dark bands and the footer */
  --night: #0a1324;
  --night-2: #111c33;
  --night-line: #22304a;
  --night-ink: #f1f4f9;
  --night-ink-2: #a9b4c7;
  --night-brand: #8fb0ff;

  --amber: #9a5b00;

  /* the hero drawing */
  --iso-line: #0d1a33;
  --iso-fill-a: #ffffff;
  --iso-fill-b: #e6edfb;
  --iso-grid: #cfd7e4;
  --iso-dim: #1d4ed8;
  --iso-glow: #dfe8ff;
  --iso-shadow: #0a1324;
  --iso-shadow-a: .10;
  --iso-knock: #ffffff;

  --shadow-1: 0 1px 2px rgba(10, 19, 36, .05);
  --shadow-2: 0 1px 2px rgba(10, 19, 36, .04), 0 10px 28px -8px rgba(10, 19, 36, .12), 0 28px 56px -24px rgba(10, 19, 36, .14);
  --shadow-3: 0 2px 4px rgba(10, 19, 36, .04), 0 24px 60px -16px rgba(10, 19, 36, .22);

  /* type */
  --f-sans: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --t-display: clamp(2.75rem, 1.6rem + 4.9vw, 5.75rem);
  --t-h1: clamp(2.5rem, 1.7rem + 3.6vw, 4.75rem);
  --t-h2: clamp(1.875rem, 1.35rem + 2.1vw, 3.25rem);
  --t-h3: clamp(1.1875rem, 1.1rem + .35vw, 1.375rem);
  --t-lede: clamp(1.1875rem, 1.06rem + .55vw, 1.5rem);
  --t-statement: clamp(1.5rem, 1.05rem + 1.9vw, 2.625rem);
  --t-body: 1.0625rem;
  --t-small: .9375rem;
  --t-label: .8125rem;

  /* space: an 8-point rhythm */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --sec: clamp(80px, 4rem + 6vw, 152px);
  --gutter: clamp(20px, 4vw, 48px);
  --max: 1280px;
  --hdr: 68px;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 20px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --fast: 160ms;
  --mid: 280ms;
}

/* dark: its own palette, deep blue-black, never a straight inversion */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0e14;
    --bg-2: #10141c;
    --bg-3: #171c26;
    --ink: #eef1f6;
    --ink-2: #b7c0ce;
    --ink-3: #8c96a8;
    --line: #1d232f;
    --line-2: #2c3443;
    --brand: #7ea6ff;
    --brand-hi: #a3c0ff;
    --brand-soft: #131d36;
    --warm: #ff8a3d;
    --warm-hi: #ffa266;
    --warm-ink: #1a0b00;
    --solid: #eef1f6;
    --solid-hi: #ffffff;
    --solid-ink: #0b0e14;
    --night: #0f1626;
    --night-2: #161d2b;
    --night-line: #22304c;
    --night-ink: #f1f4f9;
    --night-ink-2: #a9b4c7;
    --night-brand: #8fb0ff;
    --amber: #f0b45a;
    --iso-line: #a8bce3;
    --iso-fill-a: #1b2742;
    --iso-fill-b: #0f1626;
    --iso-grid: #1c2537;
    --iso-dim: #7ea6ff;
    --iso-glow: #1a3170;
    --iso-shadow: #000000;
    --iso-shadow-a: .5;
    --iso-knock: #0b0e14;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-2: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -12px rgba(0, 0, 0, .55);
    --shadow-3: 0 2px 4px rgba(0, 0, 0, .3), 0 30px 70px -20px rgba(0, 0, 0, .7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0e14;
  --bg-2: #10141c;
  --bg-3: #171c26;
  --ink: #eef1f6;
  --ink-2: #b7c0ce;
  --ink-3: #8c96a8;
  --line: #1d232f;
  --line-2: #2c3443;
  --brand: #7ea6ff;
  --brand-hi: #a3c0ff;
  --brand-soft: #131d36;
  --warm: #ff8a3d;
  --warm-hi: #ffa266;
  --warm-ink: #1a0b00;
  --solid: #eef1f6;
  --solid-hi: #ffffff;
  --solid-ink: #0b0e14;
  --night: #0f1626;
  --night-2: #161d2b;
  --night-line: #22304c;
  --night-ink: #f1f4f9;
  --night-ink-2: #a9b4c7;
  --night-brand: #8fb0ff;
  --amber: #f0b45a;
  --iso-line: #a8bce3;
  --iso-fill-a: #1b2742;
  --iso-fill-b: #0f1626;
  --iso-grid: #1c2537;
  --iso-dim: #7ea6ff;
  --iso-glow: #1a3170;
  --iso-shadow: #000000;
  --iso-shadow-a: .5;
  --iso-knock: #0b0e14;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -12px rgba(0, 0, 0, .55);
  --shadow-3: 0 2px 4px rgba(0, 0, 0, .3), 0 30px 70px -20px rgba(0, 0, 0, .7);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--hdr) + 24px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--f-sans);
  font-size: var(--t-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "calt";
  overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 560; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
dl, dd { margin: 0; }
strong, b { font-weight: 600; color: var(--ink); }
a { color: inherit; }
::selection { background: color-mix(in oklab, var(--brand) 22%, transparent); color: var(--ink); }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--solid); color: var(--solid-ink);
  font-weight: 600; font-size: var(--t-small); text-decoration: none;
  transform: translateY(-160%); transition: transform var(--fast) var(--ease);
}
.skip:focus-visible { transform: none; }

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

/* trademark marks */
.tm-g {
  font-size: .36em; font-weight: 500; letter-spacing: 0;
  vertical-align: .95em; line-height: 0; margin-left: .06em;
}
.num, .facts dd, .record dd, .data-table td { font-variant-numeric: tabular-nums; }

/* small parts used everywhere */
.eyebrow {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: var(--t-label); font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3);
  margin-bottom: var(--s5);
}
.eyebrow-rule { width: 28px; height: 1px; background: var(--line-2); }
.label {
  font-size: var(--t-label); font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3);
}
.dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--warm); margin-right: 10px; vertical-align: .12em;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--warm) 18%, transparent);
}

.ic {
  width: 36px; height: 36px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.arr {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform var(--mid) var(--ease);
}

/* ---------- buttons and links ---------- */
.btn {
  --b-bg: var(--solid); --b-ink: var(--solid-ink); --b-hi: var(--solid-hi);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  background: var(--b-bg); color: var(--b-ink);
  font: 550 var(--t-small)/1 var(--f-sans); letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease),
              border-color var(--fast) var(--ease), box-shadow var(--mid) var(--ease), transform var(--fast) var(--ease);
}
.btn:hover { background: var(--b-hi); box-shadow: var(--shadow-2); }
.btn:hover .arr { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { --b-bg: var(--solid); --b-ink: var(--solid-ink); --b-hi: var(--solid-hi); }
.btn-warm { --b-bg: var(--warm); --b-ink: var(--warm-ink); --b-hi: var(--warm-hi); }
.btn-quiet {
  --b-bg: transparent; --b-ink: var(--ink); --b-hi: var(--bg);
  border-color: var(--line-2);
}
.btn-quiet:hover { border-color: var(--ink-3); box-shadow: none; }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: .875rem; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1rem; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); font-weight: 550; font-size: var(--t-small);
  text-decoration: none; white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size var(--mid) var(--ease), color var(--fast);
}
.link-arrow:hover { background-size: calc(100% - 24px) 1px; }
.link-arrow:hover .arr { transform: translateX(3px); }
.link-arrow .arr { color: var(--brand); }
.link-arrow.on-dark { color: var(--night-ink); }
.link-arrow.on-dark .arr { color: var(--night-brand); }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  height: var(--hdr);
  border-bottom: 1px solid var(--line);
}
/* the frosted glass sits on a layer of its own: a backdrop-filter on the
   header itself would trap the fixed phone menu inside the header's box */
.hdr::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
}
.menu-open .hdr::before { background: var(--bg); }
.hdr-in {
  height: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.brand {
  display: inline-flex; align-items: flex-start; gap: 2px;
  color: var(--ink); text-decoration: none; flex: none;
  border-radius: 4px;
}
.brand img { width: 120px; height: auto; }
.brand .tm { font-size: 9px; font-weight: 600; line-height: 1; margin-top: -2px; color: var(--ink-3); }
.logo-d { display: none; }
:root[data-theme="dark"] .logo-l { display: none; }
:root[data-theme="dark"] .logo-d { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-l { display: none; }
  :root:not([data-theme="light"]) .logo-d { display: block; }
}

.nav { display: flex; align-items: center; flex: 1; gap: 24px; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 4px; margin-left: 24px; }
.nav-list > li { position: relative; }
.nav-a {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 12px; border-radius: 8px;
  color: var(--ink-2); text-decoration: none;
  font-size: .9375rem; font-weight: 500; letter-spacing: -.005em;
  transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.nav-a:hover { color: var(--ink); background: var(--bg-2); }
.nav-a[aria-current="page"] { color: var(--ink); }
.nav-a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px;
  bottom: calc((40px - var(--hdr)) / 2 - 1px); height: 2px;
  background: var(--brand); border-radius: 2px;
}
.nav-a .chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .6; transition: transform var(--mid) var(--ease); }

/* the Apps panel */
.panel {
  position: absolute; top: calc(100% + 14px); left: -12px;
  width: 360px; padding: 8px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-3);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--mid) var(--ease), transform var(--mid) var(--ease), visibility 0s linear var(--mid);
}
.panel::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
@media (hover: hover) and (min-width: 961px) {
  .has-panel:hover .panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .has-panel:hover .chev { transform: rotate(180deg); }
}
@media (min-width: 961px) {
  .has-panel:focus-within .panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .has-panel.closed .panel { opacity: 0 !important; visibility: hidden !important; }
}
.panel-app {
  display: grid; gap: 4px; padding: 16px 16px 18px; border-radius: 10px;
  text-decoration: none; color: var(--ink-2);
  transition: background-color var(--fast) var(--ease);
}
.panel-app:hover { background: var(--bg-2); }
.panel-k { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.panel-name { font-size: 1.125rem; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.panel-d { font-size: .9375rem; }
.panel-s { font-size: .8125rem; color: var(--ink-3); margin-top: 6px; }
.panel-s .dot { width: 6px; height: 6px; margin-right: 8px; }
.panel-foot {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 4px; padding: 12px 16px 8px; border-top: 1px solid var(--line);
}
.panel-foot a { font-size: .875rem; font-weight: 550; color: var(--ink); text-decoration: none; }
.panel-foot a:hover { color: var(--brand); }
.panel-foot a[href="/beta"] { color: var(--warm); }
.panel-foot a[href="/beta"]:hover { color: var(--warm-hi); }

.nav-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.signin {
  display: inline-flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 8px;
  color: var(--ink-2); font-size: .9375rem; font-weight: 500; text-decoration: none;
  transition: color var(--fast), background-color var(--fast);
}
.signin:hover { color: var(--ink); background: var(--bg-2); }
.hdr-beta { display: none; }
.area-apps .hdr-beta { display: inline-flex; }

.hdr-tools { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; padding: 0; border-radius: 10px;
  border: 1px solid transparent; background: transparent; color: var(--ink-2);
  cursor: pointer; transition: color var(--fast), background-color var(--fast), border-color var(--fast);
}
.icon-btn:hover { color: var(--ink); background: var(--bg-2); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn { display: none; }
.js .theme-btn { display: inline-grid; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}
.menu-btn { display: none; }
.burger { position: relative; width: 18px; height: 12px; display: block; }
.burger i {
  position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 2px; background: currentColor;
  transition: transform var(--mid) var(--ease), top var(--mid) var(--ease);
}
.burger i:first-child { top: 2px; }
.burger i:last-child { top: 9px; }
.menu-open .burger i:first-child { top: 5.25px; transform: rotate(45deg); }
.menu-open .burger i:last-child { top: 5.25px; transform: rotate(-45deg); }

/* phones and small tablets: a full-screen menu */
@media (max-width: 960px) {
  :root { --hdr: 60px; }
  .brand img { width: 108px; }
  .js .menu-btn { display: inline-grid; }
  .hdr-tools { margin-left: auto; }

  .js .nav {
    position: fixed; left: 0; right: 0; top: var(--hdr); bottom: 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--bg);
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--mid) var(--ease), transform var(--mid) var(--ease), visibility 0s linear var(--mid);
  }
  .js .nav { pointer-events: none; }
  .js.menu-open .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; pointer-events: auto; }
  .js .nav-list { flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
  .js .nav-list > li { border-bottom: 1px solid var(--line); }
  .js .nav-a {
    height: auto; padding: 20px 0; border-radius: 0; background: none;
    font-size: 1.5rem; font-weight: 500; letter-spacing: -.02em; color: var(--ink);
  }
  .js .nav-a[aria-current="page"]::after { left: -12px; right: auto; top: 50%; bottom: auto; width: 3px; height: 22px; transform: translateY(-50%); }
  .js .nav-a .chev { display: none; }
  .js .panel {
    position: static; width: auto; padding: 0 0 16px; margin-top: -6px;
    border: 0; border-radius: 0; box-shadow: none; background: transparent;
    opacity: 1; visibility: inherit; transform: none;
  }
  .js .panel::before { display: none; }
  .js .panel-app { padding: 14px 16px; background: var(--bg-2); border-radius: 12px; }
  .js .panel-foot { border: 0; padding: 14px 4px 0; justify-content: flex-start; gap: 24px; }
  .js .nav-end { flex-direction: column; align-items: stretch; margin: 24px 0 0; gap: 12px; }
  .js .signin { height: 52px; justify-content: center; border: 1px solid var(--line-2); border-radius: 999px; font-size: 1rem; color: var(--ink); }
  .js .hdr-beta { min-height: 52px; font-size: 1rem; }
  .menu-open { overflow: hidden; }

  /* scripts blocked: the links simply sit under the logo */
  html:not(.js) .hdr { position: static; height: auto; }
  html:not(.js) .hdr-in { flex-wrap: wrap; padding-block: 14px; gap: 8px 16px; }
  html:not(.js) .nav { flex-basis: 100%; flex-wrap: wrap; gap: 8px; }
  html:not(.js) .nav-list { margin: 0; flex-wrap: wrap; }
  html:not(.js) .nav-a { padding: 0 10px 0 0; height: 36px; }
  html:not(.js) .nav-a[aria-current="page"]::after { display: none; }
  html:not(.js) .panel { display: none; }
  html:not(.js) .nav-end { margin-left: 0; }
  html:not(.js) .signin { padding-left: 0; }
}

/* ---------- sections ---------- */
.sec { padding-block: var(--sec); }
.sec + .sec:not(.sec-alt) { border-top: 1px solid var(--line); }
.sec-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec-head { max-width: 860px; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head h2 { font-size: var(--t-h2); line-height: 1.06; letter-spacing: -.032em; }
.sec-head-split {
  max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 24px 48px;
}
.sec-head-split > div { max-width: 760px; }
.sec-note { max-width: 380px; font-size: var(--t-lede); line-height: 1.45; color: var(--ink-3); letter-spacing: -.01em; }
.aside { margin-top: var(--s6); font-size: var(--t-small); color: var(--ink-3); }
.aside a, .prose a, .lede a, .ph-lede a, .close-copy a, .lead a, .q a {
  color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 3px; text-decoration-color: color-mix(in oklab, var(--brand) 40%, transparent);
  transition: text-decoration-color var(--fast);
}
.aside a:hover, .prose a:hover, .lede a:hover, .ph-lede a:hover, .close-copy a:hover, .lead a:hover, .q a:hover { text-decoration-color: currentColor; }

/* ---------- home: hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(56px, 8vw, 120px) clamp(64px, 8vw, 128px);
  overflow: hidden;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center; gap: clamp(32px, 4vw, 64px);
}
.display {
  font-size: var(--t-display); line-height: .98; letter-spacing: -.045em; font-weight: 560;
  max-width: 13ch;
}
.hero-lede {
  margin-top: clamp(24px, 3vw, 36px); max-width: 33em;
  font-size: var(--t-lede); line-height: 1.45; letter-spacing: -.012em; color: var(--ink-3);
}
.hero-lede strong { color: var(--ink); font-weight: 550; }
.hero .actions { margin-top: clamp(32px, 4vw, 44px); }
.hero-art { margin: 0 -2% 0 -6%; }

/* The slogan is the page: full width, set as large as the screen allows, in two tones. */
.hero { padding-block: clamp(40px, 5vw, 72px) clamp(56px, 7vw, 112px); }
.hero-head { position: relative; margin-bottom: clamp(28px, 4vw, 56px); }
.hero-head .eyebrow { margin-bottom: clamp(20px, 2.4vw, 32px); }
.display-xl {
  max-width: none; font-size: clamp(3.1rem, 1.2rem + 9.4vw, 9.25rem);
  line-height: .93; letter-spacing: -.055em; font-weight: 600; text-wrap: balance;
}
.display-xl .sl-a, .display-xl .sl-b { display: block; }
.display-xl .sl-b { color: var(--brand); }
.display-xl .tm-g { font-size: .26em; vertical-align: 1.9em; margin-left: .08em; }
.hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.hero-grid .hero-copy { padding-top: clamp(0px, 1.2vw, 20px); }
.hero-grid .hero-art { margin: clamp(-96px, -6vw, -24px) -3% 0 0; }

/* the drawing */
.iso { width: 100%; height: auto; overflow: visible; }
.iso-light { opacity: .9; }
.iso-grid { fill: none; stroke: var(--iso-grid); stroke-width: .6; }
.iso-shadow { fill: none; stroke: var(--iso-shadow); stroke-width: 16; opacity: var(--iso-shadow-a); }
.iso-plan, .iso-drop { fill: none; stroke: var(--iso-dim); stroke-width: 1; stroke-dasharray: 1.5 4; stroke-linecap: round; opacity: .55; }
.iso-pipe path, .iso-fit path { fill: none; }
.iso .o { stroke: var(--iso-line); stroke-width: 13; }
.iso .i { stroke: url(#iso-sheen); stroke-width: 10.4; }
.iso .o.h { stroke-width: 17; }
.iso .i.h { stroke-width: 14.4; }
.iso .o.v, .iso .i.v { stroke-linecap: round; }
.iso .o.v { stroke-width: 22; }
.iso .i.v { stroke-width: 19.4; }
.iso .o.cap { stroke-width: 16; }
.iso .stem { stroke: var(--iso-line); stroke-width: 2.4; }
.iso .lever { stroke: var(--iso-line); stroke-width: 4; stroke-linecap: round; }
.iso-cl { fill: none; stroke: var(--iso-dim); stroke-width: .8; stroke-dasharray: 10 3 2 3; opacity: .65; }
.iso-ends circle { fill: var(--iso-dim); }
.iso-dim { fill: none; stroke: var(--iso-dim); stroke-width: 1; }
.iso-tk path { stroke-width: 1.3; }
.iso-lab rect { fill: var(--iso-knock); stroke: none; }
.iso-lab text { fill: var(--iso-dim); stroke: none; font: 500 12px/1 var(--f-mono); letter-spacing: .02em; }

@media (prefers-reduced-motion: no-preference) {
  .iso-light, .iso-grid { animation: iso-fade 1.4s var(--ease) both; }
  .iso-pipe path { stroke-dasharray: 1 1; animation: iso-draw 2.4s var(--ease-io) .35s both; }
  .iso-pipe .b { animation-delay: 1.5s; animation-duration: 1.3s; }
  .iso-fit, .iso-cl, .iso-ends { animation: iso-fade .9s var(--ease) 2.1s both; }
  .iso-shadow { animation: iso-fade-shadow 1.6s var(--ease) 1.8s both; }
  .iso-plan, .iso-drop { animation: iso-fade-soft 1.2s var(--ease) 2.4s both; }
  .iso-dim { animation: iso-rise .9s var(--ease) both; animation-delay: calc(2.6s + var(--i, 0) * .15s); }
}
@keyframes iso-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes iso-fade { from { opacity: 0; } }
@keyframes iso-fade-soft { from { opacity: 0; } to { opacity: .55; } }
@keyframes iso-fade-shadow { from { opacity: 0; } to { opacity: var(--iso-shadow-a); } }
@keyframes iso-rise { from { opacity: 0; transform: translateY(4px); } }

/* ---------- home: statement ---------- */
.statement { padding-block: clamp(72px, 9vw, 128px); border-top: 1px solid var(--line); }
.statement-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px 48px; }
.statement .label { padding-top: .9em; }
.statement-text {
  font-size: var(--t-statement); line-height: 1.18; letter-spacing: -.028em;
  font-weight: 500; color: var(--ink); max-width: 30ch;
}
.statement-text span { color: var(--ink-3); }

/* ---------- home: four ideas ---------- */
.ideas {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-2);
}
.idea {
  position: relative;
  padding: 32px 28px 40px;
  border-right: 1px solid var(--line);
  transition: background-color var(--mid) var(--ease);
}
.idea:first-child { padding-left: 0; }
.idea:last-child { border-right: 0; padding-right: 0; }
.idea::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.idea:hover::before { transform: scaleX(1); }
.idea-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 40px; color: var(--ink); }
.idea:hover .ic { color: var(--brand); }
.idea .ic { transition: color var(--mid) var(--ease); }
.idea-n { font: 500 .8125rem/1 var(--f-mono); color: var(--ink-3); letter-spacing: .04em; }
.idea-name { font-size: var(--t-label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.idea h3 { font-size: var(--t-h3); line-height: 1.25; letter-spacing: -.018em; margin-bottom: 14px; font-weight: 580; }
.idea p:not(.idea-name) { font-size: var(--t-small); line-height: 1.6; color: var(--ink-3); }
.idea em { font-style: normal; color: var(--ink); font-weight: 550; }

/* ---------- product feature ---------- */
.feature {
  display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 5fr);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-1);
  transition: box-shadow var(--mid) var(--ease), border-color var(--mid) var(--ease);
}
.feature:hover { box-shadow: var(--shadow-2); border-color: var(--line-2); }
.feature-art { display: block; background: #121a2b; overflow: hidden; }
.feature-art img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; transition: transform 1.2s var(--ease); }
.feature:hover .feature-art img { transform: scale(1.02); }
.feature-body { padding: clamp(28px, 3.5vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.feature-k { font-size: var(--t-label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.feature-k span { margin: 0 6px; }
.feature-title { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); line-height: 1.08; letter-spacing: -.03em; margin-bottom: 16px; }
.feature-body > p:not(.feature-k) { color: var(--ink-3); }
.feature .actions { margin-top: 28px; }

.spec { margin-top: 24px; border-top: 1px solid var(--line); }
.spec > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--t-small); }
.spec dt { color: var(--ink-3); }
.spec dd { color: var(--ink); font-weight: 500; text-align: right; }

/* ---------- home: how we build ---------- */
.how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(48px, 7vw, 120px); align-items: start; }
.how-intro { position: sticky; top: calc(var(--hdr) + 48px); }
.how-intro h2 { font-size: var(--t-h2); line-height: 1.06; letter-spacing: -.032em; margin-bottom: 32px; }
.rows { list-style: none; border-top: 1px solid var(--line-2); }
.rows li { border-bottom: 1px solid var(--line); }
.rows a {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 16px;
  padding: 26px 4px; text-decoration: none; color: var(--ink);
  transition: padding var(--mid) var(--ease), color var(--fast);
}
.rows-n { font: 500 .8125rem/1 var(--f-mono); color: var(--ink-3); letter-spacing: .04em; }
.rows-t { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.75rem); font-weight: 520; letter-spacing: -.022em; line-height: 1.2; }
.rows .arr { width: 20px; height: 20px; color: var(--ink-3); }
.rows a:hover { padding-left: 12px; }
.rows a:hover .rows-n, .rows a:hover .arr { color: var(--brand); }
.rows a:hover .arr { transform: translateX(4px); }

/* ---------- the "check before you cut" band ---------- */
.check {
  background: var(--night); color: var(--night-ink-2);
  padding-block: clamp(88px, 11vw, 168px);
  position: relative; overflow: hidden;
}
.check::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--night-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--night-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 85% 100%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 90% at 85% 100%, #000, transparent 70%);
  opacity: .6;
}
.check-in { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: end; }
.check h2 {
  grid-column: 1; color: var(--night-ink);
  font-size: clamp(2.75rem, 1.5rem + 5.2vw, 6rem); line-height: .98; letter-spacing: -.045em; font-weight: 560;
}
.check-dim {
  /* a dimension line with drafting ticks, the width of the statement */
  grid-column: 1 / -1; position: relative; height: 20px; margin-bottom: 16px;
  border-inline: 1px solid var(--night-brand); opacity: .9;
}
.check-dim i { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--night-brand); transform-origin: left; }
.check-dim::before, .check-dim::after {
  content: ""; position: absolute; top: 50%; width: 12px; height: 1px; background: var(--night-brand);
  transform: translate(-50%, -50%) rotate(-45deg);
}
.check-dim::before { left: 0; }
.check-dim::after { left: 100%; }
.check-copy { grid-column: 2; display: grid; gap: 14px; padding-bottom: 10px; }
.check-copy .check-lead { color: var(--night-ink); font-weight: 550; font-size: 1.125rem; }
.check-copy a { margin-top: 10px; justify-self: start; }

/* ---------- facts strip ---------- */
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-2);
}
.facts > div { padding: 28px 28px 8px 0; }
.facts > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.facts dt { font-size: var(--t-label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.facts dd { color: var(--ink); font-size: 1.0625rem; line-height: 1.55; font-weight: 500; }
.facts dd a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--brand), var(--brand)) 0 100% / 0 1px no-repeat; transition: background-size var(--mid) var(--ease); }
.facts dd a:hover { background-size: 100% 1px; }
.facts-sub { display: block; color: var(--ink-3); font-weight: 400; font-size: var(--t-small); margin-top: 4px; }
.facts-addr { font-weight: 500; }

/* ---------- closing call ---------- */
.close { padding-bottom: var(--sec); }
.close-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px 64px;
  padding: clamp(36px, 5vw, 72px);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px;
}
.close-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line-2) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-2) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 50% 90% at 100% 0%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 50% 90% at 100% 0%, #000, transparent 75%);
  opacity: .45;
}
.close-copy { position: relative; max-width: 640px; }
.close-copy h2 { font-size: var(--t-h2); line-height: 1.06; letter-spacing: -.032em; margin-bottom: 18px; }
.close-copy p:not(.eyebrow) { font-size: 1.125rem; color: var(--ink-3); }
.close-card .actions { position: relative; }

/* ---------- inner page header ---------- */
.ph, .page-head {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.ph { padding-block: clamp(40px, 5vw, 64px) clamp(56px, 7vw, 104px); }
.ph::before, .page-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: right -1px top -1px;
  -webkit-mask-image: radial-gradient(ellipse 45% 100% at 100% 0%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 45% 100% at 100% 0%, #000, transparent 70%);
  opacity: .7;
}
.ph > .wrap { position: relative; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .875rem; color: var(--ink-3); margin-bottom: clamp(40px, 6vw, 72px); }
.crumbs li { display: inline-flex; align-items: center; gap: 10px; }
.crumbs li + li::before { content: ""; width: 5px; height: 5px; border-top: 1px solid var(--line-2); border-right: 1px solid var(--line-2); transform: rotate(45deg); margin-right: 2px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--ink); }
.ph h1, .page-head h1 { font-size: var(--t-h1); line-height: 1; letter-spacing: -.042em; font-weight: 560; max-width: 16ch; }
.ph-lede, .page-head .standfirst {
  margin-top: clamp(20px, 2.5vw, 32px); max-width: 38em;
  font-size: var(--t-lede); line-height: 1.45; letter-spacing: -.012em; color: var(--ink-3);
}
.ph .actions { margin-top: 36px; }

/* ---------- approach ---------- */
.habits { list-style: none; counter-reset: h; }
.habit {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 5fr) minmax(0, 6fr); gap: 16px 48px;
  padding-block: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line);
}
.habit:first-child { border-top: 1px solid var(--line-2); }
.habit-n { display: flex; flex-direction: column; gap: 20px; font: 500 .875rem/1.9 var(--f-mono); color: var(--ink-3); letter-spacing: .04em; }

.habit .ic { color: var(--brand); width: 40px; height: 40px; }
.habit h2 { font-size: clamp(1.625rem, 1.25rem + 1.3vw, 2.375rem); line-height: 1.1; letter-spacing: -.03em; }
.habit-b p { font-size: 1.125rem; line-height: 1.65; padding-top: 2px; }
.habit-b p + p { margin-top: 1em; }

/* ---------- apps ---------- */
.feature-lg { grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); }
.apps-promise { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-2); }
.apps-promise li { list-style: none; padding: 24px 24px 8px 0; display: grid; gap: 12px; align-content: start; }
.apps-promise li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.apps-promise .ic { width: 34px; height: 34px; color: var(--brand); }
.apps-promise b { display: block; font-size: 1rem; }
.apps-promise span { font-size: var(--t-small); color: var(--ink-3); }

/* ---------- product page ---------- */
.p-hero { padding-block: clamp(40px, 5vw, 64px) 0; position: relative; }
.p-hero .crumbs ol { margin-bottom: clamp(32px, 5vw, 56px); }
.p-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: end; }
.p-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-bottom: 28px; font-size: var(--t-small); color: var(--ink-3); }
.p-kicker .p-name { font-weight: 600; color: var(--ink); font-size: 1rem; letter-spacing: -.01em; }
.p-kicker .p-state { display: inline-flex; align-items: center; }
.p-hero h1 { font-size: var(--t-display); line-height: .98; letter-spacing: -.045em; font-weight: 560; max-width: 11ch; }
.p-hero .lede { font-size: var(--t-lede); line-height: 1.45; letter-spacing: -.012em; color: var(--ink-3); }
.p-hero-side { padding-bottom: 8px; }
.p-hero-side .actions { margin-top: 28px; }
.by-invite { font-size: var(--t-small); color: var(--ink-3); }
.by-invite b { color: var(--ink); font-weight: 550; }
.p-art { margin: clamp(48px, 6vw, 80px) 0 0; }
.p-art .frame {
  border-radius: var(--r-lg); overflow: hidden; background: #121a2b;
  border: 1px solid var(--line); box-shadow: var(--shadow-3);
}
.p-art img { width: 100%; }
.p-art figcaption { margin-top: 14px; font-size: .875rem; color: var(--ink-3); }

.features { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.ft { padding: 32px 32px 40px 0; border-bottom: 1px solid var(--line); }
.ft:not(:nth-child(3n + 1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.ft .ic { width: 40px; height: 40px; color: var(--ink); margin-bottom: 28px; transition: color var(--mid) var(--ease); }
.ft:hover .ic { color: var(--brand); }
.ft h3 { font-size: var(--t-h3); line-height: 1.25; letter-spacing: -.018em; margin-bottom: 10px; font-weight: 580; }
.ft p { font-size: var(--t-small); color: var(--ink-3); }
.ft.later .ic { color: var(--ink-3); }
.later-note {
  display: inline-block; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line-2);
  font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
}

.lead { font-size: 1.1875rem; line-height: 1.55; color: var(--ink-3); max-width: 44em; }
.steps {
  list-style: none; counter-reset: s;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
  margin-top: clamp(40px, 5vw, 64px);
}
.steps li { counter-increment: s; position: relative; padding: 0 24px 0 0; }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--bg);
  font: 500 .8125rem/1 var(--f-mono); color: var(--ink); position: relative; z-index: 1;
  margin-bottom: 24px;
}
.steps li::after { content: ""; position: absolute; top: 22px; left: 44px; right: 0; height: 1px; background: var(--line-2); }
.steps li:last-child::after { display: none; }
.steps li:first-child::before { background: var(--warm); border-color: var(--warm); color: var(--warm-ink); }
.steps h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: 8px; }
.steps p { font-size: var(--t-small); color: var(--ink-3); }

.qs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: clamp(48px, 6vw, 80px); }
.q { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px); }
.sec-alt .q { background: var(--bg); }
.q h3 { font-size: 1.25rem; letter-spacing: -.015em; margin-bottom: 18px; }
.q > p { color: var(--ink-3); font-size: var(--t-small); margin-bottom: 16px; }
.q ul, .q ol { list-style: none; counter-reset: q; }
.q li { position: relative; padding: 12px 0 12px 36px; border-top: 1px solid var(--line); color: var(--ink-2); }
.q ul li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 14px; height: 1px; background: var(--brand); }
.q ol li { counter-increment: q; }
.q ol li::before { content: counter(q); position: absolute; left: 0; top: 12px; width: 22px; font: 500 .8125rem/1.9 var(--f-mono); color: var(--brand); }

.notice { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(48px, 7vw, 120px); }
.notice h2 { font-size: var(--t-h2); line-height: 1.06; letter-spacing: -.032em; }
.notice-body { display: grid; gap: 20px; }
.notice-body p { color: var(--ink-2); }

.invite {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px 64px;
  padding: clamp(36px, 5vw, 64px); border-radius: 24px;
  background: var(--night); color: var(--night-ink-2);
  position: relative; overflow: hidden;
}
.invite::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, var(--night-line) 1px, transparent 1px), linear-gradient(to bottom, var(--night-line) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 50% 100% at 100% 100%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 50% 100% at 100% 100%, #000, transparent 75%);
}
.invite > * { position: relative; }
.invite h2 { color: var(--night-ink); font-size: var(--t-h2); line-height: 1.06; letter-spacing: -.032em; margin-bottom: 14px; }
.invite p { max-width: 36em; }
.invite .actions { flex-direction: column; align-items: flex-start; gap: 14px; }
.invite .by-invite { color: var(--night-ink-2); }
.invite .by-invite b { color: var(--night-ink); }

/* ---------- company ---------- */
.reach { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.reach > div { padding: 32px 32px 8px 0; }
.reach > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.reach dt { font-size: var(--t-label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.reach dd { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); line-height: 1.4; letter-spacing: -.018em; color: var(--ink); font-weight: 500; }
.reach dd a { color: var(--ink); text-decoration: none; }
.reach dd a:hover { color: var(--brand); }
.reach .facts-sub { font-size: var(--t-small); letter-spacing: 0; margin-top: 10px; }

.desks { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-2); }
.desks li { padding: 32px 40px 36px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.desks li:nth-child(2n) { padding-left: 40px; padding-right: 0; border-left: 1px solid var(--line); }
.desks h3 { font-size: 1.25rem; letter-spacing: -.015em; }
.desks p { color: var(--ink-3); font-size: var(--t-small); max-width: 34em; }
.desks p a { color: var(--brand); text-underline-offset: 3px; }
.desk-mail { justify-self: start; margin-top: 6px; color: var(--ink); font-weight: 550; text-decoration: none; background: linear-gradient(var(--brand), var(--brand)) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: color var(--fast); }
.desk-mail:hover { color: var(--brand); }

/* the generated company record */
.record { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); overflow: hidden; }
.record-hd {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px;
  padding: 24px clamp(20px, 3vw, 32px); border-bottom: 1px solid var(--line); background: var(--bg-2);
}
.record-hd h2 { font-size: 1.25rem; letter-spacing: -.015em; }
.record-hd .note { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); display: inline-flex; align-items: center; gap: 8px; }
.record-hd .note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.record-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.record-grid > div { padding: 24px clamp(20px, 3vw, 32px) 28px; border-bottom: 1px solid var(--line); }
.record-grid > div:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.record-grid > div:nth-last-child(-n + 3) { border-bottom: 0; }
.record dt { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.record dd { color: var(--ink); font-size: 1rem; line-height: 1.55; overflow-wrap: anywhere; }
.record dd a { color: var(--ink); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.record dd a:hover { color: var(--brand); text-decoration-color: currentColor; }
.record-sec { padding-bottom: var(--sec); }

/* ---------- support facts ---------- */
.kv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--bg); }
.kv > div { padding: 24px clamp(20px, 2.4vw, 28px) 28px; }
.kv > div + div { border-left: 1px solid var(--line); }
.kv dt { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.kv dd { color: var(--ink); font-weight: 550; font-size: 1.0625rem; line-height: 1.45; overflow-wrap: anywhere; }
.kv dd a { color: var(--ink); text-decoration: none; }
.kv dd a:hover { color: var(--brand); }
.kv-wrap { padding-top: clamp(40px, 5vw, 64px); }

/* ---------- long-form documents (legal pages, support) ---------- */
.area-doc main { padding-bottom: var(--sec); }
.page-head, .doc, .area-doc main > .prose {
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2));
}
.page-head { padding-block: clamp(56px, 7vw, 112px) clamp(48px, 6vw, 88px); }
.page-head > * { position: relative; }
.page-head .meta {
  display: flex; flex-wrap: wrap; gap: 12px 0; margin-top: 36px;
  font-size: var(--t-small); color: var(--ink-2);
}
.page-head .meta span { padding-right: 24px; margin-right: 24px; border-right: 1px solid var(--line-2); }
.page-head .meta span:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.page-head .meta b { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.page-head .meta a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.page-head .meta a:hover { color: var(--brand); text-decoration-color: currentColor; }

.doc {
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px clamp(48px, 7vw, 112px);
  padding-top: clamp(48px, 6vw, 88px); align-items: start;
}
.doc-index { position: sticky; top: calc(var(--hdr) + 32px); max-height: calc(100vh - var(--hdr) - 64px); overflow: auto; }
.doc-index > p { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.doc-index ol { list-style: none; counter-reset: di; border-left: 1px solid var(--line); }
.doc-index li { counter-increment: di; }
.doc-index a {
  display: grid; grid-template-columns: 26px 1fr; padding: 7px 0 7px 16px; margin-left: -1px;
  border-left: 1px solid transparent;
  font-size: .875rem; line-height: 1.45; color: var(--ink-3); text-decoration: none;
  transition: color var(--fast), border-color var(--fast);
}
.doc-index a::before { content: counter(di, decimal-leading-zero); font: 500 .75rem/1.9 var(--f-mono); color: var(--ink-3); opacity: .8; }
.doc-index a:hover { color: var(--ink); }
.doc-index a[aria-current="true"] { color: var(--ink); border-left-color: var(--brand); }

.prose { max-width: 720px; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.72; }
.area-doc main > .prose { max-width: none; padding-top: clamp(48px, 6vw, 88px); }
.area-doc main > .prose > * { max-width: 760px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-size: clamp(1.375rem, 1.2rem + .6vw, 1.75rem); line-height: 1.2; letter-spacing: -.022em; font-weight: 580;
  margin-top: 2.6em; padding-top: 1.4em; border-top: 1px solid var(--line);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.1875rem; letter-spacing: -.012em; font-weight: 600; margin-top: 2em; }
.prose h2 + *, .prose h3 + * { margin-top: .8em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--ink-3); }
.prose ul > li::marker { content: "–  "; }
.prose code, .mono { font-family: var(--f-mono); font-size: .88em; background: var(--bg-2); border: 1px solid var(--line); border-radius: 5px; padding: .08em .35em; color: var(--ink); }
.prose em { font-style: italic; }

.callout {
  border: 1px solid var(--line); border-left: 2px solid var(--brand);
  background: var(--bg-2); border-radius: 0 var(--r) var(--r) 0;
  padding: 22px 26px;
}
.callout .label { display: block; color: var(--brand); margin-bottom: 8px; font-size: .75rem; }
.callout p { color: var(--ink-2); }
.callout p + p { margin-top: .8em; }
.callout.cold { border-left-color: var(--brand); }

.draft-flag {
  border: 1px dashed color-mix(in oklab, var(--amber) 70%, transparent);
  background: color-mix(in oklab, var(--amber) 6%, var(--bg));
  border-radius: var(--r); padding: 18px 22px;
  font-size: .9375rem; line-height: 1.6; color: var(--ink-2);
}
.draft-flag b { display: block; color: var(--amber); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }

.scroll-x { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.55; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.data-table th { background: var(--bg-2); font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td:first-child { color: var(--ink); font-weight: 500; }

.safe-harbor { margin-inline: 0; border-left: 2px solid var(--line-2); background: var(--bg-2); padding: 20px 24px; border-radius: 0 var(--r) var(--r) 0; font-size: .9875rem; }
.safe-harbor > * + * { margin-top: .8em; }
.fine { font-size: .875rem; color: var(--ink-3); }
.prose pre.licence {
  white-space: pre-wrap; word-break: break-word;
  font: 400 .78rem/1.6 var(--f-mono); color: var(--ink-2);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 20px;
}
.acct-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 24px 0; }
.acct-cta .where { font-size: .9375rem; color: var(--ink-3); font-family: var(--f-mono); }

/* ---------- 404 ---------- */
.nf { padding-block: clamp(64px, 9vw, 140px); }
.nf-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.nf .code { font-size: var(--t-label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 24px; }
.nf h1 { font-size: var(--t-h1); line-height: 1; letter-spacing: -.042em; max-width: 14ch; }
.nf .lede { margin-top: 28px; font-size: var(--t-lede); line-height: 1.5; color: var(--ink-3); max-width: 34em; }
.nf-links { list-style: none; margin-top: 40px; border-top: 1px solid var(--line-2); max-width: 560px; }
.nf-links li { border-bottom: 1px solid var(--line); }
.nf-links a { display: flex; align-items: center; justify-content: space-between; padding: 16px 2px; text-decoration: none; color: var(--ink); font-weight: 500; transition: padding var(--mid) var(--ease); }
.nf-links a:hover { padding-left: 10px; }
.nf-links a:hover .arr { color: var(--brand); transform: translateX(4px); }
.nf-links .arr { color: var(--ink-3); }
.nf-art .iso { max-width: 420px; margin-left: auto; }

/* ---------- footer ---------- */
.ftr {
  background: var(--night); color: var(--night-ink-2);
  padding-top: clamp(48px, 6vw, 84px);
  font-size: var(--t-small);
}
:root[data-theme="dark"] .ftr { background: #080a0f; border-top: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ftr { background: #080a0f; border-top: 1px solid var(--line); } }
.ftr a { color: var(--night-ink-2); text-decoration: none; transition: color var(--fast); }
.ftr a:hover { color: var(--night-ink); }
.ftr :focus-visible { outline-color: var(--night-brand); }
/* a footer that carries only what the top of the site does not: the slogan, the legal pages, the company record */
.ftr { position: relative; }
.ftr::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--night-brand) 60%, transparent) 30%, color-mix(in oklab, var(--night-brand) 60%, transparent) 70%, transparent); }
.ftr-main { display: grid; gap: clamp(32px, 4vw, 52px); padding-bottom: clamp(28px, 3.5vw, 40px); }
.ftr .brand { color: var(--night-ink); }
.ftr .brand img { width: 118px; }
.ftr .brand .tm { color: var(--night-ink-2); }
.tagline { margin-top: 22px; color: var(--night-ink); font-size: clamp(1.625rem, 1.1rem + 1.7vw, 2.5rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 560; max-width: 14em; text-wrap: balance; }
.tagline .tm-g { font-size: .4em; vertical-align: 1.1em; }
/* the six legal links, one row, the same gap between each */
.ftr-legal-nav { border-top: 1px solid var(--night-line); padding-top: 22px; }
.ftr-legal-nav ul { list-style: none; display: flex; justify-content: space-between; gap: 12px 24px; }
.ftr-legal-nav a { display: inline-block; font-size: .875rem; line-height: 1.4; }
.ftr-base { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 14px 32px; padding-block: 4px clamp(28px, 3.5vw, 40px); }
.ftr-co { grid-column: 1 / -1; font-style: normal; font-size: .8125rem; line-height: 1.6; color: var(--night-ink); font-variant-numeric: tabular-nums; }
.ftr-co .sep { margin-inline: .7em; color: var(--night-ink-2); opacity: .6; }
.ftr-co a { color: var(--night-ink); }
.ftr .copy { font-size: .75rem; line-height: 1.7; color: color-mix(in oklab, var(--night-ink-2) 80%, transparent); }
.to-top { display: inline-flex; align-items: center; gap: 8px; flex: none; font-size: .8125rem; font-weight: 550; }
.to-top .up { width: 14px; height: 14px; transform: rotate(-90deg); }

/* ---------- reveals (scripts only; the resting state is visible) ---------- */
.rv { opacity: 0; transform: translateY(18px); }
.rv.in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.check-dim.rv { opacity: .9; transform: none; }
.check-dim.rv i { transform: scaleX(0); }
.check-dim.rv.in i { transform: scaleX(1); transition: transform 1.2s var(--ease-io) .1s; }

/* page-to-page cross-fade where the browser supports it */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 180ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1 !important; transform: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .ideas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .idea, .idea:first-child, .idea:last-child { padding: 32px 28px 40px; }
  .idea:nth-child(2n + 1) { padding-left: 0; }
  .idea:nth-child(2n) { border-right: 0; padding-right: 0; }
  .idea:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); padding-bottom: 28px; }
  .apps-promise { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apps-promise li:nth-child(3) { border-left: 0; padding-left: 0; }
  .apps-promise li:nth-child(-n + 2) { border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 24px; padding: 0 0 32px; }
  .steps li::before { grid-row: 1 / span 2; margin: 0; }
  .steps li::after { top: 44px; bottom: 0; left: 22px; right: auto; width: 1px; height: auto; }
  .steps h3 { padding-top: 10px; }
  .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kv > div:nth-child(3) { border-left: 0; }
  .kv > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 960px) {
  .hero-grid, .p-hero-grid, .check-in, .how, .notice, .nf-grid, .feature, .feature-lg, .close-card, .invite, .ftr-top { grid-template-columns: minmax(0, 1fr); }
  .hero-art { margin: 8px auto 0; max-width: 620px; }
  .statement-grid { grid-template-columns: minmax(0, 1fr); }
  .statement .label { padding-top: 0; }
  .how-intro { position: static; }
  .check-copy { grid-column: 1; }
  .feature-art { aspect-ratio: 1200 / 640; }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc-index { position: static; max-height: none; }
  .habit { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .habit-n { flex-direction: row; align-items: center; justify-content: space-between; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft, .ft:not(:nth-child(3n + 1)) { padding: 32px 28px 36px; border-left: 0; }
  .ft:nth-child(2n + 1) { padding-left: 0; }
  .ft:nth-child(2n) { padding-right: 0; border-left: 1px solid var(--line); }
  .nf-art { display: none; }
  .invite .actions { align-items: flex-start; }
  .record-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .record-grid > div:not(:nth-child(3n)) { border-right: 0; }
  .record-grid > div:nth-child(2n + 1) { border-right: 1px solid var(--line); }
  .record-grid > div:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .record-grid > div:nth-last-child(-n + 2) { border-bottom: 0; }
}

@media (max-width: 640px) {
  :root { --t-body: 1rem; }
  .display { letter-spacing: -.04em; }
  .ideas, .facts, .apps-promise, .reach, .desks, .features, .qs, .kv, .record-grid, .ftr-record { grid-template-columns: minmax(0, 1fr); }
  .idea, .idea:first-child, .idea:last-child, .idea:nth-child(2n), .idea:nth-child(2n + 1) { padding: 28px 0 32px; border-right: 0; border-bottom: 1px solid var(--line); }
  .idea-top { margin-bottom: 28px; }
  .facts > div, .facts > div + div, .apps-promise li, .apps-promise li + li, .reach > div, .reach > div + div {
    padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line);
  }
  .desks li, .desks li:nth-child(2n) { padding: 28px 0; border-left: 0; }
  .ft, .ft:not(:nth-child(3n + 1)), .ft:nth-child(2n), .ft:nth-child(2n + 1) { padding: 28px 0 32px; border-left: 0; }
  .kv > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .kv > div:nth-child(-n + 2) { border-bottom: 0; }
  .record-grid > div, .record-grid > div:nth-child(2n + 1) { border-right: 0; border-bottom: 1px solid var(--line); }
  .record-grid > div:last-child { border-bottom: 0; }
  .rows a { grid-template-columns: 40px 1fr auto; padding: 22px 0; }
  .rows a:hover { padding-left: 0; }
  .sec-head-split { align-items: flex-start; }
  .actions .btn { flex: 1 1 auto; }
  .hero .actions .btn, .close-card .actions .btn, .invite .actions .btn { width: 100%; }
  .invite .actions { align-items: stretch; width: 100%; }
  .ftr-legal-nav ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 24px; }
  .ftr-base { grid-template-columns: minmax(0, 1fr); }
  .ftr-co .sep { display: none; }
  .ftr-co { display: grid; gap: 2px; }
  .page-head .meta { flex-direction: column; }
  .page-head .meta span { border-right: 0; padding-right: 0; margin-right: 0; }
  .check-dim { margin-bottom: 8px; }
  .habit .ic { width: 32px; height: 32px; }
}

/* ---------- print ---------- */
@media print {
  :root { --bg: #fff; --bg-2: #fff; --ink: #000; --ink-2: #111; --ink-3: #333; --line: #bbb; --line-2: #888; --brand: #000; }
  body { font-size: 11pt; background: #fff; color: #111; }
  .hdr, .skip, .hero-art, .nav, .hdr-tools, .to-top, .nf-art, .close, .actions, .doc-index, .sprite { display: none !important; }
  .hero::before, .ph::before, .page-head::before, .check::before, .close-card::before, .invite::before { display: none; }
  .hero-grid, .p-hero-grid, .check-in, .how, .doc, .notice, .feature { display: block; }
  .check, .invite, .ftr { background: #fff !important; color: #111 !important; border-top: 1px solid #888; }
  .check h2, .invite h2, .ftr-record dt, .tagline, .check-copy .check-lead { color: #000 !important; }
  .ftr a, .ftr .copy { color: #111 !important; }
  .ftr .brand img { filter: invert(1); }
  .rv { opacity: 1 !important; transform: none !important; }
  .sec, .statement, .check { padding-block: 24pt; }
  .feature, .q, .record, .kv, .scroll-x { box-shadow: none; break-inside: avoid; }
  .prose a[href^="http"]::after, .prose a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: .85em; color: #444; }
  .prose h2 { break-after: avoid; }
  pre.licence { white-space: pre-wrap; }
  a { color: #000; }
}

/* ---------- small additions ---------- */
.habit-b a, a.inline {
  color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 3px; text-decoration-color: color-mix(in oklab, var(--brand) 40%, transparent);
}
.habit-b a:hover, a.inline:hover { text-decoration-color: currentColor; }
.sec-tight { padding-block: clamp(56px, 6vw, 96px); border-top: 1px solid var(--line); }
.sec-tight h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); letter-spacing: -.025em; line-height: 1.1; }
.iso-ghost { fill: none; stroke: var(--iso-line); stroke-width: 1; stroke-dasharray: 4 5; opacity: .5; }
.record-sec-doc { padding-top: clamp(64px, 8vw, 112px); }

/* the approved drawing carries a coloured edge stripe; keep it out of frame */
.feature-art img, .p-art img { width: calc(100% + 10px); max-width: none; margin-left: -10px; }
.ph + .sec, .ph + .sec-alt { padding-top: clamp(56px, 7vw, 104px); }
.nowrap { white-space: nowrap; }
a[href^="tel:"] { white-space: nowrap; }
.spec dt { white-space: nowrap; }
@media (max-width: 640px) {
  .hero .eyebrow > span:first-child, .hero .eyebrow-rule { display: none; }
}
@media (max-width: 960px) { .js .area-apps .panel-foot a[href="/beta"] { display: none; } }
.prose a.btn, .prose a.btn:hover { color: var(--b-ink); text-decoration: none; }

/* ==========================================================================
   The apps' own screens (2026-10-15)
   Every picture below is a real screen captured from the app at phone size.
   It sits in a thin, notch-less phone frame: a graphite bezel with a hairline
   rim, on a quiet stage. Sizes come from the frame's own width (container
   units), so the bezel and the corners stay in proportion at any size.
   ========================================================================== */
:root {
  --dev-bezel: #151a22;
  --dev-rim: #4a5260;
  --dev-hi: rgba(255, 255, 255, .16);
  --dev-shadow:
    0 1px 2px rgba(10, 19, 36, .08),
    0 12px 24px -12px rgba(10, 19, 36, .22),
    0 34px 64px -28px rgba(10, 19, 36, .34);
  --stage-a: #eef2f9;
  --stage-b: #f9fafc;
  --stage-glow: #dbe5ff;
  --stage-grid: #dfe5ee;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --dev-bezel: #07090d;
    --dev-rim: #3e4757;
    --dev-hi: rgba(255, 255, 255, .12);
    --dev-shadow:
      0 1px 2px rgba(0, 0, 0, .5),
      0 14px 28px -12px rgba(0, 0, 0, .7),
      0 40px 80px -30px rgba(0, 0, 0, .8);
    --stage-a: #111827;
    --stage-b: #0c1018;
    --stage-glow: #182a5a;
    --stage-grid: #182030;
  }
}
:root[data-theme="dark"] {
  --dev-bezel: #07090d;
  --dev-rim: #3e4757;
  --dev-hi: rgba(255, 255, 255, .12);
  --dev-shadow:
    0 1px 2px rgba(0, 0, 0, .5),
    0 14px 28px -12px rgba(0, 0, 0, .7),
    0 40px 80px -30px rgba(0, 0, 0, .8);
  --stage-a: #111827;
  --stage-b: #0c1018;
  --stage-glow: #182a5a;
  --stage-grid: #182030;
}

/* the phone */
.device { container-type: inline-size; margin: 0; min-width: 0; }
.device-in {
  position: relative;
  padding: 7px; padding: 2.3cqw;
  border-radius: 40px; border-radius: 15cqw;
  background:
    linear-gradient(150deg, var(--dev-rim) 0%, var(--dev-bezel) 9%, var(--dev-bezel) 91%, var(--dev-rim) 100%);
  box-shadow: inset 0 0 0 1px var(--dev-hi), 0 0 0 .5px color-mix(in oklab, var(--dev-rim) 60%, transparent), var(--dev-shadow);
}
.device picture, .device img { display: block; width: 100%; }
.device img {
  height: auto; max-width: 100%;
  border-radius: 33px; border-radius: 12.8cqw;
  background: #0f131a;
}
.device-in::after {   /* a hairline of glass over the screen's edge */
  content: ""; position: absolute; inset: 7px; inset: 2.3cqw; pointer-events: none;
  border-radius: 33px; border-radius: 12.8cqw;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}

/* the stage the phones stand on */
.stage {
  position: relative; display: block; overflow: hidden; isolation: isolate;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background:
    radial-gradient(110% 70% at 50% 0%, var(--stage-glow), transparent 62%),
    linear-gradient(180deg, var(--stage-a), var(--stage-b));
}
.stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--stage-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--stage-grid) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 78%);
  opacity: .7;
}

/* two phones, staggered: the drawing in front, what it makes beside it */
.duo {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 5%; align-items: start;
  padding: 8% 9% 10%;
}
.duo .device:first-child { position: relative; z-index: 1; margin-top: 12%; }
.duo .device:last-child { margin-bottom: 12%; }
.duo .device { transition: transform .6s var(--ease); }

/* ---------- the three apps, as cards (home) ---------- */
.prods {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px);
}
.prods > li { display: flex; min-width: 0; }
.prod {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line); border-radius: 22px;
  overflow: hidden; box-shadow: var(--shadow-1);
  transition: box-shadow var(--mid) var(--ease), border-color var(--mid) var(--ease);
}
.prod:hover { box-shadow: var(--shadow-2); border-color: var(--line-2); }
.prod .stage { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.prod:hover .duo .device:first-child { transform: translateY(-4px); }
.prod:hover .duo .device:last-child { transform: translateY(-2px); }
.prod-body { display: flex; flex-direction: column; flex: 1; padding: clamp(24px, 2.4vw, 32px); }
.prod-k { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.prod-name { font-size: clamp(1.5rem, 1.25rem + .6vw, 1.875rem); line-height: 1.1; letter-spacing: -.028em; margin-bottom: 10px; }
.prod-name a { text-decoration: none; color: inherit; }
.prod-name a:hover { color: var(--brand); }
.prod-hook { font-size: 1.125rem; font-weight: 550; letter-spacing: -.012em; color: var(--ink); line-height: 1.35; margin-bottom: 10px; }
.prod-d { font-size: var(--t-small); color: var(--ink-3); line-height: 1.6; }
.prod-s { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--ink-2); }
.prod-s .dot { width: 6px; height: 6px; margin-right: 9px; }
.prod .actions { margin-top: auto; padding-top: 20px; justify-content: space-between; }
.prod .actions .btn { flex: 0 1 auto; }

/* ---------- the three apps, larger (/apps/) ---------- */
.app-rows { display: grid; gap: clamp(24px, 3vw, 40px); }
.app-row {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  background: var(--bg); border: 1px solid var(--line); border-radius: 24px;
  overflow: hidden; box-shadow: var(--shadow-1);
  transition: box-shadow var(--mid) var(--ease), border-color var(--mid) var(--ease);
}
.app-row:hover { box-shadow: var(--shadow-2); border-color: var(--line-2); }
.app-row:nth-child(2n) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.app-row:nth-child(2n) .stage { order: 2; border-right: 0; border-left: 1px solid var(--line); }
.app-row .stage { border: 0; border-right: 1px solid var(--line); border-radius: 0; display: grid; align-content: center; }
.app-row .duo { padding: 8% 12% 10%; max-width: 640px; margin-inline: auto; width: 100%; }
.app-row:hover .duo .device:first-child { transform: translateY(-4px); }
.app-row .prod-body { justify-content: center; padding: clamp(28px, 4vw, 56px); }
.app-row .prod-name { font-size: clamp(1.875rem, 1.4rem + 1.4vw, 2.75rem); }
.app-row .prod-hook { font-size: var(--t-lede); }
.app-row .prod-d { font-size: 1.0625rem; max-width: 34em; }
.app-row .spec { margin-top: 24px; }
.app-row .actions { margin-top: 28px; padding-top: 0; justify-content: flex-start; }

/* ---------- a product page: its two screens ---------- */
.p-shots { margin: clamp(48px, 6vw, 80px) 0 0; }
.p-shots .stage { padding: clamp(32px, 5vw, 72px) clamp(16px, 5vw, 72px) 0; border-radius: 24px; }
.p-shots-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center;
  gap: 0 clamp(20px, 6vw, 88px); align-items: start;
}
.p-shots figure { margin: 0; min-width: 0; }
.p-shots figure:first-child { margin-top: clamp(24px, 4vw, 56px); }
.p-shots figcaption {
  margin: 18px 0 clamp(28px, 4vw, 48px); text-align: center;
  font-size: .875rem; color: var(--ink-3); line-height: 1.45;
}
.p-shots figcaption b { display: block; color: var(--ink); font-weight: 600; font-size: .9375rem; margin-bottom: 2px; }
.p-shots-note { margin-top: 14px; font-size: .875rem; color: var(--ink-3); }

@media (max-width: 1100px) {
  .prods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prods > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .prods > li:last-child:nth-child(odd) .prod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .prods > li:last-child:nth-child(odd) .prod .stage { border-bottom: 0; border-right: 1px solid var(--line); }
}
@media (max-width: 960px) {
  .app-row, .app-row:nth-child(2n) { grid-template-columns: minmax(0, 1fr); }
  .app-row:nth-child(2n) .stage { order: 0; border-left: 0; }
  .app-row .stage, .app-row:nth-child(2n) .stage { border-right: 0; border-bottom: 1px solid var(--line); }
  .app-row .duo { max-width: 520px; }
}
@media (max-width: 720px) {
  .prods { grid-template-columns: minmax(0, 1fr); }
  .prods > li:last-child:nth-child(odd) .prod { display: flex; }
  .prods > li:last-child:nth-child(odd) .prod .stage { border-right: 0; border-bottom: 1px solid var(--line); }
  .prod .actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .prod .actions .btn, .app-row .actions .btn { width: auto; flex: 0 1 auto; }
  .p-shots .stage { padding-inline: 14px; }
  .p-shots-grid { gap: 0 14px; }
  .p-shots figcaption { font-size: .8125rem; }
}

/* the Apps panel holds three apps now: a little tighter per row */
.panel { width: 372px; }
.panel-app { gap: 2px; padding: 12px 14px 14px; }
.panel-app + .panel-app { margin-top: 2px; }
.panel-s { margin-top: 4px; }
@media (max-width: 960px) { .js .panel-app + .panel-app { margin-top: 8px; } }
/* the status and the two links line up across the three cards */
.prod .prod-d { margin-bottom: 18px; }
.prod .prod-s { margin-top: auto; }
.prod .actions { margin-top: 0; }
.app-row .prod-s { margin-top: 0; }

/* ---------- the app's name leads: name and hook sit above the screenshots ---------- */
.prod-head { padding: clamp(24px, 2.4vw, 32px) clamp(24px, 2.4vw, 32px) clamp(20px, 2vw, 26px); border-bottom: 1px solid var(--line); }
.prod-head .prod-k { margin-bottom: 10px; }
.prod-head .prod-hook { margin-bottom: 0; }
.prod .prod-body { padding-top: clamp(20px, 2vw, 26px); }
@media (max-width: 1100px) { .prods > li:last-child:nth-child(odd) .prod .prod-head { grid-column: 1 / -1; } }

.app-row { grid-template-areas: "stage head" "stage body"; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
.app-row:nth-child(2n) { grid-template-areas: "head stage" "body stage"; }
.app-row .stage { grid-area: stage; }
.app-row .prod-head { grid-area: head; align-self: end; border-bottom: 0; padding: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0; }
.app-row .prod-body { grid-area: body; align-self: start; justify-content: flex-start; padding: 20px clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px); }
.app-row .prod-head .prod-hook { margin-bottom: 0; }
@media (max-width: 960px) {
  .app-row, .app-row:nth-child(2n) { grid-template-areas: "head" "stage" "body"; grid-template-rows: auto; }
  .app-row .prod-head { align-self: stretch; padding: clamp(24px, 4vw, 32px) clamp(24px, 4vw, 32px) clamp(20px, 3vw, 26px); border-bottom: 1px solid var(--line); }
  .app-row .prod-body { padding: clamp(20px, 3vw, 26px) clamp(24px, 4vw, 32px) clamp(24px, 4vw, 32px); }
}

/* ---------- home: the mission ---------- */
.mission { background: var(--night); color: var(--night-ink-2); padding-block: clamp(80px, 10vw, 152px); position: relative; overflow: hidden; }
.mission .eyebrow { color: var(--night-ink-2); margin-bottom: clamp(24px, 3vw, 40px); }
.mission-text {
  font-size: clamp(1.875rem, 1.1rem + 3.3vw, 4rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 560;
  color: var(--night-ink); max-width: 21em; text-wrap: balance;
}
.mission-text span { color: var(--night-ink-2); }
.mission-suite { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(44px, 5.5vw, 80px); border-top: 1px solid var(--night-line); }
.mission-suite li { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 0 0; }
.ms-trade { font-size: var(--t-label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--night-brand); }
.mission-suite a { color: var(--night-ink); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); letter-spacing: -.02em; font-weight: 560; text-decoration: none; transition: color var(--fast); }
.mission-suite a:hover { color: var(--night-brand); }
@media (max-width: 720px) {
  .mission-suite { grid-template-columns: minmax(0, 1fr); }
  .mission-suite li { padding: 18px 0; border-bottom: 1px solid var(--night-line); }
}

/* ---------- the hero run: a real render from the app's own 3D engine ---------- */
.hero-grid .hero-art.hero-run { margin: clamp(-72px, -4vw, -16px) -2% 0 0; position: relative; }
.hero-run::before {
  content: ""; position: absolute; inset: -8% -6% -4% -6%; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 55% at 52% 48%, var(--stage-glow), transparent 70%);
}
.hero-run img { display: block; width: 100%; height: auto; filter: drop-shadow(0 26px 30px color-mix(in oklab, var(--ink) 22%, transparent)); }
/* three renders, one per app, stacked in one grid cell: the box is the 1490:829 of each, so nothing moves when they change.
   Without animation (reduced motion, print, an old browser) only the first is seen. */
.hero-stack { display: grid; }
.hero-layer { grid-area: 1 / 1; display: block; min-width: 0; }
.hero-layer + .hero-layer { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hero-stack { animation: run-rise .9s var(--ease) both; }
  @keyframes run-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  /* 27 s loop: each render holds 7 s, then a 2 s cross-fade into the next (the two fades overlap exactly).
     Negative delays start the 2nd and 3rd part-way round, so at 0 s the first is full and the others are clear. */
  .hero-layer { animation: hero-fade 27s ease-in-out infinite, hero-drift 27s linear infinite; transform-origin: 50% 55%; }
  .hero-layer:nth-child(2) { animation-delay: -18s, -18s; }
  .hero-layer:nth-child(3) { animation-delay: -9s, -9s; }
  @keyframes hero-fade {
    0%, 25.926% { opacity: 1; }      /*  0 s – 7 s on screen */
    33.333%, 92.593% { opacity: 0; } /*  7 s – 9 s fades out; back in from 25 s */
    100% { opacity: 1; }             /* 25 s – 27 s fades in */
  }
  @keyframes hero-drift {            /* 1.00 to 1.02 across its 11 s in view; reset while clear */
    0% { transform: scale(1.0036); }
    33.333% { transform: scale(1.02); }
    50%, 92.593% { transform: scale(1); }
    100% { transform: scale(1.0036); }
  }
}
@media (prefers-reduced-motion: reduce) { .hero-layer + .hero-layer { display: none; } }
@media print { .hero-layer + .hero-layer { display: none !important; } }
@media (max-width: 960px) { .hero-grid .hero-art.hero-run { margin: 8px auto 0; max-width: 640px; } }
@media (max-width: 560px) { .ftr-legal-nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* a section whose head is only its label sits closer to what it labels */
.sec-head-label { margin-bottom: clamp(24px, 3vw, 36px); }
.sec-head.sec-head-label h2.label { font-size: clamp(1.375rem, 1.2rem + .7vw, 1.75rem); font-weight: 580; letter-spacing: -.022em; line-height: 1.2; text-transform: none; color: var(--ink); }

/* ---------- the three app icons, each with its own app ---------- */
.app-ic-p { display: block; flex: none; line-height: 0; }
.app-ic { display: block; width: var(--ic, 56px); height: var(--ic, 56px); filter: drop-shadow(0 6px 10px color-mix(in oklab, var(--ink) 22%, transparent)); }
.prod-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 16px; row-gap: 16px; }
.prod-head .prod-hook { grid-column: 1 / -1; }
.prod-head-t { min-width: 0; }
.prod-head .app-ic { --ic: 64px; }
.app-row .prod-head { align-items: center; gap: 22px; }
.app-row .prod-head .app-ic { --ic: 84px; }
.p-id { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.p-id .app-ic { --ic: 88px; }
.p-id .p-kicker { margin: 0; }
.panel-app { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: start; }
.panel-app > span { grid-column: 2; }
.panel-app > .app-ic-p { grid-column: 1; grid-row: 1 / span 4; }
.panel-app .app-ic { --ic: 46px; filter: drop-shadow(0 3px 6px color-mix(in oklab, var(--ink) 20%, transparent)); }
.mission-suite li { flex-direction: row; align-items: center; gap: 16px; }
.mission-suite .app-ic { --ic: 44px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45)); }
.ms-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
@media (max-width: 960px) { .app-row .prod-head .app-ic { --ic: 68px; } .p-id .app-ic { --ic: 72px; } }
@media (max-width: 560px) {
  .app-row .prod-head { gap: 14px; }
  .app-row .prod-head .app-ic { --ic: 56px; }
  .app-row .prod-name { font-size: clamp(1.375rem, 6.2vw, 1.75rem); overflow-wrap: anywhere; }
  .prod-head .app-ic { --ic: 56px; }
  .p-id { gap: 14px; }
  .p-id .app-ic { --ic: 64px; }
}
