/* ============================================================
   Barry Rathbun — Production Sound Mixer
   Light, editorial single-page site. Serif type. No gradients.
   ============================================================ */

:root {
  --bg:        #ffffff;   /* page background        */
  --bg-alt:    #f4f2ec;   /* alternating sections   */
  --text:      #1b1a16;   /* near-black warm ink    */
  --muted:     #6a665c;   /* secondary text         */
  --muted-2:   #9a948786; /* placeholder / faint    */
  --line:      #e3ded3;   /* hairline rules         */
  --ink:       #1b1a16;   /* solid dark (buttons)   */

  --max:       1160px;
  --radius:    2px;
  --ease:      cubic-bezier(.2, .7, .2, 1);

  --font:      "Spectral", Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(22px, 5vw, 56px);
}

.section { padding-block: clamp(64px, 10vw, 132px); }
.section-alt { background: var(--bg-alt); }

/* Small letter-spaced label */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: .76rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 1.1rem;
}

.skip-link {
  position: absolute;
  left: 12px; top: -56px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 200;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: .01em;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; border-color: #000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}
.site-header.scrolled { box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 6px 20px rgba(0,0,0,.04); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -.01em;
}
.brand-role {
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 1rem;
  color: var(--muted);
  padding: 9px 14px;
  border-radius: var(--radius);
  transition: color .2s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav .nav-cta {
  color: var(--text);
  border: 1px solid var(--ink);
  margin-left: 8px;
}
.nav .nav-cta:hover { background: var(--ink); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 1.5px;
  margin-inline: auto;
  background: var(--text);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Media frame (graceful image placeholder, no gradients) ---------- */
.media-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.media-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.media-frame.is-missing::after {
  content: "Photo: " attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  font-style: italic;
  font-size: .92rem;
  color: var(--muted);
  background: var(--bg-alt);
}
.media-frame.is-missing img { opacity: 0; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(44px, 8vw, 96px) clamp(56px, 9vw, 120px); }
.hero-inner {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
}
.hero-text h1 {
  font-size: clamp(3rem, 8.4vw, 6rem);
  line-height: 1.0;
  margin: .1em 0 .44em;
}
.hero-sub {
  font-size: clamp(1.12rem, 2.2vw, 1.4rem);
  color: var(--muted);
  max-width: 34ch;
  margin-bottom: 2em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-image { aspect-ratio: 3 / 4; }

/* ---------- Genres strip ---------- */
.genres { border-block: 1px solid var(--line); }
.genres-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-block: 20px;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: clamp(.74rem, 1.5vw, .86rem);
  font-weight: 600;
  color: var(--text);
}
.genres .dot { color: var(--muted-2); font-weight: 400; }

/* ---------- Section heads ---------- */
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.section-lead { color: var(--muted); font-size: 1.12rem; margin: 0; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
}
.about-photo { aspect-ratio: 4 / 5; }
.about-text h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.about-text p { color: var(--muted); font-size: 1.1rem; }
.about-text p:last-child { margin-bottom: 0; }

/* ---------- Work ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 56px);
}
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.work-meta { padding-top: 18px; }
.badge {
  display: block;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}
.work-meta h3 { font-size: 1.5rem; font-weight: 500; margin: 0 0 4px; }
.work-meta p { color: var(--muted); margin: 0; }

/* ---------- Gallery (On Set) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 30px);
}
.gallery-grid .media-frame { aspect-ratio: 4 / 5; }

/* ---------- Equipment ---------- */
.equip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
}
.equip-card { border-top: 2px solid var(--ink); padding-top: 20px; }
.equip-card h3 {
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 16px;
}
.equip-card ul { list-style: none; margin: 0; padding: 0; }
.equip-card li {
  font-size: 1.08rem;
  padding: 6px 0;
  color: var(--text);
}
.equip-card li.sub {
  font-size: .96rem;
  font-style: italic;
  color: var(--muted);
  padding-top: 1px;
}

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact-inner { max-width: 720px; margin-inline: auto; }
.contact h2 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
.contact-lead { color: var(--muted); font-size: 1.14rem; margin-bottom: 1.8em; }
.contact-mail {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color .2s var(--ease);
}
.contact-mail:hover { border-bottom-color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding-block: 30px;
  font-size: .96rem;
}
.footer-name { font-weight: 600; }
.footer-mail { color: var(--muted); }
.footer-mail:hover { color: var(--text); }
.footer-copy { color: var(--muted); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .equip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px clamp(22px, 5vw, 56px) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s var(--ease), opacity .25s var(--ease);
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px 4px; font-size: 1.1rem; }
  .nav .nav-cta { margin-left: 0; margin-top: 8px; text-align: center; padding: 12px; }

  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-image { aspect-ratio: 4 / 3; max-height: 460px; order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { aspect-ratio: 4 / 3; max-height: 460px; }
  .work-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; gap: 22px; }
  .gallery-grid .media-frame { aspect-ratio: 3 / 2; }
}

@media (max-width: 460px) {
  .equip-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
}
