/* vyrn — Neo-Swiss: flush-left grotesk type, catalogue codes, hairline rules.
   The gallery is a stage: house lights (off-white) dim to #1a1a1a and the navbar becomes the spotlight. */
:root {
  --offwhite: #f2f0ef;        /* design system: page ground */
  --crimsonred: #b22222;      /* design system: hierarchy + interactive states */
  --ink: #111111;             /* design system note: body copy */
  --stage: #1a1a1a;           /* the stage once the house lights go down */
  --stage-raise: #242424;
  --ink-soft: #57524f;
  --rule: rgba(17,17,17,.16);
  --paper: #fbfaf9;
  --stage-ink: #f2f0ef;
  --stage-soft: #a8a29e;
  --stage-rule: rgba(242,240,239,.16);
  --beam: 255 247 235;
  --fg: var(--ink); --fg-soft: var(--ink-soft); --line: var(--rule);
  --spacing: 20px;            /* design system: between artworks */
  --art-corner-radius: 25px;  /* design system: artwork corners */
  --navbar-radius: 50px;      /* design system: navbar */
  --sans: "Space Grotesk", system-ui, sans-serif;
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --dim: 0; --navw: 320px; --navb: 76px;
  color-scheme: light;
}
html.stage-dark { --fg: var(--stage-ink); --fg-soft: var(--stage-soft); --line: var(--stage-rule); color-scheme: dark; }
html.bloom-on { --beam: 255 212 202; }
html.snap { scroll-snap-type: y proximity; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--offwhite); color: var(--fg);
  font-family: var(--sans); font-size: 16px; line-height: 1.5;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 24px;
  transition: color .5s;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}
html.snap body { padding-bottom: 0; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--offwhite); transition: background .5s; }
html.stage-dark body::before { background: var(--stage); }
img { max-width: 100%; }
.lights { position: fixed; inset: 0; background: var(--stage); opacity: var(--dim); pointer-events: none; z-index: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--crimsonred); outline-offset: 3px; }
.wrap { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; }
.eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--fg-soft); }

/* ---------- page slide transitions ---------- */
.page.in-from-right { animation: inR .55s cubic-bezier(.2,.7,.2,1) both; }
.page.in-from-left  { animation: inL .55s cubic-bezier(.2,.7,.2,1) both; }
.page.out-left  { transition: transform .3s cubic-bezier(.6,0,.8,.4), opacity .3s; transform: translateX(-56px); opacity: 0; }
.page.out-right { transition: transform .3s cubic-bezier(.6,0,.8,.4), opacity .3s; transform: translateX(56px); opacity: 0; }
@keyframes inR { from { opacity: 0; transform: translateX(56px); } }
@keyframes inL { from { opacity: 0; transform: translateX(-56px); } }

/* ---------- NAV (and the spotlight lamp) ---------- */
.nav {
  position: fixed; z-index: 20; top: calc(env(safe-area-inset-top, 0px) + 14px); left: 50%; transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 22px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--navbar-radius);
  box-shadow: 0 6px 24px rgba(17,17,17,.06);
  transition: background .5s, border-color .5s, box-shadow .6s;
}
.nav::after { content: ""; position: absolute; left: 28px; right: 28px; bottom: -1px; height: 2px; border-radius: 2px; background: rgb(var(--beam) / 0); transition: background .4s; }
.nav .mark { font-weight: 700; letter-spacing: -.02em; font-size: 18px; text-decoration: none; margin-right: 12px; color: var(--crimsonred); transition: color .5s; }
.nav .sep { width: 1px; height: 22px; background: var(--fg); opacity: .35; margin-right: 8px; }
.nav .pill { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: var(--navbar-radius); background: var(--crimsonred); transition: left .45s cubic-bezier(.65,0,.25,1), width .45s cubic-bezier(.65,0,.25,1); }
.nav.no-anim .pill { transition: none; }
.nav a.tab { position: relative; z-index: 1; text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; padding: 10px 18px; border-radius: var(--navbar-radius); color: var(--fg); transition: color .3s; }
.nav a.tab:hover { color: var(--crimsonred); }
.nav a.tab.is-on, .nav a.tab.is-on:hover { color: var(--offwhite); }
html.stage-dark .nav { background: rgba(30,30,30,.9); border-color: var(--stage-rule); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
html.stage-dark .nav .mark { color: var(--stage-ink); }
html.stage-dark .nav a.tab:hover { color: var(--stage-ink); }
html.lit .nav { box-shadow: 0 14px 60px rgb(var(--beam) / .38), 0 2px 0 rgb(var(--beam) / .5); animation: navflick 1.1s linear; }
html.lit .nav::after { background: rgb(var(--beam) / 1); }
@keyframes navflick { 0%,12%,24% { box-shadow: none; } 8%,20%,38%,100% { box-shadow: 0 14px 60px rgb(var(--beam) / .38), 0 2px 0 rgb(var(--beam) / .5); } }
@media (max-width: 380px) { .nav { padding-left: 16px; } .nav .mark { font-size: 16px; margin-right: 8px; } .nav a.tab { padding: 10px 12px; font-size: 12px; } }

/* beam falls from the navbar */
.beam { position: fixed; z-index: 0; pointer-events: none; left: 50%; transform: translateX(-50%); top: var(--navb); width: min(100vw, 1180px); height: calc(100svh - var(--navb)); filter: blur(10px); opacity: 0; transition: opacity .4s; }
.beam i { position: absolute; inset: 0; clip-path: polygon(calc(50% - var(--navw) / 2 + 24px) 0, calc(50% + var(--navw) / 2 - 24px) 0, 100% 100%, 0 100%);
  background: linear-gradient(to bottom, rgb(var(--beam) / .30), rgb(var(--beam) / .10) 55%, rgb(var(--beam) / 0) 92%); }
html.lit .beam { animation: flick 1.1s linear forwards; }
@keyframes flick { 0% { opacity: 0; } 8% { opacity: .7; } 12% { opacity: .1; } 20% { opacity: .85; } 24% { opacity: .25; } 38% { opacity: 1; } 100% { opacity: 1; } }

.meta-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--spacing); border-top: 1px solid var(--fg); padding-top: 10px; }
.meta-row > * { min-width: 0; }
.meta-row .eyebrow:last-child { text-align: right; }
@media (max-width: 720px) { .meta-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; } .meta-row .eyebrow:nth-child(2n) { text-align: right; } }

/* ---------- doodle line behind the heroes ---------- */
.hero, .pf-head { isolation: isolate; }
.doodle { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; overflow: hidden; }
.doodle path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.doodle .d1 { stroke: var(--crimsonred); stroke-width: 1.4; opacity: .22; }
.doodle .d2 { stroke: var(--ink); stroke-width: 1; opacity: .12; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; padding-block: 96px 40px; scroll-snap-align: start; opacity: calc(1 - var(--dim) * 1.6); }
.hero-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 56px); align-items: center; margin-top: clamp(28px, 5vw, 64px); }
.headline { margin: 0; font-weight: 600; font-size: clamp(48px, 8.4vw, 124px); line-height: .9; letter-spacing: -.045em; }
.headline .line { display: block; }
.headline .name { color: var(--crimsonred); }
.headline .rot { display: grid; overflow: clip; padding-bottom: .16em; margin-bottom: -.16em; color: var(--crimsonred); }
.rot > span { grid-area: 1 / 1; transform: translateY(100%); opacity: 0; transition: transform .7s cubic-bezier(.7,0,.2,1), opacity .45s; }
.rot > span.on { transform: none; opacity: 1; }
.rot > span.out { transform: translateY(-100%); opacity: 0; }
.hero-art { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.hero-art .box { position: relative; min-width: 0; height: clamp(240px, 34vw, 470px); display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; }
.hero-art img { grid-area: 1 / 1; border-radius: var(--art-corner-radius); box-shadow: 0 24px 50px rgba(17,17,17,.16); opacity: 0; transform: scale(.97); transition: opacity .7s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.hero-art img.on { opacity: 1; transform: none; }
.hero-art figcaption { text-align: center; }
.hero-art figcaption b { color: var(--crimsonred); font-weight: 500; }
@media (max-width: 760px) { .hero { padding-top: 84px; } .hero-body { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; } .headline { font-size: 15.5vw; } .hero-art .box { height: 26svh; } }
@media (max-width: 760px) and (max-height: 700px) { .hero-art .box { height: 20svh; } }
.sub { margin: auto auto 0; padding-top: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: clamp(22px, 2.7vw, 36px); line-height: 1.2; letter-spacing: -.02em; max-width: none; }
.sub .arrow { color: var(--crimsonred); display: inline-block; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }
.magic { position: relative; display: inline-block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.25em; letter-spacing: 0; padding-inline: .05em;
  background: linear-gradient(100deg, var(--crimsonred) 42%, #f6c2bb 50%, var(--crimsonred) 58%) 0 0 / 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 3.4s linear infinite; }
@keyframes shimmer { from { background-position: 110% 0; } to { background-position: -10% 0; } }
.spark { position: absolute; pointer-events: none; width: var(--s); height: var(--s); color: var(--c); transform: translate(-50%, -50%) scale(0); animation: twinkle var(--d, 1000ms) ease-in-out forwards; }
.spark svg { display: block; width: 100%; height: 100%; fill: currentColor; }
@keyframes twinkle { 0% { transform: translate(-50%,-50%) scale(0) rotate(0); opacity: 0; } 45% { transform: translate(-50%,-50%) scale(1) rotate(80deg); opacity: 1; } 100% { transform: translate(-50%,-50%) scale(0) rotate(170deg); opacity: 0; } }

/* ---------- STAGE / SPOTLIGHT CAROUSEL ---------- */
/* exactly one screen, footer included, so the navbar never covers it */
.stage { position: relative; height: calc(100svh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); min-height: 600px; padding-block: 92px 0; scroll-snap-align: start; display: flex; flex-direction: column; }
.rig { position: relative; margin-top: 10px; overflow: clip; flex: 1 1 auto; min-height: 200px; display: flex; }
.pool { position: absolute; left: 50%; bottom: 6px; width: min(80%, 760px); height: 80px; transform: translateX(-50%); background: radial-gradient(closest-side, rgb(var(--beam) / .22), rgb(var(--beam) / 0)); opacity: 0; pointer-events: none; z-index: 0; }
html.lit .pool { animation: flick 1.1s linear forwards; }

/* Hyperbloom (works with bloom: true) */
.bloom { position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0; transition: opacity 1.4s ease; filter: blur(60px); }
.bloom b { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.bloom .b1 { width: 46%; height: 70%; left: 18%; top: 14%; background: radial-gradient(closest-side, rgba(178,34,34,.9), rgba(178,34,34,0)); animation: drift1 14s ease-in-out infinite alternate; }
.bloom .b2 { width: 38%; height: 60%; left: 44%; top: 22%; background: radial-gradient(closest-side, rgba(255,120,105,.65), rgba(255,120,105,0)); animation: drift2 17s ease-in-out infinite alternate; }
.bloom .b3 { width: 30%; height: 44%; left: 34%; top: 4%; background: radial-gradient(closest-side, rgba(255,214,196,.55), rgba(255,214,196,0)); animation: drift1 11s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(8%, 6%) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-10%, -4%) scale(.9); } }
html.lit.bloom-on .bloom { opacity: 1; }

.track { position: relative; z-index: 1; flex: 1 1 auto; min-width: 0; display: flex; gap: var(--spacing); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; padding-block: 12px 36px; --slide: min(64%, 820px); cursor: grab; outline-offset: -2px; touch-action: pan-x pan-y; }
.track.dragging { cursor: grabbing; scroll-snap-type: none; }
.track::-webkit-scrollbar { display: none; }
.track::before, .track::after { content: ""; flex: 0 0 max(0px, calc((100% - var(--slide)) / 2 - var(--spacing))); }
.slide { flex: 0 0 var(--slide); min-width: 0; grid-template: minmax(0, 1fr) / minmax(0, 1fr); scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; opacity: .22; transform: scale(.86); filter: brightness(.35) saturate(.5); transition: opacity .7s, transform .7s cubic-bezier(.2,.7,.2,1), filter .7s; }
.slide img, .hero-art img { display: block; width: 0; max-width: none; user-select: none; -webkit-user-drag: none; }
.slide img { border-radius: var(--art-corner-radius); box-shadow: 0 30px 70px rgba(0,0,0,.5); }
html.lit .slide.is-active { opacity: 1; transform: none; filter: none; }
@media (max-width: 720px) { .track { --slide: 78%; padding-bottom: 24px; } }

.side { position: absolute; z-index: 3; top: calc(12px + (100% - 48px) / 2); transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(26,26,26,.55); color: var(--fg); font: inherit; font-size: 20px; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s, border-color .2s, color .2s; display: grid; place-items: center; }
.side.prev { left: 0; } .side.next { right: 0; }
.side:hover { background: var(--crimsonred); border-color: var(--crimsonred); color: var(--offwhite); }
@media (max-width: 720px) { .side { width: 44px; height: 44px; font-size: 17px; } }

.caption { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--spacing); border-top: 1px solid var(--line); padding-top: 14px; min-height: 140px; }
.caption > * { min-width: 0; }
.cap-no { grid-column: 1 / span 3; font-size: clamp(26px, 3.4vw, 44px); font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.cap-main { grid-column: 4 / span 6; display: grid; gap: 10px; align-content: start; }
.cap-main h2 { margin: 0; font-size: clamp(30px, 4vw, 56px); font-weight: 600; letter-spacing: -.04em; line-height: .95; text-wrap: balance; overflow-wrap: anywhere; }
.cap-main p { margin: 0; font-family: var(--serif); font-size: clamp(17px, 1.8vw, 22px); line-height: 1.45; color: var(--fg-soft); max-width: 46ch; }
.cap-meta { grid-column: 10 / span 3; margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; align-content: start; }
.cap-meta dt { color: var(--fg-soft); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding-top: 3px; }
.cap-meta dd { margin: 0; }
.caption.swap > * { animation: capIn .55s cubic-bezier(.2,.7,.2,1); }
@keyframes capIn { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 860px) { .cap-no, .cap-main, .cap-meta { grid-column: 1 / -1; } .cap-meta { grid-template-columns: auto 1fr auto 1fr auto 1fr; } }

.ctrl { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-top: 18px; }
.ticks { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 18px; }
.tick { position: relative; font: inherit; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--fg-soft); background: none; border: 0; padding: 10px 2px 4px; width: 48px; min-height: 36px; text-align: left; cursor: pointer; transition: color .2s; }
.tick .bar { position: absolute; left: 0; right: 4px; bottom: calc(100% - 4px); height: 2px; background: var(--line); border-radius: 2px; transition: height .25s cubic-bezier(.2,.7,.2,1), background .2s; }
.tick[aria-current="true"] { color: var(--fg); }
.tick[aria-current="true"] .bar { background: var(--crimsonred); }
.tick .peek { position: absolute; left: 0; bottom: calc(100% + 26px); grid-template-columns: 44px auto; gap: 4px 12px; align-items: center; padding: 8px 14px 8px 8px; width: max-content; max-width: 280px;
  background: var(--stage-raise); color: var(--stage-ink); border: 1px solid var(--stage-rule); border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .2s, transform .25s; z-index: 5; display: none; }
.tick:nth-last-child(-n+2):not(:nth-child(-n+2)) .peek { left: auto; right: 0; }
.tick .peek img { grid-row: 1 / span 2; width: 44px; height: 44px; object-fit: cover; border-radius: 8px; max-width: none; }
.tick .peek small { font-size: 11px; letter-spacing: .1em; color: var(--stage-soft); }
.tick .peek strong { font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .tick .peek { display: grid; }
  .tick:hover { color: var(--fg); }
  .tick:hover .bar { height: 18px; background: var(--crimsonred); }
  .tick:hover .peek, .tick:focus-visible .peek { opacity: 1; transform: none; }
}
.hint { font-size: 13px; color: var(--fg-soft); }
@media (hover: none), (pointer: coarse) { .hint { display: none; } }
@media (max-width: 720px) { .ticks { gap: 4px; padding-top: 12px; } .tick { width: 44px; } .hint { display: none; } .caption { gap: 8px; min-height: 0; padding-top: 10px; } .cap-main h2 { font-size: 26px; } .cap-main p { font-size: 16px; } .cap-meta { font-size: 13px; gap: 4px 10px; } .ctrl { padding-top: 4px; } }

/* ---------- PORTFOLIO ---------- */
.pf-head { position: relative; padding-block: 96px clamp(40px, 6vw, 72px); }
.pf-title { margin: clamp(32px, 6vw, 80px) 0 0; font-size: clamp(60px, 14vw, 200px); font-weight: 600; letter-spacing: -.055em; line-height: .85; color: var(--crimsonred); }
.pf-lede { margin: clamp(24px, 3vw, 40px) 0 0; padding-left: .04em; font-family: var(--serif); font-size: clamp(20px, 2.3vw, 28px); line-height: 1.35; max-width: 34ch; }
@media (max-width: 760px) { .pf-head { padding-top: 84px; } }
.block { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--spacing); border-top: 1px solid var(--ink); padding-block: 16px 72px; }
.block > * { min-width: 0; }
.block .label { grid-column: 1 / span 3; }
.block .content { grid-column: 4 / -1; }
@media (max-width: 760px) { .block { gap: 12px; padding-bottom: 56px; } .block .label, .block .content { grid-column: 1 / -1; } }
.statement p { margin: 0 0 1em; font-family: var(--serif); font-size: clamp(19px, 2vw, 24px); line-height: 1.45; max-width: 52ch; }
.series-h { margin: 0; font-size: clamp(40px, 6vw, 84px); font-weight: 600; letter-spacing: -.045em; line-height: .9; color: var(--crimsonred); }
.series-text { margin: 0 0 var(--spacing); max-width: 56ch; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--spacing); align-items: start; }
@media (max-width: 480px) { .tiles { grid-template-columns: 1fr 1fr; gap: 14px; } }
.tile { text-decoration: none; color: inherit; display: grid; gap: 10px; align-content: start; }
.tile .no { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; letter-spacing: .08em; font-variant-numeric: tabular-nums; color: var(--ink-soft); border-top: 1px solid var(--rule); padding-top: 8px; }
.tile .frame { display: block; }
.tile img { width: auto; max-width: 100%; max-height: min(60vh, 520px); height: auto; display: block; border-radius: var(--art-corner-radius); box-shadow: 0 0 0 1px var(--rule); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.tile h3 { margin: 0; font-size: clamp(16px, 1.8vw, 22px); font-weight: 600; letter-spacing: -.02em; transition: color .2s; overflow-wrap: anywhere; }
.tile:hover h3 { color: var(--crimsonred); }
.tile:hover img { transform: scale(1.03); }
@media (max-width: 480px) { .tile img { border-radius: 16px; max-height: 300px; } }
.block.glow .content { position: relative; isolation: isolate; }
.block.glow .content::before, .block.glow .content::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(50px); pointer-events: none; }
.block.glow .content::before { width: 70%; height: 90%; left: -6%; top: 10%; background: radial-gradient(closest-side, rgba(178,34,34,.32), rgba(178,34,34,0)); animation: drift1 14s ease-in-out infinite alternate; }
.block.glow .content::after { width: 50%; height: 70%; left: 30%; top: 0; background: radial-gradient(closest-side, rgba(255,130,115,.35), rgba(255,130,115,0)); animation: drift2 16s ease-in-out infinite alternate; }
.big { margin: 0 0 22px; font-size: clamp(28px, 4.6vw, 60px); font-weight: 600; letter-spacing: -.04em; line-height: .98; max-width: 18ch; text-wrap: balance; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-size: 18px; font-weight: 600; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--navbar-radius); padding: 8px 20px 8px 12px; transition: border-color .2s, color .2s; overflow-wrap: anywhere; }
.chip:hover { border-color: var(--crimsonred); color: var(--crimsonred); }
.chip .ico { width: 24px; height: 24px; color: var(--crimsonred); }
.btn { font: inherit; font-size: 14px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; background: var(--crimsonred); color: var(--offwhite); border: 0; border-radius: var(--navbar-radius); padding: 0 20px; transition: background .2s; }
.btn:hover { background: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--offwhite); }
.playlist { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; margin-bottom: 22px; }
.playlist .disc { width: 88px; height: 88px; border-radius: 22px; background: var(--ink); display: grid; place-items: center; }
.playlist .disc .ico { width: 40px; height: 40px; color: var(--offwhite); }
.playlist h3 { margin: 0; font-size: clamp(22px, 2.6vw, 32px); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.playlist p { margin: 6px 0 0; color: var(--ink-soft); }

/* icons: any one-colour SVG in assets/social/ takes the text colour */
.ico { display: inline-block; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }

/* ---------- FOOTER (single line, icons do not add height) ---------- */
footer.foot { position: relative; z-index: 1; max-width: 1280px; margin: 24px auto 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; line-height: 20px; color: var(--fg-soft); border-top: 1px solid var(--line); padding-top: 14px; transition: color .5s; }
.stage footer.foot { margin: 14px 0 0; padding-bottom: 14px; width: 100%; }
.foot-r { display: flex; align-items: center; gap: 18px; }
.foot .social { position: relative; display: inline-flex; width: 18px; height: 20px; align-items: center; color: var(--fg-soft); transition: color .2s; }
.foot .social::after { content: ""; position: absolute; inset: -12px -10px; }
.foot .social:hover { color: var(--crimsonred); }
html.stage-dark .foot .social:hover { color: var(--stage-ink); }
.foot .atom { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; color: var(--fg); transition: color .2s; white-space: nowrap; }
.foot .atom:hover { color: var(--crimsonred); }
html.stage-dark .foot .atom:hover { color: var(--stage-ink); text-decoration-color: var(--crimsonred); text-decoration-thickness: 2px; }
@media (max-width: 400px) { footer.foot { font-size: 12px; } .foot-r { gap: 14px; } }

/* ---------- dialog ---------- */
dialog.note { border: 0; padding: 28px; width: min(420px, calc(100vw - 32px)); border-radius: var(--art-corner-radius); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
dialog.note::backdrop { background: rgba(17,17,17,.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
dialog.note[open] { animation: pop .3s cubic-bezier(.2,.7,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
dialog.note .ico { width: 32px; height: 32px; color: var(--crimsonred); }
dialog.note h2 { margin: 14px 0 8px; font-size: 26px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
dialog.note p { margin: 0 0 22px; color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.lit .beam, html.lit .pool { opacity: 1; }
}
