/* === Afterhours portfolio — global styles ===================== */

:root {
  /* themed at runtime via React (data-theme + accent var) */
  --bg: #131c18;
  --fg: #e8e4dc;
  --muted: rgba(232, 228, 220, 0.55);
  --line: rgba(232, 228, 220, 0.10);
  --card: rgba(255, 255, 255, 0.025);
  --card-hi: rgba(255, 255, 255, 0.05);
  --accent: oklch(0.74 0.11 165);
  --accent-soft: oklch(0.74 0.11 165 / 0.16);
  --accent-ink: #131c18;
  --shape-1: oklch(0.74 0.11 165 / 0.28);
  --shape-2: oklch(0.68 0.09 20 / 0.20);
  --shape-3: oklch(0.55 0.06 200 / 0.14);

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "JetBrains Mono", monospace;

  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --motion: 1; /* tweak: 0..1 */
}

[data-theme="light"] {
  --bg: #c8dccf;
  --fg: #161e1a;
  --muted: rgba(22, 30, 26, 0.62);
  --line: rgba(22, 30, 26, 0.12);
  --card: rgba(22, 30, 26, 0.04);
  --card-hi: rgba(22, 30, 26, 0.08);
  --accent: oklch(0.40 0.10 165);
  --accent-soft: oklch(0.40 0.10 165 / 0.14);
  --accent-ink: #c8dccf;
  --shape-1: oklch(0.60 0.13 165 / 0.34);
  --shape-2: oklch(0.58 0.12 20 / 0.24);
  --shape-3: oklch(0.45 0.08 200 / 0.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

/* Subtle filmic noise overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  z-index: 9999;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

/* === Layout primitives === */

.shell {
  position: relative;
  z-index: 1;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section {
  position: relative;
  padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 64px);
  max-width: 1440px;
  margin: 0 auto;
}

.section-hd {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: clamp(28px, 4vw, 48px);
  flex-wrap: wrap;
}

.section-hd .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-hd .num::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--accent);
}

.section-hd h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 80px);
  letter-spacing: -0.025em;
  line-height: 0.95;
  margin: 0;
}

.section-hd h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.section-hd .sub {
  margin-left: auto;
  color: var(--muted);
  max-width: 320px;
  font-size: 14px;
  text-align: right;
  text-wrap: pretty;
}

/* === Background shapes (deconstructed) === */

.bg-shapes {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-shapes .shape {
  position: absolute;
  filter: blur(60px);
  opacity: 0.85;
}

.bg-shapes .shape.disc {
  width: 60vmin; height: 60vmin;
  border-radius: 50%;
  background: var(--shape-1);
  top: -20vmin; left: -10vmin;
  animation: drift1 calc(38s / max(var(--motion), 0.001)) ease-in-out infinite alternate;
}

.bg-shapes .shape.bar {
  width: 70vmin; height: 14vmin;
  background: var(--shape-2);
  top: 35%; right: -15vmin;
  transform: rotate(-18deg);
  border-radius: 6px;
  animation: drift2 calc(46s / max(var(--motion), 0.001)) ease-in-out infinite alternate;
}

.bg-shapes .shape.dot {
  width: 28vmin; height: 28vmin;
  border-radius: 50%;
  background: var(--shape-3);
  bottom: -8vmin; left: 38%;
  animation: drift3 calc(52s / max(var(--motion), 0.001)) ease-in-out infinite alternate;
}

.bg-shapes .grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 60% 20%, #000 0%, transparent 65%);
  opacity: 0.4;
}

@keyframes drift1 {
  0% { transform: translate3d(0,0,0); }
  100% { transform: translate3d(8vmin, 4vmin, 0); }
}
@keyframes drift2 {
  0% { transform: rotate(-18deg) translate3d(0,0,0); }
  100% { transform: rotate(-12deg) translate3d(-6vmin, -2vmin, 0); }
}
@keyframes drift3 {
  0% { transform: translate3d(0,0,0); }
  100% { transform: translate3d(-4vmin, -3vmin, 0); }
}

/* === Nav === */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 64px);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in oklch, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--line);
}

.nav .brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav .brand .pulse {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse calc(2.4s / max(var(--motion), 0.001)) ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--accent); }
  100% { box-shadow: 0 0 0 14px transparent; }
}

.nav .links {
  display: flex;
  gap: 22px;
  margin-left: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.nav .links a {
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav .links a:hover { color: var(--fg); }

.nav .right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: default;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.chip:hover { background: var(--card-hi); border-color: var(--fg); }

.chip.lang button {
  background: transparent;
  border: 0;
  padding: 0 4px;
  color: var(--muted);
  cursor: default;
}
.chip.lang button.active { color: var(--fg); }

/* === Hero === */

.hero {
  position: relative;
  padding: clamp(40px, 6vw, 90px) clamp(20px, 5vw, 64px) clamp(60px, 8vw, 120px);
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero .vinyl-wrap { order: -1; min-height: 320px; }
}

.hero .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-bottom: 28px;
}
.hero .meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero .meta span::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--fg);
  border-radius: 50%;
  opacity: 0.5;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  margin: 0;
}
.hero h1 .slash {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}

.hero .tag {
  margin-top: 24px;
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 1.45;
  max-width: 520px;
  color: var(--fg);
  text-wrap: pretty;
}

.hero .ctas {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: default;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--card-hi); border-color: var(--fg); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { background: var(--accent); filter: brightness(1.05); }
.btn .arr { display: inline-block; transition: transform 0.2s ease; }
.btn:hover .arr { transform: translateX(4px); }

/* === Vinyl 3D === */

.vinyl-wrap {
  position: relative;
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}

.vinyl {
  position: relative;
  width: clamp(260px, 32vw, 480px);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(0deg);
  animation: spin calc(8s / max(var(--motion), 0.001)) linear infinite;
}

.vinyl .disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at center,
      #1a1a1f 0%, #1a1a1f 18%,
      #0d0d10 19%, #0d0d10 22%,
      #1a1a1f 23%, #1a1a1f 26%,
      #0d0d10 27%, #0d0d10 30%,
      #1a1a1f 31%, #1a1a1f 36%,
      #0d0d10 37%, #0d0d10 40%,
      #1a1a1f 41%, #1a1a1f 46%,
      #0d0d10 47%, #0d0d10 52%,
      #1a1a1f 53%, #1a1a1f 60%,
      #0d0d10 61%, #0d0d10 65%,
      #1a1a1f 66%, #1a1a1f 100%);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.04) inset;
}
.vinyl .disc::before {
  /* highlight sweep */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(255,255,255,0.10) 30deg,
    transparent 80deg,
    transparent 180deg,
    rgba(255,255,255,0.06) 220deg,
    transparent 280deg
  );
  mix-blend-mode: screen;
}
.vinyl .label {
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.2) inset;
  padding: 8%;
  line-height: 1.2;
}
.vinyl .label .big {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.6vw, 22px);
  letter-spacing: -0.02em;
  text-transform: none;
  font-style: italic;
  font-weight: 700;
}
.vinyl .label .hole {
  width: 6%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bg);
  margin: 4% auto;
}

/* tone-arm */
.tonearm {
  position: absolute;
  top: 8%;
  right: 4%;
  width: clamp(140px, 22vw, 240px);
  height: 6px;
  background: linear-gradient(to right, #b8b8be, #6a6a72);
  border-radius: 3px;
  transform-origin: right center;
  transform: rotate(-20deg);
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  z-index: 3;
}
.tonearm::before {
  content: "";
  position: absolute;
  right: -12px;
  top: -8px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, #999, #444);
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}
.tonearm::after {
  content: "";
  position: absolute;
  left: -8px;
  top: -2px;
  width: 14px; height: 10px;
  background: var(--accent);
  border-radius: 2px;
}

@keyframes spin {
  to { transform: rotateX(58deg) rotateZ(360deg); }
}

/* EQ bars in hero */
.eq {
  position: absolute;
  bottom: 24px;
  left: 0;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 36px;
}
.eq i {
  display: inline-block;
  width: 4px;
  background: var(--accent);
  border-radius: 2px;
  animation: eq calc(0.9s / max(var(--motion), 0.001)) ease-in-out infinite;
}
.eq i:nth-child(1){ animation-delay: -0.1s; height: 60%; }
.eq i:nth-child(2){ animation-delay: -0.4s; height: 90%; }
.eq i:nth-child(3){ animation-delay: -0.7s; height: 40%; }
.eq i:nth-child(4){ animation-delay: -0.2s; height: 100%; }
.eq i:nth-child(5){ animation-delay: -0.5s; height: 50%; }
.eq i:nth-child(6){ animation-delay: -0.3s; height: 80%; }
.eq i:nth-child(7){ animation-delay: -0.6s; height: 30%; }

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

/* === About === */

.about-editorial {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
  position: relative;
}
@media (max-width: 900px) { .about-editorial { grid-template-columns: 1fr; } }

.about-lead {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0;
  text-wrap: pretty;
  color: var(--fg);
  position: relative;
}
.about-lead .drop {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.5em;
  line-height: 0.9;
  color: var(--accent);
  float: left;
  padding: 0.06em 0.12em 0 0;
  margin-right: 0.04em;
}

.about-aside {
  position: relative;
  padding-top: 6px;
}

.facts {
  margin: 0 0 28px;
  padding: 0 0 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.facts .fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.facts dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.015em;
  font-weight: 500;
}

.about-secondary {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 14px;
  color: var(--muted);
  text-wrap: pretty;
}

.aka {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.aka span {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* === Projects === */

.proj-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.proj-controls button {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: default;
  transition: all 0.2s ease;
}
.proj-controls button:hover { color: var(--fg); border-color: var(--fg); }
.proj-controls button.active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.projects {
  display: grid;
  gap: 22px;
}
.projects.layout-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.projects.layout-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.projects.layout-asym  { grid-template-columns: repeat(6, 1fr); }
.projects.layout-asym .card:nth-child(6n+1) { grid-column: span 4; }
.projects.layout-asym .card:nth-child(6n+2) { grid-column: span 2; }
.projects.layout-asym .card:nth-child(6n+3) { grid-column: span 3; }
.projects.layout-asym .card:nth-child(6n+4) { grid-column: span 3; }
.projects.layout-asym .card:nth-child(6n+5) { grid-column: span 2; }
.projects.layout-asym .card:nth-child(6n+6) { grid-column: span 4; }

@media (max-width: 1100px) {
  .projects.layout-grid3 { grid-template-columns: repeat(2, 1fr); }
  .projects.layout-asym  { grid-template-columns: 1fr 1fr; }
  .projects.layout-asym .card { grid-column: span 1 !important; }
}
@media (max-width: 700px) {
  .projects.layout-grid3, .projects.layout-grid2,
  .projects.layout-asym { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  padding: 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--card);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: default;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.card:hover {
  background: var(--card-hi);
  border-color: color-mix(in oklch, var(--fg) 35%, transparent);
}
.card .visual {
  flex: 1;
  border-radius: var(--r-md);
  background:
    radial-gradient(circle at 20% 30%, var(--accent-soft), transparent 60%),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 6px);
  border: 1px solid var(--line);
  min-height: 130px;
  position: relative;
  overflow: hidden;
}
.card .visual.waveform::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg,
      transparent 0 6px,
      var(--accent) 6px 8px,
      transparent 8px 18px,
      var(--fg) 18px 19px,
      transparent 19px 24px);
  mask-image: linear-gradient(180deg, transparent 30%, #000 30%, #000 70%, transparent 70%);
  opacity: 0.5;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.card h3 .yr {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.card .blurb {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-wrap: pretty;
}
.card .meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.card .meta .stack { display: flex; gap: 6px; flex-wrap: wrap; }
.card .meta .stack span {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.card .arrow {
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.card:hover .arrow {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  transform: rotate(-45deg);
}

/* === Stack === */

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.stack-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.stack-col ul {
  margin: 0; padding: 0; list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stack-col li {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.015em;
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.stack-col li:hover { color: var(--accent); }
.stack-col li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.stack-col li:hover::before { opacity: 1; }

/* === Experience === */

.timeline {
  display: flex;
  flex-direction: column;
}
.timeline .row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
  transition: padding 0.3s ease;
}
.timeline .row:last-child { border-bottom: 1px solid var(--line); }
.timeline .row:hover { padding-left: 12px; }
.timeline .yr {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.timeline .role {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.timeline .role .where {
  display: block;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--muted);
  margin-top: 2px;
}
.timeline .desc {
  max-width: 320px;
  text-align: right;
  font-size: 13px;
  color: var(--muted);
  text-wrap: pretty;
}
@media (max-width: 800px) {
  .timeline .row { grid-template-columns: 1fr; }
  .timeline .desc { text-align: left; max-width: none; }
}

/* === DJ Sets === */

.sets {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.sets .set {
  display: grid;
  grid-template-columns: 80px 1fr 1fr auto;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  position: relative;
  transition: background 0.2s ease;
}
.sets .set:hover {
  background: linear-gradient(90deg, var(--accent-soft), transparent 60%);
  padding-left: 12px;
}
.sets .day {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
}
.sets .day .mo {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.sets .venue {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.sets .city {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.sets .kind {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.sets .status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.sets .status.confirmed {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.sets .status.tentative { color: var(--muted); }
.sets .status.past { color: var(--muted); opacity: 0.75; }
@media (max-width: 800px) {
  .sets .set { grid-template-columns: 60px 1fr auto; }
  .sets .kind { display: none; }
  .sets .day { font-size: 32px; }
}

/* === Contact === */

.contact {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
}
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.contact .lead {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.contact .lead em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.contact .lead a {
  border-bottom: 2px solid var(--accent);
}

.contact .socials {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.contact .socials a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: padding 0.2s ease, color 0.2s ease;
}
.contact .socials a:hover { padding-left: 8px; color: var(--accent); }
.contact .socials a .h {
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

/* === Passions === */

.passions-intro {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  max-width: 640px;
  color: var(--muted);
  margin: -8px 0 28px;
  text-wrap: pretty;
}

.other-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1000px) { .other-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .other-grid { grid-template-columns: 1fr; } }

.passion-card {
  padding: 22px 22px 26px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  min-height: 180px;
  transition: background 0.2s ease, transform 0.3s ease;
}
.passion-card:hover { background: var(--card-hi); transform: translateY(-2px); }
.passion-card .passion-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.passion-card h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
}
.passion-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
  text-wrap: pretty;
}

/* === Footer === */

.foot {
  margin-top: 80px;
  padding: 40px clamp(20px, 5vw, 64px) 32px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}
.foot .grow { flex: 1; }
.foot .now {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.foot .now .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse calc(2s / max(var(--motion), 0.001)) ease-out infinite;
}

/* === 3D card tilt === */

.tilt-3d {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

/* utility */
.mono { font-family: var(--font-mono); }
.mute { color: var(--muted); }

/* === Timeline rows are now clickable === */

.timeline .row.clickable {
  cursor: pointer;
  position: relative;
}
.timeline .row.clickable .row-arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(8px, -50%);
  opacity: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.timeline .row.clickable:hover .row-arrow,
.timeline .row.clickable:focus-visible .row-arrow {
  opacity: 1;
  transform: translate(0, -50%);
}
.timeline .row.clickable:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}
@media (max-width: 800px) {
  .timeline .row.clickable .row-arrow { display: none; }
}

/* Card focus state (now also clickable) */
.card { cursor: pointer; }
.card:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

/* === Modal === */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: color-mix(in oklch, var(--bg) 40%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(20px, 5vh, 60px) clamp(16px, 4vw, 40px);
  overflow-y: auto;
  animation: modal-fade 0.18s ease-out;
}

@keyframes modal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 880px;
  margin: auto;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px color-mix(in oklch, var(--accent) 20%, transparent);
  overflow: hidden;
  animation: modal-pop 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes modal-pop {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0)     scale(1);     }
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: var(--fg);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.modal-close:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  transform: rotate(90deg);
}

.modal-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  background: var(--card-hi);
  overflow: hidden;
}
.modal-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-head {
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px) 0;
}
.modal-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.modal-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 64px 0 0;            /* room for close button */
  font-weight: 700;
}
.modal-subtitle {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.55;
  max-width: 60ch;
  text-wrap: pretty;
}
.modal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 22px;
}
.modal-chips .chip-stack {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
}
.modal-chips .chip-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.modal-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.modal-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.modal-cta .btn:hover {
  border-color: color-mix(in oklch, var(--fg) 35%, transparent);
  background: var(--card-hi);
}
.modal-cta .btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.modal-cta .btn.primary:hover {
  filter: brightness(1.06);
}
.modal-cta .btn .arr {
  font-family: var(--font-mono);
  font-size: 14px;
  opacity: 0.8;
}

.modal-body {
  padding: clamp(28px, 4vw, 40px) clamp(24px, 4vw, 48px) clamp(28px, 4vw, 48px);
}

.modal-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  margin: 0 0 36px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.modal-facts > div {
  padding: 4px 14px 4px 0;
}
.modal-facts dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.modal-facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
}

.modal-section {
  margin-bottom: 32px;
}
.modal-section:last-child { margin-bottom: 0; }
.modal-section h3 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.modal-section h3::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}
.modal-section p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg);
  text-wrap: pretty;
  max-width: 68ch;
}
.modal-section p:last-child { margin-bottom: 0; }

.modal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg);
  text-wrap: pretty;
  max-width: 68ch;
}
.modal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 10px;
  height: 1px;
  background: var(--accent);
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.modal-gallery figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--card-hi);
}
.modal-gallery img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.modal-gallery figcaption {
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.modal-empty {
  font-style: italic;
  color: var(--muted);
  padding: 24px 0;
  text-align: center;
  font-size: 15px;
}

@media (max-width: 600px) {
  .modal-panel { border-radius: var(--r-lg); }
  .modal-title { margin-right: 52px; }
  .modal-close { top: 14px; right: 14px; width: 34px; height: 34px; }
  .modal-facts { grid-template-columns: 1fr 1fr; }
}

/* === Responsive fixes ===================================================
   Consolidated mobile overrides for nav, hero, modal, footer, sections.
   Kept at end of file to override earlier rules without editing them. */

/* Nav — hide section anchors below 800px, compact right cluster */
@media (max-width: 800px) {
  .nav { gap: 12px; padding: 10px 16px; }
  .nav .links { display: none; }
  .nav .right { gap: 6px; }
  .nav .right .chip { padding: 5px 8px; font-size: 10px; }
}

/* Hero — kill equalizer bars on mobile (motion + space) */
@media (max-width: 700px) {
  .hero .eq { display: none; }
  .hero { padding: 24px 16px 48px; gap: 24px; }
  .hero .meta { gap: 8px 16px; margin-bottom: 18px; font-size: 10px; }
  .hero h1 { font-size: clamp(40px, 13vw, 96px); }
  .hero .tag { font-size: 15px; margin-top: 18px; }
  .hero .ctas { gap: 8px; margin-top: 22px; }
  .hero .ctas .btn { padding: 11px 16px; font-size: 11px; }
  .hero .vinyl-wrap { min-height: 240px; }
}

/* Section padding tighter on small */
@media (max-width: 600px) {
  .section { padding: 56px 16px; }
}

/* Modal — better mobile flow */
@media (max-width: 700px) {
  .modal-backdrop { padding: 14px 10px; }
  .modal-panel { border-radius: var(--r-lg); }
  .modal-head { padding: 28px 20px 0; }
  .modal-body { padding: 24px 20px 28px; }
  .modal-title { font-size: clamp(26px, 7.5vw, 36px); margin-right: 48px; }
  .modal-subtitle { font-size: 15px; margin-top: 14px; }
  .modal-cover { aspect-ratio: 16 / 9; }
  .modal-close { top: 12px; right: 12px; width: 34px; height: 34px; font-size: 18px; }
  .modal-facts { grid-template-columns: 1fr 1fr; gap: 14px 0; padding: 16px 0; margin-bottom: 24px; }
  .modal-facts dd { font-size: 15px; }
  .modal-section { margin-bottom: 24px; }
  .modal-section p, .modal-list li { font-size: 14px; }
  .modal-gallery { grid-template-columns: 1fr; }
  .modal-gallery img { height: 180px; }
  .modal-cta { gap: 8px; margin-top: 18px; }
  .modal-cta .btn { padding: 9px 14px; font-size: 12px; }
}
@media (max-width: 420px) {
  .modal-facts { grid-template-columns: 1fr; gap: 12px 0; }
}

/* Footer — stack on small */
@media (max-width: 600px) {
  .foot {
    margin-top: 48px;
    padding: 28px 16px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
  }
  .foot .grow { display: none; }
}

/* DJ sets — tighter rows on small screens */
@media (max-width: 600px) {
  .sets .set {
    grid-template-columns: 56px 1fr auto;
    gap: 12px;
    padding: 14px 0;
  }
  .sets .day { font-size: 26px; }
  .sets .day .mo { font-size: 10px; }
  .sets .venue { font-size: 15px; }
  .sets .city { font-size: 12px; }
  .sets .status { font-size: 9px; padding: 4px 8px; }
}

/* Project filter chips wrap properly */
@media (max-width: 600px) {
  .proj-controls { gap: 6px; flex-wrap: wrap; }
  .proj-controls button { padding: 6px 10px; font-size: 10px; }
}

/* Stack grid keeps min 1 col on tiny */
@media (max-width: 380px) {
  .stack-grid { grid-template-columns: 1fr; }
  .stack-col li { font-size: 18px; }
}

/* Reduce noise from heavy animations on small devices */
@media (max-width: 700px) {
  .bg-shapes { opacity: 0.5; }
}
