/* seyta.uk and the CV. The Portal's midnight, pastels and fonts (modules/portal/static/index.html), led by the owner's
   favourite colour: the teal of the Galaxy Z Fold8 in Pistachio (Samsung's chip #abc4c0, the wallpaper's teal #60b6ba),
   lifted to the pastels' brightness.
   The vibe (2026-10-11, the owner: "i also really love music ... somehting feels off"): an aurora that drifts like a slow
   song, a waveform under the hero, a record that spins, a timeline for the story, and sections that rise in as you
   scroll. All of it is CSS: the page has no scripts. Motion stops for anyone whose system asks for less of it, and the
   Pause button under the hero stops it for everyone else. */
:root {
  --bg: #0d111a; --panel: rgba(16, 24, 32, 0.72); --panel2: rgba(23, 35, 45, 0.75); --line: rgba(127, 214, 207, 0.13);
  --text: #f8fafc; --muted: #94a3b8; --soft: #cbd5e1; --accent: #7fd6cf; --accent2: #c2ebe6; --periwinkle: #b8c0ff;
  --game: #e0aaff; --pink: #ffc8dd; --peach: #ffd6a5; --mint: #b9fbc0; --on-accent: #0d111a;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --display: 'Outfit', var(--font);
  --serif: 'Instrument Serif', Georgia, "Times New Roman", serif; --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --spectrum: linear-gradient(90deg, var(--accent), var(--periwinkle) 50%, var(--game));
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; color: var(--text); font: 16px/1.65 var(--font); position: relative; min-height: 100vh; }
a { color: var(--accent2); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* the backdrop: an aurora in the pastels that drifts slowly, and a little grain, both behind everything */
body::before { content: ""; position: fixed; inset: -20vmax; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38vmax 30vmax at 24% 16%, rgba(127, 214, 207, .24), transparent 62%),
    radial-gradient(36vmax 28vmax at 82% 14%, rgba(224, 170, 255, .22), transparent 62%),
    radial-gradient(40vmax 30vmax at 72% 70%, rgba(184, 192, 255, .14), transparent 62%),
    radial-gradient(30vmax 24vmax at 14% 84%, rgba(255, 200, 221, .09), transparent 62%);
  animation: aurora 40s ease-in-out infinite alternate; }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: url(grain.svg); opacity: .05; }
@keyframes aurora {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(4vmax, -3vmax, 0) rotate(9deg) scale(1.06); }
  100% { transform: translate3d(-3vmax, 3vmax, 0) rotate(-7deg) scale(1.03); }
}

/* top bar: the Portal's logo and pills */
header.top { position: sticky; top: 0; z-index: 5; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
             background: rgba(13, 17, 26, .7); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 18px; height: 60px; }
.logo { font-family: var(--display); font-weight: 700; letter-spacing: .2em; font-size: 18px; color: var(--text);
        text-decoration: none; white-space: nowrap; }
.logo span { color: var(--accent); }
header nav { display: flex; gap: 2px; margin-left: auto; }
.live-btn { margin-left: auto; }
header nav + .live-btn { margin-left: 0; }
header nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; padding: 6px 10px; border-radius: 8px;
               transition: color .2s, background-color .2s; }
header nav a:hover { color: var(--text); background: var(--panel2); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 99px; font-size: 13px;
        font-weight: 600; background: var(--panel2); border: 1px solid var(--line); color: var(--text); white-space: nowrap; }
a.pill { text-decoration: none; transition: border-color .2s; }
a.pill:hover { border-color: var(--accent); }
/* log-in menu: a <details>, so it works without any script */
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; user-select: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { border-color: var(--accent); }
.menu summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.menu-list { position: absolute; right: 0; top: calc(100% + 10px); width: min(330px, calc(100vw - 32px)); display: grid; gap: 4px;
             padding: 8px; background: #111b23; border: 1px solid var(--line); border-radius: 14px; z-index: 10;
             box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.menu-list a { display: block; text-decoration: none; color: var(--text); padding: 10px 12px; border-radius: 10px; }
.menu-list a:hover, .menu-list a:focus-visible { background: var(--panel2); outline: none; }
.menu-list a:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.menu-list b { display: block; font-family: var(--display); font-weight: 600; font-size: 15px; }
.menu-list span { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); flex: none; }

/* live stream: open at the top while the channel is live (the server adds .open), otherwise folded into the
   Live button, which targets it; Close targets #shut. No script needed. */
#live { display: none; padding: 28px 0 8px; }
#live.open, #live:target { display: block; }
:root:has(#shut:target) #live { display: none; }
#shut { display: block; position: relative; top: -80px; }
.live-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.live-head h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 0; }
.stream { position: relative; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 16px;
          overflow: hidden; background: #000; }
.stream iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
#live .fine { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
/* the Live button: grey when offline, red with a pulsing dot when the server saw the channel live */
.live-btn i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.live-btn.on { background: #e91916; border-color: #e91916; color: #fff; }
.live-btn.on i { background: #fff; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* skip link: off screen until focused */
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; padding: 10px 14px; border-radius: 10px;
        background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* type: Outfit for headings, Instrument Serif in italics for the words that carry a feeling, a mono for dates */
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2.8rem, 8.2vw, 5.8rem); line-height: .98;
     letter-spacing: -.035em; margin: 0; max-width: 13ch; }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; padding-right: .08em;
               background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.06;
     letter-spacing: -.025em; margin: 0 0 26px; }
.kicker { font: 600 12px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.lead { color: var(--soft); font-size: clamp(1.05rem, 1.8vw, 1.2rem); max-width: 62ch; margin: 24px 0 0; }
.intro { color: var(--muted); font-size: 1.04rem; max-width: 66ch; margin: -10px 0 30px; }
.fine { color: var(--muted); font-size: 13.5px; }
code { font-family: var(--mono); font-size: .92em; color: var(--accent2); }

/* hero */
.hero { padding-top: clamp(56px, 11vh, 124px); }
.hi { font-family: var(--display); font-weight: 600; font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--accent); margin: 0 0 18px; }
.hi span { color: var(--muted); font-weight: 500; }
.punch { font-family: var(--serif); font-style: italic; font-size: clamp(1.55rem, 3.6vw, 2.4rem); line-height: 1.12;
         color: var(--game); margin: 18px 0 0; max-width: 30ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; border-radius: 12px;
       padding: 12px 20px; min-height: 46px; background: var(--accent); color: var(--on-accent); border: 1px solid transparent;
       transition: transform .2s, filter .2s, border-color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 10px 30px rgba(127, 214, 207, .22); }
.btn.quiet { background: var(--panel2); color: var(--text); border-color: var(--line); }
.btn.quiet:hover { border-color: var(--accent); box-shadow: none; }
.hero > .fine { margin: 12px 0 0; }

/* quick facts: one strip, four cells */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 46px 0 0; background: var(--panel);
         border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.fact { padding: 15px 20px; position: relative; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact::before { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 2px; background: var(--c, var(--accent));
                opacity: .7; border-radius: 0 0 2px 2px; }
.fact dt { color: var(--muted); font: 600 11.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.fact dd { margin: 6px 0 0; font-family: var(--display); font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--c, var(--accent)); }
.c-accent { --c: var(--accent); } .c-mint { --c: var(--mint); } .c-game { --c: var(--game); } .c-peach { --c: var(--peach); }
.c-pink { --c: var(--pink); } .c-peri { --c: var(--periwinkle); }

/* the deck: a waveform made of 48 bars (each bar's height and speed come from its place in the row: quiet at the
   edges, loud in the middle), and the Pause button, a checkbox that stills every animation on the page */
.deck { display: flex; align-items: center; gap: 20px; margin-top: 34px; }
.wave { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; height: 64px; }
.wave i { --lo: .3; --hi: .95; --amp: .5; --d: 1.2s; --dl: 0s;
          flex: 1 1 0; min-width: 2px; height: 100%; border-radius: 99px; transform-origin: 50% 50%;
          background: linear-gradient(180deg, var(--accent), rgba(127, 214, 207, .3));
          transform: scaleY(calc(var(--lo) * var(--amp))); animation: eq var(--d) ease-in-out var(--dl) infinite alternate; }
.wave i:nth-child(n+17) { background: linear-gradient(180deg, var(--periwinkle), rgba(184, 192, 255, .3)); }
.wave i:nth-child(n+33) { background: linear-gradient(180deg, var(--game), rgba(224, 170, 255, .3)); }
.wave i:nth-child(n+6):nth-child(-n+43) { --amp: .75; }
.wave i:nth-child(n+13):nth-child(-n+36) { --amp: 1; }
.wave i:nth-child(2n) { --lo: .45; --d: 1.05s; }
.wave i:nth-child(3n) { --lo: .22; --hi: .8; --d: 1.45s; --dl: -.5s; }
.wave i:nth-child(4n+1) { --dl: -.9s; }
.wave i:nth-child(5n+2) { --lo: .6; --d: .85s; --dl: -.3s; }
.wave i:nth-child(7n+3) { --hi: 1; --d: 1.7s; --dl: -1.1s; }
@keyframes eq { to { transform: scaleY(calc(var(--hi) * var(--amp))); } }
.calm { position: relative; flex: none; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none;
        padding: 9px 16px 9px 14px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line);
        color: var(--soft); font-size: 13px; font-weight: 600; transition: border-color .2s; }
.calm:hover { border-color: var(--accent); }
.calm::before { content: ""; width: 10px; height: 12px; border-left: 3px solid var(--accent); border-right: 3px solid var(--accent); }
.calm input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.calm:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.calm-play, .calm:has(:checked) .calm-pause { display: none; }
.calm:has(:checked) .calm-play { display: inline; }
.calm:has(:checked)::before { width: 0; height: 0; border: 0; border-left: 11px solid var(--accent);
                              border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
:root:has(#calm:checked) *, :root:has(#calm:checked) *::before, :root:has(#calm:checked) *::after {
  animation: none !important; transition: none !important; }

/* sections */
section { padding: clamp(80px, 11vw, 132px) 0 0; scroll-margin-top: 64px; }
.narrow { max-width: 760px; }

/* about me: my own words as a pull quote beside the rest. An older version of the section put back from the editor
   (plain paragraphs in .me, before 2026-10-11) keeps the single column it had. */
.me { max-width: 760px; }
.me:has(> .pull) { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px 64px; align-items: start;
                   max-width: none; }
.pull { margin: 0; position: sticky; top: 104px; }
.pull p { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.04;
          background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.me > p, .me-text p { color: var(--soft); font-size: 1.07rem; margin: 0; }
.me > p + p, .me-text p + p { margin-top: 16px; }
.me .cta { margin-top: 24px; }

/* the story: a timeline, one day per stop, each with its mood */
.story { list-style: none; margin: 0; padding: 0; position: relative; max-width: 900px; }
.story::before { content: ""; position: absolute; left: 97px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; opacity: .5;
                 background: linear-gradient(180deg, var(--accent), var(--mint) 20%, var(--periwinkle) 40%, var(--game) 60%, var(--pink) 80%, var(--peach)); }
.chapter { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 0 50px; padding: 0 0 46px; position: relative; }
.chapter:last-child { padding-bottom: 0; }
.chapter::before { content: ""; position: absolute; left: 91px; top: 10px; width: 14px; height: 14px; border-radius: 50%;
                   background: var(--c); box-shadow: 0 0 0 5px var(--bg), 0 0 22px var(--c); }
.day { margin: 0; text-align: right; font: 500 12.5px/1.2 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.day b { display: block; margin-bottom: 4px; font: 700 34px/1 var(--display); letter-spacing: -.03em; color: var(--c); }
.mood { margin: 0 0 6px; font: 600 11.5px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.beat h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 1.65rem); line-height: 1.18; margin: 0 0 10px; }
.beat p { color: var(--soft); margin: 0; max-width: 66ch; }
.beat p + p { margin-top: 12px; }
.beat q { font-family: var(--serif); font-style: italic; font-size: 1.14em; color: var(--text); }
.said { margin: 16px 0 0; padding: 18px 22px; border-left: 3px solid var(--c); border-radius: 0 16px 16px 0;
        background: linear-gradient(90deg, rgba(255, 214, 165, .08), rgba(255, 214, 165, 0) 80%); }
.said p { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.3vw, 1.5rem); line-height: 1.32; color: var(--text); }
.next { margin: 40px 0 0; padding: 18px 22px; max-width: 900px; border-radius: 16px; border: 1px dashed rgba(127, 214, 207, .35);
        color: var(--soft); background: rgba(127, 214, 207, .05); }
.next b { color: var(--accent); }

/* music: the card with a record that spins, and the all-time top ten as a tracklist. The card as it was before
   2026-10-11 (a glyph beside the heading, below the other cards) keeps its look when the editor puts it back. */
.music { padding: clamp(24px, 3.4vw, 40px); border-radius: 26px; border: 1px solid var(--line);
         background: radial-gradient(110% 140% at 100% 0%, rgba(224, 170, 255, .14), transparent 55%),
                     radial-gradient(90% 120% at 0% 100%, rgba(127, 214, 207, .11), transparent 60%), var(--panel); }
.music:has(> .disc) { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 56px; align-items: center; }
.likes + .music { margin-top: 16px; }
.music h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; margin: 0 0 12px; }
.music-head { display: flex; gap: 16px; align-items: flex-start; }
.music-head .glyph { flex: none; margin: 0; }
.music-head h3 { font-size: 19px; line-height: 1.25; margin: 0 0 8px; }
.music-head p { max-width: 70ch; }
.music-text > p:not(.kicker):not(.fine) { color: var(--soft); margin: 0; max-width: 62ch; }
.music .fine { margin: 14px 0 0; max-width: 66ch; }
.music .fine b { color: var(--text); }
.artists { list-style: none; counter-reset: art; columns: 2; column-gap: 32px; margin: 20px 0 0; padding: 0; max-width: 560px; }
.artists li { counter-increment: art; break-inside: avoid; display: flex; align-items: baseline; gap: 14px; padding: 8px 2px;
              border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 600; font-size: 16px; }
.artists li::before { content: counter(art, decimal-leading-zero); font: 500 12px var(--mono); color: var(--accent); }
.disc { position: relative; width: clamp(190px, 23vw, 270px); aspect-ratio: 1; border-radius: 50%;
        box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .05); }
.disc::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
               background: conic-gradient(from 20deg, transparent 0 10%, rgba(255, 255, 255, .09) 14%, transparent 20% 58%,
                                          rgba(255, 255, 255, .06) 62%, transparent 68%); }
.vinyl { position: absolute; inset: 0; border-radius: 50%; animation: spin 9s linear infinite;
         background: repeating-radial-gradient(circle, #0b0f16 0 1.6px, #161d29 1.6px 3.2px); }
.vinyl::before { content: ""; position: absolute; inset: 31%; border-radius: 50%;
                 background: conic-gradient(var(--accent), var(--periwinkle), var(--game), var(--pink), var(--peach), var(--mint), var(--accent)); }
.vinyl::after { content: ""; position: absolute; inset: 48.5%; border-radius: 50%; background: var(--bg); }
.vinyl span { position: absolute; left: 0; right: 0; top: 38%; text-align: center; font: 700 9px/1 var(--mono);
              letter-spacing: .3em; text-transform: uppercase; color: var(--on-accent); }
@keyframes spin { to { transform: rotate(1turn); } }

/* cards */
.grid { display: grid; gap: 14px; }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card { padding: 22px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
        transition: transform .25s, border-color .25s; }
.card:hover { transform: translateY(-3px); border-color: rgba(127, 214, 207, .3); }
.card h3 { font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.25; margin: 0 0 8px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card p + p { margin-top: 10px; }
.card p b { color: var(--text); font-weight: 600; }
.likes { margin-top: 16px; }
.glyph { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; margin-bottom: 14px;
         font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--c); background: var(--panel2);
         border: 1px solid var(--line); }

/* meet the team: local models on one side, cloud on the other, a link between them */
.roster { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0 16px; align-items: stretch; }
.side { position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; }
.side::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--side); }
.side.local { --side: linear-gradient(90deg, var(--game), var(--periwinkle)); }
.side.cloud { --side: linear-gradient(90deg, var(--accent), var(--mint)); }
.side-head { margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.side-head b { font-family: var(--display); font-size: 21px; font-weight: 600; }
.side.local .side-head b { color: var(--game); }
.side.cloud .side-head b { color: var(--accent); }
.side-head span { color: var(--muted); font: 600 11.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.side li { padding: 12px 0 12px 20px; border-top: 1px solid var(--line); position: relative; }
.side li:first-child { border-top: 0; }
.side li::before { content: ""; position: absolute; left: 0; top: 20px; width: 8px; height: 8px; border-radius: 50%;
                   background: var(--c); box-shadow: 0 0 10px var(--c); }
.side li b { display: block; font-family: var(--display); font-weight: 600; font-size: 17px; }
.side li small { font-family: var(--font); font-weight: 600; font-size: 12px; color: var(--muted); margin-left: 6px; }
.side li span { display: block; color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.roster .link { align-self: center; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
                background: var(--panel2); border: 1px solid var(--line); color: var(--periwinkle); font-size: 20px; }
h3.sub { font-family: var(--display); font-weight: 600; font-size: 22px; margin: 40px 0 16px; }
.together { list-style: none; counter-reset: tog; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.together li { counter-increment: tog; position: relative; padding: 20px 22px 20px 64px; border-radius: 18px;
               background: var(--panel); border: 1px solid var(--line); }
.together li::before { content: counter(tog, decimal-leading-zero); position: absolute; left: 22px; top: 22px;
                       font: 600 13px/1 var(--mono); color: var(--c); }
.together h3 { font-family: var(--display); font-weight: 600; font-size: 18px; margin: 0 0 6px; }
.together p { color: var(--muted); font-size: 15px; margin: 0; }

/* how I run it: six rules, plain rows rather than boxes */
.rules { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; border-top: 1px solid var(--line); }
.rules > div { padding: 22px 0 24px; border-bottom: 1px solid var(--line); }
.rules dt { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.rules dt::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); flex: none; }
.rules dd { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.more { margin: 20px 0 0; font-weight: 600; }

/* what it does: a setlist */
.setlist { list-style: none; counter-reset: set; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.setlist li { counter-increment: set; display: grid; grid-template-columns: 44px minmax(0, 19rem) minmax(0, 1fr);
              gap: 6px 28px; align-items: baseline; padding: 22px 12px; border-bottom: 1px solid var(--line);
              border-radius: 4px; transition: background-color .25s; }
.setlist li:hover { background: rgba(255, 255, 255, .025); }
.setlist li::before { content: counter(set, decimal-leading-zero); font: 600 14px/1 var(--mono); color: var(--c); }
.setlist h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.28rem; line-height: 1.25; }
.setlist p { margin: 0; color: var(--muted); }

/* what happens to a message: a numbered path down the page, each step labelled with where it happens */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; max-width: 820px; }
.steps li { position: relative; padding: 0 0 28px 62px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
                    display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 17px;
                    color: var(--on-accent); background: var(--c, var(--accent)); box-sizing: border-box;
                    box-shadow: 0 0 22px rgba(127, 214, 207, .18); }
.steps li::after { content: ""; position: absolute; left: 19px; top: 46px; bottom: 6px; width: 2px; background: var(--line); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
/* the cloud fallback: a side branch of step 4, not a step of its own */
.steps li.alt { margin-left: 28px; counter-increment: none; }
.steps li.alt::before { content: "or"; font-size: 14px; background: transparent; color: var(--c); border: 2px dashed var(--c); box-shadow: none; }
.steps li.alt::after { background: none; border-left: 2px dashed var(--line); }
.where { display: inline-block; font: 700 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .1em;
         color: var(--c, var(--muted)); background: var(--panel2); border: 1px solid var(--line); padding: 2px 9px; border-radius: 6px; }
.steps h3 { font-family: var(--display); font-weight: 600; font-size: 19px; margin: 8px 0 4px; }
.steps p { color: var(--muted); margin: 0; max-width: 64ch; }

/* the catch */
.catch { margin: 16px 0 0; padding: 16px 20px; border-radius: 14px; border: 1px dashed rgba(255, 214, 165, .4);
         background: rgba(255, 214, 165, .06); color: #e2e8f0; }
.catch b { color: var(--peach); }

/* the technical detail: <details> folds, so it works with no script */
.fold { margin-top: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; }
.fold summary { cursor: pointer; list-style: none; padding: 17px 22px; min-height: 44px; font-family: var(--display);
                font-weight: 600; font-size: 17px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
                border-radius: 18px; transition: background-color .2s; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; transition: transform .25s; }
.fold[open] summary::after { content: "−"; }
.fold summary:hover { background: var(--panel2); }
.fold-body { padding: 4px 22px 22px; border-top: 1px solid var(--line); }
.fold-body > p { color: var(--muted); font-size: 15px; max-width: 72ch; margin: 16px 0 0; }
.legend, .fold-body > p.legend { color: var(--muted); font-size: 13px; margin: 12px 0 0; }

.decisions { margin: 0; padding: 0; list-style: none; counter-reset: dec; display: grid; gap: 0; }
.decisions li { counter-increment: dec; padding: 16px 0 16px 44px; border-top: 1px solid var(--line); position: relative; }
.decisions li:first-child { border-top: 0; }
.decisions li::before { content: "0" counter(dec); position: absolute; left: 0; top: 18px; font: 700 14px var(--mono);
                        color: var(--accent); letter-spacing: .08em; }
.decisions h3, .parts dt { font-family: var(--display); font-weight: 600; font-size: 16.5px; margin: 0 0 4px; }
.decisions p { color: var(--muted); font-size: 14.5px; margin: 0; max-width: 78ch; }
.decisions .cost { color: var(--text); font-size: 13.5px; margin-top: 6px; }
.decisions .cost b { color: var(--peach); font-weight: 600; }

.parts { margin: 0; display: grid; gap: 0; }
.parts > div { padding: 14px 0; border-top: 1px solid var(--line); }
.parts > div:first-child { border-top: 0; }
.parts dt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.parts dd { margin: 0; color: var(--muted); font-size: 14.5px; max-width: 80ch; }
.tag { font-family: var(--font); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
       padding: 2px 8px; border-radius: 6px; background: var(--panel2); color: var(--c, var(--muted)); white-space: nowrap; }

.plain { margin: 16px 0 0; padding-left: 20px; display: grid; gap: 10px; color: var(--muted); font-size: 15px; max-width: 78ch; }
.plain b { color: var(--text); font-weight: 600; }

/* measured: the benchmark's numbers as bars (native <meter>, so no script and no inline style) */
.bench { margin-top: 12px; }
.b-row { display: grid; grid-template-columns: 210px 1fr 1fr 150px; gap: 18px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.b-row:first-child { border-top: 0; }
.b-row.head { color: var(--muted); font: 600 11.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .1em; padding: 10px 0; }
.b-row h3 { font-family: var(--display); font-weight: 600; font-size: 16px; margin: 0; }
.b-row small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.b-bar { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; }
.b-bar meter { grid-column: 1; grid-row: 1 / span 2; }
.b-bar b, .b-mem b { font-family: var(--display); font-weight: 600; color: var(--c, var(--accent)); }
.b-bar small { grid-column: 2; grid-row: 2; text-align: right; }
.b-bar b { grid-column: 2; grid-row: 1; text-align: right; font-size: 18px; line-height: 1.1; }
.b-mem b { font-size: 15px; display: block; }
meter { width: 100%; height: 10px; border: 0; background: var(--panel2); border-radius: 99px; -webkit-appearance: none; appearance: none; }
meter::-webkit-meter-bar { background: var(--panel2); border: 1px solid var(--line); border-radius: 99px; height: 10px; }
meter::-webkit-meter-optimum-value, meter::-webkit-meter-suboptimum-value, meter::-webkit-meter-even-less-good-value {
  background: var(--c, var(--accent)); border-radius: 99px; }
meter::-moz-meter-bar { background: var(--c, var(--accent)); border-radius: 99px; }

/* footer */
footer { margin-top: 120px; border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px;
         background: rgba(13, 17, 26, .55); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }

/* motion: the hero arrives once; sections rise in as they scroll into view (browsers that can't tie an animation to
   scrolling just show them); nothing moves for anyone whose system asks for less motion */
@keyframes arrive { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@media (prefers-reduced-motion: no-preference) {
  .hero > *, .deck { animation: arrive .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero > :nth-child(2) { animation-delay: .07s; } .hero > :nth-child(3) { animation-delay: .14s; }
  .hero > :nth-child(4) { animation-delay: .21s; } .hero > :nth-child(5) { animation-delay: .28s; }
  .hero > :nth-child(6) { animation-delay: .32s; } .hero > :nth-child(7) { animation-delay: .36s; }
  .deck { animation-delay: .42s; }
  @supports (animation-timeline: view()) {
    section > .wrap > h2, .intro, .me, .chapter, .next, .music, .likes > *, .side, .together > li, .rules > div,
    .setlist > li, .steps > li, #data .card, .catch, .fold {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 50%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .calm { display: none; }
}
@media print {
  body::before, body::after, .deck, .stream-box { display: none !important; }
  *, *::before, *::after { animation: none !important; }
}

@media (max-width: 980px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .grid.three, .likes { grid-template-columns: 1fr; }
  .rules { grid-template-columns: repeat(2, 1fr); }
  header nav a { padding: 6px 7px; font-size: 13.5px; }
}
@media (max-width: 900px) {
  .roster { grid-template-columns: 1fr; gap: 10px 0; }
  .roster .link { justify-self: center; transform: rotate(90deg); }
  .me:has(> .pull) { grid-template-columns: 1fr; }
  .pull { position: static; }
  .music:has(> .disc) { grid-template-columns: 1fr; }
  .disc { order: -1; width: 150px; }
  .vinyl span { display: none; }
  .setlist li { grid-template-columns: 48px minmax(0, 1fr); }
  .setlist p { grid-column: 2; }
}
@media (max-width: 820px) {
  /* the section links move to their own row under the bar and scroll sideways inside it */
  header.top .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; gap: 10px 12px; }
  .logo { margin-right: auto; }
  .live-btn { margin-left: 0; }
  header nav { order: 3; width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  header nav::-webkit-scrollbar { display: none; }
  header nav a { flex: none; padding: 10px; }
  section { scroll-margin-top: 104px; }
  .pull { top: auto; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 44px; }
  .b-row { grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .b-row.head { display: none; }
  .b-row > div:first-child { grid-column: 1 / -1; }
  .fold summary { padding: 14px 16px; }
  .fold-body { padding: 4px 16px 18px; }
  .steps li { padding-left: 54px; }
  .steps li.alt { margin-left: 14px; }
  .together { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; }
  .story::before { left: 6px; }
  .chapter { grid-template-columns: minmax(0, 1fr); padding: 0 0 40px 34px; }
  .chapter::before { left: 0; top: 4px; }
  .day { text-align: left; margin-bottom: 8px; }
  .day b { display: inline; margin: 0 6px 0 0; font-size: 22px; }
  .deck { gap: 12px; }
  .wave { height: 48px; gap: 3px; }
  .wave i:nth-child(n+31) { display: none; }
  .artists { columns: 1; }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { padding: 12px 14px; }
  .fact::before { left: 14px; right: 14px; }
  .fact dd { font-size: 16px; }
  .cta .btn { flex: 1 1 100%; justify-content: center; }
  .calm-pause, .calm-play { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .calm:has(:checked) .calm-play { display: inline; }
  .calm { padding: 12px 14px; }
  .music-head { flex-direction: column; gap: 10px; }
}
