/* UMBRELLA · umbrellalab.club. One strict page: paper, ink, one cobalt accent;
   red and green belong to the market only. Hairlines, square corners, mono figures.
   Motion: transform and opacity only; the weather is CSS animations, no canvas. */

@font-face { font-family: 'Geist'; src: url('/fonts/geist.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/geist-mono.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #F5F6F8;
  --card: #FFFFFF;
  --ink: #0B0F17;
  --ink-2: #394254;
  --mute: #687286;
  --faint: #9AA2B1;
  --line: #E3E6EC;
  --line-2: #CDD2DB;
  --acc: #1F4FD6;
  --acc-2: #173DA8;
  --acc-s: #EDF2FE;
  --red: #D12A1D;
  --red-s: #FCEDEB;
  --green: #0B8457;
  --green-s: #E6F4EE;
  --w0: #A9BDF4;
  --w1: #6888E8;
  --w2: #2A56D7;
  --w3: #0E2671;
  --r: 4px;
  --hd: 60px;
  --nav: 0px;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* the weather: streak duration, length and strength (set per sky below) */
  --t: 1s;
  --len: 40px;
  --o: .45;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.modal-on, html.dw-on { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
code, .mono { font-family: var(--mono); letter-spacing: -0.01em; }
code { font-size: .92em; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
::selection { background: var(--acc); color: #fff; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 16px; height: 16px; fill: currentColor; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mute { color: var(--mute); }
.up { color: var(--green); }
.dn { color: var(--red); }
.sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }
.nojs { margin: 0; padding: 48px 24px; text-align: center; color: var(--mute); }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes lineup { from { transform: translateY(110%); } }
@keyframes slidein { from { opacity: 0; transform: translateX(32px); } }
@keyframes pop { from { transform: scale(0); } 60% { transform: scale(1.35); } }
@keyframes fadeout { from { opacity: 1; } to { opacity: 0; } }

/* ------------------------------------------------------------------ header */

.hd { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .2s; }
.hd.lift { border-bottom-color: var(--line); }
.hd-in { max-width: 1248px; margin: 0 auto; padding: 0 24px; height: var(--hd); display: flex; align-items: center; gap: 10px; }
/* how far down the page you are: a cobalt hairline under the bar (where the browser can tie it to the scroll) */
@supports (animation-timeline: scroll()) {
  .hd::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--acc); transform: scaleX(0); transform-origin: left; animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { transform: scaleX(1); } }
}

.brand { display: flex; align-items: center; gap: 10px; margin-right: 18px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.mark { position: relative; width: 28px; height: 28px; display: grid; place-items: center; overflow: hidden; background: var(--ink); color: #fff; border-radius: 3px; flex: none; }
.mark .ic { width: 18px; height: 18px; }
/* when it rains, it rains on the mark too: drops beside the canopy, the umbrella sways */
.mark i { position: absolute; top: -6px; width: 1px; height: 5px; background: rgba(255, 255, 255, .8); display: none; animation: mdrop .85s linear infinite; }
.mark i:nth-of-type(1) { left: 3px; animation-delay: -.2s; }
.mark i:nth-of-type(2) { left: 24px; animation-delay: -.55s; }
.mark i:nth-of-type(3) { left: 5px; animation-delay: -.7s; animation-duration: 1s; }
@keyframes mdrop { from { transform: translateY(0); } to { transform: translateY(40px); } }
html[data-sky^="w"] .mark i, html[data-burst] .mark i { display: block; }
html[data-sky^="w"] .brand .mark .ic, html[data-burst] .brand .mark .ic { transform-origin: 50% 85%; animation: sway 2.6s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.word { font-weight: 700; font-size: 14.5px; letter-spacing: .16em; }

.nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.nav a { position: relative; padding: 9px 10px; color: var(--mute); font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: color .15s; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 1px; height: 2px; background: var(--acc); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after { transform: scaleX(.35); }
.nav a.on { color: var(--ink); }
.nav a.on::after { transform: scaleX(1); }

.hd-r { display: flex; align-items: center; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 3px; background: var(--card); color: var(--ink-2); font: 500 12px/1 var(--mono); white-space: nowrap; animation: rise .5s var(--ease) both; }
a.chip:hover, button.chip:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.chip.net { background: var(--acc-s); border-color: transparent; color: var(--acc); }
.chip.bad { background: var(--red-s); border-color: transparent; color: var(--red); }
.chip.ca b { font: 600 12.5px/1 var(--sans); color: var(--ink); }
.chip.ca code { color: var(--mute); font-size: 12px; }
.chip.ca .ic { width: 13px; height: 13px; color: var(--mute); }
.chip.sq { width: 30px; padding: 0; justify-content: center; }
.chip.sq .ic { width: 14px; height: 14px; }

.desk-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border: 1px solid var(--acc); border-radius: 3px; background: var(--acc-s); color: var(--acc); font-weight: 600; font-size: 13.5px; white-space: nowrap; transition: background .15s, color .15s, transform .15s; animation: rise .5s var(--ease) both; }
.desk-btn:hover, .desk-btn[aria-expanded="true"] { background: var(--acc); color: #fff; }
.desk-btn .ic { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.desk-btn:hover .ic { transform: rotate(-20deg); }

.wbtn { display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 14px 0 12px; border: 1px solid var(--ink); border-radius: 3px; background: var(--ink); color: #fff; font-weight: 600; font-size: 13.5px; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s; }
.wbtn::before { content: ''; width: 7px; height: 7px; background: currentColor; opacity: .4; flex: none; transition: transform .3s var(--ease); }
.wbtn:hover { background: var(--ink-2); border-color: var(--ink-2); }
.wbtn:hover::before { transform: rotate(45deg); }
.wbtn.on { background: var(--card); color: var(--ink); border-color: var(--line-2); font: 500 13px/1 var(--mono); }
.wbtn.on::before { background: var(--green); opacity: 1; animation: pop .5s var(--ease); }
.wbtn.on:hover { border-color: var(--ink); }
.wbtn.dev::before { background: var(--acc); }

/* ------------------------------------------------------------------ page */

main#page { display: block; max-width: 1248px; margin: 0 auto; padding: 0 24px 24px; outline: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 3px; background: var(--card); color: var(--ink); font: 600 14px/1 var(--sans); white-space: nowrap; transition: border-color .15s, background .15s, color .15s, transform .15s; }
.btn:hover { border-color: var(--ink); text-decoration: none; }
.btn .ic { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn:active, .wbtn:active, .desk-btn:active, .chip:active, .ca-copy:active { transform: translateY(1px); }
.btn.pri, .btn.hot { background: var(--acc); border-color: var(--acc); color: #fff; }
.btn.pri:hover, .btn.hot:hover { background: var(--acc-2); border-color: var(--acc-2); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--red); border-color: #EDBCB7; }
.btn.danger:hover { border-color: var(--red); }
.btn.big { width: 100%; height: 48px; font-size: 15px; }
.btn.big.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn:disabled { opacity: .42; pointer-events: none; }

.ib { width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 3px; color: var(--mute); flex: none; transition: background .15s, color .15s; }
.ib:hover { background: var(--bg); color: var(--ink); }
.ib .ic { width: 14px; height: 14px; }

input[type=text], textarea, select { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 3px; background: var(--card); color: var(--ink); font: 400 14px/1.4 var(--sans); transition: border-color .15s, box-shadow .15s; }
textarea { height: auto; padding: 10px 12px; line-height: 1.5; resize: vertical; }
select { appearance: auto; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-s); }
input::placeholder, textarea::placeholder { color: var(--faint); }
input[type=file] { display: none; }

/* ------------------------------------------------------------------ hero */

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; align-items: start; padding: 64px 0 40px; scroll-margin-top: var(--hd); }
.hero > .hero-l, .hero > .lc { position: relative; z-index: 1; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; font: 500 12px/1 var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: .06em; animation: rise .6s var(--ease) both; }
.live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }
.live::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--red); animation: ping 2.2s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: .45; } to { transform: scale(3.2); opacity: 0; } }
.hero h1 { font-size: 54px; line-height: 1.04; font-weight: 650; letter-spacing: -0.038em; }
/* each line slides up out of its own mask */
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero h1 .ln > span { display: inline-block; animation: lineup 1s var(--ease) both; }
.hero h1 .ln + .ln > span { animation-delay: .1s; }
.hero h1 .red { color: var(--red); }
.lede { margin: 24px 0 0; max-width: 560px; font-size: 17px; line-height: 1.6; color: var(--ink-2); animation: rise .8s .22s var(--ease) both; }
.lede b { color: var(--ink); font-weight: 600; }

.hero-l .ca { margin-top: 30px; max-width: 580px; animation: rise .8s .3s var(--ease) both; }
.ca-soon { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--card); }
.ca-soon b { font-weight: 600; font-size: 14px; }
.ca-soon span { color: var(--mute); font-size: 13.5px; }
.ca-copy { display: flex; align-items: center; gap: 12px; width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); text-align: left; transition: border-color .15s, transform .15s; }
.ca-copy:hover { border-color: var(--ink); }
.ca-copy span { padding: 4px 6px; border-radius: 2px; background: var(--ink); color: #fff; font: 600 11px/1 var(--mono); letter-spacing: .06em; }
.ca-copy code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.ca-copy .ic { color: var(--mute); }
.ca-ls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 10px; font-size: 13.5px; }
.ca-ls a { font-weight: 500; }
.hero-b { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; animation: rise .8s .38s var(--ease) both; }

/* the weather: a slanted sheet of streaks behind the hero, edge to edge */
.sky { position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); width: 100vw; z-index: 0; overflow: hidden; pointer-events: none; }
.sky.off { display: none; }
.sky-r { position: absolute; inset: -16% -10%; transform: rotate(14deg); }
.sky-r i { position: absolute; top: 0; left: var(--x); display: none; width: 1.5px; height: calc(var(--len) * var(--v)); border-radius: 1px; background: linear-gradient(to bottom, rgba(31, 79, 214, 0), rgba(31, 79, 214, var(--o))); animation: fall calc(var(--t) * var(--v)) linear infinite; animation-delay: calc(var(--t) * var(--v) * var(--d) * -1); }
@keyframes fall { from { transform: translate3d(0, -140px, 0); } to { transform: translate3d(0, var(--fall, 1100px), 0); } }
.sky-s { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; }
.sky-s i { position: absolute; bottom: 3px; left: var(--x); display: none; width: 16px; height: 5px; margin-left: -8px; border: 1px solid rgba(31, 79, 214, .5); border-radius: 50%; opacity: 0; animation: splash 1.3s ease-out infinite; animation-delay: calc(var(--d) * -1.3s); }
@keyframes splash { 0% { transform: scale(.15); opacity: .9; } 70% { opacity: .2; } 100% { transform: scale(1.5); opacity: 0; } }
.sky-f { position: absolute; inset: 0; background: radial-gradient(120% 80% at 70% 0%, rgba(31, 79, 214, .16), rgba(31, 79, 214, 0) 62%); opacity: 0; }
@keyframes bolt { 0%, 86%, 100% { opacity: 0; } 87% { opacity: 1; } 88.5% { opacity: .15; } 90% { opacity: .8; } 93% { opacity: 0; } }

html[data-sky="w0"] { --t: 1.5s; --len: 30px; --o: .5; }
html[data-sky="w1"] { --t: 1.15s; --len: 42px; --o: .58; }
html[data-sky="w2"] { --t: .9s; --len: 56px; --o: .64; }
html[data-sky="w3"], html[data-burst] { --t: .7s; --len: 70px; --o: .7; }
html[data-sky="w0"] .sky-r i:nth-child(-n+28),
html[data-sky="w1"] .sky-r i:nth-child(-n+48),
html[data-sky="w2"] .sky-r i:nth-child(-n+72),
html[data-sky="w3"] .sky-r i,
html[data-burst] .sky-r i { display: block; }
html[data-sky="w1"] .sky-s i:nth-child(-n+4),
html[data-sky="w2"] .sky-s i:nth-child(-n+8),
html[data-sky="w3"] .sky-s i,
html[data-burst] .sky-s i { display: block; }
html[data-sky="w3"] .sky-f { animation: bolt 7s linear infinite; }

/* the live candle */
.lc { position: relative; overflow: hidden; padding: 20px 22px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 1px 0 rgba(11, 15, 23, .03), 0 16px 40px -24px rgba(11, 15, 23, .22); animation: slidein .9s .15s var(--ease) both; }
.lc::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; opacity: 0; pointer-events: none; }
.lc.sun::after { animation: sweep 1.8s var(--ease); }
@keyframes sweep { 0% { transform: scaleX(0); opacity: 1; } 55% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.lc-h { display: flex; justify-content: space-between; gap: 12px; font: 500 11.5px/1 var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: .05em; }
.lc-h b { color: var(--ink); font-weight: 600; }
.lc.soon .lc-left b { color: var(--red); animation: tick 1s steps(2, jump-none) infinite; }
@keyframes tick { 50% { opacity: .3; } }
/* the line has passed and its price is on its way: three dots, the full bar breathes */
.lc-left b i { display: inline-block; width: 4px; height: 4px; margin-left: 3px; border-radius: 50%; background: currentColor; vertical-align: middle; animation: dots 1.2s ease-in-out infinite; }
.lc-left b i:nth-child(2) { animation-delay: .15s; }
.lc-left b i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 80%, 100% { opacity: .2; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
.lc.closing .lc-time i { animation: tick 1.2s ease-in-out infinite; }
.lc-row { display: flex; align-items: center; gap: 14px; margin: 18px 0 14px; }
.lc-px { display: inline-flex; font: 600 44px/1.1 var(--mono); letter-spacing: -0.04em; }
.odo { display: inline-flex; }
.dg, .dg-c { display: inline-block; height: 1.1em; }
.dg { overflow: hidden; }
.dg-s { display: block; transform: translateY(calc(var(--n, 0) * -10%)); transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.dg-s span { display: block; height: 1.1em; }
.dg:nth-last-child(2) .dg-s { transition-delay: .05s; }
.dg:nth-last-child(1) .dg-s { transition-delay: .1s; }
.lc-mv { padding: 6px 8px; border-radius: 3px; font: 600 15px/1 var(--mono); }
.lc-mv:empty { display: none; }
.lc-mv.up { color: var(--green); background: var(--green-s); }
.lc-mv.dn { color: var(--red); background: var(--red-s); }
.lc-mv.flat { color: var(--mute); background: var(--line); }
/* the candle being made: a body that grows from the open, up green or down red */
.stk { position: relative; width: 16px; height: 64px; margin-left: auto; flex: none; }
.stk::before { content: ''; position: absolute; left: 50%; top: 2px; bottom: 2px; width: 1px; margin-left: -.5px; background: var(--line-2); }
.stk-o { position: absolute; left: -9px; right: -9px; top: 50%; border-top: 1px dashed var(--line-2); }
.stk-up, .stk-dn { position: absolute; left: 0; right: 0; height: 50%; border-radius: 1px; transform: scaleY(0); transition: transform .9s var(--ease); }
.stk-up { bottom: 50%; background: var(--green); transform-origin: bottom; }
.stk-dn { top: 50%; background: var(--red); transform-origin: top; }
.lc-kv { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lc-kv > div { padding: 10px 0; min-width: 0; }
.lc-kv > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.lc-kv dt { font-size: 12px; color: var(--mute); }
.lc-kv dd { margin: 4px 0 0; font-size: 15px; }

/* a candle just closed: the news slides over the top of the card */
.lc-flash { position: absolute; left: 0; right: 0; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 11px 22px; background: var(--ink); color: rgba(255, 255, 255, .82); font-size: 12.5px; line-height: 1.35; transform: translateY(-101%); transition: transform .5s var(--ease); }
.lc-flash.on { transform: none; }
.lc-flash .lf-k { font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.lc-flash .lf-k.dn { color: #FF8F84; }
.lc-flash .lf-k.up { color: #6FDDB0; }
.lc-flash b { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; }
.lc-flash .sw { margin: 0; }

.meter { margin: 0 0 16px; }
.mt-bar { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; padding-top: 11px; container-type: inline-size; }
.mt-s { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mt-s i { height: 6px; border-radius: 1px; opacity: .32; transition: opacity .3s; }
.mt-s.w0 i { background: var(--w0); }
.mt-s.w1 i { background: var(--w1); }
.mt-s.w2 i { background: var(--w2); }
.mt-s.w3 i { background: var(--w3); }
.mt-s em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--mute); transition: color .3s; }
.mt-s small { font-size: 11px; color: var(--faint); }
.mt-s.on i { opacity: 1; animation: seg 1.8s ease-in-out infinite; }
.mt-s.on em { color: var(--ink); }
@keyframes seg { 50% { opacity: .5; } }
.mt-m { position: absolute; top: 0; left: -5px; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid var(--ink); opacity: 0; transition: transform .7s var(--ease), opacity .3s; }
.mt-m.on { opacity: 1; }

.lc-time { height: 2px; margin: 0 0 14px; background: var(--line); overflow: hidden; }
.lc-time i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1s linear; }
.lc-time i.snap { transition: none; }
.lc-v { margin: 0; min-height: 21px; font-size: 13.5px; color: var(--ink-2); }
.lc-v b { font-weight: 600; }
.lc-v b.w0, .lc-v b.w1 { color: var(--acc); }
.lc-v b.w2 { color: var(--acc-2); }
.lc-v b.w3 { color: var(--w3); }
.lc-v b.up { color: var(--green); }

/* the figures strip: the cells stay, their figures rise in one after another */
.figs { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.figs.rv { opacity: 1; transform: none; transition: none; }
.fg { position: relative; isolation: isolate; min-width: 0; padding: 16px 18px 15px; background: var(--card); }
.fg > * { transition: opacity .6s ease, transform .6s var(--ease); }
.figs.rv:not(.in) .fg > * { opacity: 0; transform: translateY(12px); }
.fg:nth-child(2) > * { transition-delay: .07s; }
.fg:nth-child(3) > * { transition-delay: .14s; }
.fg:nth-child(4) > * { transition-delay: .21s; }
.fg:nth-child(5) > * { transition-delay: .28s; }
.fg::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--acc-s); opacity: 0; }
.fg.hit::after { animation: fadeout 1.8s ease-out; }
.fg-k { display: block; font: 500 11px/1 var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.fg-v { display: block; margin-top: 11px; font: 600 22px/1.1 var(--mono); letter-spacing: -0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fg.big .fg-v { color: var(--acc); }
.fg-s { display: block; margin-top: 6px; font-size: 12.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------------------------ sections */

.sec { margin-top: 96px; scroll-margin-top: calc(var(--hd) + var(--nav) + 24px); }
/* the rule above a section draws itself, then the number and the title rise */
.sec-h { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 8px; margin-bottom: 28px; padding-top: 18px; }
.sec-h::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink); transform-origin: left; transition: transform 1.1s var(--ease); }
.sec-h.rv { opacity: 1; transform: none; transition: none; }
.sec-h.rv:not(.in)::before { transform: scaleX(0); }
.sec-h > * { transition: opacity .7s ease, transform .7s var(--ease); }
.sec-h.rv:not(.in) > * { opacity: 0; transform: translateY(14px); }
.sec-h.in > :nth-child(1) { transition-delay: .12s; }
.sec-h.in > :nth-child(2) { transition-delay: .2s; }
.sec-n { font: 500 13px/2.2 var(--mono); color: var(--acc); }
.sec-h h2 { font-size: 30px; line-height: 1.2; letter-spacing: -0.03em; }
.sec-h p { margin: 8px 0 0; max-width: 660px; color: var(--mute); font-size: 15px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.tbl-w { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl-w.card { padding: 16px 20px 2px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { padding: 0 12px 10px; border-bottom: 1px solid var(--line-2); text-align: left; font: 500 11px/1 var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl th:first-child, .tbl td:first-child { padding-left: 0; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl .r { text-align: right; }
.tbl td.mono { font-size: 13.5px; }
.tbl.sm td { padding-top: 9px; padding-bottom: 9px; font-size: 13.5px; }
.tbl tr.empty td { padding: 18px 0; color: var(--mute); text-align: left; white-space: normal; }
/* rows that are there when a table comes into view rise one after another */
.rv tbody tr { transition: opacity .5s ease, transform .5s var(--ease); }
.rv:not(.in) tbody tr { opacity: 0; transform: translateY(8px); }
.rv.in tbody tr:nth-child(2) { transition-delay: .05s; }
.rv.in tbody tr:nth-child(3) { transition-delay: .1s; }
.rv.in tbody tr:nth-child(4) { transition-delay: .15s; }
.rv.in tbody tr:nth-child(5) { transition-delay: .2s; }
.rv.in tbody tr:nth-child(6) { transition-delay: .25s; }
.rv.in tbody tr:nth-child(7) { transition-delay: .3s; }
.rv.in tbody tr:nth-child(n+8) { transition-delay: .35s; }
.sw { display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 1px; vertical-align: -1px; }
.sw.w0 { background: var(--w0); }
.sw.w1 { background: var(--w1); }
.sw.w2 { background: var(--w2); }
.sw.w3 { background: var(--w3); }

a.tx { display: inline-flex; align-items: center; gap: 4px; color: var(--mute); font-size: 12.5px; }
a.tx:hover { color: var(--acc); text-decoration: none; }
a.tx .ic { width: 13px; height: 13px; transition: transform .25s var(--ease); }
a.tx:hover .ic { transform: translate(2px, -2px); }
a.wl { color: var(--ink); border-bottom: 1px dotted var(--faint); }
a.wl:hover { color: var(--acc); border-bottom-color: var(--acc); text-decoration: none; }

/* the tape: the last hours of candles; they grow out of the middle line in a wave */
.sub { margin-top: 16px; padding: 18px 20px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.sub-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.sub-h h3, .panel h3 { font-size: 15px; letter-spacing: -0.01em; }
.tape-s { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--mute); }
.tape-s b { margin-right: 3px; color: var(--ink); }
.tape-s b.dn { color: var(--red); }
.tape { position: relative; display: flex; height: 132px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tape::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--line-2); pointer-events: none; }
.bar { position: relative; flex: 1 1 0; min-width: 0; height: 100%; transition: background .15s; }
.bar:hover, .bar:focus-visible { background: var(--acc-s); }
.bar:focus-visible { outline-offset: -2px; }
.bar-b { position: absolute; left: 0; right: 0; width: min(60%, 12px); height: 46%; margin: 0 auto; border-radius: 1px; transition: transform .7s var(--ease); transition-delay: calc(var(--j, 0) * 7ms); }
.bar.green .bar-b, .bar.gap .bar-b { bottom: 50%; transform: scaleY(var(--k)); transform-origin: bottom; }
.bar.green .bar-b { background: var(--green); }
.bar.gap .bar-b { background: var(--line-2); }
.bar.red .bar-b { top: 50%; background: var(--red); transform: scaleY(var(--k)); transform-origin: top; }
.sub.rv:not(.in) .bar-b { transform: scaleY(0) !important; }
.bar.new .bar-b { animation: grow 1s var(--ease) both; }
.bar.new::before { content: ''; position: absolute; inset: 0; background: var(--acc-s); animation: fadeout 2.4s ease-out both; }
@keyframes grow { from { transform: scaleY(0); } }
.bar-r { position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--acc); }
.tape .empty { position: relative; margin: auto; padding: 0 16px; background: var(--card); color: var(--mute); font-size: 14px; text-align: center; }
.tape-i { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-height: 22px; margin-top: 12px; font-size: 13px; }

.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.duo > .rv:nth-child(2) { transition-delay: .08s; }
.panel { min-width: 0; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.panel h3 { margin-bottom: 12px; }
.panel > p { margin: 0 0 12px; font-size: 14px; }

.cv-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.cv-top b { font: 600 28px/1 var(--mono); letter-spacing: -0.04em; }
.cv-top span { font-size: 13.5px; }
.cv-bar { height: 6px; margin: 12px 0 14px; background: var(--acc-s); border-radius: 1px; overflow: hidden; }
.cv-bar i { display: block; height: 100%; background: var(--acc); transform-origin: left; transition: transform 1.2s var(--ease) .25s; }
.rv:not(.in) .cv-bar i { transform: scaleX(0) !important; }

.kv { margin: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--mute); }
.kv dd { margin: 0; text-align: right; }
.note { margin: 14px 0 0; padding-left: 12px; border-left: 2px solid var(--acc); font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.pad { margin: 0; padding: 18px 0; }

/* my umbrella */
.me { padding: 22px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.me-none { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.me-none h3 { margin-bottom: 4px; font-size: 18px; }
.me-none p { margin: 0; max-width: 440px; font-size: 14px; }
.me-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.look { display: flex; min-width: 0; }
.look input { width: 300px; border-radius: 3px 0 0 3px; border-right: 0; font-family: var(--mono); font-size: 13px; }
.look .btn { border-radius: 0 3px 3px 0; }
.me-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.me-head > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.me-head > div > span { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.me-head code { font-size: 13.5px; overflow-wrap: anywhere; }
.me-msg { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.me-msg h3 { margin-bottom: 4px; font-size: 17px; }
.me-msg p { margin: 0; max-width: 640px; font-size: 14px; }
.me .duo { margin-top: 18px; }
.me .panel { padding: 0; border: 0; }

.cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cells.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cl { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding: 16px 18px; background: var(--card); }
.cl > span { font: 500 11px/1.2 var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.cl > b { font: 600 20px/1.1 var(--mono); letter-spacing: -0.03em; }
.cl > small { font-size: 12.5px; color: var(--mute); }
.cl.hi { background: var(--acc-s); }
.cl.hi > b { color: var(--acc); }
.cl .btn { margin-top: 6px; }

/* the rules */
.rule-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.rule { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 8px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.rule-n { font: 500 13px/1.75 var(--mono); color: var(--mute); transition: color .3s; }
.rule:hover .rule-n { color: var(--acc); }
.rule h3 { margin-bottom: 6px; font-size: 18px; letter-spacing: -0.015em; }
.rule p { margin: 0 0 8px; max-width: 760px; font-size: 15px; color: var(--ink-2); }
.rule p:last-child { margin-bottom: 0; }
.rule-list + .panel { margin-top: 24px; }
.list { margin: 0; padding: 0; list-style: none; }
.list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.list li:first-child { padding-top: 0; }
.list li:last-child { padding-bottom: 0; border-bottom: 0; }
.list .ic { width: 16px; height: 16px; margin-top: 3px; color: var(--acc); }
.list li:has(use[href="#i-no"]) .ic { color: var(--red); }

/* security */
.addrs td:nth-child(2) { white-space: normal; }
.addrs td:last-child { min-width: 220px; white-space: normal; font-size: 13.5px; }
.addr { display: inline-flex; align-items: center; gap: 4px; }
.addr a { color: var(--ink); font-size: 13px; word-break: break-all; }
.addr a:hover { color: var(--acc); }
.tbl-w.card + .panel { margin-top: 16px; }
.report { margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.report summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; font-weight: 600; cursor: pointer; list-style: none; }
.report summary::-webkit-details-marker { display: none; }
.report summary::after { content: '+'; font: 400 20px/1 var(--mono); color: var(--mute); transition: transform .3s var(--ease); }
.report[open] summary::after { transform: rotate(45deg); }
.report[open] .form { animation: rise .45s var(--ease) both; }
.form { display: grid; gap: 14px; max-width: 720px; padding: 0 20px 20px; }
.form > p { margin: 0; font-size: 13.5px; }
.form label { display: grid; gap: 6px; }
.form label > span, .dk-f > span { font: 500 11px/1 var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.form .btn { justify-self: start; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ footer */

.foot { margin-top: 112px; background: var(--card); border-top: 1px solid var(--line); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; max-width: 1248px; margin: 0 auto; padding: 36px 24px 40px; }
.foot-b { display: flex; align-items: center; gap: 10px; }
.foot-b .mark { width: 24px; height: 24px; }
.foot-b .mark .ic { width: 15px; height: 15px; }
.foot-b b { font-size: 13.5px; letter-spacing: .16em; }
.foot-a p { margin: 10px 0 0; font-size: 14px; color: var(--mute); }
.foot-n { display: flex; flex-wrap: wrap; align-content: start; gap: 8px 20px; font-size: 14px; }
.foot-n a { color: var(--ink-2); }
.foot-n a:hover { color: var(--ink); }
.foot-s { grid-column: 1 / -1; max-width: 900px; margin: 8px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.6; color: var(--mute); }
.foot-p { grid-column: 1 / -1; margin: 0; font: 400 12px/1.4 var(--mono); color: var(--mute); }
.foot-p a { color: var(--ink-2); }

/* ------------------------------------------------------------------ the dev desk (drawer) */

.drawer { position: fixed; inset: 0; z-index: 60; }
.dw-scrim { position: absolute; inset: 0; background: rgba(11, 15, 23, .32); opacity: 0; transition: opacity .3s ease; }
.dw-panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(540px, 100%); background: var(--card); border-left: 1px solid var(--line); box-shadow: -24px 0 48px -28px rgba(11, 15, 23, .3); transform: translateX(100%); transition: transform .34s var(--ease); outline: none; }
.drawer.open .dw-scrim { opacity: 1; }
.drawer.open .dw-panel { transform: none; }
.dw-h { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dw-h > div { flex: 1; min-width: 0; }
.dw-h small { display: block; font: 500 11px/1 var(--mono); color: var(--acc); text-transform: uppercase; letter-spacing: .08em; }
.dw-h h2 { margin-top: 6px; font-size: 22px; letter-spacing: -0.025em; }
.dw-x { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 3px; color: var(--ink-2); transition: border-color .15s, color .15s, transform .3s var(--ease); }
.dw-x:hover { border-color: var(--ink); color: var(--ink); transform: rotate(90deg); }
.dw-b { flex: 1; min-height: 0; padding: 20px; overflow-y: auto; overscroll-behavior: contain; }
/* the form's parts come in one after another as the drawer opens */
.drawer.open .dk-col > * { animation: rise .5s var(--ease) both; }
.drawer.open .dk-col > :nth-child(2) { animation-delay: .05s; }
.drawer.open .dk-col > :nth-child(3) { animation-delay: .1s; }
.drawer.open .dk-col > :nth-child(4) { animation-delay: .15s; }
.drawer.open .dk-col > :nth-child(5) { animation-delay: .2s; }
.drawer.open .dk-col > :nth-child(n+6) { animation-delay: .25s; }

.dk-chip { padding: 6px 8px; border: 1px solid var(--line); border-radius: 2px; background: var(--bg); color: var(--mute); font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.dk-chip.ok { background: var(--green-s); border-color: transparent; color: var(--green); }
.dk-wait { margin: 0; font-size: 14px; color: var(--mute); }
.dk-grid { display: grid; gap: 28px; }
.dk-col { display: grid; align-content: start; gap: 14px; }
.dk-col h3 { padding-bottom: 10px; border-bottom: 1px solid var(--ink); font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.dk-col h3:not(:first-child) { margin-top: 10px; }
.dk-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.dk-f { display: grid; gap: 6px; min-width: 0; }
.dk-f small { font-size: 12px; line-height: 1.45; color: var(--mute); }
.dk-picrow { display: flex; align-items: center; gap: 12px; }
.dk-pic { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; min-height: 64px; padding: 8px 12px; border: 1px dashed var(--line-2); border-radius: 3px; font-size: 13px; color: var(--mute); }
.dk-pic img { width: 48px; height: 48px; object-fit: cover; border-radius: 2px; animation: pop .45s var(--ease); }
.dk-facts, .dk-cells { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.dk-facts > div, .dk-cells > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px 14px; background: var(--card); }
.dk-cells > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.dk-facts span, .dk-cells span { font: 500 10.5px/1.2 var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.dk-facts b, .dk-cells b { font: 600 17px/1.15 var(--mono); letter-spacing: -0.02em; }
.dk-facts small, .dk-cells small { font-size: 12px; color: var(--mute); overflow-wrap: anywhere; }
.dk-miss { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dk-miss li { display: flex; gap: 8px; font-size: 13.5px; }
.dk-miss .ic { margin-top: 2px; }
.dk-miss li.no { color: var(--red); }
.dk-miss li.ok { color: var(--green); }
.dk-note { margin: 0; font-size: 13px; color: var(--mute); }
.dk-note:empty { display: none; }
.dk-acts { display: grid; gap: 12px; margin-top: 20px; }
.dk-act { padding: 16px; border: 1px solid var(--line); border-radius: 3px; }
.dk-act h3 { font-size: 15px; }
.dk-act p { margin: 6px 0 12px; font-size: 13.5px; color: var(--ink-2); }
.dk-done { display: grid; justify-items: start; gap: 10px; padding: 8px 0; }
.dk-done h3 { font-size: 22px; animation: rise .6s .15s var(--ease) both; }
.dk-done p { margin: 0; font-size: 14px; color: var(--ink-2); animation: rise .6s .25s var(--ease) both; }
.dk-ok { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; animation: pop .6s var(--ease) both; }
.dk-ok .ic { width: 24px; height: 24px; }
.dk-sum { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 3px; }
.dk-sum li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; font-size: 13.5px; }
.dk-sum li + li { border-top: 1px solid var(--line); }
.dk-sum span { color: var(--mute); }
.dk-sum b { font-weight: 600; text-align: right; }
.modal-b .dk-fine { font-size: 12.5px; color: var(--mute); }
.modal-b .dk-stage { font-size: 13px; color: var(--acc); }
.dk-stage:empty { display: none; }

/* ------------------------------------------------------------------ dialogs and toasts */

.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal-scrim { position: absolute; inset: 0; background: rgba(11, 15, 23, .4); animation: fade .2s ease-out; }
.modal-in { position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 24px 64px -16px rgba(11, 15, 23, .35); animation: pop-in .28s var(--ease); outline: none; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-h h3 { font-size: 16px; }
.modal-x { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 3px; color: var(--mute); transition: background .15s, color .15s, transform .3s var(--ease); }
.modal-x:hover { background: var(--bg); color: var(--ink); transform: rotate(90deg); }
.modal-b { display: grid; gap: 14px; padding: 18px 20px 20px; }
.modal-b p { margin: 0; font-size: 14px; color: var(--ink-2); }
.modal-b .modal-note { font-size: 13px; color: var(--mute); }
.modal-b .dk-f > span { color: var(--mute); }
.wlist { display: grid; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.wopt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card); color: var(--ink); font-size: 14px; font-weight: 500; text-align: left; transition: background .15s; animation: rise .4s var(--ease) both; }
.wopt:nth-child(2) { animation-delay: .04s; }
.wopt:nth-child(3) { animation-delay: .08s; }
.wopt:nth-child(n+4) { animation-delay: .12s; }
.wopt + .wopt { border-top: 1px solid var(--line); }
.wopt:hover { background: var(--bg); text-decoration: none; }
.wopt span { flex: 1; }
.wopt > .ic { color: var(--faint); transition: transform .25s var(--ease), color .15s; }
.wopt:hover > .ic { color: var(--ink); transform: translateX(3px); }
.wopt img { width: 24px; height: 24px; border-radius: 4px; }
.wopt-i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 3px; background: var(--bg); color: var(--ink-2); flex: none; }
.wopt-i .ic { width: 14px; height: 14px; }
.me-id { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--bg); border-radius: 3px; }
.me-id code { flex: 1; min-width: 0; font-size: 12.5px; overflow-wrap: anywhere; }

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; justify-items: end; gap: 8px; pointer-events: none; }
.toast { max-width: min(380px, calc(100vw - 40px)); padding: 11px 14px; background: var(--ink); color: #fff; border-left: 3px solid var(--acc); border-radius: 3px; font-size: 13.5px; box-shadow: 0 12px 32px -12px rgba(11, 15, 23, .5); opacity: 0; transform: translateX(16px); transition: opacity .3s, transform .4s var(--ease); }
.toast.in { opacity: 1; transform: none; }
.toast.bad { border-left-color: var(--red); }

/* ------------------------------------------------------------------ narrower screens */

@media (max-width: 1180px) {
  .hd-r .chip.ca { display: none; }
  .hero h1 { font-size: 48px; }
}

@media (max-width: 1020px) {
  :root { --hd: 56px; --nav: 42px; }
  .hd-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-rows: var(--hd) var(--nav); grid-template-areas: "brand r desk wallet" "nav nav nav nav"; gap: 0 8px; height: auto; padding: 0 16px; }
  .brand { grid-area: brand; margin: 0; }
  .hd-r { grid-area: r; justify-content: flex-end; min-width: 0; }
  .desk-btn { grid-area: desk; }
  .wbtn { grid-area: wallet; }
  .nav { grid-area: nav; height: var(--nav); margin: 0 -16px; padding: 0 8px; border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 40px 0 28px; }
  .lc { animation-name: rise; }
  .figs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fg.big { grid-column: 1 / -1; }
  main#page { padding: 0 16px 16px; }
  .foot-in { padding: 32px 16px 36px; }
}

@media (max-width: 760px) {
  .hd-r .chip.sq { display: none; }
  .hero h1 { font-size: 40px; }
  .lede { font-size: 16px; }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .duo > .rv:nth-child(2) { transition-delay: 0s; }
  .cells, .cells.six { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sec { margin-top: 72px; }
  .sec-h { grid-template-columns: 36px minmax(0, 1fr); }
  .sec-h h2 { font-size: 24px; }
  .rule { grid-template-columns: 36px minmax(0, 1fr); }
  .rule h3 { font-size: 17px; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .lc { padding: 16px 16px 14px; }
  .lc-flash { padding: 10px 16px; }
  .lc-px { font-size: 36px; }
  .me { padding: 18px 16px; }
  .me-acts, .look { width: 100%; }
  .look input { flex: 1; width: auto; min-width: 0; }
  .tbl-w.card { padding: 14px 14px 2px; }
  .sub, .panel { padding: 16px 14px; }
  .tape { height: 112px; }
  /* a lighter rain on a phone */
  .sky-r i:nth-child(n+41) { display: none !important; }
}

@media (max-width: 480px) {
  .word { font-size: 13.5px; letter-spacing: .12em; }
  .brand { gap: 8px; }
  .desk-btn { padding: 0 10px; }
  .desk-btn span { display: none; }
  .wbtn { padding: 0 12px 0 10px; }
  .hero h1 { font-size: 34px; }
  .fg-v { font-size: 20px; }
  .dk-two { grid-template-columns: minmax(0, 1fr); }
  .dw-b { padding: 16px; }
  .toasts { left: 12px; right: 12px; bottom: 12px; justify-items: stretch; }
  .toast { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  .sky, .mark i { display: none !important; }
}
