/* ==========================================================================
   Johannes Schulz (JONNY*) — portfolio
   Plain CSS, no build step. Colours, type and spacing live in the tokens below.
   ========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("../fonts/space-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens: dark theme is the default ---------- */
:root {
  --font-sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.1875rem;
  --step-2: clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem);
  --step-3: clamp(2.25rem, 1.35rem + 3.6vw, 4.25rem);

  --gutter: clamp(1rem, 0.4rem + 3vw, 3rem);
  --container: 76rem;
  --section-space: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --header-h: 4.5rem;
  --radius: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: dark;
  --bg: #0e0e0f;
  --bg-raised: #161618;
  --bg-hover: #202023;
  --band: rgba(255, 255, 255, 0.025);
  --line: #2a2a2e;
  --line-strong: #5f5f66;
  --text: #f2f0eb;
  --text-muted: #a8a6a0;
  --text-subtle: #8b8983;
  --brand: #e8ba2f;
  --brand-hover: #f2c94a;
  --on-brand: #111111;
  --accent-text: #e8ba2f;
  --focus: #e8ba2f;
  --ok: #4ade80;
  --danger: #f87171;
  --wave: #45454b;
  --wave-hover: #6c6c73;
  --wave-progress: #e8ba2f;
  --placeholder-bg: rgba(232, 186, 47, 0.18);
  --header-bg: rgba(14, 14, 15, 0.78);
  --np-bg: rgba(24, 24, 26, 0.88);
  --shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.65);
  --grain-opacity: 0.07;
}

/* Light theme ("concrete", like the press kit) */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ebebe8;
  --bg-raised: #f6f6f4;
  --bg-hover: #dfdfdb;
  --band: rgba(0, 0, 0, 0.035);
  --line: #d2d2cd;
  --line-strong: #85847f;
  --text: #111111;
  --text-muted: #52504b;
  --text-subtle: #64625d;
  --brand-hover: #d9a91c;
  --accent-text: #7a5700;
  --focus: #111111;
  --ok: #15803d;
  --danger: #b91c1c;
  --wave: #c4c3bd;
  --wave-hover: #9c9b95;
  --wave-progress: #111111;
  --placeholder-bg: rgba(232, 186, 47, 0.38);
  --header-bg: rgba(235, 235, 232, 0.82);
  --np-bg: rgba(246, 246, 244, 0.92);
  --shadow: 0 24px 50px -16px rgba(20, 20, 10, 0.28);
  --grain-opacity: 0.12;
}

/* Same light tokens when JavaScript is off and the system prefers light */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg: #ebebe8;
    --bg-raised: #f6f6f4;
    --bg-hover: #dfdfdb;
    --band: rgba(0, 0, 0, 0.035);
    --line: #d2d2cd;
    --line-strong: #85847f;
    --text: #111111;
    --text-muted: #52504b;
    --text-subtle: #64625d;
    --brand-hover: #d9a91c;
    --accent-text: #7a5700;
    --focus: #111111;
    --ok: #15803d;
    --danger: #b91c1c;
    --wave: #c4c3bd;
    --wave-hover: #9c9b95;
    --wave-progress: #111111;
    --placeholder-bg: rgba(232, 186, 47, 0.38);
    --header-bg: rgba(235, 235, 232, 0.82);
    --np-bg: rgba(246, 246, 244, 0.92);
    --shadow: 0 24px 50px -16px rgba(20, 20, 10, 0.28);
    --grain-opacity: 0.12;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

html.has-player {
  scroll-padding-bottom: 7rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html.has-player body {
  padding-bottom: 6.5rem;
}

/* Subtle film grain, echoing the concrete texture of the press kit */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

button {
  font: inherit;
  color: inherit;
}

strong {
  font-weight: 600;
}

cite {
  font-style: italic;
}

::selection {
  background: var(--brand);
  color: var(--on-brand);
}

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

/* ---------- Utilities ---------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
}

.ast {
  color: var(--accent-text);
}

.placeholder {
  background: var(--placeholder-bg);
  color: var(--text);
  border-radius: 3px;
  padding: 0 0.2em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.5rem;
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.badge--now {
  border: 0;
  background: var(--brand);
  color: var(--on-brand);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn .icon {
  width: 1.05rem;
  height: 1.05rem;
}

.btn--primary {
  background: var(--brand);
  color: var(--on-brand);
}

.btn--primary:hover {
  background: var(--brand-hover);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--text-muted);
  background: var(--bg-hover);
}

.btn--small {
  min-height: 2.75rem;
  padding: 0 1rem;
  font-size: 0.9375rem;
}

/* Simple, understated button (contact form) */
.btn--solid {
  background: var(--text);
  color: var(--bg);
}

.btn--solid:hover {
  background: var(--brand);
  color: var(--on-brand);
}

.btn:disabled {
  cursor: progress;
  opacity: 0.6;
}

.btn.is-loading {
  cursor: progress;
  opacity: 0.85;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.icon-btn:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.icon-btn .icon {
  width: 1.35rem;
  height: 1.35rem;
}

/* Play / pause state, shared by all play controls */
.icon--pause {
  display: none;
}

.is-playing > .icon--play {
  display: none;
}

.is-playing > .icon--pause {
  display: block;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  margin-right: auto;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand__mark {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--brand);
  transition: transform 0.5s var(--ease);
}

.brand:hover .brand__mark {
  transform: rotate(60deg);
}

.site-nav ul {
  display: flex;
  gap: 0.15rem;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--bg-hover);
}

.site-nav a.is-active {
  color: var(--text);
}

.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--brand);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Theme switch (role="switch", checked = dark) */
.theme-switch {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 2px;
  border: 0;
  border-radius: 999px;
  background: none;
  cursor: pointer;
}

.theme-switch__track {
  position: relative;
  display: block;
  width: 64px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-raised);
  transition: border-color 0.2s, background-color 0.3s;
}

.theme-switch:hover .theme-switch__track {
  border-color: var(--text-muted);
}

.theme-switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand);
  transition: transform 0.35s var(--ease);
}

:root[data-theme="dark"] .theme-switch__thumb {
  transform: translateX(30px);
}

.theme-switch__icon {
  position: absolute;
  top: 8px;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: color 0.3s;
}

.theme-switch__icon--sun {
  left: 8px;
}

.theme-switch__icon--moon {
  left: 38px;
}

:root[data-theme="light"] .theme-switch__icon--sun,
:root[data-theme="dark"] .theme-switch__icon--moon {
  color: var(--on-brand);
}

html:not(.js) .theme-switch,
html:not(.js) .menu-toggle {
  display: none;
}

@media (max-width: 1079px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    box-shadow: var(--shadow);
  }

  .menu-open .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    width: min(100% - 2 * var(--gutter), var(--container));
    margin-inline: auto;
    padding: 0.5rem 0 1.25rem;
  }

  .site-nav a {
    width: 100%;
    min-height: 56px;
    padding: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    color: var(--text);
    font-size: 1.375rem;
    font-weight: 600;
  }

  .site-nav a:hover {
    background: none;
    color: var(--accent-text);
  }

  .site-nav a.is-active::after {
    left: auto;
    right: 0;
    bottom: 50%;
    width: 8px;
    height: 8px;
    margin: 0 0 -4px;
  }
}

@media (min-width: 1080px) {
  .menu-toggle {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(2.5rem, 1.5rem + 4.5vw, 5.5rem);
  padding-bottom: clamp(3rem, 2rem + 3vw, 4.5rem);
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 2rem + 3vw, 4rem);
  align-items: end;
}

@media (min-width: 1000px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  }
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.95rem 0.45rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  flex: none;
  border-radius: 50%;
  background: var(--ok);
}

.hero__eyebrow {
  margin: 1.75rem 0 1rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__aka {
  color: var(--text-subtle);
  text-transform: lowercase;
}

.hero__title {
  font-size: clamp(3rem, 1.1rem + 6vw, 6.5rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.hero__line {
  display: block;
}

.hero__line--accent {
  color: var(--accent-text);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.045em;
}

.hero__lead {
  max-width: 38rem;
  margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  color: var(--text-muted);
  font-size: var(--step-1);
  line-height: 1.55;
  text-wrap: pretty;
}

.hero__lead strong {
  color: var(--text);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__portrait {
  width: 100%;
  max-width: 26rem;
}

@media (min-width: 1000px) {
  .hero__portrait {
    max-width: 32rem;
    justify-self: end;
  }
}

.hero__portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 6px solid var(--brand);
  background: #1c1c1e;
}

.hero__portrait figcaption,
.hero__wave-caption {
  margin-top: 0.75rem;
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0;
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__meta li:not(:last-child)::after {
  content: "/";
  margin: 0 1rem;
  color: var(--text-subtle);
}

.hero__wave {
  margin-top: 1.75rem;
}

.hero__wave-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--section-space);
  border-top: 1px solid var(--line);
}

.section--band {
  background: var(--band);
}

.section-head {
  display: grid;
  gap: 1rem;
  max-width: 50rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-label span {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-subtle);
}

.section-label span::after {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
}

.section-title {
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.section-intro {
  max-width: 42rem;
  color: var(--text-muted);
  font-size: var(--step-1);
  line-height: 1.55;
  text-wrap: pretty;
}

.mini-title {
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subhead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-bottom: 1rem;
}

.subhead--sets,
.subhead--process {
  margin-top: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
}

.subhead__note {
  color: var(--text-subtle);
  font-size: 0.9375rem;
}

/* ---------- 01 Highlights ---------- */
.stats {
  display: grid;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
  border-block: 1px solid var(--line);
}

.stat {
  padding: 1.75rem 1.5rem 1.75rem 0;
}

.stat + .stat {
  border-top: 1px solid var(--line);
}

/* Tablet: 2 × 2 */
@media (min-width: 700px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat + .stat {
    border-top: 0;
  }

  .stat:nth-child(even) {
    padding-left: 1.5rem;
    border-left: 1px solid var(--line);
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

/* Desktop: four in a row */
@media (min-width: 1080px) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .stat:nth-child(n + 3) {
    border-top: 0;
  }

  .stat + .stat {
    padding-left: 1.5rem;
    border-left: 1px solid var(--line);
  }
}

.stat__value {
  color: var(--accent-text);
  font-size: clamp(3rem, 1.6rem + 2.8vw, 4.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.05em;
}

.stat__label {
  max-width: 17rem;
  margin-top: 0.75rem;
  color: var(--text-muted);
}

.bento {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feat--hero,
  .feat--wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1080px) {
  .bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(13.5rem, auto);
  }

  .feat--hero {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
  }

  .feat--wide {
    grid-column: span 2;
  }
}

.feat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 12rem;
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.feat__tag {
  position: relative;
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.feat__title {
  position: relative;
  margin-top: auto;
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.feat__feat {
  color: var(--text-muted);
  font-size: 0.72em;
  font-weight: 400;
  letter-spacing: 0;
}

.feat__text {
  position: relative;
  color: var(--text-muted);
}

.feat--hero {
  border-color: transparent;
  background: var(--brand);
  color: var(--on-brand);
}

.feat--hero .feat__tag,
.feat--hero .feat__text {
  color: rgba(17, 17, 17, 0.78);
}

.feat--hero .feat__title {
  max-width: 12ch;
  font-size: clamp(2.25rem, 1.4rem + 3.2vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.feat--hero .feat__text {
  max-width: 30rem;
  font-size: var(--step-1);
}

.feat__mark {
  position: absolute;
  top: -3rem;
  right: -3rem;
  width: clamp(11rem, 8rem + 10vw, 17rem);
  height: clamp(11rem, 8rem + 10vw, 17rem);
  color: rgba(17, 17, 17, 0.09);
  transform: rotate(14deg);
}

.stages {
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
}

.stages__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.25rem;
  font-size: clamp(1.75rem, 0.9rem + 3.2vw, 3.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.stages__list li {
  display: inline-flex;
  align-items: center;
}

.stages__list li:nth-child(even) {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
}

.stages__list li:not(:last-child)::after {
  content: "";
  flex: none;
  width: 0.42em;
  height: 0.42em;
  margin: 0 0.32em;
  background: var(--brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg%3E%3Crect x='9.6' y='1' width='4.8' height='22' rx='1.2'/%3E%3Crect x='9.6' y='1' width='4.8' height='22' rx='1.2' transform='rotate(60 12 12)'/%3E%3Crect x='9.6' y='1' width='4.8' height='22' rx='1.2' transform='rotate(120 12 12)'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg%3E%3Crect x='9.6' y='1' width='4.8' height='22' rx='1.2'/%3E%3Crect x='9.6' y='1' width='4.8' height='22' rx='1.2' transform='rotate(60 12 12)'/%3E%3Crect x='9.6' y='1' width='4.8' height='22' rx='1.2' transform='rotate(120 12 12)'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- 02 Projects ---------- */
.projects {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.project {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.project--now {
  border-color: var(--brand);
}

.project__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project__name {
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
}

.project__text {
  font-size: var(--step-1);
  line-height: 1.5;
}

.project__list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
}

.project__list li::before {
  content: "";
  position: absolute;
  top: 1.2em;
  left: 0;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--brand);
}

.project__list cite {
  color: var(--text);
}

.project__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.pill:hover {
  border-color: var(--text-muted);
  background: var(--bg-hover);
}

.pill .icon {
  width: 1rem;
  height: 1rem;
}

/* A link that still needs to be added */
.pill--todo {
  border-style: dashed;
  background: var(--placeholder-bg);
  color: var(--text);
}

.pill--todo:hover {
  border-color: var(--brand);
  background: var(--placeholder-bg);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

.text-link:hover {
  color: var(--accent-text);
}

/* ---------- Photo interludes (studio, live) ---------- */
.interlude {
  padding-block: var(--section-space);
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.interlude__grid {
  display: grid;
  gap: clamp(2.5rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}

@media (min-width: 1000px) {
  .interlude__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }
}

.interlude__photo {
  position: relative;
  isolation: isolate;
  margin-right: 0.9rem;
}

/* Offset yellow frame behind the photo, echoing the press kit */
.interlude__photo::before {
  content: "";
  position: absolute;
  inset: 0.9rem -0.9rem -0.9rem 0.9rem;
  z-index: -1;
  border: 2px solid var(--brand);
  border-radius: var(--radius);
}

@media (min-width: 1000px) {
  .interlude__photo {
    margin-right: 1.5rem;
  }

  .interlude__photo::before {
    inset: 1.5rem -1.5rem -1.5rem 1.5rem;
  }
}

.interlude__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: #1c1c1e;
}

@media (min-width: 1000px) {
  .interlude__photo img {
    aspect-ratio: 5 / 4;
    object-position: 50% 60%;
  }
}

/* Live photo is landscape: a gentler crop on phones, the full frame on desktop */
.interlude__photo--live img {
  aspect-ratio: 4 / 3;
  object-position: 56% 50%;
}

@media (min-width: 1000px) {
  .interlude__photo--live img {
    aspect-ratio: 3 / 2;
  }

  /* Mirrored layout: photo on the right, frame offset to the left */
  .interlude--reverse .interlude__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  }

  .interlude--reverse .interlude__photo {
    order: 2;
    margin-right: 0;
    margin-left: 1.5rem;
  }

  .interlude--reverse .interlude__photo::before {
    inset: 1.5rem 1.5rem -1.5rem -1.5rem;
  }
}

.interlude__tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(14, 14, 15, 0.72);
  color: #f2f0eb;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.rec-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #ff453a;
}

.interlude__text {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.interlude__title {
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.interlude__text > p:not(.section-label) {
  max-width: 34rem;
  color: var(--text-muted);
  font-size: var(--step-1);
  line-height: 1.55;
}

.interlude__text > p.interlude__caption {
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- 03 Music: featured remix (YouTube loads only after a click) ---------- */
.feature-video {
  display: grid;
  gap: clamp(1.75rem, 1rem + 2.5vw, 3rem);
  margin-bottom: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
}

@media (min-width: 1000px) {
  .feature-video {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    align-items: center;
  }
}

.feature-video__info {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.feature-video__title {
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.feature-video__title span {
  display: block;
  color: var(--accent-text);
  font-weight: 300;
  font-style: italic;
}

.feature-video__meta {
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.feature-video__text {
  max-width: 28rem;
  color: var(--text-muted);
  font-size: var(--step-1);
  line-height: 1.55;
}

.feature-video__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Video area: stays dark like a screen in both themes */
.yt {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: #0b0b0c;
  box-shadow: var(--shadow);
}

.yt__poster {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background:
    radial-gradient(120% 120% at 12% 0%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 55%),
    radial-gradient(90% 90% at 100% 100%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 60%),
    #111112;
  color: #f2f0eb;
  cursor: pointer;
}

.yt__label {
  position: absolute;
  top: 1.1rem;
  left: 1.25rem;
  color: rgba(242, 240, 235, 0.8);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.yt__word {
  position: absolute;
  left: 1rem;
  bottom: -0.08em;
  color: transparent;
  font-size: clamp(4rem, 1rem + 12vw, 10rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  -webkit-text-stroke: 1.5px rgba(242, 240, 235, 0.35);
  pointer-events: none;
}

.yt__play {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 12px 40px color-mix(in srgb, var(--brand) 35%, transparent);
  transition: transform 0.25s var(--ease);
}

.yt__play .icon {
  width: 1.75rem;
  height: 1.75rem;
  transform: translateX(2px);
}

.yt__poster:hover .yt__play {
  transform: scale(1.07);
}

.yt__poster:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: -3px;
}

.yt__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.yt__note {
  margin-top: 0.75rem;
  color: var(--text-subtle);
  font-size: 0.8125rem;
}

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

/* Highlight card that links to the featured remix */
.feat--remix {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
}

.feat__link {
  position: relative;
  align-self: flex-start;
}

/* ---------- 03 Music: catalogue ---------- */
.tracks {
  border-top: 1px solid var(--line);
}

.track {
  border-bottom: 1px solid var(--line);
}

.track__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "play title time"
    "wave wave wave"
    "specs specs more";
  align-items: center;
  gap: 0.85rem 1rem;
  padding: 1.25rem 0;
}

.track__index {
  display: none;
  grid-area: index;
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: var(--step--1);
}

.track .play-btn {
  grid-area: play;
}

.track__title {
  grid-area: title;
  min-width: 0;
}

.track__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.6rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  transition: color 0.2s;
}

.track.is-current .track__name {
  color: var(--accent-text);
}

.track__sub {
  margin-top: 0.2rem;
  overflow: hidden;
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.track .wave {
  grid-area: wave;
}

.track__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  grid-area: specs;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.track__time {
  grid-area: time;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.track:not(.is-current) .track__cur,
.track:not(.is-current) .track__sep {
  display: none;
}

.track__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  grid-area: more;
  justify-self: end;
  min-height: 44px;
  padding: 0 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

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

.track__more .icon {
  transition: transform 0.25s var(--ease);
}

.track__more[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}

.track__details {
  padding: 0 0 1.75rem;
}

.track__details:not([hidden]) {
  animation: drop-in 0.3s var(--ease);
}

.track__error {
  grid-column: 1 / -1;
  color: var(--danger);
  font-size: 0.9375rem;
}

@media (min-width: 1080px) {
  .track__head {
    grid-template-columns: 2rem 3rem minmax(11rem, 1fr) minmax(0, 2fr) 6.5rem 6rem auto;
    grid-template-areas: "index play title wave specs time more";
    gap: 0 1.25rem;
    padding: 1rem 0;
  }

  .track__index {
    display: block;
  }

  .track__specs {
    flex-direction: column;
    gap: 0.1rem;
  }

  .track__time {
    text-align: right;
  }

  .track__details {
    padding-left: calc(2rem + 3rem + 2.5rem);
  }
}

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.25rem 2rem;
}

.specs dt,
.facts dt,
.brief dt {
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.specs dd,
.facts dd {
  margin-top: 0.3rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  padding: 0.15rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Play button */
.play-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  flex: none;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.play-btn:hover {
  border-color: var(--text);
}

.play-btn:active {
  transform: scale(0.94);
}

.play-btn .icon {
  grid-area: 1 / 1;
  width: 1.1rem;
  height: 1.1rem;
}

.play-btn .icon--play {
  transform: translateX(1px);
}

.play-btn.is-playing {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--on-brand);
}

.play-btn.is-loading::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 2px solid transparent;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.play-btn--small {
  width: 2.75rem;
  height: 2.75rem;
}

/* Waveform (also a seek slider) */
.wave {
  position: relative;
  height: 3rem;
  cursor: pointer;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

.wave:focus-visible {
  outline-offset: 5px;
}

.wave__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.wave__layer--base {
  fill: var(--wave);
  transition: opacity 0.3s;
}

.wave__layer--hover {
  fill: var(--wave-hover);
  opacity: 0;
  clip-path: inset(0 calc(100% - var(--hover, 0%)) 0 0);
  transition: opacity 0.15s;
}

.wave.is-hovering .wave__layer--hover {
  opacity: 1;
}

.wave__layer--progress {
  fill: var(--wave-progress);
  clip-path: inset(0 calc(100% - var(--progress, 0%)) 0 0);
}

.wave.is-pending .wave__layer--base {
  opacity: 0.5;
}

.wave--hero {
  height: clamp(3.5rem, 2rem + 4vw, 6rem);
  cursor: default;
  pointer-events: none;
}

/* ---------- 03 Music: sets ---------- */
.sets {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}

.set {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  min-height: 11.5rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}

.set:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
}

.set__platform {
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.set__title {
  margin-top: auto;
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

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

.set__icon {
  position: absolute;
  top: 1.35rem;
  right: 1.35rem;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--text-subtle);
  transition: color 0.2s, transform 0.2s var(--ease);
}

.set:hover .set__icon {
  color: var(--accent-text);
  transform: translate(2px, -2px);
}

.set--spotify {
  background: var(--bg);
}

/* ---------- 04 Sync ---------- */
.case {
  display: grid;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
}

@media (min-width: 1000px) {
  .case {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: start;
  }
}

.case__kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case__title {
  margin: 0.5rem 0 1.25rem;
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.video-placeholder {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.75rem;
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: repeating-linear-gradient(-45deg, transparent 0 12px, var(--bg-hover) 12px 13px);
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-placeholder .icon {
  width: 2.25rem;
  height: 2.25rem;
}

.case__media video {
  width: 100%;
  border-radius: var(--radius);
}

.case__note {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  margin-top: 1.75rem;
}

.brief {
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.brief__title {
  margin-bottom: 0.5rem;
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brief__list > div {
  display: grid;
  grid-template-columns: minmax(7rem, 38%) 1fr;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px dashed var(--line);
}

.brief__list dd {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
}

.case__text h4 {
  margin: 2rem 0 0.5rem;
  font-size: var(--step-1);
  font-weight: 700;
}

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

.checklist li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
}

.checklist .icon {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--accent-text);
}

.steps {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

@media (min-width: 700px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.step {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 14rem;
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  background: var(--bg);
}

.step__no {
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: var(--step--1);
}

.step h4 {
  margin-top: auto;
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

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

/* ---------- 05 About ---------- */
.about {
  display: grid;
  gap: clamp(2.5rem, 1rem + 4vw, 5rem);
}

@media (min-width: 1000px) {
  .about {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  .about__aside {
    position: sticky;
    top: calc(var(--header-h) + 3rem);
  }
}

.pullquote::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.5rem;
  background: var(--brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg%3E%3Crect x='9.6' y='1' width='4.8' height='22' rx='1.2'/%3E%3Crect x='9.6' y='1' width='4.8' height='22' rx='1.2' transform='rotate(60 12 12)'/%3E%3Crect x='9.6' y='1' width='4.8' height='22' rx='1.2' transform='rotate(120 12 12)'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg%3E%3Crect x='9.6' y='1' width='4.8' height='22' rx='1.2'/%3E%3Crect x='9.6' y='1' width='4.8' height='22' rx='1.2' transform='rotate(60 12 12)'/%3E%3Crect x='9.6' y='1' width='4.8' height='22' rx='1.2' transform='rotate(120 12 12)'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

.pullquote p {
  color: var(--accent-text);
  font-size: clamp(2.25rem, 1.4rem + 3.2vw, 4.25rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.about__years {
  margin-top: 2rem;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about__years span {
  display: block;
  color: var(--text-subtle);
}

.prose {
  display: grid;
  gap: 1.1rem;
  max-width: 42rem;
  color: var(--text-muted);
  font-size: var(--step-1);
  line-height: 1.6;
}

.prose strong {
  color: var(--text);
}

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 2rem;
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.skills ul {
  margin-top: 0.75rem;
}

.skills li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
}

/* ---------- 06 Contact ---------- */
.contact__title {
  max-width: 13ch;
  margin: 1.25rem 0 2.5rem;
  font-size: clamp(2.75rem, 1rem + 6.4vw, 6.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.contact__intro {
  max-width: 30rem;
  color: var(--text-muted);
  font-size: var(--step-1);
  line-height: 1.55;
  text-wrap: pretty;
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.contact__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.contact__links a:hover {
  border-color: var(--text-muted);
  background: var(--bg-hover);
}

.contact__grid {
  display: grid;
  gap: clamp(3rem, 2rem + 3vw, 4.5rem);
}

@media (min-width: 1000px) {
  .contact__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

/* Contact form: quiet underline fields, visible labels */
.contact-form {
  display: grid;
  gap: 1.5rem;
}

.contact-form__row {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 560px) {
  .contact-form__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field {
  display: grid;
  gap: 0.3rem;
}

.field__label {
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.field:focus-within .field__label {
  color: var(--accent-text);
}

.field__input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field__input:hover {
  border-bottom-color: var(--text-muted);
}

.field__input:focus,
.field__input:focus-visible {
  outline: none;
  border-bottom-color: var(--focus);
  box-shadow: 0 1px 0 var(--focus);
}

.field__input--area {
  min-height: 7.5rem;
  line-height: 1.5;
  resize: vertical;
}

.field__input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  transition: background-color 100000s;
}

.field.is-invalid .field__input {
  border-bottom-color: var(--danger);
  box-shadow: 0 1px 0 var(--danger);
}

.field__error {
  color: var(--danger);
  font-size: 0.875rem;
}

.field__error:empty,
.contact-form__status:empty {
  display: none;
}

.contact-form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.25rem;
}

.contact-form__note {
  max-width: 20rem;
  color: var(--text-subtle);
  font-size: 0.875rem;
}

.contact-form__note a:hover {
  color: var(--text);
}

.contact-form__status {
  font-size: 0.9375rem;
}

.contact-form__status.is-success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-raised);
}

.contact-form__status.is-success::before {
  content: "";
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  background: var(--accent-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.contact-form__status.is-error {
  color: var(--danger);
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 2.5rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  text-decoration: none;
}

.to-top:hover {
  color: var(--text);
}

.legal {
  border-top: 1px solid var(--line);
}

.legal__item {
  border-bottom: 1px solid var(--line);
}

.legal summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.legal summary::-webkit-details-marker {
  display: none;
}

.legal summary:hover {
  color: var(--text);
}

.legal summary .icon {
  transition: transform 0.25s var(--ease);
}

.legal__item[open] summary .icon {
  transform: rotate(180deg);
}

.legal__content {
  max-width: 46rem;
  padding-bottom: 1.5rem;
}

.legal__content h3 {
  margin: 1rem 0 0.25rem;
  color: var(--text);
  font-size: 1rem;
}

.legal__content p + p {
  margin-top: 0.75rem;
}

/* Privacy policy (text from datenschutz-generator.de) */
.legal__content--privacy {
  line-height: 1.6;
}

.legal__content--privacy h3 {
  margin: 2rem 0 0.5rem;
  font-size: 1.0625rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.legal__content--privacy h4 {
  margin: 1.25rem 0 0.4rem;
  color: var(--text);
  font-size: 0.9375rem;
}

.legal__content--privacy ul {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.legal__content--privacy li + li {
  margin-top: 0.35rem;
}

.legal__content--privacy strong {
  color: var(--text);
}

.legal__content--privacy a {
  overflow-wrap: anywhere;
}

.legal__content--privacy ul.index {
  padding-left: 0;
  list-style: none;
}

@media (min-width: 700px) {
  .legal__content--privacy ul.index {
    columns: 2;
    column-gap: 2rem;
  }
}

.legal__content--privacy .seal {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
}

/* ---------- Mini player ---------- */
.now-playing {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.75rem;
  width: min(100% - 2rem, 46rem);
  padding: 0.6rem 0.5rem 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--np-bg);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  opacity: 0;
  transform: translate(-50%, calc(100% + 2rem));
  transition: transform 0.45s var(--ease), opacity 0.3s;
}

.now-playing.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.now-playing__main {
  display: grid;
  min-width: 0;
}

.now-playing__top {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  min-width: 0;
}

.now-playing__label {
  flex: none;
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.now-playing__title {
  min-width: 0;
  overflow: hidden;
  font-weight: 600;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.now-playing__title:hover {
  text-decoration: underline;
}

.now-playing__progress {
  position: relative;
  height: 24px;
  cursor: pointer;
  touch-action: none;
}

.now-playing__progress::before,
.now-playing__fill {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  height: 4px;
  margin-top: -2px;
  border-radius: 2px;
}

.now-playing__progress::before {
  right: 0;
  background: var(--wave);
}

.now-playing__fill {
  width: var(--progress, 0%);
  background: var(--wave-progress);
}

.now-playing__fill::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -6px;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--wave-progress);
  opacity: 0;
  transition: opacity 0.15s;
}

.now-playing__progress:hover .now-playing__fill::after,
.now-playing__progress:focus-visible .now-playing__fill::after,
.now-playing__progress.is-dragging .now-playing__fill::after {
  opacity: 1;
}

.now-playing__time {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .now-playing__label {
    display: none;
  }
}

/* ---------- Motion ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

@keyframes drop-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent);
  }
  70%,
  100% {
    box-shadow: 0 0 0 8px transparent;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .js .hero__intro > *,
  .js .hero__portrait {
    animation: rise 0.8s var(--ease) both;
  }

  .js .hero__intro > :nth-child(2) { animation-delay: 0.05s; }
  .js .hero__intro > :nth-child(3) { animation-delay: 0.1s; }
  .js .hero__intro > :nth-child(4) { animation-delay: 0.16s; }
  .js .hero__intro > :nth-child(5) { animation-delay: 0.22s; }
  .js .hero__portrait { animation-delay: 0.18s; }

  .status-dot {
    animation: pulse 2.4s ease-out 6;
  }

  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* Theme change: circular reveal from the switch (see main.js) */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
