/* =========================================================
   RON — Sound Design & Editing
   Design tokens
   ========================================================= */
:root {
  --bg:          #090d14;
  --bg-panel:    #10161f;
  --bg-panel-2:  #161e2b;
  --border:      #26324580;
  --border-soft: #1c2635;
  --text:        #e9eef4;
  --text-dim:    #93a1b5;
  --text-faint:  #5c6a80;
  --accent:      #e8a33d;   /* VU-meter amber */
  --accent-dim:  #b9812f;
  --accent-2:    #49c9b8;   /* waveform teal */

  --font-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'Space Mono', 'Courier New', monospace;

  --max-w: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -10%, #132038 0%, transparent 60%),
    radial-gradient(ellipse 700px 400px at 100% 0%, #14263a 0%, transparent 55%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

::selection { background: var(--accent); color: #10161f; }

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

/* =========================================================
   Layout helpers
   ========================================================= */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.tc {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--text-faint);
}

/* =========================================================
   Nav — styled like a console strip
   ========================================================= */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 13, 20, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.wordmark span.role {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text-faint);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 17px;
  padding: 8px 14px;
  border-radius: 3px;
  position: relative;
  transition: color 0.15s ease;
}

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

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

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border-soft);
    flex-direction: column;
    padding: 8px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle { display: block; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding: 96px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero .tc {
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero .tc .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px #e8a33d22;
}

h1.hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.04;
  font-weight: 600;
  margin: 0 0 24px;
  max-width: 780px;
  letter-spacing: -0.01em;
}

.hero-lede {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 0 40px;
}

.waveform {
  width: 100%;
  height: 92px;
  margin: 8px 0 44px;
}

.waveform rect {
  fill: var(--accent-2);
  opacity: 0.55;
}

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #14100a;
}
.btn-primary:hover { background: #f0ae4d; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent-dim); transform: translateY(-1px); }

/* =========================================================
   Sections / panels
   ========================================================= */
section { padding: 64px 0; }

/* =========================================================
   Home page — credits poster wall
   ========================================================= */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
}

.poster-card {
  aspect-ratio: 2 / 3;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: border-color 0.15s ease;
}
.poster-card:hover { border-color: var(--accent-dim); }

.poster-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 3px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 18px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  margin: 0;
}

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 28px;
}

/* Placeholder boxes for images/media the user will replace */
.placeholder {
  border: 1.5px dashed var(--border);
  border-radius: 6px;
  background: var(--bg-panel-2);
  color: var(--text-faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  font-size: 13.5px;
  padding: 20px;
}

.placeholder .icon { font-size: 26px; opacity: 0.7; margin-bottom: 4px; }
.placeholder strong { color: var(--text-dim); font-weight: 500; font-size: 14px; }

/* =========================================================
   About page
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

.about-photo { width: 100%; height: auto; border-radius: 6px; }

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

.bio-copy p { color: var(--text-dim); margin: 0 0 18px; }
.bio-copy p:first-child { color: var(--text); font-size: 17.5px; }

/* =========================================================
   Credits page — styled like a cue sheet
   ========================================================= */
.cue-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.cue-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  font-weight: 400;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.cue-table td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-dim);
  vertical-align: top;
}

.cue-table td.title-cell { color: var(--text); font-weight: 500; }

.cue-table tr:last-child td { border-bottom: none; }

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  border: 1px solid #e8a33d40;
  background: #e8a33d14;
  padding: 3px 8px;
  border-radius: 3px;
}

.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  background: transparent;
  padding: 7px 13px;
  border-radius: 20px;
  cursor: pointer;
}
.filter-chip.active, .filter-chip:hover { color: var(--text); border-color: var(--accent-dim); }

/* =========================================================
   Examples page — media grid + lightbox
   ========================================================= */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

/* Direct video embeds (no title/role caption) */
.video-embed {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: #000;
}

.video-embed iframe,
.video-embed video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #000;
  object-fit: contain;
}

/* Optional caption, hidden by default — add class "show" on
   .video-caption in examples.html if titles/roles are wanted later */
.video-caption {
  display: none;
  padding: 12px 2px 0;
}
.video-caption.show { display: block; }
.video-caption h3 { font-size: 15px; margin: 0 0 4px; font-weight: 500; }
.video-caption p { margin: 0; font-size: 13px; color: var(--text-faint); }

.example-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.example-card:hover { border-color: var(--accent-dim); }

.example-thumb {
  aspect-ratio: 16 / 9;
  position: relative;
  background: var(--bg-panel-2);
}

.play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-badge .circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(9,13,20,0.72);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}
.example-card:hover .circle { transform: scale(1.08); background: rgba(232,163,61,0.9); }
.example-card:hover .circle svg { fill: #14100a; }

.example-meta { padding: 16px 18px 20px; }
.example-meta h3 { font-size: 15.5px; margin: 0 0 6px; font-weight: 500; }
.example-meta p { margin: 0; font-size: 13px; color: var(--text-faint); }

/* Lightbox modal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 12, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.lightbox.open { display: flex; }

.lightbox-inner {
  width: 100%;
  max-width: 900px;
}

.lightbox-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.lightbox-frame video, .lightbox-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.lightbox-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 14px;
}

.lightbox-close {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

/* Three-up media row (Examples page, below the blue-texture section) */
.media-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 56.25%;
  margin: 0 auto;
}

.media-card {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: #000;
}

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

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

/* =========================================================
   Contact page
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 560px;
}

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-size: 15px;
  color: var(--text-faint);
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.field input, .field textarea {
  width: 100%;
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
}

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-dim);
}

.field textarea { resize: vertical; min-height: 130px; }

.contact-side .panel + .panel { margin-top: 18px; }
.contact-side h3 {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text-faint);
  margin: 0 0 10px;
  font-weight: 400;
}
.contact-side p { margin: 0; color: var(--text); font-size: 15px; }
.contact-side a { color: var(--accent); text-decoration: none; }
.contact-side a:hover { text-decoration: underline; }

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* =========================================================
   Footer
   ========================================================= */
footer {
  border-top: 1px solid var(--border-soft);
  padding: 32px 0 48px;
  margin-top: 40px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
footer .tc { margin: 0; }
