@font-face {
  font-family: 'DM Sans';
  src: url('assets/dm-sans.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('assets/instrument-serif.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('assets/instrument-serif-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --night: #15231d;
  --night-deep: #101b16;
  --green: #315144;
  --paper: #f4f1e8;
  --cream: #fff9eb;
  --gold: #e1bf80;
  --ink: #202d25;
  --muted: #566056;
  --light-muted: #c4ccc1;
  --line: #d4d3c4;
  --night-line: #3d4d40;
  --body: 'DM Sans', system-ui, sans-serif;
  --display: 'Instrument Serif', Georgia, serif;
  --section-space: clamp(4.1rem, 8vw, 7rem);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

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

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: .97;
}

h2 { font-size: clamp(3.25rem, 6.4vw, 6.1rem); }
h2 em { color: var(--green); }
p + p { margin-top: .85rem; }

a { color: inherit; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }

a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.wrap {
  width: min(100% - clamp(2.5rem, 10vw, 10rem), 78rem);
  margin-inline: auto;
}

.eyebrow {
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .15em;
  line-height: 1.35;
  text-transform: uppercase;
}

.section { padding-block: var(--section-space); }

.skip-link {
  position: fixed;
  z-index: 5;
  top: 1rem;
  left: 1rem;
  transform: translateY(calc(-100% - 2rem));
  padding: .6rem 1rem;
  background: var(--paper);
  color: var(--ink);
}
.skip-link:focus { transform: none; }

.masthead {
  position: sticky;
  top: 0;
  z-index: 3;
  color: var(--cream);
  background: var(--night-deep);
  border-bottom: 1px solid var(--night-line);
}

.masthead-inner, .masthead nav {
  display: flex;
  align-items: center;
}

.masthead-inner {
  min-height: 4.5rem;
  justify-content: space-between;
}

.masthead nav { gap: clamp(1rem, 3vw, 2.25rem); }

.masthead a {
  text-decoration: none;
  white-space: nowrap;
}

.wordmark {
  position: relative;
  display: block;
  width: 8.1rem;
  height: 3.35rem;
  overflow: hidden;
}

.wordmark img {
  position: absolute;
  top: 50%;
  left: -20%;
  width: 140%;
  height: auto;
  transform: translateY(-52%);
  filter: url("#mxi-logo-gold");
}

.masthead nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--light-muted);
}

.masthead nav a:hover { color: var(--cream); }

.masthead nav .nav-contact {
  padding-inline: 1rem;
  border: 1px solid #647166;
  color: var(--cream);
}

.masthead nav .nav-contact:hover { border-color: var(--gold); }

.hero {
  overflow: hidden;
  color: var(--cream);
  background: radial-gradient(ellipse at 77% 30%, #364c3a, transparent 57%), var(--night);
}

.hero-grid {
  position: relative;
  min-height: clamp(38rem, 51vw, 49rem);
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-block: 3.75rem 4.4rem;
}

.hero-copy .eyebrow { color: var(--gold); }

.hero h1 {
  margin: 1.4rem 0 1.4rem;
  font-size: clamp(6rem, 12vw, 11.5rem);
  letter-spacing: -.035em;
  line-height: .79;
}

.hero h1 span { display: block; }

.hero h1 span:last-child {
  color: var(--gold);
  font-style: italic;
}

.hero-hook {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
}

.hero-intro {
  max-width: 28.5rem;
  margin-top: .7rem;
  color: var(--light-muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 3.2rem;
  padding: .65rem 1.24rem;
  font-size: .94rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}

.button-gold {
  margin-top: 1.6rem;
  color: var(--night-deep);
  background: var(--gold);
}
.button-gold:hover { background: var(--cream); }
.button-gold:focus-visible { outline-color: var(--cream); }

.play-icon {
  display: inline-block;
  width: 0;
  height: 0;
  border: .35rem solid transparent;
  border-left: .56rem solid currentColor;
  border-right: 0;
}

.hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 0;
}

.portrait-frame {
  position: absolute;
  inset: 8% -8% 0 -5%;
  isolation: isolate;
}

.portrait-logo {
  position: absolute;
  z-index: -1;
  top: 2%;
  inset-inline: 0;
  width: 87%;
  height: auto;
  margin-inline: auto;
  fill: none;
  stroke: #a79363;
  stroke-width: 2px;
  stroke-opacity: .45;
  stroke-linecap: round;
  stroke-linejoin: round;
  shape-rendering: geometricPrecision;
}

.portrait-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: saturate(.82) sepia(.05);
  mask-image: linear-gradient(#000 77%, transparent 100%);
}


.case-grid, .show {
  display: grid;
  grid-template-columns: 1fr .88fr;
  gap: clamp(2rem, 7vw, 7.5rem);
  align-items: start;
}

.case-grid .eyebrow, .audience .eyebrow, .contact .eyebrow {
  margin-bottom: .9rem;
  color: var(--green);
}

.case-copy, .show p { color: var(--muted); }
.case-copy { padding-top: .8rem; }
.case-copy p { font-size: 1.1rem; }
.source-links { display: flex; flex-wrap: wrap; column-gap: 1.25rem; }

.source-link {
  display: inline-block;
  margin-top: .8rem;
  color: var(--green);
  font-size: .875rem;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
.source-link:hover { text-decoration-thickness: 2px; }

.roles {
  display: grid;
  grid-template-columns: .65fr 1fr 1fr;
  gap: 2rem;
  margin-top: clamp(2rem, 5vw, 4.1rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid #a9aa96;
  background: #eaeadd;
}
.roles.is-interactive { grid-template-columns: .65fr 1.35fr; }

.role-menu > .eyebrow { color: var(--green); margin-bottom: .8rem; }
.role-tabs { display: inline-flex; gap: .25rem; padding: .2rem; border: 1px solid #a6ad9d; }

.role-tabs button {
  min-height: 2.75rem;
  padding: .42rem .9rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: .9rem;
  font-weight: 700;
}

.role-tabs button:hover { background: #d9dfd1; }

.role-tabs button[aria-selected="true"] {
  color: var(--cream);
  background: var(--green);
}
.role-tabs button:focus-visible { outline-color: var(--ink); outline-offset: .12rem; }

.role-panel { min-height: 8rem; }
.role-panel h3 { font-size: clamp(2rem, 4vw, 3.45rem); }
.role-panel p:not(.eyebrow) { margin-top: .6rem; max-width: 43rem; }
.role-fallback { margin-bottom: .6rem; }
.is-interactive .role-fallback { display: none; }

.watch { background: var(--night); color: var(--cream); }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.2rem;
}

.section-heading > p { max-width: 24rem; color: var(--muted); }
.watch .section-heading > p { color: var(--light-muted); }

.intro-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .88fr);
  grid-template-areas: "clip copy" "clip placeholder";
  align-items: center;
  gap: 1rem clamp(1.25rem, 4vw, 3rem);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.intro-clip {
  grid-area: clip;
  aspect-ratio: 16 / 9;
  background: var(--night-deep);
}

.intro-clip iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.intro-clip .intro-clip-poster { display: block; }

.intro-preview-frame {
  grid-area: placeholder;
  align-self: start;
  padding: .85rem 1rem;
  border: 1px dashed #7f8b7d;
  background: var(--night-deep);
  color: var(--light-muted);
}

.intro-preview-frame .eyebrow { color: var(--gold); }
.intro-preview-frame p + p { margin: .25rem 0 0; }
.intro-preview-copy { grid-area: copy; align-self: end; }
.intro-preview-copy h3 { font-size: clamp(2.45rem, 4.6vw, 4.55rem); }
.intro-preview-copy p:not(.eyebrow) { max-width: 29rem; margin-top: .65rem; color: var(--muted); }
.intro-preview-copy .eyebrow { margin-bottom: .6rem; color: var(--green); }

@media print {
  .intro-clip iframe { display: none; }
  .intro-clip .intro-clip-poster { display: block !important; }
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.7rem);
}

.video-grid-featured {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.video-card {
  display: block;
  text-decoration: none;
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #26332a;
  border: 1px solid #607062;
}
.video-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .24s ease;
}
.video-thumb:after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(30deg, #0b140eb8 0%, transparent 62%);
}

.play-badge {
  display: grid;
  place-items: center;
  position: absolute;
  z-index: 1;
  bottom: .75rem;
  left: .75rem;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--cream);
  color: var(--night-deep);
  border-radius: 50%;
  transition: background-color .18s ease;
}
.play-badge .play-icon { margin-left: .14rem; }

.clip-start {
  position: absolute;
  z-index: 1;
  right: .75rem;
  bottom: .75rem;
  padding: .3rem .55rem;
  background: var(--night-deep);
  color: var(--cream);
  font-size: .875rem;
  font-weight: 700;
  white-space: nowrap;
}

.video-card:hover img { transform: scale(1.035); }
.video-card:hover .play-badge { background: var(--gold); }

.video-card .eyebrow { margin: 1rem 0 .35rem; color: var(--gold); letter-spacing: .1em; }
.video-card h3 { font-size: clamp(1.85rem, 3vw, 2.75rem); text-wrap: initial; }
.video-card > p:last-child { margin-top: .45rem; color: var(--light-muted); }

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
}

.metric {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  padding: 1.5rem clamp(1.25rem, 3.2vw, 3.25rem) 1.7rem;
  border-right: 1px solid var(--line);
}
.metric:first-child { padding-left: 0; }
.metric:last-child { padding-right: 0; border-right: 0; }

.metric-number, .charity-number {
  font-family: var(--display);
  font-size: clamp(4.9rem, 8vw, 8rem);
  line-height: .93;
  letter-spacing: -.025em;
  color: var(--green);
}

.metric :is(h3, h4) {
  margin: .55rem 0 .35rem;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.45;
  text-wrap: initial;
}

.metric > p:not(.metric-number) { color: var(--muted); }
.metric .source-link { margin-top: auto; padding-top: .55rem; }

.audience-intro {
  max-width: 24rem;
  color: var(--muted);
}

.audience-total { margin-top: .65rem; color: var(--muted); font-size: .9rem; }

.social-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.social-metrics .metric-number {
  font-size: clamp(3.6rem, 7vw, 6.9rem);
}

.account-link { font-size: .9rem; overflow-wrap: anywhere; text-underline-offset: .2em; }
.account-link:hover { color: var(--green); }

.youtube-breakdown {
  padding: clamp(1.2rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
  background: #eaeadd;
}

.breakdown-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin-bottom: 1.2rem;
}

.breakdown-heading h3, .programme-heading { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.breakdown-heading p { color: var(--muted); font-size: .875rem; }

.channel-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.channel-list li { display: flex; flex-direction: column; justify-content: space-between; gap: .2rem; }
.channel-list a { font-size: .95rem; font-weight: 700; text-underline-offset: .2em; }
.channel-list a:hover { color: var(--green); }
.channel-list a span { font-weight: 400; }
.channel-list strong { color: var(--green); font-size: 1.16rem; }

.programme-audience { margin-top: clamp(2.5rem, 5.2vw, 4.5rem); }
.programme-heading { margin-bottom: 1.15rem; }
.programme-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 850px) {
  .social-metrics, .channel-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .social-metrics .metric {
    padding: 1.2rem 0 1.3rem 1rem;
  }

  .social-metrics .metric:nth-child(odd) { padding-left: 0; padding-right: .6rem; }
  .social-metrics .metric:nth-child(even) { border-right: 0; }
  .social-metrics .metric:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

.show {
  margin-top: clamp(2rem, 5vw, 3.9rem);
  align-items: start;
}
.show h3 { font-size: clamp(2.1rem, 4.2vw, 3.75rem); }

.charity {
  padding-block: clamp(3rem, 6.5vw, 5.5rem);
  color: var(--cream);
  background: #263b30;
}

.charity-grid, .contact-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(2rem, 7vw, 8rem);
  align-items: center;
}

.charity .eyebrow, .charity .source-link { color: var(--gold); }
.charity h2 { margin: .55rem 0 .8rem; font-size: clamp(3rem, 5.6vw, 5.2rem); }
.charity h2 + p { max-width: 36rem; color: var(--light-muted); }
.charity-number { font-size: clamp(6rem, 13vw, 12rem); color: var(--gold); }
.charity-number span { font-size: .65em; vertical-align: .15em; }

.contact { padding-block: clamp(3rem, 7vw, 5.5rem); }
.contact h2 { font-size: clamp(3.15rem, 6.3vw, 5.75rem); }
.contact-details { min-width: 13rem; }
.contact-details strong { font-size: 1.2rem; }
.button-dark { margin-top: .8rem; background: var(--night); color: var(--cream); }
.button-dark:hover { background: var(--green); }
.button-dark:focus-visible { outline-color: var(--ink); }
.email-address { margin-top: .4rem; color: var(--muted); font-size: .94rem; }

.footer {
  padding-block: 1rem;
  border-top: 1px solid var(--night-line);
  background: var(--night-deep);
  color: var(--light-muted);
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .85rem; }
.footer p span { margin-inline: .35rem; color: var(--gold); }
.footer a { font-weight: 600; text-underline-offset: .2em; white-space: nowrap; }

@media (max-width: 850px) {
  .hero-grid { min-height: 36rem; }
  .hero h1 { font-size: clamp(5.8rem, 13.4vw, 8.2rem); }
  .video-card .eyebrow { letter-spacing: .04em; }
  .desktop-break { display: none; }
}

@media (max-width: 670px) {
  html { scroll-padding-top: 7.5rem; }

  .masthead-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: .05rem;
    padding-top: .7rem;
    padding-bottom: .1rem;
  }

  .wordmark { width: 6.2rem; height: 2.55rem; }
  .masthead nav { width: 100%; justify-content: space-between; gap: .5rem; }
  .masthead nav a { padding-inline: .26rem; }
  .masthead nav .nav-contact { padding-inline: .26rem; border: 0; }

  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 3.3rem 0 1rem; }
  .hero-copy .eyebrow { letter-spacing: .085em; }
  .hero h1 { font-size: clamp(4.8rem, 16vw, 6.6rem); }
  .hero-visual { min-height: clamp(18rem, 82vw, 28rem); }
  .portrait-frame { inset: 0 -6% 0; }
  .portrait-logo { top: 1.5%; width: auto; height: 94%; }
  .portrait-photo { position: absolute; bottom: 0; height: 88%; }

  .case-grid, .show, .roles, .roles.is-interactive, .charity-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  .case-copy { padding: 0; }
  .roles { gap: 1rem; }
  .role-panel { min-height: 0; }

  .section-heading { flex-direction: column; align-items: start; gap: .75rem; margin-bottom: 1.45rem; }
  .intro-preview, .video-grid, .programme-metrics { grid-template-columns: 1fr; }
  .intro-preview { grid-template-areas: "copy" "clip" "placeholder"; }
  .social-metrics .metric { border-right: 1px solid var(--line); }
  .social-metrics .metric:nth-child(even) { border-right: 0; }
  .social-metrics .metric:nth-child(2) { border-top: 0; }
  .video-grid { gap: 1.8rem; }
  .video-card .eyebrow { margin-top: .8rem; }

  .metric, .metric:first-child, .metric:last-child {
    padding: 1.3rem 0;
    border-right: 0;
  }
  .metric + .metric { border-top: 1px solid var(--line); }

  .charity-number { grid-row: 1; font-size: clamp(6rem, 20vw, 8rem); }
  .charity-grid { gap: .9rem; }
}

@media (max-width: 345px) {
  .wrap { width: calc(100% - 1.8rem); }
  .hero h1 { font-size: 4.55rem; }
  .eyebrow { letter-spacing: .09em; }
  .masthead nav a { font-size: .84rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

.video-dialog {
  width: min(60rem, 100% - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
  margin: auto;
  padding: clamp(.75rem, 2vw, 1.25rem);
  border: 1px solid var(--night-line);
  background: var(--night-deep);
  color: var(--cream);
}

.video-dialog::backdrop { background: #080e0bd9; }

.video-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .85rem;
}

.video-dialog-header h2 {
  font-size: clamp(1.85rem, 5vw, 2.8rem);
  text-wrap: initial;
}

.video-close {
  min-height: 2.75rem;
  padding: .45rem .65rem;
  border: 1px solid #647166;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  font-size: .875rem;
  font-weight: 700;
  white-space: nowrap;
}

.video-close:hover { border-color: var(--gold); }

.video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  background: #000;
}

.video-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-file-note { color: var(--light-muted); }
.video-preview-link, .video-on-youtube { color: var(--gold); }
