/* ============================================================
   The Desk — landing page styles
   Interface = warm ink / ivory / champagne. The film supplies all atmosphere.
   Sections: fonts · tokens · base · type · brand · grain · buttons · nav · footer
   (film, sections, accordion, modal appended by later build tasks)
   ============================================================ */

/* ---------- Fonts (self-hosted variable woff2) ---------- */
@font-face { font-family:"Bodoni Moda"; src:url("fonts/bodoni-moda-var.woff2") format("woff2"); font-weight:400 500; font-style:normal; font-display:swap; }
@font-face { font-family:"Bodoni Moda"; src:url("fonts/bodoni-moda-italic-var.woff2") format("woff2"); font-weight:400 500; font-style:italic; font-display:swap; }
@font-face { font-family:"Hanken Grotesk"; src:url("fonts/hanken-grotesk-var.woff2") format("woff2"); font-weight:100 900; font-style:normal; font-display:swap; }
@font-face { font-family:"Spline Sans Mono"; src:url("fonts/spline-sans-mono-var.woff2") format("woff2"); font-weight:300 700; font-style:normal; font-display:swap; }
/* Fallback-metric faces — hold layout while the real faces load (CLS 0) */
@font-face { font-family:"Bodoni Fallback"; src:local("Georgia"); size-adjust:94%; ascent-override:88%; }
@font-face { font-family:"Hanken Fallback"; src:local("Helvetica Neue"),local("Arial"); size-adjust:99%; }

/* ---------- Tokens (spec §3) ---------- */
:root{
  --ink:#0E0B08;        /* warm near-black page */
  --ink-2:#171310;      /* raised surfaces */
  --ivory:#F5F0E6;      /* primary text on ink */
  --ivory-dim:#D5CEC0;  /* secondary text — lifted for readability */
  --gold:#C5A968;       /* champagne — accents, rules, the thread motif */
  --gold-deep:#7A5F33;  /* AA gold on light */
  --rose:#C08A7A;       /* dawn accent — payoff only */
  --line:rgba(245,240,230,.14);
  --line-soft:rgba(245,240,230,.07);
  --ease:cubic-bezier(.22,1,.36,1);
  --runway:620vh;

  --serif:"Bodoni Moda","Bodoni Fallback",Georgia,serif;
  --body:"Hanken Grotesk","Hanken Fallback",system-ui,sans-serif;
  --mono:"Spline Sans Mono",ui-monospace,"SFMono-Regular",monospace;

  --pad-x:clamp(24px,6vw,110px);
  --maxw:1100px;
}

/* ============================================================
   Daylight registers (spec 2026-07-18-daylight §5)
   Stepped in markup = the no-JS truth; the wash (T5) overrides
   the backgrounds under html.washed. Full-bleed bg at z:-2 so
   the spine/lamp (z:-1) stay above the paper.
   ============================================================ */
.section{position:relative}
.reg-day,.reg-dusk{}
.reg-day{--ivory:#251C11;--ivory-dim:#4E4433;--gold:#7A5F33;--rose:#A05543;
  --ink:#F7F1E4;--ink-2:#FFFDF6;--line:rgba(37,28,17,.16);--line-soft:rgba(37,28,17,.10);color:var(--ivory)}
.reg-dusk{--ink:#191410;--ink-2:#241C15;--line:rgba(245,240,230,.16)}
.reg-day::before,.reg-dusk::before{content:"";position:absolute;inset:0;left:50%;transform:translateX(-50%);
  width:100vw;z-index:-2;pointer-events:none;background:var(--reg-bg,var(--ink))}
#s1.reg-day{--reg-bg:#F4ECDC}
#ask.reg-day{--reg-bg:#F7F1E4}
#system.reg-day{--reg-bg:#FBF6EA}
#days.reg-day{--reg-bg:#F1E3C8}
#membership.reg-dusk{--reg-bg:#4A3626}
#faq.reg-dusk{--reg-bg:#191410}
html.washed .reg-day::before,html.washed .reg-dusk::before{background:transparent}   /* T5: the wash shows through */
/* fixed UI follows the reader's register (set by safe("register-ui")) */
body.day-ui .dayclock{color:#7A5F33}
.reg-dusk{--ivory-dim:#E3D9C8}   /* #membership on #4A3626 needs readable dim text */

/* the continuous wash (JS enhancement; registers are the fallback) */
.wash{position:fixed;inset:0;z-index:0;pointer-events:none;background:#0E0B08}
main{/* existing z-index:1 keeps content above the wash */}
html.washed .grain{opacity:calc(.055 - (.02 * var(--dayness,0)))}   /* paper needs less grain */

/* ---------- Base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--ink); color:var(--ivory);
  font:400 clamp(16px,1.05vw,18px)/1.62 var(--body);
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img,canvas{max-width:100%;display:block}
a{color:inherit}
::selection{background:rgba(197,169,104,.28);color:var(--ivory)}

/* ---------- Type ---------- */
h1,h2,.display{font-family:var(--serif);font-weight:500;line-height:1.05;letter-spacing:-.01em;margin:0}
h1{font-size:clamp(2.2rem,5.4vw,4.5rem)}
h2{font-size:clamp(1.9rem,4.6vw,3.3rem)}
p{margin:0 0 1em}
.eyebrow{font-family:var(--mono);font-size:.76rem;font-weight:500;letter-spacing:.22em;text-transform:uppercase;color:var(--gold);margin:0 0 1.4em}
.tlink{font-family:var(--body);color:var(--ivory-dim);text-decoration:none;border-bottom:1px solid var(--line);padding-bottom:2px;transition:color .3s var(--ease),border-color .3s var(--ease)}
.tlink:hover{color:var(--ivory);border-color:var(--gold)}

/* ---------- Brand: the Moonin logotype (owner assets, 2026-07-19) ---------- */
/* Two stacked SVGs crossfade with the live --dayness: ivory carries the
   night, black carries the paper daylight; the condensed nav's dark
   backdrop forces ivory. Inline text mentions run plain.                   */
.name-token{font-family:inherit}
.wordmark{display:inline-grid;text-decoration:none;line-height:1}
.wordmark .lg{grid-area:1/1;height:17px;width:auto;display:block}
.wordmark .lg-black{opacity:var(--dayness,0)}
.wordmark .lg-ivory{opacity:calc(1 - var(--dayness,0))}
.nav.is-condensed .lg-black{opacity:0}
.nav.is-condensed .lg-ivory{opacity:1}
.footer .wordmark .lg{height:22px;opacity:1}

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

/* (the old fixed 132px top vignette is gone — it shadowed every daylight
   section; the nav's own ::before scrim carries hero legibility now) */

/* ---------- Buttons & focus ---------- */
.btn{
  display:inline-block;font:500 .95rem/1 var(--body);color:var(--ivory);
  padding:.95em 1.7em;border:1px solid var(--gold);background:transparent;
  border-radius:999px;   /* the logotype's soft geometry — every door is a pill */
  text-decoration:none;position:relative;cursor:pointer;
  transition:transform .3s var(--ease),background .35s var(--ease),color .35s var(--ease);
}
.btn:hover{background:rgba(197,169,104,.14)}
.btn:active{transform:translateY(1px)}
:where(a,button,input,select,summary):focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:1px}

/* ---------- Skip link ---------- */
.skip-link{position:fixed;top:-60px;left:12px;z-index:100;background:var(--ink-2);color:var(--ivory);
  padding:.6em 1em;border:1px solid var(--gold);text-decoration:none;transition:top .2s var(--ease)}
.skip-link:focus{top:12px}
#main:focus{outline:none}   /* programmatic focus target for the skip-link */

/* ---------- Nav ---------- */
.nav{position:fixed;top:0;left:0;right:0;z-index:50;display:flex;align-items:center;justify-content:space-between;
  padding:clamp(18px,2.4vw,30px) var(--pad-x);
  transition:padding .45s var(--ease),background .45s var(--ease),
    transform .6s cubic-bezier(.22,.85,.25,1),opacity .45s var(--ease);}
/* over the bright dawn film, the header needs its own dusk: a soft scrim that
   retires once the condensed backdrop takes over */
.nav::before{content:"";position:absolute;inset:-1px 0 -22px 0;z-index:-1;pointer-events:none;
  background:linear-gradient(180deg,rgba(14,11,8,.6),rgba(14,11,8,.26) 55%,rgba(14,11,8,0));
  transition:opacity .45s var(--ease)}
.nav.is-condensed::before{opacity:0}
.nav-links a:not(.btn){text-shadow:0 1px 10px rgba(14,11,8,.55)}
.nav .lg{filter:drop-shadow(0 1px 8px rgba(14,11,8,.5))}
.nav .wordmark{font-size:.95rem}
.nav-links{display:flex;align-items:center;gap:clamp(16px,2.4vw,34px)}
.nav-links a{font-family:var(--mono);font-size:.76rem;letter-spacing:.14em;text-transform:uppercase;color:var(--ivory-dim);text-decoration:none;transition:color .3s var(--ease)}
.nav-links a:hover{color:var(--ivory)}
.nav-links a.is-live{color:var(--gold)}   /* scroll-spy: the hour you're reading */
.nav-links .btn{padding:.6em 1.1em;font-size:.74rem;letter-spacing:.06em}
.nav.is-condensed{padding-top:12px;padding-bottom:12px;background:rgba(14,11,8,.72);backdrop-filter:saturate(1.1) blur(8px);border-bottom:1px solid var(--line)}
.nav.is-hidden{transform:translateY(-112%);opacity:0}
@media (max-width:640px){ .nav-links a:not(.btn){display:none} }

/* ---------- Footer ---------- */
/* position+z: the fixed .wash paints above IN-FLOW content — the footer sits
   outside main and needs the same lift (only the opacity'd lines escaped) */
.footer{border-top:1px solid var(--line);padding:clamp(48px,8vh,90px) var(--pad-x);max-width:var(--maxw);margin-inline:auto;position:relative;z-index:1}
.footer .wordmark{font-size:1rem}
.footer-top{display:grid;gap:clamp(28px,4vw,64px);margin-bottom:2.6em}
@media (min-width:820px){ .footer-top{grid-template-columns:1.2fr 2fr;align-items:start} .footer-cols{justify-self:end} }
.footer-tag{font-family:var(--serif);font-size:clamp(1.1rem,2vw,1.5rem);color:var(--ivory);margin:.8em 0 1em;max-width:24ch}
.footer-hours{font-family:var(--mono);font-size:.7rem;letter-spacing:.14em;color:var(--gold);opacity:.85;margin:0}
/* the lore, dictionary-style (the fleetmule reference): the origin word alone
   in italic, highlighted like a marker pass; the definition plain and short */
.footer-lore{display:flex;gap:14px;align-items:flex-start;margin-top:1.8em;max-width:44ch}
.lore-raven{width:32px;height:auto;flex:none;opacity:.92;margin-top:.15em}
.lore-word{margin:0 0 .45em;max-width:none}
.lore-word em{font-family:var(--serif);font-style:italic;font-size:1.25rem;line-height:1;
  color:#171310;background:rgba(197,169,104,.9);padding:.08em .35em .12em;border-radius:4px}
.lore-def{font-family:var(--body);font-style:normal;font-size:.9rem;line-height:1.6;color:var(--ivory-dim);margin:0;max-width:40ch}
/* the name signs the page off: the logotype, giant and ghosted, rising out of
   the last scroll (the reference the owner loves) — masked to fade upward,
   cropped by the page's edge */
.footer-giant{margin:3.6em calc(-1 * var(--pad-x)) calc(-1 * clamp(48px,8vh,90px));overflow:hidden}
.footer-giant img{display:block;width:100%;height:auto;opacity:.07;transform:translateY(14%);
  -webkit-mask-image:linear-gradient(180deg,transparent 2%,#000 60%);
  mask-image:linear-gradient(180deg,transparent 2%,#000 60%)}
/* the still-deciding phone: the 3D model with the lock screen on its glass */
.fs-phone{display:block;width:150px;margin:0 auto 1.3em;filter:drop-shadow(0 20px 34px rgba(0,0,0,.42))}
.footer-cols{display:grid;grid-template-columns:repeat(3,minmax(130px,1fr));gap:clamp(20px,3vw,56px)}
@media (max-width:640px){ .footer-cols{grid-template-columns:repeat(2,1fr);row-gap:2em} }
.fcol{display:flex;flex-direction:column;gap:.6em;align-items:flex-start}
.fcol-h{font-family:var(--mono);font-size:.66rem;letter-spacing:.2em;text-transform:uppercase;color:var(--gold);margin:0 0 .4em}
.fcol a{font-family:var(--body);font-size:.95rem;color:var(--ivory-dim);text-decoration:none;transition:color .3s var(--ease)}
.fcol a:hover{color:var(--ivory)}
.footer-copy{font-family:var(--mono);font-size:.72rem;letter-spacing:.1em;color:var(--ivory-dim);opacity:.7;border-top:1px solid var(--line);padding-top:1.8em}

/* ============================================================
   Visual devices (PRD §4 "show, don't tell"): hairline icons,
   the morning brief, the approval run, the discretion guards.
   ============================================================ */
.ico{width:22px;height:22px;flex:none;color:var(--gold);vertical-align:middle}
.lead-line{font-family:var(--serif);font-size:clamp(1.2rem,2.1vw,1.6rem);line-height:1.3;color:var(--ivory)!important;max-width:26ch;margin:0 0 2.4em}

/* S1 — phone approval-card (paper, not app chrome) */
.approval-card{max-width:440px;margin:0 0 2.4em;background:var(--ink-2);border:1px solid var(--line);padding:22px 24px}
.ac-meta{font-family:var(--mono);font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;color:var(--gold);margin:0 0 .9em}
.ac-body{font-family:var(--serif);font-size:1.1rem;line-height:1.35;color:var(--ivory)!important;margin:0 0 1.3em}
.ac-actions{display:flex;gap:10px;flex-wrap:wrap}
.ac-actions .ac-yes .ico{width:15px;height:15px}

/* channels row */
.channels .ico{width:19px;height:19px;margin-right:.35em}

/* S1 — the morning brief (a paper object; rows assemble on first view) */
.brief{max-width:560px;margin:0 0 2.6em;background:var(--ink-2);border:1px solid var(--line);padding:26px 28px}
.brief-head{font-family:var(--mono);font-size:.7rem;letter-spacing:.16em;text-transform:uppercase;color:var(--gold);margin:0 0 1.2em}
.brief-row{display:grid;grid-template-columns:minmax(112px,auto) 1fr;gap:14px;padding:.65em 0;border-top:1px solid var(--line)}
.brief-row dt{font-family:var(--mono);font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;color:var(--ivory-dim);padding-top:.25em;position:relative}
.brief-row dd{margin:0;font-family:var(--serif);font-size:1.05rem;line-height:1.4;color:var(--ivory)}
.brief-row.flag dt::before{content:"";position:absolute;left:-14px;top:.62em;width:5px;height:5px;border-radius:50%;background:var(--gold)}
.brief-foot{font-family:var(--mono);font-size:.72rem;letter-spacing:.1em;color:var(--ivory-dim)!important;margin:1.1em 0 0}
.brief-rows{margin:0}
.brief.will-assemble .brief-row,.brief.will-assemble .brief-foot{opacity:0;transform:translateY(10px);
  transition:opacity .7s var(--ease),transform .7s var(--ease)}
.brief.will-assemble.assembled .brief-row,.brief.will-assemble.assembled .brief-foot{opacity:1;transform:none}

/* S1 — the approval run (stage stacks cards: height constant, no page jump) */
.run{max-width:560px;margin:0 0 2.4em}
.run-receipts{list-style:none;margin:0 0 .6em;padding:0}
.run-receipts li{font-family:var(--mono);font-size:.74rem;letter-spacing:.06em;color:var(--ivory-dim);
  border-top:1px solid var(--line);padding:.55em 0;opacity:0;transform:translateY(6px);
  transition:opacity .45s var(--ease),transform .45s var(--ease)}
.run-receipts li.in{opacity:1;transform:none}
.run-receipts li em{font-style:normal;color:var(--gold)}
.run-stage{display:grid}
.run.live .run-card{grid-area:1/1;margin:0;opacity:0;transform:translateY(10px);visibility:hidden;pointer-events:none;
  transition:opacity .4s var(--ease),transform .4s var(--ease),visibility 0s .4s}
.run.live .run-card.current{opacity:1;transform:none;visibility:visible;pointer-events:auto;transition-delay:.05s,.05s,0s}
.run:not(.live) .run-card{display:none}
.run:not(.live) .run-card:first-child{display:block}   /* no-JS: today's static card */
.run.done .run-stage{grid-template-rows:0fr;overflow:hidden;transition:grid-template-rows .5s var(--ease)}
.ac-actions button{font:500 .82rem/1 var(--body);padding:.6em 1.1em;border:1px solid var(--line);background:transparent;border-radius:999px;
  color:var(--ivory-dim);display:inline-flex;align-items:center;gap:.45em;cursor:pointer;
  transition:border-color .3s var(--ease),color .3s var(--ease),background .3s var(--ease)}
.ac-actions button:hover{color:var(--ivory);border-color:var(--gold)}
.ac-actions button.ac-yes{border-color:var(--gold);color:var(--ivory)}
.ac-actions button.ac-yes:hover{background:rgba(197,169,104,.14)}
.run-close{font-family:var(--serif);font-size:clamp(1.2rem,2vw,1.55rem);color:var(--ivory)!important;margin:.9em 0 0}

/* the run announces itself: hint + Approve breathe, both retire at the first receipt */
/* color !important: .section p (0,1,1) outguns this bare class — .kicker/.lead-line carry the same defense */
.run-hint{font-family:var(--mono);font-size:.72rem;letter-spacing:.1em;color:var(--gold)!important;margin:0 0 .9em;transition:opacity .45s var(--ease)}
.run:not(.live) .run-hint{display:none}              /* no-JS / pre-boot: nothing is clickable, nothing invites */
.run.live:has(.run-receipts li) .run-hint{opacity:0} /* first decision made — the invitation has done its job */
.run.done .run-hint{display:none}
@keyframes ac-breathe{0%,100%{box-shadow:0 0 0 0 rgba(197,169,104,0)}50%{box-shadow:0 0 0 6px rgba(197,169,104,.10)}}
.run.live:not(:has(.run-receipts li)) .run-card.current .ac-yes{animation:ac-breathe 3.6s ease-in-out infinite}

/* S1 — the pocket: an abstract device around the conversation (spec: s1-pocket) */
.phone{position:relative;max-width:390px;border:1px solid var(--line);border-radius:34px;background:var(--ink-2);padding:44px 16px 22px}
.phone::before{content:"";position:absolute;top:20px;left:50%;transform:translateX(-50%);width:36px;height:3px;border-radius:2px;background:var(--gold);opacity:.35}
/* color !important + max-width:none: .section p (0,1,1) paints bare-class p's ivory-dim and caps them at 52ch */
.phone-head{font-family:var(--mono);font-size:.62rem;letter-spacing:.16em;text-transform:uppercase;color:var(--gold)!important;max-width:none;text-align:center;margin:0 0 1.1em;padding-bottom:.9em;border-bottom:1px solid var(--line)}
.phone .run-receipts{margin:0}
.phone .run-receipts li{border-top:0;text-align:center;font-size:.64rem;letter-spacing:.04em;padding:.5em 0}
.phone .run-card{position:relative;background:var(--ink);border-radius:12px 12px 12px 4px;padding:18px;max-width:94%}
.phone .ac-body{font-size:1.02rem;margin:0 0 1.1em}
.phone .ac-meta{margin:0 0 .7em;font-size:.62rem;letter-spacing:.1em}   /* fits unwrapped in the 375px bubble */
/* done: let the emptied stage truly close — 0fr can't shrink past the hidden card's
   min-content (min-height:auto) nor its padding/border box, so zero all three.
   Pre-existing residual, invisible until the phone frame put a wall around it. */
.run.done .run-card{min-height:0;padding:0;border:0}
/* typing beat: dots first, then the message rises — conversation, not a slideshow */
.run.live .run-card.current::before{content:"· · ·";position:absolute;top:16px;left:18px;font-family:var(--mono);font-size:.8rem;letter-spacing:.2em;color:var(--gold);opacity:0;animation:dots-beat .55s var(--ease)}
.run.live .run-card.current .ac-meta,.run.live .run-card.current .ac-body,.run.live .run-card.current .ac-actions{animation:msg-in .38s .42s var(--ease) backwards}
@keyframes dots-beat{0%{opacity:0}25%,80%{opacity:.9}100%{opacity:0}}
@keyframes msg-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){
  .brief.will-assemble .brief-row,.brief.will-assemble .brief-foot{opacity:1;transform:none;transition:none}
  .run-receipts li{opacity:1;transform:none;transition:none}
  .run-hint{transition:none}
  .ac-actions .ac-yes{animation:none}
  .run.live .run-card.current::before{animation:none;opacity:0}
  .run.live .run-card.current .ac-meta,.run.live .run-card.current .ac-body,.run.live .run-card.current .ac-actions{animation:none}
}

/* ============================================================
   One Day rethink (spec 2026-07-18): ask · brain · rules · days ·
   invite · word · final. Resting markup = fallback; JS arms.
   ============================================================ */
.brief.folded{display:none}
/* 03 · the dashboard */
.device-browser{max-width:960px;border:1px solid var(--line);background:var(--ink-2);border-radius:10px;overflow:hidden}
.db-bar{display:flex;align-items:center;gap:14px;padding:10px 14px;border-bottom:1px solid var(--line)}
.db-dots{display:inline-flex;gap:6px}
.db-dots i{width:9px;height:9px;border-radius:50%;background:var(--line)}
.db-url{font-family:var(--mono);font-size:.7rem;letter-spacing:.08em;color:var(--ivory-dim)}
.db-panes{display:grid;grid-template-columns:1.5fr .8fr 1.1fr;gap:0;align-items:stretch}
.pane{padding:16px 18px;border-left:1px solid var(--line);transition:opacity .3s var(--ease),transform .3s var(--ease)}
.pane:first-child{border-left:0}
.pane-h{font-family:var(--mono);font-size:.66rem;letter-spacing:.16em;text-transform:uppercase;color:var(--gold);margin:0 0 1em;font-weight:500}
.db-panes:has(.front) .pane:not(.front){opacity:.55}
.pane.front{transform:translateY(-2px)}
.pane .web-wrap,.pane .tape-wrap{margin:0;max-width:none}
.pane-memory .lbl{font-size:20px}
.pane .tape{height:176px}
.pane .web-toggle{margin-top:.8em}
.ent-list{list-style:none;margin:0;padding:0}
.ent-list li{display:flex;justify-content:space-between;gap:10px;padding:.7em 0;border-top:1px solid var(--line);font-size:.85rem;color:var(--ivory)}
.ent-list li:first-child{border-top:0}
.ent-list em{font-style:normal;font-family:var(--mono);font-size:.62rem;color:var(--ivory-dim);align-self:center}
.ent-more span{color:var(--ivory-dim)}
@media (max-width:820px){ .db-panes{grid-template-columns:1fr} .pane{border-left:0;border-top:1px solid var(--line)} .pane:first-child{border-top:0} }
/* 05 · fine print + the word, condensed */
.fine-security{list-style:none;margin:0 0 1.8em;padding:0}
.fine-security li{font-family:var(--mono);font-size:.78rem;letter-spacing:.05em;color:var(--ivory-dim);padding:.45em 0;border-top:1px solid var(--line)}
.fine-security li:first-child{border-top:0}
.pull{margin:0 0 2em;max-width:44ch}
.pull p{font-family:var(--serif);font-size:clamp(1.05rem,1.7vw,1.3rem);line-height:1.45;color:var(--ivory)!important;max-width:none;margin:0 0 .9em}
/* 02 · the ask */
.ask-thread{list-style:none;margin:0;padding:0}
.ask-thread li{opacity:0;transform:translateY(6px);transition:opacity .38s var(--ease),transform .38s var(--ease)}
.ask-thread li.in{opacity:1;transform:none}
.ask-q{font-family:var(--body);font-size:.92rem;color:var(--ivory);background:var(--ink);border:1px solid var(--line);
  border-radius:12px 12px 4px 12px;padding:12px 16px;margin:0 0 10px auto;max-width:86%;width:max-content}
.ask-a{background:var(--ink);border-radius:12px 12px 12px 4px;padding:14px 16px;margin:0 6% 14px 0;max-width:94%}
.ask-a p{font-family:var(--serif);font-size:1.02rem;line-height:1.4;color:var(--ivory)!important;max-width:none;margin:0 0 .7em}
.ask-src{display:inline-block;font-family:var(--mono);font-size:.6rem;letter-spacing:.12em;text-transform:uppercase;color:var(--gold)}
/* normal-origin visibility (NOT !important — important author declarations
   outrank animation-origin, which would freeze the beat at opacity 1) */
.ask-thread li.ask-dots{font-family:var(--mono);color:var(--gold);letter-spacing:.2em;padding:4px 2px;opacity:1;transform:none;
  animation:dots-beat .55s var(--ease)}   /* the typing beat (spec §4.1) — keyframes shared with the run's cards */
.ask-chips{margin-top:1em;padding-top:1em;border-top:1px solid var(--line)}
.ask-hint{font-family:var(--mono);font-size:.62rem;letter-spacing:.14em;text-transform:uppercase;color:var(--gold)!important;max-width:none;text-align:center;margin:0 0 .8em}
.ask-chip{display:block;width:100%;min-height:44px;margin:0 0 8px;font:400 .88rem/1.3 var(--body);color:var(--ivory-dim);
  background:transparent;border:1px solid var(--line);border-radius:16px;padding:.7em 1.1em;text-align:left;cursor:pointer;
  transition:border-color .12s var(--ease),color .12s var(--ease),opacity .3s var(--ease)}
.ask-chip:hover{border-color:rgba(197,169,104,.5);color:var(--ivory)}
.ask-chip.spent{opacity:.38;cursor:default}
.ints{font-family:var(--mono);font-size:.7rem;letter-spacing:.06em;color:var(--ivory-dim)!important;max-width:none;margin-bottom:1.6em}
.ints-l{display:block;font-size:.62rem;letter-spacing:.14em;text-transform:uppercase;color:var(--gold);margin-bottom:.9em}
.chips-i{display:flex;flex-wrap:wrap;gap:8px}
.chips-i span{border:1px solid var(--line);padding:.42em .7em;transition:border-color .12s var(--ease)}
.chips-i span:hover{border-color:rgba(197,169,104,.5)}
/* the memory web (lives in #system's Memory pane) */
.web{width:100%;height:auto;display:block}
.web .edge{stroke:rgba(197,169,104,.30);stroke-width:1;fill:none;transition:stroke .3s var(--ease),opacity .45s var(--ease)}
.web .edge.lit{stroke:var(--gold)}
.web .node{fill:var(--gold)}
.web .sat{fill:var(--gold);opacity:.55;transition:opacity .45s var(--ease)}
.web .lbl{font-family:var(--mono);font-size:15px;letter-spacing:.06em;fill:var(--ivory-dim)}
.web .lbl-a{fill:var(--ivory)}
.web .lbl-s{opacity:.55;transition:opacity .3s var(--ease),fill .3s var(--ease)}
.web .lbl-s.lit{opacity:1;fill:var(--ivory)}
.web.week-one .edge[data-phase="3"]{opacity:0}
.web.week-one .sat{opacity:.25}
.web.week-one .lbl-s{opacity:.25}
.web-toggle{display:inline-flex;border:1px solid var(--line);margin-top:1em}
.web-toggle[hidden]{display:none}   /* author display beats UA [hidden] — restate it (no-JS ships hidden) */
.web-toggle button{font:500 .68rem/1 var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--ivory-dim);
  background:transparent;border:0;padding:.9em 1.2em;min-height:44px;cursor:pointer;transition:color .12s var(--ease),background .12s var(--ease)}
.web-toggle button[aria-pressed="true"]{color:var(--ink);background:var(--gold)}
.web-toggle button:not([aria-pressed="true"]):hover{color:var(--ivory)}
@media (max-width:560px){ .web .lbl{font-size:26px} .web .lbl-s{display:none} }
/* the audit tape (lives in #system's Log pane) */
.tape{height:176px;overflow:hidden;border:1px solid var(--line);background:var(--ink-2);padding:14px 18px;
  -webkit-mask-image:linear-gradient(180deg,transparent,#000 12%,#000 88%,transparent);
  mask-image:linear-gradient(180deg,transparent,#000 12%,#000 88%,transparent)}
.tape-list{list-style:none;margin:0;padding:0;will-change:transform}
.tape-list li{font-family:var(--mono);font-size:.68rem;letter-spacing:.04em;color:var(--ivory-dim);
  padding:.5em 0;border-top:1px solid var(--line-soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tape-list li:first-child{border-top:0}
.tape-list em{font-style:normal;color:var(--gold)}
.tape-cap{font-family:var(--mono);font-size:.62rem;letter-spacing:.12em;text-transform:uppercase;color:var(--gold)!important;max-width:none;margin:.9em 0 0}
/* 05 · the beginning */
.days-row{position:relative;margin:2.6em 0 2.2em}
.days-rail{position:absolute;left:0;right:0;top:13px;height:1px;background:var(--line)}
.days-rail::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,var(--gold),rgba(197,169,104,.4));
  transform-origin:left;transform:scaleX(var(--p,1))}
.days-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(7,1fr);gap:clamp(10px,1.6vw,22px);position:relative}
.day{position:relative;padding-top:2em;opacity:.45;transition:opacity .45s var(--ease)}
.day.lit{opacity:1}
.day::before{content:"";position:absolute;top:10px;left:0;width:7px;height:7px;border-radius:50%;background:var(--ink);
  border:1px solid var(--gold);transition:background .3s var(--ease),box-shadow .3s var(--ease),border-color .3s var(--ease)}
.day.lit::before{background:var(--gold);box-shadow:0 0 10px rgba(197,169,104,.45)}
.day .day-n{font-family:var(--mono);font-size:.6rem;letter-spacing:.14em;text-transform:uppercase;color:var(--gold)}
.day h3{font-family:var(--body);font-weight:600;font-size:.9rem;margin:.5em 0 .3em;color:var(--ivory)}
.day p{font-size:.78rem;color:var(--ivory-dim)!important;margin:0;max-width:none}
.day-7.lit .day-n,.day-7.lit h3{color:var(--rose)}
.day-7.lit::before{background:var(--rose);border-color:var(--rose);box-shadow:0 0 10px rgba(192,138,122,.5)}
@media (hover:hover){   /* hover warmth (spec §4.4/§5): the day's node warms under the cursor */
  .day:hover{opacity:1}
  /* :not(.day-7): the seventh day is the second dawn — its rose never turns gold */
  .day:not(.day-7):hover::before{border-color:var(--gold);box-shadow:0 0 10px rgba(197,169,104,.45)}
}
@media (max-width:720px){
  .days-rail{left:3px;right:auto;top:0;bottom:0;width:1px;height:auto}
  .days-rail::after{transform-origin:top;transform:scaleY(var(--p,1))}
  .days-list{grid-template-columns:1fr;gap:18px}
  .day{padding:0 0 0 24px}
  .day::before{top:2px}
}
/* 06 · the invite */
.invite{max-width:460px;margin:1.8em 0 1.6em;background:var(--ink-2);border:1px solid rgba(197,169,104,.55);
  padding:clamp(26px,4vw,40px);position:relative;overflow:hidden;transform-style:preserve-3d;transition:transform .5s var(--ease)}
.invite::after{content:"";position:absolute;inset:-40% -60%;pointer-events:none;opacity:0;
  background:linear-gradient(115deg,transparent 42%,rgba(245,240,230,.07) 50%,transparent 58%);
  transform:translateX(var(--shx,0%));transition:opacity .4s var(--ease)}
.invite:hover::after{opacity:1}
.invite-mark{display:inline-flex;align-items:center;gap:.5em;font-family:var(--serif);color:var(--ivory);margin:0 0 1.6em}
.invite-mark::before{content:"[";color:var(--gold)}
.invite-mark::after{content:"]";color:var(--gold)}
.invite-mark .rule{width:2.4em;height:1px;background:var(--gold);opacity:.85}
.invite-coh{font-family:var(--mono);font-size:.7rem;letter-spacing:.16em;text-transform:uppercase;color:var(--gold)!important;max-width:none;margin:0 0 1.6em}
.invite-terms{margin:0 0 1.5em}
.invite-terms>div{display:grid;grid-template-columns:minmax(96px,auto) 1fr;gap:12px;padding:.55em 0;border-top:1px solid var(--line)}
.invite-terms dt{font-family:var(--mono);font-size:.68rem;letter-spacing:.12em;text-transform:uppercase;color:var(--ivory-dim);padding-top:.3em}
.invite-terms dd{margin:0;font-family:var(--serif);font-size:1.05rem;color:var(--ivory)}
.invite-fine{font-family:var(--mono);font-size:.7rem;letter-spacing:.08em;color:var(--ivory-dim)!important;max-width:none;margin:0}
.invite .fine-security{margin:0 0 1.4em}   /* the terms card carries security too — one object, not three */
/* the signature rule (used by the terms' pull-quote) */
.note-sig{display:flex;align-items:center;gap:.7em;font-family:var(--mono);font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;color:var(--gold);margin-top:1.6em}
.note-sig .rule{width:2.4em;height:1px;background:var(--gold)}

/* ---------- membership: the terms on the left, the members on the right ---------- */
.mem-grid{display:grid;gap:clamp(28px,4vw,64px);align-items:start}
@media (min-width:1040px){ .mem-grid{grid-template-columns:1.02fr .98fr} }
.notes-label{font-family:var(--mono);font-size:.7rem;letter-spacing:.22em;text-transform:uppercase;color:var(--gold)!important;max-width:none;margin:0 0 1.2em}
.note-card{background:rgba(14,11,8,.22);border:1px solid var(--line);border-radius:16px;padding:1.5em 1.6em 1.3em;max-width:none;margin:0 0 1.4em}
.note-card p{font-size:clamp(1rem,1.5vw,1.18rem)}
.note-card .note-sig{margin-top:1.2em;font-size:.68rem;text-transform:none;letter-spacing:.08em}
.mem-right .cameo-phone{margin-top:2em}

/* ---------- faq: the answers left, the door right ---------- */
.faq-grid{display:grid;gap:clamp(28px,4vw,56px);align-items:start}
@media (min-width:1040px){ .faq-grid{grid-template-columns:1fr 300px} .faq-side{position:sticky;top:96px;margin-top:2.4em} }
.faq-side{border:1px solid var(--line);border-radius:16px;padding:1.6em;background:rgba(255,255,255,.02)}
.faq-side-h{font-family:var(--serif);font-size:1.35rem;color:var(--ivory)!important;margin:0 0 .5em}
.faq-side-line{font-size:.98rem;margin:0 0 1.4em}

/* ---------- modal: direct scheduling (Google Calendar appointment embed) ---------- */
.sched{margin:0 0 .6em}
.sched-frame{display:block;width:100%;height:min(68vh,620px);border:0;border-radius:12px;background:#FFFDF6}
/* with a booking link live, the panel widens for Google's slot picker —
   the visitor sees real availability and chooses the time that fits */
.modal.sched-live .modal-panel{width:min(860px,94vw)}
.sched-alt{font-size:.92rem;color:var(--ivory-dim);margin:.9em 0 0}
.linklike{background:none;border:0;padding:0;font:inherit;color:var(--gold);text-decoration:underline;cursor:pointer}
.web-toggle button{border-radius:999px}   /* the pill geometry reaches every control */

/* ---------- 12:00 · the memory answers by company (replaces the dashboard) ---------- */
.mem{max-width:940px}
.mem-pills{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 1.8em}
.mem-pill{font:500 .9rem/1 var(--body);color:var(--ivory-dim);background:transparent;
  border:1px solid var(--line);border-radius:999px;padding:.85em 1.5em;min-height:44px;cursor:pointer;
  transition:color .25s var(--ease),border-color .25s var(--ease),background .25s var(--ease)}
.mem-pill:hover{color:var(--ivory);border-color:var(--gold)}
.mem-pill.on{color:var(--ink);background:var(--gold);border-color:var(--gold)}
.mem-panel{display:none}
.mem-panel.on{display:grid;gap:clamp(18px,2.6vw,36px)}
@media (min-width:820px){ .mem-panel.on{grid-template-columns:1fr 1.15fr;align-items:start} }
.mem-holds,.mem-log{background:var(--ink-2);border:1px solid var(--line);border-radius:16px;padding:1.5em 1.6em}
.mem-h{font-family:var(--mono);font-size:.68rem;letter-spacing:.2em;text-transform:uppercase;color:var(--gold)!important;max-width:none;margin:0 0 1em}
.mem-holds ul,.mem-log ol{list-style:none;margin:0;padding:0}
.mem-holds li{display:grid;grid-template-columns:58px 1fr;gap:14px;align-items:baseline;
  padding:.65em 0;border-top:1px solid var(--line);transition:opacity .4s var(--ease),transform .4s var(--ease)}
.mem-holds li:first-child{border-top:0}
.mem-holds .n{font-family:var(--serif);font-style:normal;font-size:1.9rem;line-height:1;color:var(--gold);text-align:right}
.mem-holds li>span{font-size:.98rem;color:var(--ivory-dim);line-height:1.5}
.mem-log li{font-family:var(--mono);font-size:.78rem;letter-spacing:.04em;color:var(--ivory-dim);
  padding:.8em 0;border-top:1px solid var(--line);display:flex;gap:1.1em;line-height:1.5;
  transition:opacity .4s var(--ease),transform .4s var(--ease)}
.mem-log li:first-child{border-top:0}
.mem-log time{color:var(--gold);flex:none}
.mem .is-yours>span,.mem .is-yours time,.mem .is-yours .n{color:var(--gold)}
.mem-cap{font-family:var(--mono);font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--ivory-dim)!important;max-width:none;margin:1.6em 0 0}

/* ---------- 12:00 · the hub: everything flows through one memory ---------- */
.hub{display:grid;grid-template-columns:minmax(200px,.9fr) 90px auto 90px minmax(240px,1.1fr);
  gap:0;align-items:stretch;max-width:1080px}
.hub-col{display:flex;flex-direction:column;justify-content:space-between;gap:14px;padding:6px 0}
.hub-group{border:1px solid var(--line);border-radius:12px;padding:.8em 1em;background:var(--ink-2);
  transition:border-color .25s var(--ease)}
.hub-group.lit{border-color:var(--gold)}
.hub-l{font-family:var(--mono);font-size:.62rem;letter-spacing:.16em;text-transform:uppercase;color:var(--ivory-dim)!important;max-width:none;margin:0 0 .5em}
.hub-chips{display:flex;flex-wrap:wrap;gap:6px}
.hub-chips span{font:500 .78rem/1 var(--body);color:var(--ivory);border:1px solid var(--line);border-radius:999px;padding:.42em .8em}
.hub-lines{width:100%;height:100%;display:block;overflow:visible}
.hline{fill:none;stroke:var(--gold);stroke-width:1.1;opacity:.4;vector-effect:non-scaling-stroke;transition:opacity .25s var(--ease)}
.hline.lit{opacity:1;stroke-width:1.6}
.hub-core{align-self:center;text-align:center;padding:0 6px}
.core-ring{display:inline-flex;align-items:center;justify-content:center;width:92px;height:92px;border-radius:50%;
  border:1px solid var(--gold);background:var(--ink-2);box-shadow:0 0 0 8px rgba(197,169,104,.07)}
.core-ring img{width:44px;height:auto;filter:brightness(.35) sepia(.4)}
.reg-day .core-ring img{filter:brightness(.35) sepia(.4)}
.core-l{font-family:var(--serif);font-size:1.15rem;color:var(--ivory)!important;max-width:none;margin:.7em 0 .2em}
.core-s{font-family:var(--mono);font-size:.6rem;letter-spacing:.14em;text-transform:uppercase;color:var(--ivory-dim)!important;max-width:none;margin:0;line-height:1.7}
.hub-card{display:flex;gap:12px;align-items:flex-start;border:1px solid var(--line);border-radius:12px;
  padding:.85em 1em;background:var(--ink-2);transition:border-color .25s var(--ease),opacity .5s var(--ease),transform .5s var(--ease)}
.hub-card.lit{border-color:var(--gold)}
.hc-dot{flex:none;width:9px;height:9px;border-radius:50%;margin-top:.45em;background:var(--gold)}
.hc-dot.wait{background:transparent;border:1.5px solid var(--gold);animation:gn-breathe 2.2s var(--ease) infinite}
.hc-dot.next{background:transparent;border:1px solid var(--line)}
.hc-t{font:500 .95rem/1.3 var(--body);color:var(--ivory)!important;max-width:none;margin:0}
.hc-s{font-family:var(--mono);font-size:.66rem;letter-spacing:.1em;color:var(--ivory-dim)!important;max-width:none;margin:.25em 0 0}
.hub-card.is-yours .hc-s{color:var(--gold)!important}
@media (max-width:819px){
  .hub{grid-template-columns:1fr;gap:16px}
  .hub-lines{display:none}
  .hub-core{padding:10px 0}
  .hub-col{gap:10px}
}

/* ---------- 17:00 · the week of moons ---------- */
.week{max-width:820px}
.week-track{position:relative;display:flex;justify-content:space-between;align-items:flex-start;margin:0 0 2em}
.week-line{position:absolute;left:12px;right:12px;top:14px;height:1px;background:var(--line)}
.moon-step{position:relative;background:none;border:0;padding:0 4px;cursor:pointer;display:flex;flex-direction:column;
  align-items:center;gap:.7em;min-width:44px;min-height:44px}
.moon{display:block;width:28px;height:28px;border-radius:50%;border:1px solid var(--gold);overflow:hidden;
  position:relative;background:var(--ink-2);transition:box-shadow .3s var(--ease)}
.moon::after{content:"";position:absolute;inset:0;border-radius:50%;background:var(--gold);opacity:.9;
  transform:translateX(var(--ph,0%))}
.moon-step.on .moon{box-shadow:0 0 0 5px rgba(197,169,104,.15)}
.moon-step.day-7 .moon{border-color:var(--rose)}
.moon-step.day-7 .moon::after{background:var(--rose)}
.ms-l{font-family:var(--mono);font-size:.62rem;letter-spacing:.12em;text-transform:uppercase;color:var(--ivory-dim);transition:color .25s var(--ease)}
.moon-step.on .ms-l{color:var(--gold)}
.week-card{position:relative;border:1px solid var(--line);border-radius:16px;background:var(--ink-2);
  padding:1.6em 1.8em 1.8em;overflow:hidden;min-height:9.5em}
.wc-day{font-family:var(--mono);font-size:.64rem;letter-spacing:.2em;text-transform:uppercase;color:var(--gold)!important;max-width:none;margin:0 0 .6em}
.wc-t{font-family:var(--serif);font-weight:500;font-size:1.5rem;color:var(--ivory);margin:0 0 .35em}
.wc-s{font-size:1rem;color:var(--ivory-dim)!important;max-width:none;margin:0;min-height:1.5em;
  transition:opacity .35s var(--ease)}
.wc-t,.wc-day{transition:opacity .35s var(--ease)}
.wc-progress{position:absolute;left:0;bottom:0;height:2px;width:100%;background:var(--gold);opacity:.55;
  transform-origin:0 50%;transform:scaleX(0)}
.week.autoplay .wc-progress{animation:wc-fill 2.8s linear infinite}
@keyframes wc-fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media (prefers-reduced-motion:reduce){ .week.autoplay .wc-progress{animation:none} }
@media (max-width:640px){ .ms-l{display:none} .moon{width:22px;height:22px} .week-line{top:11px} }

/* ---------- 18:30 · the terms: the deal on the left, the proof on the right ---------- */
.terms-grid{display:grid;gap:clamp(28px,4vw,72px);align-items:start;max-width:1080px}
@media (min-width:1040px){ .terms-grid{grid-template-columns:1fr 1.05fr} }
.term-rows{margin:0}
.term-rows>div{display:grid;grid-template-columns:minmax(110px,auto) 1fr;gap:16px;padding:.95em 0;border-top:1px solid var(--line)}
.term-rows>div:first-child{border-top:0}
.term-rows dt{font-family:var(--mono);font-size:.68rem;letter-spacing:.16em;text-transform:uppercase;color:var(--gold);padding-top:.35em}
.term-rows dd{margin:0;font-family:var(--serif);font-size:1.08rem;line-height:1.5;color:var(--ivory)}
/* the voices stand apart: a gold spine, room to breathe, unmistakably quotes */
.terms-voices .qcard{margin:0 0 1.3em;border:1px solid var(--line);border-left:2px solid var(--gold);
  border-radius:0 16px 16px 0;background:rgba(14,11,8,.26);padding:1.5em 1.7em;max-width:none}
.qcard p{font-family:var(--serif);font-size:clamp(1.05rem,1.5vw,1.2rem);line-height:1.55;color:var(--ivory)!important;max-width:none;margin:0 0 1.1em}
.qcard p::before{content:"\201C";color:var(--gold);margin-right:.08em}
.qcard mark{background:rgba(197,169,104,.3);color:var(--ivory);padding:.05em .18em;border-radius:4px}
.qcard footer{display:flex;align-items:center;gap:.8em;font-family:var(--mono);font-size:.68rem;letter-spacing:.1em;color:var(--gold)}
.q-ava{flex:none;display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;
  border:1px solid var(--gold);color:var(--gold);font:500 .8rem/1 var(--serif)}
/* the FAQ sits content-tall — the owner asked its screen back */
#faq.section{min-height:0;padding-block:clamp(72px,10vh,120px)}
/* final */
.final-sub{font-family:var(--serif);font-size:clamp(1.15rem,2vw,1.5rem);color:var(--ivory)!important;max-width:none;margin:-.4em 0 1.6em}
/* eyebrow hour arrives a beat late (ambient; reduced-motion killed globally) */
.eyebrow .t{display:inline-block}
.eyebrow.reveal .t{opacity:0;transform:translateY(.5em);transition:opacity .24s var(--ease) .12s,transform .24s var(--ease) .12s}
.eyebrow.reveal.in .t{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  .ask-thread li{opacity:1;transform:none;transition:none}
  .day,.day::before,.web .edge,.web .sat,.web .lbl-s{transition:none}
}

/* the device family: skin = the section's register tokens, automatically */
.device-card{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;width:100%;min-height:44px;
  background:var(--ink);border:1px solid var(--line);border-radius:14px;padding:12px 14px;cursor:pointer;
  font:400 .85rem/1.35 var(--body);color:var(--ivory);text-align:left;margin:0 0 1em;
  transition:border-color .12s var(--ease),opacity .3s var(--ease)}
.device-card:hover{border-color:rgba(197,169,104,.5)}
.device-card.read{opacity:.55;cursor:default}
.dc-glyph{font-family:var(--serif);color:var(--gold)}
.dc-body strong{font-weight:600}
.dc-time{font-family:var(--mono);font-size:.62rem;color:var(--ivory-dim)}
.thread-divider{font-family:var(--mono);font-size:.6rem;letter-spacing:.14em;text-transform:uppercase;color:var(--ivory-dim);text-align:center;max-width:none;margin:.2em 0 1em}
.msg-att{display:flex;align-items:center;gap:10px;min-height:44px;background:var(--ink);border:1px solid var(--line);
  border-radius:12px 12px 12px 4px;padding:12px 14px;color:var(--ivory);cursor:pointer;font:400 .85rem/1.35 var(--body);
  text-align:left;max-width:94%;margin:0 0 1em;transition:border-color .12s var(--ease)}
.msg-att:hover{border-color:rgba(197,169,104,.5)}
.att-title{font-weight:600}
.att-meta{font-family:var(--mono);font-size:.62rem;color:var(--ivory-dim)}
.msg-meta{display:block;font-family:var(--mono);font-size:.56rem;letter-spacing:.06em;color:var(--ivory-dim);margin-top:.5em;text-align:right}
.msg-meta em{font-style:normal;color:var(--gold)}
.composer{display:flex;align-items:center;gap:10px;margin-top:1em;padding:10px 14px;border:1px solid var(--line);
  border-radius:22px;color:var(--ivory-dim);font-family:var(--body);font-size:.85rem}
.composer .ico{width:16px;height:16px}
.scr-run .run-receipts{margin:0 0 .6em}
.ask-chips{border-top:0;padding-top:.4em;display:flex;flex-wrap:wrap;gap:8px}
.ask-hint{width:100%;text-align:left}
.ask-chip{display:inline-flex;width:auto;align-items:center;border-radius:999px;padding:.65em 1.1em;margin:0}

/* ============================================================
   The scroll-film (spec §2)
   DEFAULT = readable stacked still (no-JS / reduced-motion / Save-Data / decode fail).
   html.scrub = pinned canvas frame-scrub (JS opts in on capable devices).
   ============================================================ */
.film{position:relative}
.film-scrim{position:absolute;inset:0;z-index:0;pointer-events:none;
  background:
    linear-gradient(90deg,rgba(14,11,8,.88),rgba(14,11,8,.52) 40%,rgba(14,11,8,.16) 66%,rgba(14,11,8,0) 82%),
    linear-gradient(0deg,rgba(14,11,8,.72),rgba(14,11,8,0) 48%);}
#seq{width:100%;height:100%;background:var(--ink)}

.hero-core{position:relative;z-index:1;max-width:min(54ch,78vw)}
.hero-core h1{margin:.14em 0 .28em}
.hero-core .subline{color:var(--ivory);font-size:clamp(1.05rem,1.5vw,1.24rem);line-height:1.5;max-width:46ch;margin:0}
.hero-cta{display:flex;align-items:center;gap:clamp(16px,2vw,30px);flex-wrap:wrap;margin-top:1.9em}

.beats{position:relative;z-index:1}
.beat{font-family:var(--serif);font-weight:500;line-height:1.1;text-wrap:balance}
.beat-final{font-style:italic}
.scroll-hint{color:var(--gold);font-size:1.5rem}

/* --- DEFAULT: stacked still --- */
.film #seq{display:none}
.film-pin{position:relative;min-height:100svh;display:flex;flex-direction:column;justify-content:center;
  gap:1.8em;padding:clamp(104px,18vh,210px) var(--pad-x) clamp(72px,12vh,150px);
  background:var(--ink) center/cover no-repeat;}
.film .beats{display:flex;flex-direction:column;gap:.85em;margin-top:1.4em}
.film .beat{opacity:1;text-align:left;max-width:26ch;font-size:clamp(1.5rem,3.4vw,2.4rem)}
.film .beat-final{font-size:clamp(2.4rem,7vw,4.2rem);margin-top:.1em}
.film .scroll-hint{display:none}

/* --- html.scrub: pinned canvas scrub --- */
html.scrub .film{height:var(--runway)}
html.scrub .film-pin{position:sticky;top:0;height:100svh;min-height:0;overflow:hidden;display:block;padding:0;
  background:var(--ink);
  /* the film's last pixels dissolve into the wash beneath — ink during the
     scrub (invisible), the dawn ramp at the handoff: the cut becomes a sunrise */
  -webkit-mask-image:linear-gradient(180deg,#000 90%,transparent);
  mask-image:linear-gradient(180deg,#000 90%,transparent)}
html.scrub .film #seq{display:block;position:absolute;inset:0}
html.scrub #seq{background:var(--ink) url("assets/posters/poster-hero.jpg") center/cover no-repeat}
/* margin:auto centring is load-bearing, NOT stylistic: paintOverlay writes
   heroCore.style.transform every frame, so any translateX(-50%) would be
   stomped on the first scroll. Abspos inset:0 + margin:auto + a definite
   width/height centres both axes with no transform, at any viewport. */
html.scrub .hero-core{position:absolute;inset:0;margin:auto;width:min(780px,84vw);height:max-content;
  max-width:none;text-align:center;will-change:opacity}
html.scrub .hero-core h1{text-wrap:balance}
html.scrub .hero-core .subline{margin-inline:auto}
html.scrub .hero-cta{justify-content:center}
/* The scrim is left-weighted by design (.88 at the left edge → 0 at 82%), so
   centred text has no scrim over the fog and must carry its own protection. */
html.scrub .hero-core h1{text-shadow:0 2px 34px rgba(14,11,8,.78),0 1px 8px rgba(14,11,8,.5)}
html.scrub .hero-core .eyebrow{text-shadow:0 1px 14px rgba(14,11,8,.95),0 0 26px rgba(14,11,8,.8)}
html.scrub .hero-core .subline{text-shadow:0 1px 16px rgba(14,11,8,.9),0 0 30px rgba(14,11,8,.6)}
/* captions sit above centre — the dark wall between the model and the book,
   clear of the desk and everything on it */
/* pointer-events:none: this full-viewport caption layer sat OVER the hero and
   swallowed every real click on its buttons (programmatic .click() bypasses
   hit-testing — which is why it hid from the harness). Captions are text. */
html.scrub .beats{position:absolute;inset:0 0 16vh;display:grid;place-items:center;margin:0;pointer-events:none}
html.scrub .beat{position:absolute;opacity:0;text-align:center;max-width:min(24ch,88vw);
  font-size:clamp(1.7rem,4.6vw,3.6rem);will-change:opacity;margin:0}
html.scrub .beat-final{font-size:clamp(3rem,13vw,9rem)}
/* hero + captions are scroll-driven: JS sets opacity/transform from scroll position each frame
   (no CSS transition, so they track the scroll exactly as it scrubs the video) */
html.scrub .hero-core{will-change:opacity,transform}
html.scrub .beat{will-change:opacity,transform}
html.scrub .scroll-hint{display:block;position:absolute;left:50%;bottom:3.4vh;z-index:1;
  transform:translateX(-50%);transition:opacity .5s var(--ease)}

/* ============================================================
   Closing sections S1–S6 (spec §5)
   ============================================================ */
/* every hour gets the whole screen: a full-viewport stage, content centered
   in the room it deserves (owner directive; svh keeps mobile URL-bars honest) */
.section{max-width:var(--maxw);margin-inline:auto;padding:clamp(64px,10vh,140px) var(--pad-x);
  min-height:100vh;min-height:100svh;display:flex;flex-direction:column;justify-content:center}
.section h2{max-width:20ch;margin-bottom:.8em}
.section h3{font-family:var(--body);font-weight:600;font-size:1rem;letter-spacing:.01em;margin:0 0 .5em;color:var(--ivory)}
.section p{color:var(--ivory-dim);max-width:52ch;font-size:1.05rem;line-height:1.66}

.channels{border-top:1px solid var(--line);padding-top:1.6em;font-family:var(--mono);font-size:.82rem;letter-spacing:.06em;color:var(--ivory-dim)!important}

.closing-line{margin-top:2.4em;font-family:var(--serif);font-size:clamp(1.1rem,1.8vw,1.4rem);color:var(--ivory)!important;max-width:34ch}

/* S4 — membership */
.kicker{color:var(--gold)!important;font-size:1.08rem;max-width:40ch;margin-bottom:2.2em}
.btn-lg{padding:1.05em 1.9em;font-size:1rem}

/* S5 — accordion */
.acc{margin-top:2.4em;border-top:1px solid var(--line)}
.acc-item{border-bottom:1px solid var(--line)}
.acc-q{width:100%;background:none;border:0;color:var(--ivory);font:500 clamp(1.05rem,1.8vw,1.35rem)/1.3 var(--body);
  text-align:left;padding:clamp(15px,2.2vh,22px) 2.4em clamp(15px,2.2vh,22px) 0;position:relative;cursor:pointer;
  display:flex;justify-content:space-between;align-items:center;gap:1em}
.acc-ico{position:relative;flex:0 0 16px;width:16px;height:16px;transition:transform .3s var(--ease)}
.acc-ico::before,.acc-ico::after{content:"";position:absolute;background:var(--gold);inset:50% 0 auto 0;height:1.5px;margin-top:-.75px}
.acc-ico::after{transform:rotate(90deg)}
.acc-item.open .acc-ico{transform:rotate(45deg)}   /* + → × */
.acc-a{display:grid;grid-template-rows:0fr;transition:grid-template-rows .35s var(--ease)}
.acc-item.open .acc-a{grid-template-rows:1fr}
.acc-a-in{overflow:hidden}
.acc-a-in p{padding:0 2.4em 1.6em 0;margin:0;opacity:0;transition:opacity .2s .05s var(--ease)}
.acc-item.open .acc-a-in p{opacity:1;transition:opacity .3s .12s var(--ease)}

/* S6 — final, centered */
/* the night photograph IS the closing scene: full-bleed behind the words,
   a quiet scrim keeps the type honest (the register ::before at z:-2 stays
   the no-JS/stepped truth beneath it) */
.section.final{text-align:center;padding-block:clamp(110px,20vh,240px);position:relative;overflow:hidden;
  min-height:100vh;max-width:none;display:flex;align-items:center;justify-content:center}
.final-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 42%;z-index:-1;
  /* the photograph rises out of the FAQ's night instead of starting at a line,
     and loosens its grip just before the footer's hairline */
  -webkit-mask-image:linear-gradient(180deg,transparent,#000 18%,#000 88%,rgba(0,0,0,.55));
  mask-image:linear-gradient(180deg,transparent,#000 18%,#000 88%,rgba(0,0,0,.55))}
.section.final::after{content:"";position:absolute;inset:0;z-index:-1;
  background:radial-gradient(115% 85% at 50% 44%,rgba(14,11,8,.2),rgba(14,11,8,.72) 76%),
             linear-gradient(rgba(14,11,8,.42),rgba(14,11,8,.1) 42%,rgba(14,11,8,.5))}
.final-inner{position:relative;z-index:1;max-width:680px;padding-inline:var(--pad-x)}
.final-line{font-family:var(--mono);font-size:.72rem;letter-spacing:.22em;text-transform:uppercase;
  color:var(--gold)!important;max-width:none;margin:3em 0 0}
.section.final h2{max-width:none;margin-inline:auto;text-shadow:0 2px 24px rgba(14,11,8,.6)}
.section.final .eyebrow{color:var(--rose)}
.section.final .eyebrow .t{color:var(--rose)}   /* the base .eyebrow .t gold would out-cascade the section rose (spec §3: final eyebrow is rose, whole) */

/* Scroll reveals (transform/opacity only) */
.reveal{opacity:0;transform:translateY(18px);transition:opacity .9s var(--ease),transform .9s var(--ease)}
.reveal.in{opacity:1;transform:none}

/* ============================================================
   Request-access modal (§6)
   ============================================================ */
.modal{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:24px}
.modal[hidden]{display:none}
.modal-backdrop{position:absolute;inset:0;background:rgba(14,11,8,.6);opacity:0;transition:opacity .35s var(--ease)}
.modal-panel{position:relative;width:min(520px,100%);max-height:90svh;overflow:auto;
  background:var(--ink-2);border:1px solid var(--line);padding:clamp(28px,4vw,48px);
  opacity:0;transform:translateY(12px);transition:opacity .35s var(--ease),transform .35s var(--ease)}
.modal.open .modal-backdrop{opacity:1}
.modal.open .modal-panel{opacity:1;transform:none}
.modal-x{position:absolute;top:14px;right:16px;background:none;border:0;color:var(--ivory-dim);
  font-size:1.6rem;line-height:1;cursor:pointer;padding:.2em;transition:color .2s var(--ease)}
.modal-x:hover{color:var(--ivory)}
.modal h2{font-size:clamp(1.7rem,3vw,2.3rem);margin:.15em 0 .4em}
.modal-sub{color:var(--ivory-dim);font-size:.95rem;margin-bottom:2em;max-width:42ch}
.field{display:flex;flex-direction:column;margin-bottom:1.3em}
.field-l{font-family:var(--mono);font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;color:var(--ivory-dim);margin-bottom:.6em}
.field-l em{font-style:normal;opacity:.6;text-transform:none;letter-spacing:0}
.field input,.field select{background:transparent;border:0;border-bottom:1px solid var(--line);
  color:var(--ivory);font:400 1rem var(--body);padding:.6em 0;border-radius:0;transition:border-color .25s var(--ease)}
.field select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C5A968' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .2em center}
.field select option{background:var(--ink-2);color:var(--ivory)}
.field input:focus,.field select:focus{outline:none;border-bottom-color:var(--gold)}
.field input::placeholder{color:var(--ivory-dim)}
.field-err{color:var(--rose);font-size:.78rem;margin-top:.5em;min-height:1em}
.field.invalid input,.field.invalid select{border-bottom-color:var(--rose)}
.modal form .btn{margin-top:.6em;width:100%;text-align:center}
.form-success{text-align:center;padding:2em 0}
.form-success .eyebrow{color:var(--gold)}
.success-msg{font-family:var(--serif);font-size:clamp(1.15rem,2vw,1.5rem);color:var(--ivory)!important;max-width:32ch;margin-inline:auto}
.success-alt{margin-top:1.4em;font-size:.85rem;color:var(--ivory-dim)!important}
.success-alt a{color:var(--gold);text-decoration:none;border-bottom:1px solid var(--line)}
.success-alt a:hover{border-color:var(--gold)}
body.modal-open{overflow:hidden}

/* ============================================================
   Mobile optimization (≤560px phones)
   ============================================================ */
@media (max-width:560px){
  /* tighter vertical rhythm — less endless scrolling */
  .section{padding-block:clamp(56px,11vh,92px)}
  /* 7.4vw, not 8.5: at 375 the second authored line ("every business you run.")
     fits one visual line up to 29px — 8.5vw (32px) broke it to two, stranding
     the h1 at 3 lines (film-suite orphan row). vw keeps the fit ratio at any width.
     The 1.45rem floor (was 2rem) is load-bearing, not incidental: a 2rem floor
     re-imposes 32px everywhere below 432px (clamp = max(MIN, ...)), silently
     undoing the 7.4vw fix at every phone width. 1.45rem only engages below
     ~314px, where the vw ratio no longer holds on its own. */
  h1{font-size:clamp(1.45rem,7.4vw,2.9rem)}
  h2{font-size:clamp(1.7rem,6.4vw,2.4rem)}

  /* hero (scrub): full-width copy, lifted clear of the scroll hint */
  /* centring + width come from the shared margin:auto rule (84vw here) */
  html.scrub .beat{max-width:90vw;font-size:clamp(1.6rem,6.4vw,2.6rem)}
  html.scrub .beat-final{font-size:clamp(3rem,20vw,5.5rem)}
  .hero-core .subline{font-size:1.02rem}
  .hero-cta{gap:14px;margin-top:1.4em}
  /* fallback (no-scrub) h1 halo — the scrub-scoped halos never reach this mode;
     in scrub, html.scrub .hero-core h1 outranks this by specificity */
  .hero-core h1{text-shadow:0 2px 30px rgba(14,11,8,.7)}

  /* nav fits: brand + a compact CTA */
  .nav{padding-left:20px;padding-right:20px}
  .nav-links .btn{padding:.6em .95em;font-size:.66rem;letter-spacing:.04em}

  /* modal: edge-to-edge breathing room, ≥44px targets */
  .modal{padding:12px}
  .modal-panel{padding:26px 22px 30px}
  .field input,.field select{padding:.7em 0;font-size:16px}   /* 16px avoids iOS zoom-on-focus */
  .modal form .btn{padding:1.05em 1.5em}

  /* accordion + CTAs keep tall tap targets (already ≥44px via padding) */
  .btn{padding:.95em 1.4em}
}

/* Larger touch targets on any coarse pointer (phones/tablets) */
@media (pointer:coarse){
  .tlink{padding-block:.4em}
  .footer-links a{padding-block:.3em}
  .ac-actions button{padding-block:1.2em}   /* base padding-block:.6em measured ~33px tall — below the 44px floor */
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  .reveal{opacity:1;transform:none;transition:none}
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
}

/* ---------- Day-clock spine: corner clock + eyebrow time accent ---------- */
.dayclock{position:fixed;right:clamp(16px,2.4vw,30px);bottom:clamp(16px,2.4vh,28px);z-index:61;
  pointer-events:none;font-family:var(--mono);font-size:.72rem;letter-spacing:.2em;color:var(--gold);
  opacity:.82;transition:opacity .2s var(--ease)}
/* the crescent from the logotype waxes as the light leaves: a pseudo, so the
   clock's textContent stays the pure time (the dedupe contract reads it) */
.dayclock::before{content:"";display:inline-block;width:9px;height:9px;margin-right:.7em;vertical-align:-1px;
  border-radius:50%;box-shadow:inset -2.5px 1.5px 0 0 currentColor;
  opacity:calc(1 - var(--dayness,0))}
.dayclock.tick{opacity:0}
.eyebrow .t{color:var(--gold)}
@media (prefers-reduced-motion:reduce){.dayclock{transition:none}}
@media (max-width:560px){.dayclock{font-size:.66rem;right:14px;bottom:14px}}

/* ---------- The room continues: thread spine, lamp-pool, dawn seam ----------
   The film's language carries on: the agent-thread becomes the page's spine,
   the desk lamp follows the reader. All layers sit at z:-1 inside main's
   stacking context — NEVER behind body's opaque ink (they would vanish).
   Spec: docs/superpowers/specs/2026-07-17-room-continues-design.md            */
main{position:relative;z-index:1;overflow-x:clip}
/* overflow-x above: the lamp is a raw 900px box pinned at main's origin until
   the room module's JS repositions it via transform; on viewports <450px CSS
   this would otherwise inflate the mobile layout viewport (confirmed:
   window.innerWidth read 450 at a true 375px device, clipping the nav CTA).
   `clip` contains that overflow at the box edge WITHOUT creating a scroll
   container. `hidden` is FORBIDDEN here: per the CSS Overflow spec, hidden on
   one axis forces the other axis's `visible` to compute to `auto`, which makes
   main a scroll container — and position:sticky sticks to its nearest
   scroll-container ancestor, so the film-pin would stick to never-scrolling
   main instead of the viewport, killing the scrub. Do not "simplify" to hidden. */
.spine{position:absolute;left:max(10px,calc(50vw - 512px));width:1px;z-index:-1;pointer-events:none}
.spine-line{position:absolute;inset:0;transform-origin:top;transform:scaleY(0);
  background:linear-gradient(180deg,rgba(197,169,104,0),rgba(197,169,104,.32) 120px)}
.spine-node{position:absolute;left:-2.5px;width:6px;height:1px;background:var(--gold);opacity:.35;
  transition:opacity .3s var(--ease)}
.spine-node::after{content:"";position:absolute;left:1.5px;top:-1px;width:3px;height:3px;border-radius:50%;background:var(--gold)}
.spine-node.active{opacity:1}
/* the hour you're reading is a small moon (same crescent as the clock);
   the 6×1 base tick keeps its geometry — the harness measures that box */
.spine-node.active::after{width:7px;height:7px;left:-.5px;top:-3px;background:transparent;
  box-shadow:inset -2px 1.2px 0 0 var(--gold)}
.spine-node.pulse{opacity:1;box-shadow:0 0 14px rgba(197,169,104,.7)}
.lamp{position:absolute;top:0;left:0;width:900px;height:900px;margin:-450px 0 0 -450px;z-index:-1;
  pointer-events:none;border-radius:50%;opacity:0;transition:opacity .9s var(--ease);will-change:transform;
  background:radial-gradient(closest-side,rgba(197,169,104,.10),rgba(197,169,104,0) 70%)}
.lamp.on{opacity:var(--lampscale,1)}
@media (prefers-reduced-motion:reduce){
  .spine-line{transform:scaleY(1)}          /* fully drawn, not missing */
  .spine-node,.lamp{transition:none}
}

/* ============================================================
   The phone stage (spec 2026-07-18-phone-stage). Flat/no-JS truth
   here; html.staged (Task 2) arms layers, depth, and motion.
   ============================================================ */
.act{position:relative;max-width:var(--maxw);margin-inline:auto;padding:0 var(--pad-x)}
@media (min-width:820px){
  .act{display:grid;grid-template-columns:minmax(300px,420px) 1fr;gap:clamp(24px,4vw,72px);align-items:start}
  .act .section{padding-inline:0}
  .act-rail{align-self:stretch}
  .stage-persp{position:sticky;top:clamp(84px,12vh,120px)}
}
.act .section{max-width:none}
.stage-phone{max-width:420px;margin:clamp(24px,6vh,64px) auto}
.stage-phone .phone{max-width:none}
.screen{position:relative;border-top:1px solid var(--line);padding-top:1em;margin-top:1em}
.screen:first-of-type,.phone-head + .screen{border-top:0;margin-top:0;padding-top:0}
.scr-time{font-family:var(--mono);font-size:2.2rem;letter-spacing:.08em;color:var(--ivory);text-align:center;max-width:none;margin:.2em 0 .8em}
.beat-line{font-family:var(--serif);font-size:clamp(1.05rem,1.7vw,1.3rem);color:var(--gold)!important;max-width:none;margin:0 0 2em}
.ph-glass{display:none}
/* cameo (dusk) + goodnight (night): small static objects */
.cameo-phone{width:200px;margin:2em 0;background:var(--ink-2);border:1px solid var(--line);border-radius:22px;
  padding:34px 16px 26px;transform:perspective(900px) rotateY(-8deg) rotateX(2deg);position:relative;overflow:hidden}
.cameo-phone::before{content:"";position:absolute;top:14px;left:50%;transform:translateX(-50%);width:28px;height:3px;border-radius:2px;background:var(--gold);opacity:.3}
.cameo-time{font-family:var(--mono);font-size:1.4rem;letter-spacing:.1em;color:var(--ivory);text-align:center;max-width:none;margin:0 0 .4em}
.cameo-line{font-family:var(--mono);font-size:.72rem;letter-spacing:.1em;color:var(--ivory-dim)!important;text-align:center;max-width:none;margin:0}
.goodnight{width:220px;margin:3em auto 0;background:var(--ink-2);border:1px solid var(--line);border-radius:24px;
  padding:40px 18px 30px;transform-origin:50% 100%;position:relative}   /* recline authored in the tied-specificity rule below (12° — the still carries its own perspective) */
.goodnight::before{content:"";position:absolute;top:16px;left:50%;transform:translateX(-50%);width:30px;height:3px;border-radius:2px;background:var(--gold);opacity:.3}
.gn-time{font-family:var(--mono);font-size:1.6rem;letter-spacing:.1em;color:var(--ivory);text-align:center;max-width:none;margin:0 0 .3em}
.gn-line{font-family:var(--mono);font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--ivory-dim)!important;text-align:center;max-width:none;margin:0 0 1em}
.gn-dot{display:block;width:7px;height:7px;border-radius:50%;background:var(--gold);margin:0 auto;animation:gn-breathe 2.8s var(--ease) infinite}
@keyframes gn-breathe{0%,100%{opacity:.25}50%{opacity:1}}
@media (prefers-reduced-motion:reduce){ .gn-dot{animation:none;opacity:.7} }
@media (max-width:819px){ .stage-phone{margin-top:0} .cameo-phone{margin-inline:auto} }

/* the photographs join the day (owner generations, 2026-07-19): small tilted
   prints — the photo carries the scene (its own clock, its own lamp), so the
   old floating times/dot retire and the line sits beneath like a print label */
.cameo-phone,.goodnight{background:transparent;border:0;padding:0;overflow:visible}
.cameo-phone::before,.goodnight::before{display:none}
.cameo-img,.gn-img{display:block;width:100%;height:auto;border-radius:18px;box-shadow:0 26px 64px rgba(0,0,0,.5)}
.cameo-time,.gn-time,.gn-dot{display:none}
.cameo-line,.gn-line{margin:1.1em 0 0;text-align:center}
.cameo-phone{position:relative;width:240px}   /* a quiet endnote under the member notes, not a rival */
.goodnight{position:relative;width:340px}

/* one tilt for every resting object: attachTilt() writes --cy/--cx, each
   object composes them over its own authored pose (spec Task 3 Step 2) */
/* .reveal.in{transform:none} is (0,2,0): a bare class here loses the cascade
   and the tilt renders inert after reveal (T3-review Critical). Doubling with
   .reveal ties the specificity; later source order wins. The 18px reveal-rise
   is deliberately ceded for these objects — they fade in at their pose. */
.invite.reveal,.invite{transform:perspective(900px) rotateX(var(--cx,0deg)) rotateY(var(--cy,0deg));
  transition:opacity .9s var(--ease),transform .18s var(--ease)}   /* fast tilt-follow; keep the reveal's opacity fade */
.cameo-phone.reveal,.cameo-phone{transform:perspective(900px) rotateY(calc(-8deg + var(--cy,0deg))) rotateX(calc(2deg + var(--cx,0deg)));
  transition:opacity .9s var(--ease),transform .18s var(--ease)}
.goodnight.reveal,.goodnight{transform:perspective(900px) rotateX(12deg);
  transition:opacity .9s var(--ease),transform .18s var(--ease)}   /* the still carries its own light; a whisper of recline — and its own transition, like its siblings, so nothing inherits the reveal's 0.9s transform */

/* mobile stage tuning (spec Task 3 Step 3) */
@media (max-width:819px){
  /* the sticky needs TRAVEL: a content-height rail pins it in place and the
     phone scrolled away unseen (final-gate blocker 1). display:contents
     dissolves the rail box so .stage-persp's containing block becomes the
     whole .act — the phone now rides the entire morning on mobile. */
  html.staged .act-rail{display:contents}
  html.staged .stage-persp{position:sticky;top:64px;z-index:2}
  html.staged .stage-3d{max-width:280px;margin:0 auto}
  /* the hint lives OUTSIDE the glass; on the sticky stage it superimposes on
     the copy column (final-gate follow-up 1). The breathing Approve already
     carries the invitation on the glass — the caption stays desktop-only. */
  html.staged .run-hint{display:none}
}
@media (max-height:699px){
  html.staged .stage-persp{position:static}
}

/* armed by the stage module: the baked phone appears; the flat card becomes
   the corner-pinned LIVE SCREEN riding the frames. Contracts intact: the
   .phone element (with its four .screen children) IS the overlay.          */
html.staged .stage-3d{position:relative}
html.staged .stage-frame{display:block;width:100%;height:auto}
.stage-frame{display:none}                          /* no-JS: flat card only */
html.staged .stage-phone .phone{position:absolute;left:0;top:0;width:336px;height:728px;
  transform-origin:0 0;background:transparent;border:0;border-radius:0;padding:0;max-width:none;
  will-change:transform}
html.staged .stage-phone .phone-head{display:none}  /* the physical phone has its own face */
html.staged .phone .screen{position:absolute;inset:0;border-top:0;margin:0;padding:8% 7% 6%;overflow-y:auto;
  opacity:0;visibility:hidden;transition:opacity .35s var(--ease),visibility 0s .35s;
  /* the glass is near-black baked pixels: the screens run DARK-MODE tokens
     (final-gate blocker 2 — reg-day ink on black read 2.5:1 on the receipts).
     Cards become dark surfaces with light text; true to a phone at 05:47. */
  --ivory:#F5F0E6;--ivory-dim:#D5CEC0;--gold:#C5A968;--rose:#C08A7A;
  --ink:#171310;--ink-2:#1E1813;--line:rgba(245,240,230,.16);--line-soft:rgba(245,240,230,.09)}
html.staged .phone .screen.on{opacity:1;visibility:visible;transition-delay:.05s,0s}
/* overlay scrollbars paint a sliver on the glass — the screens scroll bare */
html.staged .phone .screen{scrollbar-width:none}
html.staged .phone .screen::-webkit-scrollbar{width:0;height:0}
/* the lock wears the owner's photoreal wallpaper (R1 band, no baked text) —
   the live DOM keeps the clock and the tappable card on top. Staged only:
   the no-JS flat card stays paper.                                         */
.lock-wall{display:none}
html.staged .scr-lock .lock-wall{display:block;position:absolute;inset:1%;width:98%;height:98%;
  object-fit:cover;object-position:62% 50%;z-index:-1;border-radius:10.5%/4.9%}
/* the owner's screenshots FRONT the screens — photoreal Telegram, cut to the
   glass ratio. The picture is the poster; the first touch fades it and the
   live UI beneath takes the hand (main.js). Staged only.                   */
.shot{display:none}
html.staged .phone .screen .shot{display:block;position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;z-index:2;cursor:pointer;
  /* the corner rounding + edge inset are BAKED as alpha (Pillow, r=10.5% of
     width) so they warp correctly with the matrix3d pose — CSS radius can't */
  transition:opacity .35s var(--ease)}
html.staged .phone .screen .shot.off{opacity:0;pointer-events:none}
@media (prefers-reduced-motion:reduce){ html.staged .phone .screen .shot{transition:none} }
html.staged .run-hint{position:relative;z-index:2}
@media (prefers-reduced-motion:reduce){ html.staged .phone .screen{transition:none} }

.doc-flash{animation:doc-pulse .9s var(--ease)}
@keyframes doc-pulse{0%,100%{box-shadow:0 0 0 0 rgba(197,169,104,0)}30%{box-shadow:0 0 0 6px rgba(197,169,104,.18)}}
