/* ==========================================================================
   YRproject — home-v28.css: the homepage (yr/pages/home.py), v0.28.
   Business-like and quiet: greyscale type, much room, colour only where it means something (the rate, the fee,
   the data streams). Tokens from site.css. The map with tabs has its own file (datamap.css).
   ========================================================================== */

.h28 { --fs-body: 1.125rem; font-size: var(--fs-body); line-height: 1.55; }
.h28 h1 { font-size: clamp(2rem, 1.2rem + 2.5vw, 3.375rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 500; max-width: 17em; margin: 0; }
.h28 h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 500; margin: 0; }
.h28 .wrap { max-width: 80rem; }
body:has(.h28) { background: var(--bg); }        /* no aurora behind the homepage */

/* ---------- screen 1 ---------- */
.h28-top { position: relative; isolation: isolate; overflow: clip; min-height: min(calc(100vh - 4.25rem), 52rem); min-height: min(calc(100svh - 4.25rem), 52rem);
  display: grid; align-items: center; padding-block: clamp(3rem, 7vw, 6rem); }
.h28-top__in { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 64rem) { .h28-top__in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.h28-doors { display: flex; flex-wrap: wrap; gap: var(--s3); margin: clamp(1.75rem, 3vw, 2.5rem) 0 0; }
.h28-doors .btn { min-width: 12rem; justify-content: center; white-space: nowrap; }

.h28-globe { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: clip; contain: layout paint; }
.h28-globe .globe-ph { position: absolute; right: -14vw; top: 50%; transform: translateY(-50%); width: min(62vw, 56rem); height: min(62vw, 56rem); display: block; overflow: visible; }
.h28-globe .globe-ph__ball { width: 100%; color: rgb(125 200 255 / .1); background: none; box-shadow: inset 0 0 0 1px rgb(125 200 255 / .08); }
.h28-globe .globe-ph__ball::before, .h28-globe .globe-ph__ball::after, .h28-globe .globe-ph__sweep { display: none; }
.h28-globe .globe-ph__dots { display: block; position: absolute; inset: 0; width: 100%; height: 100%; opacity: .32; }
.h28-globe .globe-ph__dots g g { animation: none; }
.h28-globe::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0, rgb(6 11 24 / .9) 38%, rgb(6 11 24 / .55) 75%, rgb(6 11 24 / .35) 100%); }

/* the fee bar */
.fb { margin: 0; padding: clamp(1.25rem, 2.4vw, 2rem); border: 1px solid var(--line-soft); border-radius: var(--r-lg); background: rgb(12 20 38 / .7);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
/* v0.28.1: the two blocks are exactly proportional (100 : average fee); the figures sit in the row underneath */
.fb__bar { display: flex; gap: 3px; height: clamp(3.25rem, 6vw, 4.5rem); }
.fb__bar > span { display: block; border-radius: .5rem; min-width: 0; }
.fb__pro { flex: 100 1 0; background: var(--g-pro); }
.fb__fee { flex: var(--fee, 20) 1 0; background: var(--flare); transition: flex-grow .5s var(--ease-out), background-color .4s ease; }
.fb__legend { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4, 1rem); margin: .6rem 0 0; color: var(--fg);
  font-size: var(--fs-small); line-height: 1.1; }
.fb__legend > span { display: flex; flex-direction: column; gap: .15rem; }
.fb__legend > span:last-child { text-align: right; }
.fb__legend b { font-size: clamp(1.375rem, 1rem + 1.2vw, 2rem); font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fb__l-pro b { color: var(--pro, #3FE0C5); }
.fb__l-fee b { color: #E7A6FF; }
.fb__fee[data-band="15"] { background: #C86BFF; }
.fb__fee[data-band="12"] { background: var(--blue); }
.fb__fee.is-step { animation: fb-step .9s var(--ease-out); }
@keyframes fb-step { 0% { box-shadow: 0 0 0 0 rgb(255 255 255 / .55); } 100% { box-shadow: 0 0 0 14px rgb(255 255 255 / 0); } }
.fb__scale { margin: var(--s3, .6rem) 0 0; font-size: var(--fs-small); color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.fb__hours { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s4); margin-top: var(--s4); }
.fb__hours[hidden] { display: none; }
.fb__hours output { font-size: var(--fs-lead); font-variant-numeric: tabular-nums; min-width: 4.5em; text-align: right; color: var(--fg); }
.fb__hours output::after { content: " h"; color: var(--fg-muted); }

/* ---------- screens 3 to 5 ---------- */
.h28-sec { padding-block: clamp(3rem, 7vw, 6rem); border-top: 1px solid var(--line-soft); }
.h28-three { list-style: none; margin: clamp(1.5rem, 3vw, 2.5rem) 0 0; padding: 0; display: grid; gap: var(--s6) var(--s8); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.h28-three li { display: grid; gap: var(--s2); align-content: start; border-top: 1px solid var(--line); padding-top: var(--s4); }
.h28-three b { font-size: clamp(1.875rem, 1.3rem + 1.9vw, 3rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.h28-three span { color: var(--fg-muted); max-width: 18em; }
.h28-more { margin: var(--s6) 0 0; }
.h28-names { list-style: none; margin: clamp(1.25rem, 2.5vw, 2rem) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); }
.h28-names a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5em 1.1em; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--fg); }
.h28-names a:hover { border-color: var(--fg-muted); }
.h28-end .h28-doors { margin: 0; justify-content: flex-start; }

@media (max-width: 64rem) {
  .h28-three { grid-template-columns: 1fr; }
  .h28-globe .globe-ph { right: -45vw; width: 110vw; height: 110vw; top: 2rem; transform: none; }
}
@media (max-width: 40rem) {
  .h28 { --fs-body: 1.0625rem; }
  .h28-top { min-height: 0; padding-block: var(--s7) var(--s8); }
  .h28-doors .btn { min-width: 0; flex: 1 1 10rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fb__fee { transition: none; }
  .fb__fee.is-step { animation: none; }
}
@media print { .h28-globe { display: none; } }
