/* =========================================================
   AIbyTamz — shared design system
   Brand inherited from TAMZ: paper / ink / red · Montserrat
   Edit tokens once in :root — never hardcode hex in components.
   ========================================================= */

:root {
  /* Palette (TAMZ brand) */
  --paper: #f5f2ec;
  --ink: #333333;
  --red: #9e211a;
  --logo-gray: #5b6267;
  --mid-gray: #9a9a9a;

  /* Hairlines derived from ink/red */
  --line: rgba(44, 46, 53, 0.18);
  --line-soft: rgba(44, 46, 53, 0.12);
  --line-red: rgba(158, 33, 26, 0.7);

  /* Type */
  --sans: "Montserrat", "Avenir Next", Arial, Helvetica, sans-serif;

  /* Layout */
  --maxw: 1600px;
  --pad: 40px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

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

.wrap {
  width: min(100%, var(--maxw));
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- Shared type ---------- */
h1, h2, h3 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 200;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

h1 b, h2 b, h3 b { font-weight: 700; }

h1 {
  max-width: 1180px;
  font-size: clamp(1.95rem, 4.1vw, 4.25rem);
  line-height: 1.18;
}

h2 {
  font-size: clamp(1.95rem, 4.1vw, 4.25rem);
  line-height: 1.18;
}

/* Small uppercase labels / eyebrows */
.eyebrow, .meta, .logo, nav, .btn {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 22px;
  color: var(--red);
}

/* ---------- Header / nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 242, 236, 0.96);
  backdrop-filter: saturate(1.1) blur(6px);
}

header .wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-right: auto;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.logo b { color: var(--red); font-weight: 900; }

.logo img { height: 24px; width: auto; }

nav { display: flex; gap: 30px; }

nav a { position: relative; transition: color 0.2s var(--ease); }
nav a:hover { color: var(--red); }
nav a.active { color: var(--red); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  padding: 14px 18px;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--paper);
}

header .btn { margin-left: 30px; }

/* Mobile toggle */
.nav-toggle { display: none; }

/* ---------- Sections ---------- */
section { border: 0; }

.section-pad {
  padding-top: 96px;
  padding-bottom: 96px;
}

.section-tall {
  min-height: 100svh;
  padding-top: 96px;
  padding-bottom: 96px;
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 54px;
}

.sec-head h2 { max-width: 1000px; }

.sec-head p {
  max-width: 400px;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 72px);
  background:
    radial-gradient(120% 80% at 70% 10%, rgba(158, 33, 26, 0.28) 0%, rgba(158, 33, 26, 0) 55%),
    var(--ink);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20, 20, 22, 0.35) 0%, rgba(20, 20, 22, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 20px;
  min-height: calc(100svh - 72px);
  padding-top: 96px;
  padding-bottom: 52px;
  color: var(--paper);
}

.hero-content .eyebrow { color: var(--paper); opacity: 0.85; }

.hero-sub {
  max-width: 640px;
  margin: 0;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.6;
  color: rgba(245, 242, 236, 0.9);
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.hero-actions .btn-ghost { border-color: rgba(245, 242, 236, 0.5); }
.hero-actions .btn-ghost:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

/* ---------- Proposition ---------- */
.proposition { background: var(--paper); }

.prop-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 60px;
  align-items: start;
}

.prop-copy p {
  margin: 0 0 20px;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.7;
  max-width: 560px;
}

.prop-copy p:last-child { margin-bottom: 0; }

.prop-mark {
  align-self: stretch;
  border-top: 1px solid var(--line-red);
  padding-top: 24px;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 200;
  letter-spacing: 0.05em;
  line-height: 1.35;
  text-transform: uppercase;
}
.prop-mark b { font-weight: 700; }

/* ---------- Media break ---------- */
.media-break {
  min-height: 100svh;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

.media-break-video,
.media-break-poster,
.media-break-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Full-bleed YouTube background (covers the panel, no controls) */
.media-break-yt {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.media-break-yt iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 56.25vw;      /* 16:9 sized by width */
  min-height: 100%;
  min-width: 177.78vh;  /* 16:9 sized by height — guarantees cover */
  border: 0;
}

.media-break-poster {
  background:
    radial-gradient(90% 90% at 30% 20%, rgba(158, 33, 26, 0.35), rgba(158, 33, 26, 0) 60%),
    linear-gradient(160deg, #1c1c1e 0%, #2a2a2d 100%);
}

/* Media-break with content overlay (e.g. Beyond The Fold) */
.media-break-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20, 20, 22, 0) 30%, rgba(20, 20, 22, 0.78) 100%);
}
.media-break-content {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  padding-top: 96px;
  padding-bottom: 56px;
  color: var(--paper);
}
.media-break-content .eyebrow { color: var(--paper); opacity: 0.85; }
.media-break-content h2 { color: var(--paper); }
.media-break-content p {
  max-width: 560px;
  margin: 0;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.6;
  color: rgba(245, 242, 236, 0.9);
}

/* Process laid over a scrub video (studio "How We Make It") */
.process-video {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  background: var(--ink);
  display: flex;
  align-items: center;
}
.process-video .media-break-scrim {
  background: linear-gradient(180deg, rgba(20, 20, 22, 0.6) 0%, rgba(20, 20, 22, 0.78) 100%);
}
.process-video-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 96px;
  padding-bottom: 96px;
  color: var(--paper);
}
.process-video-content h2 { color: var(--paper); }
.process-video .step { border-top-color: rgba(245, 242, 236, 0.25); }
.process-video .step h3 { color: var(--paper); }
.process-video .step p { color: rgba(245, 242, 236, 0.8); }

/* ---------- Services (three ways) ---------- */
.services { background: var(--paper); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  align-items: start;
}

.card {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-red);
}

/* No line above the cards row (e.g. studio, where the hero sits above) */
.cards.no-topline .card { border-top: 0; }
@media (max-width: 980px) {
  /* keep dividers between stacked cards, but none above the first */
  .cards.no-topline .card:not(:first-child) { border-top: 1px solid var(--line-red); }
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 24px 0;
}

.num {
  font-size: 44px;
  font-weight: 200;
  letter-spacing: 0.08em;
  line-height: 1;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.card h3 {
  font-size: clamp(1.6rem, 2.2vw, 2.15rem);
  line-height: 1.16;
}

.statement {
  margin: 16px 0 16px;
  font-size: 15px;
  line-height: 1.55;
  max-width: 320px;
}

.card-desc {
  margin: 0 0 28px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--logo-gray);
  max-width: 340px;
}

ul.spec {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.spec li {
  display: flex;
  gap: 14px;
  border-top: 1px solid var(--line-soft);
  padding-top: 8px;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

ul.spec li span:first-child { width: 38px; flex: 0 0 auto; color: var(--red); }

.timeline {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 12px 0 0;
  margin-top: 34px;
}

/* ---------- Work grid ---------- */
.work { background: var(--paper); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 24px;
}

.tile { display: block; }

.poster {
  aspect-ratio: 4 / 5;
  position: relative;
  background: var(--ink);
  overflow: hidden;
}

.poster img,
.poster video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.tile:hover .poster img,
.tile:hover .poster video { transform: scale(1.04); }

/* Placeholder gradient posters until real media drops in */
.poster.p1 { background: linear-gradient(150deg, #241f1f, #4a2320 90%); }
.poster.p2 { background: linear-gradient(150deg, #20242a, #3a4048 90%); }
.poster.p3 { background: linear-gradient(150deg, #1f1f22, #35251f 90%); }

.tile h3 {
  margin-top: 16px;
  font-size: clamp(1.35rem, 1.85vw, 1.8rem);
  line-height: 1.25;
}

.tile-cat {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--logo-gray);
}

.lab {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lab-original { color: var(--logo-gray); }
.lab-client { color: var(--logo-gray); }
.lab-concept { color: var(--ink); }
.lab-storytelling { color: var(--ink); }
.lab-exp { color: var(--mid-gray); }

/* ---------- Process ---------- */
.process { background: var(--paper); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.step {
  padding: 24px;
  border-top: 1px solid var(--line-red);
  min-height: 240px;
}

.step-num {
  display: block;
  margin-bottom: 48px;
  color: var(--red);
  font-size: 28px;
  font-weight: 200;
  letter-spacing: 0.08em;
  line-height: 1;
}

.step h3 {
  margin-bottom: 16px;
  font-size: clamp(1.3rem, 1.7vw, 1.7rem);
}

.step p {
  margin: 0;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.6;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  color: var(--logo-gray);
}

/* ---------- GLAD teaser ---------- */
.glad {
  position: relative;
  overflow: hidden;
  min-height: 92svh;
  background:
    radial-gradient(90% 90% at 75% 15%, rgba(158, 33, 26, 0.4), rgba(158, 33, 26, 0) 55%),
    linear-gradient(160deg, #141416 0%, #26140f 100%);
  color: var(--paper);
  display: flex;
  align-items: flex-end;
}

.glad-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.55;
}

.glad .wrap { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 56px; }

.glad .eyebrow { color: var(--paper); opacity: 0.85; }

.glad-title {
  font-size: clamp(4rem, 16vw, 12rem);
  font-weight: 200;
  letter-spacing: 0.12em;
  line-height: 0.9;
  margin: 0 0 24px;
}

.glad p {
  max-width: 560px;
  margin: 0 0 28px;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.6;
  color: rgba(245, 242, 236, 0.9);
}

.glad .btn:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

/* ---------- Closer / CTA ---------- */
.closer {
  background: var(--ink);
  color: var(--paper);
  padding-top: 96px;
  padding-bottom: 40px;
}

.closer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
}

.closer h2 { max-width: 860px; color: var(--paper); }

.closer p {
  max-width: 460px;
  margin: 0 0 28px;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.6;
}

.closer-foot {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid rgba(245, 242, 236, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.closer-foot .logo { color: var(--paper); }
.closer-foot .meta { color: rgba(245, 242, 236, 0.6); }
.closer-foot a.meta:hover { color: var(--paper); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 9;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-top: 1px solid var(--line-soft);
    padding: 8px var(--pad) 24px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }

  nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  nav a { padding: 16px 0; border-top: 1px solid var(--line-soft); }
  nav a:first-child { border-top: 0; }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    margin-left: 16px;
    border: 1px solid currentColor;
    background: transparent;
    cursor: pointer;
    padding: 0;
    color: var(--ink);
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 1px;
    background: currentColor;
    transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .prop-grid,
  .cards,
  .work-grid,
  .steps,
  .closer-top { grid-template-columns: 1fr; }

  .steps .step,
  .cards .card { border-top: 1px solid var(--line-red); }

  .sec-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  :root { --pad: 18px; }

  .hero h1 { font-size: clamp(2.2rem, 10.5vw, 3.25rem); }
  .glad-title { font-size: clamp(2.8rem, 17vw, 6rem); letter-spacing: 0.05em; }
}

/* =========================================================
   Interior-page components (work / studio / originals / contact)
   ========================================================= */

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: var(--paper); }
.page-hero .wrap { padding-top: 84px; padding-bottom: 44px; }
.page-hero h1 { margin-bottom: 24px; }
.page-lead {
  max-width: 640px;
  margin: 0;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.6;
  color: var(--logo-gray);
}

/* ---------- Filter chips ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.chip {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--logo-gray);
  cursor: pointer;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip.active { color: var(--paper); background: var(--red); border-color: var(--red); }

/* ---------- Archive grid (12-col spans) ---------- */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 44px 24px;
}
.archive-grid .span4 { grid-column: span 4; }
.archive-grid .span6 { grid-column: span 6; }
.archive-grid .span8 { grid-column: span 8; }
.archive-grid .span12 { grid-column: span 12; }
.archive-grid .span6 .poster,
.archive-grid .span8 .poster { aspect-ratio: 16 / 10; }
.archive-grid .span12 .poster { aspect-ratio: 21 / 9; }

/* extra placeholder poster variants */
.poster.p4 { background: linear-gradient(150deg, #20201f, #402a20 90%); }
.poster.p5 { background: linear-gradient(150deg, #1c2026, #2c3138 90%); }
.poster.p6 { background: linear-gradient(150deg, #241f22, #3a2030 90%); }

/* ---------- Studio: why + relationship ---------- */
.why { background: var(--paper); }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.why-item { padding: 24px; border-top: 1px solid var(--line-red); min-height: 220px; }
.why-item h3 { margin-bottom: 16px; font-size: clamp(1.3rem, 1.7vw, 1.7rem); }
.why-item p {
  margin: 0;
  max-width: 340px;
  font-size: 14px;
  line-height: 1.6;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  color: var(--logo-gray);
}

.relationship { background: var(--ink); color: var(--paper); }
.relationship .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 60px;
  align-items: center;
}
.relationship h2 { color: var(--paper); }
.relationship p {
  max-width: 520px;
  margin: 0 0 20px;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.7;
  color: rgba(245, 242, 236, 0.85);
}
.relationship p:last-child { margin-bottom: 0; }

/* ---------- Originals: GLAD feature ---------- */
.glad-feature {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 72px);
  background:
    radial-gradient(90% 90% at 75% 10%, rgba(158, 33, 26, 0.42), rgba(158, 33, 26, 0) 55%),
    linear-gradient(160deg, #141416 0%, #26140f 100%);
  color: var(--paper);
  display: flex;
  align-items: flex-end;
}
.glad-feature .glad-bg { opacity: 1; }
.glad-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 15, 17, 0.2) 0%, rgba(15, 15, 17, 0.55) 55%, rgba(15, 15, 17, 0.82) 100%);
  pointer-events: none;
}
.glad-feature .wrap { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 64px; }
.glad-feature .eyebrow { color: var(--paper); opacity: 0.85; }
.glad-feature .glad-title { margin-bottom: 24px; }
.glad-feature p {
  max-width: 620px;
  margin: 0 0 12px;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.6;
  color: rgba(245, 242, 236, 0.9);
}

/* A second original feature (Agency) — steel tone to distinguish from GLAD's red */
.glad-feature.agency {
  background:
    radial-gradient(90% 90% at 25% 12%, rgba(91, 98, 103, 0.55), rgba(91, 98, 103, 0) 55%),
    linear-gradient(160deg, #12141a 0%, #1e2630 100%);
}

.glad-about { background: var(--paper); }
.glad-about .prop-grid { align-items: start; }

/* Originals gallery (3-column film-still wall) */
.gallery-sec { background: var(--paper); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery .poster { aspect-ratio: 16 / 9; }

/* Reels wall — vertical 9:16 clips, hover to play (GLAD scenes) */
.reel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 13 clips -> 4 rows */
  gap: 18px;
}
@media (max-width: 900px) { .reel-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .reel-grid { grid-template-columns: repeat(2, 1fr); } }
.reel {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--ink);
  cursor: pointer;
}
.reel video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.reel:hover video { transform: scale(1.03); }

/* Reel item = clip + caption */
.reel-item { display: flex; flex-direction: column; gap: 10px; }
.reel-cap {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--logo-gray);
}

/* Landscape reels (16:9) — e.g. Agency */
.reel.land { aspect-ratio: 16 / 9; }
.reel-grid.land { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .reel-grid.land { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .reel-grid.land { grid-template-columns: 1fr; } }

/* ---------- Contact form ---------- */
.contact-page { background: var(--paper); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 60px;
  align-items: start;
}
.form-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.form-row label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--logo-gray);
}
.form-row input,
.form-row textarea,
.form-row select {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 2px;
  transition: border-color 0.2s var(--ease);
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus { outline: none; border-color: var(--red); }
.form-row textarea { resize: vertical; min-height: 120px; }
.form-actions { margin-top: 8px; }
.form-success { margin: 22px 0 0; color: var(--red); font-size: 14px; font-weight: 700; letter-spacing: 0.02em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button.btn { font-family: var(--sans); cursor: pointer; background: transparent; color: var(--ink); }

.contact-aside { border-top: 1px solid var(--line-red); padding-top: 28px; }
.contact-aside h3 { font-size: clamp(1.2rem, 1.5vw, 1.5rem); margin-bottom: 20px; }
.contact-aside p {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.6;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}
.contact-aside a:hover { color: var(--red); }
.contact-aside .meta { display: block; margin-top: 24px; color: var(--mid-gray); }

/* ---------- Light footer (non-home pages) ---------- */
.site-foot { background: var(--ink); color: var(--paper); padding: 56px 0 40px; }
.site-foot .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-foot .logo { color: var(--paper); }
.site-foot .meta { color: rgba(245, 242, 236, 0.6); }
.site-foot a.meta:hover { color: var(--paper); }

/* ---------- Responsive (interior pages) ---------- */
@media (max-width: 980px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-item { border-top: 1px solid var(--line-red); }
  .relationship .wrap { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .archive-grid { grid-template-columns: 1fr; }
  .archive-grid .span4,
  .archive-grid .span6,
  .archive-grid .span8,
  .archive-grid .span12 { grid-column: auto; }
  .archive-grid .span6 .poster,
  .archive-grid .span8 .poster,
  .archive-grid .span12 .poster { aspect-ratio: 4 / 5; }

  .gallery { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .gallery { grid-template-columns: 1fr; }
}

/* ---------- Film lightbox (on-site player) ---------- */
.film-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 10, 11, 0.94);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.film-lightbox.open { display: flex; opacity: 1; }
.film-frame {
  position: relative;
  width: min(100%, 1280px);
  aspect-ratio: 16 / 9;
  background: #000;
}
.film-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film-close {
  position: absolute;
  top: 20px;
  right: 24px;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid rgba(245, 242, 236, 0.5);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.film-close:hover { background: var(--red); border-color: var(--red); }
