/* ==========================================================================
   GENERIC VIDEO — Encinitas, California
   Design system: charcoal base + brand yellow (#FFDE59, sampled from logo)
   Type: Archivo (display) / Inter (body) / JetBrains Mono (labels)
   ========================================================================== */

/* ---------- 1. TOKENS ---------------------------------------------------- */
:root {
  /* Brand */
  --yellow:        #FFDE59;
  --yellow-deep:   #E8C63F;
  --on-yellow:     #0A0A0A;

  /* Surfaces (dark is the default and only mode — this is a video brand) */
  --bg:            #141414;
  --bg-deep:       #0A0A0A;
  --surface:       #1B1B1B;
  --surface-2:     #232323;
  --border:        #2B2B2B;
  --border-strong: #3A3A3A;

  /* Text */
  --text:          #D9D9D9;
  --text-bright:   #F2F2F2;
  --text-dim:      #8A8A8A;

  /* Type families */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Spacing scale (4/8 rhythm) */
  --space-1: 4px;   --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
  --space-5: 24px;  --space-6: 32px;  --space-7: 48px;  --space-8: 64px;
  --space-9: 96px;  --space-10: 128px;

  /* Layout */
  --gutter:      clamp(20px, 5vw, 64px);
  --max-w:       1440px;
  --nav-h:       72px;

  /* Motion */
  --ease:        cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast:    160ms;
  --dur:         280ms;
  --dur-slow:    600ms;

  /* Layering */
  --z-base: 0; --z-raised: 10; --z-sticky: 40; --z-nav: 100; --z-modal: 1000;
}

/* ---------- 2. RESET / BASE ---------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

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

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

/* Focus: always visible, never removed */
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--yellow); color: var(--on-yellow); }

/* The `hidden` attribute only maps to display:none in the UA sheet, so any
   author rule setting display beats it. The lightbox swaps between a <video>
   and a Vimeo <iframe> using hidden, and both carry display:block — without
   this guard they render at once. */
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Skip link */
.skip-link {
  position: absolute; top: -100px; left: var(--gutter);
  z-index: var(--z-modal);
  background: var(--yellow); color: var(--on-yellow);
  padding: 12px 20px; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- 3. TYPOGRAPHY ------------------------------------------------ */
.u-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 400;
}

.u-display {
  font-family: var(--font-display);
  font-stretch: 88%;
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.02em;
  word-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-bright);
  text-wrap: balance;
  margin: 0;
}

h2.u-display { font-size: clamp(2.25rem, 5.5vw, 4.5rem); }

/* Marker treatment: the yellow sits on an inline span so it hugs each line
   rather than boxing the whole heading. box-decoration-break:clone is what
   gives every wrapped line its own padded box instead of one long slab. */
.mark {
  background: var(--yellow);
  color: var(--on-yellow);
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
  padding: 0.06em 0.14em 0.10em;
}
/* The base 0.92 line-height would let the boxes collide. Set on the element
   itself rather than via :has(), so it doesn't depend on selector support. */
h2.u-display { line-height: 1.16; }
/* Pull the first box back so the text still aligns with the section rule */
h2.u-display .mark { margin-left: -0.14em; }
h3.u-display { font-size: clamp(1.5rem, 2.5vw, 2.25rem); }

.lede {
  font-size: clamp(1.0625rem, 1.4vw, 1.375rem);
  line-height: 1.55;
  color: var(--text);
  max-width: 62ch;
}
/* A four-word tagline sitting where a full sentence used to be — it needs a
   bit more presence, or it reads like an orphaned fragment. */
.lede--tagline {
  font-family: var(--font-display);
  font-stretch: 88%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.375rem, 2.4vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text-bright);
  margin-bottom: var(--space-5);
}

.body-copy { max-width: 68ch; color: var(--text-dim); }
.body-copy strong { color: var(--text-bright); font-weight: 600; }

/* ---------- 4. LAYOUT ---------------------------------------------------- */
.wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 10vw, 128px); position: relative; }
.section + .section { border-top: 1px solid var(--border); }

/* Section marker: "Nº001 / INTRO" + rule, mirroring the reference's numbering */
.section-head {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  margin-bottom: var(--space-7);
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-3);
  flex-wrap: wrap;
}
.section-head__no { color: var(--yellow); }
.section-head__label { color: var(--text-dim); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 72px);
}
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* Photo backdrop. The scrim is 86% because that's the measured floor: the
   brightest part of this aerial composites to rgb(28,32,33) there, which keeps
   even --text-dim at 4.8:1. At 80% that dim text drops to 4.0:1 and fails AA. */
.section--backdrop {
  position: relative;
  isolation: isolate;
  background-image: url("../img/photo-encinitas.jpg");
  background-size: cover;
  background-position: center 40%;
}
.section--backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.86);
  z-index: -1;
}

/* Same treatment, second aerial. Measured the same way: 86% is where this
   frame's brightest area (the surf line) still leaves the small mono label at
   4.8:1. The quote cards are opaque, so the quotes themselves are unaffected. */
.section--backdrop-coast {
  background-image: url("../img/photo-coast.jpg");
  background-position: center 45%;
}

/* Third backdrop. Brightest of the three — the backlit spray needs 86% before
   the small mono label clears 4.5:1, same floor as the others. The plan cards
   are opaque, so the tiers themselves are unaffected. */
.section--backdrop-wave {
  background-image: url("../img/photo-wave.jpg");
  background-position: center 55%;
}

/* Four scans of mixed orientation. Cropping every one square is what keeps the
   row even — letting portraits and landscapes keep their own ratios would give
   a ragged strip with four different heights. */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
  margin-top: clamp(40px, 6vw, 72px);
}
@media (min-width: 900px) {
  .photo-strip { grid-template-columns: repeat(4, 1fr); }
}
.photo-strip img {
  display: block;
  width: 100%;
  /* height:auto is required — the HTML height attribute maps to a CSS height
     and would otherwise beat aspect-ratio, leaving four different heights. */
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 42%;   /* subjects sit slightly high in these frames */
  border: 1px solid var(--border);
}

/* Editorial photos filling the empty half of a two-column section */
.section-photo {
  display: block;
  width: 100%;
  height: auto;
  margin: var(--space-7) 0 0;
  border: 1px solid var(--border);
}
@media (min-width: 900px) {
  /* Held back from the full column width so it reads as a placed photograph
     rather than a banner competing with the headline above it. */
  .section-photo { max-width: 400px; }
}

/* Fills its column rather than sitting at the 400px placed-photo width */
.section-photo--fill { max-width: none; }
@media (min-width: 900px) {
  .section-photo--fill { max-width: none; }
}

/* ---------- 5. BUTTONS --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 52px;
  padding: 14px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.btn__arrow { transition: transform var(--dur) var(--ease); flex: none; }
.btn:hover .btn__arrow, .btn:focus-visible .btn__arrow { transform: translate(3px, -3px); }

.btn--primary {
  background: var(--yellow);
  color: var(--on-yellow);
  border-color: var(--yellow);
  font-weight: 700;
}
.btn--primary:hover, .btn--primary:focus-visible { background: var(--yellow-deep); border-color: var(--yellow-deep); }

.btn--ghost { background: transparent; color: var(--text-bright); }
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: var(--yellow); color: var(--yellow); }

.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-6); }

/* ---------- 6. NAV ------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav[data-scrolled="true"] { background: rgba(10, 10, 10, 0.94); border-bottom-color: var(--border); }

.nav__inner {
  width: 100%; max-width: var(--max-w); margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-5);
}

.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand img { width: 42px; height: 42px; }
.nav__brand span {
  font-family: var(--font-display);
  font-stretch: 82%;
  font-weight: 800; text-transform: uppercase;
  font-size: 18px; letter-spacing: 0.02em; color: var(--text-bright);
  white-space: nowrap;
}

/* Roomier only once the row has real slack. At 860-1000px the five links plus
   the CTA leave barely enough room, and the larger brand would push it over. */
@media (min-width: 1000px) {
  :root { --nav-h: 88px; }
  .nav__brand img { width: 54px; height: 54px; }
  .nav__brand span { font-size: 21px; }
}

.nav__links { display: none; align-items: center; gap: var(--space-6); }
@media (min-width: 860px) { .nav__links { display: flex; } }

.nav__link {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-dim);
  padding: 8px 2px;
  transition: color var(--dur-fast) var(--ease);
  position: relative;
}
.nav__link:hover, .nav__link:focus-visible { color: var(--text-bright); }
.nav__link[aria-current="true"] { color: var(--yellow); }
.nav__link[aria-current="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--yellow);
}

.nav__cta {
  display: none;
  align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-bright);
  border: 1px solid var(--border-strong);
  padding: 10px 16px; min-height: 44px;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
@media (min-width: 620px) { .nav__cta { display: inline-flex; } }
.nav__cta:hover, .nav__cta:focus-visible { border-color: var(--yellow); color: var(--yellow); }
.nav__cta .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--yellow); flex: none;
  /* 2s cycle = 0.5 Hz, far below the 3 flashes/second seizure threshold
     (WCAG 2.3.1). The halo does most of the attention-getting so the dot
     never has to fully blink out. */
  animation: cta-blink 2s var(--ease) infinite;
}
@keyframes cta-blink {
  0%, 100% { opacity: 1;   box-shadow: 0 0 0 0 rgba(255, 222, 89, 0.6); }
  50%      { opacity: 0.45; box-shadow: 0 0 0 6px rgba(255, 222, 89, 0); }
}
/* Obeys the same footer control as every other animation on the page */
:root[data-motion="paused"] .nav__cta .dot { animation-play-state: paused; }

/* Mobile menu */
.nav__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; cursor: pointer;
  border: 1px solid var(--border-strong); color: var(--text-bright);
}
@media (min-width: 860px) { .nav__toggle { display: none; } }

.mobile-menu {
  position: fixed; inset: 0; z-index: calc(var(--z-nav) - 1);
  background: var(--bg-deep);
  padding: calc(var(--nav-h) + 32px) var(--gutter) var(--gutter);
  display: flex; flex-direction: column; gap: var(--space-2);
  transform: translateY(-100%);
  visibility: hidden;
  /* visibility gets 0s duration so it flips synchronously; the delay on close
     holds the panel visible until the slide-out finishes. Transitioning
     visibility itself would leave the panel unfocusable on open. */
  transition: transform var(--dur-slow) var(--ease),
              visibility 0s linear var(--dur-slow);
  overflow-y: auto;
}
.mobile-menu[data-open="true"] {
  transform: translateY(0);
  visibility: visible;
  transition: transform var(--dur-slow) var(--ease), visibility 0s linear 0s;
}
.mobile-menu a {
  font-family: var(--font-display);
  font-stretch: 88%;
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.75rem, 8vw, 2.75rem);
  line-height: 1.15; padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-bright);
}
.mobile-menu a:hover, .mobile-menu a:focus-visible { color: var(--yellow); }

/* ---------- 7. HERO ------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: var(--nav-h);
  overflow: hidden;
  background: var(--bg-deep);
}

.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media video, .hero__media img {
  width: 100%; height: 100%; object-fit: cover;
}
/* Scrim: keeps the marquee and ticker legible over any frame of the reel */
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,10,10,0.78) 0%, rgba(10,10,10,0.35) 32%, rgba(10,10,10,0.55) 68%, rgba(10,10,10,0.94) 100%);
}

.hero__inner { position: relative; z-index: 1; width: 100%; }

/* Oversized repeating headline — the reference's signature move */
.hero__marquee {
  overflow: hidden;
  padding-block: clamp(8px, 1.5vw, 18px);
  margin-bottom: var(--space-6);
}
.hero__marquee-track {
  display: flex; align-items: center; width: max-content;
  animation: marquee 55s linear infinite;
}
.hero__marquee-track span {
  font-family: var(--font-display);
  font-stretch: 76%;
  font-weight: 800; text-transform: uppercase;
  /* Sized so one full repetition fits the viewport on desktop — at 4vw the
     sentence ran ~127px past the edge and could never be read whole. */
  font-size: clamp(1rem, 3.3vw, 3rem);
  line-height: 1; letter-spacing: -0.02em;
  color: var(--text-bright);
  padding-inline: 0.18em;
  white-space: nowrap;
}
/* Brand-yellow lead-in; the payoff stays white so the line still reads as one
   sentence rather than two competing colors. */
/* Scoped to the track so it outranks `.hero__marquee-track span`, which sets
   the color and weight for the rest of the line. */
.hero__marquee-track .hero__hl {
  color: var(--yellow);
  font-weight: 900;
}

.hero__marquee-track .dot-sep { color: var(--yellow); font-size: 0.45em; }

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.hero__foot {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: var(--space-5);
  padding-bottom: clamp(24px, 5vh, 56px);
}

.hero__scroll { display: flex; flex-direction: column; gap: 2px; line-height: 1.35; color: var(--text); }
.hero__scroll .arrow { color: var(--yellow); margin-top: 6px; animation: nudge 2.2s var(--ease) infinite; }
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

.hero__ticker { max-width: 46ch; line-height: 1.7; color: var(--text); }
.hero__ticker .hl { color: var(--yellow); }

.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,0.28);
  padding: 7px 12px; margin-bottom: var(--space-5);
  /* Sits over live video, so it carries its own backing rather than trusting
     whatever frame happens to be behind it. */
  background: rgba(10, 10, 10, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-bright);
}
.hero__badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--yellow);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Sound toggle for the hero reel */
.hero__sound {
  position: absolute; right: var(--gutter); top: calc(var(--nav-h) + 24px);
  z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(10,10,10,0.5);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-bright); cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.hero__sound:hover, .hero__sound:focus-visible { border-color: var(--yellow); color: var(--yellow); }

/* ---------- 7b. CLIENT LOGO BAR ----------------------------------------- */
/* Deliberately a light band. These marks are too heterogeneous for a uniform
   white knockout — two are pure black, one is a gradient, and a white-matted
   PNG would invert into a solid block. On white every brand keeps its real
   color and nothing can fail. */
.logo-bar {
  background: #FFFFFF;
  border-block: 1px solid var(--border);
  padding-block: clamp(18px, 2.6vw, 28px);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.logo-bar__viewport { flex: 1 1 auto; min-width: 0; }

/* Sits on the dark ground above the white strip */
.clients-intro {
  background: var(--bg);
  padding-block: var(--space-6) var(--space-4);
}
.clients-intro__label {
  margin: 0;
  text-align: center;
  /* Tracking adds a trailing space after the last character, which pulls
     centred text visually left. Indent by one unit to correct it. */
  text-indent: 0.12em;
}

.logo-bar__viewport {
  overflow: hidden;
  /* Fade the ends so logos dissolve into the band instead of hard-clipping
     at the viewport edge. Masks the logos only — the white stays put. */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.logo-bar__track {
  display: flex; align-items: center;
  width: max-content;
  list-style: none; margin: 0; padding: 0;
  gap: clamp(36px, 5vw, 72px);
  animation: marquee 46s linear infinite;
}

/* Uniform box so wordmarks and square badges carry the same optical weight */
.logo-bar__item {
  flex: none;
  width: clamp(112px, 13vw, 164px);
  height: clamp(48px, 5.5vw, 68px);
  display: flex; align-items: center; justify-content: center;
}
.logo-bar__item img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
}

.logo-bar__name {
  font-family: var(--font-display);
  font-stretch: 82%;
  font-weight: 800; text-transform: uppercase;
  font-size: 0.9375rem; line-height: 1.1;
  letter-spacing: -0.01em;
  color: #1A1A1A;
  text-align: center;
}

/* Pausing the marquee — see the motion toggle in the footer */
:root[data-motion="paused"] .logo-bar__track,
:root[data-motion="paused"] .hero__marquee-track,
:root[data-motion="paused"] .band__track {
  animation-play-state: paused;
}

/* ---------- 7c. MOTION TOGGLE ------------------------------------------- */
/* WCAG 2.2.2: this page auto-scrolls several marquees, so there has to be a
   way to stop them. One control halts every marquee at once. */
.motion-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-dim); cursor: pointer;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.motion-toggle:hover, .motion-toggle:focus-visible { color: var(--yellow); border-color: var(--yellow); }
.motion-toggle svg { flex: none; }
.motion-toggle .icon-pause { display: block; }
.motion-toggle .icon-play  { display: none; }
:root[data-motion="paused"] .motion-toggle .icon-pause { display: none; }
:root[data-motion="paused"] .motion-toggle .icon-play  { display: block; }

/* ---------- 8. BAND MARQUEES (section dividers) -------------------------- */
.band {
  overflow: hidden;
  padding-block: clamp(14px, 2vw, 26px);
  border-block: 1px solid var(--border);
  background: var(--bg-deep);
}
.band--yellow { background: var(--yellow); border-color: var(--yellow-deep); }

.band__track { display: flex; align-items: center; width: max-content; animation: marquee 28s linear infinite; }
.band__track span {
  font-family: var(--font-display);
  font-stretch: 80%;
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.75rem, 4.5vw, 3.5rem);
  letter-spacing: -0.015em; line-height: 1.05;
  color: var(--text-bright); padding-inline: 0.16em; white-space: nowrap;
}
.band--yellow .band__track span { color: var(--on-yellow); }
.band__track .dot-sep { color: var(--yellow); font-size: 0.5em; }
.band--yellow .band__track .dot-sep { color: var(--on-yellow); }

/* Statement band — all-caps mono paragraph, inverted */
.statement {
  background: var(--yellow);
  color: var(--on-yellow);
  padding-block: clamp(40px, 6vw, 80px);
}
.statement p {
  font-family: var(--font-mono);
  font-size: clamp(0.8125rem, 1.35vw, 1rem);
  line-height: 1.75;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  max-width: 92ch;
  margin: 0;
  font-weight: 500;
}

/* ---------- 9. WORK GRID ------------------------------------------------- */
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.5vw, 28px);
}
@media (min-width: 760px)  { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .work-grid { grid-template-columns: repeat(4, 1fr); } }

.work-card {
  position: relative;
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.work-card:hover, .work-card:focus-visible { border-color: var(--yellow); background: var(--surface-2); }

.work-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-deep);
}

/* Seven pieces in a 3-up grid would strand one on its own row. The reel leads
   full-width instead, leaving two clean rows of three beneath it. */
.work-card--feature { grid-column: 1 / -1; }
.work-card--feature .work-card__media { aspect-ratio: 21 / 9; }
@media (max-width: 759px) {
  .work-card--feature .work-card__media { aspect-ratio: 16 / 9; }
}
.work-card--feature .work-card__title { font-size: 1.5rem; }
@media (min-width: 1180px) {
  .work-card__title { font-size: 1rem; }
  .work-card__body { padding: var(--space-4); }
}

/* Vertical pieces still sit in a 16:9 thumbnail so the grid stays even; the
   framing is biased upward because subjects sit high in a 9:16 crop. They play
   at their true aspect in the lightbox. */
.work-card--portrait .work-card__media video,
.work-card--portrait .work-card__media img { object-position: center 32%; }
.work-card__media video, .work-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease), opacity var(--dur) var(--ease);
}
.work-card:hover .work-card__media video,
.work-card:hover .work-card__media img { transform: scale(1.03); }

.work-card__play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  pointer-events: none;
}
.work-card__play span {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(10,10,10,0.62);
  border: 1px solid rgba(255,255,255,0.32);
  display: grid; place-items: center;
  color: var(--text-bright);
  backdrop-filter: blur(6px);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.work-card:hover .work-card__play span,
.work-card:focus-visible .work-card__play span {
  background: var(--yellow); color: var(--on-yellow); border-color: var(--yellow);
}

.work-card__body {
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-2);
  border-top: 1px solid var(--border);
}
.work-card__meta { display: flex; justify-content: space-between; gap: var(--space-3); }
.work-card__title {
  font-family: var(--font-display);
  font-stretch: 90%;
  font-weight: 700; text-transform: uppercase;
  font-size: 1.125rem; letter-spacing: -0.005em;
  color: var(--text-bright); margin: 0;
}
/* Client credit sits in the meta row's right slot, in brand yellow — the name
   is the strongest thing on the card, so it should read first. */
.work-card__client { color: var(--yellow); font-weight: 700; }

.work-card__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.tag {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border); padding: 4px 8px;
}

/* ---------- 10. LIGHTBOX ------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: rgba(5, 5, 5, 0.94);
  display: grid; place-items: center;
  padding: var(--gutter);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.lightbox[data-open="true"] {
  opacity: 1; visibility: visible;
  transition: opacity var(--dur) var(--ease), visibility 0s linear 0s;
}

.lightbox__panel {
  width: min(1100px, 100%);
  transform: scale(0.97);
  transition: transform var(--dur) var(--ease);
}
.lightbox[data-open="true"] .lightbox__panel { transform: scale(1); }

.lightbox__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); margin-bottom: var(--space-3);
}
.lightbox__title {
  font-family: var(--font-display);
  font-stretch: 90%;
  font-weight: 700; text-transform: uppercase;
  font-size: 1.125rem; color: var(--text-bright); margin: 0;
}
.lightbox__close {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 10px 16px;
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-bright); cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.lightbox__close:hover, .lightbox__close:focus-visible { border-color: var(--yellow); color: var(--yellow); }

.lightbox video,
.lightbox iframe {
  display: block;
  width: 100%; aspect-ratio: 16 / 9;
  background: #000; border: 1px solid var(--border);
}

/* A 9:16 cut in a 16:9 frame would be mostly black bars */
.lightbox[data-orientation="portrait"] .lightbox__panel { width: min(460px, 100%); }
.lightbox[data-orientation="portrait"] video,
.lightbox[data-orientation="portrait"] iframe {
  aspect-ratio: 9 / 16;
  /* height must be definite — with width:auto and no loaded metadata the box
     has nothing to resolve the ratio against and collapses to a few pixels */
  height: min(76vh, 720px);
  width: auto;
  max-width: 100%;
  margin-inline: auto;
}

/* ---------- 11. NUMBERED CARDS (benefits / process) ---------------------- */
.cards {
  display: grid; grid-template-columns: 1fr;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
@media (min-width: 700px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards--5 { grid-template-columns: repeat(3, 1fr); } }

.card {
  padding: var(--space-6) var(--space-5) var(--space-7);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: var(--space-3);
  transition: background var(--dur) var(--ease);
}
.card:hover { background: var(--surface); }
.card__no { color: var(--yellow); }
.card__title {
  font-family: var(--font-display);
  font-stretch: 90%;
  font-weight: 700; text-transform: uppercase;
  font-size: 1.3125rem; line-height: 1.15;
  color: var(--text-bright); margin: 0;
}
.card p { margin: 0; color: var(--text-dim); font-size: 0.9375rem; }

/* The loop card closes the process rather than being a sixth step, so it drops
   the number and carries the brand accent instead. */
.card--loop { background: var(--surface); }
.card--loop:hover { background: var(--surface-2); }
.card--loop .card__title { color: var(--yellow); }
.card--loop .card__icon { color: var(--yellow); }
.card__icon { color: var(--yellow); margin-bottom: var(--space-1); }

/* ---------- 11b. ABOUT --------------------------------------------------- */
.about__role {
  margin: var(--space-3) 0 var(--space-5);
  color: var(--yellow);
}
.about__lede { margin-top: 0; }

.about__figure { margin: 0; }
.about__figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--border);
  filter: saturate(0.95);
}

/* Portrait first on desktop, but the name should introduce the face on mobile
   where the columns stack. */
@media (max-width: 899px) {
  .about { display: flex; flex-direction: column; }
  .about__figure { order: 2; }
}
@media (min-width: 900px) {
  .about { align-items: start; }
  .about__figure { position: sticky; top: calc(var(--nav-h) + 32px); }
}

/* ---------- 11c. TESTIMONIALS ------------------------------------------- */
.quotes {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.5vw, 24px);
  align-items: start;
}
@media (min-width: 700px)  { .quotes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .quotes { grid-template-columns: repeat(3, 1fr); } }

.quote {
  margin: 0;
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: var(--space-6) var(--space-5) var(--space-5);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.quote:hover { border-color: var(--border-strong); background: var(--surface-2); }

.quote__text {
  margin: 0 0 var(--space-5);
  position: relative;
  padding-top: var(--space-6);
}
.quote__text::before {
  content: "\201C";                 /* opening curly quote */
  position: absolute;
  top: -0.22em; left: -0.04em;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--yellow);
}
.quote__text p {
  margin: 0;
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.quote__by {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: var(--space-3);
}
.quote__who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

/* White chip behind the mark. These logos were made for the white client bar —
   True Position is pure black (1.2:1 on this card) and Joshua Tree only 3:1,
   so dropping them straight onto the dark surface would lose them. The chip
   keeps each brand's real color and guarantees they read. */
.quote__logo {
  flex: none;
  width: 52px; height: 52px;
  background: #FFFFFF;
  display: grid; place-items: center;
  padding: 7px;
}
.quote__logo img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
}
.quote__name {
  font-family: var(--font-display);
  font-stretch: 90%;
  font-weight: 700; text-transform: uppercase;
  font-size: 1rem; letter-spacing: -0.005em;
  color: var(--text-bright);
}
.quote__role { color: var(--text-dim); }
.quote__brand { color: var(--yellow); font-weight: 700; }

/* ---------- 12. PRICING -------------------------------------------------- */
.pricing {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(16px, 2.5vw, 24px);
  align-items: stretch;
}
@media (min-width: 900px) { .pricing { grid-template-columns: repeat(3, 1fr); } }

.plan {
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: var(--space-6) var(--space-5);
  position: relative;
}
.plan--featured { border-color: var(--yellow); background: var(--surface-2); }

.plan__flag {
  position: absolute; top: -1px; right: -1px;
  background: var(--yellow); color: var(--on-yellow);
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 12px;
}

.plan__name {
  font-family: var(--font-display);
  font-stretch: 88%;
  font-weight: 800; text-transform: uppercase;
  font-size: 1.5rem; color: var(--text-bright); margin: 0 0 var(--space-2);
}
.plan__price {
  font-family: var(--font-display);
  font-stretch: 92%;
  font-weight: 800;
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 1; color: var(--yellow);
  font-variant-numeric: tabular-nums;
  margin: var(--space-4) 0 var(--space-1);
}
.plan__cadence { color: var(--text-dim); font-size: 0.875rem; }
.plan__blurb {
  color: var(--text-dim); font-size: 0.9375rem;
  margin: var(--space-4) 0 var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border);
}

.plan__list { list-style: none; margin: 0 0 var(--space-6); padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.plan__list li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 0.9375rem; }
.plan__list svg { flex: none; color: var(--yellow); margin-top: 3px; }
.plan__cta { margin-top: auto; }
.plan__cta .btn { width: 100%; }

/* ---------- 13. FORM ----------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: var(--space-5); }

.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); }
.field .req { color: var(--yellow); }
.field .hint { font-size: 0.8125rem; color: var(--text-dim); }

.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 16px; /* 16px minimum prevents iOS auto-zoom */
  color: var(--text-bright);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 14px 16px;
  min-height: 52px;
  width: 100%;
  transition: border-color var(--dur-fast) var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #666; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #4A4A4A; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%238A8A8A' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea { border-color: #FF6B6B; }

.field__error {
  display: none;
  font-size: 0.8125rem;
  color: #FF8A8A; /* 4.5:1+ on #141414 */
  align-items: center; gap: 6px;
}
.field[data-invalid="true"] .field__error { display: flex; }

.form__row { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }

.form__summary {
  display: none;
  border: 1px solid #FF6B6B;
  background: rgba(255, 107, 107, 0.08);
  padding: var(--space-4) var(--space-5);
}
.form__summary[data-show="true"] { display: block; }
.form__summary h3 { margin: 0 0 var(--space-2); font-size: 0.9375rem; color: #FF8A8A; font-family: var(--font-body); font-weight: 600; }
.form__summary ul { margin: 0; padding-left: 20px; font-size: 0.875rem; }
.form__summary a { color: #FF8A8A; text-decoration: underline; }

.form__status { font-size: 0.9375rem; min-height: 1.5em; }
.form__status[data-state="success"] { color: var(--yellow); }
.form__status[data-state="error"]   { color: #FF8A8A; }

/* Contact detail rail */
.contact-rail { display: flex; flex-direction: column; gap: var(--space-6); }
.contact-block { border-top: 1px solid var(--border); padding-top: var(--space-4); }
.contact-block dt { margin-bottom: var(--space-2); }
.contact-block dd {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 92%;
  font-weight: 700;
  font-size: clamp(1.0625rem, 1.6vw, 1.375rem);
  color: var(--text-bright);
  line-height: 1.3;
}
.contact-block dd a {
  display: inline-block;
  min-height: 44px;      /* standalone contact link, not inline prose */
  padding-block: 8px;
  transition: color var(--dur-fast) var(--ease);
}
.contact-block dd a:hover, .contact-block dd a:focus-visible { color: var(--yellow); }

/* ---------- 14. FAQ ------------------------------------------------------ */
.faq { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); padding: var(--space-5) 0; min-height: 60px;
  cursor: pointer; text-align: left;
  font-family: var(--font-display);
  font-stretch: 92%;
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--text-bright);
  transition: color var(--dur-fast) var(--ease);
}
.faq__q:hover { color: var(--yellow); }
.faq__icon { flex: none; color: var(--yellow); transition: transform var(--dur) var(--ease); }
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }
.faq__a { display: none; padding-bottom: var(--space-5); color: var(--text-dim); max-width: 70ch; }
.faq__a[data-open="true"] { display: block; }
.faq__a p { margin: 0; }

/* ---------- 15. FOOTER --------------------------------------------------- */
.footer { background: var(--bg-deep); border-top: 1px solid var(--border); padding-block: var(--space-8) var(--space-6); }
.footer__grid {
  display: grid; grid-template-columns: 1fr; gap: var(--space-7);
  padding-bottom: var(--space-7); border-bottom: 1px solid var(--border);
}
@media (min-width: 760px)  { .footer__grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer__brand { display: flex; flex-direction: column; gap: var(--space-4); }
.footer__brand img { width: 72px; height: 72px; }
.footer__addr { font-style: normal; line-height: 1.9; }

.footer__col h2 { margin: 0 0 var(--space-4); }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.footer__col a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--text); font-size: 0.9375rem; }
.footer__col a:hover, .footer__col a:focus-visible { color: var(--yellow); }
.footer__handle { color: var(--text-dim); font-family: var(--font-mono); font-size: 0.8125rem; }
.footer__col a:hover .footer__handle, .footer__col a:focus-visible .footer__handle { color: inherit; }

.footer__bottom {
  display: flex; flex-wrap: wrap; gap: var(--space-4);
  justify-content: space-between; padding-top: var(--space-5);
}
.footer__clock { font-variant-numeric: tabular-nums; }

/* ---------- 15b. CURSOR DOT --------------------------------------------- */
/* Enabled by JS only for fine pointers with motion allowed, so touch users and
   anyone on reduced motion keep the native cursor. */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;          /* never intercept a click */
  z-index: calc(var(--z-modal) + 10);
  border-radius: 50%;
  opacity: 0;
  will-change: transform;
  transition: opacity var(--dur) var(--ease);
}
.has-cursor-dot .cursor-dot,
.has-cursor-dot .cursor-ring { opacity: 1; }

.cursor-dot {
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  background: var(--yellow);
  /* Dark hairline carries the dot on light ground — the white client bar and
     the yellow statement bands, where yellow-on-yellow would vanish. */
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.7);
  transition: opacity var(--dur) var(--ease), width 120ms var(--ease), height 120ms var(--ease);
}

.cursor-ring {
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border: 1.5px solid var(--yellow);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.38), inset 0 0 0 1px rgba(0,0,0,0.38);
  transition: opacity var(--dur) var(--ease), transform 140ms var(--ease);
}

/* Over something clickable */
.has-cursor-dot[data-cursor="active"] .cursor-ring { transform: scale(1.5); background: rgba(255, 222, 89, 0.12); }
.has-cursor-dot[data-cursor="active"] .cursor-dot  { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; }
/* Mouse is down */
.has-cursor-dot[data-cursor="down"] .cursor-ring { transform: scale(0.82); }
/* A cross-origin embed is open: hide the dot and give the real pointer back,
   since mouse events stop reaching us once it's over the iframe. */
.has-cursor-dot[data-cursor="native"] .cursor-dot,
.has-cursor-dot[data-cursor="native"] .cursor-ring { opacity: 0; }

/* Off-window, or over a field/video where the native cursor matters more */
.has-cursor-dot[data-cursor="hidden"] .cursor-dot,
.has-cursor-dot[data-cursor="hidden"] .cursor-ring { opacity: 0; }

@media (hover: hover) and (pointer: fine) {
  .has-cursor-dot, .has-cursor-dot * { cursor: none; }
  /* Only text entry gets the real pointer back — the I-beam marks the insertion
     point, which the dot can't convey. Video keeps the custom cursor so it
     stays consistent across the whole page. */
  .has-cursor-dot input, .has-cursor-dot textarea,
  .has-cursor-dot select, .has-cursor-dot input * { cursor: auto; }

  .has-cursor-dot[data-cursor="native"],
  .has-cursor-dot[data-cursor="native"] * { cursor: auto; }
}

/* ---------- 16. SCROLL REVEAL ------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
[data-reveal][data-revealed="true"] { opacity: 1; transform: translate3d(0, 0, 0); }

/* ---------- 17. REDUCED MOTION ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  /* Marquees resolve to a readable static state rather than a frozen mid-scroll */
  .hero__marquee-track, .band__track, .logo-bar__track {
    animation: none !important;
    transform: none !important;
  }
  /* The logo bar wraps instead, so every client stays visible without motion */
  .logo-bar__track {
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
    row-gap: clamp(16px, 3vw, 28px);
  }
  .motion-toggle { display: none; }
  .logo-bar__viewport { -webkit-mask-image: none; mask-image: none; }
  .nav__cta .dot { animation: none !important; opacity: 1 !important; box-shadow: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
