/* ==========================================================================
   davidaller.com — strategy and AI systems portfolio
   Design language: cinematic, dark, high-end, type-led, restrained.
   Plain CSS, no framework. Mobile-first with design-led breakpoints.
   ========================================================================== */

:root {
  /* Palette — near-black stages, warm off-white, single brass accent */
  --ink:        #0a0a0b;   /* page background */
  --ink-2:      #121214;   /* raised surfaces */
  --ink-3:      #1b1b1f;   /* cards / hover */
  --line:       #2a2a30;   /* hairlines */
  --paper:      #f4f1ea;   /* primary text */
  --paper-dim:  #a9a59c;   /* secondary text */
  --paper-faint:#8e8a83;   /* captions */
  --accent:     #c9a25f;   /* brass — used sparingly */
  --accent-dim: #8a6f3f;

  --maxw: 1180px;
  --gutter: 24px;
  --radius: 4px;

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

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

/* This site is intentionally dark-only (a cinematic, type-led room). We still
   guard the tokens so a forced light mode degrades gracefully. */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---- Typography ---------------------------------------------------------- */
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--f-sans);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 1rem;
}

.lead { font-size: 1.15rem; color: var(--paper-dim); max-width: 60ch; }

/* ---- Top nav ------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav__brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--f-display);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
.nav__brand b { font-weight: 600; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 7px;
  display: block; flex: 0 0 auto;
  box-shadow: 0 0 0 1px var(--line);
}
.brand-name small {
  display: block; font-family: var(--f-sans);
  font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--paper-faint); font-weight: 500; margin-top: 1px;
}
.nav__links { display: flex; gap: 1.6rem; align-items: center; }
.nav__links a {
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--paper-dim); transition: color 0.25s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--paper); }
.nav__cta {
  border: 1px solid var(--accent-dim); color: var(--accent) !important;
  padding: 0.5rem 0.9rem; border-radius: var(--radius);
}
.nav__cta:hover { background: var(--accent); color: var(--ink) !important; border-color: var(--accent); }

@media (max-width: 640px) {
  /* Phones: brand + CTA on row one, the section links on row two (they used to be hidden, leaving no nav). */
  .nav__inner { flex-wrap: wrap; height: auto; padding-top: 0.6rem; padding-bottom: 0.5rem; row-gap: 0.5rem; }
  .nav__links { display: contents; }
  .nav__cta { order: 3; padding: 0.3rem 0.55rem; font-size: 0.7rem; }
  .nav__inner::after { content: ""; order: 2; flex-basis: 100%; height: 0; }
  .nav__links a { letter-spacing: 0.04em; }
  .nav__links a:not(.nav__cta) { order: 3; font-size: 0.74rem; }
}

/* ---- Hero --------------------------------------------------------------- */
.hero { position: relative; padding: clamp(3rem, 8vh, 6rem) 0 clamp(2rem,5vh,4rem); }
.hero__head { max-width: 50ch; margin-bottom: 2.4rem; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  margin-bottom: 1.2rem;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .btn-row { justify-content: flex-start; }
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
.hero__grid .hero__head { margin-bottom: 0; }
.hero__photo {
  aspect-ratio: 4 / 5; max-width: 320px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--ink-3);
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 4rem; }
  .hero__photo { max-width: 400px; justify-self: end; width: 100%; }
}

/* ---- Generic section ----------------------------------------------------- */
.section { padding: clamp(3.5rem, 9vh, 7rem) 0; border-top: 1px solid var(--line); }
.section__head { margin-bottom: 2.8rem; max-width: 60ch; }
.section__head h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: 0.9rem; }

/* ---- Bio ----------------------------------------------------------------- */
.bio__grid { display: grid; gap: 2.5rem; }
.bio__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2rem; }
/* D-2026-11-30-22: one stat, numeral beside its label in a single row, aligned to the text column. */
.bio__stat { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 60ch; }
.bio__stat .stat__n { font-size: 3rem; line-height: 1; }
.bio__stat .stat__l { font-size: 0.9rem; line-height: 1.35; max-width: 22ch; }
.stat__n { font-family: var(--f-display); font-size: 2.2rem; color: var(--accent); }
.stat__l { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-dim); }
.pill-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.pill {
  font-size: 0.76rem; letter-spacing: 0.06em;
  border: 1px solid var(--line); color: var(--paper-dim);
  padding: 0.35rem 0.75rem; border-radius: 100px;
}
@media (min-width: 820px) {
  .bio__grid { grid-template-columns: 1.3fr 1fr; align-items: start; gap: 4rem; }
}

/* ---- Work grid ----------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.2rem; }
.filter {
  font-family: var(--f-sans);
  font-size: 0.78rem; letter-spacing: 0.06em;
  background: none; color: var(--paper-dim);
  border: 1px solid var(--line); border-radius: 100px;
  padding: 0.4rem 0.9rem; cursor: pointer;
  transition: all 0.2s var(--ease);
}
.filter:hover { color: var(--paper); border-color: var(--paper-faint); }
.filter[aria-pressed="true"] { color: var(--ink); background: var(--accent); border-color: var(--accent); font-weight: 600; }

.work-grid {
  display: grid; gap: 1.6rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--accent-dim); }
.card__thumb {
  aspect-ratio: 16 / 9; position: relative; background: var(--ink-3);
  overflow: hidden;
}
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card__thumb img { transform: scale(1.05); }
.card__thumb--empty {
  display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, #15151a 0 2px, #121214 2px 10px);
  color: var(--paper-faint); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.card__year {
  position: absolute; top: 10px; right: 10px;
  font-size: 0.7rem; letter-spacing: 0.1em;
  background: rgba(0,0,0,0.6); color: var(--paper);
  padding: 0.2rem 0.5rem; border-radius: 100px; backdrop-filter: blur(4px);
}
.card__body { padding: 1.1rem 1.2rem 1.3rem; }
.card__role { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.card__title { font-family: var(--f-display); font-size: 1.25rem; line-height: 1.15; margin-bottom: 0.35rem; }
.card__client { font-size: 0.85rem; color: var(--paper-dim); }
.card__tag--placeholder {
  display: inline-block; margin-top: 0.7rem;
  font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-dim); border: 1px dashed var(--accent-dim);
  padding: 0.15rem 0.5rem; border-radius: 3px;
}

.empty-state {
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 3rem 2rem; text-align: center; color: var(--paper-dim);
}

/* ---- Design gallery ------------------------------------------------------ */
.gallery {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.tile {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, #15151a 0 2px, #101013 2px 11px);
  border: 1px solid var(--line);
  display: grid; place-items: center; text-align: center; padding: 1rem;
  overflow: hidden;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile__ph { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-faint); }
.callout {
  border: 1px solid var(--accent-dim);
  background: rgba(201,162,95,0.05);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem; margin-bottom: 2.4rem;
  font-size: 0.95rem; color: var(--paper-dim);
}
.callout b { color: var(--paper); }

/* ---- Contact / CTA ------------------------------------------------------- */
.cta {
  text-align: center;
  background:
    radial-gradient(90% 140% at 50% 0%, rgba(201,162,95,0.09), transparent 60%);
}
.cta h2 { font-size: clamp(2rem, 6vw, 3.6rem); margin-bottom: 1.2rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--f-sans); font-size: 0.9rem; letter-spacing: 0.04em;
  background: var(--accent); color: var(--ink);
  border: 1px solid var(--accent); border-radius: var(--radius);
  padding: 0.85rem 1.6rem; font-weight: 600;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: #d8b26e; }
.btn--ghost { background: none; color: var(--paper); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--paper); background: none; }
.btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }

/* ---- Footer -------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 2.5rem 0; color: var(--paper-faint); font-size: 0.8rem; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer a:hover { color: var(--paper); }

/* ---- Motion / reveal ----------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

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

/* ---- Featured case study (home hero block) ------------------------------- */
.feature {
  display: grid; gap: 1.5rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  overflow: hidden;
}
.feature__media {
  position: relative; aspect-ratio: 16 / 9; background: #000;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(201,162,95,0.1), transparent 55%),
    repeating-linear-gradient(135deg, #101014 0 2px, #0b0b0d 2px 10px);
}
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__flag {
  /* bottom-right: the flagship frame's icon arc fills the top edge (Dave 11-30: keep it all visible) */
  position: absolute; bottom: 14px; right: 14px;
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink); background: var(--accent);
  padding: 0.3rem 0.7rem; border-radius: 100px; font-weight: 700;
}
.feature__body { padding: 0 1.8rem 2rem; }
.feature__eyebrow { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem; }
.feature h3 { font-family: var(--f-display); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.4rem; }
.feature__client { color: var(--paper-dim); font-size: 0.95rem; margin-bottom: 1rem; }
.feature__metrics { display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem; margin: 1.4rem 0 1.6rem; }
.feature__metric .m-n { font-family: var(--f-display); font-size: 1.9rem; color: var(--accent); line-height: 1; }
.feature__metric .m-l { font-size: 0.78rem; color: var(--paper-dim); margin-top: 0.3rem; max-width: 20ch; }
/* The flagship image is a 16:9 frame that must show in full (Dave 11-30), so the media box
   stays 16:9 at every width: image on top below 1100px, side by side above it. */
@media (min-width: 1100px) {
  .feature { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 0; }
  .feature__media { aspect-ratio: 16 / 9; height: auto; }
  .feature__body { padding: 2.4rem 2.4rem; }
}

/* ---- Case study cards ---------------------------------------------------- */
.case-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
.case-card {
  display: block; background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.7rem; transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.case-card:hover { border-color: var(--accent-dim); transform: translateY(-3px); }
.case-card__cat { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.7rem; }
.case-card h3 { font-family: var(--f-display); font-size: 1.5rem; margin-bottom: 0.2rem; }
.case-card__client { color: var(--paper-dim); font-size: 0.9rem; margin-bottom: 0.9rem; }
.case-card__sum { color: var(--paper-dim); font-size: 0.92rem; line-height: 1.55; }
.case-card__metrics { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.2rem; }
.case-card__metrics span { font-size: 0.78rem; color: var(--paper-faint); }
.case-card__metrics b { font-family: var(--f-display); color: var(--accent); font-size: 1.1rem; display: block; }
.case-card__more { display: inline-block; margin-top: 1.2rem; font-size: 0.8rem; letter-spacing: 0.06em; color: var(--paper); border-bottom: 1px solid var(--accent-dim); padding-bottom: 2px; }

/* ---- Case study detail page --------------------------------------------- */
.cs-hero { padding: clamp(2.5rem, 7vh, 5rem) 0 2rem; }
.cs-hero__cat { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.cs-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin-bottom: 0.6rem; }
.cs-hero__meta { color: var(--paper-dim); font-size: 1rem; }
.cs-media {
  aspect-ratio: 16/9; border: 1px solid var(--line); border-radius: var(--radius);
  background: radial-gradient(120% 120% at 50% 0%, rgba(201,162,95,0.09), transparent 55%), repeating-linear-gradient(135deg, #101014 0 2px, #0b0b0d 2px 10px);
  display: grid; place-items: center; text-align: center; margin: 2rem 0; color: var(--paper-faint); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; padding: 2rem;
}
.cs-media video { width: 100%; height: 100%; object-fit: cover; }
.cs-body { display: grid; gap: 2.4rem; }
.cs-block h2 { font-family: var(--f-display); font-size: 1.5rem; margin-bottom: 0.7rem; color: var(--paper); }
.cs-block p { color: var(--paper-dim); max-width: 64ch; }
.cs-block--own { border-left: 2px solid var(--accent); padding-left: 1.4rem; }
.cs-work { list-style: none; padding: 0; margin: 0.4rem 0 0; display: grid; gap: 0.5rem; }
.cs-work li { color: var(--paper-dim); padding-left: 1.3rem; position: relative; }
.cs-work li::before { content: "—"; position: absolute; left: 0; color: var(--accent-dim); }
.cs-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 1.4rem; margin-top: 0.5rem; }
.cs-metric { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.cs-metric .m-n { font-family: var(--f-display); font-size: 2.1rem; color: var(--accent); line-height: 1; }
.cs-metric .m-l { font-size: 0.8rem; color: var(--paper-dim); margin-top: 0.5rem; }
.cs-note { font-size: 0.82rem; color: var(--paper-faint); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.cs-back { display: inline-block; margin-bottom: 1.5rem; font-size: 0.82rem; color: var(--paper-dim); }
.cs-back:hover { color: var(--paper); }
@media (min-width: 860px) { .cs-body { grid-template-columns: 1fr; } }

/* ---- Brand roster -------------------------------------------------------- */
.roster { display: flex; flex-wrap: wrap; gap: 0.6rem 0.7rem; }
.roster span {
  font-family: var(--f-sans); font-size: 0.82rem; letter-spacing: 0.02em;
  color: var(--paper-dim); border: 1px solid var(--line); border-radius: 100px;
  padding: 0.4rem 0.85rem; transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.roster span:hover { color: var(--paper); border-color: var(--paper-faint); }
.roster__label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-faint); margin: 1.4rem 0 0.8rem; width: 100%; }

/* ---- AI differentiator strip -------------------------------------------- */
.diff { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .diff { grid-template-columns: repeat(3, 1fr); } }
.diff__item { border-top: 1px solid var(--accent-dim); padding-top: 1.1rem; }
.diff__item h4 { font-family: var(--f-display); font-size: 1.15rem; margin-bottom: 0.4rem; }
.diff__item p { font-size: 0.9rem; color: var(--paper-dim); }

/* ---- Case card thumbnail ------------------------------------------------- */
.case-card { padding: 0; overflow: hidden; }
.case-card__thumb { aspect-ratio: 16/9; background: var(--ink-3); overflow: hidden; }
.case-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.case-card:hover .case-card__thumb img { transform: scale(1.04); }
.case-card > :not(.case-card__thumb) { margin-left: 1.7rem; margin-right: 1.7rem; }
.case-card__cat { margin-top: 1.4rem; }
.case-card__more { margin-bottom: 1.6rem; }

/* ---- Services ---------------------------------------------- */
.services { display: grid; gap: 0; border-top: 1px solid var(--line); }
.svc {
  display: grid; gap: 0.3rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr;
}
.svc__name { font-family: var(--f-display); font-size: 1.3rem; color: var(--paper); }
.svc__desc { color: var(--paper-dim); font-size: 0.92rem; }
@media (min-width: 720px) {
  .svc { grid-template-columns: 240px 1fr; gap: 1.5rem; align-items: baseline; }
}
.svc__note { font-size: 0.82rem; color: var(--paper-faint); margin-top: 1.4rem; }

/* Featured media image fill */
.feature__media img { position: absolute; inset: 0; }
.cta-short { display: none; }
@media (max-width: 640px) { .cta-long { display: none; } .cta-short { display: inline; } }
.case-more { margin-top: 1.6rem; color: var(--paper-dim); font-size: 0.95rem; line-height: 1.8; }
.case-more a { color: var(--paper); border-bottom: 1px solid var(--accent-dim); }
.case-more a:hover { color: var(--accent); }
.credits { margin-top: 2rem; max-width: 62ch; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.credits dt { font-family: var(--f-display); color: var(--paper); font-size: 1.05rem; margin-top: 1rem; }
.credits dt span { color: var(--accent); font-family: inherit; font-size: 0.85rem; margin-left: 0.5rem; }
.credits dd { margin: 0.3rem 0 0; color: var(--paper-dim); font-size: 0.92rem; line-height: 1.7; }

/* ---- Ads page: campaign cards (v4 draft 2026-11-30) ----------------------- */
/* Header: role (eyebrow) / brand / campaign (largest). */
.campaign .card__role { margin-bottom: 0.35rem; }
.campaign__brand { font-size: 0.9rem; color: var(--paper-dim); margin-bottom: 0.2rem; }
.campaign .card__title { font-size: 1.4rem; margin-bottom: 0.6rem; }
.campaign__meta { font-size: 0.8rem; color: var(--paper-faint); margin-bottom: 0.8rem; line-height: 1.5; }
.campaign__more { font-size: 0.78rem; color: var(--paper); border-bottom: 1px solid var(--accent-dim); padding-bottom: 2px; }
.campaign__more::after { content: " →"; color: var(--accent); }

/* ---- Campaign page ------------------------------------------------------- */
.cp-head .cs-hero__cat { margin-bottom: 0.6rem; }
.cp-head__brand { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--paper-dim); margin-bottom: 0.3rem; }
.cp-head__sum { margin-top: 1.2rem; }
.cp-hero-img { padding: 0; overflow: hidden; }
.cp-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Campaign pages with several videos (campaign_info videos=[...]) */
.cp-video { margin: 2.4rem 0 0; }
.cp-video + .cs-body { margin-top: 2.4rem; }
.cp-video__title { font-family: var(--f-display); font-size: 1.5rem; color: var(--paper); margin: 0; }
.cp-video__len { font-family: inherit; font-size: 0.95rem; color: var(--paper-faint); margin-left: 0.4rem; letter-spacing: 0.04em; }
.cp-video .cs-media { padding: 0; overflow: hidden; margin: 0.9rem 0 0; background: #000; }
.cp-video .cs-media video { object-fit: contain; display: block; }
/* Versions of one cut (Dave 11-30): 16:9, 9:16 and 1:1 side by side at equal height; stacked on phones. */
.cp-versions { display: grid; grid-template-columns: var(--cols, 16fr 5.0625fr 9fr); gap: 1rem; align-items: start; margin-top: 0.9rem; }
.cp-ver { margin: 0; }
.cp-ver__media { background: #000; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cp-ver__media video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.cp-ver--16x9 .cp-ver__media { aspect-ratio: 16 / 9; }
.cp-ver--9x16 .cp-ver__media { aspect-ratio: 9 / 16; }
.cp-ver--1x1 .cp-ver__media { aspect-ratio: 1 / 1; }
.cp-ver--4x5 .cp-ver__media { aspect-ratio: 4 / 5; }
/* Runs of single-version cuts (D-2026-11-30-20): a grid of labelled players. */
.cp-vgrid { display: grid; gap: 1.4rem 1rem; margin-top: 0.4rem; }
.cp-vgrid--16x9, .cp-vgrid--4x5, .cp-vgrid--1x1 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.cp-vgrid--9x16 { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.cp-vgrid .cp-ver figcaption { text-transform: none; letter-spacing: 0; font-size: 0.95rem; color: var(--paper); }
.cp-vgrid .cp-video__len { font-size: 0.8rem; }
@media (max-width: 760px) { .cp-vgrid--16x9, .cp-vgrid--4x5, .cp-vgrid--1x1 { grid-template-columns: 1fr; } .cp-vgrid--9x16 { grid-template-columns: repeat(2, 1fr); } }
.cp-ver figcaption { margin-top: 0.5rem; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-faint); }
@media (max-width: 760px) {
  .cp-versions { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .cp-ver--16x9 { grid-column: 1 / -1; }
}
.cp-transcript { margin-top: 0.9rem; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1.2rem; }
.cp-transcript summary { cursor: pointer; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.cp-transcript p { color: var(--paper-dim); max-width: 68ch; margin: 0.9rem 0 0; font-size: 0.95rem; line-height: 1.65; }
.cp-case { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.cp-case__link { margin-top: 1rem; }
.cp-case__link a { color: var(--paper); border-bottom: 1px solid var(--accent-dim); padding-bottom: 2px; }
.cp-case__link a:hover { color: var(--accent); }
.cp-spots { list-style: none; padding: 0; margin: 0.4rem 0 0; border-top: 1px solid var(--line); }
.cp-spots li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3rem 1.2rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.cp-spot__name { color: var(--paper); }
.cp-spot__meta { color: var(--paper-faint); font-size: 0.85rem; }
.cp-gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 0.5rem; }
.cp-gallery__item { margin: 0; }
/* 16:9 tiles with contain: frames fill the tile; posters, clings and squares show whole (no cropped products or logos). */
.cp-gallery__btn { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-3); overflow: hidden; cursor: zoom-in; aspect-ratio: 16 / 9; }
.cp-gallery__btn img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform 0.5s var(--ease); }
.cp-gallery__btn:hover img { transform: scale(1.03); }
.cp-gallery__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cp-gallery__item figcaption { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-faint); margin-top: 0.5rem; }
@media (max-width: 520px) { .cp-gallery { grid-template-columns: 1fr 1fr; gap: 0.7rem; } }
.cp-lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
.cp-lightbox::backdrop { background: rgba(5,5,6,0.92); }
.cp-lightbox img { max-width: 94vw; max-height: 86vh; display: block; margin: 0 auto; border-radius: var(--radius); }
.cp-lightbox__cap { color: var(--paper-dim); font-size: 0.85rem; text-align: center; margin-top: 0.6rem; }
.cp-lightbox__close { position: fixed; top: 1rem; right: 1rem; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid var(--line); background: var(--ink-2); color: var(--paper); font-size: 1.4rem; cursor: pointer; }

/* ---- Boardroom case: shows ----------------------------------------------- */
.cs-shows { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin-top: 0.6rem; }
.cs-show { border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); overflow: hidden; }
.cs-show__img { aspect-ratio: 16 / 9; background: var(--ink-3); display: grid; place-items: center; overflow: hidden; }
.cs-show__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-show__img--text { font-family: var(--f-display); font-size: 1.5rem; color: var(--accent); padding: 1rem; text-align: center; }
.cs-show__body { padding: 1rem 1.1rem 1.2rem; }
.cs-show__sys { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.35rem; }
.cs-show h3 { font-family: var(--f-display); font-size: 1.2rem; margin-bottom: 0.4rem; }
.cs-show p { font-size: 0.9rem; color: var(--paper-dim); line-height: 1.5; }
.cs-show__img img[src*="marvel-multiverse"] { object-position: 50% 75%; }

/* ---- Bio: short third-person bio for recruiters and press (D-2026-11-30-07) ---- */
.shortbio { margin-top: 2.4rem; max-width: 62ch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); padding: 1.4rem 1.5rem 1.5rem; }
.shortbio__label { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.3rem; }
.shortbio__title { font-family: var(--f-display); font-size: 1.35rem; margin-bottom: 0.7rem; }
.shortbio__text { color: var(--paper-dim); line-height: 1.65; margin-bottom: 1rem; }
.shortbio__copy { font-size: 0.85rem; padding: 0.55rem 1.1rem; }

/* ---- Brand roster: logo shingles (Dave 11-30) --------------------------------- */
/* Uniform dark tiles; every logo is the official mark recoloured to --paper. Brands with no
   logo file get a text tile in the same box. */
.logos { display: grid; gap: 0.7rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: 0.4rem; }
.logo-tile {
  aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 1.1rem 1.3rem;
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius);
}
.logo-tile img { max-width: 100%; max-height: 54px; width: auto; height: auto; object-fit: contain; display: block; opacity: 0.88; }
.logo-tile--text { font-family: var(--f-display); font-size: 1.02rem; line-height: 1.2; color: var(--paper); text-align: center; opacity: 0.88; }
@media (max-width: 520px) { .logos { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; } .logo-tile { padding: 0.7rem; } .logo-tile img { max-height: 40px; } .logo-tile--text { font-size: 0.82rem; } }

/* ---- Trusted-by strip under the home hero (option, Dave 11-30) ------------------ */
/* Same tile treatment as the brand roster. The Nestlé Purina lockup is ~10:1, so its tile spans two
   columns to match the optical size of its neighbours. Desktop: one row; tablet and phone: 2 x 4. */
.trust { padding: 0 0 clamp(2.5rem, 6vh, 4rem); }
.trust__label { margin-bottom: 0.9rem; }
.trust__logos { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; grid-template-columns: repeat(11, minmax(0, 1fr)); }
.trust__logos .logo-tile { padding: 0.8rem 0.9rem; }
.trust__logos .logo-tile img { max-height: 36px; }
.trust__logos .trust__wide { grid-column: span 2; aspect-ratio: auto; }   /* height follows the row */
@media (max-width: 1100px) {
  .trust__logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .trust__logos li:nth-child(n+8) { display: none; }
}
@media (max-width: 520px) {
  .trust__logos { gap: 0.45rem; }
  .trust__logos .logo-tile { padding: 0.55rem; }
  .trust__logos .logo-tile img { max-height: 28px; }
}
.trust__logos > li, .trust__logos .logo-tile { min-width: 0; }
.trust__logos .logo-tile img { max-width: 100%; }
@media (max-width: 360px) { .trust__logos .logo-tile { padding: 0.4rem; } .trust__logos { gap: 0.35rem; } }

/* ---- Clickable media (D-2026-11-30-19) -------------------------------------------------------- */
/* Ads cards: the image is its own control (video: link to #play with a play badge; image-only: lightbox).
   The card body is a separate link. */
.card.campaign { display: flex; flex-direction: column; }
.card__link { display: block; color: inherit; text-decoration: none; flex: 1; }
a.card__thumb, button.card__thumb { display: block; width: 100%; padding: 0; border: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; background: var(--ink-3); }
.card__thumb:focus-visible, .card__link:focus-visible, .cp-hero-zoom:focus-visible, .media-play:focus-visible, .cp-gallery__btn:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
.card__play, .media-play span {
  position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
  background: rgba(10,10,11,0.62); border: 1.5px solid rgba(244,241,234,0.85); backdrop-filter: blur(2px);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.card__play::after, .media-play span::after {
  content: ""; position: absolute; left: 50%; top: 50%; margin: -10px 0 0 -6px;
  border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent var(--paper);
}
.card:hover .card__play, .card__thumb:focus-visible .card__play, .media-play:hover span { transform: scale(1.08); background: rgba(10,10,11,0.8); }
.card__thumb--zoom { cursor: zoom-in; }
/* Campaign pages: a Play button over every poster (hidden once playing); image heroes open full size. */
.has-play { position: relative; }
.media-play { position: absolute; inset: 0 0 48px 0; width: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; }
.has-play.is-playing .media-play { display: none; }
.cp-hero-zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.cp-hero-zoom img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- FAQ page ------------------------------------------------------------- */
.faq { max-width: 70ch; border-top: 1px solid var(--line); }
.faq__item { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.faq__q { font-family: var(--f-display); font-size: clamp(1.2rem, 2.6vw, 1.45rem); color: var(--paper); margin-bottom: 0.6rem; }
.faq__a { color: var(--paper-dim); line-height: 1.65; }
.faq__a a { color: var(--paper); border-bottom: 1px solid var(--accent-dim); }


.cs-metric { min-width: 0; }
.cs-metric .m-n { overflow-wrap: break-word; }
@media (max-width: 420px) { .cs-metrics { grid-template-columns: 1fr; } .cs-metric .m-n { font-size: 1.8rem; } }

/* 320px fix (QA 11-30): the lower logo walls go 3-up on phones */
@media (max-width:520px){.logos{grid-template-columns:repeat(3,minmax(0,1fr))}.logos .logo-tile{min-width:0}}
