/* ============================================================
   Media Rights Value — "the value gap"
   Thesis: rights priced on audience ratings are mispriced;
   real engagement reveals their true commercial value.
   The page is built like an instrument readout.
   ============================================================ */
:root {
  --ink: #0C1A22;          /* deep ink — dark sections, headings */
  --ink-soft: #13252E;     /* raised panels on ink */
  --ink-line: rgba(255, 255, 255, .12);
  --paper: #ffffff;
  --paper-2: #EDF1EF;      /* cool "ledger" grey for alt sections */
  --line: #DBE0DD;
  --text: #19262B;         /* body text */
  --muted: #5A696C;        /* secondary text */
  --real: #16A974;         /* THE value accent — real, uncovered value */
  --real-ink: #0E7A53;     /* accent at text-legible contrast on light */
  --old: #93A0A0;          /* the outdated metric being replaced */
  --radius: 6px;
  --radius-sm: 4px;
  --max: 1140px;
  --shadow: 0 24px 48px -28px rgba(12, 26, 34, .45);
  --shadow-sm: 0 10px 24px -18px rgba(12, 26, 34, .4);

  --display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2 { font-family: var(--display); line-height: 1.1; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.015em; }
/* h3 subheads stay in the body face (Hanken Bold) — Bricolage is reserved for
   page-level display sizes, where its character reads best. */
h3 { font-family: var(--body); font-weight: 700; line-height: 1.25; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

a { color: var(--real-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

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

:focus-visible { outline: 2px solid var(--real); outline-offset: 3px; border-radius: 2px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Eyebrow / structural label ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em;
  font-size: .72rem; font-weight: 500; color: var(--real-ink); margin: 0 0 1em;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--real); flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 13px 24px; border-radius: var(--radius-sm); font-family: var(--mono);
  font-weight: 500; font-size: .9rem; letter-spacing: .01em; cursor: pointer;
  border: 1px solid transparent; text-decoration: none;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-soft); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--real); color: var(--real-ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper-2); }

.link-arrow { font-family: var(--mono); font-weight: 500; font-size: .92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand-mark { display: block; height: 34px; width: auto; }
.brand-text { font-family: var(--display); font-size: 1rem; font-weight: 600; }

.nav { display: flex; align-items: center; }
.nav-menu { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav-menu a {
  color: var(--text); font-weight: 500; font-size: .94rem;
  padding: 9px 13px; border-radius: var(--radius-sm);
}
.nav-menu a:hover { background: var(--paper-2); text-decoration: none; }
.nav-menu a.active { color: var(--real-ink); }
.nav-cta { background: var(--ink); color: #fff !important; font-family: var(--mono); font-size: .86rem !important; }
.nav-cta:hover { background: var(--ink-soft) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #E8EEEC; background: var(--ink);
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding: 92px 24px 100px;
}
.hero .eyebrow { color: var(--real); }
.hero .eyebrow::before { background: var(--real); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.8vw, 3.5rem); font-weight: 600; }
.hero h1 em { font-style: normal; color: var(--real); }
.hero .lede { font-size: 1.16rem; color: #AFC0BD; max-width: 40ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-actions .btn-primary { background: var(--real); color: var(--ink); }
.hero-actions .btn-primary:hover { background: #1FC488; }
.hero-actions .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .28); }
.hero-actions .btn-ghost:hover { border-color: var(--real); color: #fff; }

/* ---------- Signature: valuation readout ---------- */
.readout {
  background: var(--ink-soft); border: 1px solid var(--ink-line); border-radius: var(--radius);
  padding: 26px 28px 24px; box-shadow: var(--shadow);
}
.readout-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: #7E908D; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--ink-line);
}
.readout-live { display: inline-flex; align-items: center; gap: 7px; color: var(--real); }
.readout-live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--real);
  box-shadow: 0 0 0 0 rgba(22, 169, 116, .6); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(22, 169, 116, .55); }
  70% { box-shadow: 0 0 0 8px rgba(22, 169, 116, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 169, 116, 0); }
}
/* value-composition graphic */
.comp-bracket {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: #7E908D;
  display: inline-block; position: relative; padding-bottom: 8px; margin-bottom: 4px;
  width: 35%; min-width: 90px;
}
.comp-bracket::after {
  content: ""; position: absolute; left: 0; right: 6px; bottom: 0; height: 6px;
  border: 1px solid #44595A; border-bottom: 0; border-radius: 3px 3px 0 0;
}
.comp-track {
  display: flex; height: 92px; border-radius: var(--radius-sm); overflow: hidden;
  background: rgba(255, 255, 255, .04); gap: 3px;
}
.comp-seg {
  display: grid; place-items: center; min-width: 0;
  font-family: var(--mono); font-weight: 500; font-size: .9rem; color: #fff;
}
.comp-seg span { opacity: 0; transition: opacity .4s ease .9s; }
.comp-seg--visible { flex: 0 0 35%; background: #3A4D4E; color: #C7D3D0; }
.comp-seg--hidden {
  flex-grow: 0; flex-basis: 0%;
  background: var(--real); color: #06241A;
  transition: flex-basis 1.4s cubic-bezier(.2, .7, .2, 1);
}
.comp-track.in .comp-seg span { opacity: 1; }

.comp-legend {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin: 16px 0 18px; padding: 0;
  font-family: var(--mono); font-size: .76rem; color: #B7C6C2;
}
.comp-legend li { display: flex; align-items: center; gap: 8px; }
.comp-key { width: 11px; height: 11px; border-radius: 2px; flex: none; }
.comp-key--visible { background: #3A4D4E; }
.comp-key--hidden { background: var(--real); }

.readout-foot { font-family: var(--mono); font-size: .82rem; color: #B7C6C2; margin: 0; }
.readout-foot strong { color: var(--real); font-weight: 600; }

/* ---------- Logo carousel ---------- */
.logos { padding: 36px 0 40px; border-bottom: 1px solid var(--line); overflow: hidden; }
.logos-label {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em;
  font-size: .74rem; color: var(--muted); margin: 0 0 22px; text-align: center;
}
.marquee {
  overflow: hidden;
  /* fade the edges so logos drift in and out rather than being clipped */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; width: max-content;
  animation: marquee var(--marquee-duration, 60s) linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.logo {
  position: relative; display: flex; align-items: center; flex: none;
  height: 72px; padding: 0 36px;
}
/* separator dot — absolutely positioned so every item is the same width,
   which keeps the duplicated half of the loop seamless */
.logo::after {
  content: ""; position: absolute; right: -3px; top: 50%;
  width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: var(--line);
}
.logo-word {
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  letter-spacing: -.01em; white-space: nowrap; color: var(--old);
  transition: color .2s ease;
}
/* --h is set per logo (from its aspect ratio) so wide and square marks
   carry roughly equal visual weight */
.logo img {
  height: var(--h, 50px); width: auto;
  opacity: .55; filter: grayscale(1);
  transition: opacity .2s ease, filter .2s ease;
}
.logo:hover .logo-word { color: var(--text); }
.logo:hover img { opacity: 1; filter: none; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 620px; margin: 0 0 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }

/* ---------- Cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--real); }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); margin: 0; }
.card-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm); display: grid; place-items: center;
  background: var(--paper-2); border: 1px solid var(--line); margin-bottom: 20px; color: var(--real-ink);
}
.card-icon svg { width: 24px; height: 24px; }
.card-flat { padding: 28px; }
.card-flat:hover { transform: none; box-shadow: none; border-color: var(--line); }
.card-flat h3 { font-size: 1.1rem; }
.card-flat ul { margin: 16px 0 0; padding: 0; list-style: none; }
.card-flat li { color: var(--muted); padding: 9px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.card-flat li:first-child { border-top: 0; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.split-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.split-copy p { color: var(--muted); }
.split-copy strong { color: var(--ink); }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 15px 18px 15px 48px; position: relative; font-weight: 500;
}
.check-list li::before {
  content: ""; position: absolute; left: 16px; top: 50%;
  width: 16px; height: 9px; border-left: 2px solid var(--real); border-bottom: 2px solid var(--real);
  transform: translateY(-65%) rotate(-45deg);
}

/* ---------- Content tags ---------- */
.content-types { margin-top: 48px; text-align: center; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }
.pill {
  padding: 8px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: #fff; color: var(--text); font-family: var(--mono); font-weight: 500;
  font-size: .82rem; letter-spacing: .02em;
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; border-top: 3px solid var(--real); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 56px 24px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; margin: 0; font-size: clamp(1.5rem, 3vw, 2.05rem); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9DB0AC; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 32px; align-items: start; padding: 56px 24px 32px; }
.footer-brand .brand-mark { height: 40px; margin-bottom: 14px; }
.footer-brand p { max-width: 28ch; margin: 0; }
.footer-nav { display: grid; gap: 10px; }
.footer-nav a { color: #C4D1CE; font-family: var(--mono); font-size: .88rem; }
.footer-nav a:hover { color: #fff; }
.footer-loc { font-family: var(--mono); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; font-size: .76rem; }
.footer-base { border-top: 1px solid var(--ink-line); padding: 22px 24px; font-family: var(--mono); font-size: .82rem; }
.footer-base p { margin: 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--ink); color: #E8EEEC; padding: 84px 0 72px; text-align: center;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-hero .eyebrow { color: var(--real); justify-content: center; }
.page-hero .eyebrow::before { background: var(--real); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); }
.page-hero p { color: #AFC0BD; max-width: 54ch; margin: 0 auto; font-size: 1.08rem; }

/* ---------- Feature blocks ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; }
.feature h3 { font-size: 1.15rem; }
.feature ul { margin: 0; padding-left: 18px; color: var(--muted); }
.feature ul li { padding: 4px 0; }
.client-label { font-family: var(--display); font-size: 1.3rem; margin: 0 0 18px; }
.client-label span { font-family: var(--mono); font-size: .82rem; color: var(--muted); letter-spacing: .02em; }

/* ---------- Work / case studies ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work-card {
  display: flex; flex-direction: column; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--real); }
.work-card p { color: var(--muted); margin: 0; }
.work-card p + p { margin-top: 12px; }
.work-tag {
  align-self: flex-start; font-family: var(--mono); font-size: .74rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em; color: var(--real-ink);
  padding-bottom: 8px; border-bottom: 2px solid var(--real);
}
/* The cricket / LA2028 result is the standout — let it span and invert */
.work-card--feature { grid-column: span 2; background: var(--ink); border-color: var(--ink); }
.work-card--feature p { color: #C4D1CE; font-size: 1.08rem; }
.work-card--feature .work-tag { color: var(--real); }
.work-card--feature:hover { border-color: var(--real); }

/* ---------- Timeline (real sequence) ---------- */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.tl-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.tl-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: inline-block; font-family: var(--mono); font-weight: 600; font-size: .9rem;
  color: var(--real-ink); padding-bottom: 6px; margin-bottom: 14px; border-bottom: 2px solid var(--real);
}
.tl-step h3 { font-size: 1.12rem; }
.tl-step ul { margin: 0; padding-left: 18px; color: var(--muted); }

/* ---------- Stats ---------- */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat {
  padding: 28px 26px; border-left: 1px solid var(--line); background: #fff;
}
.stat:first-child { border-left: 0; }
.stat-num { display: block; font-family: var(--mono); font-weight: 600; font-size: 2.3rem; color: var(--ink); line-height: 1; margin-bottom: 8px; }
.stat-num .unit { color: var(--real-ink); }
.stat-label { color: var(--muted); font-size: .9rem; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.member { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--real); }
.avatar {
  width: 52px; height: 52px; border-radius: var(--radius-sm); margin-bottom: 18px;
  display: grid; place-items: center; font-family: var(--mono); font-weight: 600;
  font-size: 1.1rem; color: #fff; background: var(--ink); border-bottom: 2px solid var(--real);
}
.member h3 { margin-bottom: 2px; }
.member .role { font-family: var(--mono); color: var(--real-ink); font-weight: 500; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.member p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--mono); font-weight: 500; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 7px; color: var(--ink); }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--real); box-shadow: 0 0 0 3px rgba(22, 169, 116, .16); }
.contact-aside { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.contact-aside h3 { font-size: 1.2rem; }
.info-row { display: flex; gap: 14px; align-items: baseline; margin-bottom: 14px; color: var(--muted); }
.info-row .k { font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--real-ink); flex: none; width: 84px; }
.form-note { font-size: .9rem; color: var(--muted); }

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 64px 24px 72px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .cards-3, .team-grid, .timeline { grid-template-columns: 1fr; }
  .feature-grid, .contact-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card--feature { grid-column: auto; }
  .stat-row { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }

  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px; box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height .3s ease, opacity .2s ease;
  }
  .nav-menu.open { max-height: 400px; opacity: 1; pointer-events: auto; }
  .nav-menu a { padding: 14px; border-radius: var(--radius-sm); }
  .nav-cta { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .readout-live::before { animation: none; }
  .readout-bar > span { transition: none; }
  /* no scrolling: show every logo, wrapped and centred */
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; row-gap: 8px; padding: 0 16px; }
  .marquee-track [aria-hidden="true"] { display: none; }
}
