@font-face {
  font-family: "Instrument Serif";
  src: url("../../fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url("../../fonts/outfit-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url("../../fonts/outfit-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@property --sheen {
  syntax: "<angle>";
  inherits: false;
  initial-value: 28deg;
}
@property --ring {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@property --title-angle {
  syntax: "<angle>";
  inherits: true;
  initial-value: 112deg;
}
@property --title-glow {
  syntax: "<number>";
  inherits: true;
  initial-value: 0.62;
}
@property --i {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}
@property --n {
  syntax: "<number>";
  inherits: true;
  initial-value: 8;
}

:root {
  /* Base palette, copied from main index.html. Aliases keep older rules pointed at those values. */
  --text: #f2f1fa;          /* body color */
  --muted: #c9c7dd;         /* .tagline, .card p */
  --quiet: #a9a7bf;         /* footer */
  --white: #fff;            /* .card h2, .sign-in:hover */
  --bg: #06060c;            /* body background-color, body::before */
  --glass: rgba(16,14,30,0.42);          /* .sign-in, .glass */
  --glass-strong: rgba(18,16,34,0.50);   /* .hero-main */
  --glass-solid: rgba(22,20,40,0.88);    /* backdrop-filter fallback .glass */
  --border: rgba(255,255,255,0.16);      /* .sign-in, .glass */
  --border-strong: rgba(255,255,255,0.26); /* .card:hover */
  --border-hover: rgba(255,255,255,0.28);  /* .sign-in:hover */
  --wash: rgba(255,255,255,0.10);        /* .sign-in:hover, .card:hover */
  --veil: rgba(255,255,255,0.035);       /* .about-wrap */
  --highlight: rgba(255,255,255,0.22);   /* inset glass highlight */
  --accent1: #a78bfa;       /* --accent1, .hero-back is this at 0.08 */
  --accent2: #5eead4;       /* --accent2, .eyebrow, focus outline */
  --accent3: #818cf8;       /* --accent3 */
  --accent-soft: #a5b4fc;   /* .card:nth-child(3n) .num */
  --violet: #6d28d9;        /* .blob.b1 */
  --teal-deep: #0f766e;     /* .blob.b2 */
  --indigo: #4338ca;        /* .blob.b3 */
  --grad-white: #ffffff;    /* h1 gradient 0% */
  --grad-lilac: #e4dcff;    /* h1 gradient 40% */
  --grad-mint: #b9f5ec;     /* h1 gradient 100% */
  --scrim-violet: rgba(55,30,110,0.32);  /* body::after */
  --scrim-teal: rgba(10,70,80,0.26);     /* body::after */
  --scrim-indigo: rgba(35,25,95,0.3);    /* body::after */
  --shadow: 0 20px 50px -12px rgba(0,0,0,0.65), 0 4px 14px rgba(0,0,0,0.35);
  --ink: var(--text);
  --bg-deep: var(--bg);
  --teal: var(--accent2);
  --line: var(--border);
  --card: var(--glass);
  --header: 4.25rem;
  --serif: "Instrument Serif", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: Outfit, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  /* Metal default is gunmetal. The titanium block below is unused unless data-metal="titanium". */
  --metal: #3e4c59;
  --metal-bright: #8b98a8;
  --metal-deep: #1c242c;
  --metal-ink: #f2f1fa;
  --metal-edge: rgba(139, 152, 168, 0.85);
  --metal-sheen: #b7c3ce;
  color-scheme: dark;
}

html[data-metal="titanium"] {
  --metal: #c5ced6;
  --metal-bright: #e7eef3;
  --metal-deep: #8e99a4;
  --metal-ink: #14181e;
  --metal-edge: rgba(199, 210, 219, 0.9);
  --metal-sheen: #f4f7fa;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: var(--bg) url("../../apex-bg.jpg") center / cover no-repeat fixed;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 80% 60% at 15% 0%, var(--scrim-violet), transparent 60%),
    radial-gradient(ellipse 70% 50% at 100% 35%, var(--scrim-teal), transparent 60%),
    radial-gradient(ellipse 90% 60% at 40% 100%, var(--scrim-indigo), transparent 65%),
    linear-gradient(160deg, rgba(7,7,15,0.55) 0%, rgba(10,8,23,0.45) 45%, rgba(5,10,16,0.6) 100%),
    linear-gradient(rgba(0,0,0,0.38), rgba(0,0,0,0.38));
}

img { max-width: 100%; height: auto; }

button,
input { font: inherit; color: inherit; }

a { color: var(--teal); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

::selection {
  background: var(--accent1);
  color: var(--bg);
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 80;
  padding: 0.6rem 0.9rem;
  background: var(--accent2);
  color: var(--bg);
  text-decoration: none;
  border-radius: 0.6rem;
  font-weight: 600;
}
.skip:focus { top: 0.75rem; }

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 40;
  width: 100%;
  height: 3px;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--metal-deep), var(--metal-sheen));
  pointer-events: none;
}

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 35;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1px solid var(--metal-edge);
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  background: color-mix(in srgb, var(--metal) 28%, transparent);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: var(--header);
  padding: 0.55rem clamp(0.9rem, 3vw, 1.5rem);
  background: rgba(6, 6, 12, 0.72);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  backdrop-filter: blur(18px) saturate(1.35);
}
.topbar:has(.site-menu:popover-open) {
  background: rgba(6, 6, 12, 0.92);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}
.monogram {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--metal);
  color: var(--metal-bright);
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: -0.03em;
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.menu-btn,
.sign-in,
.site-menu a[data-admin-link],
.button,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.button {
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  color: var(--bg);
  border-color: transparent;
}
.sign-in,
.site-menu a[data-admin-link] {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow), inset 0 1px 0 var(--highlight);
}
.sign-in:hover,
.site-menu a[data-admin-link]:hover {
  background: var(--wash);
  border-color: var(--border-hover);
  color: var(--white);
}
.button.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.menu-btn { padding-inline: 0.85rem; }

.site-menu {
  flex-direction: column;
  gap: 0.15rem;
}
.site-menu:popover-open {
  inset: calc(var(--header) + 0.4rem) 0.7rem auto 0.7rem;
  width: auto;
  height: auto;
  max-height: calc(100dvh - var(--header) - 1.2rem);
  margin: 0;
  padding: 0.55rem;
  overflow: auto;
  border-radius: 1.1rem;
  border: 1px solid var(--line);
  background: var(--glass-solid);
  color: var(--text);
  box-shadow: var(--shadow);
}
.site-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.75rem;
  border-radius: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.98rem;
}
.site-menu a:hover,
.site-menu a[aria-current="true"] {
  background: var(--wash);
  color: var(--accent2);
}

.no-popover .site-menu {
  display: none;
  position: absolute;
  z-index: 40;
  top: calc(var(--header) - 0.2rem);
  right: 0.7rem;
  left: 0.7rem;
  padding: 0.55rem;
  border-radius: 1.1rem;
  border: 1px solid var(--line);
  background: var(--glass-solid);
}
.no-popover .site-menu.is-open { display: flex; }

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.hero { padding: 0.35rem 0 0.15rem; }
.hero-grid {
  display: grid;
  gap: 1rem;
  align-items: start;
}
.kicker,
.eyebrow,
.num {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent2);
}
.display {
  --sheen: 28deg;
  margin: 0.2rem 0 0;
  max-width: 8ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.1rem, 14vw, 7.4rem);
  line-height: 0.88;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.tagline {
  margin: 0.4rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  color: var(--muted);
}
.lede {
  margin: 0.45rem 0 0;
  max-width: 38rem;
  color: var(--muted);
}
.hero-actions,
.music-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-top: 0.7rem;
}
.music-controls { margin-top: 1.25rem; }
.music-more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s ease;
}
.music-more.is-open { grid-template-rows: 1fr; }
.music-more-inner {
  overflow: hidden;
  min-height: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.music-more.is-open .music-more-inner { opacity: 1; }
.music-more .tiles { margin-top: 22px; }
@media (prefers-reduced-motion: reduce) {
  .music-more,
  .music-more-inner { transition: none; }
}

.aperture {
  --ring: 0deg;
  justify-self: center;
  width: min(100%, 34rem);
  padding: 2px;
  border-radius: 1.8rem;
  background: conic-gradient(from var(--ring), var(--metal-deep), var(--metal-sheen), var(--metal), var(--metal-bright), var(--metal-deep));
  box-shadow: var(--shadow);
}
.aperture-inner {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: calc(1.8rem - 2px);
  background: var(--bg);
}
.aperture-inner canvas,
.aperture-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.aperture-fallback {
  background:
    radial-gradient(circle at 30% 36%, color-mix(in srgb, var(--accent1) 82%, transparent), transparent 42%),
    radial-gradient(circle at 70% 64%, color-mix(in srgb, var(--accent2) 70%, transparent), transparent 46%),
    radial-gradient(circle at 48% 48%, color-mix(in srgb, var(--metal-sheen) 55%, transparent), transparent 40%),
    var(--bg);
}
.aperture-note {
  margin: 0.7rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding: 3.35rem 0 3.1rem;
  scroll-margin-top: 5.4rem;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--section-accent) 9%, transparent) 0%,
      color-mix(in srgb, var(--section-accent) 4%, transparent) 24%,
      transparent 62%,
      rgba(6, 6, 12, 0.62) 100%);
}
.section:nth-of-type(even) {
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--section-accent) 18%, transparent) 0%,
      color-mix(in srgb, var(--section-accent) 8%, transparent) 26%,
      transparent 64%,
      rgba(6, 6, 12, 0.74) 100%);
}
.section::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  left: 6%;
  right: 6%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--section-accent) 18%, #fff 50%, var(--section-accent) 82%, transparent);
  box-shadow:
    0 0 14px var(--section-accent),
    0 0 36px color-mix(in srgb, var(--section-accent) 80%, transparent);
  pointer-events: none;
}
.section::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.85rem;
  background: linear-gradient(180deg, transparent, rgba(6, 6, 12, 0.78));
  pointer-events: none;
}
.section[hidden],
.site-menu a[hidden] { display: none; }
.section h1,
.section h2 {
  margin: 0.25rem 0 1.15rem;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.section .lede { margin-bottom: 1.4rem; }

#about { --section-accent: #fb923c; }
#writing { --section-accent: #5eead4; }
#music { --section-accent: #c4b5fd; }
#videos { --section-accent: #e879f9; }
#images { --section-accent: #fbbf24; }
#software { --section-accent: #22d3ee; }
#coaching { --section-accent: #8b5cf6; }
#songs { --section-accent: #2dd4bf; }
#shop { --section-accent: #f472b6; }
#contact { --section-accent: #67e8f9; }

.section { --section-accent: var(--accent2); }
.section-head {
  container-type: inline-size;
  container-name: section-head;
  margin: 0 0 1.5rem;
}
.section-head-grid {
  display: grid;
  gap: 18px 2.2rem;
  align-items: center;
}
.section-head-title {
  position: relative;
  isolation: isolate;
  min-width: 0;
}
.section-head .kicker {
  position: relative;
  z-index: 2;
  margin: 0 0 0.45rem;
  color: var(--section-accent);
  text-wrap: balance;
  line-height: 1.35;
}
.section-num {
  position: absolute;
  z-index: 0;
  top: -0.34em;
  left: 0;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(5rem, 28.8cqi, 6.2rem);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.06em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 3px color-mix(in srgb, var(--section-accent) 55%, transparent);
  filter:
    drop-shadow(0 0 8px color-mix(in srgb, var(--section-accent) 70%, transparent))
    drop-shadow(0 0 22px color-mix(in srgb, var(--section-accent) 38%, transparent));
  pointer-events: none;
  user-select: none;
}
.section-title-glow {
  --title-glow: 0.72;
  --title-angle: 118deg;
  position: relative;
  z-index: 1;
  min-width: 0;
  filter:
    drop-shadow(0 0 calc(3px + var(--title-glow) * 7px) color-mix(in srgb, var(--section-accent) 92%, white))
    drop-shadow(0 0 calc(10px + var(--title-glow) * 16px) var(--section-accent))
    drop-shadow(0 0 calc(24px + var(--title-glow) * 34px) color-mix(in srgb, var(--section-accent) 72%, transparent));
}
.section-title-glow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.42rem;
  width: min(9.5rem, 62%);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #fff 18%, var(--section-accent) 48%, transparent);
  box-shadow:
    0 0 10px #fff,
    0 0 18px var(--section-accent);
  transform: translate3d(0, 0, 0) scaleX(0.86);
  transform-origin: left center;
  pointer-events: none;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(2.64rem, 14.4cqi, 4.38rem);
  line-height: 1.02;
  text-wrap: balance;
  font-kerning: none;
  font-variant-ligatures: none;
  color: var(--section-accent);
  text-shadow:
    0 0 8px color-mix(in srgb, var(--section-accent) 28%, white),
    0 0 16px color-mix(in srgb, var(--section-accent) 55%, white);
  background-image: linear-gradient(
    var(--title-angle),
    #ffffff 0%,
    #ffffff 30%,
    color-mix(in srgb, var(--section-accent) 46%, #ffffff) 52%,
    #ffffff 74%,
    #ffffff 100%
  );
  background-repeat: no-repeat;
  background-size: 100% 140%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-head .word {
  display: inline-block;
  white-space: nowrap;
}
.section-head .char {
  display: inline-block;
  color: transparent;
  text-shadow:
    0 0 8px color-mix(in srgb, var(--section-accent) 28%, white),
    0 0 16px color-mix(in srgb, var(--section-accent) 55%, white);
  background-image: linear-gradient(
    var(--title-angle),
    #ffffff 0%,
    #ffffff 30%,
    color-mix(in srgb, var(--section-accent) 46%, #ffffff) 52%,
    #ffffff 74%,
    #ffffff 100%
  );
  background-repeat: no-repeat;
  background-size: calc(var(--n, 8) * 0.62em) 140%;
  background-position: calc(var(--i, 0) * -0.56em) 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-head-panel {
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow: hidden;
  padding: 1.05rem 1.2rem 1.1rem;
  border-radius: 1.15rem;
  border: 1px solid color-mix(in srgb, var(--section-accent) 88%, white);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--section-accent) 16%, transparent), transparent 42%),
    rgba(8, 7, 18, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 0 0 1px color-mix(in srgb, var(--section-accent) 62%, transparent),
    0 0 22px color-mix(in srgb, var(--section-accent) 62%, transparent),
    0 0 48px -4px color-mix(in srgb, var(--section-accent) 78%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  backdrop-filter: blur(18px) saturate(1.35);
}
.section-head-panel::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -40%;
  bottom: -40%;
  left: 0;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), color-mix(in srgb, var(--section-accent) 55%, white), transparent);
  transform: translate3d(-150%, 0, 0);
  pointer-events: none;
}
.section-head-panel > * {
  position: relative;
  z-index: 1;
}
.section-head .lede,
.section-head .referral-note {
  max-width: none;
  margin: 0;
  color: color-mix(in srgb, var(--text) 90%, var(--section-accent));
}
.section-head .lede + .lede,
.section-head .lede + .referral-note,
.section-head .referral-note + .lede {
  margin-top: 0.85rem;
}
.section-head .referral-note {
  font-size: 1.02rem;
  line-height: 1.6;
}
.section-head-panel a {
  color: var(--section-accent);
  text-underline-offset: 0.16em;
}
.section-head + .button { margin-top: 0.15rem; }

@container section-head (min-width: 720px) {
  .section-head-grid {
    grid-template-columns: minmax(0, 1.22fr) minmax(15.5rem, 0.86fr);
  }
  .section-head-title {
    min-height: 9.5rem;
  }
  .section-num {
    top: -0.28em;
    left: -0.75rem;
    font-size: clamp(6.4rem, 14.4vw, 12.8rem);
  }
  .section-head h2 {
    font-size: clamp(3.06rem, 6.42cqi, 4.62rem);
  }
}
@media (min-width: 1200px) {
  .section-num { left: max(-0.22em, -2rem); }
}

@keyframes title-glow-pulse {
  0%, 100% { --title-glow: 0.38; }
  14% { --title-glow: 1; }
  19% { --title-glow: 0.52; }
  27% { --title-glow: 0.94; }
  48% { --title-glow: 0.46; }
  70% { --title-glow: 1; }
  84% { --title-glow: 0.6; }
}
@keyframes title-angle-sweep {
  from { --title-angle: 24deg; }
  to { --title-angle: 206deg; }
}
@keyframes section-char-in {
  0% {
    opacity: 0;
    filter: blur(14px);
    transform: translate3d(0, 1.28em, 0) rotate(-12deg) skewX(-12deg);
  }
  68% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, -0.18em, 0) rotate(4deg) skewX(5deg);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) rotate(0deg) skewX(0deg);
  }
}
@keyframes section-num-drift {
  from { transform: translate3d(0, 26%, 0); }
  to { transform: translate3d(-2%, -30%, 0); }
}
@keyframes section-panel-in {
  from {
    opacity: 0;
    transform: translate3d(3.1rem, 0, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes panel-sheen {
  0%, 14% { transform: translate3d(-160%, 0, 0); }
  52%, 100% { transform: translate3d(290%, 0, 0); }
}
@keyframes title-underline {
  from { transform: translate3d(0, 0, 0) scaleX(0.62); opacity: 0.45; }
  to { transform: translate3d(1.6rem, 0, 0) scaleX(1); opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .section-title-glow {
    animation:
      title-glow-pulse 4.2s ease-in-out infinite,
      title-angle-sweep 5.6s linear infinite alternate;
  }
  .section-title-glow::after { animation: title-underline 3.2s ease-in-out infinite alternate; }
  .section-head-panel::before { animation: panel-sheen 4.6s ease-in-out infinite; }
  @supports (animation-timeline: view()) {
    .section-head .char {
      animation: section-char-in linear both;
      animation-timeline: view();
      animation-range-start: cover calc(4% + (var(--i) / var(--n, 8)) * 24%);
      animation-range-end: cover calc(22% + (var(--i) / var(--n, 8)) * 24%);
    }
    .section-num {
      animation: section-num-drift linear both;
      animation-timeline: view();
      animation-range-start: cover 0%;
      animation-range-end: cover 100%;
    }
    .section-head-panel {
      animation: section-panel-in linear both;
      animation-timeline: view();
      animation-range-start: cover 2%;
      animation-range-end: cover 32%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-title-glow,
  .section-title-glow::after,
  .section-head .char,
  .section-num,
  .section-head-panel,
  .section-head-panel::before {
    animation: none !important;
  }
  .section-head .char,
  .section-num,
  .section-head-panel {
    transform: none !important;
    opacity: 1;
  }
  .section-head .char { filter: none; }
  .section-head-panel::before { opacity: 0; }
  .section-title-glow { --title-glow: 0.85; --title-angle: 118deg; }
  .section-title-glow::after { opacity: 1; transform: none; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .section-head-panel {
    background-image: none;
    background-color: var(--glass-solid);
  }
}

@media (prefers-contrast: more) {
  .section-head-panel {
    border-color: var(--section-accent);
    background-color: var(--bg);
  }
  .section-head .lede,
  .section-head .referral-note,
  .engagement-note .lede { color: var(--ink); }
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  container-type: inline-size;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-content: start;
  padding: 0.75rem 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--card);
  box-shadow: var(--shadow), inset 0 1px 0 var(--highlight);
  container-type: inline-size;
  container-name: card;
}
.card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.card-copy { margin: 0; color: var(--muted); }
.card-links { display: grid; gap: 0.45rem; align-content: start; }
.text-link { font-weight: 600; }

.card-media {
  position: relative;
  overflow: hidden;
  border-radius: 0.9rem;
  background: rgba(10, 8, 22, 0.6);
}
.card-media.is-wide { aspect-ratio: 16 / 9; }
.card-media.is-square { aspect-ratio: 1; }
.card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-media.is-poster {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.35rem;
  padding: 1rem;
  background:
    radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--violet) 55%, transparent), transparent 55%),
    radial-gradient(circle at 72% 70%, color-mix(in srgb, var(--accent2) 40%, transparent), transparent 50%),
    var(--bg);
}
.soon-kicker,
.soon-title { margin: 0; text-align: center; }
.soon-title {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.is-soon { border-style: dashed; }

.play {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0 0.9rem 0 0.7rem;
  border: 0;
  border-radius: 999px;
  background: var(--metal);
  color: var(--metal-ink);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  cursor: pointer;
}
.play-icon {
  width: 0;
  height: 0;
  border-left: 11px solid currentColor;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}
.card-media.is-playing {
  overflow: hidden;
  display: block;
  background: #000;
}
.embed-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: inherit;
  background: #000;
}
.embed-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  border: 0;
  display: block;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.shot {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 1rem;
  background: rgba(10, 8, 22, 0.6);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.shot-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 0.7rem 0.65rem;
  background: linear-gradient(transparent, rgba(6, 6, 12, 0.92));
  font-family: var(--serif);
  font-size: 1.15rem;
}
.shot-soon {
  display: grid;
  align-content: end;
  gap: 0.35rem;
  min-height: 9rem;
  padding: 0.9rem;
  border: 1px dashed var(--line);
  cursor: default;
}
.shot-soon h3 {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 400;
}

.engagement-note {
  --section-accent: var(--accent2);
  overflow-x: clip;
}
.engagement-note-frame {
  width: min(42rem, calc(100% - 2rem));
  margin: 0.35rem auto 0;
}
.engagement-note .lede {
  max-width: none;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
  color: color-mix(in srgb, var(--text) 90%, var(--section-accent));
}
.engagement-note .lede + .lede { margin-top: 0.85rem; }
.engagement-note + .site-foot { padding-top: 2.25rem; }

.site-foot {
  padding: 4rem 1rem 2.5rem;
  text-align: center;
  color: var(--quiet);
}
.site-foot p { margin: 0.3rem 0; }
.site-foot a { color: var(--ink); }
.privacy-note { font-size: 0.85rem; }

.lightbox {
  width: min(960px, calc(100vw - 1.5rem));
  max-height: calc(100vh - 2rem);
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: var(--glass-solid);
  color: var(--text);
}
.lightbox::backdrop {
  background: rgba(6, 6, 12, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lightbox figure { margin: 0; }
.lightbox img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 0.8rem;
  background: #000;
}
.lightbox figcaption { margin-top: 0.7rem; }
.lightbox h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
}
.lightbox-bar {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.lightbox-nav { display: flex; gap: 0.5rem; }

.lyrics-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(6, 6, 12, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.lyrics-scrim[hidden] { display: none; }
.lyrics-dialog {
  position: fixed;
  inset: 0;
  z-index: 41;
  width: min(36rem, calc(100vw - 2rem));
  height: fit-content;
  max-height: min(82vh, 46rem);
  margin: auto;
  padding: 0;
  border: 1px solid var(--metal-edge);
  border-radius: 1.2rem;
  background:
    linear-gradient(165deg, rgba(139, 152, 168, 0.18), transparent 9rem),
    rgba(16, 18, 24, 0.96);
  color: var(--text);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(183, 195, 206, 0.28);
}
.lyrics-dialog[open] {
  display: flex;
  flex-direction: column;
}
.lyrics-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex: 0 0 auto;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid var(--metal-edge);
}
.lyrics-kicker {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--metal-sheen);
}
.lyrics-dialog h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
}
.lyrics-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--metal-edge);
  border-radius: 999px;
  background: var(--metal-deep);
  color: var(--metal-sheen);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.lyrics-body {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 1rem 1.2rem 1.4rem;
  overflow: auto;
  overscroll-behavior: contain;
  white-space: pre-wrap;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text);
}
@media (max-width: 640px) {
  .lyrics-dialog {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .lyrics-bar { padding-top: max(1rem, env(safe-area-inset-top)); }
  .lyrics-body { padding-bottom: max(1.4rem, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .lyrics-dialog { transition: none; }
}

.noscript-note {
  margin: 1rem auto;
  width: min(40rem, calc(100% - 2rem));
  color: var(--muted);
}

@supports (grid-template-rows: subgrid) {
  #software .cards.use-subgrid > .card {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    align-items: start;
  }
}

#software-title {
  max-width: 16em;
  line-height: 1.05;
}

@container card (min-width: 26rem) {
  .card h3 { font-size: 1.9rem; }
}

@media (min-width: 720px) {
  .cards.cols-2,
  .cards.cols-3 { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr 1fr; }
  .brand-name { display: inline; }
}

@media (min-width: 900px) {
  .hero { padding-top: 0.2rem; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.9fr);
    min-height: 0;
    align-items: start;
  }
  .section { padding: 5.5rem 0 4.75rem; }
  .section::after { height: 4.15rem; }
}

@media (min-width: 1100px) {
  .cards.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
}

@media (min-width: 1080px) {
  .brand { margin-right: 0; }
  .menu-btn { display: none; }
  .site-menu,
  .site-menu:popover-open,
  .no-popover .site-menu,
  .no-popover .site-menu.is-open {
    display: flex !important;
    position: static;
    inset: auto;
    width: auto;
    height: auto;
    max-height: none;
    margin: 0 0 0 auto;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.1rem 0.15rem;
  }
  .site-menu a {
    min-height: 44px;
    padding-inline: 0.45rem;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
  }
}

@media (max-width: 899px) {
  .aperture { width: min(72vw, 18rem); }
  .display { font-size: clamp(2.7rem, 12vw, 4.4rem); }
}
@media (max-width: 719px) {
  .brand-name { display: none; }
}
@media (max-width: 600px) {
  body::before { background-attachment: scroll; }
  .section { padding: 2.9rem 0 2.7rem; }
  .section::before { left: 4%; right: 4%; }
  .section::after { height: 2.35rem; }
  .section-num { -webkit-text-stroke-width: 2px; }
}

@media (prefers-reduced-motion: no-preference) {
  .display {
    background-image: linear-gradient(var(--sheen), var(--grad-white) 8%, var(--grad-lilac) 34%, var(--metal-sheen) 52%, var(--grad-mint) 84%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: sheen 16s linear infinite;
  }
  .aperture { animation: spin-ring 22s linear infinite; }
  .scroll-progress {
    animation: grow linear;
    animation-timeline: scroll(root block);
  }
  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 32%;
    }
  }
  @media (hover: hover) and (pointer: fine) {
    .card {
      transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--lift, 0px));
      transition: transform 0.18s ease, border-color 0.18s ease;
    }
    .cards:has(.card:hover) .card:not(:hover) { opacity: 0.72; }
    .card:hover {
      --lift: -6px;
      border-color: var(--metal-edge);
    }
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar,
  .site-menu:popover-open { background: var(--glass-solid); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .display,
  .aperture,
  .reveal,
  .scroll-progress,
  .card {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  .scroll-progress { display: none; }
  .reveal { opacity: 1; }
  .cards:has(.card:hover) .card:not(:hover) { opacity: 1; }
}

@media (prefers-contrast: more) {
  .card,
  .topbar,
  .button.ghost,
  .shot-soon { border-color: var(--white); }
  .lede,
  .card-copy,
  .tagline { color: var(--ink); }
}

/* Original about-me tiles, and the same shape for portfolio tiles.
   Image frame matches main: 132px band, object-fit cover, no recolor. */
.about-wrap {
  padding: clamp(20px, 3vw, 32px) clamp(16px, 3vw, 32px);
  background: var(--veil);
}
.section:not(#about) .section-tiles {
  padding: clamp(20px, 3vw, 32px) clamp(16px, 3vw, 32px);
  border-radius: 20px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--section-accent) 12%, transparent), transparent 58%),
    var(--veil);
  border: 1px solid color-mix(in srgb, var(--section-accent) 46%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 28px -14px color-mix(in srgb, var(--section-accent) 75%, transparent);
}
.section:not(#about) .section-tiles:not(:has(.tiles, .lede)) { display: none; }
.section:not(#about) .tiles .card .num { color: var(--section-accent); }
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: 22px;
}
.tiles .card {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 26px 24px 24px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow), inset 0 1px 0 var(--highlight);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
}
.tiles .card-media {
  height: 132px;
  aspect-ratio: auto;
  margin: -26px -24px 18px;
  border-radius: 19px 19px 0 0;
  max-width: none;
}
.tiles .card-media.is-band.is-playing {
  height: auto;
  aspect-ratio: 16 / 9;
  min-height: 168px;
  overflow: hidden;
}
.tiles .card-media.is-playing img { visibility: hidden; }
.tiles .card-media.is-playing::after,
.tiles .card-media.is-playlist.is-playing .soon-kicker {
  display: none;
}
.tiles .card-media.is-playlist.is-playing:has(.embed-frame[data-provider="spotify"]) {
  height: 352px;
}
.tiles .card-media.is-playlist.is-playing:has(.embed-frame[data-provider="youtube"]) {
  height: auto;
  aspect-ratio: 16 / 9;
}
.tiles .card-media .play,
.tiles .card-media .embed-frame { z-index: 1; }
.tiles .card-media .play { max-width: calc(100% - 1.4rem); }
.tiles .card-media img {
  opacity: 0.92;
  object-fit: cover;
  object-position: center;
}
.tiles .card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, transparent 30%, rgba(12,10,26,0.25) 60%, rgba(14,12,30,0.88) 100%);
}
.tiles .num {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent2);
}
.tiles .card:nth-child(3n+1) .num { color: var(--accent1); }
.tiles .card:nth-child(3n+2) .num { color: var(--accent2); }
.tiles .card:nth-child(3n) .num { color: var(--accent-soft); }
.tiles .card h3 {
  margin: 6px 0 12px;
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--white);
}
.tiles .card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}
#shop .tiles .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
#shop .tiles .card-media { flex: none; }
#shop .tiles .card .shop-soon,
#shop .tiles .card .shop-actions {
  margin-top: auto;
}
.shop-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.75rem, 1fr));
  gap: 0.65rem;
  margin-top: 0.95rem;
}
.shop-actions .button {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
}
.shop-soon {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0.95rem 0 0;
  padding: 0 0.9rem;
  border: 1px dashed var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tiles .card .text-link,
.tiles .card .shot {
  display: inline-flex;
  margin-top: 12px;
  min-height: 44px;
  align-items: center;
}
.site-menu a.sign-in,
.site-menu a[data-admin-link] {
  margin-top: 0.35rem;
  justify-content: center;
}
.site-menu a[data-admin-link]:focus {
  outline: 2px solid #5eead4;
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .tiles { grid-template-columns: 1fr; gap: 16px; }
  .tiles .card-media { height: 120px; }
  .tiles .card-media.is-playlist.is-playing:has(.embed-frame[data-provider="spotify"]) {
    height: 352px;
  }
  .tiles .card-media.is-playlist.is-playing:has(.embed-frame[data-provider="youtube"]) {
    height: auto;
    aspect-ratio: 16 / 9;
  }
  #software-title { max-width: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .tiles .card {
    transition: transform 0.35s cubic-bezier(.2, .7, .2, 1), box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
  }
  .tiles .card-media img { transition: transform 0.6s cubic-bezier(.2, .7, .2, 1), opacity 0.35s ease; }
  .tiles .card:hover,
  .tiles .card:focus-within {
    transform: translateY(-6px);
    background: var(--wash);
    border-color: var(--metal);
    box-shadow: 0 30px 60px -14px rgba(0,0,0,0.7), 0 6px 18px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.3);
  }
  .tiles .card:hover .card-media img,
  .tiles .card:focus-within .card-media img {
    transform: scale(1.04);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tiles .card:hover,
  .tiles .card:focus-within,
  .tiles .card:hover .card-media img,
  .tiles .card:focus-within .card-media img {
    transform: none;
  }
}
@media (min-width: 1080px) {
  .site-menu a.sign-in,
  .site-menu a[data-admin-link] {
    margin-top: 0;
    margin-left: 0.35rem;
  }
}

@keyframes sheen { to { --sheen: 388deg; } }
@keyframes spin-ring { to { --ring: 360deg; } }
@keyframes grow { to { transform: scaleX(1); } }
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

::view-transition-group(gallery-photo) {
  animation-duration: 320ms;
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(gallery-photo) { animation: none; }
}

.card-media { position: relative; }
.media-badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  background: rgba(6, 6, 12, 0.82);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
}
.media-badge-icon { width: 1rem; height: 1rem; display: block; }
.song-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.song-open:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; }
.song-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: 1rem;
  margin-top: 1.1rem;
  align-items: start;
}
.song-stage:not(:has(.song-lyrics:not([hidden]))) { grid-template-columns: minmax(0, 42rem); }
.song-stage[hidden] { display: none; }
.song-stage:focus { outline: none; }
.song-cover {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 0.75rem;
  border-radius: 1rem;
}
.song-cover[hidden] { display: none !important; }
.song-stage-player audio,
.song-stage-player video,
.song-stage-player iframe {
  display: block;
  width: 100%;
  max-height: 28rem;
  border: 0;
  border-radius: 0.8rem;
  background: #000;
}
.song-stage-player iframe { aspect-ratio: 16 / 9; height: auto; max-height: none; }
.song-stage-player {
  min-width: 0;
  border-radius: 0.9rem;
  box-shadow:
    0 0 22px rgba(255, 64, 64, var(--bass-alpha, 0)),
    inset 0 0 0 1px rgba(255, 90, 70, var(--bass-alpha, 0));
}
.song-transport {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.65rem;
  row-gap: 0.2rem;
  align-items: center;
  width: 100%;
  margin-top: 0.55rem;
}
.song-now {
  grid-column: 1 / -1;
  grid-row: 1;
  min-width: 0;
}
.song-now-title {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.song-now-credit {
  margin: 0.05rem 0 0.15rem;
  color: var(--quiet);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.song-play-toggle {
  position: relative;
  grid-column: 1;
  grid-row: 2;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--metal-edge);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.song-buffering {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: var(--accent2);
  border-radius: 50%;
  animation: song-spin 0.7s linear infinite;
}
.song-buffering[hidden] { display: none; }
@keyframes song-spin { to { transform: rotate(360deg); } }
.song-transport-track { grid-column: 2; grid-row: 2; min-width: 0; }
.song-timeline-wrap {
  position: relative;
  width: 100%;
  height: 1.4rem;
}
.song-timeline-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}
.song-timeline-buffer,
.song-timeline-played {
  position: absolute;
  left: 0;
  top: 50%;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 999px;
  pointer-events: none;
}
.song-timeline-buffer { background: rgba(255, 255, 255, 0.42); }
.song-timeline-played { background: var(--accent2); }
.song-timeline,
.song-spectrum {
  display: block;
  width: 100%;
  max-width: 100%;
}
.song-timeline {
  position: relative;
  z-index: 1;
  margin: 0;
  height: 1.4rem;
  background: transparent;
  accent-color: var(--accent2);
  -webkit-appearance: none;
  appearance: none;
}
.song-timeline::-webkit-slider-runnable-track {
  height: 6px;
  background: transparent;
  border-radius: 999px;
}
.song-timeline::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -4px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}
.song-timeline::-moz-range-track {
  height: 6px;
  background: transparent;
  border: 0;
}
.song-timeline::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}
.song-spectrum {
  height: 72px;
  margin-top: 0.15rem;
}
@media (prefers-reduced-motion: reduce) {
  .song-stage-player { box-shadow: none; }
  .song-stage-player,
  .song-buffering { transition: none; animation: none; }
}
.song-lyrics {
  margin: 0;
  padding: 1rem 1.1rem 1.15rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--section-accent, var(--accent2)) 55%, transparent);
  background: rgba(8, 7, 18, 0.72);
  min-height: 12rem;
}
.song-lyrics h3 {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
}
.song-lyrics-text {
  white-space: pre-wrap;
  color: var(--text);
  line-height: 1.55;
  max-height: 22rem;
  overflow: auto;
}
.song-close { margin-top: 0.9rem; }
@media (max-width: 700px) {
  .song-stage { grid-template-columns: 1fr; }
  .song-lyrics-text { max-height: none; }
}
