/* Independent Gorilla Productions - Static Site Styles
   Brand integrated version using:
   - assets/images/brand/brand.png
   - assets/images/brand/clean-transparent-2.png
   - assets/images/brand/jlanz.png
   - assets/images/brand/dlanz.png
*/

:root {
  --black: #050403;
  --theatre-black: #0b0908;
  --charcoal: #15100d;
  --red-velvet: #5a0708;
  --deep-red: #260304;
  --gold: #d6a044;
  --bright-gold: #ffd27a;
  --aged-gold: #9b6b22;
  --cream: #f5ead2;
  --paper: #d7c4a1;
  --muted: #a9977c;
  --line: rgba(255, 210, 122, 0.18);
  --glass: rgba(10, 7, 5, 0.66);
  --shadow: rgba(0,0,0,0.74);
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(90, 7, 8, 0.22), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(214, 160, 68, 0.16), transparent 24%),
    linear-gradient(180deg, var(--black) 0%, var(--theatre-black) 42%, #080504 100%);
  color: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(90,7,8,.22), transparent 10%, transparent 90%, rgba(90,7,8,.24)),
    radial-gradient(circle at 50% 0%, rgba(255,210,122,.11), transparent 24%);
}

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

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--bright-gold);
  color: #160b02;
  padding: 10px 14px;
  z-index: 1000;
  border-radius: 8px;
  font-weight: 800;
}
.skip-link:focus { left: 10px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 3, 2, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 24px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
}

.brand-logo {
  width: 64px;
  height: auto;
  filter: drop-shadow(0 0 14px rgba(255, 201, 91, 0.28));
}

.brand-wordmark {
  display: grid;
  gap: 1px;
}

.brand-name {
  margin: 0;
  color: var(--cream);
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.brand-sub {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .06em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
  transition: color .18s ease;
}
.nav a:hover,
.nav a.active {
  color: var(--bright-gold);
}

.mobile-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--cream);
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 900;
}

/* Buttons */

.browser-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 210, 122, 0.28);
  background: rgba(255, 255, 255, 0.035);
  color: var(--paper);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

.browser-back-button:hover,
.browser-back-button:focus-visible {
  color: var(--bright-gold);
  border-color: rgba(255, 210, 122, 0.54);
  background: rgba(255, 210, 122, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 20px;
  border: 1px solid transparent;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
  text-align: center;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  color: #160b02;
  background: linear-gradient(180deg, var(--bright-gold), var(--gold));
  box-shadow: 0 12px 34px rgba(214,160,68,.22);
}
.button-secondary {
  color: var(--cream);
  background: rgba(255,255,255,.045);
  border-color: var(--line);
}
.button-secondary:hover { border-color: rgba(255,210,122,.42); }

/* Hero */
.hero {
  min-height: 760px;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.76) 34%, rgba(0,0,0,.22) 63%, rgba(0,0,0,.42) 100%),
    url("../images/brand/brand.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 150px;
  background: linear-gradient(0deg, var(--black), transparent);
  pointer-events: none;
}

.hero-panel {
  max-width: 650px;
  padding: 46px;
  border-radius: 34px;
  border: 1px solid rgba(255,210,122,.18);
  background: rgba(0,0,0,.42);
  box-shadow: 0 30px 90px var(--shadow);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--bright-gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .28em;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 24px;
  color: var(--cream);
  font-size: clamp(48px, 7vw, 86px);
  line-height: .94;
  letter-spacing: -.065em;
  text-shadow: 0 4px 30px rgba(0,0,0,.7);
}

.hero-copy {
  color: #ead9b8;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.75;
  margin-bottom: 32px;
}

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

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.badge {
  color: var(--paper);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 11px;
  letter-spacing: .19em;
  text-transform: uppercase;
  font-weight: 800;
}

/* Sections */
.section {
  padding: 88px 0;
}

.section.alt {
  background:
    linear-gradient(180deg, rgba(90,7,8,.08), rgba(0,0,0,.08)),
    rgba(0,0,0,.18);
  border-top: 1px solid rgba(255,210,122,.09);
  border-bottom: 1px solid rgba(255,210,122,.09);
}

.section-header {
  max-width: 820px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-header h2 {
  color: var(--cream);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -.045em;
  margin-bottom: 20px;
}

.section-header p {
  color: var(--paper);
  font-size: 18px;
  line-height: 1.76;
}

/* Cards & grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card, .project-card, .service-card, .team-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018)),
    var(--glass);
  border-radius: 30px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,.24);
}

.card:hover, .project-card:hover, .service-card:hover {
  border-color: rgba(255,210,122,.38);
}

.card-icon {
  width: 74px;
  height: 74px;
  object-fit: contain;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 20px rgba(255,199,91,.2));
}

.card h3, .project-card h3, .service-card h3, .team-card h3 {
  color: var(--cream);
  font-size: 25px;
  line-height: 1.12;
  margin-bottom: 12px;
}

.card p, .project-card p, .service-card p, .team-card p {
  color: var(--paper);
  margin-bottom: 0;
}

.project-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card h3 { font-size: 34px; margin: 14px 0; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.tag {
  color: var(--paper);
  border: 1px solid rgba(255,210,122,.16);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  background: rgba(0,0,0,.18);
}

/* Page hero */
.page-hero {
  min-height: 430px;
  display: flex;
  align-items: end;
  padding: 110px 0 70px;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,.94), rgba(0,0,0,.72), rgba(0,0,0,.34)),
    url("../images/brand/brand.png");
  background-size: cover;
  background-position: center center;
  border-bottom: 1px solid var(--line);
}

.page-hero.compact {
  min-height: 300px;
}

.page-hero-content {
  max-width: 840px;
}

.page-hero h1 {
  font-size: clamp(42px, 6vw, 76px);
  margin-bottom: 16px;
}

.page-hero p {
  max-width: 760px;
  color: var(--paper);
  font-size: 20px;
  line-height: 1.72;
}

/* Team / About */
.team-card {
  overflow: hidden;
  padding: 0;
}

.team-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-bottom: 1px solid var(--line);
  background: #111;
}

.team-copy {
  padding: 28px;
}

.team-role {
  color: var(--bright-gold);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 900;
  margin-bottom: 12px;
}

.bio-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 34px;
  align-items: center;
}

.bio-image {
  border-radius: 34px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0,0,0,.42);
}

.bio-copy {
  padding: 32px;
  border-radius: 34px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.32);
}

.bio-copy h2 {
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.04;
  letter-spacing: -.04em;
  margin-bottom: 20px;
}

.bio-copy p {
  color: var(--paper);
  font-size: 17px;
}

/* Brand strip */
.brand-strip {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 24px;
  background: rgba(0,0,0,.34);
}

.brand-strip img {
  width: 130px;
  filter: drop-shadow(0 0 20px rgba(255,199,91,.22));
}

/* Lists */
.feature-list {
  display: grid;
  gap: 12px;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255,210,122,.12);
  border-radius: 18px;
  background: rgba(0,0,0,.24);
}
.dot {
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--bright-gold);
  flex: 0 0 auto;
}

/* Contact form */
.form {
  display: grid;
  gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
label {
  display: grid;
  gap: 8px;
  color: var(--paper);
  font-weight: 800;
}
input, textarea, select {
  width: 100%;
  border: 1px solid rgba(255,210,122,.2);
  border-radius: 16px;
  background: rgba(0,0,0,.34);
  color: var(--cream);
  padding: 13px 14px;
  font: inherit;
}
textarea { min-height: 160px; resize: vertical; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #040302;
  padding: 48px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr .7fr;
  gap: 28px;
}

.footer-logo {
  width: 92px;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 18px rgba(255,199,91,.2));
}

.footer-grid h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

.footer-grid p,
.footer-grid a {
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,210,122,.1);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
}

/* Utility */
.mt-24 { margin-top: 24px; }
.mt-36 { margin-top: 36px; }
.center { text-align: center; }
.lead { color: var(--paper); font-size: 18px; line-height: 1.78; }
.max-760 { max-width: 760px; }
.max-900 { max-width: 900px; }
.logo-watermark {
  opacity: .18;
  width: 160px;
  margin: 0 auto 20px;
}

/* Mobile */
@media (max-width: 940px) {
  .mobile-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(5,3,2,.96);
    border-bottom: 1px solid var(--line);
    padding: 10px 20px 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,210,122,.08); }
  .header-inner > .button { display: none; }
  .grid-3, .grid-4, .grid-2, .project-grid, .bio-layout, .footer-grid, .brand-strip { grid-template-columns: 1fr; }
  .hero { min-height: 760px; background-position: 72% center; align-items: flex-end; padding-bottom: 40px; }
  .hero-panel { padding: 30px; }
  .page-hero { background-position: 68% center; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, var(--max)); }
  .brand-logo { width: 54px; }
  .brand-name { font-size: 11px; }
  .hero-panel { padding: 24px; border-radius: 24px; }
  h1 { font-size: 44px; }
  .hero-actions, .form-row { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .section { padding: 66px 0; }
  .card, .project-card, .service-card { padding: 22px; }
}

/* --------------------------------------------------------------------------
   Mobile Header / Navigation Fix
   --------------------------------------------------------------------------
   Purpose:
   - Keeps the logo, browser back button, and mobile menu button inside the
     phone viewport.
   - Turns the mobile menu into a full-width dropdown rather than allowing it
     to drift off screen.
   - Uses compact icon-only controls on very narrow phones.
*/

.site-header,
.header-inner,
.brand-link,
.nav,
.browser-back-button,
.mobile-toggle {
  min-width: 0;
}

.site-header {
  width: 100%;
  overflow: visible;
}

.header-inner {
  position: relative;
}

.brand-link {
  flex: 0 1 auto;
  overflow: hidden;
}

.brand-wordmark,
.brand-name,
.brand-sub {
  min-width: 0;
}

.brand-name,
.brand-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-back-button,
.mobile-toggle {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 940px) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .header-inner {
    min-height: 68px;
    width: min(var(--max), calc(100% - 24px));
    gap: 10px;
  }

  .brand-link {
    flex: 1 1 auto;
    gap: 10px;
    min-width: 0;
  }

  .brand-logo {
    width: 48px;
    flex: 0 0 auto;
  }

  .browser-back-button {
    display: inline-flex;
    min-width: auto;
    padding: 8px 11px;
    font-size: 11px;
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 8px 11px;
    font-size: 12px;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 22px;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    background: rgba(5, 3, 2, 0.985);
    border-top: 1px solid rgba(255, 210, 122, 0.12);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.72);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    display: block;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 210, 122, 0.08);
    font-size: 15px;
  }

  body.menu-open {
    overflow: hidden;
  }
}

@media (max-width: 620px) {
  .header-inner {
    min-height: 64px;
    width: min(var(--max), calc(100% - 18px));
    gap: 8px;
  }

  .brand-logo {
    width: 42px;
  }

  .brand-link {
    gap: 8px;
  }

  .brand-name {
    font-size: 10px;
    letter-spacing: 0.13em;
  }

  .brand-sub {
    display: none;
  }

  .browser-back-button {
    min-width: 52px;
    padding: 7px 9px;
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .mobile-toggle {
    min-width: 52px;
    padding: 7px 9px;
    font-size: 11px;
  }

  .nav {
    max-height: calc(100vh - 64px);
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 430px) {
  .brand-wordmark {
    display: none;
  }

  .brand-logo {
    width: 40px;
  }

  .browser-back-button,
  .mobile-toggle {
    min-width: 44px;
    padding: 8px 10px;
    font-size: 0;
    letter-spacing: 0;
  }

  .browser-back-button::before {
    content: "←";
    font-size: 17px;
    line-height: 1;
  }

  .mobile-toggle::before {
    content: "☰";
    font-size: 17px;
    line-height: 1;
  }
}


/* --------------------------------------------------------------------------
   Project Poster Integration
   --------------------------------------------------------------------------
   Poster asset:
   assets/images/projects/[project]/[poster].png

   Used on:
   - Homepage Selected Work card
   - Work index Ol' Blues card
   - Individual project detail pages
*/
.project-card.has-poster {
  min-height: 0;
  padding: 20px;
}

.project-card-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center top;
  border-radius: 22px;
  border: 1px solid rgba(255, 210, 122, 0.22);
  margin-bottom: 22px;
  background: #080504;
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.42),
    0 0 34px rgba(214, 160, 68, 0.08);
}

.poster-section {
  background:
    radial-gradient(circle at 18% 12%, rgba(214, 160, 68, 0.12), transparent 30%),
    radial-gradient(circle at 82% 50%, rgba(90, 7, 8, 0.18), transparent 34%);
}

.poster-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1.18fr);
  gap: 34px;
  align-items: center;
}

.project-poster-panel {
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(255, 210, 122, 0.2);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)),
    rgba(0, 0, 0, 0.38);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

.project-poster-large {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;
  border: 1px solid rgba(255, 210, 122, 0.24);
  background: #080504;
  box-shadow:
    0 30px 75px rgba(0, 0, 0, 0.56),
    0 0 48px rgba(214, 160, 68, 0.14);
}

.project-poster-panel figcaption {
  margin: 14px 6px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.poster-info-card h2 {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.03;
  letter-spacing: -0.045em;
  margin-bottom: 18px;
}

@media (max-width: 940px) {
  .poster-layout {
    grid-template-columns: 1fr;
  }

  .project-poster-panel {
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 620px) {
  .project-card.has-poster {
    padding: 16px;
  }

  .project-card-poster {
    border-radius: 18px;
    margin-bottom: 18px;
  }

  .project-poster-panel {
    padding: 12px;
    border-radius: 24px;
  }

  .project-poster-large {
    border-radius: 18px;
  }
}


/* Quiet Hours and The Prime Frequency posters use the same project-poster classes as Ol’ Blues.
   Quiet Hours asset: assets/images/projects/quiet-hours/quiet-hours-poster.png
   The Prime Frequency asset: assets/images/projects/the-prime-frequency/prime-frequency-poster.png
   East Hall asset: assets/images/projects/east-hall/east-hall-poster.png */
