:root {
  --heading: 'Libertinus Math', Georgia, serif;
  --body: 'League Spartan', system-ui, sans-serif;
  --bg: #f3f1ef;
  --surface: #e8e3d5;
  --text: #1c1a16;
  --text-dim: #47433b;
  --warm: #8d6d35;
  --warm-faint: rgba(193, 168, 124, 0.1);
}

:root[data-theme="dark"] {
  --bg: #09090a;
  --surface: #131316;
  --text: #babdc4;
  --text-dim: #7b7e84;
  --warm: #C1A87C;
  --warm-faint: rgba(173, 156, 126, 0.134);
}

:root[data-theme="light"] {
  --bg: #f3f1ef;
  --surface: #e8e3d5;
  --text: #1c1a16;
  --text-dim: #47433b;
  --warm: #8d6d35;
  --warm-faint: rgba(193, 168, 124, 0.346);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 300;
  font-size: 20px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
}

a { color: var(--text); text-decoration: none; }

/* ---------- NAV ---------- */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.4rem 2.5rem;
  background: var(--surface);
  height: 5.7rem;
  transition: background 0.4s ease;
}

.site-name, site-name a {
  font-family: var(--heading);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

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

.site-nav.open {
  display: none;
  border-top: 1px var(--warm-faint) solid;
  transition: background 0.4s ease;
}

.site-nav a, .back-link {
  font-size: 0.95rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  transition: color 0.25s;
}
.site-nav a { font-weight: 400; }
.site-nav a:hover, .back-link:hover { color: var(--text); }

.menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  width: 24px; height: 18px; position: relative;
}
.menu-btn span {
  display: block; width: 100%; height: 1px; background: var(--text);
  position: absolute; left: 0; transition: 0.3s;
}
.menu-btn span:nth-child(1) { top: 0; }
.menu-btn span:nth-child(2) { top: 8px; }
.menu-btn span:nth-child(3) { top: 16px; }


/* ---------- DIVIDER ---------- */
.divider {
  width: 100%;
  height: 1px;
  background: var(--warm-faint);
}

/* ---------- SECTION HEADING ---------- */
.section-heading {
  font-family: var(--heading);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

/* ---------- CREDITS TABLE (shared by index + cv) ---------- */
.credits-table, .cv-table {
  width: 100%;
  border-collapse: collapse;
}

.credits-table tr, .cv-table tr {
  border-bottom: 1px solid var(--warm-faint);
  transition: background 0.2s;
}

.credits-table tr:first-child, .cv-table tr:first-child {
  border-top: 1px solid var(--warm-faint);
}

.credits-table tr:hover, .cv-table tr:hover {
  background: var(--warm-faint);
}

.credits-table td, .cv-table td {
  padding: 1rem 0.5rem;
  vertical-align: top;
}

.c-year {
  width: 85px;
  font-size: 0.95rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.c-production {
  padding: 2rem;
  vertical-align: top;
  line-height: 1.2rem;
}

.c-show {
  font-size: 1.05rem;
  
}

.c-company {
  padding-top: 0.4rem;
  font-size: 0.75rem;
  font-style: italic;
  display: block;
  color: var(--text-dim);
}
.c-venue {
  font-weight: 400;
  color: var(--text-dim);
  font-family: var(--body);
  font-size: 0.95rem;
}

.c-role {
  text-align: right;
  vertical-align: bottom;
  font-size: 0.9rem;
  color: var(--text-dim);
  padding-left: 2rem;
}

.more-link {
  display: inline-block;
  /* text-align: right; */
  margin-top: 2rem;
  font-size: 1.3rem;
  color: var(--warm);
  letter-spacing: 0.03em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}
.more-link:hover { border-color: var(--warm); }

/* ---------- FOOTER ---------- */
footer {
  padding: 2rem 2.5rem;
  position: fixed;
  max-height: 15rem;
  width: 100%;
  bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--warm-faint);
  color: var(--text-dim);
}

.footer-inner {
  /* max-width: 100%; margin: 0 auto; */
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.footer-inner .social { display: flex; gap: 1.6rem; }
.footer-inner .social a { color: var(--ink-soft); transition: color 0.25s; }
.footer-inner .social a:hover { color: var(--accent); }


.theme-toggle {
  border: 1px solid var(--text-dim);
  background: transparent;
  color: var(--text-dim);
  padding: 0.35rem 0.3rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.45rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--accent-line); }
.theme-toggle .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-dim);
}

/* ========== INDEX PAGE ========== */

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 2.5rem 0;
  overflow: hidden;
  position: relative;
}

.hero-inner {
  display: block;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-text h1 {
  font-family: var(--heading);
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
}

.hero-text h2 {
  font-family: var(--heading);
  font-size: clamp(2.2rem, 4.5vw, 3.0rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 0.6;
  display: block;
  color: var(--warm);
}

.hero-intro {
  color: var(--text-dim);
  margin-top: 1.6rem;
  font-size: 1.3rem;
  max-width: 440px;
  line-height: 1.85;
}

.hero-photo {
  position: absolute;
  right: 0%;
  bottom: 0%;  
  z-index: -1;
}

.hero-photo img {
  width: 80vh;
 height: auto;
}

.role-rotator {
  font-family: var(--heading), serif;
  /* font-style: italic; */
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 2.5rem);
  letter-spacing: 0.03em;
  line-height: 1.0;
  color: var(--warm);
  height: 1em;
  display: flex;
  align-items: flex-start;
  margin-bottom: 2.4rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.role-rotator span {
  position: absolute;
  opacity: 0;
  transform: translateX(0.8em);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.role-rotator span.active {
  opacity: 1;
  transform: translateX(0);
}

/* About */
.about-section,
.credits-section,
.media-section,
.services-section {
  padding: 5rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  scroll-margin: 5.7rem;
}

.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.about-text p,
.intro-text p,
.what-you-get-text p,
.what-you-get-text li {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  line-height: 1.85;
}

.about-text p:first-child::first-line {
  color: var(--text);
}

.about-text p.closer,
.intro-text p.closer {
  font-weight: bold;
  letter-spacing: 0.06em;
  color: var(--warm)
}

.press-block { padding-top: 0.5rem; }

.press-item {
  margin-bottom: 2.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--warm);
}

.press-quote {
  font-family: var(--heading);
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.press-attr {
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

/* What You Get section (Cruise) */
.intro-section,
.what-you-get-section,
.process-section,
.example-section {
  padding: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  scroll-margin: 5.7rem;
}

.what-you-get-text li {
  margin-left: 2rem;
  margin-bottom: 0.5rem;
}

.what-you-get-text p.closer {
  margin-top: 1.2rem;
  font-weight: 400;
}

.score-examples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.score-example img {
  width: 100%;
  border: 1px solid var(--rule);
}

.score-caption {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

/* Process section (Cruise) */

.process-stage h3 {
  font-family: var(--heading);
  color: var(--warm);
  font-weight: 200;
  letter-spacing: 0.1rem;
}

.process-description {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  border-left: 1px solid var(--warm-faint);
  margin-left: 2rem;
  padding-left: 2rem;
  padding-right: 2rem;
  line-height: 1.85;
  transition: border-left 0.4s ease;
}

.process-description:hover {
  border-left: 1px solid var(--warm);
  transition: border-left 0.4s ease;
}

.process-description ul {
  margin-left: 2.5rem;
}

/* Examples section (cruise) */

.example-section h3 {
  font-family: var(--heading);
  font-size: 1.2rem;
  color: var(--warm);
  font-weight: 200;
  letter-spacing: 0.08rem;
}

.example-description {
  font-size: 1.1rem;
  color: var(--text-dim);
}

.audio-timestamps {
  margin: 2.5rem;
  padding: 0;
}

.timestamp-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.timestamp-table tr {
  border-bottom: 1px solid var(--warm-faint);
}

.ts-time {
  width: 50px;
  font-size: 0.9rem;
  color: var(--warm);
  font-variant-numeric: tabular-nums;
  padding: 0.5rem 0;
  vertical-align: center;
}

.ts-desc {
  font-size: 1.0rem;
  color: var(--text-dim);
  padding: 0.5rem 0;
}




/* Credits section (index) */

/* Media */

.media-subtext {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.media-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: var(--surface);
}

.media-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* Services */

.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.service-item {
  padding: 2rem 2rem 2rem 0;
  border-top: 1px solid var(--warm-faint);
}

.service-item:nth-child(even) {
  padding-left: 2rem;
  padding-right: 0;
  border-left: 1px solid var(--warm-faint);
}

.service-item:nth-last-child(-n+2) {
  border-bottom: 1px solid var(--warm-faint);
}

.service-name {
  font-family: var(--heading);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.service-desc {
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.75;
  max-width: 380px;
}

/* Contact */
.contact-section {
  padding: 6rem 2.5rem;
  background: var(--surface);
  scroll-margin: 5.7rem;
  margin-bottom: 1rem;
}

.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.contact-left h2 {
  font-family: var(--heading);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.contact-left p {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 400px;
}

.contact-details { display: flex; flex-direction: column; gap: 1.2rem; }

.contact-detail-label, .field label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}
.contact-detail-label { margin-bottom: 0.2rem; }

.contact-detail-text { font-size: 1.1rem; }

.contact-detail-text a {
  color: var(--text);
  border-bottom: 1px solid var(--warm-faint);
  transition: border-color 0.25s;
}
.contact-detail-text a:hover { border-color: var(--warm); }

.contact-form { display: flex; flex-direction: column; gap: 1.8rem; padding-top: 0.5rem; }

.field label { display: block; margin-bottom: 0.5rem; }

.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.7rem 0.3rem;
  background: var(--warm-faint);
  border: none;
  border-bottom: 1px solid var(--warm-faint);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.1rem;
  font-weight: 300;
  transition: border-color 0.3s;
  border-radius: 0;
}

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

.send-btn:focus-visible, .theme-toggle:focus-visible, .menu-btn:focus-visible {
  outline: 2px solid var(--warm);
  outline-offset: 3px;
}

.field select { -webkit-appearance: none; cursor: pointer; }
.field select option { background: var(--bg); }
.field textarea { resize: vertical; min-height: 80px; }

.send-btn {
  align-self: flex-start;
  padding: 0.75rem 2.2rem;
  background: transparent;
  border: 1px solid var(--warm);
  color: var(--warm);
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.send-btn:hover {
  background: var(--warm);
  color: var(--bg);
}


/* ========== SCROLL REVEAL ========== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.14s; }

/* ========== CV PAGE ========== */

.cv-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8rem 2.5rem 5rem;
}

.cv-page h1 {
  font-family: var(--heading);
  font-size: 2.4rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.cv-intro {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  max-width: 75vw;
}

.cv-category {
  margin-bottom: 4rem;
}

.cv-category-title {
  font-family: var(--heading);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--warm);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  /* border-bottom: 1px solid var(--rule); */
}

.cv-table td {
  padding: 0.8rem 0.5rem;
}

.cv-table .c-show {
  font-size: 1rem;
}

.cv-table .c-venue {
  font-size: 0.85rem;
}

.cv-table .c-year {
  font-size: 0.8rem;
}

.cv-table .c-role {
  font-size: 0.8rem;
}


/* ========== AUDIO PLAYER ========== */

.audio-player {
  padding: 1.5rem;
  border: 1px solid var(--rule);
  
  margin-bottom: 1.5rem;
  transition: border-color 0.3s;
}

.audio-player:hover {
  border-color: rgba(193, 168, 124, 0.3);
}

.audio-info {
  margin-bottom: 1rem;
}

.audio-title {
  font-family: var(--heading);
  font-size: 1.1rem;
  font-weight: 500;
  display: block;
  margin-bottom: 0.2rem;
}

.audio-subtitle {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.audio-controls {
  display: flex;
  background: var(--warm-faint);
  border-radius: 28px;
  padding: 10px;
  align-items: center;
  gap: 1rem;
}

.play-btn {
  background: none;
  border: 1px solid var(--warm);
  color: var(--warm);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s;
}

.play-btn:hover {
  background: var(--warm);
  color: var(--bg);
}

.audio-progress {
  flex: 1;
  height: 8px;
  background: var(--rule);
  cursor: pointer;
  position: relative;
}

.audio-progress-bar {
  height: 100%;
  background: var(--warm);
  border-radius: 4px;
  width: 0%;
  transition: width 0.1s linear;
}

.audio-time {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  min-width: 3rem;
  text-align: right;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 820px) {
  header { padding: 1rem 1.5rem; }
  .site-nav { display: none; }

  .site-nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface);
    padding: 1.5rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--warm-faint);
  }

  .site-nav.open a {
    padding-left: 0;
    transition: padding 0.2s ease;
  }

  .site-nav.open a:hover {
    padding-left: 0.3rem;
  }

  .site-nav.open a:hover::after {
    content: " →";
  }

  .menu-btn { display: block; }

  .hero { padding: 5.7rem 1.5rem 3rem; align-items: center; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-intro {max-width: 60vw;}
  .hero-photo { position: absolute; bottom: 0; right: 0; }
  .hero-photo img { width: auto; max-width: 75vw; max-height: 75vh; }

  .about-section, .credits-section, .media-section, .services-section {
    padding: 3.5rem 1.5rem;
  }
  .about-columns { grid-template-columns: 1fr; gap: 3rem; }

  .score-examples {
    grid-template-columns: 1fr;
  }

  .credits-table .c-role { display: none; }

  .cv-table tr {
    display: grid;
    grid-template-columns: 75px 1fr;
  }

  .cv-table .c-year {
    grid-row: 1 / 3;
  }

  .cv-table .c-role {
    grid-column: 2;
    text-align: left;
    padding-top: 0;
    padding-bottom: 0.8rem;
  }

  .services-list { grid-template-columns: 1fr; }
  .service-item:nth-child(even) { padding-left: 0; border-left: none; }

  .contact-section { padding: 4rem 1.5rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }

  .cv-page { padding: 6rem 1.5rem 3rem; }

  footer { padding: 1.5rem; }
  .footer-copyright { display: none; }
}

@media (max-width: 500px) {
  .hero-text h1 { font-size: 2.2rem; }
  .c-year { width: 65px; font-size: 0.75rem; }
  .c-show { font-size: 0.95rem; }
}
