/* ===== 00-base.css ===== */
/* ravi.bot "One Loop" — shared foundation.
   Rule of the house: the authored HTML is the final state. Every hidden starting state is
   written under html.motion (or set by GSAP inside a builder), never as a plain rule. */

/* ---------- 1. tokens (spec 1.2) ---------- */
:root{
  --bg:#0d0d0d; --bg-raised:#131313; --bg-soft:#171717;
  --line:#2c2c2c; --line-strong:#3a3a3a;
  --text:#f3f2ef; --muted:#b8b7b1;
  --quiet:#8a8983; --quiet-deco:#7b7a74;
  --mint:#b7f6d1; --sand:#f3d18a; --teal-dk:#2f9a8a;
  --p-bg:#fbfcfd; --p-ink:#17202a; --p-muted:#5f6f80; --p-line:#d8e0e7; --p-soft:#f5f8fb;
  --p-teal:#14635a; --p-teal-wash:#e9f3f1; --p-rust:#b45d28; --p-rust-wash:#fdf3ec;
  --p-code:#10201e; --p-code-text:#ecf8f4; --p-code-hi:#7fd6c4;
  --a-reception:#f3d18a; --a-dev:#b7f6d1; --a-ops:#2f9a8a; --a-other:#b8b7b1;
  --grid:72px; --gutter:clamp(16px,4vw,48px); --maxw:1440px;
  --font-sans:'Sora',system-ui,sans-serif; --font-mono:'IBM Plex Mono',ui-monospace,monospace;
  /* derived layout tokens */
  --hdr:64px; --bar:0px; --px:var(--gutter); --sec-pad:clamp(96px,13vh,152px);
  --stage-w:936px; --copy-w:360px; --col-gap:48px;
  /* light status chips (Bases option colors) */
  --st-req:#fdf3c7; --st-app:#dcf3e3; --st-ord:#dde9fb; --st-rec:#eceff3; --st-dec:#fbdcdc;
}
@media (min-width:1280px){ :root{ --px:48px; } }
@media (max-width:1023px){ :root{ --hdr:52px; --bar:0px; --sec-pad:88px; } }   /* --bar: no loop bar any more; kept at 0 so old calc()s hold */
@media (max-width:599px){ :root{ --sec-pad:72px; } }

*,*::before,*::after{box-sizing:border-box}
html,body{background:var(--bg);color:var(--text);overflow-x:clip}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:auto;
  /* focus and #links never land under the sticky header */
  scroll-padding-top:calc(var(--hdr) + var(--bar) + 16px);scroll-padding-bottom:16px}
body{margin:0;font-family:var(--font-sans);font-size:17px;line-height:1.55;text-rendering:geometricPrecision;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;min-height:100vh;
  padding-top:var(--hdr)}   /* room for the fixed header (section 5), so the page sits where a sticky one left it */
body::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:0;
  background-image:linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px);
  background-size:var(--grid) var(--grid);opacity:.45;
  -webkit-mask-image:linear-gradient(#000 0,#000 40%,transparent 75%);mask-image:linear-gradient(#000 0,#000 40%,transparent 75%)}
main,footer{position:relative;z-index:1}
main:focus{outline:none}
h1,h2,h3,h4,p,figure,ol,ul,dl,dd,pre,blockquote{margin:0}
ol,ul{padding:0;list-style:none}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
code,kbd,pre,samp{font-family:var(--font-mono)}
svg{display:block}
img{max-width:100%;display:block}
::selection{background:var(--text);color:var(--bg)}
[hidden]{display:none!important}
b,strong{font-weight:600}

/* focus rings (spec 0: mint on dark, teal on light) */
:focus-visible{outline:2px solid var(--mint);outline-offset:3px}
.light :focus-visible,.sk-win :focus-visible,.rb-browser :focus-visible,.light-panel :focus-visible{outline-color:var(--p-teal)}

/* ---------- 2. type ---------- */
.hl{font-family:var(--font-sans);font-weight:500;text-transform:uppercase;letter-spacing:-.06em;line-height:.86;
  font-size:clamp(3.4rem,7.2vw,7.5rem);color:var(--text)}
.hl--hero{font-size:clamp(4.2rem,11vw,9.5rem)}
.mask{display:block;overflow:hidden;padding-bottom:.06em;margin-bottom:-.06em}
.mask>.in{display:block}
.eyebrow{font-family:var(--font-mono);font-weight:500;font-size:13px;line-height:1.4;letter-spacing:.2em;text-transform:uppercase;color:var(--quiet);white-space:pre}
.eyebrow b{color:var(--sand);font-weight:500}
.lead,.intro{font-size:17px;line-height:1.55;color:var(--muted);max-width:40em;text-wrap:pretty}
.note{font-family:var(--font-mono);font-size:12px;line-height:1.5;color:var(--quiet)}
.fine{font-size:14px;line-height:1.55;color:var(--quiet);max-width:52em}
.label{font-family:var(--font-mono);font-size:12px;line-height:1.4;letter-spacing:.14em;text-transform:uppercase;color:var(--quiet)}
@media (max-width:599px){
  body{font-size:16px}
  .hl{font-size:40px}
  .hl--hero{font-size:clamp(36px,10.7vw,44px);line-height:.88}
  .lead,.intro{font-size:16px}
}

/* ---------- 3. layout ---------- */
.wrap{width:100%;max-width:var(--maxw);margin-inline:auto;padding-inline:var(--px)}
.sec{position:relative;padding-block:var(--sec-pad);scroll-margin-top:-16px}
.sec-head{display:grid;gap:24px;margin-bottom:56px}
.sec-head .hl{margin-top:2px}
@media (max-width:599px){.sec-head{gap:18px;margin-bottom:40px}}

/* ---------- 4. utilities & motion gating ---------- */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
html.no-js .js-only{display:none!important}
html:not(.motion) .motion-only{display:none!important}
html.motion .static-only{display:none!important}
html.js .no-js-only{display:none!important}
.nw{white-space:nowrap}
/* generic on-enter reveals (core plays them; hidden only under html.motion) */
html.motion .hl .in{transform:translateY(110%)}
html.motion [data-reveal]{opacity:0;transform:translateY(24px)}
html.motion [data-reveal="fade"]{transform:none}
html.motion [data-reveal="wipe"]{opacity:1;transform:none;clip-path:inset(0 100% 0 0)}
html.motion [data-reveal="pop"]{transform:scale(.9)}
.wc-on{will-change:transform}

/* ---------- 5. header, sheet, skip link ---------- */
.skip-link{position:fixed;left:16px;top:12px;z-index:100;transform:translateY(-200%);background:var(--text);color:var(--bg);
  font-family:var(--font-mono);font-size:12px;letter-spacing:.18em;text-transform:uppercase;padding:12px 14px;border-radius:4px}
.skip-link:focus{transform:none}
/* The header is fixed, not sticky: with scroll-padding-top on html, the browser scrolls the page to "clear" a
   focused element inside a sticky header (opening or closing the menu, or Tab into the header, moved the page
   by 45-530px). A fixed element is never scrolled into view, the same as the fixed loop indicator. */
.hdr{position:fixed;top:0;left:0;right:0;z-index:50;height:var(--hdr);background:rgba(13,13,13,.92);border-bottom:1px solid var(--line);
  -webkit-backdrop-filter:blur(14px) saturate(.9);backdrop-filter:blur(14px) saturate(.9)}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){ .hdr{background:rgba(13,13,13,.98)} }
.hdr-in{height:100%;max-width:var(--maxw);margin-inline:auto;padding-inline:var(--px);display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:inline-flex;align-items:center;gap:12px;min-height:44px;font-family:var(--font-mono);font-size:13px;font-weight:500;letter-spacing:.22em;text-transform:uppercase;color:var(--text)}
.brand-mark{width:26px;height:26px;border-radius:5px;box-shadow:0 0 0 1px var(--line-strong)}
/* the legacy wordmark (brand/logo-dark.svg, inlined by assemble.py): ASCII-art "ravi" in the logo's own cyan */
.brand .logo-dark{display:block;height:34px;width:auto;flex:none}
/* the PT | EN switch: in the header row at every width (beside the nav, or before Menu), and again in the menu sheet */
.lang-sw{display:flex;align-items:center;font-family:var(--font-mono);font-size:12px;letter-spacing:.14em;color:var(--quiet)}
.lang-sw a{display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:44px;padding:0 4px;color:var(--muted);transition:color .18s}
.lang-sw a:hover{color:var(--text)}
.lang-sw a[aria-current]{color:var(--text);text-decoration:underline;text-decoration-color:var(--mint);text-underline-offset:6px;text-decoration-thickness:1px}
.hdr-in{justify-content:flex-start}
.hdr-nav{margin-left:auto}
.lang-sw--hdr{margin-left:clamp(12px,2vw,28px);margin-right:-4px}
.sheet .lang-sw{padding-top:4px}
.sheet .lang-sw a{display:inline-flex;justify-content:flex-start;height:48px;min-width:44px;padding:0 12px 0 0;border-bottom:0;font-size:13px;color:var(--muted)}
.sheet .lang-sw a+span+a{padding:0 0 0 12px;justify-content:center}
.sheet .lang-sw a[aria-current]{color:var(--text)}
.hdr-nav{display:flex;align-items:center;gap:clamp(20px,3vw,40px)}
.hdr-nav a,.sheet a{font-family:var(--font-mono);font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);transition:color .18s}
.hdr-nav a{display:inline-flex;align-items:center;min-height:44px}
.hdr-nav a:hover,.sheet a:hover{color:var(--text)}
.hdr-menu{display:none;min-width:44px;height:44px;padding:0 12px;margin-right:-12px;font-family:var(--font-mono);font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:var(--text)}
.sheet{position:absolute;left:0;right:0;top:100%;background:var(--bg);border-bottom:1px solid var(--line);padding:8px var(--px) 16px;
  max-height:calc(100vh - var(--hdr));max-height:calc(100dvh - var(--hdr));overflow-y:auto;overscroll-behavior:contain}
.sheet a{display:flex;align-items:center;height:48px;border-bottom:1px solid var(--line);color:var(--text);font-size:13px}
.sheet a:last-child{border-bottom:0}
@media (max-width:1023px){
  .hdr-nav{display:none}
  .hdr-menu{display:inline-flex;align-items:center;justify-content:center}
  .lang-sw--hdr{margin-left:auto;margin-right:8px}
  .brand .logo-dark{height:28px}
  html.no-js .hdr{position:relative;height:auto}
  html.no-js body{padding-top:0}
  html.no-js .hdr-in{height:auto;min-height:52px;flex-wrap:wrap;row-gap:0;padding-block:4px 6px}
  html.no-js .hdr-nav{display:flex;flex-wrap:wrap;gap:0 20px;width:100%}
}
@media (min-width:1024px){.sheet{display:none!important}}

/* ---------- 6. pinned scaffold ---------- */
/* <section class="sec sec--pin"> <header class="wrap sec-head">…</header>
     <div class="stage-wrap"><div class="scene"> .scene-copy(.scene-title,.beats) · .frames · .skip-scene · .stage </div></div> … */
.sec--pin{padding-bottom:0}
.sec--pin>.sec-head{margin-bottom:40px}
.stage-wrap{position:relative}
.scene{position:relative;max-width:var(--maxw);margin-inline:auto;padding-inline:var(--px);
  display:grid;grid-template-columns:var(--copy-w) minmax(0,1fr);column-gap:var(--col-gap);align-items:start}
.scene>.scene-copy{grid-column:1;grid-row:1/span 3}
.scene>.frames{grid-column:2;grid-row:1}
.scene>.stage,.scene>.skip-scene{grid-column:2;grid-row:2}
.scene>.after{grid-column:2;grid-row:3}
.stage{position:relative;min-width:0}
.scene-copy{position:relative;min-width:0}
.scene-title{font-family:var(--font-mono);font-size:13px;line-height:1.5;letter-spacing:.12em;text-transform:uppercase;color:var(--quiet);margin-bottom:20px}
.scene-title b{color:var(--sand);font-weight:500}
.beats{display:grid;gap:6px;counter-reset:beat}
.beat{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:baseline;width:100%;text-align:left;padding:10px 0;border-top:1px solid var(--line);color:var(--text);min-height:44px}
.beat-n{font-family:var(--font-mono);font-size:12px;letter-spacing:.08em;color:var(--sand)}
.beat-t{display:block;font-size:17px;line-height:1.45}
.beat .mask{padding-bottom:0;margin-bottom:0}
.beat:hover .beat-t{color:var(--text)}
.beat{cursor:default}
.beat[role="button"]{cursor:pointer}
html.motion .beat{opacity:.6;transition:opacity .3s}
html.motion .beat.is-current{opacity:1}
html.motion .beat:focus-visible{opacity:1}
.skip-scene{position:relative;z-index:6;justify-self:end;align-self:start;display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:6px 10px;margin:-6px -10px 0 0;
  font-family:var(--font-mono);font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);background:rgba(13,13,13,.8);border-radius:4px}
.skip-scene:hover{color:var(--mint)}
html:not(.motion) .skip-scene{display:none}
@media (max-width:1023px),(pointer:coarse){.skip-scene{min-height:44px}}
html:not(.motion) .scene-title{display:none}
/* static (no motion, reduced, frames-mode): numbered list beside the frames, sticky on desktop */
html:not(.motion) .sec--pin .scene{padding-bottom:var(--sec-pad)}
@media (min-width:1280px){ html:not(.motion) .sec--pin .scene>.scene-copy{position:sticky;top:calc(var(--hdr) + 32px)} }
html:not(.motion) .sec--pin .frames~.stage{margin-top:40px}
/* data-static="frames" on the section: the static view is the frames strip plus the beat list, no stage */
html:not(.motion) .sec--pin[data-static="frames"] .scene>.stage{display:none!important}

/* desk motion: the stage-wrap is a 100vh pinned frame under the header */
@media (min-width:1024px) and (min-height:640px){
  html.motion .sec--pin .stage-wrap{height:100vh}
  html.motion .sec--pin .scene{height:100%;padding-top:calc(var(--hdr) + 20px);padding-bottom:24px;grid-template-rows:auto minmax(0,1fr) auto}
  html.motion .sec--pin .scene>.stage{height:100%;min-height:0}
  /* the skip link gets its own row above the stage, level with the rail title, so it never covers a mock */
  html.motion .sec--pin .scene>.skip-scene{grid-row:1;margin:-6px -10px 10px 0}
  /* the copy column keeps 72px clear at the bottom for the fixed loop indicator ring */
  html.motion .sec--pin .scene>.scene-copy{grid-row:1/span 3;align-self:stretch;display:flex;flex-direction:column;min-height:0;padding-bottom:72px}
  html.motion .sec--pin .beats{flex:1 1 auto;align-content:start}
  /* dense / rail mode: only the current beat shows (core adds .scene-copy--dense when beats overflow) */
  html.motion .scene-copy--dense .beats{display:grid;grid-template-areas:"b";gap:0}
  html.motion .scene-copy--dense .beats>li{grid-area:b}
  html.motion .scene-copy--dense .beat{opacity:0;visibility:hidden;transition:opacity .3s,visibility 0s .3s}
  html.motion .scene-copy--dense .beat.is-current,html.motion .scene-copy--dense .beats:not(.has-current) .beat.is-first{opacity:1;visibility:visible;transition:opacity .3s}
}
/* compact desktop 1024–1279: stage stacked, caption rail under it */
@media (min-width:1024px) and (max-width:1279px) and (min-height:640px){
  html.motion .sec--pin .scene{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto;max-width:calc(min(100vw - 2*var(--gutter),960px) + 2*var(--px))}
  html.motion .sec--pin .scene>.stage{grid-column:1;grid-row:2}
  html.motion .sec--pin .scene>.skip-scene{grid-column:1;grid-row:1}
  html.motion .sec--pin .scene>.after{grid-column:1;grid-row:3}
  /* the rail text starts right of the fixed loop ring (x 24–88) whatever the window width */
  html.motion .sec--pin .scene>.scene-copy{grid-column:1;grid-row:4;display:grid;grid-template-columns:minmax(0,1fr);padding:14px 0 0 max(0px,calc(104px - (100vw - min(100vw - 2 * var(--gutter),960px)) / 2));border-top:1px solid var(--line);margin-top:14px}
  html.motion .sec--pin .scene-title{margin-bottom:6px}
  html.motion .sec--pin .beats{display:grid;grid-template-areas:"b";gap:0}
  html.motion .sec--pin .beats>li{grid-area:b}
  html.motion .sec--pin .beat{border-top:0;padding:0;min-height:0;grid-template-columns:30px minmax(0,1fr);opacity:0;visibility:hidden;transition:opacity .3s,visibility 0s .3s}
  html.motion .sec--pin .beat-t{font-size:18px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.8em}
  html.motion .sec--pin .beat.is-current,html.motion .sec--pin .beats:not(.has-current) .beat.is-first{opacity:1;visibility:visible;transition:opacity .3s}
}
/* touch (≤1023): no stage-wrap pin; builders add short pins on .pin-panel. Beats list follows the stage. */
@media (max-width:1023px){
  .scene{grid-template-columns:minmax(0,1fr);row-gap:28px}
  .scene>.scene-copy,.scene>.frames,.scene>.stage,.scene>.skip-scene,.scene>.after{grid-column:1;grid-row:auto}
  html.motion .scene>.scene-copy{order:5}
  html.motion .scene>.skip-scene{order:1;justify-self:start;margin:0}
  html.motion .scene>.stage{order:2}
  html.motion .scene>.after{order:6}
  html.motion .beat{opacity:1}
  html.motion .scene-title{display:none}
  html.motion [data-phone-beats="hide"] .scene>.scene-copy{display:none}
  .stage{max-width:640px;width:100%;margin-inline:auto}
  /* static phone view: the strip first, then the stage (if shown), then the numbered beats */
  html:not(.motion) .scene>.frames{order:1}
  html:not(.motion) .scene>.stage{order:2}
  html:not(.motion) .scene>.after{order:3}
  html:not(.motion) .scene>.scene-copy{order:4}
}
.pin-panel{position:relative;height:calc(100svh - var(--hdr) - var(--bar));min-height:420px;display:flex;flex-direction:column;justify-content:center;gap:16px}
html:not(.motion) .pin-panel{height:auto;min-height:0}

/* ---------- 7. frames strip (static storyboard) ---------- */
.frames{display:none;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px}
html:not(.motion) .frames,html.frames-mode .frames{display:grid}
.frame{position:relative;display:grid;gap:12px;align-content:start;min-width:0}
.frame>figcaption{font-family:var(--font-mono);font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--sand)}
@media (max-width:1023px){.frames{grid-template-columns:1fr}}

/* ---------- 8. buttons, links, copy ---------- */
.lnk{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-family:var(--font-mono);font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);border-bottom:1px solid transparent;transition:color .18s,border-color .18s}
.lnk:hover{color:var(--text);border-color:var(--line-strong)}
.lnk--go{color:var(--mint)}
.lnk--go:hover{color:var(--mint);border-color:var(--mint)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border:1px solid var(--line-strong);border-radius:4px;
  font-family:var(--font-mono);font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:var(--text);background:transparent;transition:color .18s,border-color .18s}
.btn:hover,.btn:focus-visible{color:var(--mint);border-color:var(--mint)}
.btn[aria-pressed="true"]{border-color:var(--mint);color:var(--mint)}
.btn--light{border-color:var(--p-line);color:var(--p-ink);background:#fff}
.btn--light:hover,.btn--light:focus-visible{color:var(--p-teal);border-color:var(--p-teal)}
.btn--teal{background:var(--p-teal);border-color:var(--p-teal);color:#fff}
.btn--teal:hover,.btn--teal:focus-visible{color:#fff;border-color:var(--p-ink)}
.btn--teal-o{border-color:var(--p-teal);color:var(--p-teal);background:#fff}
.btn--teal-o:hover,.btn--teal-o:focus-visible{color:#fff;background:var(--p-teal);border-color:var(--p-teal)}
.btn-row{display:flex;flex-wrap:wrap;gap:12px}
.copy{flex:none;display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:28px;padding:0 6px;margin:-3px -6px -3px 8px;font-family:var(--font-mono);font-size:12px;letter-spacing:.06em;color:var(--mint);white-space:nowrap;border-radius:3px;background:var(--bg-raised)}
.copy:hover{color:var(--text)}
.copy.is-done{color:var(--sand)}
@media (pointer:coarse){.copy{height:44px;margin-block:-11px}}

/* ---------- 9. .term dark terminal ---------- */
.term{position:relative;background:var(--bg-raised);border:1px solid var(--line);border-radius:8px;font-family:var(--font-mono);font-size:14px;line-height:22px;color:var(--text);min-width:0}
.term--line{padding:12px 16px}
.ln{display:flex;align-items:baseline;width:max-content;min-width:100%;white-space:pre}
.ln>code{font:inherit;white-space:pre}
.ln .copy{margin-left:auto;margin-right:0;padding-left:16px;position:sticky;right:0}
.ln.cmd>.p,.p{color:var(--quiet-deco)}
.ln.cmd>.p{margin-right:.6em}
.caret{display:inline-block;flex:none;width:.47em;height:1em;background:var(--mint);vertical-align:-.12em;margin-left:2px;align-self:center}
.type{display:inline-block;white-space:pre}
@media (max-width:599px){
  .term{font-size:12px;line-height:19px}
  .ln{width:auto;flex-wrap:wrap;white-space:pre-wrap}
  .ln>code{white-space:pre-wrap;overflow-wrap:anywhere;flex:0 1 auto;max-width:100%;min-width:0}
  .ln.cmd{flex-wrap:nowrap}
  .ln.cmd>.p{flex:none}
  .ln .copy{position:static}
}

/* ---------- 10. agent chip, tags ---------- */
.chip{--lit:0;display:inline-flex;align-items:center;gap:8px;height:28px;padding:0 12px 0 10px;border:1px solid var(--line);border-radius:999px;font-family:var(--font-mono);font-size:12px;color:var(--text);white-space:nowrap;background:var(--bg-raised)}
.chip>i{position:relative;flex:none;width:8px;height:8px;border-radius:50%;background:var(--dot,var(--a-other))}
.chip>i::after{content:"";position:absolute;inset:-7px;border-radius:50%;background:radial-gradient(circle,var(--dot,var(--mint)) 0,transparent 68%);opacity:calc(var(--lit) * .6)}
.chip.is-lit{--lit:1}
.chip--dim{opacity:calc(.62 + .38 * var(--lit))}
.tag{display:inline-flex;align-items:center;gap:6px;min-height:24px;padding:2px 8px;border:1px solid currentColor;border-radius:4px;font-family:var(--font-mono);font-size:12px;line-height:1.3;white-space:nowrap;background:rgba(13,13,13,.85)}
.tag--sand{color:var(--sand)} .tag--mint{color:var(--mint)} .tag--teal{color:var(--teal-dk)} .tag--rust{color:#e08a57}
.tag--light{background:#fff}
.tag--light.tag--teal{color:var(--p-teal)} .tag--light.tag--rust{color:var(--p-rust)} .tag--light.tag--sand{color:#8a6a1f}
.pill-code{display:inline-flex;align-items:center;height:28px;padding:0 12px;border-radius:999px;background:var(--p-code);color:var(--mint);font-family:var(--font-mono);font-size:13px;white-space:nowrap}

/* ---------- 11. light world: avatars, .sk-win, .bk ---------- */
.light{color:var(--p-ink);font-family:var(--font-sans)}
.av{flex:none;display:inline-grid;place-items:center;width:36px;height:36px;border-radius:8px;font-family:var(--font-sans);font-size:15px;font-weight:600;line-height:1;background:var(--p-soft);color:var(--p-ink)}
.av--ana{background:#e9f3f1;color:var(--p-ink)}
.av--bruno{background:#fdf3ec;color:var(--p-rust)}
.av--carla{background:#e7eef7;color:var(--p-ink)}
.av--rec{background:var(--sand);color:var(--p-ink)}
.av--ops{background:var(--p-teal);color:#fff}
/* the Ravi bot: the legacy favicon mark (brand/favicon.svg, a cyan rounded square with "r"). Every agent message in a Slack mock is
   posted by this one bot ("Ravi" + .app badge); markup <span class="av av--ravi" aria-hidden="true"></span> */
.av--ravi{background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='14' fill='%230891B2'/%3E%3Ctext x='32' y='45' text-anchor='middle' font-family='DM Sans, Arial, sans-serif' font-size='40' font-weight='700' fill='%23FFFFFF'%3Er%3C/text%3E%3C/svg%3E") 50% 50%/100% 100% no-repeat;color:transparent}
.av--sm{width:20px;height:20px;border-radius:50%;font-size:12px;font-weight:500}
.sk-win{position:relative;display:flex;background:var(--p-bg);border:1px solid var(--p-line);border-radius:8px;color:var(--p-ink);font-family:var(--font-sans);font-size:15px;line-height:1.45;min-width:0;isolation:isolate}
.sk-win::before{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:0 24px 60px rgba(23,32,42,.08);opacity:var(--lift,1);z-index:-1;pointer-events:none}
.sk-win.is-lifted::before{box-shadow:0 30px 80px rgba(0,0,0,.45)}
.sk-rail{flex:none;width:196px;background:var(--p-soft);border-right:1px solid var(--p-line);border-radius:8px 0 0 8px;padding:14px 0;font-size:14px}
.sk-ws{padding:0 16px 12px;font-weight:600;font-size:15px;border-bottom:1px solid var(--p-line);margin-bottom:10px}
.sk-group{padding:8px 16px 4px;font-family:var(--font-mono);font-size:12px;letter-spacing:.1em;color:var(--p-muted)}
.sk-rail li{display:flex;align-items:center;gap:8px;height:30px;padding:0 16px;color:var(--p-muted)}
.sk-rail li.is-active{background:var(--p-teal-wash);color:var(--p-ink);font-weight:600}
.sk-rail .sq{width:16px;height:16px;border-radius:4px;display:inline-grid;place-items:center;font-size:12px;font-weight:600}
.sk-main{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}
.sk-hd{display:flex;align-items:center;justify-content:space-between;gap:12px;height:44px;padding:0 18px;border-bottom:1px solid var(--p-line);font-weight:600;font-size:15px;flex:none}
.sk-hd span{font-weight:400;font-size:13px;color:var(--p-muted)}
.sk-msgs{display:grid;gap:4px;padding:12px 0;align-content:start}
.sk-msg{display:grid;grid-template-columns:36px minmax(0,1fr);gap:12px;padding:8px 18px;align-items:start}
.sk-meta{display:flex;align-items:center;gap:8px;font-size:15px;line-height:20px;margin-bottom:2px}
.sk-meta b{font-weight:600}
.sk-meta time{font-size:12px;color:var(--p-muted)}
.app{display:inline-flex;align-items:center;height:18px;padding:0 4px;border:1px solid var(--p-line);border-radius:3px;font-family:var(--font-mono);font-size:12px;line-height:1;color:var(--p-muted);letter-spacing:.04em}
.sk-text{font-size:15px;line-height:1.45}
.sk-thread{display:inline-flex;align-items:center;gap:6px;margin-top:6px;font-size:13px;font-weight:600;color:var(--p-teal)}
.bk{display:grid;gap:10px;font-size:15px;line-height:1.45;color:var(--p-ink);min-width:0}
.bk-header{font-weight:600;font-size:17px;line-height:1.35}
.bk-section{white-space:pre-line;overflow-wrap:anywhere}
.bk-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;white-space:normal}
.bk-fields b{display:block}
.bk-actions{display:flex;flex-wrap:wrap;gap:8px}
.bk-btn{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 14px;border:1px solid var(--p-line);border-radius:4px;background:#fff;color:var(--p-ink);font-family:var(--font-sans);font-size:14px;font-weight:600;white-space:nowrap;transform-origin:50% 50%}
.bk-btn--primary{background:var(--p-teal);border-color:var(--p-teal);color:#fff}
.bk-btn--danger{border-color:var(--p-rust);color:var(--p-rust)}
button.bk-btn:hover{border-color:var(--p-ink)}
button.bk-btn--primary:hover{background:#0f4f48}
.bk-btn[aria-disabled="true"]{cursor:default}
@media (pointer:coarse){button.bk-btn{height:44px}}
.bk-context{font-size:12px;line-height:1.4;color:var(--p-muted)}
.bk-select{display:inline-flex;align-items:center;justify-content:space-between;gap:24px;height:32px;min-width:150px;padding:0 10px;border:1px solid var(--p-line);border-radius:4px;background:#fff;font-size:14px;color:var(--p-muted)}
.bk-final{display:grid;gap:2px}
@media (max-width:1279px){.sk-win--rail-opt .sk-rail{display:none}}

/* ---------- 12. light browser .rb-browser ---------- */
.rb-browser{position:relative;background:var(--p-bg);border:1px solid var(--p-line);border-radius:8px;overflow:hidden;color:var(--p-ink);font-family:var(--font-sans);min-width:0;isolation:isolate}
.rb-chrome{display:flex;align-items:center;gap:14px;height:44px;padding:0 14px;background:var(--p-soft);border-bottom:1px solid var(--p-line)}
.rb-dots{display:flex;gap:6px;flex:none}
.rb-dots i{width:10px;height:10px;border-radius:50%;background:var(--p-line)}
.rb-reload{flex:none;color:var(--p-muted);font-size:16px;line-height:1;display:inline-block}
.rb-url{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:8px;height:30px;padding:0 6px 0 12px;background:#fff;border:1px solid var(--p-line);border-radius:15px;font-family:var(--font-mono);font-size:13px;color:var(--p-ink)}
.rb-url>span:first-of-type{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.rb-lock{flex:none;width:10px;height:12px;color:var(--p-muted)}
.rb-private{flex:none;margin-left:auto;display:inline-flex;align-items:center;height:20px;padding:0 8px;border:1px solid var(--p-teal);border-radius:10px;color:var(--p-teal);font-family:var(--font-mono);font-size:12px}
.rb-page{padding:20px}
.rb-mark{flex:none;width:32px;height:32px;border-radius:6px;background:var(--p-teal);color:#fff;display:grid;place-items:center;font-weight:600;font-size:17px}
.rb-title{font-weight:500;font-size:18px;line-height:1.2}
.rb-sub{font-size:13px;color:var(--p-muted)}
.rb-board{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;align-items:start}
.rb-col{background:var(--p-soft);border-radius:8px;padding:10px;min-height:120px;display:grid;gap:8px;align-content:start;min-width:0}
.rb-col>h4,.rb-col>.rb-col-h{display:flex;align-items:center;justify-content:space-between;gap:6px;font-family:var(--font-mono);font-size:12px;font-weight:500;letter-spacing:.06em;color:var(--p-muted)}
.rb-col .n{font-family:var(--font-mono);font-size:12px;min-width:20px;height:20px;padding:0 6px;display:inline-grid;place-items:center;border-radius:6px;background:#fff;border:1px solid var(--p-line)}
.rb-card{position:relative;background:#fff;border:1px solid var(--p-line);border-radius:8px;padding:10px 12px;box-shadow:0 1px 2px rgba(23,32,42,.05);display:grid;gap:8px;min-width:0}
.rb-card .nm{font-weight:500;font-size:16px;line-height:1.25;overflow-wrap:anywhere}
.rb-card .row{display:flex;align-items:center;gap:8px}
.rb-card .val{font-family:var(--font-mono);font-size:13px;color:var(--p-teal)}
.rb-card .av--sm{margin-left:auto}
.stc{display:inline-flex;align-items:center;height:20px;padding:0 7px;border-radius:5px;font-size:12px;font-weight:500;color:var(--p-ink);white-space:nowrap;background:var(--st-rec)}
.stc--req{background:var(--st-req)} .stc--app{background:var(--st-app)} .stc--ord{background:var(--st-ord)} .stc--rec{background:var(--st-rec)} .stc--dec{background:var(--st-dec)}
@media (max-width:599px){
  .rb-chrome{height:40px;gap:10px}
  .rb-board{grid-template-columns:1fr}
  .rb-col{min-height:0}
}

/* ---------- 13. .code panel ---------- */
.code{position:relative;background:var(--p-code);color:var(--p-code-text);font-family:var(--font-mono);font-size:12.5px;line-height:20px;border-radius:6px;padding:14px 16px;white-space:pre;overflow-x:auto;min-width:0;scrollbar-width:thin}
.code .k{color:var(--p-code-hi)}
.code .s{color:var(--p-code-text)}
.code .hi{color:var(--mint);text-decoration:underline;text-decoration-color:var(--p-code-hi);text-underline-offset:3px}
@media (max-width:599px){.code{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}}

/* ---------- 14. packets + wires ---------- */
.wires{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:4}
.wires path,.wire{fill:none;stroke:var(--line-strong);stroke-width:1}
.pk{position:absolute;left:0;top:0;width:8px;height:8px;margin:-4px 0 0 -4px;border-radius:50%;background:var(--mint);pointer-events:none;z-index:5}
.pk::after{content:"";position:absolute;inset:-6px;border-radius:50%;background:radial-gradient(circle,currentColor 0,transparent 70%);opacity:.35}
.pk--read{background:var(--mint);color:var(--mint)}
.pk--write{background:var(--teal-dk);color:var(--teal-dk)}

/* the packet token: the page's one moving thing, and it always means "work moving". A mint dot with a breathing glow.
   <i class="pkt" aria-hidden="true"><i></i></i>, absolutely placed in a position:relative frame and moved with x/y
   (Ravi.packet with Ravi.arc / Ravi.pt). Ravi.breathe toggles .is-breathing (CSS pulse, paused off screen).
   Static views (reduced motion, no JS, frames) never show it. */
.pkt{position:absolute;left:0;top:0;z-index:6;width:0;height:0;pointer-events:none}
.pkt::before{content:"";position:absolute;left:-4px;top:-4px;width:8px;height:8px;border-radius:50%;background:var(--mint);box-shadow:0 0 0 1.5px var(--teal-dk),0 0 12px rgba(183,246,209,.6)}
.pkt>i{position:absolute;left:-11px;top:-11px;width:22px;height:22px;border-radius:50%;background:var(--mint);opacity:.18}
.pkt.is-breathing>i{animation:pkt-breathe 1.4s cubic-bezier(.39,.575,.565,1) infinite}
@keyframes pkt-breathe{from{transform:scale(1);opacity:.18}to{transform:scale(1.7);opacity:0}}
html:not(.motion) .pkt{display:none}
@media (prefers-reduced-motion:reduce){.pkt.is-breathing>i{animation:none}}

/* ---------- 15. cursor ---------- */
.cur{position:absolute;left:0;top:0;width:24px;pointer-events:none;z-index:8}
.cur svg{width:24px;height:34px;overflow:visible}
.cur path{fill:var(--p-ink);stroke:#fff;stroke-width:1.5;stroke-linejoin:round}
.cur-name{position:absolute;left:14px;top:30px;display:inline-flex;align-items:center;height:20px;padding:0 7px;border-radius:4px;font-family:var(--font-sans);font-size:12px;font-weight:600;white-space:nowrap;background:var(--p-ink);color:#fff}
.cur--bruno .cur-name{background:var(--sand);color:var(--p-ink)}
.cur--carla .cur-name{background:var(--p-teal);color:#fff}
.cur--ana .cur-name{background:var(--p-ink);color:#fff}
.cur-ripple{position:absolute;left:-14px;top:-14px;width:32px;height:32px;border:2px solid var(--p-teal);border-radius:50%;opacity:0;transform:scale(.2)}

/* ---------- 16. gate, skeleton, toast, caution ---------- */
.gate{width:360px;max-width:100%;margin-inline:auto;padding:24px;border:1px solid var(--p-line);border-radius:8px;background:#fff;text-align:center;display:grid;gap:8px;justify-items:center;box-shadow:0 12px 32px rgba(23,32,42,.08);color:var(--p-ink)}
.gate p{font-size:15px}
.gate .btn--teal{margin-top:8px}
.skel{position:relative;overflow:hidden;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.skel-col{background:var(--p-soft);border-radius:8px;padding:10px;display:grid;gap:8px;align-content:start;min-height:120px}
.skel-col i{display:block;height:48px;border:2px dashed var(--p-line);border-radius:8px}
.shimmer{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.shimmer::before{content:"";position:absolute;top:0;bottom:0;left:0;width:40%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.75),transparent);transform:translateX(-100%)}
html.motion .shimmer.is-on::before{animation:shimmer 1.2s linear infinite}
.shimmer.is-paused::before{animation-play-state:paused}
@keyframes shimmer{to{transform:translateX(260%)}}
@media (max-width:599px){.skel{grid-template-columns:1fr}}
.toast{position:absolute;right:16px;bottom:16px;z-index:7;display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 12px;border-radius:6px;background:var(--p-ink);color:#fff;font-family:var(--font-mono);font-size:12px;white-space:nowrap}
.caution{padding:4px 0 4px 16px;border-left:2px solid var(--sand);font-size:15px;line-height:1.55;color:var(--muted)}

/* ---------- 17. segmented controls (radios, work with JS off) ---------- */
/* <div class="seg" role="radiogroup" aria-label="…"><input type="radio" name="g" id="g-a" checked><label for="g-a">A</label>…</div> */
.seg{display:inline-flex;flex-wrap:wrap;gap:0;padding:3px;border:1px solid var(--line-strong);border-radius:6px;background:var(--bg-raised)}
.seg>input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.seg>label{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 14px;border-radius:4px;cursor:pointer;
  font-family:var(--font-mono);font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);transition:color .2s,background-color .2s;white-space:nowrap}
.seg>label:hover{color:var(--text)}
.seg>input:checked+label{background:var(--text);color:var(--bg)}
.seg>input:focus-visible+label{outline:2px solid var(--mint);outline-offset:2px}
.seg>input:disabled+label{opacity:.4;cursor:not-allowed}
.seg--tabs{padding:0;border:0;border-bottom:1px solid var(--line-strong);border-radius:0;background:none;gap:4px}
.seg--tabs>label{border-radius:0;min-height:44px;padding:0 14px;position:relative}
.seg--tabs>input:checked+label{background:none;color:var(--text)}
.seg--tabs>input:checked+label::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--mint)}
@media (pointer:coarse),(max-width:599px){.seg>label{min-height:44px}}
@media (max-width:599px){.seg--full{display:flex;width:100%}.seg--full>label{flex:1 1 0;padding:0 8px}}

/* ---------- 19. footer ---------- */
.foot{min-height:70vh;display:flex;align-items:center;padding-block:96px 48px;overflow:hidden;
  background-image:linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px);background-size:var(--grid) var(--grid);background-position:-1px -1px}
.foot::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(13,13,13,.55),rgba(13,13,13,.92) 70%);pointer-events:none}
.foot-in{position:relative;display:grid;gap:32px}
.foot-head{display:flex;align-items:flex-start;gap:clamp(16px,2.4vw,32px)}
.foot-sq{flex:none;width:20px;height:20px;background:var(--mint);margin-top:.18em;margin-top:clamp(10px,1.6vw,22px)}
.foot-small{font-family:var(--font-mono);font-size:12px;letter-spacing:.14em;color:var(--quiet)}
html.motion .foot-sq{transform:scale(0)}
html.motion .foot-say,html.motion .foot-ins,html.motion .foot-btns,html.motion .foot-small{opacity:0;transform:translateY(12px)}
@media (max-width:599px){
  .foot{min-height:60svh;padding-block:72px 40px}
  .foot .hl--hero{font-size:clamp(34px,10.2vw,40px);line-height:.88}
  .foot-sq{margin-top:6px;width:16px;height:16px}
}

/* ---------- 20. reduced motion: belt and braces ---------- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
html.motion .shimmer.is-on.is-paused::before{animation-play-state:paused}

/* PT-BR headlines carry accents (Á, Ã, Ç) and Q tails: the mask and its line grow by the same amount above and below
   (layout unchanged), so the marks sit inside the moving line and inside the clip */
html[lang="pt-BR"] .mask{padding-top:.18em;margin-top:-.18em;padding-bottom:.14em;margin-bottom:-.14em}
html[lang="pt-BR"] .mask>.in{padding-top:.18em;margin-top:-.18em}
/* a flex column keeps those negative margins from collapsing into each other, so the line spacing stays as authored */
html[lang="pt-BR"] .hl:not(.sd-hl){display:flex;flex-direction:column}
html[lang="pt-BR"] #tools-h .mask+.mask{margin-top:-.04em}   /* 01-tools.css adds .14em between its lines */

/* ===== 00-top.css ===== */
/* 00 · #top hero: AGENTS FOR SLACK.
   The figure is one Slack thread (.tv-win, the base .sk-win with no sidebar) and the agent rail (.tv-rail) beside it.
   Every agent message is posted by the one Ravi bot (.av--ravi + APP); the agents only appear in the rail.
   ≥1024: the rail is a column right of the window, each chip level with the message it posts (CSS subgrid, so it
   holds without JS), joined to the window by a 1px hairline. <1024: the rail is one row of chips on the page just
   above the window's top edge, each joined to it by a short hairline. The authored HTML is the end state; the html.motion rules at the bottom are the scene's start. */
.sec--top{padding-top:clamp(28px,5vh,56px);padding-bottom:clamp(72px,10vh,120px)}
/* --hk scales the headline per language (i18n top.h_scale): its longest line has to fit the column */
#top .hl--hero{margin-top:16px;font-size:calc(clamp(4.2rem,11vw,9.5rem) * var(--hk,1))}
@media (max-width:599px){ #top .hl--hero{font-size:calc(clamp(36px,10.7vw,44px) * var(--hk,1))} }
.top-row{display:grid;grid-template-columns:minmax(0,1fr) 640px;column-gap:48px;margin-top:28px;align-items:start}
.top-copy{display:grid;gap:22px;align-content:start;padding-top:6px;min-width:0}
.top-say,.top-go{display:grid;align-content:start;min-width:0}
.top-lead{max-width:30em}
.top-links{display:flex;flex-wrap:wrap;gap:0 28px;margin-top:-6px}
.top-vis{position:relative;min-width:0}

/* ---------- the figure ---------- */
.tv{--rail-gap:40px;position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:var(--rail-gap);
  grid-template-rows:auto auto auto auto auto;width:640px}
/* the window and its message list share the figure's rows, so a rail chip in row 3, 4 or 5 sits level with message 2, 3 or 4 */
.tv-win{grid-column:1;grid-row:1/-1;display:grid;grid-template-rows:subgrid;grid-template-columns:minmax(0,1fr)}
.tv-win>.sk-main{grid-row:1/-1;display:grid;grid-template-rows:subgrid;min-width:0}
.tv-win .sk-hd{grid-row:1;justify-content:flex-start}
.tv-msgs{grid-row:2/-1;display:grid;grid-template-rows:subgrid;gap:0;padding:8px 0 12px}
.tv-m{position:relative;padding-block:8px}
.tv-m .sk-meta{margin-bottom:1px}
.tv-type{display:inline-block;max-width:100%}

/* the agent rail: dark chips outside the window chrome */
.tv-rail{grid-column:2;grid-row:1/-1;display:grid;grid-template-rows:subgrid;justify-items:start}
.tv-ag{position:relative;align-self:start;margin-top:12px}
.tv-ag:nth-child(1){grid-row:3}
.tv-ag:nth-child(2){grid-row:4}
.tv-ag:nth-child(3){grid-row:5}
/* the chip's ring follows --lit (Ravi.lit), like the dot's glow */
.tv-ag::after{content:"";position:absolute;inset:-1px;border-radius:inherit;border:1px solid var(--dot);opacity:var(--lit);pointer-events:none}
/* the hairline back to the window; its mint overlay follows --lit too */
.tv-hair{position:absolute;right:100%;top:50%;width:var(--rail-gap);height:1px;background:var(--line-strong);pointer-events:none}
.tv-hair::after{content:"";position:absolute;inset:0;background:var(--dot);opacity:calc(var(--lit) * .7)}
@supports not (grid-template-rows:subgrid){
  .tv-win,.tv-win>.sk-main,.tv-msgs{display:block}
  .tv-rail{display:flex;flex-direction:column;gap:32px;padding-top:120px}
}

/* typing hint: three dots in the message's place before it posts (motion only; invisible at rest) */
.tv-dots{position:absolute;left:66px;top:12px;display:flex;align-items:center;gap:4px;height:24px;padding:0 10px;border-radius:12px;background:var(--p-soft);border:1px solid var(--p-line);opacity:0;pointer-events:none}
.tv-dots>i{width:5px;height:5px;border-radius:50%;background:var(--p-muted)}

/* the packet (.pkt from 00-base.css) travels over the window and the rail */
.tv-pk{z-index:6}

/* short desks (a 1280×720 laptop, a browser window under 780px tall): the headline is capped by the viewport
   height and the top spacing tightens. Taller desks keep the clamp (17vh is above it from 1440×900 and 1100×800 up). */
@media (min-width:1024px){ #top .hl--hero{font-size:calc(min(clamp(4.2rem,11vw,9.5rem),17vh) * var(--hk,1))} }
@media (min-width:1024px) and (max-height:780px){
  .sec--top{padding-top:20px}
  #top .hl--hero{margin-top:12px}
  .top-row{margin-top:28px}
}

/* compact desktop: the same two columns, the figure a little narrower */
@media (min-width:1024px) and (max-width:1279px){
  .top-row{grid-template-columns:minmax(0,1fr) 600px;column-gap:40px}
  .tv{width:600px}
}

/* <1024: the rail becomes one row of dark chips on the page, just above the window's top edge (outside the chrome,
   so it never reads as Slack UI), each joined to the window by a short vertical hairline. The window takes the
   width (640 at most) and is the same window as on desk. */
@media (max-width:1023px){
  .top-row{grid-template-columns:minmax(0,1fr)}
  .top-vis{justify-self:stretch;width:100%;max-width:640px;margin-inline:auto;margin-top:36px}
  .tv{--rail-gap:14px;display:flex;flex-direction:column;width:100%}
  .tv-win,.tv-win>.sk-main{display:flex;flex-direction:column}
  .tv-win .sk-hd{height:44px}
  .tv-msgs{display:grid;padding:8px 0 10px}
  .tv-rail{order:-1;display:flex;flex-direction:row;align-items:center;gap:8px;margin:0 0 var(--rail-gap);padding:0 18px}
  .tv-ag{margin-top:0;height:30px;font-size:13px}
  .tv-hair{right:auto;left:calc(50% - .5px);top:100%;width:1px;height:calc(var(--rail-gap) + 1px)}
}
@media (max-width:599px){
  .top-vis{margin-top:30px}
  .tv-win .sk-hd{padding:0 14px}
  .tv-rail{padding:0 14px;gap:8px}
  .tv-ag{padding:0 10px 0 9px;gap:7px}
  .tv-m{grid-template-columns:32px minmax(0,1fr);gap:10px;padding:8px 14px}
  .tv-m>.av{width:32px;height:32px;font-size:14px}
  .tv-m .sk-meta,.tv-m .sk-text{font-size:15px}
  .tv-dots{left:56px;top:11px}
}

/* ---------- load choreography ----------
   Copy and window: CSS keyframes that start at first paint (transform and opacity only), so the first screen never
   waits for the scripts, the web fonts or the other sections' builds, and a rebuild never restarts them.
   The thread: js/00-top.js plays it from these starting states (desk and touch both clear them). Without .motion
   (reduced, frames, no JS, GSAP failed) none of this applies and the end state shows. */
@keyframes top-rise{from{transform:translateY(110%)}to{transform:none}}
@keyframes top-up{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes top-win{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
@keyframes top-fade{from{opacity:0}to{opacity:1}}
html.motion #top .hl .in{transform:none;animation:top-rise .65s cubic-bezier(.16,1,.3,1) .1s both}
html.motion #top .hl .mask:nth-child(2) .in{animation-delay:.22s}
html.motion #top .hl .mask:nth-child(3) .in{animation-delay:.34s}
html.motion #top .eyebrow{animation:top-fade .4s ease-out .05s both}
html.motion #top .top-lead{animation:top-up .5s cubic-bezier(.33,1,.68,1) .45s both}
html.motion #top .top-links{animation:top-up .5s cubic-bezier(.33,1,.68,1) .6s both}
html.motion #top .tv-win{animation:top-win .65s cubic-bezier(.16,1,.3,1) .5s both}
html.motion #top .tv-rail{animation:top-fade .5s ease-out .75s both}

/* the thread's start: Ana's words, messages 2–4, the chips unlit, no packet */
html.motion #top .tv-type{opacity:0}
html.motion #top .tv-m[data-ag]{opacity:0;transform:translateY(12px)}
html.motion #top .tv-ag{--lit:0}
html.motion #top .tv-pk{opacity:0}

/* ===== 01-tools.css ===== */
/* 01 · #tools: Ravi Pages + Ravi Bases (prefix tl-).
   The figure: the table card (RAVI BASES) and the page it feeds (RAVI PAGES), a board of three columns.
     ≥1024  side by side: the table on the left, level with the board; the page on the right.
     ≤1023  stacked (max 640, centred): the table on top, the page under it. Below 600 the board drops ORDERED.
   The HTML is the end state (every card in its column, the page drawn). Under html.motion the cards, the chrome, the
   page fill and the outline start hidden; js/01-tools.js clears them in desk (scrubbed) and touch (once on enter). */

/* the headline: line 1 ends on a comma whose tail, at the display leading (.86), lands on YOUR's O and reads as an
   accent ("YÓUR"). Line 2 sits .14em lower, which leaves a clear gap under the tail (at .08em it still nearly
   touched); the comma stays whole inside its own mask. Only this break opens up: a wrap inside line 2 (phones)
   keeps the display leading. */
#tools-h .mask+.mask{margin-top:.14em}

#tools .tl-fig{position:relative;display:grid;grid-template-columns:clamp(280px,30vw,400px) minmax(0,1fr);column-gap:clamp(40px,5vw,80px);align-items:start;margin:0}
#tools .tl-side{position:relative;min-width:0;display:flex;flex-direction:column;align-items:flex-start}
#tools .tl-side--base{z-index:1;margin-top:104px}
#tools .tl-side--page{z-index:2}

/* the folder tab over each card */
#tools .tl-tab{display:inline-flex;align-items:center;height:26px;padding:0 10px;margin-bottom:-1px;border:1px solid var(--line-strong);border-bottom:0;border-radius:5px 5px 0 0;
  background:var(--bg-raised);font-family:var(--font-mono);font-size:12px;line-height:1;letter-spacing:.16em;color:var(--muted);white-space:nowrap}

/* ---------- the table card (Ravi Bases) ---------- */
#tools .tl-base{align-self:stretch;padding:4px 0 8px;background:var(--p-bg);border:1px solid var(--p-line);border-radius:0 10px 10px 10px;box-shadow:0 24px 60px rgba(0,0,0,.35)}
#tools .tl-tbl{display:grid;font-size:15px;line-height:1.3;color:var(--p-ink)}
#tools .tl-tr{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 64px 96px;column-gap:12px;align-items:center;min-height:46px;padding:0 16px}
#tools .tl-tr>span{position:relative;z-index:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#tools .tl-tr>span:nth-of-type(2),#tools .tl-tr>span:nth-of-type(3){text-align:right}
#tools .tl-row+.tl-row{border-top:1px solid var(--p-line)}
#tools .tl-th{min-height:38px;border-bottom:1px solid var(--p-line);font-family:var(--font-mono);font-size:12px;letter-spacing:.04em;color:var(--p-muted)}
#tools .tl-num{font-family:var(--font-mono);font-size:13px;color:var(--p-teal);font-variant-numeric:tabular-nums}
/* the row a card lifts from lights up for a moment (motion only; 0 at rest) */
#tools .tl-hl{position:absolute;inset:4px 8px;border-radius:6px;background:var(--p-teal-wash);box-shadow:inset 0 0 0 1px rgba(20,99,90,.28);opacity:0;pointer-events:none}

/* ---------- the page (Ravi Pages): a drawn browser with an empty address bar ---------- */
#tools .tl-br{align-self:stretch;overflow:visible;border-radius:0 8px 8px 8px}
#tools .tl-bg{position:absolute;inset:0;z-index:-1;border-radius:inherit;background:var(--p-bg)}
#tools .tl-chrome{border-radius:0 7px 0 0}
#tools .tl-chrome .rb-url{flex:0 1 360px}
#tools .tl-page{padding:18px 20px 20px}
#tools .tl-title{margin-bottom:14px}
#tools .tl-board{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
#tools .tl-col{align-content:start;min-height:0}
#tools .tl-colh{justify-content:flex-start;gap:8px;min-height:20px}
#tools .tl-dot{flex:none;width:8px;height:8px;border-radius:2px}
#tools .tl-dot--req{background:#d6a94a}
#tools .tl-dot--app{background:var(--p-teal)}
#tools .tl-dot--ord{background:#4a7bd0}
#tools .tl-slot{position:relative;z-index:4;min-width:0}
#tools .tl-card{gap:6px;--shd:0}
/* the bow of a card's (and the packet's) hop: js/01-tools.js tweens --bx/--by, 0 at rest */
#tools .tl-card,#tools .tl-pk{translate:var(--bx,0px) var(--by,0px)}
#tools .tl-card .nm{font-size:15px}
#tools .tl-card .row{min-height:20px}
/* the lift shadow while a card flies (driven by --shd, 0 at rest) */
#tools .tl-card::after{content:"";position:absolute;inset:-1px;border-radius:inherit;box-shadow:0 16px 34px rgba(23,32,42,.3),0 3px 8px rgba(23,32,42,.14);opacity:var(--shd);pointer-events:none}

/* the outline the page draws itself with (motion only: the CSS border stands in everywhere else) */
#tools .tl-ol{position:absolute;left:-1px;top:-1px;z-index:3;width:calc(100% + 2px);height:calc(100% + 2px);overflow:visible;pointer-events:none}
#tools .tl-ol path{fill:none;stroke:var(--p-line);stroke-width:1.5;stroke-dasharray:1;stroke-dashoffset:0}
html:not(.motion) #tools .tl-ol{display:none}
html.motion #tools .tl-br{border-color:transparent;background:transparent}

/* ---------- motion: hidden starting states (desk and touch builders clear them all) ---------- */
html.motion #tools .tl-ol path{stroke-dashoffset:1}
html.motion #tools .tl-bg,html.motion #tools .tl-chrome,html.motion #tools .tl-title,html.motion #tools .tl-card,html.motion #tools .tl-pk{opacity:0}

/* ---------- 1024–1279: a narrower table, so "Standing desk" still fits ---------- */
@media (min-width:1024px) and (max-width:1279px){
  #tools .tl-tr{grid-template-columns:minmax(0,1fr) 50px 86px;column-gap:8px;padding:0 12px}
}

/* ---------- ≤1023: stacked, the table on top ---------- */
@media (max-width:1023px){
  #tools .tl-fig{grid-template-columns:minmax(0,1fr);row-gap:40px;max-width:640px;margin-inline:auto}
  #tools .tl-side--base{margin-top:0}
  #tools .tl-base{align-self:stretch}
}
@media (max-width:599px){
  #tools .tl-fig{row-gap:32px}
  #tools .tl-tr{grid-template-columns:minmax(0,1fr) 56px 92px;column-gap:10px;padding:0 14px}
  #tools .tl-page{padding:14px 12px 14px}
  #tools .tl-chrome{padding:0 12px}
  #tools .tl-board{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  #tools .tl-col{padding:8px}
  #tools .tl-col--ord{display:none}
  #tools .tl-card{padding:9px 10px}
}

/* ===== 02-slack.css ===== */
/* 02 · #slack: APPROVE IN SLACK. THE PAGE UPDATES.
   One composed stage: the hand (the #finance card from the one Ravi bot, with a Form and a Canvas fanned behind it)
   on the left, the board on the right; stacked under 1024. The authored HTML is the decided state.
   Two attributes on the section pick what shows (JS sets them; with none, motion means "waiting" and every static
   view means "decided"):
   - data-st  wait | done   the card's buttons, or its stamp
   - data-sb  req  | out    the board card in REQUESTED, or in APPROVED (DECLINED)
   data-o="decline" turns the stamp rust, data-bo="decline" the board's second column. */

#slack .ck-stage{position:relative;display:grid;grid-template-columns:minmax(0,1fr);gap:32px;min-width:0}

/* ---------- the hand: two ghost cards fanned behind the Slack card ----------
   The ghosts are Slack surfaces behind the card, not disabled ones: light faces with a softer shadow than the card's,
   only their contents dimmed. Desk: smaller than the card and tucked behind it; the Form shows its title, a field and
   its Submit, the Canvas its two lines. Under 1024 only their title rows show above the card's top edge. */
#slack .ck-hand{--py:44px;--sx:0px;--gw:46%;--gx:5%;position:relative;isolation:isolate;padding:var(--py) var(--sx) 0;min-width:0}
#slack .ck-win{position:relative;z-index:1;box-shadow:0 30px 70px rgba(0,0,0,.45)}
#slack .sl-ghost{--rot:0deg;position:absolute;top:0;z-index:0;width:var(--gw);pointer-events:none;min-width:0;
  transform:rotate(var(--rot));transform-origin:50% 50%}
#slack .sl-ghost--form{--rot:-6deg;left:var(--gx)}
#slack .sl-ghost--canvas{--rot:5deg;right:var(--gx)}
/* motion: both start hidden behind the card; the deal (js/02-slack.js) slides them up and fans them out */
html.motion #slack .sl-ghost{opacity:0;transform:translateY(40px)}

/* the Form (a trimmed .gk-modal) and the Canvas (a trimmed .gk-doc), lifted from 06-blockkit */
#slack .sl-ghost .gk-modal,#slack .sl-ghost .gk-doc{overflow:hidden;background:var(--p-bg);border:1px solid var(--p-line);border-radius:8px;
  box-shadow:0 10px 26px rgba(0,0,0,.24);color:var(--p-ink);font-family:var(--font-sans)}
#slack .sl-ghost .gk-modal>*,#slack .sl-ghost .gk-doc>*{opacity:.62}
#slack .sl-ghost .gk-modal{display:grid;align-content:start;height:100%}
#slack .sl-ghost .gk-md-hd{padding:11px 14px;border-bottom:1px solid var(--p-line);font-weight:600;font-size:15px;line-height:1.3;white-space:nowrap}
#slack .sl-ghost .gk-md-bd{display:grid;gap:8px;align-content:start;padding:12px 14px}
#slack .sl-ghost .gk-md-in{display:block;width:100%;height:26px;border:1px solid var(--p-line);border-radius:5px;background:#fff}
#slack .sl-ghost .gk-md-in--tall{height:44px}
/* Submit sits at the left, where the Form shows past the card */
#slack .sl-ghost .gk-md-ft{display:flex;justify-content:flex-start;padding:8px 14px 10px;border-top:1px solid var(--p-line)}
#slack .sl-ghost .gk-md-ft .bk-btn{height:28px;padding:0 12px;font-size:13px}
#slack .sl-ghost .gk-doc{position:relative;isolation:isolate;display:grid;gap:6px;align-content:start;height:100%;padding:15px 18px 18px}
#slack .sl-ghost .gk-d1{font-size:20px;line-height:1.2;font-weight:600;letter-spacing:-.01em;white-space:nowrap}
#slack .sl-ghost .gk-dp{font-size:14px;line-height:1.3;white-space:nowrap}
#slack .sl-ghost .gk-n{position:relative;--fl:0;font-weight:600;font-variant-numeric:tabular-nums}
#slack .sl-ghost .gk-n::before{content:"";position:absolute;inset:-2px -4px;z-index:-1;border-radius:3px;background:rgba(20,99,90,.16);opacity:var(--fl);pointer-events:none}

/* ---------- the #finance card ---------- */
#slack .ck-win .sk-hd{height:42px}
#slack .ck-win .sk-msgs{padding:10px 0 14px}
#slack .ck-msg{min-width:0}
#slack .ck-msg .bk{gap:12px}
/* the buttons and the stamp share one cell, so the card keeps its height when one replaces the other */
#slack .ck-act{display:grid;grid-template-areas:"a";align-items:center;min-height:32px}
#slack .ck-act>*{grid-area:a;min-width:0}
#slack .ck-wait{align-items:center}
#slack .ck-done{display:flex;align-items:center;gap:8px;justify-self:start;font-size:15px;line-height:1.4;outline-offset:4px;border-radius:2px;transform-origin:0 50%}
#slack .ck-done:focus:not(:focus-visible){outline:none}
/* the stamp takes focus the moment it shows: reduced motion's global .01ms transitions would keep it hidden for a frame */
#slack .ck-done{transition-property:none}
#slack .ck-mk{flex:none;width:20px;height:20px;overflow:visible}
#slack .ck-mk circle{fill:var(--p-teal-wash);stroke:var(--p-teal);stroke-width:1.2}
#slack .ck-mk path{fill:none;stroke:var(--p-teal);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#slack .ck-mk-no{display:none}
#slack[data-o="decline"] .ck-mk circle{fill:var(--p-rust-wash);stroke:var(--p-rust)}
#slack[data-o="decline"] .ck-mk path{stroke:var(--p-rust)}
#slack[data-o="decline"] .ck-mk-ok{display:none}
#slack[data-o="decline"] .ck-mk-no{display:inline}
#slack .ck-men{padding:0 3px;border-radius:3px;background:var(--p-teal-wash);color:var(--p-teal);font-weight:500}

/* ---------- the board ---------- */
#slack .ck-br{min-width:0;box-shadow:0 30px 70px rgba(0,0,0,.4)}
#slack .ck-br .rb-url{flex:0 1 280px;padding:0}
#slack .ck-page{padding:16px 16px 18px}
#slack .ck-page .rb-title{margin-bottom:14px;font-size:17px}
#slack .ck-board{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#slack .ck-col{min-height:0}
#slack .ck-ch{display:inline-flex;align-items:center;gap:6px;min-width:0}
#slack .ck-dot{flex:none;width:8px;height:8px;border-radius:2px}
#slack .ck-dot--req{background:#d6a94a}
#slack .ck-dot--out{background:var(--p-teal)}
#slack[data-bo="decline"] .ck-dot--out{background:var(--p-rust)}
#slack .ck-slot{position:relative;display:grid;grid-template-areas:"c";min-height:72px;border:2px dashed var(--p-line);border-radius:8px}
#slack .ck-slot>.rb-card{grid-area:c;position:relative;z-index:1;margin:-2px}
#slack .ck-bc .nm{font-size:15px}

/* ---------- what shows: the buttons or the stamp, the board card's column ---------- */
html.motion #slack:not([data-st="done"]) .ck-done,
html:not(.motion) #slack:not([data-st="wait"]) .ck-wait,
#slack[data-st="done"] .ck-wait,
#slack[data-st="wait"] .ck-done{visibility:hidden}
html.motion #slack:not([data-sb="out"]) .ck-bc--out,
html:not(.motion) #slack:not([data-sb="req"]) .ck-bc--req,
#slack[data-sb="out"] .ck-bc--req,
#slack[data-sb="req"] .ck-bc--out{visibility:hidden}

/* ---------- the packet and Carla's cursor (motion only) ---------- */
#slack .ck-pk{z-index:7}
html.motion #slack .ck-pk{opacity:0}
#slack .ck-cur{opacity:0;visibility:hidden;z-index:8}

/* ---------- desk ≥1024: the hand on the left, the board on the right ---------- */
@media (min-width:1024px){
  #slack .ck-stage{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);column-gap:clamp(48px,5vw,80px);align-items:end}
  /* the Form sits 12px in from the hand's left side, so its tilted corner never crosses the page gutter; the Canvas
     sits over the card's right half, 18px past its edge, and reaches down behind it */
  #slack .ck-hand{--py:96px;--sx:clamp(92px,8vw,116px);--gw:clamp(208px,17vw,236px);--gx:12px}
  #slack .sl-ghost--form{top:14px}
  #slack .sl-ghost--canvas{top:20px;right:calc(var(--sx) - 18px);height:120px}
  #slack .ck-br{margin-bottom:6px}
}
@media (min-width:1024px) and (max-width:1279px){
  /* the card is narrower here: Submit moves left so it stays clear of the card's edge */
  #slack .sl-ghost .gk-md-ft{padding-left:8px}
  #slack .sl-ghost .gk-md-ft .bk-btn{padding:0 9px}
}

/* ---------- touch layouts ≤1023: the card above the board; the ghosts' title rows peek above the card ---------- */
@media (max-width:1023px){
  #slack .ck-stage{max-width:640px;margin-inline:auto}
  #slack .sl-ghost{height:96px}
  #slack .sl-ghost--form{--rot:-4deg}
  #slack .sl-ghost--canvas{--rot:4deg;top:2px}
  #slack .sl-ghost .gk-md-hd{padding:10px 14px}
  #slack .sl-ghost .gk-doc{padding:10px 14px}
  #slack .sl-ghost .gk-d1{font-size:16px;line-height:1.3}
  /* everything under the title rows sits behind the card: hidden, so no ghost text crosses the card's edge */
  #slack .sl-ghost .gk-md-bd,#slack .sl-ghost .gk-md-ft,#slack .sl-ghost .gk-dp{visibility:hidden}
}
@media (max-width:599px){
  #slack .ck-stage{gap:28px}
  #slack .ck-hand{--py:42px;--gw:47%;--gx:3%}
  #slack .sl-ghost .gk-md-hd{padding:10px 12px;font-size:14px}
  #slack .sl-ghost .gk-doc{padding:10px 12px}
  #slack .sl-ghost .gk-d1{font-size:15px}
  #slack .ck-win .sk-hd{padding:0 14px}
  #slack .ck-win .sk-msg{grid-template-columns:32px minmax(0,1fr);gap:10px;padding:8px 14px}
  #slack .ck-win .sk-msg>.av{width:32px;height:32px}
  #slack .ck-act{min-height:44px}
  #slack .ck-act .bk-btn{height:44px;padding:0 18px}
  #slack .ck-br .rb-chrome{height:40px}
  #slack .ck-page{padding:14px 12px 14px}
  #slack .ck-board{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  #slack .ck-board .rb-col{padding:8px}
  #slack .ck-bc{padding:9px 10px}
}
@media (pointer:coarse){#slack .ck-act{min-height:44px}}

/* ===== 03-scale.css ===== */
/* 03 · #scale: ONE PERSON OR THE WHOLE ORG.
   Motion (desk, touch): the toggle and three counters on top; under them one wall of four slots (2×2 under 1024).
   Just me fills the first two slots, The whole org all four; the two tile lists and the empty slots share one grid
   cell, so the flip is transforms and opacity only (js/03-scale.js). .sc[data-view] mirrors the checked radio.
   Static (reduced, frames, no JS): the two panels side by side (stacked under 1024), each with a heading and its own
   counters, and no toggle (both views already show).
   An in-page link (TEAMS) lands with the eyebrow 56px under the header, a little lower than the other sections, so
   the headline, the toggle and the whole wall sit on screen together; the desk scrub ends there (js/03-scale.js). */

#scale{--th:196px;--tg:24px;scroll-margin-top:calc(40px - var(--sec-pad) - var(--bar))}
#scale .sc{position:relative}

/* ---------- the bar: toggle + counters ---------- */
#scale .sc-bar{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:24px 48px;padding-bottom:28px;margin-bottom:32px;border-bottom:1px solid var(--line)}
#scale .sc-seg{position:relative;display:grid;grid-template-columns:1fr 1fr;width:100%;max-width:360px}
#scale .sc-seg>label{position:relative;z-index:1;min-height:44px;padding:0 10px}
#scale .sc-thumb{display:none}
html.motion #scale .sc-thumb{display:block;font-style:normal;position:absolute;left:3px;top:3px;bottom:3px;width:calc(50% - 3px);border-radius:4px;background:var(--text);z-index:2;pointer-events:none;overflow:hidden}
html.motion #scale .sc-thumb-in{font-style:normal;position:absolute;left:0;top:0;bottom:0;width:200%;display:grid;grid-template-columns:1fr 1fr}
/* the thumb carries its own copy of the two labels (as generated content, so it is never read or counted twice) */
html.motion #scale .sc-thumb-in>b{font-style:normal;display:flex;align-items:center;justify-content:center;padding:0 10px;font-family:var(--font-mono);font-size:12px;font-weight:400;letter-spacing:.1em;text-transform:uppercase;color:var(--bg);white-space:nowrap}
html.motion #scale .sc-thumb-in>b::before{content:attr(data-t)}
html.motion #scale .sc[data-view="org"] .sc-thumb{transform:translateX(100%)}
html.motion #scale .sc[data-view="org"] .sc-thumb-in{transform:translateX(-50%)}
html.motion #scale .sc-seg>input:checked+label{background:transparent;color:var(--muted)}

#scale .sc-hud{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0}
#scale .sc-hud--bar{flex:0 1 480px;min-width:0}
#scale .sc-k{display:grid;gap:8px;align-content:start;min-width:0;padding:2px 0 2px 16px;border-left:1px solid var(--line-strong)}
#scale .sc-k dt{font-family:var(--font-mono);font-size:12px;line-height:1.2;letter-spacing:.16em;text-transform:uppercase;color:var(--quiet)}
#scale .sc-k dd{margin:0;font-family:var(--font-sans);font-weight:500;font-size:28px;line-height:1;letter-spacing:-.02em;color:var(--sand);font-variant-numeric:tabular-nums}

/* ---------- tiles (light) ---------- */
#scale .sc-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--tg)}
#scale .sc-li{display:flex;min-width:0}
#scale .sc-tile{display:flex;flex-direction:column;gap:12px;flex:1 1 auto;width:100%;min-height:var(--th);padding:16px;border:1px solid var(--p-line);border-radius:10px;
  background:var(--p-bg);color:var(--p-ink);font-family:var(--font-sans);box-shadow:0 18px 44px rgba(0,0,0,.3)}
#scale .sc-t-lab{font-size:15px;font-weight:600;line-height:1.25;color:var(--p-ink)}
#scale .sc-t-art{position:relative;flex:1 1 auto;min-height:72px}

/* calendar: two entries */
#scale .sc-cal{display:grid;gap:8px;align-content:center}
#scale .sc-cal>li{display:block;padding:8px 10px;border-left:3px solid var(--p-teal);border-radius:5px;background:var(--p-teal-wash);font-size:14px;line-height:1.35;color:var(--p-ink)}
#scale .sc-cal-d{font-family:var(--font-mono);font-size:13px;font-weight:500;color:var(--p-teal)}
#scale .sc-cal-s{white-space:pre;color:var(--p-muted)}
/* morning brief: a message from the Ravi bot */
#scale .sc-dm{display:grid;grid-template-columns:32px minmax(0,1fr);gap:10px;align-content:center;align-items:start}
#scale .sc-dm>.av{width:32px;height:32px;border-radius:7px}
#scale .sc-dm-t{font-size:15px;line-height:1.45;color:var(--p-ink);text-wrap:pretty}
/* purchase requests: a mini board */
#scale .sc-kb{display:flex;gap:6px;align-items:stretch}
#scale .sc-kb-col{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:5px;padding:7px 5px 5px;border-radius:5px;background:var(--p-soft);border-top:3px solid var(--kb)}
#scale .sc-kb--req{--kb:#d9a92b} #scale .sc-kb--app{--kb:#2f9a8a} #scale .sc-kb--ord{--kb:#4a78c2}
#scale .sc-kb-col>i{display:block;height:15px;border-radius:3px;background:#fff;border:1px solid var(--p-line)}
/* sales pipeline: bars, no labels */
#scale .sc-dash{display:flex;align-items:flex-end;gap:8px;padding:0 4px;border-bottom:1px solid var(--p-line)}
#scale .sc-dash>i{flex:1 1 0;height:calc(var(--h) * 100%);border-radius:3px 3px 0 0;background:var(--p-teal);opacity:calc(.45 + var(--h) * .55)}
/* report a bug: two fields and a send block */
#scale .sc-form{display:grid;grid-template-columns:minmax(0,1fr) 64px;grid-template-rows:auto auto;gap:8px;align-content:center}
#scale .sc-field{grid-column:1/-1;height:22px;border:1px solid var(--p-line);border-radius:4px;background:#fff}
#scale .sc-field--lg{grid-column:1;height:40px}
#scale .sc-send{grid-column:2;align-self:end;height:28px;border-radius:4px;background:var(--p-teal)}
/* hiring: a funnel, no labels */
#scale .sc-fun{display:grid;gap:6px;align-content:center;justify-items:center}
#scale .sc-fun>i{display:block;height:24px;width:calc(var(--w) * 100%);border-radius:3px;background:var(--p-teal)}
#scale .sc-fun>i:nth-child(2){background:#2f8a7e} #scale .sc-fun>i:nth-child(3){background:#4f9f93}

/* ---------- motion: one wall; the slots, Just me and The whole org share one grid cell ---------- */
html.motion #scale .sc-panels{display:grid;grid-template-areas:"w"}
html.motion #scale .sc-panels>*{grid-area:w;min-width:0}
html.motion #scale .sc-panel--org{z-index:1}
#scale .sc-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--tg)}
#scale .sc-slots>i{display:block;min-height:var(--th);border:1px dashed var(--line-strong);border-radius:10px}
/* the empty slots show only while the wall changes (the flip fades them in; the org tiles cover them) */
html.motion #scale .sc-slots{opacity:0}
html.motion #scale .sc-tiles--me{align-content:start}
/* the whole org's tiles wait for the flip (desk and touch both set them) */
html.motion #scale .sc-tiles--org>li{opacity:0}

/* ---------- static (reduced, frames, no JS): both panels, each with its heading; the toggle would only repeat them ---------- */
html:not(.motion) #scale .sc-bar{display:none}
html:not(.motion) #scale .sc-panels{display:flex;gap:48px;align-items:flex-start}
html:not(.motion) #scale .sc-panel{display:grid;gap:24px;align-content:start;min-width:0;padding-top:28px;border-top:1px solid var(--line)}
html:not(.motion) #scale .sc-panel--me{flex:1 1 0}
html:not(.motion) #scale .sc-panel--org{flex:2 1 0}
html:not(.motion) #scale .sc-tiles--me{grid-template-columns:repeat(2,minmax(0,1fr))}
#scale .sc-ph{display:flex;align-items:center;gap:12px;font-family:var(--font-sans);font-weight:500;font-size:24px;line-height:1.1;letter-spacing:-.02em;text-transform:uppercase;color:var(--text)}
#scale .sc-ph::before{content:"";flex:none;width:10px;height:10px;background:var(--sand)}
#scale .sc-hud--panel{max-width:420px}

/* ---------- compact desktop 1024–1279 ---------- */
@media (min-width:1024px) and (max-width:1279px){
  #scale{--th:184px;--tg:20px}
  #scale .sc-tile{padding:14px}
  html:not(.motion) #scale .sc-panel--org{flex:1 1 0}
  html:not(.motion) #scale .sc-tiles--org{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ---------- under 1024: full-width toggle, one row of counters, a 2×2 wall ---------- */
@media (max-width:1023px){
  #scale{--th:156px;--tg:12px}
  #scale .sc{max-width:640px;margin-inline:auto}
  #scale .sc-bar{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;padding-bottom:22px;margin-bottom:24px}
  #scale .sc-seg{max-width:none}
  #scale .sc-hud--bar{flex:none}
  #scale .sc-tiles,#scale .sc-slots{grid-template-columns:repeat(2,minmax(0,1fr))}
  #scale .sc-tile{gap:10px;padding:13px}
  #scale .sc-t-lab{font-size:14px}
  #scale .sc-t-art{min-height:64px}
  html:not(.motion) #scale .sc-panels{flex-direction:column;gap:48px;align-items:stretch}
  html:not(.motion) #scale .sc-panel{padding-top:24px}
}
@media (max-width:599px){
  #scale .sc-k{padding-left:12px}
  #scale .sc-k dd{font-size:26px}
  #scale .sc-ph{font-size:20px}
  #scale .sc-cal>li{padding:6px 8px;font-size:13px}
  #scale .sc-cal-d{font-size:12px}
  #scale .sc-dm{grid-template-columns:26px minmax(0,1fr);gap:8px}
  #scale .sc-dm>.av{width:26px;height:26px;border-radius:6px}
  #scale .sc-dm-t{font-size:14px;line-height:1.4}
  #scale .sc-kb{gap:4px}
  #scale .sc-kb-col{padding:6px 4px 4px;gap:4px}
  #scale .sc-kb-col>i{height:12px}
  #scale .sc-dash{gap:5px}
  #scale .sc-form{grid-template-columns:minmax(0,1fr) 44px}
}

/* ===== 04-sdk.css ===== */
/* 04 · #sdk: for builders (unpinned). The figure only.
   One Ravi (the hub: RAVI, 750+ commands, the ZERO DRIFT stamp on its ring) wired to three apps: a team dashboard
   (TypeScript), a Mac app (Swift) and a phone app (Dart).
     ≥1280      dash | hub | mac (low) | phone (high).
     1024–1279  the hub on top, the three apps in a row under it (dash | phone | mac).
     ≤1023      the hub, then the apps stacked on a spine down the left edge (max 640, centred).
   --sd-lay tells the JS which wire geometry to draw. With no JS the .sd-nj lines stand in for the wires.
   No html.motion hidden rules: the builder sets every starting state with fromTo. */
#sdk .sec-head{margin-bottom:88px}
#sdk .sd-hl .mask{display:inline-block;vertical-align:top;padding-right:.08em;margin-right:-.08em}  /* the last letter of a line (the P of APP) keeps its edge */

/* ---------- the figure ---------- */
#sdk .sd-fig{
  --sd-lay:wide; --sd-g:clamp(56px,5vw,80px); --sd-mac:272px; --sd-g2:28px;
  --sd-ph-w:220px; --sd-ph-h:440px; --sd-lab:40px; --sd-hub:168px;
  position:relative;display:grid;align-items:start;margin:0;
  grid-template-columns:minmax(0,1fr) var(--sd-g) var(--sd-hub) var(--sd-g) var(--sd-mac) var(--sd-g2) var(--sd-ph-w);
  grid-template-areas:"dash . hub . mac . phone";
}
#sdk .sd-hubc,#sdk .sd-app{position:relative;z-index:1;min-width:0}
#sdk .sd-hubc{grid-area:hub;align-self:center;display:flex;justify-content:center}
#sdk .sd-app--dash{grid-area:dash;align-self:center;justify-self:end;width:100%;max-width:480px}
/* the Mac app sits low: its top clears the phone's wire, its window still meets the hub's lower port */
#sdk .sd-app--mac{grid-area:mac;margin-top:calc((var(--sd-lab) + var(--sd-ph-h)) / 2 - var(--sd-hub) * .2 + 18px)}
#sdk .sd-app--phone{grid-area:phone}

/* the hub: a dark 168px rounded square with a ring of 24 mint dots */
#sdk .sd-hub{position:relative;display:grid;place-items:center;width:var(--sd-hub);height:var(--sd-hub);border-radius:30px;
  background:radial-gradient(circle at 50% 42%,#18201d 0,#111 62%);border:1px solid var(--line-strong);
  box-shadow:0 0 0 6px rgba(183,246,209,.04),0 24px 64px rgba(0,0,0,.45)}
#sdk .sd-ring{position:absolute;inset:4px;pointer-events:none}
#sdk .sd-ring svg{width:100%;height:100%;overflow:visible}
#sdk .sd-dots circle{fill:var(--mint);opacity:.5}
#sdk .sd-dots .sd-dot--b{opacity:1}
#sdk .sd-hub-t{position:relative;display:grid;justify-items:center;gap:4px;margin-top:14px;text-align:center}
#sdk .sd-mark{font-family:var(--font-sans);font-weight:600;font-size:20px;line-height:1.1;letter-spacing:.2em;margin-right:-.2em;color:var(--text)}
#sdk .sd-n{display:inline-flex;align-items:baseline;gap:6px;white-space:nowrap}
#sdk .sd-num{font-family:var(--font-sans);font-weight:500;font-size:22px;line-height:1.15;letter-spacing:-.02em;color:var(--sand);font-variant-numeric:tabular-nums}
#sdk .sd-unit{font-family:var(--font-mono);font-size:12px;color:var(--muted)}

/* ZERO DRIFT: a stamp pinned to the top of the hub's ring */
#sdk .sd-stampw{position:absolute;left:-40px;right:-40px;top:-21px;z-index:2;display:flex;justify-content:center;pointer-events:none}
#sdk .sd-stamp{display:inline-flex;align-items:center;height:38px;padding:0 13px;border:2px solid var(--mint);border-radius:6px;background:var(--bg);
  font-family:var(--font-mono);font-weight:500;font-size:14px;letter-spacing:.22em;color:var(--mint);white-space:nowrap;
  box-shadow:inset 0 0 0 3px var(--bg),inset 0 0 0 4px rgba(183,246,209,.4),0 8px 22px rgba(0,0,0,.5);transform:rotate(-5deg)}

/* ports where the wires meet the hub */
#sdk .sd-port{position:absolute;width:7px;height:7px;background:var(--bg);border:1px solid var(--mint)}
#sdk .sd-port--a{left:-4px;top:calc(50% - 4px)}
#sdk .sd-port--b{right:-4px;top:calc(30% - 4px)}
#sdk .sd-port--c{right:-4px;top:calc(70% - 4px)}

/* app labels and windows */
#sdk .sd-app-l{display:flex;align-items:center;gap:10px;height:28px;margin-bottom:12px;white-space:nowrap}
#sdk .sd-app-l b{font-size:14px;font-weight:600;color:var(--text)}
/* the language tag; it flashes mint when the pulse lands (--lit, 0 at rest) */
#sdk .sd-tag{position:relative;--lit:0;color:var(--sand)}
#sdk .sd-tag::after{content:"";position:absolute;inset:-1px;border-radius:inherit;border:1px solid var(--mint);background:rgba(183,246,209,.3);
  box-shadow:0 0 0 1px var(--mint),0 0 18px rgba(183,246,209,.65);opacity:var(--lit);pointer-events:none}
#sdk .sd-win{box-shadow:0 18px 48px rgba(0,0,0,.4)}

/* team dashboard: a light page in a browser */
#sdk .sd-dash .rb-chrome{height:36px}
#sdk .sd-dash-pg{padding:18px 22px 22px}
#sdk .sd-dash-t{font-size:13px;line-height:1.4;color:var(--p-muted)}
#sdk .sd-dash-n{margin:2px 0 18px;font-family:var(--font-sans);font-weight:500;font-size:40px;line-height:1.1;letter-spacing:-.03em;color:var(--p-ink);font-variant-numeric:tabular-nums}
#sdk .sd-bars{display:grid;gap:12px}
#sdk .sd-bar{display:block;height:10px;border-radius:5px;background:var(--p-soft);box-shadow:inset 0 0 0 1px var(--p-line);overflow:hidden}
#sdk .sd-bar-f{display:block;width:calc(var(--w) * 100%);min-width:6px;height:100%;border-radius:5px;background:var(--p-teal)}

/* Mac app: a window with traffic lights */
#sdk .sd-mac{background:var(--p-bg);border:1px solid var(--p-line);border-radius:10px;overflow:hidden}
#sdk .sd-mac-bar{position:relative;display:flex;align-items:center;justify-content:center;height:36px;padding:0 12px;background:linear-gradient(#f3f5f8,#e9edf1);border-bottom:1px solid var(--p-line)}
#sdk .sd-tl{position:absolute;left:12px;top:50%;display:flex;gap:6px;transform:translateY(-50%)}
#sdk .sd-tl i{width:10px;height:10px;border-radius:50%;background:#ff5f57}
#sdk .sd-tl i:nth-child(2){background:#febc2e}
#sdk .sd-tl i:nth-child(3){background:#28c840}
#sdk .sd-mac-t{font-size:13px;font-weight:600;color:var(--p-ink)}
#sdk .sd-rows{padding:4px 0}
#sdk .sd-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:46px;padding:8px 16px;font-size:14px;line-height:1.35;color:var(--p-ink)}
#sdk .sd-row+.sd-row{border-top:1px solid var(--p-line)}
#sdk .sd-r-nm{font-weight:500}
#sdk .sd-r-v{font-family:var(--font-mono);font-size:13px;color:var(--p-teal);font-variant-numeric:tabular-nums}

/* phone app: a 220×440 phone */
#sdk .sd-phone{position:relative;width:var(--sd-ph-w);height:var(--sd-ph-h);padding:7px;border-radius:38px;background:#1d1f1f;border:1px solid #333}
#sdk .sd-ph-scr{position:relative;display:flex;flex-direction:column;height:100%;overflow:hidden;border-radius:31px;background:var(--p-bg)}
#sdk .sd-ph-isl{position:absolute;left:50%;top:9px;width:60px;height:18px;margin-left:-30px;border-radius:9px;background:#0d0d0d}
#sdk .sd-ph-hd{display:flex;align-items:center;justify-content:center;gap:7px;padding:36px 12px 10px;border-bottom:1px solid var(--p-line);background:#fff}
#sdk .sd-ph-hd b{font-size:13px;font-weight:600}
#sdk .sd-ph-msgs{flex:1 1 auto;display:flex;flex-direction:column;justify-content:flex-end;gap:8px;padding:12px 10px}
#sdk .sd-bub{max-width:84%;padding:8px 11px;border-radius:16px;font-size:13px;line-height:1.4}
#sdk .sd-bub--me{align-self:flex-end;border-bottom-right-radius:5px;background:var(--p-teal);color:#fff}
#sdk .sd-bub--ops{align-self:flex-start;border-bottom-left-radius:5px;background:#fff;border:1px solid var(--p-line);color:var(--p-ink)}
#sdk .sd-ph-in{display:flex;align-items:center;justify-content:space-between;height:32px;margin:0 10px 14px;padding:0 4px 0 12px;border:1px solid var(--p-line);border-radius:16px;background:#fff}
#sdk .sd-ph-in span{width:56%;height:6px;border-radius:3px;background:var(--p-soft);box-shadow:inset 0 0 0 1px var(--p-line)}
#sdk .sd-ph-in i{width:24px;height:24px;border-radius:50%;background:var(--p-teal)}

/* wires and the pulse */
#sdk .sd-wires{z-index:0}
#sdk .sd-w{fill:none;stroke:var(--mint);stroke-width:1.5;stroke-dasharray:1;stroke-dashoffset:0;opacity:.7}
#sdk .sd-pk{opacity:0}

/* no JS: straight lines stand in for the drawn wires (hidden once the JS draws) */
#sdk.sd-js .sd-nj{display:none}
#sdk .sd-nj{position:absolute;display:block;pointer-events:none}
#sdk .sd-nj--a,#sdk .sd-nj--b,#sdk .sd-nj--c{height:1.5px;background:var(--mint);opacity:.7}
#sdk .sd-nj--a{right:100%;top:50%;width:var(--sd-g)}
#sdk .sd-nj--b{left:100%;top:30%;width:calc(var(--sd-g) + var(--sd-mac) + var(--sd-g2))}
/* the lower port steps down to the Mac window's middle (about 81px below the port at every wide width) */
#sdk .sd-nj--c{left:100%;top:calc(70% - .75px);width:var(--sd-g);height:82px;background:none;opacity:1}
#sdk .sd-nj--c::before,#sdk .sd-nj--c::after{content:"";position:absolute;height:calc(50% + .75px);border:0 solid #84b096}
#sdk .sd-nj--c::before{left:0;top:0;width:calc(50% + .75px);border-top-width:1.5px;border-right-width:1.5px;border-top-right-radius:8px}
#sdk .sd-nj--c::after{left:calc(50% - .75px);right:0;bottom:0;border-left-width:1.5px;border-bottom-width:1.5px;border-bottom-left-radius:8px}
#sdk .sd-nj--hub,#sdk .sd-nj--bus,#sdk .sd-nj--app{display:none}

/* ---------- 1024–1279: the hub on top, the apps in a row ---------- */
@media (max-width:1279px){
  #sdk .sd-fig{
    --sd-lay:row;
    max-width:1040px;margin-inline:auto;column-gap:32px;
    grid-template-columns:minmax(0,1fr) var(--sd-ph-w) minmax(0,1fr);
    grid-template-areas:". hub ." "bus bus bus" "dash phone mac";
  }
  #sdk .sd-hubc{margin-bottom:36px}
  #sdk .sd-app{margin-top:36px}
  #sdk .sd-app--dash{max-width:none;justify-self:stretch;align-self:start}
  #sdk .sd-app-l{justify-content:center}
  #sdk .sd-port--a,#sdk .sd-port--c{display:none}
  #sdk .sd-port--b{left:calc(50% - 4px);right:auto;top:auto;bottom:-4px}
  #sdk .sd-unit{font-size:13px}
  /* no JS: hub stem → bus → app stems */
  #sdk .sd-nj--a,#sdk .sd-nj--b,#sdk .sd-nj--c{display:none}
  #sdk:not(.sd-js) .sd-nj--hub{display:block;left:calc(50% - .75px);top:100%;width:1.5px;height:36px;background:var(--mint);opacity:.7}
  #sdk:not(.sd-js) .sd-nj--bus{display:block;position:relative;grid-area:bus;height:1.5px;margin-inline:calc((100% - var(--sd-ph-w) - 64px) / 4);background:var(--mint);opacity:.7}
  #sdk:not(.sd-js) .sd-nj--app{display:block;left:calc(50% - .75px);bottom:100%;width:1.5px;height:36px;background:var(--mint);opacity:.7}
}

/* ---------- ≤1023: the hub, then the apps stacked on a spine ---------- */
@media (max-width:1023px){
  #sdk .sec-head{margin-bottom:64px}
  #sdk .sd-fig{
    --sd-lay:stack;
    max-width:640px;column-gap:0;
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"hub" "dash" "mac" "phone";
  }
  #sdk .sd-hubc{margin-bottom:0}
  #sdk .sd-app{margin-top:44px;padding-left:28px}
  #sdk .sd-app--dash{max-width:none}
  #sdk .sd-app-l{justify-content:flex-start}
  #sdk .sd-unit{font-size:12px}
  /* a shorter phone: the two bubbles sit just under the ops header instead of 200px of empty screen above them */
  #sdk .sd-fig{--sd-ph-h:280px}
  #sdk .sd-ph-msgs{justify-content:flex-start}
  /* no JS: the stem leaves the hub, turns left to the spine; each app hangs off the spine */
  #sdk:not(.sd-js) .sd-nj--hub{left:10px;right:50%;top:100%;width:auto;height:22px;background:none;
    border-right:1.5px solid rgba(183,246,209,.7);border-bottom:1.5px solid rgba(183,246,209,.7);opacity:1}
  #sdk:not(.sd-js) .sd-nj--bus{display:none}
  #sdk:not(.sd-js) .sd-nj--app{left:10px;top:-44px;bottom:auto;width:18px;height:106px;background:none;
    border-left:1.5px solid rgba(183,246,209,.7);border-bottom:1.5px solid rgba(183,246,209,.7);opacity:1}
  /* the first app's stem starts at the hub's turn, 22px under the hub */
  #sdk:not(.sd-js) .sd-app--dash .sd-nj--app{top:-22px;height:84px}
  #sdk:not(.sd-js) .sd-app--phone .sd-nj--app{height:148px}
  /* the spine runs alongside every app but the last */
  #sdk:not(.sd-js) .sd-app--dash::before,#sdk:not(.sd-js) .sd-app--mac::before{content:"";position:absolute;left:10px;top:0;bottom:0;border-left:1.5px solid rgba(183,246,209,.7)}
}
@media (max-width:599px){
  #sdk .sec-head{margin-bottom:56px}
  #sdk .sd-app{margin-top:40px;padding-left:24px}
  #sdk:not(.sd-js) .sd-nj--app{top:-40px;width:14px;height:102px}
  #sdk:not(.sd-js) .sd-app--dash .sd-nj--app{top:-18px;height:80px}
  #sdk:not(.sd-js) .sd-app--phone .sd-nj--app{height:144px}
  #sdk .sd-dash-n{font-size:34px}
}

/* the SDK on npm: a small link under the sentence; the package name keeps its case */
#sdk .sd-npm{margin-top:14px}
#sdk .sd-npm .lnk{text-transform:none;letter-spacing:.04em}

/* ===== 09-end.css ===== */
/* 09 · #end: the closing (footer.foot#end, prefix en- for motion hooks, foot- for layout).
   Core reveals the eyebrow, square and headline, then .foot-say, .foot-ins, .foot-btns and .foot-small (00-base.css
   holds their html.motion starting state). The copy and toast rules are LIFTED from 09-install.css (build order step 1).
   js/09-end.js owns the packet (.en-pk), the border flash (.en-flash) and the caret blink. */
.foot-in{gap:28px}
.foot-head{margin-bottom:4px}
#end .foot-say{max-width:34em;color:var(--muted)}

/* ---------- the install pill: one line, a caret, Copy (no prompt, no window dots) ---------- */
.foot-ins{position:relative;display:flex;align-items:center;justify-self:start;width:min(100%,460px);min-height:56px;margin-top:4px;padding:5px 5px 5px 24px;
  border:1px solid var(--line-strong);border-radius:999px;background:var(--bg-raised);font-family:var(--font-mono);font-size:15px;line-height:22px;color:var(--text)}
.foot-cmd{flex:0 1 auto;min-width:0;font:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;user-select:all;-webkit-user-select:all}
.foot-ins .en-caret{margin-left:3px}
.foot-ins .foot-copy{position:static;flex:none;height:44px;min-width:76px;margin:0 0 0 auto;padding:0 18px;border:1px solid var(--line);border-radius:999px;background:var(--bg);
  font-size:13px;letter-spacing:.02em;color:var(--mint)}
.foot-ins .foot-copy:hover{color:var(--text);border-color:var(--line-strong)}
.foot-ins .foot-toast{right:6px;bottom:calc(100% + 10px);background:var(--mint);color:var(--p-ink)}
/* the packet waits out of sight until js/09-end.js drops it in (desk and touch builders must clear this) */
html.motion #end .en-pk{opacity:0}
/* the one mint flash of the border when the packet lands (motion hook; 0 at rest) */
.en-flash{position:absolute;inset:-1px;border:1px solid var(--mint);border-radius:inherit;box-shadow:0 0 0 4px rgba(183,246,209,.14);opacity:0;pointer-events:none}

/* ---------- buttons and small print ---------- */
.foot-btns{gap:12px}
.foot-btn{min-width:132px;min-height:48px;text-transform:none;letter-spacing:.02em}
.foot-small{display:flex;flex-wrap:wrap;align-items:center;gap:0 12px;margin-top:8px}
.foot-small a{display:inline-flex;align-items:center;min-height:44px;color:var(--muted);transition:color .18s}
.foot-small a:hover{color:var(--mint)}

@media (max-width:599px){
  .foot-in{gap:24px}
  .foot-ins{width:100%;min-height:54px;padding-left:18px;font-size:14px}
  .foot-ins .foot-copy{min-width:68px;padding:0 14px}
  .foot-btns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .foot-btn{min-width:0}
  .foot-small{display:grid;justify-items:start;gap:0}
  .foot-dot{display:none}
}
