/*
  The Prompted Pixel: near-black with a purple bias, deep violet light,
  white type that carries the logo's weight, and one bright violet for action.
*/
:root {
  color-scheme: dark;
  --bg: #07050c;
  --bg-raise: #0d0916;
  --card: #120c1d;
  --card-hover: #181027;
  --line: #251a38;
  --line-strong: #3b2b58;
  --text: #f5f1fc;
  --muted: #b1a5c9;
  --faint: #7a6c96;
  --violet: #a67cff;
  --violet-strong: #8a5cf5;
  --violet-ink: #150a2b;
  --violet-deep: #2a1250;
  --glow: rgb(138 92 245 / 0.28);

  --font-display: 'Unbounded', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--violet);
  color: var(--violet-ink);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* Header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) var(--gutter) 12px;
  /* Near-solid instead of a frosted blur (0.17.6, the owner's call): re-blurring
     the moving cosmos behind it on every frame made scrolling feel slow. */
  background: rgb(7 5 12 / 0.95);
  border-bottom: 1px solid rgb(59 43 88 / 0.5);
}

.mark {
  flex-shrink: 0;
}

.mark img {
  width: 92px;
}

.site-head nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-head nav > a,
.nav-menu-button {
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: 600 0.9375rem/1.5 var(--font-body);
  text-decoration: none;
  cursor: pointer;
}

.site-head nav > a:hover,
.nav-menu-button:hover,
.nav-menu-button[aria-expanded='true'] {
  color: var(--text);
  background: var(--card);
}

.site-head nav > a[aria-current='page'],
.nav-menu-button.is-current {
  color: var(--text);
}

/* Portfolio drop-down: Images, Music, Apps. */
.nav-menu {
  position: relative;
}

.nav-menu-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-menu-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.nav-menu-button[aria-expanded='true'] svg {
  transform: rotate(180deg);
}

.nav-menu-list {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 10;
  display: grid;
  gap: 2px;
  width: max-content;
  min-width: 250px;
  max-width: calc(100vw - 32px);
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 18px 44px rgb(0 0 0 / 0.55), 0 0 0 1px var(--glow);
  transform: translateX(-50%);
  animation: nav-menu-in 140ms ease-out;
}

.nav-menu-list[hidden] {
  display: none;
}

.nav-menu-list a {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
}

.nav-menu-list a:hover,
.nav-menu-list a:focus-visible {
  background: var(--card-hover);
}

.nav-menu-list a[aria-current='page'] {
  background: var(--violet-deep);
}

.nav-menu-list b {
  font-weight: 700;
  font-size: 0.9375rem;
}

.nav-menu-list span {
  color: var(--muted);
  font-size: 0.8125rem;
}

@keyframes nav-menu-in {
  from {
    opacity: 0;
    translate: 0 -4px;
  }
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 28px;
  padding: clamp(56px, 12vw, 128px) var(--gutter) clamp(48px, 9vw, 96px);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

/* Violet light behind the logo, and a faint pixel grid that fades out. */
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% 0;
  z-index: -2;
  background:
    radial-gradient(48% 55% at 50% 42%, rgb(96 40 190 / 0.55), transparent 70%),
    radial-gradient(30% 35% at 50% 45%, rgb(166 124 255 / 0.18), transparent 70%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(166 124 255 / 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(166 124 255 / 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(60% 70% at 50% 45%, #000 20%, transparent 75%);
}

.hero-logo {
  margin: 0;
}

.hero-logo img {
  width: min(560px, 82vw);
  filter: drop-shadow(0 6px 40px rgb(138 92 245 / 0.35));
}

.prompt {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgb(18 12 29 / 0.8);
  color: var(--muted);
  font: 400 clamp(0.8125rem, 2.4vw, 0.9375rem) / 1.4 var(--font-mono);
  text-align: left;
}

.prompt-sign {
  color: var(--violet);
  font-weight: 500;
}

.caret {
  display: inline-block;
  width: 0.55em;
  height: 1.15em;
  margin-left: 2px;
  background: var(--violet);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Sections */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 72px) var(--gutter);
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0;
  color: var(--violet);
  font: 500 0.75rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font: 700 clamp(1.6rem, 4.2vw, 2.4rem) / 1.15 var(--font-display);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.section-lede {
  margin: 4px 0 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.0625rem;
}

/* Home: the two calls to action under the logo. */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Home: featured images, square tiles that open in the portfolio's viewer. */
.showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.showcase-item {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raise);
}

.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
  -webkit-user-drag: none;
  user-select: none;
}

.showcase-item:hover img,
.showcase-item:focus-visible img {
  transform: scale(1.04);
}

@media (max-width: 720px) {
  .showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

/* The home page's app tiles stay compact; install notes live on the Apps page. */
#apps .app-note,
#apps .app-flag-note {
  display: none;
}


/* Apps */
/* A gallery of tiles: the preview on top, then the details. */
/* Every tile shares the same rows (subgrid): preview, tags, name, tagline,
   description, buttons, extras. So the previews, names and main buttons line
   up across a row of tiles, however long each one's text is. */
.apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}

.app {
  display: grid;
  grid-row: span 7;
  grid-template-rows: subgrid;
  row-gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--card);
  transition: border-color 160ms ease;
}

.app:hover {
  border-color: var(--line-strong);
}

.app-shot {
  display: block;
  position: relative;
  aspect-ratio: var(--shot-ratio, 1);
  overflow: hidden;
  background: var(--bg-raise);
  border-bottom: 1px solid var(--line);
}

.app-shot img,
.app-shot video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.app:hover .app-shot img,
.app:hover .app-shot video {
  transform: scale(1.02);
}

.app-body {
  display: grid;
  grid-row: 2 / -1;
  grid-template-rows: subgrid;
  align-content: start;
  row-gap: 12px;
  padding: 22px;
}

/* Buttons sit at the top of their row; the extras (size, "More About This
   App", notes) at the top of theirs. */
.app-actions,
.app-extra {
  align-self: start;
}

.app-extra {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* "Updated …" always on its own line under the version and tags. */
.app-updated {
  flex-basis: 100%;
}

.app-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--faint);
  font-size: 0.8125rem;
}

.tag {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--violet-deep);
  color: var(--violet);
  font: 500 0.75rem/1.5 var(--font-mono);
}

.app h3 {
  margin: 0;
  font: 700 1.3rem / 1.2 var(--font-display);
  text-wrap: balance;
}

.app-tagline {
  margin: 0;
  color: var(--violet);
  font-weight: 600;
  font-size: 1.0625rem;
}

.app-desc {
  margin: 0;
  color: var(--muted);
}

.app-actions {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.app-actions .button {
  justify-content: center;
}

.apps-more {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 28px 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-primary {
  background: var(--violet);
  color: var(--violet-ink);
  box-shadow: 0 6px 24px var(--glow);
}

.button-primary:hover {
  background: #b893ff;
}

.button-secondary {
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--violet);
  background: var(--card-hover);
}

button.button {
  font-family: inherit;
  cursor: pointer;
}

button.button-secondary {
  background: transparent;
}

.button-meta {
  color: var(--faint);
  font: 400 0.8125rem/1 var(--font-mono);
}

.button-primary .button-meta {
  color: rgb(21 10 43 / 0.65);
}

/* An app marked with a flag in its app.json, e.g. "Untested". */
.tag-flag {
  white-space: nowrap;
  background: rgb(255 194 122 / 0.12);
  color: #ffc27a;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.app-flag-note {
  margin: 0;
  padding: 8px 12px;
  border-left: 3px solid #ffc27a;
  border-radius: 0 8px 8px 0;
  background: rgb(255 194 122 / 0.07);
  color: var(--muted);
  font-size: 0.875rem;
}

/* A flag that's information, not a warning (flag.tone "neutral"), e.g. "Demo". */
.tag-flag.is-neutral {
  background: var(--violet-deep);
  color: var(--violet);
}

.app-flag-note.is-neutral {
  border-left-color: var(--violet-strong);
  background: rgb(138 92 245 / 0.08);
}

/* The app's own size, when its download bundles extras. */
.app-size {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.app-note {
  margin: 0;
  color: var(--faint);
  font-size: 0.875rem;
}

/* An app's version number, linking to its version history. */
.tag-link {
  text-decoration: underline;
  text-decoration-color: rgb(166 124 255 / 0.45);
  text-underline-offset: 3px;
  transition:
    background-color 140ms ease,
    color 140ms ease;
}

.tag-link:hover {
  background: var(--violet);
  color: var(--violet-ink);
}

.empty {
  color: var(--muted);
}

/* Footer */
.site-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  max-width: 1120px;
  margin: 40px auto 0;
  padding: 28px var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 36px);
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.875rem;
}

.foot-mark {
  width: 72px;
  opacity: 0.8;
}

.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-foot a {
  color: var(--muted);
  text-decoration: none;
}

.site-foot a:hover {
  color: var(--text);
}

.site-foot p {
  margin: 0;
}

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

/* Home: commissions teaser */
.commission-teaser {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(80% 140% at 100% 0%, rgb(96 40 190 / 0.35), transparent 60%),
    var(--card);
  text-decoration: none;
  transition: border-color 160ms ease;
}

.commission-teaser:hover {
  border-color: var(--violet);
}

.commission-copy {
  display: grid;
  gap: 8px;
  max-width: 60ch;
}

.commission-title {
  font: 700 clamp(1.4rem, 3.6vw, 2rem) / 1.2 var(--font-display);
  text-wrap: balance;
}

.commission-text {
  color: var(--muted);
  font-size: 1.0625rem;
}

.commission-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.soon-pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--violet);
  color: var(--violet-ink);
  letter-spacing: 0.08em;
}

/* Commissions page */
.page-title {
  margin: 0;
  font: 700 clamp(1.8rem, 5vw, 2.8rem) / 1.1 var(--font-display);
  text-wrap: balance;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.service {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card), var(--bg-raise));
}

.service h2 {
  font-size: 1.2rem;
}

.service p {
  margin: 0;
  color: var(--muted);
}

.service-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service .service-note {
  color: var(--faint);
  font-size: 0.875rem;
}

.request {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 4px);
  background: var(--card);
  overflow: hidden;
}

.request-form {
  padding: clamp(20px, 4vw, 36px);
}

/* Closed: just the banner. A greyed-out form reads as broken; it comes back when requests open. */
.request.is-closed .request-form {
  display: none;
}

.request.is-closed .soon-banner {
  border-bottom: 0;
}

.soon-banner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: clamp(28px, 6vw, 56px) var(--gutter);
  border-bottom: 1px solid var(--line-strong);
  background:
    radial-gradient(60% 120% at 50% 0%, rgb(120 60 230 / 0.55), transparent 70%),
    linear-gradient(180deg, #1b0f33, var(--card));
  text-align: center;
}

.soon-kicker {
  margin: 0;
  color: var(--violet);
  font: 500 0.8125rem/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.soon-title {
  margin: 0;
  font: 700 clamp(2.4rem, 9vw, 5rem) / 1 var(--font-display);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-shadow: 0 0 40px rgb(166 124 255 / 0.55);
}

.soon-text {
  margin: 6px 0 0;
  max-width: 52ch;
  color: var(--muted);
}

.soon-text a {
  color: var(--text);
  text-underline-offset: 3px;
}

.request-fields {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field > label,
.field > legend {
  padding: 0;
  font-weight: 600;
}

.optional {
  margin-left: 6px;
  color: var(--faint);
  font-weight: 400;
  font-size: 0.8125rem;
}

.field input[type='text'],
.field input[type='email'],
.field textarea,
.field select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-raise);
  color: var(--text);
  font: inherit;
}

.field textarea {
  resize: vertical;
}

.field ::placeholder {
  color: var(--faint);
}

.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 1px;
}

.choice > legend {
  margin-bottom: 8px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.choice-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-raise);
  font-weight: 600;
  cursor: pointer;
}

.choice-card:has(input:checked) {
  border-color: var(--violet);
  background: var(--violet-deep);
}

.choice-card input,
.check input {
  accent-color: var(--violet);
}

.tool-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.tool-group {
  display: grid;
  align-content: start;
  gap: 8px;
}

.tool-group-name {
  margin: 0;
  color: var(--violet);
  font: 500 0.75rem/1.4 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  cursor: pointer;
}

.request-fields:disabled .choice-card,
.request-fields:disabled .check {
  cursor: not-allowed;
}

.request-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.request-actions .button {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.request-actions .button:disabled {
  cursor: not-allowed;
  box-shadow: none;
}

.request-status {
  margin: 0;
  color: var(--faint);
  font-size: 0.875rem;
}

/* Site history */
.history {
  padding-top: clamp(32px, 6vw, 56px);
}

.history-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin: 0;
  font: 700 clamp(1.8rem, 5vw, 2.8rem) / 1.1 var(--font-display);
  text-wrap: balance;
}

.history-now {
  color: var(--violet);
  font: 500 clamp(1rem, 2.6vw, 1.25rem) / 1 var(--font-mono);
}

.section-lede a,
.release-body a {
  color: var(--violet);
  text-underline-offset: 3px;
}

.history-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  color: var(--faint);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.history-stats b {
  color: var(--text);
  font-size: 1.05rem;
}

.history-filters {
  position: sticky;
  top: 69px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 calc(var(--gutter) * -1) 8px;
  padding: 10px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgb(7 5 12 / 0.88);
  backdrop-filter: blur(10px);
}

.history-filters span {
  color: var(--faint);
  font-size: 0.8125rem;
}

.history-filter {
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font: 600 0.8125rem/1 var(--font-body);
  cursor: pointer;
}

.history-filter:hover {
  border-color: var(--violet);
  color: var(--text);
}

.history-filter[aria-pressed='true'] {
  border-color: var(--violet);
  background: var(--violet);
  color: var(--violet-ink);
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.release {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.release:last-child {
  border-bottom: 0;
}

.release-rail {
  position: relative;
  display: grid;
  align-content: start;
  gap: 4px;
  padding-left: 22px;
}

/* A dot per release: filled violet for feature releases, hollow for fixes. */
.release-rail::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--violet);
  border-radius: 3px;
  background: var(--bg);
}

.release.is-major .release-rail::before,
.release.is-minor .release-rail::before {
  background: var(--violet);
  box-shadow: 0 0 14px var(--glow);
}

.release-ver {
  color: var(--text);
  font: 500 1.0625rem/1.3 var(--font-mono);
  text-decoration: none;
}

.release-ver:hover {
  color: var(--violet);
}

.release-rail time {
  color: var(--faint);
  font-size: 0.8125rem;
}

.release-body h2 {
  margin: 0 0 12px;
  font: 700 1.25rem/1.3 var(--font-display);
}

.changes {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.changes:first-of-type {
  margin-top: 0;
}

.chip {
  justify-self: start;
  margin: 0;
  padding: 2px 9px;
  border-radius: 6px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font: 700 0.6875rem/1.6 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chip-added {
  color: #7fe0a9;
}

.chip-changed {
  color: #c4a8ff;
}

.chip-fixed {
  color: #ff9d8c;
}

.chip-removed {
  color: var(--muted);
}

.changes ul {
  max-width: 68ch;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.changes li {
  margin: 4px 0;
}

.changes li::marker {
  color: var(--violet);
}

.changes code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--card);
  color: var(--text);
  font: 0.85em var(--font-mono);
}

.site-foot p a {
  color: var(--muted);
}

/* Music: the highlight reel */
.section-lede a {
  color: var(--text);
}

/* Header: violet light and the pixel grid from the home page, with an
   equalizer running along the bottom edge. */
.reel-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.reel-hero::before {
  content: '';
  position: absolute;
  inset: -30% -10% 0;
  z-index: -2;
  background:
    radial-gradient(40% 70% at 22% 40%, rgb(96 40 190 / 0.5), transparent 70%),
    radial-gradient(35% 60% at 85% 30%, rgb(166 124 255 / 0.16), transparent 70%);
}

.reel-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(166 124 255 / 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(166 124 255 / 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(70% 90% at 30% 40%, #000 20%, transparent 75%);
}

.reel-hero-in {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 40px;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 88px) var(--gutter) clamp(56px, 8vw, 84px);
}

.reel-hero-copy {
  display: grid;
  justify-items: start;
  gap: 14px;
  max-width: 640px;
}

.reel-title {
  margin: 0;
  font: 700 clamp(2.4rem, 8vw, 4.6rem) / 1 var(--font-display);
  letter-spacing: -0.02em;
  text-shadow: 0 6px 40px rgb(138 92 245 / 0.45);
}

.reel-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.reel-play-all svg {
  fill: currentColor;
}

.reel-stats {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reel-stats li {
  min-width: 104px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgb(18 12 29 / 0.72);
  backdrop-filter: blur(6px);
  color: var(--faint);
  font-size: 0.8125rem;
}

.reel-stats b {
  display: block;
  color: var(--text);
  font: 700 1.5rem/1.2 var(--font-display);
}

.reel-eq {
  position: absolute;
  right: var(--gutter);
  bottom: 0;
  left: var(--gutter);
  z-index: -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 40px;
  max-width: 1120px;
  margin: 0 auto;
  opacity: 0.45;
  pointer-events: none;
}

.reel-eq i {
  width: calc(100% / 32 - 7px);
  height: 100%;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, rgb(166 124 255 / 0.7), rgb(166 124 255 / 0));
  transform-origin: bottom;
  animation: eq 2.4s ease-in-out infinite;
}

.reel-eq i:nth-child(3n) {
  animation-duration: 1.9s;
}

.reel-eq i:nth-child(3n + 1) {
  animation-duration: 2.9s;
}

.reel-eq i:nth-child(odd) {
  animation-delay: -0.8s;
}

.reel-eq i:nth-child(4n) {
  animation-delay: -1.6s;
}

/* The eq only dances while music plays. */
body:not(.reel-playing) .reel-eq i {
  animation-play-state: paused;
}

.reel-main {
  padding-top: 28px;
}

.reel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.reel-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font: 600 0.875rem/1.2 var(--font-body);
  cursor: pointer;
}

.reel-tab:hover {
  border-color: var(--violet);
  color: var(--text);
}

.reel-tab[aria-pressed='true'] {
  border-color: var(--violet);
  background: var(--violet);
  color: var(--violet-ink);
}

.reel-tab-kind {
  font: 500 0.625rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

.reel-count {
  font: 500 0.75rem/1 var(--font-mono);
  opacity: 0.7;
}

.reel-about {
  max-width: 68ch;
  margin: 0 0 12px;
  color: var(--muted);
}

.player {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: clamp(20px, 4vw, 36px);
  align-items: center;
  margin: 8px 0 24px;
  padding: clamp(18px, 3.5vw, 32px);
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(70% 120% at 0% 0%, rgb(110 50 220 / 0.32), transparent 65%),
    linear-gradient(180deg, var(--card), var(--bg-raise));
}

/* The cover, blurred into a glow behind the player. */
.player-glow {
  position: absolute;
  inset: -30%;
  z-index: -1;
  background-position: center;
  background-size: cover;
  filter: blur(70px) saturate(1.5);
  opacity: 0.32;
  pointer-events: none;
}

.player-art {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.5);
}

.art-blank {
  display: grid;
  place-items: center;
  background:
    radial-gradient(80% 80% at 30% 20%, rgb(166 124 255 / 0.45), transparent 70%),
    var(--violet-deep);
  color: var(--violet);
}

.art-blank svg {
  width: 38%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.player-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.player-where {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.player-title {
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  overflow-wrap: anywhere;
}

.player-seek {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.player-time {
  min-width: 4ch;
  color: var(--muted);
  font: 500 0.8125rem/1 var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.player-length {
  text-align: right;
}

/* Range inputs: a thin bar filled in violet up to the thumb. */
.player input[type='range'] {
  --fill: 0%;
  width: 100%;
  height: 22px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
}

.player input[type='range']::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--violet) var(--fill), var(--line-strong) var(--fill));
}

.player input[type='range']::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--line-strong);
}

.player input[type='range']::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--violet);
}

.player input[type='range']::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -5px;
  border: 0;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 4px rgb(166 124 255 / 0.35);
  appearance: none;
}

.player input[type='range']::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 4px rgb(166 124 255 / 0.35);
}

.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.icon-button,
.player-play {
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
}

.icon-button:hover {
  border-color: var(--violet);
  background: var(--card-hover);
}

.icon-button[aria-pressed='true'] {
  border-color: var(--violet);
  background: var(--violet-deep);
  color: var(--violet);
}

.player-play {
  width: 60px;
  height: 60px;
  border: 0;
  background: var(--violet);
  color: var(--violet-ink);
  box-shadow: 0 8px 30px var(--glow);
}

.player-play:hover {
  background: #b893ff;
}

.player-controls svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.player-play svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  stroke-width: 1.5;
}

.player-play .i-pause,
.player-play.is-playing .i-play {
  display: none;
}

.player-play.is-playing .i-pause {
  display: block;
}

.player-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--muted);
}

.player-volume input[type='range'] {
  width: 110px;
}

.player-volume.is-muted .i-waves {
  display: none;
}

.player-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.player-actions .button[hidden] {
  display: none;
}

.player-status {
  color: var(--violet);
  font-size: 0.875rem;
  font-weight: 600;
}

.reel-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: 'tracks lyrics';
  gap: 20px;
  align-items: start;
}

.lyrics,
.tracks {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raise);
}

.lyrics {
  grid-area: lyrics;
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 104px);
}

.tracks {
  grid-area: tracks;
}

.reel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--line);
}

.reel-h {
  font: 700 1rem/1.2 var(--font-display);
}

.lyrics-mode {
  color: var(--violet);
  font: 500 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lyrics-text {
  overflow-y: auto;
  padding: 16px 20px 28px;
  overscroll-behavior: contain;
  scrollbar-color: var(--line-strong) transparent;
}

.lyrics-text p {
  margin: 0;
}

.lyric-line {
  padding: 2px 0;
  font-size: 1.0625rem;
  line-height: 1.55;
}

.lyric-tag {
  margin-top: 18px !important;
  margin-bottom: 4px !important;
  color: var(--violet);
  font: 500 0.6875rem/1.4 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lyric-tag:first-child {
  margin-top: 0 !important;
}

.lyric-line.after-gap {
  margin-top: 14px;
}

.lyrics-none {
  color: var(--faint);
}

/* Timed lyrics: the line being sung lights up; earlier lines dim. */
.lyrics-text.is-synced .lyric-line {
  color: var(--faint);
  transition: color 200ms ease;
}

.lyrics-text.is-synced .lyric-line.is-past {
  color: var(--muted);
}

.lyrics-text.is-synced .lyric-line.is-now {
  color: var(--text);
  text-shadow: 0 0 22px rgb(166 124 255 / 0.65);
}

.lyric-line.is-timed {
  cursor: pointer;
}

.lyric-line.is-timed:hover {
  color: var(--text);
}

.track-list {
  margin: 0;
  padding: 8px;
  list-style: none;
}

.track {
  display: grid;
  grid-template-columns: 28px 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
}

.track:hover {
  background: var(--card);
}

.track[aria-current='true'] {
  background: var(--card-hover);
  box-shadow: inset 3px 0 0 var(--violet);
}

.track-num {
  display: grid;
  place-items: center;
  color: var(--faint);
  font: 500 0.8125rem/1 var(--font-mono);
}

.track-art {
  width: 44px;
  height: 44px;
  border-radius: 7px;
  object-fit: cover;
}

.track-art.art-blank svg {
  width: 20px;
}

.track-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.track-title {
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track[aria-current='true'] .track-title {
  color: var(--violet);
}

.track-where {
  overflow: hidden;
  color: var(--faint);
  font-size: 0.8125rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listens::before {
  content: ' · ';
}

.player-listens {
  color: var(--faint);
  font-weight: 500;
}

.track-time {
  color: var(--faint);
  font: 500 0.8125rem/1 var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* The playing song's number turns into bouncing bars. */
.eq {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.eq i {
  width: 3px;
  height: 100%;
  border-radius: 1px;
  background: var(--violet);
  transform-origin: bottom;
  animation: eq 900ms ease-in-out infinite;
}

.eq i:nth-child(2) {
  animation-delay: -300ms;
}

.eq i:nth-child(3) {
  animation-delay: -600ms;
}

@keyframes eq {
  0%,
  100% {
    transform: scaleY(0.3);
  }
  50% {
    transform: scaleY(1);
  }
}

.reel-playing .track[aria-current='true'] .track-n {
  display: none;
}

.reel-playing .track[aria-current='true'] .eq {
  display: flex;
}

.reel-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: clamp(40px, 8vw, 80px) var(--gutter);
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(60% 120% at 50% 0%, rgb(120 60 230 / 0.45), transparent 70%),
    var(--card);
  text-align: center;
}

.reel-empty-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 8px;
  border-radius: 20px;
  background: var(--violet);
  color: var(--violet-ink);
  box-shadow: 0 12px 40px var(--glow);
}

.reel-empty-icon svg {
  width: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reel-empty-title {
  margin: 0;
  font: 700 clamp(1.5rem, 4.5vw, 2.4rem) / 1.15 var(--font-display);
  text-wrap: balance;
}

@media (max-width: 820px) {
  .player {
    grid-template-columns: 1fr;
  }

  .player-art-wrap {
    width: min(100%, 200px);
    margin: 0 auto;
  }

  .reel-tabs {
    flex-wrap: nowrap;
    margin-inline: calc(var(--gutter) * -1);
    padding: 2px var(--gutter) 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .reel-tab {
    flex-shrink: 0;
  }

  .reel-stats {
    width: 100%;
  }

  .reel-stats li {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
  }

  .reel-stats b {
    font-size: 1.2rem;
  }

  .reel-body {
    grid-template-columns: 1fr;
    grid-template-areas: 'lyrics' 'tracks';
  }

  .lyrics {
    position: static;
    max-height: 60vh;
  }
}

@media (pointer: coarse) {
  .player-volume {
    display: none;
  }
}

/* Portfolio: filters, masonry grid and the lightbox */
.pf-filters {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.pf-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 460px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--card);
}

.pf-search:focus-within {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgb(166 124 255 / 0.25);
}

.pf-search svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--faint);
  stroke-width: 2;
  stroke-linecap: round;
}

.pf-search input {
  flex: 1;
  min-width: 0;
  padding: 11px 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.pf-rows {
  display: grid;
  gap: 8px;
}

.pf-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.pf-row-label {
  min-width: 86px;
  color: var(--faint);
  font: 500 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pf-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font: 600 0.8125rem/1.2 var(--font-body);
  cursor: pointer;
}

.pf-chip:hover {
  border-color: var(--violet);
  color: var(--text);
}

.pf-chip[aria-pressed='true'] {
  border-color: var(--violet);
  background: var(--violet);
  color: var(--violet-ink);
}

.pf-chip .reel-count {
  font-size: 0.6875rem;
}

.pf-versions .pf-chip {
  min-height: 28px;
  padding: 2px 10px;
  font-size: 0.75rem;
}

.pf-count {
  margin: 0;
  color: var(--faint);
  font-size: 0.8125rem;
}

.pf-grid {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pf-col {
  display: grid;
  flex: 1;
  gap: 12px;
  min-width: 0;
}

.pf-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--ratio);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: var(--card);
  cursor: zoom-in;
}

.pf-item img,
.pf-box img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

.pf-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.pf-item:hover img {
  transform: scale(1.03);
}

.pf-item:focus-visible {
  outline-offset: 2px;
}

.pf-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
}

.pf-badge {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgb(7 5 12 / 0.78);
  backdrop-filter: blur(6px);
  color: var(--text);
  font: 600 0.72rem/1.4 var(--font-body);
}

.pf-star {
  color: #ffc27a;
}

.pf-hover {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 2px;
  padding: 36px 14px 12px;
  background: linear-gradient(transparent, rgb(7 5 12 / 0.9));
  color: var(--text);
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.pf-item:hover .pf-hover,
.pf-item:focus-visible .pf-hover {
  opacity: 1;
  transform: none;
}

.pf-hover-title {
  font: 700 0.95rem/1.25 var(--font-display);
}

.pf-hover-tags {
  color: var(--muted);
  font: 500 0.75rem/1.3 var(--font-mono);
}

.pf-none {
  padding: 40px 0;
  color: var(--muted);
  text-align: center;
}

.pf-reset {
  border: 0;
  background: none;
  color: var(--violet);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* Lightbox */
.pf-box {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(4 2 8 / 0.97);
  color: var(--text);
}

.pf-box[open] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.pf-box::backdrop {
  background: rgb(4 2 8 / 0.9);
}

.pf-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 24px 72px;
}

.pf-full {
  max-width: 100%;
  max-height: calc(100dvh - 48px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgb(0 0 0 / 0.6);
}

.pf-compare {
  position: relative;
  max-width: 100%;
  max-height: calc(100dvh - 48px);
  aspect-ratio: var(--ratio);
  overflow: hidden;
  border-radius: 8px;
  touch-action: none;
  user-select: none;
}

.pf-compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pf-before-wrap {
  position: absolute;
  inset: 0;
  /* Covers the "after" image fully, even when the two differ in shape. */
  background: #050309;
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}

.pf-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 2px;
  background: var(--text);
  box-shadow: 0 0 12px rgb(0 0 0 / 0.6);
  transform: translateX(-1px);
  pointer-events: none;
}

.pf-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border: 2px solid var(--text);
  border-radius: 50%;
  background: rgb(7 5 12 / 0.7);
  transform: translate(-50%, -50%);
}

.pf-handle span::before {
  content: '‹ ›';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text);
  font: 700 16px/1 var(--font-body);
}

.pf-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.pf-tag {
  position: absolute;
  top: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgb(7 5 12 / 0.78);
  font: 600 0.75rem/1.4 var(--font-body);
  pointer-events: none;
}

.pf-tag-before {
  left: 12px;
}

.pf-tag-after {
  right: 12px;
}

.pf-nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgb(18 12 29 / 0.8);
  color: var(--text);
  cursor: pointer;
  transform: translateY(-50%);
}

.pf-nav:hover {
  border-color: var(--violet);
}

.pf-prev {
  left: 14px;
}

.pf-next {
  right: 14px;
}

.pf-nav svg,
.pf-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pf-info {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 64px 24px 24px;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: var(--bg-raise);
}

.pf-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.pf-close:hover {
  border-color: var(--violet);
}

.pf-position {
  position: absolute;
  top: 24px;
  left: 24px;
  margin: 0;
  color: var(--faint);
  font: 500 0.75rem/1 var(--font-mono);
}

.pf-title {
  font-size: 1.35rem;
  overflow-wrap: anywhere;
}

.pf-desc {
  margin: 0;
  color: var(--muted);
}

.pf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

/* The page-wide display rules (img, flex rows) would otherwise show hidden parts of the viewer. */
.pf-box [hidden] {
  display: none !important;
}

.pf-steps {
  display: grid;
  gap: 8px;
}

.pf-step-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.pf-step-row .pf-label {
  width: 3.5em;
  margin: 0;
}

.pf-step-row .pf-chip {
  min-height: 28px;
  padding: 2px 10px;
  font-size: 0.75rem;
}

.pf-chip:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.pf-prompt {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.pf-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 6px;
  color: var(--violet);
  font: 500 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pf-copy {
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 600 0.75rem/1.4 var(--font-body);
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.pf-copy:hover {
  border-color: var(--violet);
  color: var(--text);
}

.pf-prompt-text {
  margin: 0;
  color: var(--text);
  font: 400 0.875rem/1.5 var(--font-mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.pf-compression,
.pf-views {
  margin: 0;
  color: var(--faint);
  font-size: 0.8125rem;
}

.pf-compression b {
  color: var(--muted);
  font-weight: 600;
}

.pf-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.pf-actions .button {
  justify-content: center;
}

/* Download progress: a card over the viewer while the file comes down. */
.pf-dl {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: rgb(4 2 8 / 0.72);
  backdrop-filter: blur(6px);
  animation: pf-dl-in 180ms ease-out;
}

.pf-dl[hidden] {
  display: none;
}

.pf-dl-card {
  width: min(340px, 100%);
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.5), 0 0 0 1px var(--glow);
  text-align: center;
}

.pf-dl-thumb {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border-radius: 10px;
  object-fit: cover;
}

.pf-dl-title {
  margin: 0;
  font: 600 1rem/1.3 var(--font-display);
}

.pf-dl-note {
  margin: 6px 0 16px;
  color: var(--muted);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.pf-dl-bar {
  position: relative;
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--line);
}

.pf-dl-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet-strong), var(--violet));
  transition: width 120ms linear;
}

.pf-dl-bar.is-busy i {
  width: 35% !important;
  animation: pf-dl-busy 1.1s ease-in-out infinite;
}

.pf-dl.is-done .pf-dl-bar i {
  background: #5fd39a;
}

.pf-dl.is-done .pf-dl-title::before {
  content: '✓ ';
  color: #5fd39a;
}

@keyframes pf-dl-in {
  from {
    opacity: 0;
  }
}

@keyframes pf-dl-busy {
  from {
    left: -35%;
  }
  to {
    left: 100%;
  }
}

@media (max-width: 860px) {
  .pf-box[open] {
    grid-template-columns: 1fr;
    grid-template-rows: 62dvh auto;
    overflow-y: auto;
  }

  .pf-stage {
    padding: 12px 12px 0;
  }

  .pf-full,
  .pf-compare {
    max-height: calc(62dvh - 12px);
  }

  .pf-nav {
    width: 40px;
    height: 40px;
  }

  .pf-prev {
    left: 6px;
  }

  .pf-next {
    right: 6px;
  }

  .pf-info {
    padding-top: 56px;
    border-left: 0;
    border-top: 1px solid var(--line);
    overflow: visible;
  }

  .pf-row {
    flex-wrap: nowrap;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .pf-chip {
    flex-shrink: 0;
  }

  .pf-row-label {
    min-width: auto;
    flex-shrink: 0;
  }
}

@media (max-width: 640px) {
  .release {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .release-rail {
    display: flex;
    align-items: baseline;
    gap: 12px;
  }

  .history-filters {
    top: 62px;
  }
}

@media (max-width: 480px) {
  .mark img {
    width: 64px;
  }

  .site-head {
    gap: 8px;
  }

  .site-head nav {
    gap: 0;
  }

  .site-head nav > a,
  .nav-menu-button {
    padding: 6px 9px;
    font-size: 0.875rem;
  }

  /* Keep the menu on screen: line it up with the right edge. */
  .nav-menu-list {
    left: auto;
    right: -80px;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pf-dl,
  .pf-dl-bar.is-busy i,
  .nav-menu-list {
    animation: none;
  }

  .caret {
    animation: none;
  }

  .app-shot img {
    transition: none;
  }

  .eq i,
  .reel-eq i {
    animation: none;
  }
}

/* Home: the Featured Song mini player. */
.hs {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 32px);
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(135deg, rgb(42 18 80 / 0.45), var(--card) 60%);
}

.hs-cover {
  display: block;
  align-self: start;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-raise);
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.45);
}

.hs-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hs.is-playing .hs-cover {
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.45), 0 0 60px var(--glow);
}

.hs-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.hs-where {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.hs-title {
  margin: 0;
  font: 700 clamp(1.4rem, 3vw, 2rem) / 1.15 var(--font-display);
}

.hs-title a {
  color: inherit;
  text-decoration: none;
}

.hs-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hs-play {
  display: grid;
  flex: none;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--violet);
  color: var(--violet-ink);
  box-shadow: 0 8px 30px var(--glow);
  cursor: pointer;
}

.hs-play:hover {
  background: #b893ff;
}

.hs-play svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.hs-play .i-pause,
.hs.is-playing .hs-play .i-play {
  display: none;
}

.hs.is-playing .hs-play .i-pause {
  display: block;
}

.hs-seek {
  flex: 1;
  min-width: 0;
  accent-color: var(--violet);
}

.hs-time {
  flex: none;
  color: var(--faint);
  font: 400 0.8125rem/1 var(--font-mono);
}

.hs-lyrics {
  position: relative;
  height: 9.5em;
  overflow-y: auto;
  padding: 2px 4px;
  scrollbar-width: thin;
  mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
}

.hs-lyrics p {
  margin: 0;
}

.hs-lyrics .lyric-tag {
  margin-top: 10px !important;
}

.hs-lyrics .lyric-line {
  font-size: 1rem;
}

.hs-lyrics.is-synced .lyric-line {
  color: var(--faint);
  transition: color 200ms ease, text-shadow 200ms ease;
}

.hs-lyrics.is-synced .lyric-line.is-past {
  color: var(--muted);
}

.hs-lyrics.is-synced .lyric-line.is-now {
  color: var(--text);
  text-shadow: 0 0 22px rgb(166 124 255 / 0.65);
}

.hs-lyrics .lyric-line.is-timed {
  cursor: pointer;
}

.hs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

@media (max-width: 720px) {
  .hs {
    grid-template-columns: 1fr;
  }

  .hs-cover {
    width: min(260px, 100%);
    justify-self: center;
  }
}

/* Portfolio: three tall panels, each with a crossfading slideshow. */
.hub {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hub-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--card);
  color: inherit;
  text-decoration: none;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.hub-panel:hover,
.hub-panel:focus-visible {
  border-color: var(--violet);
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.45), 0 0 40px var(--glow);
  transform: translateY(-3px);
}

.hub-slides {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-raise);
}

.hub-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s ease, transform 7s ease-out;
}

.hub-slides img.is-on {
  opacity: 1;
  transform: scale(1);
}

.hub-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 22px;
}

.hub-title {
  font: 700 1.35rem/1.2 var(--font-display);
}

.hub-text {
  color: var(--muted);
}

.hub-stats {
  color: var(--faint);
  font: 400 0.8125rem/1.4 var(--font-mono);
}

.hub-cta {
  align-self: flex-start;
  margin-top: auto;
}

@media (max-width: 860px) {
  .hub {
    grid-template-columns: 1fr;
  }

  .hub-slides {
    aspect-ratio: 16 / 10;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-panel,
  .hub-slides img {
    transition: none;
  }
}

/* Cosmos: the subtle cosmic background on every page (markup in scripts/build.mjs,
   motion in src/cosmos.js). It sits behind everything. Everything that moves
   does so with transforms on its own layer (will-change), so scrolling and the
   slow drifts never repaint it; the script sets the parallax, and --energy
   (0-1, on the eye) comes from the music. */
.cosmos {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.cosmos-nebula {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.cosmos-nebula.n1 {
  top: -20vmax;
  left: -15vmax;
  width: 70vmax;
  height: 70vmax;
  background: radial-gradient(closest-side, rgb(96 40 190 / 0.22), transparent);
  animation: cosmos-drift-a 90s ease-in-out infinite alternate;
}

.cosmos-nebula.n2 {
  right: -20vmax;
  top: 25vh;
  width: 65vmax;
  height: 65vmax;
  background: radial-gradient(closest-side, rgb(138 92 245 / 0.14), transparent);
  animation: cosmos-drift-b 110s ease-in-out infinite alternate;
}

.cosmos-nebula.n3 {
  left: 20vw;
  bottom: -30vmax;
  width: 60vmax;
  height: 60vmax;
  background: radial-gradient(closest-side, rgb(42 18 80 / 0.5), transparent);
  animation: cosmos-drift-a 130s ease-in-out infinite alternate-reverse;
}

.cosmos-sky {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.cosmos-stars,
.cosmos-twinkle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Each tendril pair is a strip down its own edge (30vw wide, its viewBox a
   300-unit slice of the old 1000-unit screen), not a full-screen layer. */
.cosmos-tendrils {
  position: absolute;
  will-change: transform;
  top: 0;
  width: 30vw;
  height: 100%;
  fill: none;
  stroke: rgb(166 124 255 / 0.1);
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.cosmos-tendrils path {
  vector-effect: non-scaling-stroke;
}

.cosmos-tendrils path:nth-child(2) {
  stroke: rgb(166 124 255 / 0.06);
  stroke-width: 2;
}

.cosmos-tendrils.t-left {
  left: -5vw;
  transform-origin: 16.667% 100%;
  animation: cosmos-sway 26s ease-in-out infinite alternate;
}

.cosmos-tendrils.t-right {
  right: -5vw;
  transform-origin: 83.333% 100%;
  animation: cosmos-sway 31s ease-in-out infinite alternate-reverse;
}

.cosmos-eye {
  --energy: 0;
  position: absolute;
  top: 34vh;
  left: 50%;
  width: min(1100px, 125vmin);
  opacity: calc(0.07 + var(--energy) * 0.09);
  transform: translate(-50%, -50%);
  will-change: transform;
}

/* The eye's glow: a soft halo painted as a gradient on its own layer, not a
   blur filter (0.17.6: re-blurring the eye each time it wandered or blinked
   was the biggest cost while scrolling). It swells and brightens with music. */
.cosmos-halo {
  position: absolute;
  inset: 4% -3%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(166 124 255 / 0.55), rgb(166 124 255 / 0.22) 62%, rgb(166 124 255 / 0.06) 85%, transparent);
  opacity: calc(0.55 + var(--energy) * 0.45);
  transform: scale(calc(1 + var(--energy) * 0.12));
}

/* One layer for the whole eye (halo and drawing): separate layers under its
   faint opacity had to be blended off-screen every frame. */
.cosmos-eye-art {
  position: relative;
}

.cosmos-eye svg {
  display: block;
  width: 100%;
  height: auto;
}

.cosmos-ball {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 90ms ease-in;
}

.cosmos-eye.is-blinking .cosmos-ball {
  transform: scaleY(0.04);
}

.cosmos-iris {
  transition: transform 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* The slit pupil widens with the music. */
.cosmos-pupil {
  transform-box: fill-box;
  transform-origin: center;
  transform: scaleX(calc(1 + var(--energy) * 1.3));
}

/* Sections materialise out of the haze as they scroll into view (JS adds .fx). */
.fx .fx-haze {
  opacity: 0;
  filter: blur(5px);
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 550ms ease,
    filter 500ms ease,
    transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Ready each section's layer while it appears; the script adds .fx-done after. */
.fx .fx-haze.fx-in:not(.fx-done) {
  will-change: opacity, filter, transform;
}

.fx .fx-haze.fx-in {
  opacity: 1;
  filter: none;
  transform: none;
}

@keyframes cosmos-drift-a {
  to {
    transform: translate(8vmax, 6vmax) scale(1.12);
  }
}

@keyframes cosmos-drift-b {
  to {
    transform: translate(-10vmax, -5vmax) scale(0.92);
  }
}

@keyframes cosmos-sway {
  to {
    transform: rotate(2.5deg) scaleY(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cosmos-nebula,
  .cosmos-tendrils.t-left,
  .cosmos-tendrils.t-right {
    animation: none;
  }
}

/* App Portfolio: the enlarged preview viewer (src/apps.js); arrows and close
   share the image gallery's .pf-nav/.pf-close look. */
.app-shot.is-zoomable {
  cursor: zoom-in;
}

.app-shot.is-zoomable:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: -2px;
}

.ax-box {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(4 2 8 / 0.97);
  color: var(--text);
}

.ax-box[open] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.ax-box::backdrop {
  background: rgb(4 2 8 / 0.9);
}

.ax-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 24px 76px;
}

.ax-shot {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 48px);
  aspect-ratio: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgb(0 0 0 / 0.6), 0 0 60px var(--glow);
  object-fit: contain;
}

/* Scale the walkthrough up to fill the space (they're recorded at 720 px). */
@media (min-height: 700px) {
  .ax-shot {
    height: min(calc(100dvh - 48px), calc(100vw - 360px - 152px));
    width: auto;
  }
}

.ax-info {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 64px 24px 24px;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: var(--bg-raise);
}

.ax-info p,
.ax-info h2 {
  margin: 0;
}

.ax-position {
  color: var(--faint);
  font: 400 0.8125rem/1 var(--font-mono);
}

.ax-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--faint);
  font-size: 0.8125rem;
}

.ax-name {
  font: 700 1.5rem/1.2 var(--font-display);
}

.ax-actions .button {
  justify-content: center;
}

@media (max-width: 860px) {
  .ax-box[open] {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    overflow-y: auto;
  }

  .ax-stage {
    padding: 56px 12px 12px;
  }

  .ax-shot,
  .ax-box .ax-shot {
    width: 100%;
    height: auto;
    max-height: 70dvh;
  }

  .ax-stage .pf-nav {
    top: auto;
    bottom: 20px;
    transform: none;
  }

  .ax-info {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* App tiles: the name links to the project page, plus a "More About This App" link. */
.app h3 a {
  color: inherit;
  text-decoration: none;
}

.app h3 a:hover {
  color: var(--violet);
}

.app-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  color: var(--violet);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.app-more svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.app-more:hover svg {
  transform: translateX(3px);
}

.ax-media {
  display: contents;
}

/* An app's project page (/portfolio/apps/<app>/). */
.app-page {
  display: grid;
  gap: clamp(36px, 6vw, 64px);
}

.ap-back {
  margin: 0 0 -24px;
}

.ap-back a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.ap-back a:hover {
  color: var(--text);
}

.ap-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
}

.ap-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ap-hero-copy .page-title {
  margin: 0;
}

.ap-tagline {
  margin: 0;
  color: var(--violet);
  font-weight: 600;
  font-size: 1.2rem;
}

.ap-intro {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
}

.ap-actions {
  display: flex;
  flex-wrap: wrap;
}

.ap-shot {
  overflow: hidden;
  aspect-ratio: var(--shot-ratio, 1);
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 4px);
  background: var(--bg-raise);
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.5), 0 0 60px var(--glow);
}

.ap-shot video,
.ap-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ap-section h2,
.ap-facts h2 {
  margin: 0 0 16px;
  font: 700 clamp(1.3rem, 2.4vw, 1.6rem) / 1.2 var(--font-display);
}

.ap-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ap-feature {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.ap-feature h3 {
  margin: 0 0 6px;
  font: 700 1.05rem/1.3 var(--font-display);
}

.ap-feature p {
  margin: 0;
  color: var(--muted);
}

.ap-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.ap-steps li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: var(--muted);
  counter-increment: step;
}

.ap-steps li::before {
  content: counter(step);
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--violet-deep);
  color: var(--violet);
  font: 700 0.9rem/1 var(--font-display);
}

.ap-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 24px;
}

.ap-facts h2 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.ap-facts p {
  margin: 0;
  color: var(--muted);
}

.ap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ap-facts a {
  color: var(--violet);
}

@media (max-width: 860px) {
  .ap-hero {
    grid-template-columns: 1fr;
  }

  .ap-shot {
    order: -1;
  }
}

/* AI Videos: a band with the Facebook Reels and YouTube links (home and Portfolio page). */
.videos-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(70% 140% at 0% 0%, rgb(96 40 190 / 0.3), transparent 60%),
    var(--card);
}

.videos-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--violet-deep);
  color: var(--violet);
}

.videos-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.videos-copy {
  flex: 1 1 280px;
}

.videos-copy .eyebrow,
.videos-copy h2,
.videos-copy .section-lede {
  margin: 0;
}

.videos-copy h2 {
  margin: 4px 0 6px;
}

.videos-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hub-videos {
  margin-top: 18px;
}

/* The Privacy page. */
.privacy-text {
  max-width: 70ch;
}

.privacy-text h2 {
  margin: 32px 0 8px;
  font: 700 1.2rem/1.3 var(--font-display);
}

.privacy-text p {
  margin: 0 0 12px;
  color: var(--muted);
}

.privacy-text a {
  color: var(--violet);
}

.privacy-updated {
  margin-top: 32px !important;
  color: var(--faint) !important;
  font-size: 0.875rem;
}

/* The "page not found" page: a friendly line and the main places to go. */
.nf-text {
  margin: 0;
  color: var(--muted);
}

.nf-links {
  flex-wrap: wrap;
  justify-content: center;
}

.nf-home {
  margin: 0;
}

.nf-home a {
  color: var(--violet);
  font-weight: 600;
}

/* Commissions: the free-quote note and "How It Works" (Brief, Quote, Drafts, Final Files). */
.quote-note {
  margin: 14px 0 0;
}

.how {
  margin: clamp(36px, 6vw, 56px) 0;
}

.how h2 {
  margin: 0 0 16px;
  font: 700 clamp(1.3rem, 2.4vw, 1.6rem) / 1.2 var(--font-display);
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: how;
}

.how-steps li {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  counter-increment: how;
}

.how-steps li::before {
  content: counter(how);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 9px;
  background: var(--violet-deep);
  color: var(--violet);
  font: 700 0.9rem/1 var(--font-display);
}

.how-steps h3 {
  margin: 0 0 6px;
  font: 700 1.05rem/1.3 var(--font-display);
}

.how-steps p {
  margin: 0;
  color: var(--muted);
}

/* The App Portfolio's banner (the Image and Music Portfolios' look) and the
   line under it. */
.apps-lede {
  margin: 0 0 24px;
}
