/* safeos.co — the homepage's product story.
   Two halves:
     pf-*   SafeOS's own surfaces, drawn to the product's values (lib/theme.js,
            lib/depth.js, the components named in each partial). No colour,
            radius or type size here is new; each is the product's.
     ch-*   the chapters: a sticky stage beside short steps.
   Motion vocabulary: docs/MOTION.md (attention by de-emphasis; causality in
   order; carried = mint; only transform and opacity move). */

:root {
  --ease-leave: cubic-bezier(.5,0,.75,0);
  --t-quick: 200ms;
  --t-state: 420ms;
  --t-camera: 620ms;
  --canvas: rgba(0,0,0,.025);          /* lib/depth.js CANVAS_GROUND */
  --focus-shadow: 0 2px 8px rgba(0,0,0,.07), 0 18px 48px rgba(0,0,0,.14);
  --dim: .36;
}

/* ═══ HERO — the approved copy, restrained, then Today ═════════════════ */
.hero--story { padding: 40px 0 24px; }
.hero--story .hero__title { max-width: 14ch; font-size: clamp(40px, 5.6vw, 76px); }
/* Wide screens: the same headline in three lines instead of four, so Today's
   doors are in the first viewport. */
@media (min-width: 1200px) {
  .hero--story .hero__title { max-width: 17ch; font-size: clamp(56px, 4.8vw, 72px); }
}
.hero--story .hero__lede { max-width: 32ch; margin-top: 20px; }
.hero--story .actions { margin-top: 24px; }
/* Phones and tablets: the same hero, tighter, so Today arrives sooner. */
@media (max-width: 999px) {
  .hero--story { padding: 24px 0 18px; }
  .hero--story .hero__title { font-size: clamp(34px, 8.6vw, 52px); }
  .hero--story .hero__lede { font-size: 17px; margin-top: 14px; }
  .hero--story .actions { margin-top: 18px; }
  .hero--story .fine { margin-top: 12px; font-size: 13px; }
  .today { --band-into: 84px; }
}
@media (min-width: 1000px) {
  .hero--story { padding: 44px 0 28px; }
  .hero--story .wrap { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: end; }
  .hero--story .hero__lede { font-size: 21px; margin-top: 0; }
}

/* ═══ TODAY — the first product screen ═══════════════════════════════════ */
/* The aqua field continues behind the leader switch and the window's top, so
   Today rises out of the hero rather than starting a new section. */
.today { position: relative; isolation: isolate; padding: 0 0 clamp(40px, 5vw, 64px); }
/* The aqua ends behind the window's top edge — never across the product — so
   the window reads as breaking out of the hero into the page, not cropped by it.
   --band-into: how far the aqua reaches down behind the window's bezel. */
.today { --band-into: 96px; }
.today::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: calc(var(--tabs-h, 56px) + 14px + var(--band-into)); background: var(--aqua); }
.today__window { position: relative; margin-top: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.07), 0 40px 90px -36px rgba(0,0,0,.5); }
.today__copy { margin-top: 36px; }
.today__title { font-size: clamp(26px, 3vw, 40px); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; max-width: 26ch; text-wrap: balance; }
.today__note { margin-top: 12px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-strong); }

/* The leader switch rides on the window's top edge. */
.today__tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
@media (min-width: 1280px) { .today__tabs { margin: 0; padding: 2px; } }
.today__tabs::-webkit-scrollbar { display: none; }
.today__tabs [role="tab"] { flex: none; display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 48px; padding: 5px 16px; border-radius: 14px; border: 1.5px solid var(--black); background: var(--white); color: var(--black); cursor: pointer; text-align: left; transition: background var(--t-quick) var(--ease), color var(--t-quick) var(--ease); }
.today__tabs [role="tab"] b { font-size: 14px; }
.today__tabs [role="tab"] span { font-size: 12px; color: var(--ink-muted); }
.today__tabs [role="tab"][aria-selected="true"] { background: var(--black); color: var(--white); box-shadow: inset 0 -3px 0 var(--aqua); }
.today__tabs [role="tab"][aria-selected="true"] span { color: var(--on-black-strong); }

/* The app window (reuses .app / .app__bar from site.css). */
.app__who { color: var(--on-black-muted); font-weight: 600; margin-left: auto; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app__who + .app__user { margin-left: 0; }
.app__bar { min-width: 0; }
.app__church { white-space: nowrap; }
@media (max-width: 560px) { .app__church { display: none; } .app__who { margin-left: 4px; } }
.today__panel[hidden] { display: none; }

/* ═══ pf · SafeOS surfaces ═══════════════════════════════════════════════ */
.pf { container-type: inline-size; background: var(--white); color: var(--black); font-size: 13px; line-height: 1.4; text-align: left; }
:where(.pf) p { margin: 0; }   /* a reset that must lose to every component margin */
.pf-today { padding: 30px 30px 34px; }
@container (max-width: 640px) { .pf-today { padding: 18px 16px 22px; } }

/* Masthead + signal (components/today/WorkingDoors.jsx) */
.pf-mast { padding-bottom: 16px; }
.pf-mast__title { font-size: 46px; font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.pf-mast__ask { font-size: 19px; font-weight: 500; letter-spacing: -.02em; color: var(--ink-muted); margin-top: 8px; }
@container (max-width: 640px) { .pf-mast__title { font-size: 36px; } .pf-mast__ask { font-size: 16px; } }
.pf-signal { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--ink-rule); border-radius: 999px; padding: 8px 12px 8px 10px; margin-bottom: 14px; }
.pf-signal__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); }
.pf-signal__dot--coral { background: var(--coral); }
.pf-signal__n { font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.pf-signal__view { font-size: 10.5px; font-weight: 800; color: var(--ink-muted); }

/* Doors */
.pf-doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); gap: 12px; padding: 12px; background: var(--canvas); border-radius: 20px; max-width: 980px; }
.pf-door { display: flex; flex-direction: column; min-height: 166px; padding: 18px 22px 16px; background: var(--white); border: 1px solid var(--ink-hair); border-radius: 16px; }
.pf-door__top { display: flex; align-items: center; gap: 10px; }
.pf-door__label { font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); }
.pf-door__q { font-size: 28px; font-weight: 800; line-height: 1.12; letter-spacing: -.035em; margin-top: 20px; }
.pf-door__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pf-door__blurb { font-size: 13.5px; font-weight: 500; line-height: 1.45; color: var(--ink-muted); }
.pf-door__go { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--black); color: var(--white); display: grid; place-items: center; font-size: 15px; }
@container (max-width: 640px) { .pf-door { min-height: 0; padding: 14px 16px; } .pf-door__q { font-size: 22px; margin-top: 12px; } }

/* Domain glyphs: one domain, one colour */
.pf-glyph { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; font-size: 11px; font-weight: 800; color: var(--black); background: var(--ink-rule); }
.pf-glyph--tiny { width: 20px; height: 20px; border-radius: 6px; font-size: 9px; }
.pf-glyph--mini { width: 14px; height: 14px; border-radius: 4px; font-size: 7px; }
.pf-glyph--aqua { background: var(--aqua); }
.pf-glyph--yellow { background: var(--yellow); }
.pf-glyph--mint { background: var(--mint); }
.pf-glyph--grey { background: var(--ink-rule); }

/* Briefing (components/surface1/Surface1Workspace.jsx) */
.pf-brief { margin-top: 20px; max-width: 980px; }
.pf-pad { padding: 18px 20px 24px; }
.pf-pad .pf-brief { margin-top: 0; }
@container (max-width: 640px) { .pf-pad { padding: 14px 14px 20px; } }
.pf-brief__head { display: flex; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 8px; }
.pf-ctx { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 12px; transition: opacity var(--t-state) var(--ease); }
.pf-ctx__item { display: flex; align-items: baseline; gap: 5px; }
.pf-ctx__v { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; border-radius: 4px; }
.pf-ctx__l { font-size: 11.5px; color: var(--ink-muted); }
.pf-ctx__l u { font-weight: 700; color: var(--black); text-underline-offset: 3px; }
.is-changed { background: var(--mint); padding: 0 5px; border-radius: 4px; color: var(--black); }
.pf-list { border-top: 1px solid var(--black); }
.pf-band__head { font-size: 11px; font-weight: 800; padding: 18px 10px 4px; }
.pf-band__head span { font-size: 10.5px; font-weight: 700; color: var(--ink-muted); margin-left: 4px; }
.pf-group__head { display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; padding: 14px 10px 6px; border-bottom: 1px solid var(--ink-rule); }
.pf-group__n { margin-left: auto; color: var(--ink-muted); }
.pf-group__n.is-changed { color: var(--black); }
.pf-sq { flex: none; display: inline-block; width: 8px; height: 8px; background: var(--yellow); }
.pf-sq--coral { background: var(--coral); }
.pf-sq--mint { background: var(--mint); }

.pf-row { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 14px; border-bottom: 1px solid var(--ink-hair); transition: opacity var(--t-state) var(--ease), background var(--t-state) var(--ease); }
.pf-row__bar { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--yellow); }
.pf-row--coral .pf-row__bar { background: var(--coral); }
.pf-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pf-row__who { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-row__ctx { font-size: 11.5px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-row__why { flex: none; font-size: 10.5px; color: var(--ink-muted); }
.pf-row__age { flex: none; min-width: 34px; text-align: right; font-size: 11.5px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.pf-tag { display: inline-block; vertical-align: 1px; margin-left: 4px; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border: 1px solid var(--ink-rule); border-radius: 999px; }
.pf-land { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--ink-rule); border-radius: 999px; font-size: 10.5px; font-weight: 700; background: var(--white); }
@container (max-width: 640px) { .pf-row__why { display: none; } }
@container (max-width: 420px) { .pf-land { padding: 4px 8px; } .pf-row { gap: 8px; } }

.pf-caught { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid var(--ink-hair); border-radius: 14px; }
.pf-caught__mark { width: 28px; height: 28px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; font-weight: 800; flex: none; }
.pf-caught b { display: block; font-size: 15px; font-weight: 800; }
.pf-caught span span { font-size: 12.5px; color: var(--ink-muted); }

/* Focus workspace (components/system/FocusModeFrame.jsx, PersonWorkspaceHome.jsx) */
.pf-fhead { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-bottom: 1px solid var(--ink-hair); }
.pf-fhead__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pf-fhead__main b { font-size: 18px; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-fhead__main span { font-size: 11.5px; color: var(--ink-muted); margin-top: 1px; }
.pf-back { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--ink-rule); border-radius: 8px; font-weight: 700; }
.pf-avatar { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--black); color: var(--white); font-size: 12.5px; font-weight: 800; }
.pf-avatar--md { width: 46px; height: 46px; font-size: 16px; }
.pf-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(296px, 100%), 1fr)); gap: 12px; padding: 14px; }
.pf-tile { display: flex; flex-direction: column; min-height: 150px; border: 1px solid var(--ink-hair); border-radius: 14px; overflow: hidden; transition: opacity var(--t-state) var(--ease), border-color var(--t-state) var(--ease); }
.pf-tile__head { display: flex; align-items: center; gap: 8px; padding: 10px 13px; border-bottom: 1px solid var(--ink-hair); }
.pf-tile__label { font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.pf-tile__q { margin-left: auto; font-size: 10.5px; color: var(--ink-muted); }
.pf-tile__body { padding: 13px; display: flex; flex-direction: column; gap: 9px; }
.pf-tile__body--person { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; }
.pf-tile__name { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.pf-tile__head2 { font-size: 15px; font-weight: 800; letter-spacing: -.025em; }
.pf-tile__line { display: block; font-size: 12.5px; color: var(--ink-muted); line-height: 1.5; }
.pf-facts { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.pf-facts span { font-size: 11px; font-weight: 600; color: var(--ink-strong); background: var(--ink-wash); border-radius: 6px; padding: 3px 8px; }
.pf-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pf-chip { display: inline-block; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 6px; background: var(--ink-wash); color: var(--black); }
.pf-chip--yellow { background: var(--yellow); }
.pf-chip--coral { background: var(--coral); }
.pf-chip--mint { background: var(--mint); }
.pf-entity { display: flex; align-items: center; gap: 8px; padding: 12px 14px 0; font-size: 12.5px; }
.pf-entity b { font-size: 14px; }
.pf-entity span:last-child { color: var(--ink-muted); }

/* Messages: PersonThread + Composer */
.pf-msgs { padding: 0 14px 14px; display: flex; flex-direction: column; }
.pf-thread { display: flex; flex-direction: column; gap: 7px; padding: 14px 2px 16px; position: relative; min-height: 60px; }
.pf-thread__empty { text-align: center; color: var(--ink-muted); padding: 22px 0; font-size: 13px; transition: opacity var(--t-quick) var(--ease); }
.pf-bubble { max-width: min(460px, 86%); display: flex; flex-direction: column; }
.pf-bubble--inbound { align-self: flex-start; }
.pf-bubble--outbound { align-self: flex-end; align-items: flex-end; }
.pf-bubble__body { padding: 8px 12px; border-radius: 4px; font-size: 14px; line-height: 1.45; background: var(--ink-wash); }
.pf-bubble--outbound .pf-bubble__body { background: var(--black); color: var(--white); }
.pf-bubble__meta { font-size: 10.5px; color: var(--ink-muted); margin-top: 3px; }
.pf-composer { border-top: 1px solid var(--black); padding-top: 12px; }
.pf-composer__tabs { display: flex; gap: 18px; padding-bottom: 10px; font-size: 12.5px; color: var(--ink-muted); }
.pf-composer__tabs span { padding-bottom: 5px; border-bottom: 2px solid transparent; }
.pf-composer__tabs .is-on { color: var(--black); font-weight: 700; border-bottom-color: var(--aqua); }
.pf-composer__input { position: relative; min-height: 64px; padding: 9px 11px; border: 1px solid var(--black); border-radius: 6px; font-size: 13px; }
.pf-composer__ph { position: absolute; left: 11px; top: 9px; color: var(--ink-muted); opacity: 0; }
.pf-composer__foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 11.5px; color: var(--ink-muted); }
.pf-composer__foot .pf-btn { margin-left: auto; }
.pf-btn { display: inline-flex; align-items: center; min-height: 32px; padding: 6px 12px; border-radius: 8px; background: var(--black); color: var(--white); font-size: 12.5px; font-weight: 700; line-height: 1.1; }
.pf-btn--lg { min-height: 46px; padding: 12px 20px; font-size: 14px; }
.pf-btn--sec { background: var(--white); color: var(--black); border: 1px solid var(--ink-rule); }

/* Opportunity detail (components/cases/CaseDetail.jsx, PlanYourVisitCard.jsx) */
.pf-oband { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; background: var(--black); color: var(--white); padding: 10px 14px; }
.pf-oband__k { font-size: 9.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--on-black-muted); }
.pf-oband b { font-size: 14px; }
.pf-oband__m { font-size: 11.5px; color: var(--on-black-muted); }
.pf-ogrid { display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 16px; padding: 16px 14px; }
@container (max-width: 600px) { .pf-ogrid { grid-template-columns: 1fr; } .pf-orail { order: -1; } }
.pf-oname { font-size: 26px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.pf-orail__head, .pf-sechead { display: flex; justify-content: space-between; gap: 14px; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; border-bottom: 1px solid var(--black); padding-bottom: 6px; margin-bottom: 10px; }
.pf-sechead i { font-style: normal; font-size: 11.5px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-muted); }
.pf-kv { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--ink-rule); font-size: 12.5px; }
.pf-kv > span { font-size: 11.5px; color: var(--ink-muted); }
.pf-kv b { font-weight: 500; text-align: right; }
.pf-note { margin-top: 16px; border-left: 2px solid var(--black); padding: 2px 0 2px 12px; max-width: 560px; }
.pf-note__k { font-size: 9.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.pf-note__b { font-size: 13px; line-height: 1.55; color: var(--ink-strong); margin-top: 4px; }
.pf-note__m { font-size: 10.5px; color: var(--ink-muted); margin-top: 4px; }
.pf-journey { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.pf-journey li { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--ink-rule); color: var(--ink-muted); }
.pf-journey li.is-done { background: var(--mint); border-color: transparent; color: var(--black); }

/* Ministries (components/MinistryHub.jsx, ministry/MinistryLensView.jsx) */
.pf-mhead { background: var(--black); color: var(--white); padding: 20px 24px 22px; }
.pf-mhead__name { font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.pf-mhead__line { font-size: 13px; color: var(--on-black-muted); margin-top: 8px; }
.pf-mhead__line u { color: var(--white); text-underline-offset: 3px; }
.pf-mhead__scale { font-size: 12.5px; color: var(--on-black-muted); margin-top: 6px; }
@container (max-width: 640px) { .pf-mhead { padding: 18px 16px; } .pf-mhead__name { font-size: 28px; } }
.pf-mbody { padding: 22px 20px 26px; }
.pf-conds { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pf-cond { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 7px 13px; border: 1px solid var(--ink-rule); border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--white); transition: opacity var(--t-state) var(--ease); }
.pf-dot { flex: none; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); }
.pf-dot--coral { background: var(--coral); }
.pf-dot--mint { background: var(--mint); }
.pf-dot--aqua { background: var(--aqua); width: 8px; height: 8px; }
.pf-mband { background: var(--canvas); border-radius: 20px; padding: 12px; }
.pf-mpanel { background: var(--white); border: 1px solid var(--ink-hair); border-radius: 16px; overflow: hidden; }
.pf-mpanel__head { position: relative; display: flex; flex-direction: column; padding: 22px 24px 20px; border-bottom: 1px solid var(--ink-hair); }
.pf-mpanel__title { font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); }
.pf-mpanel__q { font-size: 28px; font-weight: 800; line-height: 1.05; letter-spacing: -.04em; margin-top: 10px; padding-right: 56px; }
.pf-mpanel__go { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: var(--black); color: var(--white); display: grid; place-items: center; font-size: 17px; }
.pf-figs { display: flex; flex-wrap: wrap; gap: 18px 48px; padding: 22px 24px 18px; }
.pf-fig b { display: block; font-size: 40px; font-weight: 800; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; border-radius: 6px; }
.pf-fig i { display: block; font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); margin-top: 9px; }
.pf-teams { display: grid; gap: 10px; padding: 0 16px 16px; }
.pf-team { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--ink-hair); border-radius: 14px; background: var(--white); transition: opacity var(--t-state) var(--ease), border-color var(--t-state) var(--ease); }
.pf-mark { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--aqua); font-size: 13px; font-weight: 800; }
.pf-team__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pf-team__main b { font-size: 16px; letter-spacing: -.015em; }
.pf-team__main span { font-size: 12.5px; color: var(--ink-muted); margin-top: 2px; }
.pf-team__n { text-align: right; }
.pf-team__n b { display: block; font-size: 20px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.pf-team__n i { display: block; font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-muted); margin-top: 3px; }
@container (max-width: 560px) { .pf-team__n i { display: none; } .pf-figs { gap: 14px 28px; } .pf-fig b { font-size: 30px; } .pf-mpanel__q { font-size: 22px; } }
.pf-states { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 16px; }
.pf-st { display: flex; flex-direction: column; border: 1px solid var(--ink-hair); border-radius: 14px; padding: 17px 18px 19px; }
.pf-st__k { font-size: 9.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); }
.pf-st__v { margin-top: 13px; font-size: 16px; font-weight: 700; letter-spacing: -.015em; }
.pf-st__s { margin-top: 9px; font-size: 12.5px; color: var(--ink-muted); }

/* TeamDetail roster row */
.pf-roster__team { font-size: 28px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.pf-roster__sub { font-size: 12.5px; color: var(--ink-muted); margin-top: 6px; }
.pf-roster__head { margin-top: 24px; margin-bottom: 4px; }
.pf-prow { display: flex; align-items: center; gap: 11px; padding: 8px 0; border-bottom: 1px solid var(--ink-hair); }
.pf-roster:has(.is-on) .pf-prow:not([data-lead]), .pf-roster .pf-prow:not([data-lead]) { opacity: .5; }
.pf-prow__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pf-prow__main b { font-size: 14px; }
.pf-prow__main span { font-size: 12.5px; color: var(--ink-muted); }
.pf-act { flex: none; display: inline-flex; align-items: center; min-height: 34px; padding: 7px 12px; border: 1px solid var(--ink-rule); border-radius: 8px; font-size: 12.5px; font-weight: 700; }

/* Pathways (components/PathwayDetail.jsx) */
.pf-phead { background: var(--black); color: var(--white); padding: 18px 24px 0; }
.pf-phead__back { font-size: 12.5px; font-weight: 700; color: var(--on-black-strong); }
.pf-phead__label { margin-top: 14px; font-size: 10.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--on-black-muted); }
.pf-phead__back + .pf-phead__label { margin-top: 14px; }
.pf-phead > .pf-phead__label:first-child { margin-top: 0; }
.pf-phead__name { margin-top: 8px; font-size: 32px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.pf-pfacts { display: flex; margin: 18px 0 0; }
.pf-pfacts div { padding: 0 20px; border-left: 1px solid var(--on-black-faint); }
.pf-pfacts div:first-child { padding-left: 0; border-left: 0; }
.pf-pfacts dt { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-black-muted); }
.pf-pfacts dd { margin: 6px 0 0; font-size: 15px; font-weight: 700; }
.pf-rail { display: flex; gap: 22px; margin-top: 18px; overflow: hidden; }
.pf-rail__s { flex: none; font-size: 14px; font-weight: 700; padding: 10px 0 12px; border-bottom: 2px solid transparent; white-space: nowrap; color: var(--on-black-muted); transition: color var(--t-state) var(--ease), border-color var(--t-state) var(--ease); }
.pf-rail__n { font-size: 10.5px; font-weight: 800; margin-right: 6px; opacity: .8; font-variant-numeric: tabular-nums; }
.pf-rail__s--done { color: var(--on-black-strong); }
.pf-rail__s--current { color: var(--white); border-bottom-color: var(--aqua); }
@container (max-width: 640px) { .pf-phead { padding: 16px 16px 0; } .pf-phead__name { font-size: 26px; } .pf-rail { gap: 14px; } .pf-rail__s { font-size: 12.5px; } }
.pf-pbody { padding: 22px 24px 26px; }
@container (max-width: 640px) { .pf-pbody { padding: 18px 16px 22px; } }
.pf-items { display: grid; }
.pf-item { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 0; border-bottom: 1px solid var(--ink-hair); font-size: 14px; font-weight: 600; transition: opacity var(--t-state) var(--ease); }
.pf-item i { font-style: normal; font-weight: 400; color: var(--ink-muted); }
.pf-check { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--black); font-size: 13px; font-weight: 800; }
.pf-item--done { font-weight: 500; color: var(--ink-muted); text-decoration: line-through; }
.pf-item--done .pf-check { background: var(--mint); border-color: transparent; color: var(--black); text-decoration: none; }
.pf-gate { margin-top: 20px; }
.pf-history { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 9px 0; border-top: 1px solid var(--ink-hair); font-size: 12.5px; opacity: 0; transform: translateY(6px); transition: opacity var(--t-state) var(--ease), transform var(--t-state) var(--ease); }
.pf-history span { color: var(--ink-muted); }

/* Sunday Snapshot (components/SundaySnapshotPanel.jsx) */
.pf-snap { padding: 20px 22px 24px; }
@container (max-width: 640px) { .pf-snap { padding: 16px 14px 20px; } }
.pf-shead__t { font-size: 28px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.pf-shead__s { font-size: 12.5px; color: var(--ink-muted); margin-top: 8px; margin-bottom: 20px; }
.pf-sfigs { display: flex; flex-wrap: wrap; gap: 18px 0; margin-bottom: 26px; }
.pf-sfig { padding-right: 24px; margin-right: 24px; border-right: 1px solid var(--ink-rule); }
.pf-sfig:last-child { border-right: 0; }
.pf-sfig b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.pf-sfig--lg b { font-size: 40px; }
.pf-sfig i { display: block; font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); margin-top: 8px; }
@container (max-width: 640px) { .pf-sfig { padding-right: 0; margin-right: 22px; border-right: 0; } .pf-sfig--lg b { font-size: 30px; } .pf-sfig b { font-size: 20px; } }
.pf-stotal { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.pf-stotal b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.pf-stotal i { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.pf-bucket { display: flex; align-items: center; gap: 12px; padding: 11px 6px; border-bottom: 1px solid var(--ink-hair); transition: opacity var(--t-state) var(--ease); }
.pf-bucket__main { flex: 1; display: flex; flex-direction: column; }
.pf-bucket__main > b { font-size: 14px; }
.pf-bucket__src { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 5px; font-size: 11.5px; color: var(--ink-muted); }
.pf-bucket__src .pf-chip { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pf-bucket__n { font-size: 22px; font-weight: 800; }
.pf-bucket__names { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 0; max-height: 0; overflow: hidden; opacity: 0; transition: max-height var(--t-state) var(--ease), opacity var(--t-state) var(--ease), margin var(--t-state) var(--ease); }
.pf-name { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--ink-wash); }
.pf-alert { margin-top: 18px; border-left: 3px solid var(--yellow); padding: 10px 0 10px 14px; font-size: 13px; }
.pf-alert p { font-weight: 600; }
.pf-alert .pf-btn { margin-top: 10px; }

/* The care form and PYV form, on a phone (pages/pyv/[slug].js) */
.phone .pf-form { text-align: left; padding: 28px 20px 26px; min-height: 420px; }
.pf-form__eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.pf-form__title { font-size: 26px; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin-top: 8px; }
.pf-form__label { font-size: 13px; font-weight: 700; margin-top: 22px; }
.pf-form__field { margin-top: 8px; padding: 11px 12px; border: 1.5px solid var(--black); border-radius: 10px; font-size: 15px; }
.pf-form__choice { margin-top: 8px; padding: 11px 12px; border-radius: 10px; background: var(--black); color: var(--white); font-weight: 700; font-size: 14px; }

/* ═══ THE JOURNEY — one SafeOS window, the reading column beside it ═════ */
.journey { padding: clamp(24px, 3vw, 40px) 0 0; }
.journey__app { margin-top: 0; }
.journey__frames { position: relative; }
.app__who--alt { display: none; }
.app__who--alt.is-on { display: inline; }
.app__bar:has(.app__who--alt.is-on) .app__who--main { display: none; }

/* Where you are in SafeOS: narration above the window, not product UI. */
.where { display: flex; align-items: center; gap: 8px; min-height: 28px; margin-bottom: 10px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.where::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--ink-faint); transition: background var(--t-state) var(--ease); }
.where.is-home { color: var(--black); }
.where.is-home::before { background: var(--aqua); box-shadow: 0 0 0 1px var(--black); }

.fr { background: var(--white); }
.fr--phone { display: grid; place-items: center; padding: 22px 0; background: var(--white); box-shadow: inset 0 0 0 999px var(--canvas); }
.fr--phone .phone { width: 250px; }
.phone__screen--capture { padding: 0; overflow: hidden; }
.phone__screen--capture img { display: block; width: 100%; height: auto; }

.leg + .leg { margin-top: 8vh; }
.leg__title { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; text-wrap: balance; max-width: 16ch; }
.leg__title span { display: block; }
.leg .eyebrow { margin-bottom: 12px; }
.leg__back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 6px 12px; border: 1.5px solid var(--black); border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.leg__steps { list-style: none; margin-top: 8px; }
.ch__step p { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.3; letter-spacing: -.015em; font-weight: 500; color: var(--ink-strong); max-width: 22ch; }
.ch__step b { color: var(--black); font-weight: 700; }

/* No JavaScript: the window shows every frame in order; the reading follows. */
html:not(.js) .journey__frames { display: grid; gap: 2px; background: var(--black); }
html:not(.js) .where { display: none; }
html:not(.js) .journey__read { margin-top: 40px; }
html:not(.js) .leg__steps { display: grid; gap: 10px; margin-top: 16px; }
html:not(.js) .pf-history { opacity: 1; transform: none; }

/* JavaScript: one frame at a time, on a stage that stays. */
.js .journey__stage { position: sticky; z-index: 2; }
.js .journey__frames { overflow: hidden; }
/* Frames: the script plays every move between them (site.js, frameMove) — into a
   responsibility, back out to Today, or across within one. CSS only holds the
   resting states; a frame being left stays visible while it plays out. */
.js .fr { position: absolute; inset: 0; overflow: hidden; visibility: hidden; opacity: 0; }
.js .fr.is-shown, .js .fr.is-leaving { visibility: visible; opacity: 1; }
.js .fr.is-leaving { z-index: 1; pointer-events: none; }
html.js:not(.motion) .fr { transition: opacity var(--t-state) var(--ease); }
.js .ch__step { display: flex; align-items: center; }
.js .ch__step p { transition: opacity var(--t-state) var(--ease); opacity: .32; }
.js .ch__step.is-current p { opacity: 1; }

@media (min-width: 1000px) {
  .journey__grid { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 64px; }
  .journey__stage { grid-column: 2; grid-row: 1; }
  .journey__read { grid-column: 1; grid-row: 1; }
  .js .journey__stage { top: max(20px, calc(50vh - 350px)); height: min(700px, calc(100vh - 40px)); align-self: start; display: flex; flex-direction: column; }
  .js .journey__app { flex: 1; display: flex; flex-direction: column; min-height: 0; }
  .js .journey__frames { flex: 1; }
  .js .ch__step { min-height: 64vh; align-items: flex-start; }
  .js .leg:first-child .ch__step:first-child { min-height: 52vh; }
  .js .leg { padding-top: 6vh; }
  .js .leg:last-child .ch__step:last-child { min-height: 80vh; }
}
@media (max-width: 999px) {
  .js .journey__stage { top: 6px; height: min(62svh, 560px); display: flex; flex-direction: column; background: var(--white); padding-bottom: 6px; }
  .js .journey__app { flex: 1; display: flex; flex-direction: column; min-height: 0; }
  .js .journey__frames { flex: 1; }
  .where { margin-bottom: 6px; font-size: 11px; min-height: 22px; }
  .journey__read { position: relative; z-index: 1; margin-top: 22px; }
  .js .ch__step { min-height: 46svh; align-items: flex-start; padding-top: 2svh; }
  .js .leg:last-child .ch__step:last-child { min-height: 60svh; }
  .leg + .leg { margin-top: 4svh; }
  .leg__title { font-size: 26px; }
  .fr--phone .phone { width: 196px; padding: 9px; border-radius: 32px; }
  .fr--phone .phone__screen { border-radius: 24px; }
  .phone .pf-form { min-height: 0; padding: 20px 14px; }
  .pf-form__title { font-size: 21px; }
}

/* ═══ STATES: attention, causality, carried ═════════════════════════════ */
/* Attention is de-emphasis: everything but the thing that matters settles. */
.pf-list:has([data-focus]) .pf-row:not([data-focus]),
.pf-list:has(.is-on[data-focus-on]) .pf-row:not(.is-on[data-focus-on]) { opacity: var(--dim); }
.pf-brief:has(.pf-ctx[data-focus]) .pf-list { opacity: var(--dim); }
.pf-ctx[data-focus] u { text-decoration-color: var(--aqua); text-decoration-thickness: 2px; }
.pf-tiles:has([data-tile-focus]) .pf-tile:not([data-tile-focus]) { opacity: .5; }
.pf-tile[data-tile-focus] { border-color: var(--black); }
.pf-items:has([data-focus]) .pf-item:not([data-focus]) { opacity: .5; }
.pf-item[data-focus] .pf-check { border-color: var(--black); box-shadow: 0 0 0 3px var(--yellow); }

/* Ministry: the shortfall, then the team nobody owns. */
.pf-mbody:has(.pf-cond.is-on) .pf-mband, .pf-mbody:has(.pf-cond.is-on) .pf-states { opacity: var(--dim); }
.pf-mband, .pf-states { transition: opacity var(--t-state) var(--ease); }
.pf-teams:has(.pf-team.is-on) .pf-team:not(.is-on) { opacity: .45; }
.pf-team.is-on { border-color: var(--black); }

/* Swaps: a state that becomes another. */
[data-swap-after] { display: none; }
[data-swap].is-on [data-swap-before] { display: none; }
[data-swap].is-on [data-swap-after] { display: revert; width: fit-content; padding: 0 4px; margin-left: -4px; animation: carried 1.4s var(--ease) both; }
[data-swap].is-on .pf-note[data-swap-after] { display: block; animation: rise var(--t-camera) var(--ease) both; }
@keyframes carried { 0%, 60% { background: var(--mint); border-radius: 4px; } 100% { background: transparent; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* A press, then its consequence, in order. */
.is-on [data-press] { animation: press 360ms var(--ease) 380ms both; }
@keyframes press { 50% { transform: scale(.95); } }

/* Messages: the draft sends; the bubble lands; the empty state goes. */
.pf-msgs [data-lands] { opacity: 0; transform: translateY(8px); }
/* Three beats: the reply is written · Send · it lands (and the composer clears). */
.pf-msgs.is-on [data-lands] { opacity: 1; transform: none; transition: opacity var(--t-state) var(--ease) 1500ms, transform 620ms var(--ease-film, var(--ease)) 1500ms; }
.pf-msgs.is-on [data-draft] { opacity: 0; transition: opacity var(--t-quick) var(--ease) 1420ms; }
.pf-msgs.is-on .pf-composer__ph { opacity: 1; transition: opacity var(--t-quick) var(--ease) 1560ms; }
.pf-msgs.is-on [data-thread-empty] { opacity: 0; transition: opacity var(--t-quick) var(--ease) 1400ms; position: absolute; inset: 14px 0 auto; }
.pf-msgs.is-on [data-press] { animation: press 360ms var(--ease) 1080ms both; }
.motion .pf-msgs [data-draft] { display: inline-block; }
.motion .pf-msgs.is-on .pf-composer__input { animation: compose 900ms var(--ease) 200ms both; }
@keyframes compose { from { border-color: var(--ink-rule); } to { border-color: var(--black); } }

/* Opportunity: Sunday, Attended. */
.pf-opp.is-on .pf-journey__visited { background: var(--mint); border-color: transparent; color: var(--black); transition: background var(--t-state) var(--ease) 500ms, color var(--t-state) var(--ease) 500ms; }
.pf-opp.is-on .pf-journey__next { border-color: var(--black); color: var(--black); transition: border-color var(--t-state) var(--ease) 900ms, color var(--t-state) var(--ease) 900ms; }

/* Pathway: advance — the rail moves, history records it. */
.pf-pathway.is-on [data-rail-current] { color: var(--on-black-strong); border-bottom-color: transparent; transition-delay: 600ms; }
.pf-pathway.is-on [data-rail-next] { color: var(--white); border-bottom-color: var(--aqua); transition-delay: 600ms; }
.pf-pathway.is-on .pf-history { opacity: 1; transform: none; transition-delay: 900ms; }

/* Sunday: the guests who still need someone surface, then appear in Today. */
.pf-snap.is-on .pf-bucket__names { max-height: 80px; opacity: 1; margin-top: 10px; }
.pf-snap.is-on .pf-name { background: var(--yellow); }
.pf-snap.is-on .pf-buckets:has([data-bucket-focus]) .pf-bucket:not([data-bucket-focus]) { opacity: .45; }
.fr.is-shown .pf-list:has([data-from-sunday]) .pf-row:not([data-from-sunday]) { opacity: var(--dim); }
.fr.is-shown .pf-row[data-from-sunday] { animation: arrive var(--t-camera) var(--ease) both; }
.fr.is-shown .pf-row[data-from-sunday] + .pf-row[data-from-sunday] { animation-delay: 140ms; }
@keyframes arrive { from { opacity: 0; transform: translateY(-14px); background: var(--yellow); } 60% { background: var(--yellow); } to { opacity: 1; transform: none; background: transparent; } }

/* Today after an action: a figure that changed is marked carried, briefly loud. */
.fr.is-shown .is-changed { animation: carried-figure 1.6s var(--ease) both; }
@keyframes carried-figure { 0% { transform: scale(1.18); } 30% { transform: none; } }

/* ═══ NAMED — organizational stewardship ═════════════════════════════════ */
.named { padding: var(--section) 0; }
.named__grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .named__grid { grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; } }
.named .display { font-size: clamp(40px, 5.6vw, 80px); }
.leaders { border-top: 1px solid var(--on-black-faint); }
.leader { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 16px 0; border-bottom: 1px solid var(--on-black-faint); }
.leader__who b { display: block; color: var(--white); }
.leader__who span { font-size: 14px; color: var(--on-black-muted); }
.leader__now { display: inline-flex; align-items: center; gap: 8px; justify-self: end; font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--white); }
.leader__what { grid-column: 1 / -1; font-size: 14px; color: var(--on-black-strong); }
@media (min-width: 560px) { .leader__what { grid-column: 2; justify-self: end; } .leader { grid-template-rows: auto auto; } .leader__who { grid-row: 1 / 3; } }
.named .frame-caption { margin-top: 14px; }

/* ═══ S.A.F.E. (short) ═══════════════════════════════════════════════════ */
.framework--short { padding-bottom: var(--section); }
.framework--short .section-head { margin-bottom: 40px; }
@media (min-width: 900px) { .framework--short .safe__step { min-height: 0; padding-bottom: 44px; } }
.framework__more { margin-top: 28px; font-weight: 700; }
.framework__more a, .trust__privacy a { text-decoration: none; border-bottom: 2px solid var(--aqua); padding-bottom: 2px; }

/* ═══ ADOPTION ═══════════════════════════════════════════════════════════ */
.trust { padding: var(--section) 0; border-top: 1px solid var(--ink-rule); }
.trust__grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .trust__grid { grid-template-columns: 1.3fr .7fr; gap: 80px; align-items: end; } }
.trust .sources { margin-top: 36px; padding-bottom: 0; }
.trust .sources::after { display: none; }
.trust__title { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -.025em; font-weight: 800; }
.trust__privacy p { margin-top: 14px; color: var(--ink-strong); max-width: 36ch; }
.trust__privacy p:last-child { font-weight: 700; color: var(--black); }

/* ═══ Reduced motion: the same story, landed. ═══════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .js .fr, .js .fr.is-shown, .pf-row, .pf-tile, .pf-team, .pf-item, .pf-cond, .pf-bucket, .pf-ctx, .pf-history, .pf-rail__s, .pf-bucket__names, .js .ch__step p, .pf-mband, .pf-states { transition: none !important; }
  .js .fr { transform: none; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; }
  .pf-msgs.is-on [data-lands], .pf-msgs.is-on [data-draft], .pf-msgs.is-on .pf-composer__ph, .pf-msgs.is-on [data-thread-empty], .pf-opp.is-on li, .pf-pathway.is-on * { transition-delay: 0ms !important; transition-duration: 0ms !important; }
}

/* A conversation opens at its newest message, as PersonThread does: on a short
   stage the thread anchors to the composer and older messages leave the top. */
@media (max-width: 999px) {
  .js .fr:has(> .pf-msgs) { display: flex; flex-direction: column; }
  .js .fr > .pf-msgs { flex: 1; min-height: 0; }
  .js .fr > .pf-msgs .pf-thread { flex: 1; min-height: 0; overflow: hidden; justify-content: flex-end; }
}


/* ═══ MOTION — choreography, not entrances ═══════════════════════════════
   Only under .motion (set in <head> when the visitor allows motion). Every
   state below is also reachable with no motion at all; nothing waits on it. */
:root { --ease-film: cubic-bezier(.16,1,.3,1); }

/* Masked line reveals (site.js splits [data-lines] into .ln > .ln__in). */
[data-lines] .ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
[data-lines] .ln__in { display: block; }
.motion [data-lines].is-split .ln__in { transform: translateY(108%); }
.motion [data-lines].is-revealed .ln__in { transform: none; transition: transform 1000ms var(--ease-film) calc(var(--i, 0) * 95ms); }
.motion .hero__title:not(.is-split) { animation: wait-then-show 1ms 1400ms both; }  /* if the split never comes */
@keyframes wait-then-show { from { opacity: 0; } to { opacity: 1; } }

/* Hero: the problem is stated, then SafeOS arrives to answer it. */
@keyframes settle { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes arrive-window { from { opacity: 0; transform: translateY(72px) scale(.965); } to { opacity: 1; transform: none; } }
.motion .hero--story .hero__side > * { animation: settle 800ms var(--ease-film) both; }
.motion .hero--story .hero__lede { animation-delay: 420ms; }
.motion .hero--story .actions { animation-delay: 540ms; }
.motion .hero--story .fine { animation-delay: 640ms; }
.motion .today__tabs [role="tab"] { animation: settle 700ms var(--ease-film) both; }
.motion .today__tabs [role="tab"]:nth-child(1) { animation-delay: 760ms; }
.motion .today__tabs [role="tab"]:nth-child(2) { animation-delay: 810ms; }
.motion .today__tabs [role="tab"]:nth-child(3) { animation-delay: 860ms; }
.motion .today__tabs [role="tab"]:nth-child(4) { animation-delay: 910ms; }
.motion .today__tabs [role="tab"]:nth-child(5) { animation-delay: 960ms; }
.motion .today__window { animation: arrive-window 1150ms var(--ease-film) 820ms both; }
.motion .today__panel .pf-mast, .motion .today__panel .pf-signal, .motion .today__panel .pf-door, .motion .today__panel .pf-brief { animation: settle 700ms var(--ease-film) both; }
.motion .today__panel .pf-mast { animation-delay: 1180ms; }
.motion .today__panel .pf-signal { animation-delay: 1300ms; }
.motion .today__panel .pf-door:nth-child(1) { animation-delay: 1380ms; }
.motion .today__panel .pf-door:nth-child(2) { animation-delay: 1440ms; }
.motion .today__panel .pf-door:nth-child(3) { animation-delay: 1500ms; }
.motion .today__panel .pf-door:nth-child(4) { animation-delay: 1560ms; }
.motion .today__panel .pf-brief { animation-delay: 1600ms; }
/* Switching leaders later is a state change, not an entrance. */
.motion .today.is-settled * { animation: none !important; }

/* The journey's window settles in as the story begins (scroll-linked: --enter). */
.motion .journey__app { transform: translateY(calc((1 - var(--enter, 1)) * 40px)) scale(calc(.955 + var(--enter, 1) * .045)); transform-origin: 50% 0; }
/* Today leans toward the row it is about to open (scroll-linked: --push). */
.motion .fr.is-shown > .pf-pad { transform: scale(calc(1 + var(--push, 0) * .035)); transform-origin: var(--ox, 50%) var(--oy, 30%); }

/* The reading column: the line being read comes forward. */
.motion .ch__step p { transform: translateY(10px); transition: opacity 500ms var(--ease), transform 700ms var(--ease-film); }
.motion .ch__step.is-current p { transform: none; }

/* The trail: where you are changes as you move. */
.where__t { display: inline-block; }

/* Consequence: carried in mint, leaves; the gap closes; the figures roll. */
.pf-brief--carry .pf-row { max-height: 96px; }
.roll { display: inline-grid; vertical-align: top; }
.roll > span { grid-area: 1 / 1; }
.roll [data-now] { opacity: 0; }
@keyframes carry-mint { 0% { background: transparent; } 22%, 100% { background: var(--mint); } }
@keyframes carry-row { 0% { background: transparent; } 20%, 46% { background: var(--mint); max-height: 96px; opacity: 1; } 100% { background: var(--mint); max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; border-bottom-width: 0; } }
@keyframes carry-block { 0%, 46% { max-height: 480px; opacity: 1; } 100% { max-height: 0; opacity: 0; } }
@keyframes carry-figure { 0%, 40% { max-width: 400px; opacity: 1; } 100% { max-width: 0; opacity: 0; margin: 0; } }
@keyframes roll-out { to { opacity: 0; transform: translateY(-.7em); } }
@keyframes roll-in { from { opacity: 0; transform: translateY(.7em); } to { opacity: 1; transform: none; } }
@keyframes hold-mint { from { background: transparent; } to { background: var(--mint); } }
.is-on .pf-brief--carry .pf-row[data-carry] { overflow: hidden; animation: carry-row 1400ms var(--ease) 380ms both; }
.is-on .pf-brief--carry [data-carry]:is(.pf-group, .pf-band) { overflow: hidden; animation: carry-block 1400ms var(--ease) 380ms both; }
.is-on .pf-brief--carry [data-carry]:is(.pf-group, .pf-band) .pf-row { animation: carry-mint 600ms var(--ease) 380ms both; }
.is-on .pf-brief--carry .pf-ctx__item[data-carry] { overflow: hidden; white-space: nowrap; animation: carry-figure 1200ms var(--ease) 600ms both; }
.is-on .roll [data-was] { animation: roll-out 360ms var(--ease-leave) 1500ms both; }
.is-on .roll [data-now] { animation: roll-in 520ms var(--ease-film) 1640ms both; }
.is-on .roll { border-radius: 4px; padding: 0 5px; margin: 0 -5px; animation: hold-mint 400ms var(--ease) 1640ms both; }
/* Without JavaScript the carry frames simply show where things landed. */
html:not(.js) .pf-brief--carry [data-carry] { display: none; }
html:not(.js) .roll [data-was] { display: none; }
html:not(.js) .roll [data-now] { opacity: 1; }

/* Sunday → Today: the guests' names travel (site.js clones them); the rows take them in. */
.flying-name { position: absolute; z-index: 5; margin: 0; pointer-events: none; }
.fr.is-shown .pf-row[data-from-sunday] { animation: arrive var(--t-camera) var(--ease) 620ms both; }
.fr.is-shown .pf-row[data-from-sunday] + .pf-row[data-from-sunday] { animation-delay: 760ms; }

/* What SafeOS connects: each leader's Today, in turn. */
.motion .leaders[data-reveal] .leader { opacity: 0; transform: translateX(-14px); }
.motion .leaders.is-revealed .leader { opacity: 1; transform: none; transition: opacity 600ms var(--ease) calc(var(--i, 0) * 110ms + 200ms), transform 800ms var(--ease-film) calc(var(--i, 0) * 110ms + 200ms); }
/* S → A → F → E: one hue deepening, step by step. */
.motion .safe[data-reveal] .safe__step { clip-path: inset(0 100% 0 0); }
.motion .safe.is-revealed .safe__step { clip-path: inset(0 0 0 0); transition: clip-path 900ms var(--ease-film) calc(var(--i, 0) * 160ms); }

/* Phones: the same moves, shorter and lighter. */
@media (max-width: 999px) {
  .motion .journey__app { transform: none; }
  .motion .fr.is-shown > .pf-pad { transform: none; }
  .motion .today__window { animation-duration: 900ms; }
}

/* ── Beats inside a frame: it arrives whole, then SafeOS shows what it noticed ── */
@keyframes dim { from { opacity: 1; } to { opacity: var(--dim); } }
@keyframes dim-half { from { opacity: 1; } to { opacity: .5; } }
@keyframes write-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes ring-in { from { box-shadow: 0 0 0 0 var(--yellow); } to { box-shadow: 0 0 0 3px var(--yellow); } }
@keyframes focus-in { from { border-color: var(--ink-hair); } to { border-color: var(--black); } }
@keyframes check-in { 0% { transform: scale(.4); background: var(--white); } 60% { transform: scale(1.12); } 100% { transform: none; } }
@keyframes owner-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Today: the whole list, then everything settles except the one that matters. */
.motion .fr.is-shown .pf-list:has([data-focus]) .pf-row:not([data-focus]) { animation: dim 650ms var(--ease) 520ms both; }
.motion .fr.is-shown .pf-brief:has(.pf-ctx[data-focus]) .pf-list { animation: dim 650ms var(--ease) 520ms both; }
.motion .fr.is-shown .pf-items:has([data-focus]) .pf-item:not([data-focus]) { animation: dim-half 650ms var(--ease) 600ms both; }
.motion .fr.is-shown .pf-item[data-focus] .pf-check { animation: ring-in 500ms var(--ease) 700ms both; }

/* The form: a person raises a hand. */
.motion .fr.is-shown .pf-form__field { animation: write-in 900ms steps(12, end) 520ms both; }
.motion .fr.is-shown .pf-form__choice { animation: settle 600ms var(--ease-film) 1250ms both, press 360ms var(--ease) 1700ms; }

/* Focus: it reached the right person — the Opportunity, and whose it is. */
.motion .fr.is-shown .pf-tiles:has([data-tile-focus]) .pf-tile:not([data-tile-focus]) { animation: dim-half 650ms var(--ease) 520ms both; }
.motion .fr.is-shown .pf-tile[data-tile-focus] { animation: focus-in 500ms var(--ease) 520ms both; }
.motion [data-tile-focus] .pf-tile__line { position: relative; width: fit-content; }
.motion [data-tile-focus] .pf-tile__line::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--aqua); transform: scaleX(0); transform-origin: 0 50%; }
.motion .fr.is-shown [data-tile-focus] .pf-tile__line::after { animation: owner-in 700ms var(--ease-film) 1000ms both; }

/* Pathway: every step of the stage is done, one after another. */
.motion .fr.is-shown .pf-pathway .pf-item--done .pf-check { animation: check-in 460ms var(--ease-film) both; }
.motion .fr.is-shown .pf-pathway .pf-item--done:nth-child(1) .pf-check { animation-delay: 380ms; }
.motion .fr.is-shown .pf-pathway .pf-item--done:nth-child(2) .pf-check { animation-delay: 560ms; }
.motion .fr.is-shown .pf-pathway .pf-item--done:nth-child(3) .pf-check { animation-delay: 740ms; }

/* Ministry: the shortfall surfaces once the page has arrived. */
.motion .fr.is-shown .pf-cond .pf-dot { animation: check-in 460ms var(--ease-film) 450ms both; }

/* The leader in the window's title bar changes as the story moves to them. */
.motion .app__who--alt.is-on { animation: settle 520ms var(--ease-film) both; }
