/* ==========================================================================
   Bama Productions
   Palette pulled from the studio's film-label logo.
   ========================================================================== */

:root {
  /* Brand */
  --reel: #221912;        /* deep reel brown, the page base */
  --umber: #2e231a;       /* raised surfaces on dark */
  --umber-line: #4a3a2b;  /* hairlines on dark */
  --mustard: #d4ba65;     /* logo field */
  --verdigris: #8fc9a8;   /* logo lettering */
  --paper: #eae3d0;       /* aged label paper */
  --ribbon: #6b4a2b;      /* banner brown */

  /* Text */
  --text-on-dark: #efe8d6;
  --muted-on-dark: #b9ab92;
  --text-on-light: #241b13;
  --muted-on-light: #5c4a37;

  /* Type */
  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Newsreader", Georgia, "Times New Roman", serif;

  /* Scale (perfect fourth) */
  --step--1: 0.875rem;
  --step-0: 1.125rem;
  --step-1: 1.5rem;
  --step-2: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --step-3: clamp(2.5rem, 1.8rem + 3.2vw, 4.25rem);
  --step-4: clamp(3rem, 1.6rem + 6.8vw, 7.5rem);

  /* Layout */
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --section-y: clamp(4.5rem, 3rem + 7vw, 9rem);
  --header-h: 76px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* --- Reset ---------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  background: var(--reel);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--mustard);
  color: var(--text-on-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --- Shared type ---------------------------------------------------------- */

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-3);
  line-height: 0.92;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.lede {
  max-width: 34ch;
  color: var(--muted-on-dark);
  font-size: var(--step-1);
  line-height: 1.4;
}

/* --- Buttons -------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: var(--mustard);
  color: var(--text-on-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s var(--ease-out);
}
.button:hover { background: #e6c86c; }
.button:active { transform: scale(0.97); }

.button-small { padding: 0.7rem 1.15rem 0.65rem; font-size: 1.05rem; }

.button-dark { background: var(--reel); color: var(--paper); }
.button-dark:hover { background: var(--ribbon); }
.button-dark:focus-visible { outline-color: var(--reel); }

/* --- Header --------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.site-header.is-scrolled {
  background: rgb(34 25 18 / 0.92);
  box-shadow: 0 1px 0 var(--umber-line);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
}

/* backdrop-filter would make the header the containing block for the
   fixed mobile menu panel, so drop it while the menu is open */
.menu-open .site-header {
  background: var(--reel);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
  transition: height 0.4s var(--ease-out);
}
.is-scrolled .header-inner { height: 64px; }

.brand { position: relative; z-index: 2; flex: none; display: block; line-height: 0; }
.brand img {
  width: 92px;
  transition: width 0.4s var(--ease-out);
  filter: drop-shadow(0 2px 8px rgb(0 0 0 / 0.45));
}
.is-scrolled .brand img { width: 74px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.site-nav ul { display: flex; gap: clamp(1.25rem, 3vw, 2.25rem); }

.site-nav a[data-nav-link] {
  position: relative;
  display: inline-block;
  padding-block: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text-on-dark);
}

.site-nav a[data-nav-link]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--verdigris);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.site-nav a[data-nav-link]:hover::after,
.site-nav a[aria-current="true"]::after { transform: scaleX(1); }
.site-nav a[aria-current="true"] { color: var(--verdigris); }

.menu-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 48px; height: 48px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
}
.menu-toggle-bars { position: relative; display: block; width: 26px; height: 12px; margin: auto; }
.menu-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out);
}
.menu-toggle-bars span:first-child { top: 0; }
.menu-toggle-bars span:last-child { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:first-child { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:last-child { top: 5px; transform: rotate(-45deg); }

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .brand img { width: 74px; }
  .is-scrolled .brand img { width: 64px; }

  .site-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2.5rem;
    padding: calc(var(--header-h) + 1rem) var(--gutter) 3rem;
    background: var(--reel);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
  }
  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.35s ease;
  }

  .site-nav ul { flex-direction: column; gap: 0.5rem; }
  .site-nav a[data-nav-link] {
    font-size: clamp(2.75rem, 12vw, 4rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.05;
  }
  .site-nav a[data-nav-link]::after { display: none; }

  .site-nav li {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.4s ease, transform 0.5s var(--ease-out);
  }
  .site-nav.is-open li { opacity: 1; transform: none; }
  .site-nav.is-open li:nth-child(2) { transition-delay: 0.05s; }
  .site-nav.is-open li:nth-child(3) { transition-delay: 0.1s; }

  .site-nav .button { font-size: 1.25rem; padding: 1rem 1.6rem 0.95rem; }
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: calc(var(--header-h) + 3rem) clamp(2.5rem, 6vh, 5rem);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 55% 60%;
  animation: settle 9s var(--ease-out) both;
}
/* Shade toward the text so the quote stays readable over the sunset */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(34 25 18 / 0.55) 0%, rgb(34 25 18 / 0) 28%),
    linear-gradient(0deg, var(--reel) 0%, rgb(34 25 18 / 0.72) 34%, rgb(34 25 18 / 0.12) 70%);
}

.hero-content { position: relative; }

.hero-quote blockquote p {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: min(var(--step-4), 13.5svh);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--paper);
  text-wrap: balance;
}

/* Each line is revealed like a title card wiping up */
.card-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}
.card-line > span {
  display: inline-block;
  transform: translateY(105%);
  animation: card-in 1s var(--ease-out) forwards;
}
.card-line:nth-child(1) > span { animation-delay: 0.25s; }
.card-line:nth-child(2) > span { animation-delay: 0.55s; }
.card-line:nth-child(3) > span { animation-delay: 0.85s; }
.card-line:nth-child(4) > span { animation-delay: 1.15s; }

.card-credit {
  margin-top: 1.25rem;
  font-style: italic;
  font-size: var(--step-1);
  color: var(--verdigris);
  opacity: 0;
  animation: fade-in 0.9s ease 1.75s forwards;
}
.card-credit::before { content: "– "; }

.hero-tagline {
  max-width: 38ch;
  margin-top: clamp(2rem, 5vh, 3.5rem);
  color: var(--muted-on-dark);
  font-size: var(--step-0);
  opacity: 0;
  animation: fade-in 0.9s ease 2s forwards;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-block: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text-on-dark);
  opacity: 0;
  animation: fade-in 0.9s ease 2.2s forwards;
}
.scroll-cue svg { animation: nudge 2.4s var(--ease-in-out) 3s infinite; }
.scroll-cue:hover { color: var(--mustard); }

@keyframes card-in { to { transform: translateY(0); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes nudge { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(5px); } }

/* --- Work ----------------------------------------------------------------- */

.work { padding-block: var(--section-y); }

.section-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 860px) {
  .section-head {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 3rem;
  }
  .section-head .lede { text-align: right; }
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter {
  padding: 0.6rem 1.1rem 0.55rem;
  border: 1px solid var(--umber-line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted-on-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  line-height: 1;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.filter:hover { color: var(--text-on-dark); border-color: var(--muted-on-dark); }
.filter[aria-pressed="true"] {
  background: var(--verdigris);
  border-color: var(--verdigris);
  color: var(--text-on-light);
}

.filter-status {
  margin-top: 1rem;
  font-size: var(--step--1);
  font-style: italic;
  color: var(--muted-on-dark);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.75rem);
  margin-top: 1.75rem;
}

.work-item[hidden] { display: none; }

.work-link {
  display: grid;
  gap: 0.2rem;
  text-decoration: none;
  border-radius: 6px;
}
.work-link:focus-visible { outline-offset: 6px; }

.work-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  margin-bottom: 0.75rem;
  overflow: hidden;
  border-radius: 6px;
  background: var(--umber);
}
.work-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.9);
  transition: transform 0.7s var(--ease-out), filter 0.5s ease;
}

/* Play mark appears on hover or focus */
.work-thumb::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 56px; height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%23221912'/%3E%3C/svg%3E") center / 26px no-repeat,
    var(--mustard);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.4s var(--ease-out);
}

.work-link:hover .work-thumb img,
.work-link:focus-visible .work-thumb img {
  transform: scale(1.04);
  filter: saturate(1) brightness(1);
}
.work-link:hover .work-thumb::after,
.work-link:focus-visible .work-thumb::after {
  opacity: 1;
  transform: scale(1);
}

.work-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1.05;
  color: var(--text-on-dark);
}
.work-cat {
  font-size: var(--step--1);
  font-style: italic;
  color: var(--muted-on-dark);
}

@media (max-width: 600px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 0.875rem; }
  .work-title { font-size: 1.2rem; }
  .work-thumb::after { width: 44px; height: 44px; margin: -22px 0 0 -22px; background-size: 20px, auto; }
}

/* --- Belief --------------------------------------------------------------- */

.belief {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(4rem, 3rem + 5vw, 7rem);
  background: #111;
  border-block: 1px solid rgba(255,255,255,.08);
}

.belief-parallax {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.belief-parallax-image {
  position: absolute;
  inset: -14% -6%;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: translate3d(0, 0, 0) scale(1.12);
  will-change: transform;
}

.belief-parallax-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.52), rgba(0,0,0,.18) 55%, rgba(0,0,0,.34));
}

.belief-content {
  position: relative;
  z-index: 1;
}


/* Scroll-driven belief quote entrance and movement test */
.belief-quote p {
  opacity: 0;
  filter: blur(28px);
  transform: translate3d(0, 0, 0);
  margin-inline: auto;
  will-change: transform, opacity, filter;
  transition: opacity 3.2s ease, filter 3.2s ease;
}

.belief-quote.is-revealed p {
  opacity: 1;
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .belief-quote p {
    opacity: 1;
    filter: none;
    transform: none !important;
    transition: none;
  }
}

.belief-quote p {
  max-width: 24ch;
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--step-3);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--paper);
  text-wrap: balance;
}
.belief-quote p::before { content: "“"; color: var(--mustard); margin-left: -0.45em; }
.belief-quote p::after { content: "”"; color: var(--mustard); }
@media (max-width: 600px) {
  .belief-quote p::before { margin-left: 0; }
}

/* --- Why ------------------------------------------------------------------ */

.why {
  padding-block: var(--section-y);
  background: var(--paper);
  color: var(--text-on-light);
}

.why-inner {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 960px) {
  .why-inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 4rem;
  }
  .why-head { grid-row: span 2; }
}

.why .display { color: var(--text-on-light); }

.why-sub {
  margin-top: 1rem;
  font-style: italic;
  font-size: var(--step-1);
  color: var(--ribbon);
}

.because {
  display: grid;
  gap: 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-2);
  line-height: 1.05;
}
.because li {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgb(36 27 19 / 0.18);
}

/* Revealed one after another when the list scrolls into view */
.js .because li {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.8s var(--ease-out);
}
.js .because.is-visible li { opacity: 1; transform: none; }
.js .because.is-visible li:nth-child(2) { transition-delay: 0.18s; }
.js .because.is-visible li:nth-child(3) { transition-delay: 0.36s; }

.values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  align-self: end;
}
.values li {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-3);
  line-height: 1;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ribbon);
}

/* --- Contact -------------------------------------------------------------- */

.contact {
  padding-block: var(--section-y);
  background: var(--mustard);
  color: var(--text-on-light);
}

.contact-inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 860px) {
  .contact-inner { grid-template-columns: 1fr minmax(0, 460px); gap: 4rem; }
}

.contact-copy p {
  max-width: 32ch;
  margin-block: 1.5rem 2.25rem;
  font-size: var(--step-1);
  line-height: 1.4;
}

.contact-seal {
  width: 100%;
  max-width: 460px;
  justify-self: center;
}

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  padding-block: 3.5rem;
  color: var(--muted-on-dark);
}

.footer-inner {
  display: grid;
  gap: 1.75rem;
  justify-items: start;
}
@media (min-width: 760px) {
  .footer-inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 3rem;
  }
}

.footer-logo { width: 84px; }

.site-footer ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.site-footer a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text-on-dark);
}
.site-footer a:hover { color: var(--verdigris); }

.footer-legal { font-size: var(--step--1); }

/* --- Video viewer --------------------------------------------------------- */

.viewer {
  width: min(1100px, 100% - 2 * var(--gutter));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--umber);
  color: var(--text-on-dark);
  overflow: auto;
}
.viewer::backdrop {
  background: rgb(18 13 9 / 0.86);
  backdrop-filter: blur(4px);
}

.viewer[open] { animation: viewer-in 0.45s var(--ease-out); }
.viewer[open]::backdrop { animation: fade-in-from-zero 0.35s ease; }
.viewer.is-closing { animation: viewer-out 0.25s ease forwards; }
.viewer.is-closing::backdrop { animation: fade-out 0.25s ease forwards; }

@keyframes viewer-in { from { opacity: 0; transform: translateY(18px) scale(0.98); } }
@keyframes viewer-out { to { opacity: 0; transform: translateY(10px) scale(0.985); } }
@keyframes fade-in-from-zero { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

.viewer-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem 1rem 1.5rem;
}
.viewer-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-2);
  line-height: 1;
  text-transform: uppercase;
}
.viewer-cat {
  margin-top: 0.3rem;
  font-style: italic;
  font-size: var(--step--1);
  color: var(--muted-on-dark);
}

.icon-button {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px; height: 44px;
  border: 1px solid var(--umber-line);
  border-radius: 50%;
  background: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.icon-button:hover { background: var(--reel); border-color: var(--muted-on-dark); }

.viewer-frame { background: #000; }
.viewer-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100dvh - 13rem);
  background: #000;
}

.viewer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
}
.viewer-step {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0 0.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.viewer-step:hover { background: var(--reel); color: var(--mustard); }
.viewer-count {
  font-size: var(--step--1);
  font-style: italic;
  color: var(--muted-on-dark);
}

/* --- Reduced motion ------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

/* =========================================================
   BAMA BRAND LAYER
   BAMA site remains the visual foundation. These are intentional
   BAMA-specific visual changes only.
   ========================================================= */
:root{
  --bama-gold:#d4ba65;
  --bama-green:#8fc9a8;
  --bama-brown:#4a2e19;
  --bama-paper:#f5f1e8;
  --font-accent:"Newsreader",Georgia,serif;
}

.site-nav a[data-nav-link]{
  text-transform:uppercase;
  letter-spacing:.06em;
  font-family:"Big Shoulders Display","Arial Narrow",Impact,sans-serif !important;
  font-weight:700;
}

.hero-quote blockquote p{
  max-width:10.5em;
  text-wrap:balance;
}

.card-line{
  overflow:visible;
  padding:0;
}
.card-line > span{
  transform:none;
  animation:bama-quote-fade .95s ease both;
}
.card-line-1 > span{
  font-family:var(--font-display);
  color:var(--bama-gold);
  animation-delay:.15s;
}
.card-line-2 > span{
  font-family:var(--font-accent);
  font-style:italic;
  font-weight:500;
  color:var(--bama-green);
  text-transform:none;
  animation-delay:.4s;
}
.card-line-3 > span{
  font-family:var(--font-display);
  color:var(--paper);
  animation-delay:.65s;
}
.card-line-4 > span{
  font-family:var(--font-accent);
  font-style:italic;
  font-weight:500;
  color:#e5b26b;
  text-transform:none;
  animation-delay:.9s;
}
.card-credit{
  color:var(--bama-green);
  animation-delay:1.35s;
}
@keyframes bama-quote-fade{
  from{opacity:0;transform:translateY(12px)}
  to{opacity:1;transform:none}
}

/* Exact requirement: 6-second opening zoom-out. Parallax is JS-driven. */
.hero-media img{
  transform:scale(1.08) translate3d(0,0,0);
  animation:none;
  will-change:transform;
}
.hero-media::after{
  background:
    linear-gradient(180deg,rgb(34 25 18 / .48) 0%,rgb(34 25 18 / 0) 32%),
    linear-gradient(0deg,var(--reel) 0%,rgb(34 25 18 / .68) 34%,rgb(34 25 18 / .08) 70%);
}

.work-title{letter-spacing:.01em}
.work-cat{color:var(--bama-green)}
.filter[aria-pressed="true"]{
  background:var(--bama-gold);
  border-color:var(--bama-gold);
}
.work-thumb::after{
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%23221912'/%3E%3C/svg%3E") center / 26px no-repeat,
    var(--bama-gold);
}

.why .display{
  font-family:var(--font-accent);
  font-style:italic;
  font-weight:500;
  text-transform:none;
  font-size:clamp(3rem,6vw,6.5rem);
  line-height:.92;
  letter-spacing:-.035em;
}
.why-sub{
  font-family:var(--font-display);
  font-style:normal;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--bama-brown);
}
.why-description{
  max-width:52ch;
  font-size:var(--step-1);
  line-height:1.45;
  color:var(--muted-on-light);
}
.why-description p{margin:0}
.values li{
  color:transparent;
  -webkit-text-stroke:1.5px var(--ribbon);
}

/* BAMA project overlay. BAMA site's player behavior remains intact. */
.viewer{
  width:min(1180px,100% - 2 * var(--gutter));
  max-height:calc(100dvh - 2rem);
  border-radius:0;
  background:#fff;
  color:var(--text-on-light);
}
.viewer::backdrop{
  background:rgb(18 13 9 / .88);
  backdrop-filter:blur(5px);
}
.viewer-bar{
  padding:1rem 1.25rem .9rem 1.5rem;
  background:var(--reel);
  color:var(--text-on-dark);
}
.viewer-title{font-size:var(--step-2)}
.viewer-cat{color:var(--muted-on-dark)}
.viewer-actions{
  display:flex;
  align-items:center;
  gap:.6rem;
}
.share-button{
  min-height:44px;
  padding:0 .9rem;
  border:1px solid var(--umber-line);
  border-radius:999px;
  background:transparent;
  color:var(--text-on-dark);
  font-family:var(--font-display);
  font-weight:700;
  font-size:1rem;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.share-button:hover{border-color:var(--bama-gold);color:var(--bama-gold)}
.viewer-details{
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(280px,.95fr);
  gap:3.5rem;
  margin:0 1.5rem;
  padding:2.8rem 0 2.2rem;
  border-top:2px solid rgba(74,46,25,.12);
}
.viewer-headline{
  position:relative;
  margin:0 0 2rem;
  padding:0 0 0 1.5rem;
  color:var(--bama-brown);
  font-family:var(--font-display);
  font-size:clamp(1.6rem,2.4vw,2.6rem);
  line-height:1.05;
  font-weight:700;
  letter-spacing:-.02em;
}
.viewer-headline::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:4px;
  height:100%;
  background:var(--bama-gold);
}
.viewer-summary{
  max-width:760px;
  color:#777;
  font-family:var(--font-body);
  font-size:1rem;
  line-height:1.7;
}
.viewer-summary p{margin:0 0 1.2rem}
.viewer-role{
  align-self:start;
  padding:2rem 1.5rem 2.2rem;
  background:#f3f3f3;
}
.viewer-role-heading{
  display:flex;
  align-items:center;
  gap:1rem;
  margin-bottom:2rem;
  color:var(--bama-brown);
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.viewer-role-heading::before,.viewer-role-heading::after{
  content:"";
  height:1px;
  flex:1;
  background:rgba(74,46,25,.22);
}
.viewer-role-heading span{white-space:nowrap}
.viewer-role-list{display:flex;flex-direction:column}
.viewer-role-item{
  display:flex;
  align-items:flex-start;
  gap:.7rem;
  padding:.65rem 0;
  border-bottom:1px solid rgba(74,46,25,.08);
  color:#777;
  font-size:.95rem;
  line-height:1.35;
}
.viewer-role-item:last-child{border-bottom:0}
.viewer-role-mark{flex:0 0 auto;color:var(--bama-gold);font-weight:700}
.viewer-nav{display:none}

@media(max-width:760px){
  .viewer{
    width:100%;
    max-height:100dvh;
    margin:0;
  }
  .viewer-details{
    grid-template-columns:1fr;
    gap:2rem;
    margin:0 1rem;
    padding-top:2rem;
  }
  .viewer-role{padding:1.5rem 1.1rem 1.7rem}
  .viewer-headline{padding-left:1.1rem}
}

@media(prefers-reduced-motion:reduce){
  .hero-media img{transform:scale(1.02)!important}
  .card-line > span,.card-credit,.hero-tagline,.scroll-cue{
    animation:none!important;
    opacity:1!important;
  }
}

/* --- Contact page --------------------------------------------------------- */
.contact-page{
  min-height:calc(100dvh - var(--header-h));
  padding-block:clamp(8rem,12vw,11rem) var(--section-y);
  background:var(--mustard);
  color:var(--text-on-light);
}
.contact-page-inner{
  display:grid;
  gap:clamp(2.5rem,6vw,6rem);
  align-items:start;
}
@media(min-width:900px){
  .contact-page-inner{grid-template-columns:minmax(0,.9fr) minmax(420px,1.1fr);}
}
.contact-page-intro{padding-top:1rem;}
.contact-page-intro .display{
  max-width:8ch;
  font-size:clamp(4rem,8vw,7.5rem);
  line-height:.88;
}
.contact-page-lede{
  max-width:30ch;
  margin-top:2rem;
  font-size:clamp(1.2rem,1rem + .8vw,1.7rem);
  line-height:1.4;
}
.contact-card{
  padding:clamp(1.5rem,4vw,3rem);
  background:var(--paper);
  color:var(--text-on-light);
  box-shadow:0 18px 50px rgb(36 27 19 / .18);
}
.contact-form{display:grid;gap:1.25rem;}
.contact-form label{display:grid;gap:.45rem;}
.contact-form label span{
  font-family:var(--font-display);
  font-size:1rem;
  font-weight:700;
  letter-spacing:.03em;
  text-transform:uppercase;
}
.contact-form input,
.contact-form textarea{
  width:100%;
  border:1px solid rgb(36 27 19 / .22);
  border-radius:0;
  padding:.85rem .9rem;
  background:#fffdf7;
  color:var(--text-on-light);
  font:inherit;
}
.contact-form input:focus,
.contact-form textarea:focus{outline:2px solid var(--verdigris);outline-offset:2px;}
.contact-form textarea{resize:vertical;min-height:150px;}
.contact-success h2{
  margin-bottom:.8rem;
  font-family:var(--font-display);
  font-size:clamp(2.5rem,5vw,4rem);
  line-height:.95;
}
.contact-success p{margin-bottom:1.75rem;font-size:1.2rem;}
.contact-error{margin-bottom:1rem;padding:.8rem 1rem;background:#f3d8d0;color:#6d261a;}

@media(max-width:760px){
  .contact-page{padding-top:7rem;}
  .contact-page-intro .display{max-width:none;}
}


/* Build 005: keep the viewer solid while media is loading; never reveal the page behind it. */
.viewer{
  background:#fff;
  isolation:isolate;
}
.viewer[open]{
  animation:none;
}
.viewer[open]::backdrop{
  animation:none;
}
.viewer-frame{
  position:relative;
  background:#000;
}
.viewer-frame video{
  display:block;
  background:#000;
}
.viewer.is-loading .viewer-frame video{
  visibility:hidden;
}
.viewer.is-loading .viewer-frame::after{
  content:"";
  position:absolute;
  inset:0;
  background:#000;
  pointer-events:none;
}

.contact-honeypot{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important;}
