/* ==========================================================================
   Filmmaker Portfolio Template
   Single stylesheet. Edit tokens below to rebrand the whole site.
   ========================================================================== */

:root {
  /* Brand tokens */
  --accent: #d94f2b;
  --accent-ink: #ffffff;

  /* Light theme surfaces */
  --bg: #ffffff;
  --bg-alt: #f4f3f1;
  --surface: #ffffff;
  --ink: #14110f;
  --ink-soft: #5d5751;
  --line: #e3e0dc;

  /* Type */
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Rhythm */
  --wrap: 1240px;
  --gap: 24px;
  --section-y: clamp(64px, 9vw, 128px);
  --radius: 4px;

  --shadow: 0 1px 2px rgba(20, 17, 15, .06), 0 12px 32px rgba(20, 17, 15, .08);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

[data-theme="dark"] {
  --bg: #0d0c0b;
  --bg-alt: #161413;
  --surface: #1b1918;
  --ink: #f5f2ef;
  --ink-soft: #a49d96;
  --line: #2d2a28;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .5);
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; margin: 0; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* --- Layout --------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.stack > * + * { margin-top: var(--gap); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 12px;
  font-weight: 600;
}
.section-head h2 { font-size: clamp(28px, 4vw, 46px); }
.lede { font-size: clamp(18px, 2vw, 22px); color: var(--ink-soft); max-width: 62ch; }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}
.logo { font-weight: 700; font-size: 18px; letter-spacing: -.03em; display: flex; align-items: center; gap: 9px; }
.logo__mark {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  color: var(--accent-ink); font-size: 11px; font-weight: 700; letter-spacing: 0;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 15px;
  color: var(--ink-soft);
  transition: color .2s var(--ease);
  position: relative;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--accent);
}
.header-actions { display: flex; align-items: center; gap: 12px; }

.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.icon-btn:hover { border-color: var(--ink); }
.nav-toggle { display: none; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 85%, #000); }
.btn--ghost { border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--lg { padding: 16px 30px; font-size: 16px; }

/* --- Hero ----------------------------------------------------------------- */
.hero { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 72px); }
.hero h1 {
  font-size: clamp(38px, 7.2vw, 88px);
  max-width: 16ch;
  margin-bottom: 24px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__row { display: flex; flex-wrap: wrap; gap: 40px; align-items: end; justify-content: space-between; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.reel {
  margin-top: 48px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;   /* matches the video, so no letterboxing */
  background: #000;
  box-shadow: var(--shadow);
}
.reel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reel .ph { height: 100%; align-items: start; justify-items: start; padding: 18px; }

/* Sound toggle. Autoplay is muted by browser policy, so this is the way in. */
.reel__sound {
  position: absolute; right: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border: 0; border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, .92);
  color: #14110f;
  font-size: 14px; font-weight: 600;
  backdrop-filter: blur(6px);
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.reel__sound:hover { transform: translateY(-2px); background: #fff; }
.reel__sound:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.reel__sound .icon-unmuted { display: none; }
.reel__sound[aria-pressed="true"] .icon-unmuted { display: block; }
.reel__sound[aria-pressed="true"] .icon-muted { display: none; }

/* --- Credits strip -------------------------------------------------------- */
.credits { border-block: 1px solid var(--line); padding-block: 26px; }
.credits__inner { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(24px, 5vw, 56px); }
.credits__label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.credits__list { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 44px); }
.credits__list li { font-weight: 700; font-size: clamp(15px, 2vw, 20px); letter-spacing: .04em; color: var(--ink-soft); }

/* --- Placeholder media ---------------------------------------------------- */
/* Swap .ph elements for real <img>/<video>. Keeps template asset-free. */
.ph {
  position: relative;
  background: linear-gradient(135deg, #b9b2aa 0%, #6f6862 45%, #38332f 100%);
  display: grid; place-items: center;
  overflow: hidden;
  color: rgba(255, 255, 255, .82);
}
.ph::after {
  content: attr(data-label);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
}
.ph--a { background: linear-gradient(135deg, #7c8ea0, #2c3a48); }
.ph--b { background: linear-gradient(135deg, #c2a07c, #4a3524); }
.ph--c { background: linear-gradient(135deg, #8d9c86, #2f3a2c); }
.ph--d { background: linear-gradient(135deg, #a98a9a, #3d2b36); }
.ph--e { background: linear-gradient(135deg, #9aa3b8, #30343f); }
.ph--f { background: linear-gradient(135deg, #c08a7a, #452721); }

/* --- Work grid ------------------------------------------------------------ */
.grid { display: grid; gap: var(--gap); }
.grid--work { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.work-card { display: block; position: relative; border-radius: var(--radius); overflow: hidden; }
.work-card .ph { aspect-ratio: 16 / 10; transition: transform .5s var(--ease); }
.work-card:hover .ph { transform: scale(1.04); }
.work-card__meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px;
  background: linear-gradient(to top, rgba(10, 9, 8, .82), rgba(10, 9, 8, 0));
  color: #fff;
}
.work-card__meta h3 { font-size: 18px; }
.work-card__meta span { font-size: 13px; opacity: .78; }

/* Filter bar */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter {
  padding: 8px 16px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* --- Role cards ----------------------------------------------------------- */
.grid--roles { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.role-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex; flex-direction: column;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.role-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.role-card__num { font-size: 12px; letter-spacing: .18em; color: var(--accent); font-weight: 700; margin-bottom: 20px; }
.role-card h3 { font-size: 24px; margin-bottom: 12px; }
.role-card p { color: var(--ink-soft); font-size: 16px; }
.role-card__link { margin-top: auto; padding-top: 16px; font-weight: 600; font-size: 15px; display: inline-flex; gap: 8px; }
.role-card__link span { transition: transform .2s var(--ease); }
.role-card:hover .role-card__link span { transform: translateX(4px); }

/* --- Service list --------------------------------------------------------- */
.grid--services { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-item { background: var(--bg); padding: 28px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; transition: background .2s var(--ease); }
.service-item:hover { background: var(--bg-alt); }
.service-item h3 { font-size: 19px; }
.service-item p { font-size: 14px; color: var(--ink-soft); margin: 8px 0 0; }

/* --- Posts ---------------------------------------------------------------- */
.grid--posts { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.post-card .ph { aspect-ratio: 3 / 2; border-radius: var(--radius); margin-bottom: 16px; }
.post-card time { font-size: 13px; color: var(--ink-soft); }
.post-card h3 { font-size: 20px; margin: 8px 0; }
.post-card p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* --- Logo marquee --------------------------------------------------------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 32px; }
.marquee__track { display: flex; gap: 64px; width: max-content; animation: slide 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-size: 22px; font-weight: 700; letter-spacing: .06em; color: var(--ink-soft); white-space: nowrap; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* --- Testimonial ---------------------------------------------------------- */
.quote { max-width: 24ch; }
.quote blockquote { font-size: clamp(24px, 3.4vw, 40px); line-height: 1.2; letter-spacing: -.02em; font-weight: 700; margin: 0 0 24px; max-width: 20ch; }
.quote cite { font-style: normal; font-size: 15px; color: var(--ink-soft); }

/* --- CTA band ------------------------------------------------------------- */
.cta-band { background: var(--ink); color: var(--bg); }
.cta-band h2 { font-size: clamp(30px, 5vw, 60px); max-width: 18ch; margin-bottom: 24px; }
.cta-band p { color: color-mix(in srgb, var(--bg) 70%, transparent); max-width: 52ch; }
.cta-band .btn--primary { background: var(--accent); color: var(--accent-ink); }
.cta-band .btn--ghost { border-color: color-mix(in srgb, var(--bg) 35%, transparent); }

/* --- Two column ----------------------------------------------------------- */
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(32px, 6vw, 80px); align-items: start; }
.two-col .ph { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.portrait {
  width: 100%;
  height: auto;          /* let aspect-ratio win over the height attribute */
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: var(--radius);
  background: var(--bg-alt);
}

/* --- Facts ---------------------------------------------------------------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--gap); }
.fact strong { display: block; font-size: clamp(34px, 5vw, 54px); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.fact span { font-size: 14px; color: var(--ink-soft); }

/* --- Accordion (FAQ) ------------------------------------------------------ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 22px 0;
  font-size: clamp(17px, 2vw, 21px); font-weight: 600;
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; color: var(--accent); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 22px; margin: 0; max-width: 70ch; }

/* --- Forms ---------------------------------------------------------------- */
.form { display: grid; gap: 18px; max-width: 640px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea, .field select {
  font: inherit;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field textarea { min-height: 150px; resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__note { font-size: 13px; color: var(--ink-soft); }
.form-status { font-size: 15px; font-weight: 600; color: var(--accent); }

/* --- Footer --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 64px 32px; background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; }
.footer-grid h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 16px; }
.footer-grid li + li { margin-top: 10px; }
.footer-grid a { font-size: 15px; color: var(--ink-soft); }
.footer-grid a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 13px; color: var(--ink-soft);
}

/* --- Page header ---------------------------------------------------------- */
.page-head { padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(36px, 6vw, 72px); margin-bottom: 20px; }

/* --- Reveal on scroll ----------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 0 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px clamp(20px, 5vw, 48px); font-size: 18px; color: var(--ink); }
  .nav a[aria-current="page"]::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form__row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; justify-content: center; }
}
