/* =========================================================
   STUDIO — Cinematic black theme
   Edit the variables below to rebrand the whole site at once.
   ========================================================= */

:root {
  --bg: #000000;              /* page background (black, per spec)            */
  --fg: #ffffff;              /* primary text                                */
  --muted: #9a9a9a;           /* secondary / muted text                      */
  --line: rgba(255,255,255,0.12); /* hairline borders                        */
  --accent: #e6b24a;          /* single vivid accent — change to rebrand     */
  --accent-2: #ffffff;        /* hover/active                                 */
  --nav-h: 72px;              /* nav height                                   */
  --maxw: 1280px;             /* content max width                            */
  --ease: cubic-bezier(.22,.61,.36,1);
  --font-display: "Helvetica Neue", "Inter", Arial, sans-serif;
  --font-body: "Helvetica Neue", "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* ---------- Persistent fixed navigation ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 56px);
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(0,0,0,0.75), rgba(0,0,0,0));
  backdrop-filter: blur(2px);
  transition: background .4s var(--ease);
}
/* Solid bar once the user scrolls (added by JS) */
.site-nav.scrolled {
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 15px;
}
.brand img { height: 46px; width: auto; }  /* two-line stacked wordmark */
/* Text wordmark fallback — hidden automatically if logo image loads.
   To use ONLY your logo image, delete the .brand-word span in the HTML. */
.brand-word { white-space: nowrap; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .25s var(--ease);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--fg); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--accent);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px; height: 40px;
  cursor: pointer;
  position: relative;
  z-index: 1100;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  margin: 5px auto;
  background: var(--fg);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Homepage full-page showreel ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  width: 100%;
  overflow: hidden;
}
.hero-media,
.hero-media iframe,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Vimeo background sizing — keep it covering the viewport */
.hero-media.vimeo iframe {
  /* 16:9 cover trick */
  width: 100vw;
  height: 56.25vw;            /* 9/16 of viewport width  */
  min-height: 100vh;
  min-width: 177.78vh;        /* 16/9 of viewport height */
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.15) 30%, rgba(0,0,0,0.7));
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}
.hero-logo {
  height: clamp(60px, 12vw, 120px);
  width: auto;
  margin-bottom: 28px;
  filter: drop-shadow(0 2px 34px rgba(0,0,0,0.55)); /* keeps logo legible over bright footage */
}
.hero-statement {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(13px, 2.25vw, 30px);   /* half the original size */
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: none;                          /* two lines controlled by the <br> */
  margin: 0;
  text-shadow: 0 1px 28px rgba(0,0,0,0.5);  /* legibility without a dark mask */
}
.hero-sub {
  margin-top: 22px;
  color: var(--muted);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 13px;
}
.hero-cta {
  margin-top: 40px;
}

/* Sound toggle button */
.sound-toggle {
  position: absolute;
  bottom: 28px; right: 28px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0,0,0,0.4);
  color: var(--fg);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.sound-toggle:hover { border-color: var(--fg); background: rgba(0,0,0,0.65); }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  color: var(--muted);
  animation: floaty 2.4s ease-in-out infinite;
}
.scroll-cue svg { display: block; opacity: 0.85; }
@keyframes floaty { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border: 1px solid var(--fg);
  border-radius: 2px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background .3s var(--ease), color .3s var(--ease);
  cursor: pointer;
}
.btn:hover { background: var(--fg); color: #000; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #000; }
.btn-accent:hover { background: var(--accent-2); color: var(--accent); }

/* ---------- Generic page layout ---------- */
#work { scroll-margin-top: calc(var(--nav-h) + 10px); }

.page {
  padding-top: calc(var(--nav-h) + clamp(40px, 8vw, 90px));
  padding-bottom: clamp(60px, 10vw, 120px);
}
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}
.eyebrow {
  color: var(--accent);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 12px;
  margin: 0 0 16px;
}
.page-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.lead {
  font-size: clamp(18px, 2.2vw, 24px);
  color: #d8d8d8;
  font-weight: 300;
  max-width: 60ch;
}

/* ---------- Work grid ---------- */
.work-grid {
  display: grid;
  grid-template-columns: 1fr;          /* single column — videos stacked one on top of the other */
  gap: clamp(40px, 6vw, 80px);
  margin-top: clamp(40px, 6vw, 70px);
  max-width: 1040px;                    /* keep stacked players a comfortable reading width */
  margin-left: auto;
  margin-right: auto;
}
.work-item { position: relative; }
.work-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0c0c0c;
  border: 1px solid var(--line);
  overflow: hidden;
}
.work-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.work-meta { padding: 18px 2px 0; }
.work-title {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.work-client {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
  margin-top: clamp(30px, 5vw, 60px);
}
.about-body p { margin: 0 0 22px; color: #d2d2d2; }
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 24px;
  border-top: 1px solid var(--line);
  padding-top: 36px;
  margin-top: 10px;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(34px, 5vw, 52px);
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 10px;
}
.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
  margin-top: clamp(50px, 8vw, 90px);
}
.team-card .avatar {
  width: 100%;
  aspect-ratio: 1;
  background: #111 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40"><rect width="40" height="40" fill="%23151515"/></svg>') center/cover;
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.team-name { font-size: 17px; font-weight: 500; }
.team-role { color: var(--muted); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 4px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 90px);
  margin-top: clamp(30px, 5vw, 60px);
}
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.field input,
.field textarea {
  width: 100%;
  background: #0b0b0b;
  border: 1px solid var(--line);
  color: var(--fg);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 16px;
  border-radius: 2px;
  transition: border-color .25s var(--ease);
}
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 150px; resize: vertical; }

.contact-detail { margin-bottom: 30px; }
.contact-detail .k {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.contact-detail .v { font-size: 20px; font-weight: 300; }
.contact-detail .v a:hover { color: var(--accent); }
.socials { display: flex; gap: 22px; margin-top: 8px; }
.socials a {
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); transition: color .25s var(--ease);
}
.socials a:hover { color: var(--fg); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px clamp(20px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
}
.site-footer a:hover { color: var(--fg); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Mobile-only line break helper (hidden on desktop, shown on mobile) */
.m-break { display: none; }

/* Contact form inline status message */
.form-status {
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.5;
  min-height: 1em;
}
.form-status.ok  { color: var(--accent); }
.form-status.err { color: #ff6b6b; }
.form-status a { color: var(--accent); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .work-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr 1fr; }

  /* IMPORTANT: backdrop-filter on the nav creates a containing block that would
     trap the fixed full-screen menu inside the 72px bar. Disable it on mobile so
     the menu overlay can cover the whole viewport and center correctly. */
  .site-nav,
  .site-nav.scrolled { backdrop-filter: none; }

  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    background: rgba(0,0,0,0.97);
    transform: translateX(100%);
    transition: transform .4s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 20px; color: var(--fg); }

  /* Show the mobile line break in the homepage headline */
  .m-break { display: inline; }

  /* Hide the nav logo over the showreel; fade it in once scrolled past the hero.
     JS adds .brand-visible to .site-nav. On pages with no hero it's added
     immediately, so the logo shows normally there. */
  .site-nav .brand img {
    opacity: 0;
    pointer-events: none;
    transition: opacity .45s var(--ease);
  }
  .site-nav.brand-visible .brand img {
    opacity: 1;
    pointer-events: auto;
  }
}
@media (max-width: 520px) {
  .team { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue { animation: none; }
}

/* ---------- About: lead, founder, capabilities ---------- */
.about-lead {
  max-width: 66ch;
  margin-top: clamp(20px, 4vw, 40px);
}
.about-lead p { color: #d2d2d2; margin: 0 0 22px; }

.founder {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
  margin-top: clamp(56px, 9vw, 110px);
}
.founder-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  display: block;
}
.founder-role-big {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.founder-name-small {
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 13px;
  margin: 0 0 26px;
}
.founder-bio p { color: #d2d2d2; margin: 0; }

.capabilities { margin-top: clamp(56px, 9vw, 110px); }
.cap-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  gap: 0 clamp(30px, 5vw, 64px);
}
.cap-list li {
  border-top: 1px solid var(--line);
  padding: 18px 2px;
  font-size: clamp(15px, 1.5vw, 18px);
  color: #ececec;
}

@media (max-width: 860px) {
  .founder { grid-template-columns: 1fr; }
  .founder-photo { max-width: 380px; }
  .cap-list {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
  }
}
