/* ==========================================================
   COLORS & FONTS: change these to restyle the whole site
   ========================================================== */
:root {
  --bg: #0e0f13;
  --bg-alt: #16181f;
  --card: #1d2029;
  --text: #e9e9ee;
  --muted: #9a9cab;
  --accent: #5aa9ff;       /* main highlight color (his favorite: blue) */
  --accent-dark: #3d8fe8;
  --accent-glow: rgba(90, 169, 255, .16);
  --on-accent: #0a1424;    /* text and icons sitting on the accent color */
  --border: #2a2d38;
  --radius: 14px;
  --font-body: "Inter", system-ui, sans-serif;
  --font-head: "Oswald", "Arial Narrow", sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: .02em; }

.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  text-transform: uppercase;
  margin-bottom: 1.2em;
}
.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 14px;
  background: var(--accent);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); text-decoration: none; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: var(--on-accent); }
.btn-small { padding: 8px 18px; font-size: .9rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(14, 15, 19, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.logo { font-family: var(--font-head); font-size: 1.5rem; color: var(--text); letter-spacing: .08em; }
.logo:hover { text-decoration: none; color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { color: var(--text); font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--accent); text-decoration: none; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--text); transition: transform .25s, opacity .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background: radial-gradient(ellipse at 70% 20%, var(--accent-glow), transparent 60%), var(--bg);
}
.hero-inner { position: relative; z-index: 1; }

.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .2em; font-size: .85rem; font-weight: 600; margin: 0 0 12px; }

.hero h1 { font-size: clamp(3.5rem, 12vw, 7.5rem); text-transform: uppercase; margin-bottom: .2em; }

.tagline { max-width: 560px; color: var(--muted); font-size: 1.15rem; margin: 0 0 36px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* decorative sound-wave bars, built by main.js */
.wave-bg {
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  opacity: .12;
  pointer-events: none;
}
.wave-bg span {
  flex: 1;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
  animation: wave 1.8s ease-in-out infinite alternate;
}
@keyframes wave { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.wave-bg span { transform-origin: bottom; }

/* ---------- Audio Player ---------- */
.player {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s;
}
.player.is-playing { border-color: var(--accent); }
[hidden] { display: none !important; }

.player-hero { max-width: 560px; }

.play-btn {
  flex-shrink: 0;
  position: relative;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  transition: transform .15s, background .2s;
}
.play-btn:hover { transform: scale(1.07); background: var(--accent-dark); }
.play-btn:disabled { cursor: not-allowed; transform: none; background: var(--border); }

/* play triangle */
.play-btn::before {
  content: "";
  position: absolute;
  top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--on-accent);
}
/* pause bars */
.player.is-playing .play-btn::before {
  left: 50%;
  width: 14px;
  height: 18px;
  border: 0;
  border-left: 5px solid var(--on-accent);
  border-right: 5px solid var(--on-accent);
}

.player-body { flex: 1; min-width: 0; }
.player-title { font-weight: 600; }
.player-sub { color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.player-hero .player-title { margin-bottom: 8px; }

.progress {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  cursor: pointer;
  overflow: hidden;
}
.progress-fill { width: 0; height: 100%; background: var(--accent); }

.time { flex-shrink: 0; font-variant-numeric: tabular-nums; color: var(--muted); font-size: .9rem; min-width: 42px; text-align: right; }

.demo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* ---------- Featured Work (posters) ---------- */
.slider-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.slider-btns { display: flex; gap: 10px; padding-top: 4px; }
.slider-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s, color .2s, opacity .2s;
}
.slider-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.slider-btn:disabled { opacity: .35; cursor: default; }
.slider-btn svg { width: 20px; height: 20px; }

/* one scrolling row; swipe on phones, arrows on desktop */
.posters {
  --gap: 24px;
  --visible: 4;
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 0 24px;           /* room for the hover lift and shadow */
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.posters::-webkit-scrollbar { display: none; }
.posters:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 10px; }
.poster {
  margin: 0;
  flex: 0 0 calc((100% - (var(--visible) - 1) * var(--gap)) / var(--visible));
  scroll-snap-align: start;
}
.poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transition: transform .25s, box-shadow .25s;
}
.poster:hover img { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.poster figcaption { margin-top: 12px; font-weight: 600; text-align: center; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 340px 1fr; gap: 60px; align-items: center; }
.headshot { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center top; border-radius: var(--radius); background: var(--card); }
.about p { color: var(--muted); }

.credits-title { margin: 32px 0 14px; font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.credits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
.credits li { position: relative; padding-left: 18px; }
.credits li.wide { grid-column: 1 / -1; }
.credits li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.about .credits-more { margin: 14px 0 0; font-size: .95rem; font-style: italic; }





/* ---------- Voice Specs ---------- */
.specs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.spec { padding: 26px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); }
.spec h3 { margin-bottom: 16px; font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); font-size: .95rem; white-space: nowrap; }

/* ---------- Contact ---------- */
.contact > div { max-width: 680px; }
.contact > div > p { color: var(--muted); }
.contact-line { font-size: 1.3rem; font-weight: 600; margin: 0 0 6px; overflow-wrap: anywhere; }
.contact-btn { margin-top: 20px; }

.socials { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; padding: 0; }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: .95rem; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form .btn { align-self: flex-start; }
.form-status { margin: 0; color: var(--accent); min-height: 1.5em; }

/* ---------- Footer ---------- */
.site-footer { padding: 30px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; text-align: center; }

/* ---------- Focus for keyboard users ---------- */
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ==========================================================
   RESPONSIVE: tablet & phone
   ========================================================== */
@media (max-width: 900px) {
  .posters { --visible: 3; }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .headshot { max-width: 320px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 70px 0; }

  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 12px 20px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform .3s;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-links .btn { margin-top: 16px; display: block; text-align: center; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .demo-grid, .credits { grid-template-columns: 1fr; }
  .posters { --visible: 2.4; --gap: 16px; }
  .slider-btns { display: none; }
  .player { padding: 16px; gap: 12px; }
}

@media (max-width: 420px) {
  .hero-actions .btn { flex: 1; text-align: center; padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wave-bg span { animation: none; }
  .posters { scroll-behavior: auto; }
}

/* ---------- Download button & video reel ---------- */
.download {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  transition: border-color .2s, color .2s;
}
.download:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.download svg { width: 18px; height: 18px; }

.video-reel { margin-top: 40px; padding: 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.video-reel video { width: 100%; border-radius: 10px; background: #000; aspect-ratio: 16 / 9; }
.video-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 4px 2px; }

/* Custom dropdown arrow (the browser's default one hugs the right edge) */
.contact-form select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235aa9ff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  cursor: pointer;
}
