/* =========================================================
   Lodger Films — Landing Page styles
   Light, editorial body bookended by two dark "nested cards"
   (the hero stage at the top, the footer at the bottom).
   ========================================================= */

:root {
  --frame-pad: 1.25rem;     /* 20px white-frame gutter */
  --frame-radius: 3rem;     /* 48px */

  --ink: #0b0b0c;
  --paper: #ffffff;
  --soft: #f5f4f1;          /* warm off-white section */
  --muted: #6b6b70;
  --muted-2: #9a9aa0;
  --line: rgba(0, 0, 0, 0.10);
  --line-soft: rgba(0, 0, 0, 0.06);

  --maxw: 1320px;

  --silver: linear-gradient(
    100deg,
    #9a9aa1 0%, #c9c9cf 30%, #ffffff 48%,
    #f4f4f6 52%, #c9c9cf 70%, #9a9aa1 100%
  );

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0;
}

/* ============================ HERO ============================ */
.frame {
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--frame-pad);
  display: flex;
  flex-direction: column;
}

.site-header {
  position: relative;
  z-index: 50;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.5rem 0.75rem 1.1rem;
}
.brand {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  justify-self: start;
}
.nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  justify-self: center;
}
.nav a, .nav .nav-trigger {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.01em;
  transition: color 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.nav a:hover, .nav .nav-trigger:hover { color: var(--ink); }

.nav-item { position: relative; }
.nav-trigger .chev { width: 9px; height: 9px; transition: transform 0.3s ease; }
.nav-item:hover .nav-trigger .chev { transform: rotate(180deg); }
.dropdown {
  position: absolute;
  top: calc(100% + 0.85rem);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 0.5rem;
  min-width: 200px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-item::after { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 0.95rem; }
.dropdown a {
  font-size: 14px;
  color: #44444a;
  padding: 0.6rem 0.85rem;
  border-radius: 11px;
  justify-content: flex-start;
  transition: background 0.2s ease, color 0.2s ease;
}
.dropdown a:hover { background: #f3f3f4; color: var(--ink); }

.start-btn {
  justify-self: end;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.start-btn:hover { transform: translateY(-1px); background: #1c1c1f; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26); }

.stage {
  position: relative;
  flex: 1 1 auto;
  border-radius: var(--frame-radius);
  overflow: hidden;
  background: #0b0b0c;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  isolation: isolate;
}
.video-cover {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  /* Reel fades in over the dark gradient once it starts playing (landing.js adds .is-in). */
  opacity: 0;
  transition: opacity 1.1s ease;
}
.video-cover.is-in { opacity: 1; }
.video-cover iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: calc((100vh - 2 * var(--frame-pad)) * 1.7778);
  height: calc((100vw - 2 * var(--frame-pad)) * 0.5625);
  min-width: calc(100vw - 2 * var(--frame-pad));
  min-height: calc(100vh - 2 * var(--frame-pad));
  transform: translate(-50%, -50%);
  border: 0;
}
.video-poster {
  position: absolute; inset: 0; z-index: 0;
  /* Dark cinematic gradient sits behind the reel; the video fades in over it on play. */
  background: radial-gradient(120% 90% at 50% 0%, #2a2a2e 0%, #141416 55%, #0b0b0c 100%);
}
.vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0) 0%, rgba(0,0,0,0.05) 45%, rgba(0,0,0,0.30) 78%, rgba(0,0,0,0.50) 100%);
}
.hero-content {
  position: relative; z-index: 2; width: 100%;
  text-align: center; color: #fff;
  padding: 0 1.5rem 5.25rem;
  display: flex; flex-direction: column; align-items: center;
}
.headline {
  font-weight: 300;
  /* A1 RESOLVED: rem-anchored clamp (not px) for WCAG 1.4.4 200%-zoom legibility.
     36px..72px at 16px root; single fluid size — no 768px override, no hard snap (D-09).
     Mid-term 1rem+5vw stays under the 2.25rem floor at ≤375px so the min holds. */
  font-size: clamp(2.25rem, 1rem + 5vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  margin: 0;
  max-width: none;
  overflow-wrap: break-word;
}
.headline .accent {
  font-weight: 700;
  letter-spacing: -0.01em;
  background: var(--silver);
  background-size: 250% 100%;
  background-position: 120% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  animation: silver-sweep 5s linear infinite;
}
@keyframes silver-sweep {
  0%   { background-position: 120% 0; }
  100% { background-position: -40% 0; }
}
.hero-desc {
  max-width: 440px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
  margin: 1.5rem 0 0;
}
.cta-pill {
  margin-top: 2.25rem;
  background: #fff; color: var(--ink);
  font-size: 15px; font-weight: 500; letter-spacing: 0.01em;
  padding: 1rem 2.25rem;
  border-radius: 999px; border: 0; cursor: pointer;
  font-family: inherit; text-decoration: none; display: inline-block;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, background 0.35s ease;
}
.cta-pill:hover { transform: translateY(-2px); background: #f2f2f2; box-shadow: 0 16px 40px rgba(0,0,0,0.32); }

.scroll-cue {
  position: absolute; bottom: 0.9rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.6); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
}
.scroll-cue .bar { width: 1px; height: 34px; background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0%,100% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* word reveal */
.word { display: inline-block; opacity: 0; transform: translateY(15px); filter: blur(4px); will-change: opacity, transform, filter; }
.word.in { opacity: 1; transform: translateY(0); filter: blur(0);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease); }
.reveal-late { opacity: 0; transform: translateY(15px); filter: blur(4px); }
.reveal-late.in { opacity: 1; transform: translateY(0); filter: blur(0);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease); }

/* ====================== PAGE CONTAINER ====================== */
.page { width: 100%; }
.section { padding: clamp(5rem, 11vw, 9.5rem) var(--frame-pad); }
.container { max-width: var(--maxw); margin: 0 auto; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-title {
  font-weight: 300; letter-spacing: -0.025em; line-height: 1.04;
  font-size: clamp(34px, 5vw, 58px); margin: 0.9rem 0 0; max-width: 16ch;
}
.section-lead { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 360px; margin: 0; }

/* ===================== AWARDS & RECOGNITION ===================== */
.awards-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
/* 3-row baseline grid: numbers (top-aligned), logos (bottom), labels (one line) */
.awards-row {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  grid-template-rows: auto auto auto;
  column-gap: clamp(2rem, 5vw, 5rem);
  row-gap: 1.5rem;
  width: 100%;
}
.awards-row > :nth-child(1) { grid-column: 1; }
.awards-row > :nth-child(2) { grid-column: 2; }
.awards-row > :nth-child(3) { grid-column: 3; }
.awards-row > :nth-child(4) { grid-column: 4; }
.awards-row > :nth-child(5) { grid-column: 5; }
.award {
  display: grid;
  grid-row: 1 / span 3;
  grid-template-rows: subgrid;
  justify-items: center;
  text-align: center;
}
.award .count {
  align-self: start;
  font-weight: 300; font-size: clamp(60px, 8vw, 100px); line-height: 0.85;
  letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--ink);
}
.award .count .x { font-size: 0.42em; color: var(--muted-2); vertical-align: baseline; margin-left: 0.08em; }
.award-logo { align-self: end; display: flex; align-items: flex-end; justify-content: center; height: 70px; }
.award-logo img { height: 100%; width: auto; object-fit: contain; }
.award-logo.emmy { height: 100px; }
.award-logo.cine { height: 116px; }
.award-label { align-self: end; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0; }
.awards-divider { grid-row: 1 / span 3; width: 1px; align-self: stretch; background: var(--line); }

/* ===================== SELECTED WORK ===================== */
.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter {
  font-family: inherit; font-size: 13px; letter-spacing: 0.01em;
  color: var(--muted); background: transparent;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.5rem 1.1rem; cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.filter:hover { color: var(--ink); border-color: rgba(0,0,0,0.25); }
.filter.active { color: #fff; background: var(--ink); border-color: var(--ink); }

.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.25rem, 2.5vw, 2.25rem); }

.work-card {
  position: relative; cursor: pointer;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.work-card.hide { display: none; }
.work-thumb {
  position: relative; overflow: hidden; border-radius: 22px;
  aspect-ratio: 16 / 9; background: #111;
  box-shadow: 0 18px 50px rgba(0,0,0,0.10);
}
.work-thumb img.poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.9s var(--ease), opacity 0.6s ease;
  transform: scale(1.04);
}
.work-card:hover .work-thumb img.poster { transform: scale(1.08); }
.work-thumb .vid-layer {
  position: absolute; inset: 0; z-index: 2; opacity: 0;
  transition: opacity 0.6s ease; pointer-events: none;
}
.work-thumb .vid-layer.show { opacity: 1; }
.work-thumb .vid-layer iframe {
  position: absolute; top: 50%; left: 50%;
  width: 177.78%; height: 100%;
  min-width: 100%; min-height: 177.78%; /* cover 16:9 box */
  transform: translate(-50%, -50%); border: 0;
}
.work-thumb::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 45%);
  opacity: 0.9;
}
.play-badge {
  position: absolute; z-index: 4; left: 0.85rem; bottom: 0.85rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.34rem 0.7rem 0.34rem 0.36rem; border-radius: 999px;
  background: rgba(255,255,255,0.14);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 6px 20px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.35);
  color: #fff; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.01em; white-space: nowrap;
  opacity: 1; transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.work-thumb:hover .play-badge,
.work-card:focus-visible .play-badge { opacity: 0; transform: translateY(4px) scale(0.96); pointer-events: none; }
.play-badge .dot {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);
  display: grid; place-items: center;
}
.play-badge .dot svg { width: 8px; height: 8px; margin-left: 1px; }

.work-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: 1.1rem; }
.work-meta .left { display: flex; align-items: baseline; gap: 0.85rem; }.work-index { font-size: 13px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.work-title { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; margin: 0; }
.work-sub { font-size: 13px; color: var(--muted); margin: 0.25rem 0 0; }
.work-dur { font-size: 13px; color: var(--muted-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Selected Work — "explore full work" pill (bottom-right) */
.work-foot { display: flex; justify-content: flex-end; margin-top: clamp(2rem, 4vw, 3.25rem); }
.more-link {
  display: inline-flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--ink);
  font-size: 14px; letter-spacing: 0.01em;
  padding: 0.5rem 0.55rem 0.5rem 1.15rem;
  border: 1px solid var(--line); border-radius: 999px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.more-link:hover { border-color: rgba(0,0,0,0.28); background: #fafafa; }
.more-arrow {
  width: 27px; height: 27px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center; flex: 0 0 auto;
  transition: transform 0.35s var(--ease);
}
.more-arrow svg { width: 12px; height: 12px; }
.more-link:hover .more-arrow { transform: translateX(3px); }
.more-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* ===================== SERVICES ===================== */
.services { background: var(--soft); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.svc {
  padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.svc .num { font-size: 13px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.svc h3 { font-size: 26px; font-weight: 400; letter-spacing: -0.02em; margin: 1.6rem 0 0.9rem; }
.svc p { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0; max-width: 34ch; }
.svc .tags { display: flex; flex-wrap: wrap; gap: 0.4rem 0.5rem; margin-top: 1.4rem; }
.svc .tags span { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.75rem; }

/* ===================== CLIENTS MARQUEE ===================== */
.clients { padding: clamp(2rem, 4vw, 3.25rem) 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.clients .eyebrow { text-align: center; margin-bottom: 1.5rem; }
.marquee { position: relative; display: flex; overflow: hidden; width: min(92%, 1440px); margin-inline: auto; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track { display: flex; align-items: center; gap: 3.5rem; padding-right: 3.5rem; white-space: nowrap; animation: marquee 60s linear infinite; }
.marquee-track .client { font-size: clamp(20px, 2.4vw, 28px); font-weight: 300; letter-spacing: -0.01em; color: #6f6f73; transition: color 0.3s ease; text-decoration: none; cursor: pointer; }
.marquee-track .client:hover { color: var(--ink); }
.marquee-track .sep { width: 6px; height: 6px; border-radius: 50%; background: #d7d7da; flex: 0 0 auto; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===================== ABOUT ===================== */
.about-section { position: relative; }
.about-grid { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.about-statement { font-weight: 300; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.28; letter-spacing: -0.02em; margin: 0; text-wrap: pretty; }
.about-statement em { font-style: normal; color: var(--muted-2); }
.about-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; padding-top: 0.6rem; }
.about-meta .item .k { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 0.5rem; }
.about-meta .item .v { font-size: 16px; line-height: 1.5; margin: 0; color: var(--ink); }
.about-meta .item .v span { color: var(--muted); }

/* crew / team / friends — three portraits side by side */
.about-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.5rem, 1vw, 0.85rem);
}
.about-photos .ph {
  position: relative;
  z-index: 1;
  margin: 0;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 14px 38px rgba(0,0,0,0.10);
}
/* higher-specificity transition so hover stays snappy (and survives the reveal stagger) */
.about-section .about-photos .ph {
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease), opacity 0.9s var(--ease);
  will-change: transform;
}
.about-photos .ph:hover {
  /* Uniform scale (owner issue #4): the old scale(1.2, 1.08) stretched photos
     horizontally on hover. Match the work-card style with a single-value scale. */
  transform: scale(1.06);
  z-index: 6;
  box-shadow: 0 32px 72px rgba(0,0,0,0.28);
}

/* Calm entrance: photos rise + fade in on load. Pure-CSS load animation that
   replaces the JS scroll-reveal (which could leave large image blocks stuck
   hidden/pale). Shared keyframe — also used by .bts-grid/.team-photo in about.css. */
@keyframes ph-rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  /* Scroll-driven: each photo rises+fades as it scrolls into view (not on load),
     so below-the-fold sections animate when you reach them. Pure CSS — no observer.
     Browsers without scroll timelines fall through to the static (visible) images. */
  @supports (animation-timeline: view()) {
    .about-photos .ph {
      animation-name: ph-rise;
      animation-fill-mode: both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}

/* bottom-right animated "full story" badge */
.about-foot { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; justify-content: flex-end; gap: 1.5rem; }
.about-foot-note { font-size: 13px; letter-spacing: 0.04em; color: var(--muted-2); }
.story-badge { position: relative; flex: 0 0 auto; width: 122px; height: 122px; display: grid; place-items: center; text-decoration: none; }
.story-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: 50% 50%; animation: ring-spin 26s linear infinite; }
.story-ring text { fill: var(--muted); font-size: 9px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; font-family: 'Inter', sans-serif; }
@keyframes ring-spin { to { transform: rotate(360deg); } }
.story-core {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(0,0,0,0.22);
  transition: transform 0.45s var(--ease), background 0.45s ease;
}
.story-core svg { width: 17px; height: 17px; transition: transform 0.45s var(--ease); }
.story-badge:hover .story-core { transform: scale(1.09); background: #1c1c1f; }
.story-badge:hover .story-core svg { transform: translate(2px, -2px); }
.story-badge:hover .story-ring { animation-duration: 9s; }
.story-badge:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 50%; }

/* ===================== FOOTER (dark card) ===================== */
.site-footer { padding: 0 var(--frame-pad) var(--frame-pad); }
.footer-card {
  background: var(--ink); color: #fff;
  border-radius: var(--frame-radius);
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.75rem, 4vw, 4rem) clamp(2rem, 3.5vw, 3rem);
  position: relative; overflow: hidden;
}
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr 1fr; gap: 2.5rem; padding-bottom: clamp(3rem, 6vw, 5rem); }
.footer-brand .fb-mark { font-size: 30px; font-weight: 500; letter-spacing: -0.02em; margin: 0; color: #fff; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 14px; line-height: 1.6; margin: 1rem 0 1.75rem; max-width: 30ch; }
.footer-brand .start-btn { background: #fff; color: var(--ink); box-shadow: none; }
.footer-brand .start-btn:hover { background: #ececec; transform: translateY(-1px); }
.fcol h4 { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin: 0 0 1.2rem; font-weight: 500; }
.fcol a, .fcol .line { display: block; color: rgba(255,255,255,0.78); text-decoration: none; font-size: 14px; line-height: 1.5; margin-bottom: 0.7rem; transition: color 0.2s ease; }
.fcol a:hover { color: #fff; }
.fcol .line { color: rgba(255,255,255,0.55); }
.fcol a.ext { display: flex; width: fit-content; align-items: center; gap: 0.35em; }
.fcol a.ext .ext-arrow { font-size: 12px; opacity: 0.45; transition: transform 0.2s ease, opacity 0.2s ease; }
.fcol a.ext:hover .ext-arrow { opacity: 1; transform: translate(1px, -1px); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,0.10); }
.footer-bottom small { color: rgba(255,255,255,0.45); font-size: 12.5px; letter-spacing: 0.02em; }
.footer-bottom .socials { display: flex; gap: 1.5rem; }
.footer-bottom .socials a { color: rgba(255,255,255,0.6); font-size: 12.5px; text-decoration: none; letter-spacing: 0.04em; transition: color 0.2s ease; }
.footer-bottom .socials a:hover { color: #fff; }

/* ===================== LIGHTBOX ===================== */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 4vmin;
  background: rgba(8, 8, 9, 0.86); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox .lb-inner {
  position: relative; width: min(1100px, 100%); aspect-ratio: 16 / 9;
  border-radius: 18px; overflow: hidden; background: #000;
  transform: scale(0.96); transition: transform 0.45s var(--ease);
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
}
.lightbox.open .lb-inner { transform: scale(1); }
.lightbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lb-close {
  position: absolute; top: clamp(1rem, 4vmin, 2.5rem); right: clamp(1rem, 4vmin, 2.5rem); z-index: 2;
  background: none; border: 0; color: rgba(255,255,255,0.8); cursor: pointer;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.lb-close:hover { color: #fff; }

/* ===================== SCROLL REVEALS ===================== */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in { opacity: 1; transform: translateY(0); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-stagger] > * { opacity: 0; transform: translateY(26px); }
[data-stagger].in > * { opacity: 1; transform: translateY(0); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .word, .reveal-late, .reveal, [data-stagger] > * { opacity: 1 !important; transform: none !important; filter: none !important; }
  .headline .accent { animation: none; background-position: 50% 0; }
  .marquee-track { animation: none; }
  .story-ring { animation: none; }
  .scroll-cue { display: none; }
  html { scroll-behavior: auto; }
  .mobile-menu { transition: none; transform: none; } /* D-08 honor reduced motion */
}

/* ===================== MOBILE NAV (base — desktop hides both) ===================== */
.nav-toggle { display: none; }   /* shown only ≤768px */
.mobile-menu { display: none; }  /* shown only ≤768px, driven by .menu-open */
/* The overlay (z-index:100) is nested inside .site-header, whose own z-index:50
   stacking context caps it BELOW root-level page chrome like work.html's sticky
   .work-toolbar (z-index:55) — so the filter pills bled on top of the open menu.
   While the menu is open, lift the whole header context above that chrome.
   (.menu-open is only ever set at ≤768px via the hamburger; harmless elsewhere.) */
.menu-open .site-header { z-index: 120; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-foot { position: static; margin-top: 2.5rem; }
}
@media (max-width: 768px) {
  :root { --frame-pad: 0.6rem; --frame-radius: 2rem; }
  /* 3 columns: brand | Start-a-Project CTA | hamburger. The nav is display:none
     and .mobile-menu is position:fixed, so the only in-flow items are these three
     — a 2-column grid wrapped the hamburger onto a second row (RESP-02 bug). */
  .site-header { grid-template-columns: 1fr auto auto; gap: 0.5rem; padding: 0.4rem 0.4rem 0.85rem; }
  .nav { display: none; }
  .start-btn { justify-self: end; padding: 0.6rem 1.15rem; font-size: 13px; }

  /* ---- Hamburger trigger (D-21: 44px tap target, right-grouped with CTA) ---- */
  .nav-toggle {
    display: inline-grid; place-items: center;
    min-width: 44px; min-height: 44px;
    background: none; border: 0; cursor: pointer; color: var(--ink);
    justify-self: end; padding: 0;
  }
  .nav-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
  /* Hamburger glyph drawn with currentColor borders (no images) */
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    content: ""; display: block; width: 22px; height: 2px;
    background: currentColor; border-radius: 2px;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before { position: absolute; top: -7px; left: 0; }
  .nav-toggle-bars::after { position: absolute; top: 7px; left: 0; }

  /* ---- Full-screen overlay menu (D-01) — animatable via opacity/visibility/transform ---- */
  .mobile-menu {
    display: flex; flex-direction: column; justify-content: center;
    position: fixed; inset: 0; z-index: 100;
    background: rgba(8, 8, 9, 0.96); backdrop-filter: blur(8px);
    color: #fff;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity 0.32s var(--ease), visibility 0.32s, transform 0.32s var(--ease);
    padding: clamp(1.5rem, 8vw, 3rem);
    overscroll-behavior: contain;
  }
  .menu-open .mobile-menu { opacity: 1; visibility: visible; transform: translateY(0); }

  .mobile-menu-nav a {
    display: block; color: #fff; text-decoration: none;
    font-size: clamp(28px, 8vw, 44px); font-weight: 300; letter-spacing: -0.02em;
    padding: 0.5rem 0; min-height: 44px;
  }
  /* D-02: indented inline-expanded Work categories */
  .mobile-menu-nav a.mm-sub {
    font-size: clamp(18px, 5vw, 24px); padding-left: 1.25rem;
    color: rgba(255, 255, 255, 0.75);
  }
  .mobile-menu-close {
    position: absolute; top: 1rem; right: 1rem;
    min-width: 44px; min-height: 44px;
    background: none; border: 0; color: #fff; cursor: pointer;
    font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  }
  .mobile-menu a:focus-visible,
  .mobile-menu-close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
  /* .headline font-size override removed (D-09): the base rem clamp() now scales
     fluidly across the 768px boundary with no hard 72px→36px snap. */
  .hero-desc { font-size: 14px; max-width: 320px; }
  /* More bottom padding lifts the headline+desc clear of the bottom scroll-cue.
     Needed because the fluid clamp() headline is taller here than the old fixed
     36px was, so the desc was overlapping the "Scroll" cue (RESP-04 bug). */
  .hero-content { padding: 0 1.25rem 6rem; }
  .cta-pill { margin-top: 1.75rem; padding: 0.9rem 1.9rem; }
  .work-grid { grid-template-columns: 1fr; }
  .awards-row { display: flex; flex-direction: column; gap: 3rem; }
  .award { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
  .awards-divider { width: 60%; height: 1px; align-self: center; }
  .award .count { font-size: clamp(52px, 16vw, 80px); }
  .svc-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .section-head { margin-bottom: 2.25rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .about-foot { flex-direction: column; align-items: flex-end; gap: 1rem; }
}
/* ---- Lightbox phone fit-to-screen (D-15). Values [ASSUMED per A2] — tune on device. ---- */
@media (max-width: 768px) {
  .lightbox { padding: 16px; }
  .lightbox .lb-inner {
    width: 100%;
    max-height: calc(100svh - 32px); /* cap height so 16:9 never overflows landscape phones */
  }
  .lb-close {
    min-width: 44px; min-height: 44px; /* thumb-reachable (D-21) */
    top: max(env(safe-area-inset-top), 12px); right: 12px;
  }
}
@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; }
  .about-meta { grid-template-columns: 1fr 1fr; }
}
