/* ══════════════════════════════════════════════════════════════════════
   MADISON · home page (V1, Sept 2026). Loads after layout.css; tokens come
   from madison-v2.css. Copy and structure: the vault's "Website — Copy Deck".
   ══════════════════════════════════════════════════════════════════════ */

/* ─── hero: reel visible, overlay only where the text needs it ───────── */
.hero--v1 .hero__video-grad--center {
  background:
    radial-gradient(70% 70% at 50% 46%, rgba(15,12,8,.34) 0%, rgba(15,12,8,.10) 60%, rgba(15,12,8,0) 100%),
    linear-gradient(180deg, rgba(15,12,8,.62) 0%, rgba(15,12,8,.12) 34%, rgba(15,12,8,.16) 62%, rgba(15,12,8,.88) 100%);
}
/* wider box so "TV-grade commercials," stays on one line at the largest size */
.hero--v1 .hero__center { max-width: 1240px; padding: 118px var(--gutter) 96px; }
.hero--v1 .hero__title { text-shadow: 0 4px 30px rgba(0,0,0,.6), 0 1px 3px rgba(0,0,0,.5); }
/* gradient text + text-shadow = the shadow paints over the gold and muddies it; the
   gold line gets no shadow and the brighter ramp (deep gold reads brown on ink) */
.hero--v1 .hero__title .gold-text { text-shadow: none; background-image: linear-gradient(135deg, #e0a52a 0%, #ffd06b 100%); }
@media (min-width: 900px) { .hero--v1 .hero__title { white-space: nowrap; } }
.hero__sub {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.45; font-weight: 500;
  color: var(--on-ink); opacity: .92; max-width: 36ch; margin: var(--sp-6) auto 0;
  text-shadow: 0 2px 16px rgba(0,0,0,.6);
}
.hero__ctas {
  display: flex; gap: var(--sp-3); justify-content: center; align-items: center; flex-wrap: wrap;
  margin-top: var(--sp-10);
}
@media (max-width: 600px) {
  /* a 16:9 reel cropped to a phone shows its brightest centre right behind the
     copy, so the overlay is heavier here; the work section below shows the films */
  .hero--v1 .hero__video-grad--center {
    background:
      radial-gradient(90% 70% at 50% 48%, rgba(15,12,8,.66) 0%, rgba(15,12,8,.46) 60%, rgba(15,12,8,.30) 100%),
      linear-gradient(180deg, rgba(15,12,8,.74) 0%, rgba(15,12,8,.28) 30%, rgba(15,12,8,.30) 60%, rgba(15,12,8,.92) 100%);
  }
  .hero--v1 .hero__center { padding-top: 96px; }
  .hero__ctas .btn { width: 100%; }
}

/* ─── shared section head (no eyebrows) ─────────────────────────────── */
.head { max-width: 900px; margin: 0 auto var(--sp-14); text-align: center; }
.head__title { font-size: var(--fs-section); }
:root { --fs-section: clamp(2.2rem, 4vw, 3.2rem); }
.head__sub { margin-top: var(--sp-4); font-size: var(--fs-body-lg); color: var(--on-surface-variant); max-width: 56ch; margin-left: auto; margin-right: auto; }

/* ─── the work: one big film, two underneath, lightbox video mode ────── */
.film {
  position: relative; overflow: hidden; border-radius: var(--r-2xl); display: block; width: 100%;
  padding: 0; border: 0; background: var(--surface-ink); box-shadow: var(--shadow-card); cursor: pointer;
  text-align: left; color: var(--on-ink); font: inherit; -webkit-tap-highlight-color: transparent;
}
.film--wide { aspect-ratio: 16 / 9; }
.film--tall { aspect-ratio: 9 / 16; }
.film__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-3) var(--ease-out); }
.film:hover .film__poster { transform: scale(1.02); }
.film:focus { outline: none; }
.film:focus-visible { outline: 3px solid var(--primary-container); outline-offset: 4px; }
.film__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(15,12,8,0) 45%, rgba(15,12,8,.80) 100%);
}
.film__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-grad); color: var(--on-primary-container);
  box-shadow: 0 14px 34px -10px rgba(255,190,56,.75), 0 0 0 8px rgba(255,190,56,.14);
  transition: transform var(--dur-2) var(--ease-out); pointer-events: none;
}
.film:hover .film__play { transform: translate(-50%,-50%) scale(1.06); }
.film__meta { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--sp-6); pointer-events: none; }
.film__label { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--primary-container); margin-bottom: 6px; }
.film__line { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.22; letter-spacing: var(--tracking-tight); text-wrap: balance; }
.film--wide.film--feature .film__meta { padding: var(--sp-8); }
.film--wide.film--feature .film__line { font-size: clamp(1.25rem, 2.6vw, 1.9rem); max-width: 24ch; }
.film--wide.film--feature .film__play { width: 84px; height: 84px; }
.work__feature { margin-bottom: var(--sp-5); }
.work__pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.work__vertical {
  margin: var(--sp-12) auto 0; text-align: center; font-size: var(--fs-body-lg); color: var(--on-surface-variant);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px var(--sp-4);
}
.work__vertical a { color: var(--primary); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) { .work__pair { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .film__play { width: 56px; height: 56px; }
  .film--wide.film--feature .film__play { width: 64px; height: 64px; }
  .film--wide .film__meta { padding: var(--sp-4); }
  .film--wide.film--feature .film__meta { padding: var(--sp-5); }
  .film--wide .film__line, .film--wide.film--feature .film__line { font-size: 15px; }
  .film__label { font-size: 12.5px; margin-bottom: 3px; }
}

/* lightbox: the film plus its description on the right (below on phones) */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: var(--sp-6); }
.lightbox.is-open { display: flex; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(12,10,7,.86); backdrop-filter: blur(10px); }
.lightbox__panel {
  position: relative; z-index: 1; width: min(1240px, 100%); max-height: calc(100vh - 2 * var(--sp-6));
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 0; overflow: hidden;
  background: var(--surface-ink-2); color: var(--on-ink); border-radius: var(--r-2xl); box-shadow: var(--shadow-float);
}
.lightbox__video { background: #000; display: flex; align-items: center; }
.lightbox__video video { width: 100%; height: auto; max-height: calc(100vh - 2 * var(--sp-6)); display: block; }
.lightbox__text { padding: var(--sp-10) var(--sp-8); display: flex; flex-direction: column; justify-content: center; gap: var(--sp-3); overflow: auto; }
.lightbox__label { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--primary-container); }
.lightbox__line { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.18; letter-spacing: var(--tracking-tight); text-wrap: balance; }
.lightbox__desc { color: var(--on-ink-variant); font-size: var(--fs-body); line-height: 1.6; margin-top: var(--sp-2); }
.lightbox__close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--on-ink); background: rgba(255,255,255,.10); backdrop-filter: blur(6px);
}
.lightbox__close:hover { background: rgba(255,255,255,.18); }
@media (max-width: 860px) {
  .lightbox { padding: 0; align-items: flex-end; }
  .lightbox__panel { grid-template-columns: 1fr; border-radius: var(--r-2xl) var(--r-2xl) 0 0; max-height: 100vh; overflow: auto; }
  .lightbox__video video { max-height: 56vh; }
  .lightbox__text { padding: var(--sp-6) var(--sp-5) var(--sp-8); }
}
body.has-lightbox { overflow: hidden; }

/* ─── the problem + the third option ─────────────────────────────────── */
.options { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.option {
  background: var(--surface-container-lowest); border-radius: var(--r-xl); padding: var(--sp-8);
  box-shadow: var(--shadow-ambient); display: flex; flex-direction: column;
}
/* the track: how each option actually goes, nodes appear one after another on reveal */
.track { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 6px; margin-top: auto; padding-top: var(--sp-6); }
.track__node {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .01em; white-space: nowrap;
  padding: 7px 12px; border-radius: var(--r-pill); color: var(--on-surface-variant); background: var(--surface-container);
  display: inline-flex; align-items: center; gap: 6px; opacity: 0; transform: translateY(6px);
}
.reveal.is-in .track__node { animation: nodeIn 480ms var(--ease-out) calc(var(--d, 0ms) + 220ms) forwards; }
@keyframes nodeIn { to { opacity: 1; transform: none; } }
.track__arrow { color: var(--on-surface-faint); flex: none; }
.track__node--end { color: var(--on-surface); background: var(--surface-container-high); }
.track--gold { gap: var(--sp-3); flex-wrap: nowrap; margin-top: var(--sp-6); padding-top: 0; max-width: 620px; }
.track--gold .track__node { color: var(--on-ink); background: rgba(255,255,255,.08); opacity: 1; transform: none; animation: none; }
.track--gold .track__node--gold { color: var(--on-primary-container); background: var(--gold-grad); font-weight: 600; box-shadow: 0 10px 24px -10px rgba(255,190,56,.7); }
.track__line { position: relative; flex: 1; min-width: 28px; height: 3px; border-radius: 3px; background: rgba(255,190,56,.28); }
.track__dot { position: absolute; top: 50%; left: 0; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--primary-container); box-shadow: 0 0 10px 2px rgba(255,190,56,.6); opacity: 0; }
.reveal.is-in .track__dot { animation: dotTravel 2.4s var(--ease-io) infinite; }
@keyframes dotTravel { 0% { left: 0; opacity: 0; } 8% { opacity: 1; } 55% { left: 100%; opacity: 1; } 62%, 100% { left: 100%; opacity: 0; } }
@media (max-width: 700px) { .track--gold { flex-wrap: wrap; } .track__line { min-width: 20px; flex-basis: 20px; } }
.option__title { font-size: var(--fs-title-lg); margin-bottom: var(--sp-3); }
.option__body { font-size: var(--fs-body); color: var(--on-surface-variant); }
.option--madison {
  grid-column: 1 / -1; background: var(--surface-ink); color: var(--on-ink);
  display: grid; grid-template-columns: 1fr auto; gap: var(--sp-8); align-items: center;
  padding: var(--sp-8) var(--sp-10); border-radius: var(--r-2xl); box-shadow: var(--shadow-float);
}
.option--madison .option__title { color: var(--on-ink); }
.option--madison .option__body { color: var(--on-ink-variant); max-width: 62ch; }
@media (max-width: 960px) {
  .option--madison { grid-template-columns: 1fr; }
  .option--madison .btn { justify-self: start; }
  .track--gold { flex-wrap: wrap; }
}
@media (max-width: 700px) {
  .options { grid-template-columns: 1fr; }
  .option--madison { padding: var(--sp-6); }
  .option--madison .btn { width: 100%; }
}

/* ─── how it works: the four-step flow from layout.css, one line under it ── */
.how__note {
  margin-top: var(--sp-12); text-align: center; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem); letter-spacing: var(--tracking-tight); color: var(--on-surface-strong);
}

/* ─── the evidence: text left, one chart right ───────────────────────── */
.evidence { display: grid; grid-template-columns: .95fr 1.05fr; gap: var(--sp-16); align-items: center; }
.evidence__title { font-size: var(--fs-section); margin-bottom: var(--sp-5); }
.evidence__body { color: var(--on-surface-variant); font-size: var(--fs-body-lg); }
.chart--single .chart__bars { max-width: 420px; margin: 0 auto; }
@media (max-width: 860px) { .evidence { grid-template-columns: 1fr; gap: var(--sp-8); } }

/* ─── faq ────────────────────────────────────────────────────────────── */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item { border-radius: var(--r-xl); background: var(--surface-container-lowest); box-shadow: var(--shadow-ambient); margin-bottom: var(--sp-3); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-title);
  letter-spacing: var(--tracking-tight); color: var(--on-surface-strong);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+'; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-body); font-weight: 500; color: var(--primary); background: var(--primary-fixed);
  transition: transform var(--dur-2) var(--ease-out);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 var(--sp-6) var(--sp-6); color: var(--on-surface-variant); max-width: 68ch; }

/* ─── the free ad form (dark section) ───────────────────────────────── */
.final--offer .final__title { max-width: 16ch; }
.offer-form {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: var(--sp-3); max-width: 760px; margin: var(--sp-10) auto 0;
}
.offer-form .email-cap__input { min-width: 0; width: 100%; }
.offer-form .btn { white-space: nowrap; }
.final__fine { margin-top: var(--sp-5); font-size: 14px; color: var(--on-ink-variant); }
.final__fine a { color: var(--on-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .offer-form { grid-template-columns: 1fr; }
  .offer-form .btn { width: 100%; }
}

/* ─── advertising for good ───────────────────────────────────────────── */
.probono__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--sp-16); align-items: center; }
.probono__title { font-size: var(--fs-section); max-width: 18ch; }
.probono__body { margin-top: var(--sp-4); color: var(--on-surface-variant); font-size: var(--fs-body-lg); max-width: 52ch; }
.probono__links { margin-top: var(--sp-5); font-size: var(--fs-label); color: var(--on-surface-variant); }
.probono__links a { color: var(--primary); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
/* width: 100% is needed: the card's children are all absolute, so with auto
   margins alone the grid item shrinks to a 0px content box */
.probono__film { width: 100%; max-width: 300px; margin: 0 auto; }
@media (max-width: 860px) { .probono__grid { grid-template-columns: 1fr; gap: var(--sp-8); } .probono__film { max-width: 260px; } }

/* ─── footer: social links, links on one line ────────────────────────── */
.footer__col a { white-space: nowrap; }
.footer__social a { display: inline-flex; align-items: center; gap: 8px; }
/* flex: none — the link labels are nowrap, so without it the icon is the only
   thing that can give when the three footer columns get tight (~1100-1500px),
   and it collapses to 0 width. */
.footer__social svg { width: 16px; height: 16px; flex: none; }
/* and give the columns that bit of room back on mid-width desktops */
.footer__cols { gap: clamp(var(--sp-8), 3.2vw, var(--sp-16)); }

/* ─── nav: room for the four links + button ──────────────────────────── */
.nav__cta .btn { white-space: nowrap; }
