/* safeos.co — Black & Bright (docs/VISUAL_SYSTEM.md).
   Every colour below is copied from HopeXChurch/safe-church lib/theme.js.
   Black and white are structure. The four brights tell the story. */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-latin-wght-normal.woff2") format("woff2-variations"), url("/assets/fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  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 {
  --black: #000000;
  --white: #FFFFFF;
  --aqua: #00D5D7;
  --mint: #80F6AE;
  --yellow: #FFC550;
  --coral: #FF7176;

  --ink-strong: rgba(0,0,0,.70);
  --ink-muted: rgba(0,0,0,.55);   /* on white only */
  --ink-faint: rgba(0,0,0,.28);   /* never text */
  --ink-rule: rgba(0,0,0,.12);
  --ink-hair: rgba(0,0,0,.07);
  --ink-wash: rgba(0,0,0,.04);
  --on-black-strong: rgba(255,255,255,.70);
  --on-black-muted: rgba(255,255,255,.50);
  --on-black-faint: rgba(255,255,255,.18);

  /* ramp('aqua', 4) */
  --aqua-1: rgba(0,213,215,.300);
  --aqua-2: rgba(0,213,215,.533);
  --aqua-3: rgba(0,213,215,.767);
  --aqua-4: rgba(0,213,215,1);

  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 20px;
  --max: 1200px;
  --r-sm: 8px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px;
  --ease: cubic-bezier(.2,.7,.3,1);
  --section: clamp(88px, 11vw, 152px);
}
@media (min-width: 768px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--black); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* D3 · the two-tone focus ring */
:focus-visible { outline: 2px solid var(--black); outline-offset: 0; box-shadow: 0 0 0 4px var(--aqua); }
:focus:not(:focus-visible) { outline: none; }
[tabindex="-1"]:focus { outline: none; box-shadow: none; }

.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--black); color: var(--white); padding: 10px 14px; border-radius: var(--r-sm); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ── Type ─────────────────────────────────────────────────────────────── */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-strong); margin-bottom: 20px; }
.eyebrow--on-black { color: var(--on-black-strong); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-strong); margin-bottom: 12px; }
.display { font-size: clamp(36px, 5.4vw, 72px); line-height: 1; letter-spacing: -.04em; font-weight: 800; text-wrap: balance; }
.display--xl { font-size: clamp(42px, 7.2vw, 104px); line-height: .96; }
.display--on-black { color: var(--white); }
.display-aqua { color: var(--aqua); }            /* D1: aqua display type on black, a signature moment */
.lede { font-size: clamp(18px, 1.6vw, 22px); color: var(--ink-strong); max-width: 38ch; margin-top: 24px; }
.lede-strong { font-size: clamp(18px, 1.6vw, 22px); color: var(--ink-strong); max-width: 40ch; margin-top: 24px; }
.lede-on-black { font-size: clamp(18px, 1.6vw, 22px); color: var(--on-black-strong); max-width: 40ch; margin-top: 24px; }
.fine { font-size: 14px; color: var(--ink-strong); margin-top: 16px; }
.fine-strong { font-size: 14px; color: var(--ink-strong); margin-top: 16px; }
.muted { color: var(--ink-muted); font-weight: 500; }

/* ── Buttons: one primary action ──────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s var(--ease), background .15s var(--ease), color .15s var(--ease); }
.btn--primary { background: var(--black); color: var(--white); }
.btn--primary:hover { transform: translateY(-1px); }
.btn--primary:disabled { background: var(--ink-faint); cursor: not-allowed; transform: none; }
.btn--secondary { background: transparent; color: var(--black); border-color: var(--black); }
.btn--secondary:hover { background: var(--black); color: var(--white); }
.btn--text { background: none; border: 0; padding: 0 10px; text-decoration: underline; text-underline-offset: 5px; min-height: 44px; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.ground-black .btn--primary { background: var(--white); color: var(--black); }  /* D2 */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ── Chips ────────────────────────────────────────────────────────────── */
.chip { display: inline-block; font-style: normal; font-size: 12px; font-weight: 700; line-height: 1; padding: 5px 8px; border-radius: 4px; background: var(--ink-wash); color: var(--black); white-space: nowrap; vertical-align: middle; }
.chip--coral { background: var(--coral); }
.chip--yellow { background: var(--yellow); }
.chip--mint { background: var(--mint); }

/* ── Nav ──────────────────────────────────────────────────────────────── */
.nav { background: var(--aqua); position: relative; z-index: 5; }
.nav__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.nav__brand, .footer__brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.nav__links { display: none; gap: 28px; margin-left: 16px; }
.nav__links a, .nav__signin { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--black); }
.nav__links a:hover, .nav__signin:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav__signin { display: none; }
@media (min-width: 900px) { .nav__links, .nav__signin { display: flex; } }
.wordmark { display: inline-flex; align-items: center; font-weight: 800; font-size: 19px; letter-spacing: -.02em; line-height: 1; }
.wordmark__os { background: var(--aqua); color: var(--black); padding: 3px 5px; margin-left: 3px; border-radius: 4px; }
.nav .wordmark__os { background: var(--black); color: var(--aqua); }  /* on the aqua field the mark inverts; aqua on black is D1-safe */

/* ── Product surfaces: one family ─────────────────────────────────────── */
/* window: SafeOS in a black bezel — on colour fields */
.window { background: var(--black); border-radius: var(--r-xl); padding: 0 6px 6px; }
.window__bar { display: flex; align-items: center; gap: 12px; color: var(--on-black-strong); padding: 11px 10px 9px; font-size: 13px; font-weight: 600; }
.window__bar .wordmark { font-size: 14px; color: var(--white); }
.window__body { background: var(--white); border-radius: 14px; overflow: hidden; font-size: 13px; line-height: 1.4; }
/* screen: a SafeOS surface on its own — hairline and depth on white, clean on black */
.screen { background: var(--white); color: var(--black); border-radius: 16px; padding: 20px; font-size: 13px; line-height: 1.4; box-shadow: 0 0 0 1px var(--ink-hair), 0 30px 60px -32px rgba(0,0,0,.32); }
.ground-black .screen { box-shadow: none; }
.frame-caption { margin-top: 12px; font-size: 12px; color: var(--ink-muted); }
.ground-black .frame-caption { color: var(--on-black-muted); }
.ground-aqua .frame-caption { color: var(--ink-strong); }

/* ═══ 1 · HERO — aqua ════════════════════════════════════════════════════ */
.hero { background: var(--aqua); padding: 40px 0 0; }
.hero__grid { display: grid; gap: 48px; }
.hero .eyebrow { color: var(--black); }
.hero__title { font-size: clamp(42px, 6.4vw, 88px); line-height: .95; letter-spacing: -.045em; font-weight: 800; text-wrap: balance; max-width: 12ch; }
.hero__lede { font-size: clamp(18px, 1.7vw, 22px); color: var(--ink-strong); margin-top: 26px; max-width: 36ch; }
.hero__visual { margin-bottom: -72px; position: relative; z-index: 2; }
.hero__visual .frame-caption { color: var(--ink-muted); }
@media (min-width: 1000px) {
  .hero { padding-top: 48px; }
  .hero .hero__lines, .hero .hero__lede { font-size: 20px; max-width: none; }
  .hero .hero__lines { margin-top: 20px; }
  .hero .hero__lines + .hero__lede { margin-top: 10px; }
  .hero .actions { margin-top: 28px; }
  .hero__grid { grid-template-columns: 1fr 1fr; align-items: end; gap: 64px; }
  .hero__copy { padding-bottom: 128px; }
  .hero__visual { margin-bottom: -120px; }
}
/* Wide desktop: the product answers the headline. Church Overview is anchored to
   the hero's bottom edge (it crosses into the white section by the same amount
   at every width), grows, and bleeds off the right edge of the viewport. The
   copy alone sets the hero's height, so spacing to the next section is unchanged. */
@supports (overflow: clip) {
  @media (min-width: 1200px) {
    .hero { overflow-x: clip; }
    .hero__grid { position: relative; }
    .hero__visual { grid-column: 2; grid-row: 1; position: absolute; left: -32px; bottom: -90px; margin: 0;
      width: calc(100% + 32px + var(--gutter) + max(0px, (100vw - var(--max) - 2 * var(--gutter)) / 2) + 520px); }
  }
}

/* Copy: short stacked lines read as one thought */
.lines { display: grid; gap: 2px; }
.lines > p, div.lines > p + p { margin: 0; }
.lede strong, .lede-strong strong, .hero__lede strong, .feature__copy strong, .connect__copy strong, .work__intro strong, .idea__body strong { color: var(--black); }
.lede-on-black strong { color: var(--white); }
.lines--on-black { color: var(--on-black-strong); font-size: clamp(18px, 1.6vw, 22px); margin-top: 24px; }
.lede--follow { margin-top: 10px; }
.lines.lede, .lines.lede-strong, .lines.lede-on-black { max-width: 44ch; }
.hero__lines { font-size: clamp(18px, 1.7vw, 22px); color: var(--ink-strong); margin-top: 26px; max-width: 36ch; }
.hero__lines + .hero__lede { margin-top: 14px; }
.hero__lede strong { color: var(--black); }

/* ═══ 2 · PROBLEM + MARIA — white ═══════════════════════════════════════ */
.problem { padding: calc(var(--section) + 64px) 0 var(--section); }
@media (min-width: 1000px) { .problem { padding-top: calc(var(--section) + 120px); } }
.problem__head { display: grid; gap: 28px; }
@media (min-width: 1000px) { .problem__head { grid-template-columns: 1fr 1fr; align-items: start; gap: 64px; } }
.problem__story { display: grid; gap: 18px; font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-strong); }
.problem__turn { color: var(--black); }
.problem__statement { margin-top: clamp(56px, 7vw, 96px); max-width: 860px; }
.problem__statement .lede { max-width: 44ch; }

.story { margin-top: clamp(56px, 7vw, 96px); position: relative; }
.story__skip { position: absolute; left: 0; top: -52px; background: var(--black); color: var(--white); padding: 0 14px; min-height: 44px; display: inline-flex; align-items: center; border-radius: var(--r-sm); font-weight: 700; font-size: 14px; text-decoration: none; opacity: 0; pointer-events: none; }
.story__skip:focus { opacity: 1; pointer-events: auto; }
.story__lede { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -.025em; font-weight: 700; max-width: 18ch; text-wrap: balance; }
.story__meet { display: block; }
.story__side .eyebrow { margin-bottom: 14px; }
.disclosure { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--ink-strong); }
.disclosure__mark { width: 8px; height: 8px; border-radius: 2px; background: var(--aqua); box-shadow: 0 0 0 1px var(--black); flex: none; }
.prompts { margin-top: 28px; min-height: 30px; }
.prompt { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; }
.prompt__arrow { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--black); color: var(--white); font-size: 15px; flex: none; }

/* The app */
.app { background: var(--black); border-radius: var(--r-xl); padding: 0 6px 6px; margin-top: 28px; }
.app__bar { display: flex; align-items: center; gap: 12px; color: var(--white); padding: 11px 10px 9px; font-size: 13px; }
.app__bar .wordmark { font-size: 14px; }
.app__church { color: var(--on-black-strong); font-weight: 600; }
.app__user { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; background: var(--white); color: var(--black); display: grid; place-items: center; font-weight: 800; font-size: 11px; }
.app__body { background: var(--white); border-radius: 14px; overflow: hidden; }
.pane { margin: 0; }
.pane > section { padding: 16px 16px 18px; }
@media (min-width: 700px) { .pane > section { padding: 20px 24px 22px; } }
.pane__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.pane__title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.pane__scope { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--black); color: var(--white); }

.ctx { display: flex; flex-wrap: wrap; gap: 2px 16px; padding: 2px 0 12px; border-bottom: 1px solid var(--ink-rule); font-size: 13px; }
.ctx__item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 5px; }
.ctx__value { font-size: 15px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; border-radius: 4px; }
.ctx__value--changed { background: var(--mint); padding: 0 5px; }   /* the marker: carried */
.ctx__label { color: var(--ink-strong); }
.ctx__detail { color: var(--ink-muted); font-size: 12px; }

.band { margin-top: 14px; }
.band__label { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.band__count, .group__count { color: var(--ink-muted); font-weight: 700; margin-left: 4px; }
.group { margin-top: 6px; }
.group__label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; padding: 2px 0 4px; }
.group__swatch { width: 10px; height: 10px; border-radius: 2px; background: var(--ink-faint); }
.group--coral .group__swatch { background: var(--coral); }
.group--yellow .group__swatch { background: var(--yellow); }
.group--mint .group__swatch { background: var(--mint); }
.rows { border-top: 1px solid var(--ink-hair); }
.row { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 8px 0 8px 10px; border-bottom: 1px solid var(--ink-hair); position: relative; overflow: hidden; }
.row::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; border-radius: 2px; }
.group--coral .row::before { background: var(--coral); }
.group--yellow .row::before { background: var(--yellow); }
.row__avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--ink-wash); display: grid; place-items: center; font-weight: 800; font-size: 10.5px; }
.row__main { display: flex; flex-direction: column; min-width: 0; }
.row__who { font-weight: 700; font-size: 14.5px; }
.row__context { font-size: 12.5px; color: var(--ink-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__why { font-size: 12.5px; color: var(--ink-muted); }
.row__end { display: flex; align-items: center; gap: 10px; }
.row__age { font-size: 12px; color: var(--ink-muted); min-width: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.tag { font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; background: var(--yellow); vertical-align: 2px; }
.pill { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; border: 1.5px solid var(--ink-rule); color: var(--ink-strong); background: var(--white); }
.pill--live { min-height: 44px; min-width: 70px; justify-content: center; border: 2px solid var(--black); background: var(--black); color: var(--white); cursor: pointer; transition: transform .15s var(--ease); }
.pill--live:hover { transform: translateY(-1px); }
/* Narrow phones: a row's secondary action drops beneath the person rather than crushing them. */
@media (max-width: 420px) {
  .row:not(.row--story):has(.pill) { grid-template-columns: 30px 1fr; align-items: start; }
  .row:not(.row--story):has(.pill) .row__end { grid-column: 2; justify-content: space-between; }
}

.focus__head { padding-bottom: 12px; border-bottom: 1px solid var(--ink-rule); }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px 0 6px; margin: -8px 0 2px -6px; border: 0; background: none; font-weight: 700; font-size: 15px; cursor: pointer; border-radius: var(--r-sm); }
.back:hover { background: var(--ink-wash); }
.focus__context { font-size: 12px; }
.focus__entity { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.focus__question { color: var(--ink-muted); margin-left: 4px; }
.focus__person { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.focus__meta { font-size: 13px; color: var(--ink-strong); }
.thread { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; }
.bubble { max-width: 84%; display: flex; flex-direction: column; }
.bubble--inbound { align-self: flex-start; }
.bubble--outbound { align-self: flex-end; align-items: flex-end; }
.bubble__body { padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.42; }
.bubble--inbound .bubble__body { background: rgba(0,0,0,.06); border-bottom-left-radius: 4px; }
.bubble--outbound .bubble__body { background: var(--black); color: var(--white); border-bottom-right-radius: 4px; }
.bubble__meta { font-size: 11.5px; color: var(--ink-muted); margin-top: 3px; padding: 0 4px; }
.bubble.is-new { animation: rise .35s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.composer { border-top: 1px solid var(--ink-rule); padding-top: 12px; }
.composer__channels { display: flex; gap: 16px; font-size: 13px; font-weight: 700; color: var(--ink-muted); margin-bottom: 8px; }
.composer__channel { padding-bottom: 3px; border-bottom: 2px solid transparent; }
.composer__channel.is-selected { color: var(--black); border-bottom-color: var(--black); }
.composer__input { width: 100%; resize: vertical; min-height: 72px; padding: 11px 12px; border: 1.5px solid var(--ink-rule); border-radius: var(--r-md); font-size: 16px; line-height: 1.45; background: var(--white); }
.composer__input:focus { border-color: var(--black); }
.composer__foot { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.composer__hint { font-size: 13px; color: var(--ink-muted); }
.composer__send { margin-left: auto; }
.sent-note { margin-top: 14px; }

/* Proof: the product changed */
.proof { margin-top: 48px; display: grid; gap: 14px; }
.proof__row { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 16px 0 0; border-top: 1px solid var(--ink-rule); }
@media (min-width: 700px) { .proof__row { grid-template-columns: 110px 1fr; align-items: baseline; } }
.proof__when { font-size: 13px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-strong); }
.proof .ctx { border: 0; padding: 0; gap: 6px 28px; font-size: clamp(17px, 1.7vw, 22px); }
.proof .ctx__value { font-size: clamp(22px, 2.4vw, 32px); }
.proof__row--after { border-top: 2px solid var(--black); }
.proof__lines { font-size: clamp(17px, 1.7vw, 22px); line-height: 1.35; }

/* Reveal: the idea, set as the moment it is */
.reveal { margin-top: clamp(72px, 9vw, 128px); display: grid; gap: 28px; }
.reveal__title { font-size: clamp(40px, 6vw, 84px); line-height: .96; letter-spacing: -.045em; font-weight: 800; max-width: 17ch; text-wrap: balance; }
.reveal__idea { font-size: clamp(24px, 2.9vw, 40px); line-height: 1.26; letter-spacing: -.025em; font-weight: 600; max-width: 31ch; text-wrap: pretty; }
@media (min-width: 1000px) { .reveal__idea, .reveal__actions { margin-left: 356px; } }
.mk { padding: 0 .14em; border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.mk--aqua { background: var(--aqua); }
.mk--mint { background: var(--mint); }
.mk--line { box-shadow: inset 0 -.16em 0 var(--black); border-radius: 0; padding: 0; }
.reveal__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.reveal__already { font-size: clamp(24px, 2.9vw, 40px); line-height: 1.2; letter-spacing: -.025em; font-weight: 700; }
.reveal__difference { font-size: clamp(18px, 1.7vw, 22px); color: var(--ink-strong); max-width: 44ch; }
@media (min-width: 1000px) { .reveal__already, .reveal__difference { margin-left: 356px; } }

/* No JavaScript: a readable sequence, proof and idea visible */
html:not(.js) .live-only { display: none !important; }
html:not(.js) .story__layout { display: block; }
html:not(.js) .app__body { display: grid; gap: 2px; background: var(--black); }
html:not(.js) .pane { background: var(--white); }
.static-caption { font-size: 13px; font-weight: 700; padding: 14px 16px 0; }
.static-caption__n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--black); color: var(--white); font-size: 12px; margin-right: 6px; }
@media (min-width: 1200px) { html:not(.js) .app__body { grid-template-columns: repeat(3, 1fr); } }

/* JavaScript: one step at a time */
.js .static-only, .js .static-caption, .js .static-inline { display: none; }
.js .story [data-reveal] { display: none; }
.js .story[data-revealed] .proof { display: grid; }
.js .story[data-revealed] .reveal { display: grid; }
.js .story .pane--focus { display: none; }
.js .story[data-step="focus"] .pane--focus, .js .story[data-step="sent"] .pane--focus { display: block; }
.js .story[data-step="focus"] .pane--today, .js .story[data-step="sent"] .pane--today { display: none; }
.js .row.is-leaving { transition: max-height .45s var(--ease), padding .45s var(--ease), opacity .3s var(--ease); max-height: 0 !important; padding-top: 0; padding-bottom: 0; opacity: 0; border-bottom-width: 0; }

@media (min-width: 1000px) {
  .story__layout { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
  .story__side { position: sticky; top: 32px; padding-top: 44px; }
  .app { margin-top: 0; }
  .js .story[data-step="focus"] .app__body, .js .story[data-step="sent"] .app__body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); }
  .js .story[data-step="focus"] .pane--today, .js .story[data-step="sent"] .pane--today { display: block; border-right: 1px solid var(--ink-rule); }
  .js .story[data-step="focus"] .pane--today { opacity: .42; }
  .js .story[data-step="focus"] .pane--today .row__context, .js .story[data-step="sent"] .pane--today .row__context { white-space: normal; }
  .js .story .pane--focus .back { display: none; }
  .js .story[data-step="sent"] .sent-note { display: none !important; }
  .js .story [data-pane] { transition: opacity .3s var(--ease); }
  .proof { margin-left: 356px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .row.is-leaving, .js .story [data-pane], .btn, .pill--live { transition: none !important; }
  .bubble.is-new { animation: none; }
}

/* ═══ 3 · OPERATING PICTURE — black ═════════════════════════════════════ */
.ground-black { background: var(--black); color: var(--white); }
.picture { padding: var(--section) 0; }
.picture__grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1000px) { .picture__grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.display--long { font-size: clamp(32px, 3.9vw, 54px); line-height: 1.02; }
.statement { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; max-width: 26ch; margin-top: 28px; }

/* ═══ 3b · THE BIGGER IDEA — white ══════════════════════════════════════ */
.idea { padding: var(--section) 0 0; }
.idea__head { display: grid; gap: 28px; }
@media (min-width: 1000px) { .idea__head { grid-template-columns: 1.15fr .85fr; align-items: start; gap: 72px; } }
.idea__body { display: grid; gap: 18px; font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-strong); }
.idea__statement { margin-top: clamp(56px, 7vw, 96px); max-width: 860px; }
.idea__statement .lede { max-width: 44ch; }
.idea__statement .lines.lede { margin-top: 14px; }

/* ═══ 4 · S.A.F.E. — the aqua ramp owns the field ═══════════════════════ */
.framework { padding: var(--section) 0 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head--wide { max-width: 980px; }
.safe { display: grid; }
@media (min-width: 900px) { .safe { grid-template-columns: repeat(4, 1fr); } }
.safe__step { padding: 32px var(--gutter) 44px; }
@media (min-width: 900px) { .safe__step { padding: 40px 28px 56px; min-height: 380px; } }
.safe__step--1 { background: var(--aqua-1); }
.safe__step--2 { background: var(--aqua-2); }
.safe__step--3 { background: var(--aqua-3); }
.safe__step--4 { background: var(--aqua-4); }
.safe__letter { font-size: clamp(72px, 9vw, 132px); font-weight: 800; line-height: .82; letter-spacing: -.06em; display: block; margin-bottom: 24px; }
.safe h3 { font-size: 24px; line-height: 1.12; font-weight: 800; letter-spacing: -.015em; margin-top: 6px; }
.safe p { color: var(--ink-strong); max-width: 30ch; }
.safe__name { font-size: 13px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.safe .safe__name { color: var(--black); }
.safe h3 + p, .safe .lines + p { margin-top: 12px; }
.safe p + p { margin-top: 8px; }
.safe .lines { margin-top: 12px; }
.framework__close { padding: clamp(64px, 8vw, 112px) 0 var(--section); max-width: 860px; }
.framework__close .lede { max-width: 44ch; }
.framework .safe { margin: 0 calc(var(--gutter) * -1); }
@media (min-width: 1280px) { .framework .safe { margin: 0; border-radius: var(--r-xl); overflow: hidden; } }

/* ═══ 5 · WHERE THE WORK LIVES — white; product carries the colour ══════ */
.work { padding: var(--section) 0; }
.feature { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1000px) { .feature { grid-template-columns: .55fr 1.45fr; gap: 64px; } }
.feature__title { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; margin-bottom: 14px; max-width: 20ch; text-wrap: balance; }
.feature__copy > p:not(.kicker), .connect__copy > p:not(.kicker), .feature__copy > .lines, .connect__copy > .lines, .work__intro .lines, .work__intro p { color: var(--ink-strong); max-width: 40ch; }
.feature__copy > * + *:not(.feature__title), .connect__copy > * + *:not(.feature__title) { margin-top: 14px; }
.work__intro { margin-top: clamp(80px, 10vw, 136px); padding-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--ink-rule); }
.work__intro-body { display: grid; gap: 18px; }
.work__intro-body p + p, .work__intro-body .lines + p { margin-top: 14px; }
@media (min-width: 1000px) { .work__intro-body { grid-template-columns: 1fr 1fr; gap: 56px; } }

.pair { display: grid; gap: 64px; margin-top: clamp(48px, 6vw, 72px); }
@media (min-width: 1000px) { .pair { grid-template-columns: 1fr 1fr; gap: 56px; } }
.pair__title { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1; letter-spacing: -.025em; font-weight: 800; max-width: 22ch; }
.pair__text { color: var(--ink-strong); margin: 10px 0 24px; max-width: 42ch; }
.pair__text p + p { margin-top: 8px; }

.connect { display: grid; gap: 40px; align-items: center; margin-top: clamp(80px, 10vw, 136px); padding-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--ink-rule); }
@media (min-width: 1000px) { .connect { grid-template-columns: 1fr 1fr; gap: 72px; } }
.connect__visual { justify-self: center; }
.phone { width: 290px; background: var(--black); border-radius: 40px; padding: 12px; }
.phone__screen { background: var(--white); border-radius: 30px; padding: 26px 20px 22px; text-align: center; font-size: 13px; }

/* ═══ 6 · FORMATION — aqua ══════════════════════════════════════════════ */
.ground-aqua { background: var(--aqua); }
.formation { padding: var(--section) 0; }
.formation__grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .formation__grid { grid-template-columns: .75fr 1.25fr; gap: 72px; align-items: center; } }
.formation .eyebrow { color: var(--black); }
.formation__copy .lede-strong + .lede-strong, .formation__copy .lines + .lede-strong { margin-top: 18px; }
.formation__states { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.formation__close { grid-column: 1 / -1; max-width: 760px; }
.formation__close .lines { margin-top: 18px; }

/* ═══ 7 · ROLES — black ═════════════════════════════════════════════════ */
.roles { padding: var(--section) 0; }
.roles__grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .roles__grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; } }
.tabs__list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tabs__list [role="tab"] { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--on-black-faint); background: transparent; color: var(--white); font-weight: 700; cursor: pointer; }
.tabs__list [role="tab"][aria-selected="true"] { background: var(--white); color: var(--black); border-color: var(--white); box-shadow: inset 0 -3px 0 var(--aqua); }
.tabs__panels { display: grid; gap: 16px; }
.view { background: var(--white); color: var(--black); border-radius: var(--r-xl); padding: 28px; min-height: 250px; }
.view__who { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.view__what { font-size: 20px; font-weight: 700; margin-top: 8px; letter-spacing: -.01em; }
.view__note { margin-top: 12px; color: var(--ink-strong); }
.view__rule { margin-top: 24px; border-top: 1px solid var(--ink-rule); }
.roles__privacy { margin-top: clamp(64px, 8vw, 112px); padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--on-black-faint); display: grid; gap: 28px; }
@media (min-width: 1000px) { .roles__privacy { grid-template-columns: 1fr 1fr; gap: 80px; } }
.display--sub { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.02; }
.roles__privacy-body .lede-on-black:first-child { margin-top: 0; }
.roles .lines { margin-top: 18px; }

/* ═══ 8 · SYSTEM OF RECORD — white, aqua structure ══════════════════════ */
.record { padding: var(--section) 0; }
.record__grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1000px) { .record__grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.record__diagram { position: relative; }
.sources { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; padding-bottom: 36px; position: relative; }
.sources li { border-top: 3px solid var(--aqua); padding-top: 12px; position: relative; }
.sources li::after { content: ""; position: absolute; top: -3px; left: 0; width: 18px; height: 3px; background: var(--black); }
.sources b { display: block; }
.sources span { font-size: 14px; color: var(--ink-strong); }
.sources::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 3px; height: 28px; background: var(--aqua); transform: translateX(-50%); }
.record__hub { background: var(--black); color: var(--white); border-radius: var(--r-xl); padding: 26px; text-align: center; }
.record__hub .wordmark { font-size: 28px; }
.record__hub p { color: var(--on-black-strong); margin-top: 10px; }
.record__hub p strong { color: var(--white); }
.record__hub-list { font-size: 14px; }
.record__diagram .fine { margin-top: 18px; }

/* ═══ 8b · ORGANIZATIONAL STEWARDSHIP — black ═════════════════════════════ */
.stewardship { padding: var(--section) 0; }
.stewardship__grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .stewardship__grid { grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: start; } }
.stewardship__body .lede-on-black:first-child { margin-top: 0; }

/* ═══ 9 · FINAL — mint ══════════════════════════════════════════════════ */
.ground-mint { background: var(--mint); }
.final { padding: calc(var(--section) * 1.1) 0; }
.final__inner { display: flex; flex-direction: column; align-items: flex-start; }
.final__title { max-width: 15ch; }
.final__lede { font-size: clamp(19px, 1.8vw, 24px); color: var(--ink-strong); max-width: 36ch; margin-top: 28px; }
.final__lede--follow { margin-top: 12px; }
.final .eyebrow { color: var(--black); }

/* ═══ FOOTER ════════════════════════════════════════════════════════════ */
.footer { background: var(--black); color: var(--white); padding: 56px 0; }
.footer__inner { display: grid; gap: 24px; }
@media (min-width: 800px) { .footer__inner { grid-template-columns: 1fr auto; align-items: end; } }
.footer .wordmark { font-size: 24px; }
.footer__line { color: var(--on-black-strong); margin-top: 10px; }
.footer__line strong { color: var(--white); }
.footer__line--quiet { margin-top: 4px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer__links a { color: var(--on-black-strong); text-decoration: none; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.footer__links a:hover { color: var(--white); text-decoration: underline; }

/* Grid children may shrink below their content. */
.hero__grid > *, .picture__grid > *, .idea__head > *, .stewardship__grid > *, .work__intro-body > *, .formation__grid > *, .record__grid > *, .feature > *, .pair > *, .connect > *, .roles__grid > *, .story__layout > * { min-width: 0; }

/* Phone pacing: S.A.F.E. as a compact 2×2; Formation shows six of eight. */
@media (max-width: 899px) {
  .safe { grid-template-columns: 1fr 1fr; }
  .safe__step { padding: 22px 16px 26px; }
  .safe__letter { font-size: 56px; margin-bottom: 12px; }
  .safe h3 { font-size: 19px; }
  .safe p { font-size: 15px; }
}

/* Real captures inside product frames */
.phone__screen--capture { padding: 0; overflow: hidden; }
.phone__screen--capture img { display: block; width: 100%; height: auto; }

/* product captures: real Kestrel Ridge screens, cropped from verified originals */
.screen--capture { padding: 0; overflow: hidden; }
.screen--inset { padding: 18px 16px 8px; }
.screen--capture img, .window__body img, .view__shot img { display: block; width: 100%; height: auto; }
.view__capture { margin-top: 22px; }
.view__capture img { display: block; width: 320px; max-width: 100%; height: auto; }
.view__shot { margin-top: 12px; }

/* ═══ Supporting pages (/why, /framework) — content moved from the homepage ═══ */
.page-hero { padding: clamp(64px, 8vw, 120px) 0 clamp(16px, 3vw, 40px); }
.page-hero .display { max-width: 16ch; }
.views { display: grid; gap: 16px; align-content: start; }
