/* ============================================================================
   MORPH NEU — the design language of every Morph work
   Spec: ~/morph/DESIGN.md   ·   Skin: REALM (default below)
   Every Morph surface imports this. A build that hand-writes a shadow is a defect.
   ========================================================================== */

/* ── SKIN ─────────────────────────────────────────────────────────────────── */
:root{
  --paper:#DCC1AE;      /* the page */
  --surface:#F8E8C6;    /* raised things */
  --edge:#BFA287;       /* where the light doesn't reach */
  --glow:#EED9C6;       /* where it does */
  --ink:#02504F;        /* text + line-work. Full strength. Always. */
  --accent:#AA3D1F;     /* the one that matters */
  --cream:#FCE3D8;      /* text on ink */

  /* Depth — say the number */
  --d1: 4px 4px 8px var(--edge), -4px -4px 8px var(--glow);
  --d2: 8px 8px 18px var(--edge), -8px -8px 18px var(--glow);
  --d3: 14px 14px 28px var(--edge), -14px -14px 28px var(--glow);
  --d4: 22px 22px 44px var(--edge), -22px -22px 44px var(--glow);
  --in1: inset 4px 4px 8px var(--edge), inset -4px -4px 8px var(--glow);
  --in2: inset 8px 8px 16px var(--edge), inset -8px -8px 16px var(--glow);

  /* Radius */
  --soft:12px; --round:20px; --capsule:999px;

  /* Air */
  --a1:8px; --a2:14px; --a3:22px; --a4:36px; --a5:56px; --a6:88px;

  /* Type */
  --serif:Georgia,'Times New Roman',serif;
  --sans:'Helvetica Neue',Helvetica,Arial,sans-serif;

  /* Motion */
  --rise:160ms cubic-bezier(.2,.7,.3,1);
  --press:120ms cubic-bezier(.4,0,.6,1);
}

*{margin:0;padding:0;box-sizing:border-box}
/* NO GREY BOX ON TAP. Phones paint their own translucent rectangle over any
   tapped element — and it is a RECTANGLE, so on a round orb it appears as a
   square shadow that has nothing to do with the design. We already answer a
   touch with the Press Law, so the browser's version is pure noise. */
*{-webkit-tap-highlight-color:transparent}
/* the same for the blue selection flash on tap-and-hold of a control */
button,a,summary,[data-modal],.is-clickable,.cost-chip,.talk-btn,.mega-btn,.coin{
  -webkit-touch-callout:none;
}
html{scroll-behavior:smooth}
/* THE PAGE IS LOCKED SIDEWAYS. A Morph page never scrolls horizontally: anything
   that overhangs (a tooltip near the edge, a wide table, an absolute label) gets
   clipped, not turned into a sideways drag. `clip` rather than `hidden` so this
   does not silently create a scroll container and break position:sticky.
   Wide content that genuinely needs scrolling scrolls INSIDE its own box. */
html,body{overflow-x:hidden;overflow-x:clip;max-width:100%}
body{background:var(--paper);color:var(--ink);font-family:var(--sans);
     -webkit-font-smoothing:antialiased}

/* ── TYPE — say the name ──────────────────────────────────────────────────── */
.crown  {font-family:var(--serif);font-weight:400;font-size:clamp(38px,7vw,76px);letter-spacing:.04em;line-height:1}
.banner {font-family:var(--serif);font-weight:400;font-size:clamp(26px,3.6vw,42px);line-height:1.15}
.glance {font-family:var(--serif);font-weight:400;font-size:clamp(34px,5vw,64px);line-height:1}
.lede   {font-family:var(--serif);font-style:italic;font-size:clamp(15px,1.7vw,18px);line-height:1.5}
.body   {font-size:15px;line-height:1.65}
.whisper{font-size:12.5px;line-height:1.55}
.tag    {font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;font-weight:600}
.accent {color:var(--accent)}

/* ── SURFACES — the grammar ───────────────────────────────────────────────── */
.pillow  {background:var(--surface);border-radius:var(--round);box-shadow:var(--d2)}
.well    {background:var(--surface);border-radius:var(--round);box-shadow:var(--in2)}
.slab    {background:transparent;border-radius:var(--soft);border:1.5px solid var(--edge)}
.ink-slab{background:var(--ink);color:var(--cream);border-radius:var(--round);box-shadow:var(--d2)}
.ink-slab .whisper,.ink-slab .body{color:var(--cream)}
.ink-slab b,.ink-slab .hot{color:var(--cream);font-weight:700}
.flush   {background:transparent}

.d1{box-shadow:var(--d1)} .d2{box-shadow:var(--d2)}
.d3{box-shadow:var(--d3)} .d4{box-shadow:var(--d4)}
.r-soft{border-radius:var(--soft)} .r-round{border-radius:var(--round)}
.r-capsule{border-radius:var(--capsule)} .r-coin{border-radius:50%}

/* ── LAYOUT ───────────────────────────────────────────────────────────────── */
.stage{max-width:1100px;margin:0 auto;padding:var(--a6) var(--a4)}
.stage-head{text-align:center;margin-bottom:var(--a5)}
.stage-head .lede{margin-top:var(--a2);opacity:.9}
.three-beat{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--a3)}
.two-beat  {display:grid;grid-template-columns:repeat(2,1fr);gap:var(--a3)}
.four-beat {display:grid;grid-template-columns:repeat(4,1fr);gap:var(--a3)}

/* ── CARDS ────────────────────────────────────────────────────────────────── */
.pillow-card{background:var(--surface);border-radius:var(--round);box-shadow:var(--d2);
             padding:var(--a3);transition:box-shadow var(--rise),transform var(--rise)}
.pillow-card:hover{box-shadow:var(--d3);transform:translateY(-3px)}   /* Rise */

.glance-card{background:var(--surface);border-radius:var(--round);box-shadow:var(--d2);
             padding:var(--a4) var(--a3);text-align:center;
             transition:box-shadow var(--rise),transform var(--rise)}
.glance-card:hover{box-shadow:var(--d3);transform:translateY(-3px)}
.glance-card .glance{display:block}
.glance-card .whisper{margin-top:var(--a2)}

/* LOCKED — a Three Beat that never breaks into a stack. Three boxes stay on
   ONE line at every width, down to a phone; the type shrinks instead of the
   row wrapping. Use when the three things are read as a set, not a list. */
.three-beat.locked{grid-template-columns:repeat(3,1fr) !important}
@media (max-width:820px){
  .three-beat.locked > .glance-card.tight{flex-direction:column;text-align:center;
      padding:var(--a3) 8px;gap:4px}
  .three-beat.locked > .glance-card.tight .icon{width:20px;height:20px}
  .three-beat.locked > .glance-card.tight .glance{font-size:28px}
  .three-beat.locked > .glance-card.tight .whisper{font-size:10.5px;line-height:1.3;margin:0}
}
@media (max-width:430px){
  .three-beat.locked{gap:8px}
  .three-beat.locked > .glance-card.tight{padding:var(--a2) 5px}
  .three-beat.locked > .glance-card.tight .glance{font-size:23px}
  .three-beat.locked > .glance-card.tight .whisper{font-size:9px;letter-spacing:0}
}

/* TIGHT — a Glance Card that has to earn its height. Use when three of them
   stack on a phone: a full-height box each costs a whole screen to say three
   short things, so the argument below never gets seen. Icon + number + a bold
   caption, and it lies down horizontally the moment the column is narrow. */
.glance-card.tight{padding:var(--a3) var(--a3);display:flex;flex-direction:column;
                   align-items:center;justify-content:center;gap:6px}
.glance-card.tight .icon{width:26px;height:26px;opacity:.85}
.glance-card.tight .glance{font-size:clamp(30px,3.6vw,46px);line-height:1}
.glance-card.tight .whisper{margin-top:2px;font-weight:700;letter-spacing:.03em;
                            font-size:12px;text-transform:none}
@media (max-width:820px){
  .glance-card.tight{flex-direction:row;text-align:left;gap:var(--a3);
                     padding:var(--a2) var(--a3);min-height:0}
  .glance-card.tight .icon{flex:0 0 auto;width:24px;height:24px}
  .glance-card.tight .glance{font-size:34px;flex:0 0 auto}
  .glance-card.tight .whisper{margin:0;flex:1}
}

/* Flip Card — Glance on the front, the detail on the back */
.flip{perspective:1400px;min-height:270px;cursor:pointer}
.flip-inner{position:relative;width:100%;height:100%;min-height:inherit;
            transition:transform 420ms cubic-bezier(.4,.1,.2,1);transform-style:preserve-3d}
.flip.is-flipped .flip-inner{transform:rotateY(180deg)}
.flip-face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;
           border-radius:var(--round);padding:var(--a3);display:flex;flex-direction:column;
           justify-content:center}
.flip-front{background:var(--surface);box-shadow:var(--d2);text-align:center}
.flip-back {background:var(--surface);box-shadow:var(--in2);transform:rotateY(180deg);
            justify-content:flex-start;overflow:auto}
.flip-hint{position:absolute;left:0;right:0;bottom:var(--a2);text-align:center;
           font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;opacity:.55}
.flip:focus-visible{outline:3px solid var(--accent);outline-offset:6px;border-radius:var(--round)}

/* Reveal Row — a Pillow that opens into a Well */
.reveal{background:var(--surface);border-radius:var(--round);box-shadow:var(--d2);
        margin-bottom:var(--a2);overflow:hidden}
.reveal>summary{list-style:none;cursor:pointer;padding:var(--a3);display:flex;
                align-items:center;gap:var(--a2);font-family:var(--serif);font-size:18px}
.reveal>summary::-webkit-details-marker{display:none}
.reveal>summary::after{content:"+";margin-left:auto;font-size:22px;opacity:.6}
.reveal[open]>summary::after{content:"–"}
.reveal-body{padding:0 var(--a3) var(--a3);box-shadow:var(--in1);margin:0 var(--a2) var(--a2);
             border-radius:var(--soft);padding-top:var(--a3)}

/* Stat Tile */
.stat{background:var(--surface);border-radius:var(--round);box-shadow:var(--d2);
      padding:var(--a3);text-align:center}
.stat .glance{font-size:clamp(28px,3.4vw,44px)}

/* ── DIAGRAM PARTS ────────────────────────────────────────────────────────── */
.coin{width:96px;height:96px;border-radius:50%;background:var(--surface);box-shadow:var(--d2);
      display:flex;align-items:center;justify-content:center;flex:0 0 auto;
      font-family:var(--serif);font-size:30px;transition:box-shadow var(--rise),transform var(--rise)}
.coin:hover{box-shadow:var(--d3);transform:translateY(-3px)}
.coin.live{background:var(--accent);color:var(--surface)}

.hex{width:104px;height:118px;background:var(--surface);box-shadow:var(--d2);flex:0 0 auto;
     clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);
     display:flex;align-items:center;justify-content:center;font-family:var(--serif);font-size:26px}

.ridge{height:8px;flex:1;border-radius:var(--capsule);background:var(--surface);box-shadow:var(--d1)}
.groove{height:8px;flex:1;border-radius:var(--capsule);background:var(--surface);box-shadow:var(--in1)}

/* Coin Rail — a timeline */
.coin-rail{display:flex;align-items:center;gap:var(--a2)}
.rail-labels{display:grid;gap:var(--a3);margin-top:var(--a3)}

/* Meter Well — our bar chart */
.meter{margin-bottom:var(--a3)}
.meter-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:var(--a1);gap:var(--a2)}
.meter-track{height:34px;border-radius:var(--capsule);box-shadow:var(--in1);background:var(--surface);
             overflow:hidden}
.meter-fill{height:100%;border-radius:var(--capsule);background:var(--accent);
            display:flex;align-items:center;justify-content:flex-end;padding-right:14px;
            color:var(--surface);font-size:12.5px;font-weight:600;
            width:0;transition:width 900ms cubic-bezier(.2,.7,.3,1)}
.meter-fill.ours{background:var(--ink)}

/* Ring Stat */
.ring{position:relative;width:132px;height:132px;margin:0 auto}
.ring svg{transform:rotate(-90deg)}
.ring .val{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
           font-family:var(--serif);font-size:26px}

/* Legend Line — MANDATORY under every graphic (Legend Law) */
.legend{margin-top:var(--a3);font-size:12.5px;line-height:1.55;text-align:center;
        font-style:italic;opacity:.95}
.legend::before{content:"⟶  ";font-style:normal;opacity:.5}

/* ── BLOCKS ───────────────────────────────────────────────────────────────── */
/* Letter Board */
.letter-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:var(--a3)}
.letter{background:var(--surface);border-radius:var(--round);box-shadow:var(--d2);
        padding:var(--a3) var(--a2);text-align:center;
        transition:box-shadow var(--rise),transform var(--rise)}
.letter:hover{box-shadow:var(--d3);transform:translateY(-3px)}
.letter .ch{font-family:var(--serif);font-size:clamp(40px,5vw,64px);line-height:1;display:block}
.letter .word{margin-top:var(--a1);font-size:13px;font-weight:700}
.letter .whisper{margin-top:6px;opacity:.85}

/* Check Grid */
.check-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:var(--a2)}
.check{background:var(--surface);border-radius:var(--soft);box-shadow:var(--d1);
       padding:var(--a2) var(--a3);display:flex;gap:var(--a2);align-items:flex-start;
       transition:box-shadow var(--rise),transform var(--rise)}
.check:hover{box-shadow:var(--d2);transform:translateY(-2px)}
.check .tick{flex:0 0 22px;height:22px;border-radius:50%;background:var(--ink);color:var(--surface);
             display:flex;align-items:center;justify-content:center;font-size:12px;margin-top:2px}
.check h4{font-family:var(--serif);font-weight:400;font-size:16px;line-height:1.25}
.check .whisper{margin-top:3px;opacity:.85}

/* Compare Board — the depth IS the argument */
.compare{display:grid;grid-template-columns:1fr 1fr;gap:var(--a3)}
.compare .old{background:var(--paper);border-radius:var(--round);box-shadow:var(--in2);padding:var(--a4) var(--a3)}
.compare .ours{background:var(--surface);border-radius:var(--round);box-shadow:var(--d3);padding:var(--a4) var(--a3)}
.compare li{list-style:none;padding:10px 0;border-bottom:1px solid var(--edge);font-size:14px}
.compare li:last-child{border-bottom:0}
.compare .old li{opacity:.72}

/* ── ASK CARD — THE OBJECT LAW applied to an open question ─────────────────
   A question is not a statement with a hedge on it. It shows the QUESTION and
   nothing else, with an obvious info button; the thinking behind it opens on
   click. Two labelled parts inside: where the asker stands now, and the exact
   thing they want answered — so the reader knows what their job is.          */
.ask{background:var(--surface);border-radius:var(--round);box-shadow:var(--d2);
     overflow:hidden;transition:box-shadow var(--rise),transform var(--rise)}
.ask:hover{box-shadow:var(--d3);transform:translateY(-2px)}
.ask > summary{list-style:none;cursor:pointer;display:flex;align-items:center;
               gap:var(--a3);padding:var(--a3);font-family:var(--serif);
               font-size:19px;line-height:1.3}
.ask > summary::-webkit-details-marker{display:none}
.ask .q-mark{flex:0 0 34px;height:34px;border-radius:50%;background:var(--accent);
             color:var(--surface);display:flex;align-items:center;justify-content:center;
             font-family:var(--sans);font-size:16px;font-weight:800;
             transition:transform var(--press)}
.ask > summary .open-lbl{margin-left:auto;flex:0 0 auto;background:var(--paper);
             box-shadow:var(--in1);border-radius:var(--capsule);padding:6px 13px;
             font-family:var(--sans);font-size:9.5px;letter-spacing:.1em;
             text-transform:uppercase;font-weight:800;opacity:.8;white-space:nowrap}
.ask[open] > summary .open-lbl::after{content:" ▲"}
.ask:not([open]) > summary .open-lbl::after{content:" ▼"}
/* open state is shown by the INFO ▲/▼ label; rotating the "?" just looks broken */
.ask[open] .q-mark{background:var(--ink)}
.ask-body{padding:0 var(--a3) var(--a3) calc(var(--a3) + 34px + var(--a3))}
.ask-part{background:var(--paper);box-shadow:var(--in1);border-radius:var(--soft);
          padding:var(--a3);margin-top:var(--a2)}
.ask-part .lbl{font-size:9.5px;letter-spacing:.1em;text-transform:uppercase;
               font-weight:800;opacity:.65;display:block;margin-bottom:6px}
.ask-part p{font-size:13.5px;line-height:1.6}
@media (max-width:700px){
  .ask > summary{font-size:16.5px;gap:var(--a2);padding:var(--a2) var(--a3)}
  .ask > summary .open-lbl{display:none}
  .ask-body{padding:0 var(--a3) var(--a3)}
}

/* ── SPEC SHEET — THE OBJECT LAW applied to a comparison ───────────────────
   Two options are SPECIFICATIONS, so they are drawn as a spec sheet: one row
   per thing that differs, both columns readable across. Never two paragraphs
   side by side — a reader cannot compare prose. Exactly ONE column is marked
   recommended, and it is marked once, with a badge — not by tinting its text. */
.spec{background:var(--surface);border-radius:var(--round);box-shadow:var(--d2);overflow:hidden}
.spec table{width:100%;border-collapse:collapse}
.spec th,.spec td{padding:14px var(--a3);text-align:left;vertical-align:top;font-size:13.5px;
                  border-bottom:1px solid var(--edge)}
.spec tr:last-child th,.spec tr:last-child td{border-bottom:0}
.spec thead th{background:var(--paper);font-size:10.5px;letter-spacing:.1em;
               text-transform:uppercase;font-weight:800;padding-top:var(--a3);padding-bottom:var(--a3)}
.spec tbody th{font-weight:700;width:26%;color:var(--ink);opacity:.85}
.spec .pick{position:relative}
.spec thead .pick{background:var(--ink);color:var(--cream)}
.spec .badge{display:inline-block;margin-top:6px;background:var(--accent);color:var(--surface);
             border-radius:var(--capsule);padding:3px 10px;font-size:9px;letter-spacing:.14em;
             font-weight:800}
.spec tbody .pick{background:rgba(2,80,79,.05)}
.spec .yes{font-weight:700}
/* Narrow: the table stays a TABLE and scrolls inside its own box. Exploding it
   into stacked blocks turned a 10-row comparison into 30 full-width panels —
   longer than the thing it replaced, and impossible to compare across. This is
   the "wide content scrolls inside its own container" rule doing its job. */
@media (max-width:760px){
  .spec{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .spec table{min-width:620px}
  .spec th,.spec td{padding:11px var(--a2);font-size:12.5px}
  .spec tbody th{width:34%}
  .spec::after{content:"";display:block}
}

/* Price Row */
.price-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:var(--a3);align-items:center}
.price-col{background:var(--surface);border-radius:var(--round);box-shadow:var(--d2);
           padding:var(--a4) var(--a3);text-align:center}
.price-col.chosen{box-shadow:var(--d3);transform:scale(1.04)}
.price-col.chosen .glance{color:var(--accent)}

/* Column Well — the vertical bar chart */
.column-well{display:flex;align-items:flex-end;justify-content:space-around;gap:var(--a2);
             height:260px;padding:0 var(--a2)}
.column{display:flex;flex-direction:column;align-items:center;gap:var(--a1);flex:1;height:100%}
.column-track{width:38px;flex:1;border-radius:var(--capsule);box-shadow:var(--in1);
              background:var(--surface);display:flex;align-items:flex-end;overflow:hidden}
.column-fill{width:100%;border-radius:var(--capsule);background:var(--ink);height:0;
             transition:height 900ms cubic-bezier(.2,.7,.3,1)}
.column-fill.hot{background:var(--accent)}
.column .whisper{text-align:center}

/* Pyramid */
.pyramid{display:flex;flex-direction:column;align-items:center;gap:var(--a1)}
.tier{background:var(--surface);box-shadow:var(--d2);border-radius:var(--soft);
      padding:var(--a2) var(--a3);text-align:center;font-family:var(--serif);font-size:17px}
.tier.hot{background:var(--accent);color:var(--surface);box-shadow:var(--d3)}

/* Capsule Card */
.capsule-card{background:var(--surface);border-radius:var(--capsule);box-shadow:var(--d2);
              padding:var(--a4) var(--a3);text-align:center;
              transition:box-shadow var(--rise),transform var(--rise)}
.capsule-card:hover{box-shadow:var(--d3);transform:translateY(-3px)}

/* Title Rail */
.title-rail{background:var(--surface);border-radius:var(--capsule);box-shadow:var(--d1);
            padding:var(--a2) var(--a4);margin-bottom:var(--a4);
            font-family:var(--serif);font-size:20px}

/* Quad Board */
.quad{display:grid;grid-template-columns:1fr 1fr;gap:var(--a2)}
.quad>div{background:var(--surface);border-radius:var(--soft);box-shadow:var(--d1);padding:var(--a3)}

/* Slider List */
.slider-row{display:flex;align-items:center;gap:var(--a3);margin-bottom:var(--a2)}
.slider-track{position:relative;flex:1;height:12px;border-radius:var(--capsule);
              box-shadow:var(--in1);background:var(--surface)}
.slider-thumb{position:absolute;top:50%;width:26px;height:26px;border-radius:50%;
              background:var(--surface);box-shadow:var(--d1);transform:translate(-50%,-50%)}
.slider-row .label{flex:0 0 210px;font-size:14px}

/* Orb Stat / Orb Pair */
.orb{width:210px;height:210px;border-radius:50%;background:var(--surface);box-shadow:var(--d2);
     display:flex;flex-direction:column;align-items:center;justify-content:center;
     text-align:center;padding:var(--a3)}
.orb-pair{display:flex;align-items:center;justify-content:center}
.orb-pair .orb:last-child{margin-left:-38px;box-shadow:var(--d3)}

/* Stat Strip */
.stat-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:var(--a2)}

/* Photo Row — photographs sit INSIDE a Well, never on top of the page */
.photo-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:var(--a3)}
.photo{background:var(--surface);border-radius:var(--round);box-shadow:var(--in1);padding:var(--a2)}
.photo img{display:block;width:100%;height:auto;border-radius:var(--soft)}
.photo .whisper{margin-top:var(--a2);text-align:center}

/* Break Plate */
.break-plate{display:flex;flex-direction:column;align-items:center;gap:var(--a3);
             padding:var(--a6) var(--a4);text-align:center}
.break-plate .coin{width:150px;height:150px;font-size:44px}

/* Versus Rings */
.versus{display:flex;align-items:center;justify-content:center;gap:var(--a4);flex-wrap:wrap}
.versus .vs{width:56px;height:56px;border-radius:50%;background:var(--surface);box-shadow:var(--in1);
            display:flex;align-items:center;justify-content:center;font-family:var(--serif);font-size:16px}

/* ── CONTROLS ─────────────────────────────────────────────────────────────── */
.press{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:6px;
       background:var(--ink);color:var(--cream);border:0;cursor:pointer;text-decoration:none;
       font-family:var(--sans);font-size:14px;font-weight:600;letter-spacing:.02em;
       padding:0 var(--a4);height:52px;border-radius:var(--soft);box-shadow:var(--d2);
       transition:box-shadow var(--press),transform var(--press)}
.press:hover{transform:translateY(-3px);box-shadow:var(--d3)}
.press:active{transform:translateY(2px);box-shadow:var(--in1)}   /* Press */
.press.accent-fill{background:var(--accent)}
.press:focus-visible{outline:3px solid var(--accent);outline-offset:4px}

.ghost{display:inline-flex;align-items:center;justify-content:center;gap:6px;
       background:var(--surface);color:var(--ink);border:0;cursor:pointer;text-decoration:none;
       font-family:var(--sans);font-size:14px;font-weight:600;
       padding:0 var(--a4);height:52px;border-radius:var(--soft);box-shadow:var(--in1);
       transition:box-shadow var(--press),transform var(--press)}
.ghost:hover{box-shadow:var(--d2);transform:translateY(-3px)}
.ghost:active{box-shadow:var(--in2);transform:translateY(2px)}
.ghost:focus-visible{outline:3px solid var(--accent);outline-offset:4px}

/* Function Whisper — every button says what it DOES */
.has-whisper{position:relative}
/* The whisper is centred under its button and can be wider than the button, so near
   a screen edge it used to hang off the page and widen the document. It is clamped
   to the viewport and wraps on narrow screens instead of pushing the page sideways. */
.has-whisper .fw{position:absolute;left:50%;top:calc(100% + 10px);transform:translateX(-50%) translateY(-4px);
                 white-space:nowrap;max-width:min(280px,86vw);
                 background:var(--surface);color:var(--ink);box-shadow:var(--d1);
                 border-radius:var(--soft);padding:8px 14px;font-size:12px;text-align:center;
                 opacity:0;pointer-events:none;transition:opacity var(--rise),transform var(--rise);z-index:40}
@media (max-width:760px){
  .has-whisper .fw{white-space:normal;max-width:86vw;line-height:1.45}
}
.has-whisper:hover .fw,.has-whisper:focus-within .fw{opacity:1;transform:translateX(-50%) translateY(0)}

/* Chapter Rail */
.chapter-rail{position:fixed;right:22px;top:50%;transform:translateY(-50%);z-index:60;
              display:flex;flex-direction:column;gap:12px}
.chapter-rail a{width:38px;height:38px;border-radius:50%;background:var(--surface);box-shadow:var(--d1);
                display:flex;align-items:center;justify-content:center;text-decoration:none;
                color:var(--ink);font-size:12px;font-weight:700;
                transition:box-shadow var(--rise),transform var(--rise),background var(--rise)}
.chapter-rail a:hover{box-shadow:var(--d2);transform:translateY(-2px)}
.chapter-rail a.live{background:var(--accent);color:var(--surface);box-shadow:var(--d2)}

/* ── NEU ICON — line icons, ink stroke, always inside a Coin or a tick ────── */
.icon{width:34px;height:34px;stroke:var(--ink);stroke-width:1.6;fill:none;
      stroke-linecap:round;stroke-linejoin:round}
.icon-lg{width:52px;height:52px;stroke-width:1.4}
.coin .icon{width:38px;height:38px}
.coin.live .icon{stroke:var(--surface)}

/* ── QUADRANT OPENER — a full-viewport breath between chapters ────────────── */
/* A quadrant opener is a BREATH, not a void. It used to be 76vh with its
   content centred, which stacked ~223px of empty space on top of whatever
   padding came before it — 400px of nothing between the hero and the first
   question. Bounded padding gives the same pause without the dead screen. */
.quadrant{min-height:auto;padding:var(--a4) 0 var(--a3);
          display:flex;flex-direction:column;align-items:center;
          justify-content:center;text-align:center;position:relative;overflow:hidden}
.quadrant .watermark{position:absolute;top:50%;left:50%;transform:translate(-50%,-54%);
                     font-family:var(--serif);font-size:clamp(220px,40vw,460px);line-height:1;
                     color:var(--surface);opacity:.55;pointer-events:none;user-select:none;z-index:0}
.quadrant .q{position:relative;z-index:1;font-family:var(--serif);
             font-size:clamp(32px,5.6vw,68px);line-height:1.1;max-width:14ch}
.quadrant .say{position:relative;z-index:1;margin-top:var(--a3);font-size:11.5px;
               letter-spacing:.1em;text-transform:uppercase;opacity:.7}

/* ── PAIN WALL — many pressed complaints, one raised answer ───────────────── */
.pain-wall{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:var(--a2)}
.pain{background:var(--paper);border-radius:var(--round);box-shadow:var(--in1);
      padding:var(--a3);font-family:var(--serif);font-style:italic;font-size:17px;
      display:flex;align-items:center;min-height:86px}

/* ── HERO STAT — the one number the whole room should remember ────────────── */
.hero-stat{text-align:center;padding:var(--a5) var(--a4)}
.hero-stat .glance{font-size:clamp(52px,9vw,116px);display:block}

@media (max-width:900px){
  .quadrant{min-height:56vh}
  .quadrant .watermark{font-size:clamp(180px,60vw,300px)}
}

/* ── CLICK CUE — if it can be clicked, it must LOOK clicked-on-able ────────
   House law (Migs 2026-09-07): a clickable card never relies on small grey text
   to say so. It carries a cursor badge and an accent edge at rest, so the reader
   knows before hovering — and on a phone, where there IS no hover, at all.
   Applied automatically: any [data-modal], .mod[data-screen], .deep, or
   [data-cue] element gets it. Label comes from data-cue, default "Open".      */
.is-clickable{position:relative;cursor:pointer}
.is-clickable::after{
  content:attr(data-cue);
  position:absolute;top:12px;right:12px;z-index:3;
  padding:5px 12px 5px 27px;border-radius:var(--capsule);
  font-size:9.5px;letter-spacing:.1em;text-transform:uppercase;font-weight:800;
  color:var(--surface);
  background:var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F8E8C6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3l14 8-6.5 1.8L9.8 19z'/%3E%3C/svg%3E")
    no-repeat 9px center/12px;
  box-shadow:var(--d1);
  transform:translateY(0);
  transition:transform var(--rise),box-shadow var(--rise),filter var(--rise);
}
.is-clickable:hover::after{transform:translateY(-2px);box-shadow:var(--d2);filter:brightness(1.08)}
.is-clickable:active::after{transform:translateY(1px);box-shadow:var(--in1)}
/* the resting edge — reads as "this one is a door" without shouting */
.is-clickable{box-shadow:var(--d2),0 0 0 1.5px rgba(170,61,31,.22)}
.is-clickable:hover{box-shadow:var(--d3),0 0 0 1.5px rgba(170,61,31,.42)}
.is-clickable:focus-visible{outline:3px solid var(--accent);outline-offset:5px}
/* a cue on a round thing sits under it, not on it */
.is-clickable.r-coin::after,.talk-btn .is-clickable::after{top:auto;bottom:-10px;right:50%;
  transform:translateX(50%)}
@media (max-width:700px){
  .is-clickable::after{top:9px;right:9px;font-size:9px;padding:4px 10px 4px 24px;
    background-position:8px center;background-size:11px}
}

/* ── DEEP MODAL — a card that opens into the whole picture ────────────────── */
.scrim{position:fixed;inset:0;background:rgba(2,80,79,.42);backdrop-filter:blur(3px);
       display:none;align-items:flex-start;justify-content:center;z-index:100;
       padding:var(--a4) var(--a3);overflow-y:auto}
.scrim.open{display:flex}
.modal{background:var(--paper);border-radius:var(--round);box-shadow:var(--d4);
       width:min(1040px,100%);padding:var(--a5) var(--a4) var(--a4);position:relative;
       margin:auto}
.modal-close{position:absolute;top:var(--a3);right:var(--a3);width:44px;height:44px;
             border-radius:50%;border:0;cursor:pointer;background:var(--surface);
             box-shadow:var(--d1);color:var(--ink);font-size:19px;line-height:1;
             transition:box-shadow var(--press),transform var(--press)}
.modal-close:hover{box-shadow:var(--d2);transform:translateY(-2px)}
.modal-close:active{box-shadow:var(--in1);transform:translateY(1px)}
.modal-head{text-align:center;margin-bottom:var(--a4)}
.deep{cursor:pointer}
.deep:focus-visible{outline:3px solid var(--accent);outline-offset:6px;border-radius:var(--round)}

/* ── CREW TREE — a founder, his companions, and their workers ─────────────── */
.crew-tree{display:flex;flex-direction:column;align-items:center;gap:var(--a2)}
.crew-tree .stem{width:8px;height:26px;border-radius:var(--capsule);
                 background:var(--surface);box-shadow:var(--d1)}
.crew-tree .fan{height:8px;width:min(84%,780px);border-radius:var(--capsule);
                background:var(--surface);box-shadow:var(--d1)}
.crew-row{display:flex;justify-content:center;gap:var(--a3);flex-wrap:wrap;width:100%}
.crew-tree .crew-row>.crew-branch::before{content:"";width:8px;height:18px;
     border-radius:var(--capsule);background:var(--surface);box-shadow:var(--d1)}
.crew-branch{display:flex;flex-direction:column;align-items:center;gap:var(--a1);flex:1;
             min-width:130px;max-width:190px}
.crew-branch .name{font-family:var(--serif);font-size:16px;margin-top:4px}
.crew-branch .craft{font-size:11px;letter-spacing:.12em;text-transform:uppercase;opacity:.75;
                    text-align:center}
.crew-branch .workers{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:var(--a1)}
.crew-branch .worker{background:var(--surface);border-radius:var(--capsule);box-shadow:var(--d1);
                     padding:5px 11px;font-size:11px;font-weight:600}
.founder{width:126px;height:126px;border-radius:50%;background:var(--accent);color:var(--surface);
         box-shadow:var(--d3);display:flex;flex-direction:column;align-items:center;
         justify-content:center;gap:3px}
.founder .icon{stroke:var(--surface);width:36px;height:36px}
.founder .lbl{font-size:11px;letter-spacing:.1em;font-weight:700}

/* ── TALK SWITCH — the two ways you speak to an AI ────────────────────────── */
.talk-switch{display:flex;gap:var(--a4);justify-content:center;align-items:flex-start;
             margin-bottom:var(--a4)}
.talk-btn{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
          align-self:flex-start;gap:8px;background:none;border:0;cursor:pointer;
          font-family:var(--sans);color:var(--ink);padding:0;height:auto}
.talk-btn .orb{width:96px;height:96px;border-radius:50%;background:var(--surface);
               box-shadow:var(--d2);display:flex;align-items:center;justify-content:center;
               transition:box-shadow var(--rise),transform var(--rise),background var(--rise)}
.talk-btn .orb .icon{width:34px;height:34px}
.talk-btn:hover .orb{box-shadow:var(--d3);transform:translateY(-3px)}
.talk-btn .lbl{font-size:11px;letter-spacing:.1em;text-transform:uppercase;font-weight:700}
.talk-btn .cap{font-size:11.5px;opacity:.75}
.talk-btn[aria-pressed="true"] .orb{background:var(--accent);box-shadow:var(--d3)}
.talk-btn[aria-pressed="true"] .orb .icon{stroke:var(--surface)}
.talk-btn:focus-visible{outline:3px solid var(--accent);outline-offset:6px;border-radius:var(--round)}
.talk-pane{display:none} .talk-pane.show{display:block}

/* Chat mock — the typed door */
.chat{background:var(--surface);border-radius:var(--round);box-shadow:var(--d2);overflow:hidden}
.chat-bar{display:flex;align-items:center;gap:var(--a2);padding:var(--a2) var(--a3);
          border-bottom:1.5px solid var(--edge);flex-wrap:wrap}
.chat-bar .seat{font-family:var(--serif);font-size:19px;letter-spacing:.16em;margin-right:auto}
.chat-bar .chip{background:var(--ink);color:var(--cream);border-radius:var(--soft);
                padding:5px 11px;font-size:10px;letter-spacing:.14em;font-weight:700}
.chat-bar .chip.ghost{background:var(--paper);color:var(--ink);box-shadow:var(--in1)}
.chat-body{padding:var(--a3);display:flex;flex-direction:column;gap:var(--a2)}
.bubble{max-width:82%;padding:var(--a2) var(--a3);border-radius:var(--round);font-size:14px;
        line-height:1.55}
.bubble.you{align-self:flex-end;background:var(--ink);color:var(--cream)}
.bubble.ai{align-self:flex-start;background:var(--paper);box-shadow:var(--in1)}
.chat-input{display:flex;gap:var(--a2);padding:var(--a3);border-top:1.5px solid var(--edge)}
.chat-input .field{flex:1;background:var(--surface);border-radius:var(--soft);box-shadow:var(--in1);
                   padding:13px var(--a3);font-size:14px;opacity:.65}

/* Browser Panel — the realm's own tabbed web screen, inset like an App Screen */
.browser{background:var(--surface);border-radius:var(--round);box-shadow:var(--in2);overflow:hidden}
.browser-tabs{display:flex;align-items:center;gap:5px;padding:var(--a2) var(--a2) 0;flex-wrap:wrap}
.browser-tabs .tab{background:var(--paper);border-radius:var(--soft) var(--soft) 0 0;
                   padding:8px 14px;font-size:11.5px;display:flex;align-items:center;gap:8px;
                   box-shadow:var(--in1);opacity:.8}
.browser-tabs .tab.on{background:var(--surface);box-shadow:var(--d1);opacity:1;font-weight:700}
.browser-tabs .tab .x{opacity:.45;font-size:12px}
.browser-tabs .plus{padding:8px 12px;font-size:14px;opacity:.6}
.browser-url{display:flex;gap:var(--a2);align-items:center;padding:var(--a2) var(--a3);
             border-bottom:1.5px solid var(--edge)}
.browser-url .bar{flex:1;background:var(--paper);border-radius:var(--soft);box-shadow:var(--in1);
                  padding:11px var(--a3);font-size:12.5px;opacity:.7}
.browser-url .go{width:38px;height:38px;border-radius:var(--soft);background:var(--surface);
                 box-shadow:var(--d1);display:flex;align-items:center;justify-content:center;
                 font-size:14px;flex:0 0 auto}
.browser-view{padding:var(--a3);min-height:190px}
.browser-apps{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:var(--a2)}
.browser-app{background:var(--paper);border-radius:var(--soft);box-shadow:var(--d1);padding:var(--a3);
             text-align:center;font-size:12.5px}
.browser-app .icon{width:26px;height:26px;margin:0 auto 8px}
.browser-app b{display:block;font-weight:700;margin-bottom:3px}
.browser-app span{opacity:.75;font-size:11px}

/* Night Panel — the dark surface, used ONLY to depict isolation mode */
.night{background:#08120F;border-radius:var(--round);box-shadow:var(--d3);
       padding:var(--a6) var(--a4);text-align:center;color:#EFE6D2}
.night .orb-live{width:132px;height:132px;border-radius:50%;margin:0 auto var(--a4);
     background:radial-gradient(circle at 50% 45%, rgba(2,80,79,.85), rgba(8,18,15,0) 68%);
     box-shadow:0 0 46px rgba(2,120,110,.36) inset, 0 0 26px rgba(2,120,110,.22)}
.night .seat{font-family:var(--serif);font-size:30px;letter-spacing:.3em}
.night .said{margin:var(--a3) auto 0;font-size:15px;opacity:.92;max-width:44ch;line-height:1.6}
.night .row{display:flex;gap:var(--a2);justify-content:center;margin-top:var(--a4);flex-wrap:wrap}
.night .key{background:#16241F;border-radius:var(--soft);padding:11px 20px;font-size:11px;
            letter-spacing:.1em;font-weight:700;color:#EFE6D2}
.night .key.hot{background:var(--accent)}

/* ── MODULE TREE — major modules, sub-modules inside ──────────────────────── */
.mod-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:var(--a2)}
.mod{background:var(--surface);border-radius:var(--round);box-shadow:var(--d2);padding:var(--a3)}
.mod h4{font-family:var(--serif);font-weight:400;font-size:18px;display:flex;align-items:center;gap:8px}
.mod ul{margin-top:var(--a2);padding-left:0;list-style:none}
.mod li{font-size:12.5px;padding:3px 0;opacity:.9}
.mod li::before{content:"·  ";opacity:.55}
.mod .ai-tag{margin-top:var(--a2);display:inline-block;background:var(--paper);
             border-radius:var(--capsule);box-shadow:var(--in1);padding:5px 11px;
             font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;font-weight:700}

/* ── APP SCREEN — a faithful mock of the real product UI, inset in the page ─
   Licensed second surface (like Night Panel): the app is light, so it renders
   light. Use ONLY to show a real screen, never to invent one.               */
.app-screen{background:var(--surface);border-radius:var(--round);box-shadow:var(--in2);
            overflow:hidden;display:flex;min-height:440px;font-family:var(--sans)}
.app-side{flex:0 0 190px;background:var(--paper);padding:var(--a3) var(--a2);
          border-right:1.5px solid var(--edge);overflow:hidden}
.app-side .brandline{font-family:var(--serif);font-size:15px;margin-bottom:var(--a2)}
.app-side .corps{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:var(--a3)}
.app-side .corps span{background:var(--surface);border-radius:var(--capsule);padding:3px 8px;
                      font-size:9px;font-weight:700;box-shadow:var(--d1)}
.app-side .corps span.on{background:var(--ink);color:var(--cream)}
.app-side nav{display:flex;flex-direction:column;gap:2px}
.app-side nav i{font-style:normal;font-size:11.5px;padding:7px 9px;border-radius:var(--soft);
                opacity:.8}
.app-side nav i.on{background:var(--surface);box-shadow:var(--d1);opacity:1;font-weight:700}
.app-main{flex:1;min-width:0;display:flex;flex-direction:column}
.app-top{display:flex;align-items:center;gap:var(--a2);padding:var(--a2) var(--a3);
         border-bottom:1.5px solid var(--edge);flex-wrap:wrap}
.app-top .ttl{font-size:15px;font-weight:700;margin-right:auto}
.app-top .sel{background:var(--paper);border-radius:var(--soft);box-shadow:var(--in1);
              padding:5px 11px;font-size:10.5px}
.app-top .who{background:var(--ink);color:var(--cream);border-radius:var(--capsule);
              padding:5px 11px;font-size:10.5px;font-weight:700}
.app-body{padding:var(--a3);overflow:auto;flex:1}
.app-h{font-family:var(--serif);font-size:20px;margin-bottom:var(--a2)}
.app-filters{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:var(--a3)}
.app-filters span{background:var(--paper);border-radius:var(--capsule);box-shadow:var(--in1);
                  padding:5px 12px;font-size:10.5px}
.app-filters span.on{background:var(--ink);color:var(--cream);box-shadow:none}
.app-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:var(--a2);
           margin-bottom:var(--a3)}
.app-stats div{background:var(--paper);border-radius:var(--soft);box-shadow:var(--d1);
               padding:var(--a2);text-align:center}
.app-stats b{display:block;font-family:var(--serif);font-size:22px;font-weight:400}
.app-stats span{font-size:10.5px;opacity:.8}
.app-table{width:100%;border-collapse:collapse;font-size:12px}
.app-table th{text-align:left;font-size:10px;letter-spacing:.12em;text-transform:uppercase;
              padding:7px 8px;border-bottom:1.5px solid var(--edge);opacity:.75}
.app-table td{padding:8px;border-bottom:1px solid var(--edge)}
.app-table tr:last-child td{border-bottom:0}
.app-table td.num{text-align:right;font-variant-numeric:tabular-nums}
.app-table .pill{background:var(--paper);border-radius:var(--capsule);padding:2px 9px;font-size:10px;
                 box-shadow:var(--in1);white-space:nowrap}
.app-table tr.total td{font-weight:700;border-top:1.5px solid var(--edge);border-bottom:0}
.app-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:var(--a2)}
.app-card{background:var(--paper);border-radius:var(--soft);box-shadow:var(--d1);padding:var(--a2);
          font-size:11.5px}
.app-card .id{display:flex;justify-content:space-between;align-items:center;gap:6px;
              font-weight:700;font-size:10.5px;margin-bottom:6px}
.app-card .nm{font-size:13px;margin-bottom:4px}
.app-card .amt{font-weight:700;margin-top:6px}
.app-ai{margin-top:var(--a3);background:var(--paper);border-radius:var(--soft);box-shadow:var(--in1);
        padding:var(--a2) var(--a3);font-size:12px;display:flex;gap:10px;align-items:flex-start}
.app-ai .who{flex:0 0 auto;background:var(--ink);color:var(--cream);border-radius:var(--capsule);
             padding:3px 10px;font-size:9.5px;font-weight:700;letter-spacing:.1em}

.mod{cursor:pointer;transition:box-shadow var(--rise),transform var(--rise)}
.mod:hover{box-shadow:var(--d3);transform:translateY(-3px)}
.mod:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
.erp-screen{display:none} .erp-screen.show{display:block}
.erp-back{margin-bottom:var(--a3)}

@media (max-width:760px){ .app-side{display:none} .app-screen{min-height:0} }

/* ── PILLARS — three things one system holds ──────────────────────────────── */
.pillars{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:var(--a3)}
.pillar{background:var(--surface);border-radius:var(--round);box-shadow:var(--d2);
        padding:var(--a4) var(--a3);text-align:center}
.pillar .icon{margin:0 auto var(--a2)}
.pillar h4{font-family:var(--serif);font-weight:400;font-size:21px}
.pillar ul{margin-top:var(--a3);list-style:none;text-align:left}
.pillar li{font-size:13px;padding:5px 0;border-bottom:1px solid var(--edge)}
.pillar li:last-child{border-bottom:0}

@media (max-width:900px){
  .modal{padding:var(--a5) var(--a3) var(--a3)}
  .crew-branch{min-width:118px}
}

/* ── MEGA BUTTON — the one button on the page that is not like the others ──
   For a single door that opens something big. Wide, accent-filled, with a
   subtitle explaining what is behind it. Use ONCE per page — the moment there
   are two, neither is the important one.                                    */
.mega-btn{display:flex;align-items:center;gap:var(--a3);width:100%;
          background:var(--accent);color:var(--surface);border:0;cursor:pointer;
          border-radius:var(--round);box-shadow:var(--d3);padding:var(--a4) var(--a4);
          text-align:left;font-family:var(--sans);
          transition:box-shadow var(--rise),transform var(--rise)}
.mega-btn:hover{box-shadow:var(--d4);transform:translateY(-3px)}
.mega-btn:active{box-shadow:var(--in1);transform:translateY(2px)}
.mega-btn:focus-visible{outline:3px solid var(--ink);outline-offset:4px}
.mega-btn .mb-ring{flex:0 0 58px;height:58px;border-radius:50%;
          background:rgba(248,232,198,.16);display:flex;align-items:center;justify-content:center}
.mega-btn .mb-ring .icon{width:28px;height:28px;stroke:var(--surface)}
.mega-btn .mb-txt{flex:1;min-width:0}
.mega-btn .mb-ttl{font-family:var(--serif);font-size:clamp(20px,2.6vw,28px);line-height:1.15;display:block}
.mega-btn .mb-sub{font-size:12.5px;opacity:.9;margin-top:5px;display:block}
.mega-btn .mb-go{flex:0 0 auto;font-size:26px;opacity:.9}
@media (max-width:600px){
  .mega-btn{padding:var(--a3);gap:var(--a2)}
  .mega-btn .mb-ring{flex:0 0 44px;height:44px}
  .mega-btn .mb-go{display:none}
}

/* the capability cards inside it */
.cap-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(268px,1fr));gap:var(--a3)}
/* a fixed pair of columns — for sets of 4, so the last card is not stranded
   alone on a row with an empty half beside it. */
.cap-grid.pairs{grid-template-columns:repeat(2,1fr)}
@media (max-width:720px){.cap-grid.pairs{grid-template-columns:1fr}}
.cap-card{background:var(--surface);border-radius:var(--round);box-shadow:var(--d2);
          padding:var(--a3);display:flex;flex-direction:column}
.cap-card .cap-head{display:flex;align-items:center;gap:10px;margin-bottom:var(--a2);
          padding-bottom:var(--a2);border-bottom:1.5px solid var(--edge)}
.cap-card .cap-head .icon{width:22px;height:22px;flex:0 0 auto}
.cap-card .cap-head h4{font-family:var(--serif);font-weight:400;font-size:19px;line-height:1.15}
.cap-card ul{list-style:none;margin:0}
.cap-card li{font-size:13px;line-height:1.5;padding:5px 0 5px 15px;position:relative}
.cap-card li::before{content:"";position:absolute;left:0;top:12px;width:6px;height:6px;
          border-radius:50%;background:var(--accent);opacity:.65}
.cap-card li b{font-weight:700}
.cap-note{background:var(--paper);box-shadow:var(--in1);border-radius:var(--soft);
          padding:var(--a3);margin-top:var(--a3);font-size:13px;line-height:1.6}

/* ── COST CHIPS + MINI MODAL — a long table folded into buttons ────────────
   A seven-row table of running costs is a wall the reader skims. Each service
   becomes a chip carrying its name and its starting price — the two things
   worth seeing at a glance — and the detail opens in a small centred modal.
   The TOTAL is never hidden behind a click: it is the number they came for.  */
/* align-items:start — otherwise the grid stretches every chip to the tallest
   one and the caption gets pushed to the floor of a giant empty box. */
.cost-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(122px,1fr));
          gap:var(--a2);align-items:start}
.cost-chip{background:var(--surface);border:0;border-radius:var(--soft);box-shadow:var(--d2);
           padding:var(--a3) var(--a2);text-align:center;font-family:var(--sans);color:var(--ink);
           display:flex;flex-direction:column;align-items:center;justify-content:center;
           gap:3px;min-height:0;height:auto;align-self:start;line-height:1.25;
           transition:box-shadow var(--rise),transform var(--rise)}
.cost-chip:hover{box-shadow:var(--d3);transform:translateY(-3px)}
.cost-chip .icon{width:24px;height:24px;opacity:.85}
.cost-chip .nm{font-family:var(--serif);font-size:17px;line-height:1.1}
.cost-chip .amt{font-size:12.5px;font-weight:800;letter-spacing:.02em}
.cost-chip .cap{font-size:9.5px;letter-spacing:.14em;text-transform:uppercase;opacity:.6}
.cost-chip:focus-visible{outline:3px solid var(--accent);outline-offset:4px}

.cost-total{margin-top:var(--a3);display:grid;grid-template-columns:1fr 1fr;gap:var(--a3);
            padding:var(--a4);border-radius:var(--round)}
.cost-total .half{text-align:center}
.cost-total .lbl{font-size:9.5px;letter-spacing:.1em;text-transform:uppercase;
                 font-weight:800;opacity:.8}
.cost-total .fig{font-family:var(--serif);font-size:clamp(26px,3.4vw,40px);line-height:1.1;
                 margin-top:8px;display:block}
.cost-total .peso{font-size:12px;opacity:.85;margin-top:4px}
@media (max-width:640px){ .cost-total{grid-template-columns:1fr;gap:var(--a3)} }

/* the small centred pop-up — for one fact, not a whole chapter */
.scrim.mini{align-items:center}
.modal.mini{width:min(460px,100%);padding:var(--a5) var(--a4) var(--a4)}
.modal.mini .modal-head{margin-bottom:var(--a3)}
.modal.mini .row{display:flex;justify-content:space-between;gap:var(--a3);
                 padding:var(--a2) 0;border-bottom:1px solid var(--edge);font-size:13.5px}
.modal.mini .row:last-of-type{border-bottom:0}
.modal.mini .row .k{opacity:.7;flex:0 0 auto}
.modal.mini .row .v{text-align:right;font-weight:700}

/* ── THE PRESS LAW — EVERYTHING clickable presses ──────────────────────────
   Migs, 2026-09-07: the pumping feeling is not decoration on buttons, it is
   how a neumorphic surface tells you it received your finger. Any object that
   responds to a click inverts to a Well and drops 2px while held. If a thing
   can be clicked and does not press, that is a defect — the reader cannot tell
   whether the click landed.
   Under reduced-motion the surface still inverts; only the movement stops, so
   the feedback survives for people who cannot take the motion.              */
.press:active,
.ghost:active,
.is-clickable:active,
.ask > summary:active,
.reveal > summary:active,
.chapter-rail a:active,
.modal-close:active,
.flip:active,
.talk-btn:active .orb,
.browser-app:active,
.mod:active{
  box-shadow:var(--in1) !important;
  transform:translateY(2px);
  transition:box-shadow var(--press),transform var(--press);
}
/* the clickable card keeps its accent edge while pressed, or it flickers */
.is-clickable:active,.mod:active{
  box-shadow:var(--in1),0 0 0 1.5px rgba(170,61,31,.42) !important;
}
/* anything that presses must also say so with the cursor */
.press,.ghost,.is-clickable,.ask > summary,.reveal > summary,.chapter-rail a,
.modal-close,.flip,.talk-btn,.browser-app,.mod{cursor:pointer}
@media (prefers-reduced-motion:reduce){
  .press:active,.ghost:active,.is-clickable:active,.ask > summary:active,
  .reveal > summary:active,.chapter-rail a:active,.modal-close:active,
  .flip:active,.talk-btn:active .orb,.browser-app:active,.mod:active{
    transform:none;
  }
}

/* ── DRESS ────────────────────────────────────────────────────────────────── */
.crest-head{display:flex;align-items:center;gap:var(--a3);max-width:1100px;margin:0 auto;
            padding:var(--a3) var(--a4)}
.crest-head img{display:block;height:42px;width:auto}
.crest-head .lockup{flex:1;text-align:center;font-family:var(--serif);font-style:italic;font-size:13px}
.crest-foot{border-top:1.5px solid var(--edge);margin-top:var(--a5);padding:var(--a3) var(--a4);
            text-align:center}
.crest-foot .lockup{font-family:var(--serif);font-style:italic;font-size:12.5px}
.crest-foot .meta{margin-top:5px;font-size:11px;letter-spacing:.04em}

/* ── MOTION: Wake ─────────────────────────────────────────────────────────── */
.wake{opacity:0;transform:translateY(20px);transition:opacity 500ms ease,transform 500ms cubic-bezier(.2,.7,.3,1)}
.wake.awake{opacity:1;transform:none}

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

/* ── RESPONSIVE (WORKFLOW responsiveness law) ─────────────────────────────── */
@media (max-width:900px){
  .three-beat,.two-beat,.four-beat,.compare{grid-template-columns:1fr}
  .price-col.chosen{transform:none}
  .stage{padding:var(--a5) var(--a3)}
  .chapter-rail{display:none}
  .coin-rail{flex-direction:column;align-items:stretch}
  .coin-rail .ridge,.coin-rail .groove{height:36px;width:8px;align-self:center;flex:0 0 36px}
  .coin{margin:0 auto}
  .crest-head{flex-wrap:wrap;gap:var(--a2)}
  .crest-head .lockup{order:3;flex-basis:100%}
}

/* ── PRINT ────────────────────────────────────────────────────────────────── */
@media print{
  body{background:#fff}
  .chapter-rail,.flip-hint{display:none}
  .pillow,.pillow-card,.glance-card,.coin,.check,.letter,.flip-front,.stat,.price-col
    {box-shadow:none!important;border:.75pt solid var(--edge)}
  .ink-slab,.press,.meter-fill{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .flip{min-height:0}
  .flip-inner,.flip-face{position:static;transform:none!important}
  .flip-back{box-shadow:none;border:0;padding-top:0}
  .stage{padding:var(--a3) 0;break-inside:avoid}
  .wake{opacity:1;transform:none}
}
