/* ===== Tokens ===== */
:root {
  /* Palette ramp â€” lightest to darkest */
  --tone-1: #446074;
  --tone-2: #3B5465;
  --tone-3: #334857;
  --tone-4: #2A3C48;
  --tone-5: #22303A;
  --tone-6: #19242B;
  --tone-7: #11181D;
  --tone-8: #080C0E;
  --tone-9: #000000;

  /* Structural roles */
  --bg: var(--tone-9);
  --surface: var(--tone-7);
  --surface-raised: var(--tone-6);
  --line: var(--tone-5);
  --line-strong: var(--tone-4);

  /* Accent roles â€” hierarchy through lightness, not hue */
  --accent: var(--tone-1);
  --accent-dim: var(--tone-2);
  --accent-muted: var(--tone-3);

  /* Text â€” kept off-ramp for legibility, tuned to the same cool hue */
  --text: #E4E8EA;
  --text-dim: #94A1A8;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --container: 1100px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

h1, h2, h3 { font-family: var(--font-display); margin: 0; }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 64px);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav__mark {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--accent);
  border: 1px solid var(--line);
  padding: 4px 9px;
  border-radius: 2px;
}

.nav__links {
  display: flex;
  gap: clamp(14px, 3vw, 32px);
}

.nav__links a {
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}

.nav__links a:hover,
.nav__links a:focus-visible { color: var(--text); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: clamp(64px, 12vw, 140px) clamp(20px, 5vw, 64px) clamp(80px, 14vw, 160px);
  min-height: clamp(420px, 60vw, 620px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: var(--surface);
  background-size: cover;
  background-position: center;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.85) 70%, var(--bg) 100%);
}

.hero__grid {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 20px;
}

.hero__title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  max-width: 16ch;
  letter-spacing: -0.01em;
}

.hero__sub {
  max-width: 46ch;
  color: var(--text-dim);
  font-size: 1.05rem;
  margin: 28px 0 36px;
}

.hero__cta {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 12px 20px;
  border-radius: 2px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.hero__cta:hover,
.hero__cta:focus-visible { border-color: var(--accent); color: var(--accent); }

/* ===== Sections ===== */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 110px) clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line-strong);
}

.section__head { margin-bottom: 40px; max-width: 60ch; }

.section__tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--accent-dim);
  margin: 0 0 12px;
}

.section__title {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 600;
  margin-bottom: 10px;
}

.section__note { color: var(--text-dim); margin: 0; }

.section__footnote {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 20px;
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card-grid--two { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 18px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover { border-color: var(--accent-dim); transform: translateY(-2px); }

.card__embed {
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: 2px;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  overflow: hidden;
}

.card__embed iframe { width: 100%; height: 100%; border: 0; }

.card__embed--audio {
  aspect-ratio: unset;
  border: none;
  background: none;
}

.placeholder {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-align: center;
  padding: 0 12px;
}

.card__title { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }

.card__meta { color: var(--text-dim); font-size: 0.9rem; margin: 0; }

/* ===== Feature (short film) ===== */
.feature {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 20px;
  margin-bottom: 32px;
}

.feature__embed {
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: 2px;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.feature__embed iframe { width: 100%; height: 100%; border: 0; }

.feature__body { display: flex; flex-direction: column; justify-content: center; }

.feature__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 10px;
}

.reel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.reel-slot {
  aspect-ratio: 9/16;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Dashed outline only while it's still an empty placeholder â€”
   disappears automatically once a real embed replaces the <p class="placeholder"> */
.reel-slot:has(.placeholder) {
  border: 1px dashed var(--line);
}

.reel-slot iframe, .reel-slot video { width: 100%; height: 100%; border: 0; object-fit: cover; }

/* ===== Media list (Recording, and anything else that wants a clean, uncarded entry) ===== */
.media-list {
  display: flex;
  flex-direction: column;
}

.media-entry {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.media-entry:first-child { border-top: none; }

.media-entry__embed {
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-entry__embed:has(.placeholder) {
  border: 1px dashed var(--line);
  border-radius: 2px;
}

.media-entry__embed--audio { aspect-ratio: unset; }

.media-entry__embed iframe { width: 100%; height: 100%; border: 0; }

.media-entry__body { max-width: 60ch; }

/* ===== DSP projects ===== */
.project-list {
  display: flex;
  flex-direction: column;
}

.project {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.project:first-child { border-top: none; }

.project__index {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent-dim);
}

.project--upcoming .project__index { color: var(--text-dim); }

.tag-row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 2px;
}

/* ===== About ===== */
.about__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
}

.about__bio { color: var(--text-dim); max-width: 60ch; }

.about__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.contact__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--accent-dim);
  margin: 0 0 6px;
}

.contact__link {
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.contact__link:hover, .contact__link:focus-visible { color: var(--accent); }

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 32px 20px 48px;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

/* ===== Focus visibility ===== */
a:focus-visible, .card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== Scroll reveal ===== */
.section, .hero { opacity: 1; }
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .card-grid, .card-grid--two { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .reel-grid { grid-template-columns: repeat(3, 1fr); }
  .about__grid { grid-template-columns: 1fr; }
  .about__contact { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .nav__links { gap: 14px; }
  .project { grid-template-columns: 40px 1fr; }
}

@media (max-width: 520px) {
  .nav__links a { font-size: 0.75rem; }
  .reel-grid { grid-template-columns: repeat(2, 1fr); }
}
