/* THE VAULT · SHEETS · shared/vault-sheets.css (improvements, 2026-09-24)
   The bottom sheets of every hub (the wire, the seats, your road), in the
   grammar of the door (shared/vault-threshold.js). Behaviour, the swipe
   down, is shared/vault-sheets.js. Pages link this BEFORE their own
   <style>, so a page's own rules (the portal's seat cards) sit on top.
   Needs the house tokens: --ink --muted --dim --gold --gold-hi --ft --fm --e.
   ------------------------------------------------------------------
   Kevin, on the door (shared/vault-threshold.js): "far more amicable than
   the rest of the site and looks more modern". Every sheet here (the wire,
   the seats, your road) now moves and reads like it: a veil that blurs the
   room, a sheet that springs up and slides back down (or is swiped down,
   shared/vault-sheets.js), a light along its top edge, the words rising in
   order, lit cards, and gold as the accent: the house is gold, cyan is
   Argentina 1990's alone (design-language law; shared/vault-house.css noted
   the portal's cyan sheets as drift). Transform and opacity only. The
   entrances fill backwards only, so a closing sheet keeps its words. */
.scrim{position:fixed;inset:0;z-index:70;background:rgba(4,4,6,.8);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  opacity:0;pointer-events:none;transition:opacity .45s ease;}
.scrim.show{opacity:1;pointer-events:auto;}
.sheet{position:fixed;left:50%;bottom:0;width:100%;max-width:480px;z-index:80;
  transform:translateX(-50%) translateY(104%);transition:transform .44s cubic-bezier(.55,0,.8,.2);
  border-radius:26px 26px 0 0;padding:0 22px calc(26px + env(safe-area-inset-bottom));max-height:92vh;overflow-y:auto;overscroll-behavior:contain;
  background:radial-gradient(140% 60% at 50% 0%,#1b1820,#0d0c10 58%,#08080a);color:var(--ink);border-top:1px solid rgba(255,170,0,.3);
  /* the second shadow is a skirt in the sheet's own floor colour: the spring
     lifts the sheet past the edge for a moment and nothing shows beneath */
  box-shadow:0 -30px 80px rgba(0,0,0,.72),0 60px 0 #08080a;}
.sheet.show{transform:translateX(-50%) translateY(var(--drag,0px));transition:transform .78s cubic-bezier(.16,1.16,.3,1);}
.sheet.dragging{transition:none;}
/* the light runs along the top edge and stays there while the sheet scrolls */
.sheet::before{content:"";position:sticky;top:0;z-index:6;display:block;height:1px;margin:0 -22px -1px;pointer-events:none;
  background:linear-gradient(90deg,transparent 0%,rgba(255,201,77,0) 35%,#FFC94D 50%,rgba(255,201,77,0) 65%,transparent 100%) 0 0/260% 100%;}
.sheet::after{content:"";position:absolute;left:50%;top:-150px;width:420px;height:280px;margin-left:-210px;z-index:-1;border-radius:50%;
  pointer-events:none;background:radial-gradient(closest-side,rgba(255,170,0,.17),transparent);}
.sheet.show::before{animation:sheetSweep 5.5s linear infinite;}
.sheet.show::after{animation:sheetBreathe 6s ease-in-out infinite alternate;}
@keyframes sheetSweep{from{background-position:100% 0;}to{background-position:-160% 0;}}
@keyframes sheetBreathe{from{opacity:.55;transform:scale(.92);}to{opacity:1;transform:scale(1.06);}}
.sheet-grip{width:42px;height:4px;border-radius:100px;background:rgba(255,255,255,.22);margin:12px auto 18px;}
.sheet-close{position:absolute;right:14px;top:14px;width:34px;height:34px;border-radius:50%;border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);display:grid;place-items:center;color:var(--muted);z-index:7;
  transition:color .2s,border-color .2s,transform .35s var(--e);}
.sheet-close:hover{color:var(--ink);border-color:rgba(255,170,0,.5);transform:rotate(90deg);}
.sheet-close svg{width:14px;height:14px;}
.sheet-eyebrow{display:flex;align-items:center;justify-content:center;gap:10px;font-family:var(--fm);font-size:.56rem;font-weight:600;
  letter-spacing:.28em;text-transform:uppercase;color:var(--gold);text-align:center;}
.sheet-eyebrow::before,.sheet-eyebrow::after{content:"";width:20px;height:1px;background:currentColor;opacity:.6;}
.sheet-eyebrow::before{transform-origin:right;} .sheet-eyebrow::after{transform-origin:left;}
.sheet.show .sheet-eyebrow::before,.sheet.show .sheet-eyebrow::after{animation:sheetDraw .8s var(--e) .45s backwards;}
@keyframes sheetDraw{from{transform:scaleX(0);}}
.sheet-title{font-family:var(--ft);font-weight:400;font-size:clamp(2rem,8.4vw,2.5rem);letter-spacing:.02em;text-transform:uppercase;
  text-align:center;margin:12px 0 8px;line-height:.94;color:var(--ink);}
.sheet-title em{font-style:normal;color:var(--gold);
  background:linear-gradient(100deg,#FFAA00 42%,#FFE7AE 50%,#FFAA00 58%) 0 0/260% 100%;
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;}
.sheet.show .sheet-title em{animation:sheetShine 6s ease-in-out 1.3s infinite;}
@keyframes sheetShine{0%{background-position:100% 0;}40%,100%{background-position:-60% 0;}}
.sheet-sub{font-size:.9rem;line-height:1.55;color:var(--muted);text-align:center;max-width:34ch;margin:0 auto 22px;}
.sheet-fine{text-align:center;font-family:var(--fm);font-size:.56rem;letter-spacing:.06em;color:var(--dim);margin-top:16px;}
/* the words arrive in order: eyebrow, title, line, then the cards one by one */
.sheet.show>:nth-child(3){--i:0;} .sheet.show>:nth-child(4){--i:1;} .sheet.show>:nth-child(5){--i:2;}
.sheet.show>:nth-child(6){--i:3;} .sheet.show>:nth-child(7){--i:4;}
.sheet.show>:not(.sheet-grip):not(.sheet-close):not(.confirm):not(.plans):not(.news-list){animation:sheetRise .62s var(--e) backwards;animation-delay:calc(.16s + var(--i,4) * .06s);}
.sheet.show .plans>*,.sheet.show .news-list>*{animation:sheetRise .6s var(--e) backwards;animation-delay:calc(.34s + var(--j,7) * .05s);}
.plans>:nth-child(1),.news-list>:nth-child(1){--j:0;} .plans>:nth-child(2),.news-list>:nth-child(2){--j:1;}
.plans>:nth-child(3),.news-list>:nth-child(3){--j:2;} .plans>:nth-child(4),.news-list>:nth-child(4){--j:3;}
.plans>:nth-child(5),.news-list>:nth-child(5){--j:4;} .plans>:nth-child(6),.news-list>:nth-child(6){--j:5;}
.plans>:nth-child(7),.news-list>:nth-child(7){--j:6;}
@keyframes sheetRise{from{opacity:0;transform:translate3d(0,14px,0);}}
.news-list{display:flex;flex-direction:column;gap:10px;margin-top:4px;}
.news-item{position:relative;border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:15px 16px 16px;
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.012));box-shadow:inset 0 1px 0 rgba(255,255,255,.04);}
.news-item.unread{border-color:rgba(255,170,0,.4);background:linear-gradient(180deg,rgba(255,170,0,.085),rgba(255,170,0,.015));}
.news-item.unread::after{content:"";position:absolute;right:14px;top:17px;width:7px;height:7px;border-radius:50%;background:var(--gold);box-shadow:0 0 10px rgba(255,170,0,.8);}
.sheet.show .news-item.unread::after{animation:sheetPulse 1.8s ease-in-out infinite;}
.news-meta{display:flex;align-items:center;gap:8px;font-family:var(--fm);font-size:.5rem;letter-spacing:.14em;text-transform:uppercase;color:var(--dim);}
.news-tag{color:var(--gold-hi);border:1px solid rgba(255,170,0,.35);border-radius:100px;padding:2px 7px;}
.news-t{font-size:.9rem;font-weight:600;margin-top:8px;color:var(--ink);line-height:1.35;padding-right:14px;}
.news-b{font-size:.78rem;line-height:1.5;color:var(--muted);margin-top:5px;}
.news-law{font-size:.74rem;font-style:italic;color:var(--gold-hi);margin-top:10px;line-height:1.45;}
.news-link{display:inline-flex;align-items:center;gap:7px;margin-top:11px;padding:8px 13px;border:1px solid rgba(255,170,0,.5);border-radius:100px;
  color:var(--ink);text-decoration:none;font-family:var(--fm);font-size:.54rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;background:rgba(20,15,6,.4);
  transition:background .2s,border-color .2s;}
.news-link:hover{background:rgba(255,170,0,.12);border-color:var(--gold);}
.news-link span{display:inline-block;transition:transform .25s var(--e);} .news-link:hover span{transform:translateX(3px);}
.news-link span{color:var(--gold);font-size:.9rem;line-height:0;}
.news-empty{text-align:center;color:var(--dim);font-size:.8rem;padding:18px 0 6px;}

@keyframes sheetPulse{0%,100%{opacity:1;}50%{opacity:.45;}}
/* a device that asks for less motion: the sheets arrive and leave still */
@media (prefers-reduced-motion: reduce){
  .scrim,.sheet,.sheet.show{transition:none;}
  .sheet.show>*,.sheet.show .plans>*,.sheet.show .news-list>*,.sheet.show::before,.sheet.show::after,
  .sheet.show .sheet-eyebrow::before,.sheet.show .sheet-eyebrow::after,.sheet.show .sheet-title em,
  .sheet.show .news-item.unread::after{animation:none !important;}
}
