/* Brooklyn West Labs — studio home
   Dark, premium, cinematic. System fonts only. */

:root {
  --bg: #0a0b0f;
  --bg-elev: #12141a;
  --bg-card: #16181f;
  --bg-soft: #1a1c24;
  --line: rgba(232, 228, 217, 0.08);
  --line-strong: rgba(232, 228, 217, 0.16);
  --text: #e8e4d9;
  --text-muted: #9a968c;
  --text-dim: #6e6b63;
  --gold: #c9a46c;
  --gold-soft: #a8874f;
  --gold-dim: rgba(201, 164, 108, 0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --wrap: 1080px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: #dfc08a; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--gold); color: #0a0b0f; padding: 0.6rem 1rem;
  border-radius: var(--radius-sm); font-weight: 600;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(10, 11, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  color: var(--text); font-weight: 600; letter-spacing: 0.01em;
}
.brand:hover { color: var(--text); }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 2rem; height: 2rem; border-radius: 6px;
  background: var(--gold-dim); color: var(--gold);
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.04em;
}
.brand-name { font-size: 0.95rem; }

.nav-toggle {
  display: none; background: none; border: 0; color: var(--text);
  width: 2.5rem; height: 2.5rem; padding: 0; cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block; width: 1.15rem; height: 1.5px; background: currentColor;
  position: relative; margin: 0 auto; transition: transform 0.2s var(--ease);
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: ""; position: absolute; left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.site-nav ul {
  display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0;
}
.site-nav a {
  color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
}
.site-nav a:hover,
.site-nav a[aria-current="true"] { color: var(--text); }

@media (max-width: 720px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: rgba(10, 11, 15, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    transform: translateY(-120%);
    opacity: 0; pointer-events: none;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  }
  .site-nav.is-open {
    transform: translateY(0); opacity: 1; pointer-events: auto;
  }
  .site-nav ul { flex-direction: column; gap: 0.85rem; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.75rem 1.25rem; border-radius: 999px;
  font: inherit; font-size: 0.95rem; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn-gold {
  background: var(--gold); color: #0a0b0f;
}
.btn-gold:hover { background: #dfc08a; color: #0a0b0f; }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-lg { padding: 0.9rem 1.5rem; font-size: 1rem; }

/* Hero */
.hero {
  position: relative;
  min-height: clamp(28rem, 78vh, 40rem);
  display: grid; align-items: end;
  padding: 5rem 0 4.5rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(201, 164, 108, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(80, 90, 120, 0.12), transparent 50%),
    linear-gradient(180deg, #0a0b0f 0%, #0e1016 50%, #0a0b0f 100%);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("assets/img/hero-still.jpg");
  background-size: cover;
  background-position: center 40%;
  opacity: 0.18;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.35) 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.35) 55%, transparent 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 38rem; }
.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
}
.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  font-weight: 500; line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hero-lede {
  margin: 0 0 1.75rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--text-muted); max-width: 34rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Sections */
.section-head { margin-bottom: 2.25rem; max-width: 36rem; }
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 500; line-height: 1.15;
  letter-spacing: -0.015em;
}
.section-lede {
  margin: 0.85rem 0 0;
  color: var(--text-muted); font-size: 1.05rem;
}

.principles {
  padding: 4.5rem 0;
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
}
.principle-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
}
.principle-grid li {
  padding: 1.5rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.principle-grid h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem; font-weight: 600;
  color: var(--text);
}
.principle-grid p {
  margin: 0; color: var(--text-muted); font-size: 0.95rem;
}
@media (max-width: 800px) {
  .principle-grid { grid-template-columns: 1fr; }
}

/* Work */
.work { padding: 4.5rem 0; border-top: 1px solid var(--line); }
.work-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 720px) {
  .work-grid { grid-template-columns: 1fr; }
}
.work-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.work-media {
  position: relative; display: block; width: 100%;
  padding: 0; border: 0; background: #000; cursor: pointer;
  aspect-ratio: 16 / 9; overflow: hidden;
}
.work-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.work-media:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
  .work-media:hover img { transform: none; }
}
.play-badge {
  position: absolute; inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 3rem; height: 3rem; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(10, 11, 15, 0.72);
  color: var(--text);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(6px);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.work-media:hover .play-badge {
  background: var(--gold); color: #0a0b0f;
}
.spec-chip {
  position: absolute; top: 0.75rem; left: 0.75rem;
  padding: 0.28rem 0.6rem; border-radius: 999px;
  background: rgba(10, 11, 15, 0.8);
  border: 1px solid var(--line-strong);
  color: var(--gold);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.work-body { padding: 1.25rem 1.35rem 1.5rem; flex: 1; }
.card-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-soft);
}
.work-body h3, .product-copy h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem; font-weight: 600;
}
.work-body p, .product-copy p {
  margin: 0 0 0.75rem;
  color: var(--text-muted); font-size: 0.95rem;
}
.work-body p:last-child, .product-copy p:last-child { margin-bottom: 0; }
.card-meta { font-size: 0.9rem !important; }
.card-meta a { font-weight: 500; }

/* Products */
.products {
  padding: 4.5rem 0;
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
}
.product-list { display: grid; gap: 1rem; }
.product-card {
  padding: 1.5rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease);
}
.product-card:hover { border-color: var(--line-strong); }
.text-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-top: 0.35rem;
  font-size: 0.95rem; font-weight: 600; color: var(--gold);
}
.text-link:hover { color: #dfc08a; }

/* Consulting */
.consult {
  padding: 5rem 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.consult-inner { max-width: 36rem; }
.consult .section-head { margin-inline: auto; margin-bottom: 1.75rem; }
.consult-note {
  margin: 1rem 0 0;
  font-size: 0.85rem; color: var(--text-dim);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  background: #07080b;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 1.5rem;
}
.footer-name {
  margin: 0 0 0.5rem;
  color: var(--text); font-weight: 600;
}
.footer-brand p, .footer-meta p { margin: 0 0 0.35rem; }
.footer-brand a, .footer-meta a { color: var(--text-muted); }
.footer-brand a:hover, .footer-meta a:hover { color: var(--gold); }
.footer-copy { color: var(--text-dim); margin-top: 0.75rem !important; }

/* Film modal */
.film-modal[hidden] { display: none; }
.film-modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 1rem;
}
.film-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.82);
  cursor: pointer;
}
.film-modal-panel {
  position: relative; z-index: 1;
  width: min(100%, 960px);
  background: #0e1016;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}
.film-modal-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
}
.film-modal-title {
  margin: 0; font-size: 0.9rem; font-weight: 600;
  color: var(--text-muted);
}
.film-modal-close {
  background: none; border: 0; color: var(--text-muted);
  width: 2.25rem; height: 2.25rem; cursor: pointer;
  border-radius: 6px;
  display: grid; place-items: center;
}
.film-modal-close:hover { color: var(--text); background: var(--bg-soft); }
.film-modal-stage { background: #000; }
.film-modal-stage video {
  width: 100%; aspect-ratio: 16 / 9; background: #000;
}

body.modal-open { overflow: hidden; }
