/* ==========================================================================
   Component kit — built once from tokens, reused on every page.
   Order: motion hooks · light motif · buttons · links · chips & tabs ·
   section heading · cards (service, video, reel, stat, quote) · marquee ·
   FAQ · form · mega-menu · breadcrumb · CTA band · placeholder media · cursor · intro
   ========================================================================== */

/* ── Motion hooks ────────────────────────────────────────────────────────────
   Hidden states only exist while JS is running motion (html.js-motion). reveal.js
   shows each element as it arrives; the failsafe in head.php removes the class
   if the scripts never start. */
.js-motion [data-reveal] { opacity: 0; }
@media print { .js-motion [data-reveal] { opacity: 1; } }

/* ── Light motif ─────────────────────────────────────────────────────────── */
.beam {
  position: absolute;
  pointer-events: none;
  inset: -20% -10% auto auto;
  width: min(90vw, 70rem);
  aspect-ratio: 2 / 1;
  background: conic-gradient(from 200deg at 100% 0%, transparent 0deg, rgb(255 160 79 / 0.16) 18deg, rgb(var(--c-accent-rgb) / 0.05) 34deg, transparent 50deg);
  filter: blur(24px);
  transform-origin: 100% 0%;
  z-index: 0;
}
.light-spot {
  position: absolute;
  pointer-events: none;
  width: 40rem;
  aspect-ratio: 1;
  background: var(--light-spot);
  z-index: 0;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  --btn-h: 3.25rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  min-height: var(--btn-h);
  padding: 0 var(--sp-3);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-text);
  font-size: 0.9375rem;
  font-weight: var(--text-weight-bold);
  letter-spacing: 0.005em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  transition:
    background-color var(--dur-fast) var(--ease-hover),
    border-color var(--dur-fast) var(--ease-hover),
    color var(--dur-fast) var(--ease-hover),
    box-shadow var(--dur-base) var(--ease-signature),
    transform var(--dur-fast) var(--ease-hover);
}
.btn:active { transform: scale(0.97); }
.btn .icon { transition: transform var(--dur-base) var(--ease-signature); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn:hover .icon--arrow-up { transform: translate(2px, -2px); }

.btn--primary { background: var(--c-accent); color: var(--c-accent-ink); }
/* A sweep of light across the face on hover */
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 20%, rgb(255 255 255 / 0.45) 50%, transparent 80%);
  transform: translateX(-110%);
  transition: transform var(--dur-slow) var(--ease-signature);
}
.btn--primary:hover { box-shadow: var(--glow); }
.btn--primary:hover::before { transform: translateX(110%); }

.btn--secondary { border-color: var(--c-line-strong); color: var(--c-text); background: transparent; }
.btn--secondary:hover { border-color: var(--c-accent); background: var(--c-surface-2); }

.btn--ghost { color: var(--c-text-muted); background: transparent; padding-inline: var(--sp-2); }
.btn--ghost:hover { color: var(--c-text); background: var(--c-line); }

.btn--sm { --btn-h: 2.5rem; padding-inline: var(--sp-2); font-size: var(--fs-small); }
.btn--lg { --btn-h: 3.75rem; padding-inline: var(--sp-4); font-size: 1rem; }
.btn--icon { width: var(--btn-h); padding: 0; }

.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

.theme-light .btn--secondary { border-color: var(--c-line-strong); }
.theme-light .btn--primary { color: var(--c-accent-ink); }

/* ── Text link with arrow ────────────────────────────────────────────────── */
.link-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding-block: var(--sp-0-5);
  font-weight: var(--text-weight-bold);
  color: var(--c-text);
}
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.35);
  transform-origin: left;
  opacity: 0.5;
  transition: transform var(--dur-base) var(--ease-signature), opacity var(--dur-fast) var(--ease-hover);
}
.link-arrow .icon { transition: transform var(--dur-base) var(--ease-signature); color: var(--c-accent-text); }
.link-arrow:hover { color: var(--c-text); }
.link-arrow:hover::after { transform: scaleX(1); opacity: 1; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ── Chips / tags ────────────────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-0-5);
  min-height: 2rem;
  padding: 0 0.875rem;
  border: var(--border-strong);
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  font-weight: var(--text-weight-med);
  line-height: 1;
  color: var(--c-text-muted);
  white-space: nowrap;
  transition: border-color var(--dur-fast) var(--ease-hover), color var(--dur-fast) var(--ease-hover), background-color var(--dur-fast) var(--ease-hover);
}
a.chip:hover, button.chip:hover { color: var(--c-text); border-color: var(--c-text-muted); }
.chip--accent { border-color: rgb(var(--c-accent-rgb) / 0.5); color: var(--c-accent-text); }
.chip--solid  { border-color: transparent; background: var(--c-surface-3); color: var(--c-text); }
.chip .icon { --icon-size: 1rem; }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 10px var(--glow-color); }

/* ── Tabs (portfolio filters) ────────────────────────────────────────────── */
.tabs {
  position: relative;
  display: inline-flex;
  gap: var(--sp-0-5);
  padding: var(--sp-0-5);
  border: var(--border);
  border-radius: var(--r-pill);
  background: var(--c-surface-1);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs__tab {
  position: relative;
  z-index: 1;
  flex: none;
  min-height: 2.5rem;
  padding: 0 var(--sp-2);
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--c-text-muted);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: var(--text-weight-bold);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-hover);
}
.tabs__tab:hover { color: var(--c-text); }
.tabs__tab[aria-selected="true"] { color: var(--c-accent-ink); }
.tabs__indicator {
  position: absolute;
  top: var(--sp-0-5);
  left: 0;
  height: calc(100% - var(--sp-1));
  width: 100px;
  border-radius: var(--r-pill);
  background: var(--c-accent);
  transform-origin: left center;
  pointer-events: none;
  transition: clip-path var(--dur-base) var(--ease-signature);
}
/* Without JS the selected tab still reads clearly */
.no-js .tabs__tab[aria-selected="true"] { background: var(--c-accent); }
.no-js .tabs__indicator { display: none; }

/* ── Section heading block ───────────────────────────────────────────────── */
.section-head {
  display: grid;
  gap: var(--sp-3);
  margin-bottom: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
}
.section-head__title { max-width: 18ch; }
.section-head__lead { color: var(--c-text-muted); font-size: var(--fs-lead); line-height: var(--lh-lead); max-width: 46ch; }
.section-head--center { justify-items: center; text-align: center; }
.section-head--center .section-head__title { max-width: 20ch; }
@media (min-width: 992px) {
  .section-head--split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    column-gap: var(--grid-gutter);
  }
  .section-head--split .eyebrow { grid-column: 1 / -1; }
  .section-head--split .section-head__aside { display: grid; gap: var(--sp-3); justify-items: start; padding-bottom: 0.4em; }
}

/* ── Card base ───────────────────────────────────────────────────────────── */
.card-x {
  position: relative;
  border: var(--border);
  border-radius: var(--r-lg);
  background: var(--c-surface-1);
  overflow: hidden;
  isolation: isolate;
}

/* Service card: a key light follows the pointer (JS sets --mx/--my) */
.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  min-height: 100%;
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem);
  transition: border-color var(--dur-base) var(--ease-signature), transform var(--dur-base) var(--ease-signature);
}
.service-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: var(--mx, 50%);
  top: var(--my, 0%);
  width: 34rem;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: var(--light-spot);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-signature);
}
.service-card:hover { border-color: var(--c-line-strong); }
.service-card:hover::before { opacity: 1; }
.service-card__index { font-size: var(--fs-eyebrow); letter-spacing: var(--eyebrow-tracking); color: var(--c-accent-text); font-weight: var(--text-weight-bold); font-variant-numeric: tabular-nums; }
.service-card__title { font-size: var(--fs-h4); letter-spacing: -0.015em; line-height: 1.15; }
.service-card__text { color: var(--c-text-muted); }
.service-card__foot { margin-top: auto; padding-top: var(--sp-2); display: flex; align-items: center; justify-content: space-between; }
.service-card__go {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: var(--border-strong);
  border-radius: 50%;
  transition: background-color var(--dur-fast) var(--ease-hover), border-color var(--dur-fast) var(--ease-hover), color var(--dur-fast) var(--ease-hover), transform var(--dur-base) var(--ease-signature);
}
.service-card:hover .service-card__go { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-accent-ink); transform: rotate(-45deg); }
.service-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card clickable */
.service-card--lead { background: linear-gradient(180deg, var(--c-surface-2), var(--c-surface-1)); }

/* ── Video card (lite embed: thumbnail first, player on click) ────────────── */
.video-card { display: grid; gap: var(--sp-2); }
.video-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: var(--border);
  border-radius: var(--r-md);
  background: var(--c-surface-2);
  overflow: hidden;
  cursor: pointer;
}
.video-card__media img,
.video-card__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-card__media img { transition: transform var(--dur-slow) var(--ease-signature), filter var(--dur-base) var(--ease-signature); filter: saturate(0.9) brightness(0.85); }
.video-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgb(14 12 11 / 0.65));
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-signature);
}
.video-card__play {
  position: absolute;
  z-index: 2;
  left: var(--sp-2);
  bottom: var(--sp-2);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  min-height: 2.5rem;
  padding: 0 var(--sp-2) 0 0.75rem;
  border-radius: var(--r-pill);
  background: var(--c-overlay);
  color: var(--c-text);
  font-size: var(--fs-small);
  font-weight: var(--text-weight-bold);
  backdrop-filter: blur(8px);
  transition: background-color var(--dur-fast) var(--ease-hover), color var(--dur-fast) var(--ease-hover);
}
.video-card__play .icon { --icon-size: 1rem; fill: currentColor; }
.video-card__media:hover img { transform: scale(1.04); filter: saturate(1) brightness(1); }
.video-card__media:hover .video-card__play { background: var(--c-accent); color: var(--c-accent-ink); }
.video-card__media.is-playing::after,
.video-card__media.is-playing .video-card__play { opacity: 0; pointer-events: none; }
.video-card__meta { display: flex; justify-content: space-between; gap: var(--sp-2); align-items: baseline; }
.video-card__title { font-family: var(--font-text); font-size: 1rem; font-weight: var(--text-weight-bold); letter-spacing: 0; line-height: 1.3; }
.video-card__tag { font-size: var(--fs-small); color: var(--c-text-muted); white-space: nowrap; }

/* ── Reel phone frame (9:16) ─────────────────────────────────────────────── */
.reel {
  --bezel: 6px;
  position: relative;
  width: 100%;
  max-width: 18rem;
  aspect-ratio: 9 / 16;
  padding: var(--bezel);
  border: var(--border-strong);
  border-radius: calc(var(--r-lg) + var(--bezel));
  background: var(--c-surface-3);
  box-shadow: var(--shadow);
}
.reel__screen {
  position: relative;
  height: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-surface-2);
}
.reel__screen > img, .reel__screen > iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__ui {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: var(--sp-1);
  padding: var(--sp-6) var(--sp-2) var(--sp-2);
  background: linear-gradient(180deg, transparent, rgb(14 12 11 / 0.85));
  font-size: var(--fs-small);
  pointer-events: none;
}
.reel__handle { display: flex; align-items: center; gap: var(--sp-1); font-weight: var(--text-weight-bold); }
.reel__avatar { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--c-accent); }
.reel__caption { color: var(--c-text-muted); line-height: 1.35; }
.reel__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--c-text);
  cursor: pointer;
}
.reel__play span {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--c-overlay);
  backdrop-filter: blur(8px);
  transition: background-color var(--dur-fast) var(--ease-hover), color var(--dur-fast) var(--ease-hover), transform var(--dur-base) var(--ease-signature);
}
.reel__play .icon { fill: currentColor; --icon-size: 1.25rem; }
.reel__play:hover span { background: var(--c-accent); color: var(--c-accent-ink); transform: scale(1.08); }

/* ── Stat / counter ──────────────────────────────────────────────────────── */
.stat { display: grid; gap: var(--sp-1); padding-top: var(--sp-3); border-top: var(--border-strong); }
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(3rem, 2rem + 4vw, 6.5rem);
  font-weight: var(--display-weight);
  font-stretch: var(--display-stretch);
  font-variation-settings: var(--display-variation);
  letter-spacing: var(--display-tracking);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.stat__suffix { color: var(--c-accent-text); }
.stat__label { color: var(--c-text-muted); font-size: var(--fs-small); letter-spacing: 0.02em; }

/* ── Milestones ─────────────────────────────────────────────────────────────
   The four studio numbers in a ruled grid (home and About). Counters use [data-count]. */
.milestones__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; border-top: var(--border-strong); border-left: var(--border-strong); }
@media (min-width: 992px) { .milestones__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.milestone { position: relative; display: grid; gap: var(--sp-1); padding: var(--sp-3) var(--sp-2); border-right: var(--border-strong); border-bottom: var(--border-strong); isolation: isolate; overflow: hidden; }
.milestone::before { content: ""; position: absolute; z-index: -1; inset: -60% -30% auto auto; width: 120%; aspect-ratio: 1; background: var(--light-spot); opacity: 0.6; }
.milestone__icon { --icon-size: 1.75rem; margin-bottom: var(--sp-1); color: var(--c-accent-text); filter: drop-shadow(0 0 10px rgb(var(--c-accent-rgb) / 0.45)); }
.milestone__value {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-stretch: var(--display-stretch);
  font-variation-settings: var(--display-variation);
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 6rem);
  letter-spacing: var(--display-tracking);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.milestone__suffix { color: var(--c-accent-text); }
.milestone__label { color: var(--c-text-muted); font-size: var(--fs-small); }
@media (min-width: 768px) { .milestone { padding: var(--sp-5) var(--sp-4); } }

/* ── Review card ─────────────────────────────────────────────────────────
   One card for every review on the site: the home review wall, inner pages and
   reviews set inside other sections. Two layouts place it:
     .review-split — one review: heading on the left, the card on the right
     .review-grid  — two or three reviews in a row
   A single review uses .tcard--lg (larger quote). */
.tcard__inner { display: flex; flex-direction: column; gap: var(--sp-2); margin: 0; padding: clamp(1.25rem, 1rem + 0.9vw, 2rem); border: var(--border); border-radius: var(--r-lg); background: var(--c-surface-1); box-shadow: var(--shadow); }
.tcard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-2); }
.tcard__src { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-eyebrow); font-weight: var(--text-weight-bold); letter-spacing: var(--eyebrow-tracking); text-transform: uppercase; color: var(--c-accent-text); }
.tcard__src .icon { --icon-size: 0.875rem; }
.tcard__src:hover { text-decoration: underline; text-underline-offset: 3px; }
.tcard__mark { margin: -0.35em -0.05em -0.6em 0; font-family: var(--font-display); font-size: 4.5rem; font-weight: var(--display-weight); line-height: 1; color: var(--c-accent); }
.tcard__quote { margin: 0; }
.tcard__quote p { max-width: none; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--c-text); }
.tcard__foot { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-1); padding-top: var(--sp-2); border-top: var(--border); }
.tcard__avatar { display: grid; place-items: center; flex: none; width: 2.75rem; aspect-ratio: 1; border-radius: 50%; background: var(--c-surface-2); color: var(--c-accent-text); font-family: var(--font-display); font-size: var(--fs-h4); font-weight: var(--display-weight); }
.tcard__who { display: grid; min-width: 0; }
.tcard__name { font-weight: var(--text-weight-bold); line-height: 1.3; }
.tcard__role { color: var(--c-text-muted); font-size: var(--fs-small); }
/* lit: the one card that carries the light (home review wall) */
.tcard--lit .tcard__inner { border-color: transparent; background: var(--c-accent); box-shadow: 0 30px 60px -30px rgb(var(--c-accent-rgb) / 0.6); }
.tcard--lit :is(.tcard__src, .tcard__quote p, .tcard__name, .tcard__role) { color: var(--c-accent-ink); }
.tcard--lit .tcard__mark { color: rgb(23 11 2 / 0.35); }
.tcard--lit .tcard__foot { border-top-color: rgb(23 11 2 / 0.18); }
.tcard--lit .tcard__avatar { background: rgb(23 11 2 / 0.12); color: var(--c-accent-ink); }
.tcard--lg .tcard__quote p { font-size: var(--fs-lead); line-height: var(--lh-lead); }
.review-split { display: grid; gap: var(--sp-5) var(--grid-gutter); align-items: center; }
@media (min-width: 992px) { .review-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.review-split__intro { display: grid; gap: var(--sp-3); justify-items: start; }
.review-split__intro .t-h2 { max-width: 12ch; }
.review-grid { display: grid; gap: var(--grid-gutter); list-style: none; }
@media (min-width: 768px) { .review-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); } }
/* in a row, cards share one height and their footers line up */
.review-grid .tcard__inner { height: 100%; }
.review-grid .tcard__quote { flex: 1; }

/* ── "What you get" box ──────────────────────────────────────────────────────
   The deliverables beside a process: kicker, title, a list of label → value rows
   and a footnote. Dashed, like the label on a film can. */
.delivery { display: grid; gap: var(--sp-2); padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem); border: 1px dashed rgb(var(--c-accent-rgb) / 0.5); border-radius: var(--r-lg); background: radial-gradient(circle at 100% 0%, rgb(var(--c-accent-rgb) / 0.12), transparent 55%), rgb(244 239 233 / 0.02); }
.delivery__kicker { font-family: var(--font-mono); font-size: var(--fs-caption); letter-spacing: var(--eyebrow-tracking); text-transform: uppercase; color: var(--c-accent-text); }
.delivery__title { font-size: var(--fs-h3); letter-spacing: var(--display-tracking); line-height: 1.05; }
.delivery__list { display: grid; list-style: none; border-top: var(--border-strong); }
.delivery__list li { display: flex; justify-content: space-between; gap: var(--sp-2); padding: var(--sp-2) 0; border-bottom: var(--border); }
.delivery__list span { color: var(--c-text-muted); }
.delivery__list b { font-weight: var(--text-weight-bold); text-align: right; }
.delivery__foot { font-size: var(--fs-small); color: var(--c-text-muted); }
.delivery__foot a { color: var(--c-accent-text); }

/* ── Social band ─────────────────────────────────────────────────────────────
   "Use it on social" on video service pages: a line of copy and two links. */
.social-band { display: grid; gap: var(--sp-3) var(--sp-5); align-items: center; padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
@media (min-width: 992px) { .social-band { grid-template-columns: minmax(0, 1fr) auto; } }
.social-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(28rem circle at var(--mx, 0%) var(--my, 50%), rgb(var(--c-accent-rgb) / 0.14), transparent 60%); }
.social-band__copy { display: grid; gap: var(--sp-1); }
.social-band__title { font-size: var(--fs-h3); letter-spacing: var(--display-tracking); line-height: 1.05; }
.social-band p { color: var(--c-text-muted); max-width: 52ch; }
.social-band__links { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
@media (max-width: 575.98px) { .social-band__links .btn { width: 100%; } }

/* the one-line title above the logo marquee */
.logos-title { margin-bottom: var(--sp-4); font-family: var(--font-text); font-size: var(--fs-body); font-weight: var(--text-weight); letter-spacing: 0; text-align: center; color: var(--c-text-muted); }
.logos-title strong { color: var(--c-text); }

/* ── Client logo marquee ─────────────────────────────────────────────────── */
.marquee {
  display: grid;
  gap: var(--grid-gutter);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__row { display: flex; width: max-content; }
.marquee__track { display: flex; gap: var(--grid-gutter); padding-right: var(--grid-gutter); }
/* --marquee-dur is the time for a row of 19 logos; rows with more (--logos) take longer, so the speed stays the same */
.marquee.is-looping .marquee__track { animation: marquee calc(var(--marquee-dur) * var(--logos, 19) / 19) linear infinite; }
.marquee.is-looping .marquee__row--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
  .marquee__track { animation: none; }
  .marquee__track[aria-hidden="true"] { display: none; }
}

.logo-tile {
  display: grid;
  place-items: center;
  width: clamp(8rem, 6rem + 6vw, 11rem);
  aspect-ratio: 3 / 2;
  border: var(--border);
  border-radius: var(--r-md);
  /* logos are drawn for white: they sit on paper, in their own colours */
  background: var(--c-paper-1);
  transition: transform var(--dur-base) var(--ease-signature), box-shadow var(--dur-base) var(--ease-signature);
}
.logo-tile img { width: 76%; height: 70%; object-fit: contain; }
.logo-tile:hover { transform: translateY(-3px); box-shadow: var(--glow); }

/* ── FAQ accordion ───────────────────────────────────────────────────────── */
.faq { border-top: var(--border-strong); }
.faq__item { border-bottom: var(--border-strong); }
.faq__q { margin: 0; font-size: inherit; letter-spacing: 0; }
.faq__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  width: 100%;
  padding: var(--sp-3) 0;
  border: 0;
  background: none;
  color: var(--c-text);
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: var(--display-weight);
  font-stretch: var(--display-stretch);
  font-variation-settings: var(--display-variation);
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-hover);
}
.faq__btn:hover { color: var(--c-accent-text); }
.faq__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border: var(--border-strong);
  border-radius: 50%;
  transition: transform var(--dur-base) var(--ease-signature), background-color var(--dur-fast) var(--ease-hover), color var(--dur-fast) var(--ease-hover), border-color var(--dur-fast) var(--ease-hover);
}
.faq__btn[aria-expanded="true"] .faq__icon { transform: rotate(45deg); background: var(--c-accent); border-color: var(--c-accent); color: var(--c-accent-ink); }
/* Height uses the grid-rows technique (no JS measuring); content fades/rises via Motion */
.faq__panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows var(--dur-base) var(--ease-signature); }
.js .faq__panel:not(.is-open) { grid-template-rows: 0fr; }
.faq__inner { overflow: hidden; }
.faq__answer { padding: 0 0 var(--sp-4); max-width: var(--measure); color: var(--c-text-muted); }

/* ── Form fields ─────────────────────────────────────────────────────────── */
.form-grid { display: grid; gap: var(--sp-3); }
@media (min-width: 768px) { .form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .span-2 { grid-column: 1 / -1; } }

.field { display: grid; gap: var(--sp-1); align-content: start; }
.field__label { font-size: var(--fs-small); font-weight: var(--text-weight-bold); color: var(--c-text); }
.field__label .req { color: var(--c-accent-text); }
.field__hint { font-size: var(--fs-small); color: var(--c-text-muted); }

.input, .select, .textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0 var(--sp-2);
  border: var(--border-strong);
  border-radius: var(--r-md);
  background: var(--c-surface-1);
  color: var(--c-text);
  font: inherit;
  font-size: 1rem; /* ≥16px: no iOS zoom */
  transition: border-color var(--dur-fast) var(--ease-hover), box-shadow var(--dur-fast) var(--ease-hover), background-color var(--dur-fast) var(--ease-hover);
}
.textarea { min-height: 8rem; padding-block: var(--sp-2); resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--c-text-muted); opacity: 0.7; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--c-text-muted); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 4px rgb(var(--c-accent-rgb) / 0.18);
  background: var(--c-surface-2);
}
.select {
  appearance: none;
  padding-right: var(--sp-6);
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.select optgroup { background: var(--c-surface-2); color: var(--c-text-muted); font-style: normal; }
.select option { background: var(--c-surface-1); color: var(--c-text); }

.field--error .input, .field--error .select, .field--error .textarea { border-color: var(--c-danger); }

/* Phone with country picker (intl-tel-input, assets/js/modules/phone.js). The library's own stylesheet loads
   with it; these rules restyle it with our tokens. Before it loads (or without JS) the field is a plain input. */
.iti {
  display: block;
  width: 100%;
  --iti-border-color: var(--c-line);
  --iti-hover-color: rgb(var(--c-accent-rgb) / 0.12);
  --iti-country-selector-bg: var(--c-surface-2);
  --iti-icon-color: var(--c-text-muted);
  --iti-spacer-horizontal: var(--sp-2);
  --iti-arrow-padding: var(--sp-1);
}
.iti__selected-country { border-radius: var(--r-md) 0 0 var(--r-md); color: var(--c-text); cursor: pointer; }
.iti__selected-country:focus-visible { outline: 2px solid var(--c-accent); outline-offset: -2px; }
.iti__selected-country-primary { border-radius: var(--r-md) 0 0 var(--r-md); transition: background-color var(--dur-fast) var(--ease-hover); }
.iti__selected-dial-code { color: var(--c-text); font-variant-numeric: tabular-nums; }
.iti__country-selector {
  margin-top: var(--sp-0-5);
  border: var(--border-strong) !important;
  border-radius: var(--r-md);
  background: var(--c-surface-2);
  box-shadow: var(--shadow) !important;
  color: var(--c-text);
  overflow: hidden;
}
.iti--inline-country-selector:not(.iti--detached-country-selector) .iti__country-selector { width: 100%; min-width: 16rem; }
.iti__search-input {
  min-height: 3rem;
  background: var(--c-surface-1);
  color: var(--c-text);
  font: inherit;
  font-size: 1rem; /* ≥16px: no iOS zoom */
}
.iti__search-input::placeholder { color: var(--c-text-muted); opacity: 0.8; }
.iti__search-input:focus-visible { outline: none; background: var(--c-surface-3); }
.iti--inline-country-selector .iti__country-list { max-height: 15rem; }
.iti__country { font-size: var(--fs-small); }
.iti__country.iti__highlight { background-color: rgb(var(--c-accent-rgb) / 0.16); }
.iti__dial-code { color: var(--c-text-muted); margin-left: var(--sp-1); font-variant-numeric: tabular-nums; }
.iti__country-check { color: var(--c-accent-text); }
.iti__no-results { color: var(--c-text-muted); font-size: var(--fs-small); }
.iti__flag { border-radius: 2px; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08); }
.iti--fullscreen-popup.iti--detached-country-selector { background-color: rgb(8 7 6 / 0.72); z-index: var(--z-overlay); }
.iti--fullscreen-popup .iti__country-selector { border-radius: var(--r-lg); }
.field__error { display: flex; align-items: center; gap: var(--sp-1); font-size: var(--fs-small); color: var(--c-danger); }
.field__error .icon { --icon-size: 1rem; }

/* Tick boxes styled as chips (e.g. platforms) */
.check-group { display: flex; flex-wrap: wrap; gap: var(--sp-1); border: 0; padding: 0; margin: 0; }
.check-group legend { float: none; width: auto; margin-bottom: var(--sp-1); font-size: var(--fs-small); font-weight: var(--text-weight-bold); }
.check-chip { position: relative; display: inline-flex; } /* the hidden checkbox covers the whole 44px chip */
.check-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.check-chip span {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  min-height: 2.75rem;
  padding: 0 var(--sp-2);
  border: var(--border-strong);
  border-radius: var(--r-pill);
  color: var(--c-text-muted);
  font-size: var(--fs-small);
  font-weight: var(--text-weight-bold);
  transition: border-color var(--dur-fast) var(--ease-hover), color var(--dur-fast) var(--ease-hover), background-color var(--dur-fast) var(--ease-hover);
}
.check-chip span .icon { --icon-size: 1rem; }
.check-chip input:hover + span { border-color: var(--c-text-muted); color: var(--c-text); }
.check-chip input:checked + span { border-color: var(--c-accent); color: var(--c-text); background: rgb(var(--c-accent-rgb) / 0.12); }
.check-chip input:focus-visible + span { outline: 2px solid var(--c-accent); outline-offset: 3px; }

.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* honeypot */

/* ── Mega-menu panel ─────────────────────────────────────────────────────── */
.mega {
  display: grid;
  grid-template-columns: repeat(var(--mega-cols, 4), minmax(0, 1fr));
  gap: var(--sp-4);
  padding: var(--sp-4);
  border: var(--border);
  border-radius: var(--r-lg);
  background: var(--c-surface-1);
  box-shadow: var(--shadow);
}
.mega--feature { grid-template-columns: repeat(var(--mega-cols, 4), minmax(0, 1fr)) minmax(14rem, 1.2fr); }
.mega__heading { margin-bottom: var(--sp-2); font-family: var(--font-text); font-size: var(--fs-eyebrow); letter-spacing: var(--eyebrow-tracking); text-transform: uppercase; color: var(--c-text-muted); font-weight: var(--text-weight-bold); }
.mega__heading a:hover { color: var(--c-accent-text); }
.mega__links { display: grid; gap: var(--sp-0-5); list-style: none; }
.mega__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-1);
  padding: var(--sp-1) 0;
  font-weight: var(--text-weight-med);
  line-height: 1.3;
}
.mega__link .icon { --icon-size: 1rem; opacity: 0; transform: translateX(-6px); color: var(--c-accent-text); transition: opacity var(--dur-fast) var(--ease-hover), transform var(--dur-base) var(--ease-signature); }
.mega__link:hover { color: var(--c-accent-text); }
.mega__link:hover .icon { opacity: 1; transform: none; }
.mega__feature {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--sp-1);
  min-height: 14rem;
  padding: var(--sp-3);
  border: var(--border);
  border-radius: var(--r-md);
  background: var(--c-surface-2);
  overflow: hidden;
  isolation: isolate;
}
.mega__feature::before { content: ""; position: absolute; inset: -40% -40% auto auto; width: 120%; aspect-ratio: 1; background: var(--light-spot); z-index: -1; transition: transform var(--dur-slow) var(--ease-signature); }
.mega__feature:hover::before { transform: translate(-10%, 10%); }
.mega__feature-title { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: var(--display-weight); font-variation-settings: var(--display-variation); font-stretch: var(--display-stretch); letter-spacing: -0.015em; line-height: 1.15; }

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.breadcrumb { font-size: var(--fs-small); color: var(--c-text-muted); }
/* crumbs flow like a sentence, so a long last crumb continues on the same line */
.breadcrumb ol { margin: 0; padding: 0; list-style: none; line-height: 1.6; }
.breadcrumb li { display: inline; }
/* the slash ends an item, so a wrapped line never starts with a stray "/" */
.breadcrumb li:not(:last-child)::after { content: "/"; margin-inline: var(--sp-1); opacity: 0.5; }
.breadcrumb a:hover { color: var(--c-text); }
.breadcrumb [aria-current] { color: var(--c-text); }

/* ── CTA band ────────────────────────────────────────────────────────────── */
.cta-band {
  position: relative;
  display: grid;
  gap: var(--sp-4);
  padding: clamp(2.5rem, 1.5rem + 5vw, 7rem);
  border: var(--border);
  border-radius: var(--r-lg);
  background: var(--c-surface-1);
  overflow: hidden;
  isolation: isolate;
}
.cta-band .beam { inset: -30% -20% auto auto; }
.cta-band__title { max-width: 16ch; position: relative; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); position: relative; }
@media (min-width: 992px) {
  .cta-band { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}

/* ── Placeholder media (never stock) ─────────────────────────────────────── */
.ph-media {
  position: relative;
  display: grid;
  place-items: end start;
  padding: var(--sp-2);
  border: var(--border);
  border-radius: var(--r-md);
  background:
    radial-gradient(120% 80% at 85% 0%, rgb(var(--c-accent-rgb) / 0.18), transparent 55%),
    repeating-linear-gradient(90deg, rgb(244 239 233 / 0.03) 0 1px, transparent 1px 48px),
    var(--c-surface-2);
  overflow: hidden;
}
.ph-media::before {
  content: "";
  position: absolute;
  inset: -50% -20% auto 30%;
  height: 160%;
  background: var(--light-beam);
  transform: rotate(18deg);
  opacity: 0.6;
  pointer-events: none;
}
.ph-media__label { position: relative; max-width: 100%; white-space: normal; line-height: 1.3; padding-block: var(--sp-0-5); text-align: left; }

/* ── Light cursor (desktop, fine pointer only) ───────────────────────────── */
.cursor-light {
  position: fixed;
  top: 0; left: 0;
  z-index: var(--z-cursor);
  width: 36rem;
  aspect-ratio: 1;
  margin: -18rem 0 0 -18rem;
  border-radius: 50%;
  background: var(--light-spot);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-signature);
}
.cursor-label {
  position: fixed;
  top: 0; left: 0;
  z-index: var(--z-cursor);
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  margin: -2.75rem 0 0 -2.75rem;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-accent-ink);
  font-size: var(--fs-small);
  font-weight: var(--text-weight-bold);
  letter-spacing: 0.04em;
  pointer-events: none;
  opacity: 0;
  scale: 0.4;
}
.has-cursor .cursor-light.is-visible { opacity: 1; }
.theme-light .cursor-light { display: none; }

/* ── Intro: projector beam reveals the logo (first visit per session) ────── */
.intro {
  position: fixed;
  inset: 0;
  z-index: var(--z-intro);
  display: grid;
  place-items: center;
  background: var(--c-bg);
  overflow: hidden;
}
.intro__line {
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-accent-bright), transparent);
  box-shadow: 0 0 24px 2px var(--glow-color);
}
.intro__beam {
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 50% 50%, rgb(255 160 79 / 0.22), transparent 70%);
}
.intro__logo { position: relative; width: clamp(8rem, 6rem + 8vw, 13rem); height: auto; }
.intro__skip { position: absolute; right: var(--page-gutter); bottom: var(--sp-4); }

/* The site intro runs in CSS from first paint, so it never waits for JavaScript. head.php sets
   .intro-pending on the first visit of a session, and .intro-skip if the visitor interrupts. */
.intro[data-intro-site] { display: none; }
.intro-pending:not(.intro-skip) .intro[data-intro-site] { display: grid; animation: intro-lift calc(var(--dur-intro) * 0.4) var(--ease-signature) calc(var(--dur-intro) * 0.6) both; }
.intro-pending [data-intro-site] .intro__line { animation: intro-line calc(var(--dur-intro) * 0.3) var(--ease-signature) both, intro-out var(--dur-fast) var(--ease-hover) calc(var(--dur-intro) * 0.25) forwards; }
.intro-pending [data-intro-site] .intro__beam { animation: intro-beam calc(var(--dur-intro) * 0.42) var(--ease-signature) calc(var(--dur-intro) * 0.18) both; }
.intro-pending [data-intro-site] .intro__logo { animation: intro-logo calc(var(--dur-intro) * 0.42) var(--ease-signature) calc(var(--dur-intro) * 0.18) both; }
@keyframes intro-line { from { transform: scaleX(0); } }
@keyframes intro-out { to { opacity: 0; } }
@keyframes intro-beam { from { transform: scaleY(0.02); opacity: 0; } }
@keyframes intro-logo { from { transform: scale(0.92); opacity: 0; } }
@keyframes intro-lift { from { clip-path: inset(0% 0% 0% 0%); } to { clip-path: inset(0% 0% 100% 0%); visibility: hidden; } }

/* ── Dot grid (Anime.js light flourish) ──────────────────────────────────── */
.dot-grid { display: grid; grid-template-columns: repeat(var(--cols, 24), minmax(0, 1fr)); gap: var(--sp-2) 0; }
.dot-grid i { display: block; width: 4px; height: 4px; margin: auto; border-radius: 50%; background: var(--c-line-strong); }

/* Player injected by video.js inside a reel */
.reel__play.is-playing { cursor: auto; }
.reel__play.is-playing iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Mega panel stacks below desktop (the real mobile menu is an accordion — step 4) */
@media (max-width: 991.98px) {
  .mega, .mega--feature { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mega__feature { grid-column: 1 / -1; min-height: 10rem; }
}
@media (max-width: 575.98px) {
  .mega, .mega--feature { grid-template-columns: minmax(0, 1fr); padding: var(--sp-3); }
}
/* ── Viewfinder overlay (hero screen, story "Shoot", mega-menu previews) ─────────────────────── */
.vf { font-family: var(--font-mono); font-size: var(--fs-caption); letter-spacing: 0.08em; color: rgb(244 239 233 / 0.85); pointer-events: none; }
.vf__corner { position: absolute; width: clamp(1rem, 0.6rem + 1.5vw, 1.75rem); aspect-ratio: 1; border: 0 solid currentColor; }
.vf__corner--tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; transform-origin: 0 0; }
.vf__corner--tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; transform-origin: 100% 0; }
.vf__corner--bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; transform-origin: 0 100%; }
.vf__corner--br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; transform-origin: 100% 100%; }
.vf__rec, .vf__meta, .vf__time { position: absolute; display: inline-flex; align-items: center; gap: 6px; }
.vf__rec { top: var(--sp-1); left: calc(var(--sp-4) - 4px); }
.vf__meta { top: var(--sp-1); right: calc(var(--sp-4) - 4px); }
.vf__time { bottom: var(--sp-1); left: calc(var(--sp-4) - 4px); font-variant-numeric: tabular-nums; }
.vf__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-danger); animation: vf-blink 1.2s steps(2, jump-none) infinite; }
@keyframes vf-blink { 50% { opacity: 0.2; } }

/* ── Video lightbox (native <dialog>) ────────────────────────────────────── */
/* The close button sits in the dialog's own layout, above the video's top-right corner,
   so it is never pushed off screen; the video takes the height that is left. */
.lightbox {
  --lightbox-chrome: calc(var(--tap-min) + var(--sp-10));   /* close button + title + gaps */
  width: min(92vw, 70rem, calc((100svh - var(--lightbox-chrome)) * 16 / 9));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-text);
  overflow: visible;
}
.lightbox[open] { display: grid; grid-template-areas: "close" "frame" "title"; justify-items: center; gap: var(--sp-1); }
.lightbox::backdrop { background: rgb(8 7 6 / 0.88); backdrop-filter: blur(6px); }
.lightbox__frame { grid-area: frame; position: relative; width: 100%; aspect-ratio: 16 / 9; border: var(--border-strong); border-radius: var(--r-lg); overflow: hidden; background: #000; box-shadow: var(--glow); }
.lightbox__frame :is(iframe, video) { position: absolute; inset: 0; width: 100%; height: 100%; }
.lightbox__frame video { object-fit: contain; background: #000; }
.lightbox__title { grid-area: title; width: 100%; contain: inline-size; text-align: center; font-size: var(--fs-small); color: var(--c-text-muted); } /* wraps to the frame, never widens it */
.lightbox__close { grid-area: close; justify-self: end; }
/* Reels play in a tall frame, as they were made; the dialog shrinks to the frame */
.lightbox--tall { width: fit-content; }
.lightbox--tall .lightbox__frame { width: auto; height: min(calc(100svh - var(--lightbox-chrome)), 150vw); aspect-ratio: 9 / 16; }
/* Photos: the frame takes the photo's own shape; a gallery adds previous / next under the caption */
.lightbox[open] .lightbox__nav:not([hidden]) { grid-area: nav; display: flex; align-items: center; gap: var(--sp-2); }
.lightbox[open]:has(.lightbox__nav:not([hidden])) { grid-template-areas: "close" "frame" "title" "nav"; }
.lightbox__count { min-width: 4.5rem; text-align: center; font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--c-text-muted); }
.lightbox--photo { width: fit-content; max-width: 92vw; }
.lightbox--photo .lightbox__frame { width: auto; max-width: 92vw; aspect-ratio: auto; background: var(--c-surface-1); }
.lightbox--photo .lightbox__frame img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100svh - var(--lightbox-chrome) - var(--tap) - var(--sp-2)); }

/* ── Work tiles + justified grid (home "Our work", portfolio, service pages) ──── */
.work__tabs { margin-bottom: var(--sp-4); }
.work__tabs .tabs { width: 100%; }
@media (max-width: 767.98px) {
  /* filters scroll edge to edge, like an app filter bar */
  .work__tabs { margin-inline: calc(var(--page-gutter) * -1); }
  .work__tabs .tabs { border-radius: 0; border-inline: 0; padding-inline: var(--page-gutter); scroll-padding-inline: var(--page-gutter); }
}
@media (min-width: 768px) { .work__tabs .tabs { width: auto; } }
/* Justified rows: every tile in a row shares one height, so 9:16 reels sit beside
   16:9 films without towering over them, and each row runs the full width.
   A tile grows in proportion to its shape (--ar = width / height). */
.work__grid { --row-h: clamp(8.5rem, 5rem + 11vw, 14rem); position: relative; isolation: isolate; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3) var(--grid-gutter); list-style: none; }
@media (min-width: 1200px) { .work__grid { row-gap: var(--sp-4); } }
.work__grid .work-item.is-last-row { flex-grow: 0; } /* set by home.js: the last row keeps its natural size */
/* phones: a film takes the full width; exactly three reels fit a row (3 × 9/16 = 1.6875) */
@media (max-width: 575.98px) {
  .work__grid { --row-h: calc((100vw - var(--page-gutter) * 2 - var(--grid-gutter) * 2) / 1.6875 - 1px); }
  .work__grid .work-item { max-width: calc(var(--ar) * var(--row-h) * 1.35); }
}
.work-item { --ar: 1.7778; flex: var(--ar) 0 calc(var(--ar) * var(--row-h)); min-width: 0; max-width: calc(var(--ar) * var(--row-h) * 1.7); }
.work-item--tall { --ar: 0.5625; }
.work-item[hidden] { display: none; }
.work-item--tall .work-item__media { aspect-ratio: 9 / 16; }
.no-js .work__tabs ~ .work__grid .work-item:not([data-featured]) { display: none; } /* tabbed grids: no JS, no filter, so show the favourites */
.work-item__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: var(--border);
  border-radius: var(--r-md);
  background: var(--c-surface-2);
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
}
.work-item__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-signature), filter var(--dur-base) var(--ease-signature); filter: saturate(0.9) brightness(0.88); }
.work-item__media .work__bg { filter: blur(18px) brightness(0.45) saturate(1.2); transform: scale(1.3); }
.work-item__media .work__img--v { object-fit: contain; filter: none; }
.work-item__media:hover .work__img:not(.work__img--v) { transform: scale(1.04); filter: saturate(1) brightness(1); }
.work-item__play { position: absolute; z-index: 2; left: 50%; top: 50%; display: grid; place-items: center; width: 3rem; height: 3rem; translate: -50% -50%; border-radius: 50%; background: var(--c-overlay); transition: background-color var(--dur-fast) var(--ease-hover), color var(--dur-fast) var(--ease-hover), scale var(--dur-base) var(--ease-signature); }
.work-item__play .icon { fill: currentColor; --icon-size: 1rem; }
.work-item__media:hover .work-item__play { background: var(--c-accent); color: var(--c-accent-ink); scale: 1.1; }
.work-item__media--ph { display: grid; place-items: center; align-content: center; gap: var(--sp-2); background: radial-gradient(80% 70% at 70% 0%, rgb(var(--c-accent-rgb) / 0.18), transparent 60%), repeating-linear-gradient(90deg, rgb(244 239 233 / 0.03) 0 1px, transparent 1px 28px), var(--c-surface-2); }
.work-item__icon { --icon-size: 2.5rem; stroke-width: 1.1; color: var(--c-accent-text); filter: drop-shadow(0 0 12px var(--glow-color)); }
.work-item__meta { display: grid; gap: 2px; margin-top: var(--sp-1); }
.work-item__client { font-weight: var(--text-weight-bold); line-height: 1.3; font-size: var(--fs-small); }
.work-item__kind { font-size: var(--fs-caption); color: var(--c-text-muted); letter-spacing: 0.02em; }
/* narrow (9:16) tiles: names wrap to two lines rather than cut off mid-word */
.work-item__meta > span { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: break-word; }
@media (max-width: 575.98px) { .work-item__media--ph .chip { display: none; } }
@media (min-width: 1200px) {
  .work-item__client { font-size: var(--fs-body); }
  .work-item__kind { font-size: var(--fs-small); }
  .work-item__play { width: 3.5rem; height: 3.5rem; }
}

/* ── Trust badges + logo strip on phones (components/client-logos.php) ─────── */
.badges { display: grid; gap: var(--grid-gutter); margin-top: var(--sp-5); list-style: none; }
@media (min-width: 768px) { .badges { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.badge { display: flex; align-items: center; gap: var(--sp-2); min-height: 4.5rem; padding: var(--sp-2); border: var(--border); border-radius: var(--r-md); background: var(--c-surface-1); transition: border-color var(--dur-fast) var(--ease-hover); }
a.badge:hover { border-color: var(--c-line-strong); }
.badge__mark { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: rgb(var(--c-accent-rgb) / 0.12); color: var(--c-accent-text); }
.badge__mark .icon { --icon-size: 1.25rem; }
.badge__mark--logo { width: 4.5rem; border-radius: var(--r-sm); background: var(--c-paper-1); }
.badge__mark--logo img { width: 1.5rem; height: 1.5rem; object-fit: contain; }
.badge__mark--wide img { width: 3.5rem; height: 1.5rem; }
.badge__text { display: grid; line-height: 1.3; }
.badge__text small { font-size: var(--fs-small); color: var(--c-text-muted); }
.badge__go { margin-left: auto; --icon-size: 1rem; color: var(--c-text-muted); }
@media (max-width: 767.98px) {
  .logo-tile { width: 7.5rem; }
  .marquee { gap: var(--sp-1); }
  .marquee__track { gap: var(--sp-1); padding-right: var(--sp-1); }
}

/* ── Office slates (components/offices.php) ────────────────────────────────── */
.offices__grid { display: grid; gap: var(--grid-gutter); }
@media (min-width: 768px) { .offices__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .offices__grid { grid-template-columns: minmax(0, 1fr) 12rem minmax(0, 1fr); align-items: center; } }
.slate {
  position: relative;
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-3);
  border: var(--border-strong);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--c-surface-2), var(--c-surface-1));
  overflow: hidden;
  isolation: isolate;
}
.slate::before { content: ""; position: absolute; z-index: -1; inset: -50% -30% auto auto; width: 90%; aspect-ratio: 1; background: var(--light-spot); }
.slate__head { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: var(--fs-small); }
.slate__code { padding: 2px var(--sp-1); border: 1px solid rgb(var(--c-accent-rgb) / 0.5); border-radius: var(--r-sm); color: var(--c-accent-text); letter-spacing: 0.12em; }
.slate__time { color: var(--c-text-muted); font-variant-numeric: tabular-nums; }
.slate__time:has(span:empty) { visibility: hidden; }
.slate__city { font-size: var(--fs-h2); letter-spacing: var(--display-tracking); line-height: 0.95; margin-top: var(--sp-2); }
.slate__country { color: var(--c-accent-text); font-size: var(--fs-small); font-weight: var(--text-weight-bold); }
.slate__address { margin: 0; font-style: normal; color: var(--c-text-muted); max-width: 36ch; }
.slate__note { display: flex; align-items: center; gap: var(--sp-1); margin: 0; font-size: var(--fs-small); color: var(--c-text); }
.slate__note .icon { --icon-size: 1rem; color: var(--c-accent-text); }
.slate__actions { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin-top: var(--sp-1); }
@media (max-width: 575.98px) { .slate__actions .btn { width: 100%; } }
@media (min-width: 768px) { .slate { padding: var(--sp-5); } }
.offices__route { display: none; }
@media (min-width: 1200px) { .offices__route { display: grid; justify-items: center; gap: var(--sp-1); } }
.route { width: 100%; overflow: visible; }
.route__path { fill: none; stroke: var(--c-accent); stroke-width: 1.5; stroke-dasharray: 0.02 0.02; opacity: 0.7; }
.route__end { fill: var(--c-surface-3); stroke: var(--c-accent); stroke-width: 1.5; }
.route__dot { fill: var(--c-accent-bright); filter: drop-shadow(0 0 6px var(--glow-color)); }
.route__label { font-size: var(--fs-caption); letter-spacing: var(--eyebrow-tracking); text-transform: uppercase; color: var(--c-text-muted); text-align: center; }
@media (prefers-reduced-motion: reduce) { .route__dot { display: none; } }

/* ── Lead form layout (components/lead-form.php) ───────────────────────── */
.plan__form { display: grid; gap: var(--sp-3); align-content: start; }
@media (min-width: 576px) { .plan__form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .plan__form .field--full { grid-column: 1 / -1; } }
.plan__form .input, .plan__form .select { min-height: 3.25rem; background: var(--c-bg); }
.plan__form .textarea { background: var(--c-bg); }
.plan__submit { display: grid; gap: var(--sp-2); justify-items: start; }
@media (max-width: 575.98px) { .plan__submit .btn { width: 100%; } }
.plan__submit p a { text-decoration: underline; text-underline-offset: 0.2em; }
.field__error[hidden] { display: none; }
.plan__form.is-sending .btn { opacity: 0.6; pointer-events: none; }

/* ── FAQ split: sticky intro beside the accordion (inner pages) ───────────── */
.faq-split { display: grid; gap: var(--sp-5) var(--grid-gutter); }
.faq-split__intro { display: grid; gap: var(--sp-3); justify-items: start; align-content: start; }
@media (min-width: 992px) {
  .faq-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .faq-split__intro { position: sticky; top: calc(var(--header-h) + var(--sp-6)); }
}
.faq-split .faq__btn { min-height: 3.5rem; }
.faq__answer a { color: var(--c-accent-text); text-decoration: underline; text-underline-offset: 0.2em; }

/* ── Related services: icon · name · one line · arrow (service pages) ────── */
.related { display: grid; gap: var(--sp-2); list-style: none; }
@media (min-width: 576px) { .related { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .related { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.related > li { display: grid; }
.related__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "icon name arrow" "icon text arrow";
  align-items: center;
  gap: 2px var(--sp-2);
  padding: var(--sp-2) var(--sp-3) var(--sp-2) var(--sp-2);
  border: var(--border);
  border-radius: var(--r-md);
  background: var(--c-surface-1);
  transition: border-color var(--dur-fast) var(--ease-hover), background-color var(--dur-fast) var(--ease-hover);
}
.related__icon { grid-area: icon; display: grid; place-items: center; width: 3rem; aspect-ratio: 1; border-radius: 50%; background: rgb(var(--c-accent-rgb) / 0.12); color: var(--c-accent-text); }
.related__icon .icon { --icon-size: 1.25rem; }
.related__name { grid-area: name; font-weight: var(--text-weight-bold); line-height: 1.3; }
.related__text { grid-area: text; color: var(--c-text-muted); font-size: var(--fs-small); line-height: 1.4; }
.related__link > .icon--arrow { grid-area: arrow; color: var(--c-accent-text); transition: transform var(--dur-base) var(--ease-signature); }
a.related__link[href]:hover { border-color: var(--c-line-strong); background: var(--c-surface-2); }
a.related__link[href]:hover > .icon--arrow { transform: translateX(4px); }

/* ── Plan card: the closing lead form (components/lead-form.php inside) ────── */
.plan-card {
  position: relative;
  display: grid;
  gap: var(--sp-5) var(--grid-gutter);
  padding: var(--sp-4) var(--sp-3);
  border: var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--c-surface-1);
  overflow: hidden;
  isolation: isolate;
}
.plan-card .beam { z-index: -1; inset: -40% -30% auto auto; }
@media (min-width: 768px) { .plan-card { padding: var(--sp-6); } }
@media (min-width: 992px) { .plan-card { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); padding: var(--sp-8); align-items: start; } }
.plan-card__intro { display: grid; gap: var(--sp-3); align-content: start; }
.section--plan { padding-bottom: var(--section-pad); }

/* ── Thank-you page ─────────────────────────────────────────────────────── */
.thanks__card { position: relative; display: grid; gap: var(--sp-3); justify-items: start; max-width: 52rem; padding: var(--sp-5) var(--sp-3); border: var(--border-strong); border-radius: var(--r-lg); background: var(--c-surface-1); overflow: hidden; isolation: isolate; }
.thanks__card .beam { z-index: -1; }
.thanks__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-1); }
@media (min-width: 768px) { .thanks__card { padding: var(--sp-8); } }
@media (max-width: 575.98px) { .thanks__actions .btn { width: 100%; } }

/* Touch screens cannot hover to light a logo, so show them lit */
@media (hover: none) { .logo-tile img { filter: grayscale(0.35) brightness(1.1); opacity: 0.9; } }

/* ── Page header (About, Contact, Portfolio, legal) ──────────────────────
   A projector title card. In front: only the breadcrumb and the H1. Behind: the
   page's name as a giant outlined word sinking into the bottom edge, and a beam
   of light that travels across it, lighting the letters it touches. The beam
   drifts across the word on its own and, on desktop, eases to the pointer
   (modules/page-header.js). Without JS or with reduced motion it rests on the word.
   A thin line of light draws along the bottom edge. Content starts below. */
.page-header {
  --ph-gx: 30%; /* the beam on the header (glow, cone) — set in px by page-header.js */
  position: relative;
  overflow: clip;
  isolation: isolate;
}
#main > .page-header:first-child { padding-top: calc(var(--header-offset) + var(--sp-5)); }
/* the beam: a soft cone falling from above onto wherever the light is */
.page-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: calc(var(--header-offset) * -1) 0 0;
  background:
    radial-gradient(28rem 70% at var(--ph-gx) 100%, rgb(var(--c-accent-rgb) / 0.16), transparent 70%),
    conic-gradient(from 180deg at var(--ph-gx) -20%, transparent 168deg, rgb(255 160 79 / 0.09) 176deg, rgb(255 160 79 / 0.14) 180deg, rgb(255 160 79 / 0.09) 184deg, transparent 192deg);
  pointer-events: none;
}
.page-header__inner { position: relative; z-index: 1; display: grid; gap: var(--sp-3); justify-items: start; }
.page-header__title { max-width: 18ch; }

/* the title card: outline letters, and a lit copy masked to the beam */
.page-header__word {
  --ph-size: min(calc((100vw - var(--page-gutter) * 2) / (var(--chars) * 0.6)), calc(var(--container-max) / (var(--chars) * 0.6)), 15rem);
  display: grid;
  width: min(100%, var(--container-max));
  margin: clamp(1rem, 0.5rem + 2vw, 2.5rem) auto calc(var(--ph-size) * -0.2);
  padding-inline: var(--page-gutter);
  font-family: var(--font-display);
  font-size: var(--ph-size);
  font-weight: var(--display-weight);
  font-stretch: var(--display-stretch);
  font-variation-settings: var(--display-variation);
  letter-spacing: -0.04em;
  line-height: 0.82;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}
.page-header__word { --ph-x: 30%; } /* the beam on the letters — set in px by page-header.js */
.page-header__word > span { grid-area: 1 / 1; justify-self: start; color: transparent; }
.page-header__outline { -webkit-text-stroke: 1px rgb(244 239 233 / 0.1); }
.page-header__lit {
  background: radial-gradient(min(22rem, 40vw) 120% at var(--ph-x) 70%, rgb(255 228 196 / 0.95), rgb(255 160 79 / 0.75) 22%, rgb(var(--c-accent-rgb) / 0.25) 48%, transparent 72%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 24px rgb(var(--c-accent-rgb) / 0.35));
}
.page-header__beam { position: absolute; z-index: 1; inset: auto 0 0; height: 1px; background: var(--c-line); }
.page-header__beam::after {
  content: "";
  position: absolute;
  inset: -1px auto -1px 0;
  width: min(42rem, 70%);
  background: linear-gradient(90deg, transparent, rgb(var(--c-accent-rgb) / 0.9) 35%, var(--c-accent-bright) 50%, transparent);
  box-shadow: 0 0 14px rgb(var(--c-accent-rgb) / 0.5);
  transform-origin: left center;
}

/* motion: the card fades up, then the projector sweeps the word, back and forth */
.js-motion .page-header__inner > * { animation: ph-rise var(--dur-slow) var(--ease-signature) backwards; }
.js-motion .page-header__title { animation-delay: var(--stagger-items); }
.js-motion .page-header__word { animation: ph-fade calc(var(--dur-slow) * 1.5) var(--ease-signature) calc(var(--stagger-items) * 2) backwards; }
.js-motion .page-header__beam::after { animation: ph-beam calc(var(--dur-slow) * 1.6) var(--ease-signature) calc(var(--stagger-items) * 2) backwards; }
@keyframes ph-rise { from { opacity: 0.01; transform: translateY(var(--reveal-rise)); } }
@keyframes ph-fade { from { opacity: 0; transform: translateY(8%); } }
@keyframes ph-beam { from { transform: scaleX(0); opacity: 0; } }

/* Sector picture cards: a real photo + short copy (Corporate Photography, Social Media Marketing industries) */
.sectors { display: grid; gap: var(--grid-gutter); list-style: none; }
@media (min-width: 576px) { .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sector--wide { grid-column: 1 / -1; } }
.sector { display: grid; grid-template-rows: auto 1fr; background: var(--c-bg); transition: border-color var(--dur-base) var(--ease-signature); }
.sector::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(20rem circle at var(--mx, 50%) var(--my, 0%), rgb(var(--c-accent-rgb) / 0.12), transparent 60%); opacity: 0; pointer-events: none; transition: opacity var(--dur-base) var(--ease-signature); }
.sector:hover { border-color: var(--c-line-strong); }
.sector:hover::before { opacity: 1; }
.sector__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.sector__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) brightness(0.8); transition: transform var(--dur-slow) var(--ease-signature), filter var(--dur-base) var(--ease-signature); }
.sector:hover .sector__media img { transform: scale(1.04); filter: none; }
.sector__body { display: grid; grid-template-rows: auto 1fr auto; gap: var(--sp-1); padding: clamp(1.25rem, 1rem + 1vw, 2rem); }
.sector h3 { font-size: var(--fs-h4); letter-spacing: -0.015em; line-height: 1.2; }
.sector p { color: var(--c-text-muted); font-size: var(--fs-small); }
.sector .sector__use { margin-top: var(--sp-1); padding-top: var(--sp-2); border-top: var(--border); font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--c-accent-text); }
@media (min-width: 768px) {
  .sector--wide { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: none; }
  .sector--wide .sector__media { aspect-ratio: auto; min-height: 100%; }
  .sector--wide .sector__body { align-content: center; grid-template-rows: none; }
}
@media (min-width: 992px) {
  .sectors--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sectors--3 .sector--wide, .sectors--3 .sector--wide-lg { grid-column: span 2; }
  .sector--wide-lg { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: none; }
  .sector--wide-lg .sector__media { aspect-ratio: auto; min-height: 100%; }
  .sector--wide-lg .sector__body { align-content: center; grid-template-rows: none; }
}

/* Featured video: one large playable video with a short caption beside it (podcast pages) */
.feature-video { display: grid; gap: var(--sp-3) var(--grid-gutter); align-items: center; }
@media (min-width: 992px) { .feature-video { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); } }
.feature-video__media { border-radius: var(--r-lg); }
.feature-video__media .work-item__play { width: 4rem; height: 4rem; }
.feature-video__media .work-item__play .icon { --icon-size: 1.25rem; }
.feature-video__body { display: grid; gap: var(--sp-1); max-width: 38ch; }
.feature-video__kicker { font-family: var(--font-mono); font-size: var(--fs-caption); letter-spacing: var(--eyebrow-tracking); text-transform: uppercase; color: var(--c-accent-text); }
.feature-video__title { font-size: var(--fs-h3); letter-spacing: -0.02em; line-height: 1.1; }
.feature-video__body > p:last-child { color: var(--c-text-muted); }

/* Instagram in the lightbox: Instagram’s player frames every reel and post at 4:5 and adds its
   own header and footer (about 13.5rem), so the frame is sized to exactly that */
.lightbox--ig { --ig-ar: 0.8; --ig-chrome: 13.5rem; width: fit-content; }
.lightbox--ig .lightbox__frame {
  --igw: min(92vw, 32rem, calc((100svh - var(--lightbox-chrome) - var(--ig-chrome)) * var(--ig-ar)));
  width: var(--igw);
  height: calc(var(--igw) / var(--ig-ar) + var(--ig-chrome));
  aspect-ratio: auto;
  background: var(--c-paper-1);
}
/* A 4:5 post tile in a work grid (reels use .work-item--tall) */
.work-item--post { --ar: 0.8; }
.work-item--post .work-item__media { aspect-ratio: 4 / 5; }

/* A form's message box: why a form was turned back (forms.js, or form-guard.php without JS). Same look as .qc__alert */
.form-alert { padding: var(--sp-1) var(--sp-2); border: 1px solid var(--c-danger); border-radius: var(--r-md); font-size: var(--fs-small); color: var(--c-danger); }
.form-alert[hidden] { display: none; }
.form-alert:focus { outline: none; }
.form-recaptcha { margin-top: var(--sp-1); }
.grecaptcha-badge { visibility: hidden !important; } /* its notice is printed under each form instead (form-guard.php) */
