/* ============================================
   CSS RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colors */
  --bg: #1D4343;
  --surface: #34212B;
  --accent: #D5CEC5;
  --light: #D5E6E2;
  --white: #FFFFFF;
  --muted: #9FAFAB;
  --red: #c96b6b;

  /* Typography */
  --font-display: 'Nunito Sans', 'Inter', sans-serif;
  /* Headline display face. Now Syne (a geometric sans) — variable name kept for compatibility; it is no longer a serif. */
  --font-serif: 'Syne', 'Nunito Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 100px 40px;
  --container-max: 1200px;
  --container-narrow: 900px;
  --container-text: 700px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Grain overlay */
.grain {
  position: fixed;
  inset: 0;
  background-image: url('/static/grain.png');
  background-repeat: repeat;
  opacity: 0.15;
  pointer-events: none;
  z-index: 9999;
}

/* ============================================
   PRELOADER (homepage, once per session)
   ============================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  will-change: transform;
}
.preloader__logo {
  width: min(46vw, 300px);
  transform-origin: center;
  will-change: transform;
}
.preloader__logo svg { width: 100%; height: auto; display: block; overflow: visible; }
.preloader__ghost { fill: rgba(213, 230, 226, 0.13); }
.preloader__fill { fill: var(--white); }
.preloader__line { fill: none; stroke: var(--accent); stroke-width: 6; opacity: 0.85; }
.preloader__pct {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(26px, 5vw, 42px);
  color: var(--white);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.preloader__pct sup { font-size: 0.45em; font-weight: 600; color: var(--accent); margin-left: 3px; }
/* Scroll lock is JS-only (class added by inline script), so JS-disabled users can still scroll. */
html.is-preloading, html.is-preloading body { overflow: hidden; }
/* Reduced-motion users never see it (JS also removes it immediately). */
@media (prefers-reduced-motion: reduce) {
  #preloader { display: none; }
}

/* Remove grain from work section, featured image, project pages, showreel */
.work,
.featured__image,
.project-page__hero,
.showreel__embed {
  position: relative;
  z-index: 10000;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(48px, 8vw, 100px); font-weight: 700; }
h2 { font-size: clamp(36px, 5vw, 60px); }
h3 { font-size: clamp(24px, 3vw, 40px); }

/* Display face (Syne) for the big moments: name, page titles, section
   headings. Nunito Sans (--font-display) stays for h3, nav, and UI. */
h1, h2 { font-family: var(--font-serif); letter-spacing: -0.005em; }

p { margin-bottom: 1.2em; }

a {
  color: var(--light);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--white); }

/* ============================================
   UTILITIES
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

.section-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
}

.badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light);
  border: 1px solid var(--light);
  padding: 3px 10px;
  border-radius: 3px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 10px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--white);
  color: var(--bg);
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ============================================
   FOCUS STYLES
   ============================================ */
:focus-visible {
  outline: 2px solid var(--surface);
  outline-offset: 2px;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 2px; }

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  height: 70px;
  transition: background 0.3s ease;
  opacity: 0;
}
.header.scrolled {
  background: rgba(29, 67, 67, 0.9);
  backdrop-filter: blur(8px);
}
.header__logo-img {
  height: 32px;
  width: auto;
}
.header__right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header__cta {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Hamburger */
.header__menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 101;
}
.header__menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}

/* ============================================
   SIDE PANEL
   ============================================ */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  z-index: 150;
}

.nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 360px;
  max-width: 85vw;
  background: var(--surface);
  transform: translateX(100%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 80px 40px 40px;
}

.nav-panel__close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--light);
  font-size: 28px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.nav-panel__close:hover { color: var(--white); }

.nav-panel__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.nav-panel__link {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--light);
  padding: 8px 0;
  opacity: 0;
  transform: translateX(20px);
  transition: color 0.15s ease;
}

.nav-panel__link:hover { color: var(--white); }

.nav-panel__socials {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.nav-panel__socials a {
  font-size: 13px;
  color: var(--muted);
}
.nav-panel__socials a:hover { color: var(--white); }

/* Mobile */
@media (max-width: 767px) {
  .header { padding: 12px 20px; height: 60px; }
  .header__cta { display: none; }
  .header__logo-img { height: 26px; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 70px 40px 40px;
  gap: 40px;
}

.hero__portrait {
  flex: 0 0 45%;
  position: relative;
}
.hero__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Card flip */
.hero__portrait {
  perspective: 1200px;
}
.hero__flip-card {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
}
.hero__flip-front,
.hero__flip-back {
  width: 100%;
  backface-visibility: hidden;
}
.hero__flip-back {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotateY(180deg);
}
.hero__flip-back .hero__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.hero__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__name {
  font-size: clamp(52px, 8.5vw, 108px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}
.hero__tagline {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.3vw, 29px);
  font-weight: 400;
  font-style: normal; /* Syne has no true italic; faux-oblique looks cheap, so keep it upright */
  line-height: 1.35;
  color: var(--light);
  max-width: 30ch;
}
/* Hero animation initial states (GSAP sets these via JS, but CSS ensures no flash of content) */
.hero__portrait,
.hero__name .char,
.hero__tagline .word {
  opacity: 0;
}
.hero__name .char,
.hero__tagline .word {
  display: inline-block;
}
.hero__name .char {
  transform: translateY(40px);
}
.hero__tagline .word {
  transform: translateY(20px);
}

/* Mobile */
@media (max-width: 767px) {
  .hero {
    flex-direction: column;
    padding: 100px 20px 60px;
    min-height: auto;
    gap: 32px;
  }
  .hero__portrait { flex: none; width: 100%; max-width: 400px; }
  .hero__text { align-items: center; text-align: center; }
  .hero__listen { align-self: center; }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero { padding: 80px 30px 40px; gap: 30px; }
  .hero__portrait { flex: 0 0 40%; }
}

/* ============================================
   FEATURED PROJECT
   ============================================ */
.featured {
  padding: var(--section-padding);
}

.featured__inner {
  max-width: var(--container-narrow);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 60px;
  align-items: center;
}

.featured__image img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.featured__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.featured__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
}

.featured__desc {
  font-size: 1.125rem;
  color: var(--light);
  line-height: 1.6;
}

.featured__status {
  font-family: var(--font-display);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

@media (max-width: 768px) {
  .featured__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ============================================
   WORK
   ============================================ */
.work {
  padding: 100px 0;
}

.work__scroll-wrap {
  position: relative;
  margin-top: 20px;
}

.work__scroll {
  display: flex;
  gap: 24px;
  padding: 0 40px 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.work__scroll::-webkit-scrollbar { display: none; }
.work__scroll.is-dragging {
  cursor: grabbing;
  user-select: none;
}
.work__scroll.is-dragging .work__card { pointer-events: none; }

.work__card {
  flex: 0 0 380px;
  height: 480px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  transform-origin: center top;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.work__card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(52, 33, 43, 0.5);
}

.work__card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: var(--surface);
}

.work__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.7) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  gap: 8px;
}

.work__card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.2;
}

/* Mobile: vertical stack */
@media (max-width: 767px) {
  .work__scroll {
    flex-direction: column;
    overflow-x: visible;
    padding: 0 20px;
  }
  .work__card {
    flex: none;
    width: 100%;
    height: 300px;
  }
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: var(--section-padding);
}
.about__inner {
  max-width: var(--container-text);
  margin: 0 auto;
}
.about__text p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--light);
  margin-bottom: 1.5em;
}
.about__text p:last-child { margin-bottom: 0; }

/* About with portrait (activated by scroll) */
.about__inner--with-portrait {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  max-width: var(--container-max);
  align-items: start;
}
.about__portrait-slot {
  border-radius: 8px;
  overflow: hidden;
}
.about__portrait-slot img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 767px) {
  .about__inner--with-portrait {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   SHOWREEL
   ============================================ */
.showreel {
  padding: var(--section-padding);
}
.showreel__inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.showreel__heading {
  font-size: 32px;
  margin-bottom: 40px;
}
.showreel__embed {
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}
.showreel__embed iframe {
  display: block;
  border: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__socials {
  display: flex;
  gap: 20px;
}
.footer__socials a {
  font-size: 13px;
  color: var(--muted);
}
.footer__socials a:hover { color: var(--white); }
.footer__copy {
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 767px) {
  .about { padding: 60px 20px; }
  .about__text p { font-size: 16px; }
  .showreel { padding: 60px 20px; }
  .footer__inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer__socials { justify-content: center; }
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: var(--section-padding);
}
.contact__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact__text h2 {
  font-size: clamp(36px, 5vw, 48px);
  margin-bottom: 16px;
}
.contact__text p {
  font-size: 18px;
  color: var(--light);
  margin-bottom: 24px;
}
.contact__email {
  display: inline-block;
  font-size: 16px;
  color: var(--light);
  margin-bottom: 24px;
  border-bottom: 1px solid var(--muted);
  padding-bottom: 2px;
}
.contact__email:hover { color: var(--white); border-color: var(--white); }
.contact__socials {
  display: flex;
  gap: 16px;
}
.contact__socials a {
  font-size: 14px;
  color: var(--muted);
}
.contact__socials a:hover { color: var(--white); }

/* Simple (email-only) contact layout */
.contact__inner--simple {
  grid-template-columns: 1fr;
  max-width: var(--container-text);
  text-align: center;
}
.contact__inner--simple .contact__socials { justify-content: center; }
.contact__email-lg {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(18px, 5vw, 40px);
  color: var(--white);
  letter-spacing: -0.01em;
  margin: 8px 0 28px;
  border-bottom: 1px solid var(--muted);
  padding-bottom: 6px;
  transition: border-color 0.15s ease, color 0.15s ease;
  max-width: 100%;
}
.contact__email-lg:hover { color: var(--accent); border-color: var(--accent); }

/* Form */
.contact__form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.required { color: var(--red); }
.form-row input,
.form-row select,
.form-row textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 16px;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.15s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--surface);
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--muted); }
.form-row select option { background: var(--bg); color: var(--white); }
.form-row textarea { resize: vertical; min-height: 120px; }

.contact__submit {
  align-self: flex-start;
  padding: 12px 32px;
  font-size: 14px;
}
.contact__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hidden { display: none !important; }

.contact__success p {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--white);
  text-align: center;
  padding: 60px 0;
}
.contact__error p {
  font-size: 14px;
  color: var(--red);
  margin-top: 12px;
}

@media (max-width: 1023px) {
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
@media (max-width: 767px) {
  .contact { padding: 60px 20px; }
}

/* ============================================
   PROJECT DETAIL PAGE
   ============================================ */
.project-page {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 120px 40px 80px;
}
.project-page__back {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 32px;
  transition: color 0.15s ease;
}
.project-page__back:hover { color: var(--white); }

.project-page__hero {
  margin-bottom: 32px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 16/9;
}
.project-page__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-page__hero iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.project-page__hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-page .badge { margin-bottom: 12px; }

.project-page__title {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 32px;
}

.project-page__desc {
  margin-bottom: 48px;
}
.project-page__desc p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--light);
  margin-bottom: 1.5em;
}

.project-page__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin: 0 0 48px;
  padding-top: 4px;
  border-top: 1px solid var(--surface);
}
.project-page__meta > div { padding-top: 16px; }
.project-page__meta dt {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.project-page__meta dd {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--light);
  margin: 0;
}

.project-page__media {
  margin-bottom: 48px;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.project-page__next {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--light);
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  width: 100%;
}
.project-page__next:hover { color: var(--white); }

@media (max-width: 767px) {
  .project-page { padding: 100px 20px 60px; }
}

.hero__listen {
  margin-top: 28px;
  align-self: flex-start;
}

.work__credits-link {
  display: inline-block;
  margin-top: 36px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--light);
}
.work__credits-link:hover { color: var(--white); }

/* ============================================
   SERVICES
   ============================================ */
.services { padding: 100px 0; }
.services__lead {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--white);
  max-width: 22ch;
  margin-bottom: 56px;
}
.services__list { list-style: none; }
.service {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: 40px;
  align-items: start;
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.service:last-child { border-bottom: 1px solid rgba(255,255,255,0.10); }
.service__icon {
  display: block;
  width: 30px;
  height: 30px;
  color: var(--accent);
  margin-bottom: 16px;
}
.service__icon svg { width: 100%; height: 100%; display: block; }
.service__title {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  color: var(--white);
}
.service__desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--light);
  margin: 0;
}
@media (max-width: 767px) {
  .services { padding: 60px 0; }
  .services__lead { margin-bottom: 36px; }
  .service { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
}

/* ============================================
   CREDITS PAGE
   ============================================ */
.credits-page {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 120px 40px 80px;
}
.credits-page__head {
  margin-bottom: 64px;
}
.credits-page__title {
  font-size: clamp(40px, 7vw, 80px);
  margin-bottom: 24px;
}
.credits-page__intro {
  font-size: 18px;
  line-height: 1.7;
  color: var(--light);
  max-width: var(--container-text);
}
.credits-group {
  margin-bottom: 56px;
}
.credits-group .section-label {
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.credits-list {
  list-style: none;
}
.credit {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.credit:last-child { border-bottom: none; }
.credit__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--white);
  line-height: 1.3;
}
.credit__meta {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}
/* Collapsible additional credits */
.more-credits {
  border-top: 1px solid rgba(255,255,255,0.10);
}
.more-credits__toggle {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 600;
  color: var(--white);
  transition: color 0.15s ease;
}
.more-credits__toggle:hover { color: var(--light); }
.more-credits__toggle::-webkit-details-marker { display: none; }
.more-credits__toggle::after {
  content: '+';
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
}
.more-credits[open] .more-credits__toggle::after { content: '\2212'; }
.more-credits__body { padding: 8px 0 28px; }
.more-credits .credits-group { margin-bottom: 36px; }
.more-credits .credits-group:last-child { margin-bottom: 0; }

.credits-page__note {
  margin-top: 24px;
  font-size: 15px;
  color: var(--muted);
}
.credits-page__note a { color: var(--light); }
.credits-page__note a:hover { color: var(--white); }

@media (max-width: 600px) {
  .credits-page { padding: 100px 20px 60px; }
  .credit {
    flex-direction: column;
    gap: 4px;
  }
  .credit__meta { text-align: left; }
}

/* ============================================
   404 PAGE
   ============================================ */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 24px;
  padding: 40px;
}
.error-page__logo { height: 60px; opacity: 0.5; }
.error-page__title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 600;
}
.error-page__link {
  font-size: 16px;
  color: var(--light);
}
.error-page__link:hover { color: var(--white); }

/* ============================================
   CUSTOM CURSOR
   ============================================ */
@media (pointer: fine) and (min-width: 1024px) {
  *, *::before, *::after {
    cursor: none !important;
  }
}

.cursor-dot,
.cursor-ring,
.cursor-spotlight {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--light);
  z-index: 10001;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(213, 230, 226, 0.4);
  z-index: 10001;
  transition: opacity 0.3s ease, width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
}

.cursor-ring--hover {
  width: 52px;
  height: 52px;
  border-color: rgba(213, 230, 226, 0.7);
}

.cursor-ring--label {
  width: 80px;
  height: 80px;
  border-color: rgba(213, 230, 226, 0.7);
}

.cursor-ring__label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--light);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cursor-ring--label .cursor-ring__label {
  opacity: 1;
}

.cursor-spotlight {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(213, 230, 226, 0.08) 0%, transparent 70%);
  z-index: 10000;
}

.cursor-visible .cursor-dot,
.cursor-visible .cursor-ring,
.cursor-visible .cursor-spotlight {
  opacity: 1;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cursor-dot,
  .cursor-ring,
  .cursor-spotlight {
    display: none !important;
  }
  @media (pointer: fine) and (min-width: 1024px) {
    *, *::before, *::after {
      cursor: auto !important;
    }
  }
}

/* ============================================
   CLIENT LOGOS
   ============================================ */
.logos {
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 80px, black calc(100% - 80px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 80px, black calc(100% - 80px), transparent);
}

.logos__track {
  display: flex;
  gap: 60px;
  align-items: center;
  width: max-content;
  animation: logos-scroll 60s linear infinite;
}

.logos:hover .logos__track {
  animation-play-state: paused;
}

.logos__img {
  height: 40px;
  width: auto;
  flex-shrink: 0;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.4;
  object-fit: contain;
}

@keyframes logos-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 767px) {
  .logos__img {
    height: 30px;
  }
  .logos__track {
    gap: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logos__track {
    animation: none;
  }
}

/* ============================================
   MOBILE REFINEMENTS
   ============================================ */
@media (max-width: 767px) {
  /* Harmonize horizontal padding: every section sits 20px from the edge */
  .container { padding: 0 20px; }
  .featured { padding: 64px 20px; }
  .featured__inner { gap: 28px; }

  /* The hero name cannot wrap (non-breaking spaces for the animation), so it
     must be sized to fit narrow screens or it overflows and gets clipped. */
  .hero__name { font-size: clamp(31px, 10.5vw, 46px); }
  .hero__portrait { max-width: 280px; }

  /* Tighter vertical rhythm on small screens */
  .section-label { margin-bottom: 22px; }
  .showreel__heading { margin-bottom: 24px; }
  .services__lead { margin-bottom: 32px; }

  /* Center the hero "Listen" button (base rule sets flex-start later in source) */
  .hero__listen { align-self: center; }
}

/* ============================================
   SMOOTH SCROLL (Lenis) + PAGE TRANSITIONS
   ============================================ */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Cross-page fade between pages via the View Transitions API (progressive
   enhancement: no-ops in browsers without support). */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

/* ============================================
   PRIVATE LESSONS PAGE (hidden /private-lessons/)
   ============================================ */
.header--minimal {
  opacity: 1;            /* override .header default opacity:0 (no JS reveal on this page) */
  justify-content: flex-start;
}

.lessons {
  max-width: var(--container-text);
  margin: 0 auto;
  padding: 140px 24px 100px;
}
.lessons__inner {
  display: flex;
  flex-direction: column;
}

.lessons__portrait {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 40px;
}
.lessons__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lessons__title {
  font-family: var(--font-display);   /* keep Nunito Sans, overriding the site-wide serif h1/h2 rule */
  font-size: clamp(40px, 7vw, 72px);
  text-align: center;
  margin-bottom: 16px;
}
.lessons__positioning {
  text-align: center;
  color: var(--light);
  font-size: clamp(18px, 2.5vw, 22px);
  margin-bottom: 56px;
}

.lessons__letter {
  margin-bottom: 56px;
}
.lessons__letter p {
  font-size: 17px;
  line-height: 1.75;
}

.lessons__prices {
  margin-bottom: 56px;
}
.lessons__price-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}
.lessons__price-table th,
.lessons__price-table td {
  text-align: left;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(213, 206, 197, 0.2);
}
.lessons__price-table th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lessons__price-table td {
  font-size: 18px;
}
.lessons__price-table td:last-child {
  text-align: right;
  font-weight: 700;
}
.lessons__price-note {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.lessons__faq {
  margin-bottom: 56px;
}
.lessons__faq-heading {
  font-family: var(--font-display);   /* keep Nunito Sans, overriding the site-wide serif h1/h2 rule */
  font-size: 28px;
  margin-bottom: 20px;
}
.lessons__faq-item {
  border-bottom: 1px solid rgba(213, 206, 197, 0.2);
}
.lessons__faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 28px 16px 0;
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--white);
}
.lessons__faq-item summary::-webkit-details-marker {
  display: none;
}
.lessons__faq-item summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
}
.lessons__faq-item[open] summary::after {
  content: '\2212';      /* minus sign */
}
.lessons__faq-item p {
  padding: 0 0 16px;
  color: var(--light);
  font-size: 16px;
  margin: 0;
}

.lessons__cta {
  text-align: center;
}
.lessons__cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.lessons__cta .btn {
  padding: 14px 32px;
  font-size: 14px;
}
.lessons__cta-note {
  font-size: 14px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
}

/* Secondary (ghost) button variant, on-brand: cream outline that fills on hover.
   Used for the lower-commitment "Book a trial lesson" CTA so the two buttons read distinctly. */
.btn-secondary {
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.btn-secondary:hover {
  background: var(--accent);
  color: var(--bg);
}

@media (max-width: 600px) {
  .lessons {
    padding: 110px 20px 80px;
  }
  .lessons__portrait {
    width: 140px;
    height: 140px;
  }
  .lessons__cta-row {
    flex-direction: column;
  }
  .lessons__cta .btn {
    width: 100%;
  }
}
