/* Customer advocacy v5. Independent of homepage and media page CSS. */

:root {
  --ink: #102019;
  --green: #003d20;
  --accent: #0d6b3c;
  --paper: #f4f2ec;
  --line: #c8cec7;
  --muted: #58645c;
  --light: #bbd6c4;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 Arial, Helvetica, sans-serif;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, summary { font: inherit; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

.wrap,
.header-inner {
  width: min(1180px, calc(100% - 80px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 110;
  background: white;
  padding: 10px;
}

.skip-link:focus { top: 10px; }

/* Navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 242, 236, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.wordmark {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.wordmark span,
h1 span { color: var(--accent); }

nav {
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 700;
}

.nav-cv { border-bottom: 1px solid; padding: 3px 0; }
.nav-cv span { margin-left: 6px; }

/* Introduction */

.page-intro { padding-block: 24px 28px; }
.back-link { font-size: 0.8125rem; color: var(--muted); }

h1 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.045em;
  margin: 20px 0 0;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.eyebrow.light { color: var(--light); }

.project-hero {
  background: var(--green);
  color: var(--paper);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
  padding-block: 38px;
}

.hero-grid h2 {
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
  margin: 0 0 18px;
}

.hero-summary {
  color: #d5e3d9;
  max-width: 480px;
  margin: 0;
}

.hero-role {
  border-left: 1px solid #598268;
  padding-left: 38px;
}

.hero-role h3 {
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 14px;
}

.hero-role > p:not(.eyebrow) {
  color: #d5e3d9;
  margin: 0 0 20px;
}

.light-link {
  display: inline-flex;
  gap: 22px;
  font-size: 0.875rem;
  border-bottom: 1px solid #88ab93;
  padding-bottom: 3px;
}

.light-link:hover { color: var(--light); }
.project-hero a:focus-visible { outline-color: white; }

/* Programme overview */

.programme-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  padding-block: 20px;
}

.programme-facts > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border-right: 1px solid var(--line);
}

.programme-facts > div:first-child { padding-left: 0; }
.programme-facts > div:last-child { border-right: 0; }

.programme-facts strong {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--green);
  line-height: 1.1;
}

.programme-facts span {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Featured films */

.assets-section { padding-block: 32px 40px; }

.section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-top h2 {
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  margin: 0;
}

.section-top > span {
  font-size: 0.8125rem;
  color: var(--muted);
}

.film-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.film-card {
  display: flex;
  flex-direction: column;
  padding: 26px 28px;
  background: #fffefa;
  border: 1px solid var(--line);
}

.film-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.film-number {
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--green);
  font-weight: 700;
}

.film-heading .eyebrow { margin: 0; }

.film-card h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
  margin: 0 0 12px;
}

.film-card > p {
  color: var(--muted);
  margin: 0 0 22px;
}

.asset-link {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.875rem;
  font-weight: 700;
}

.asset-link > span {
  font-size: 1.25rem;
  line-height: 1;
}

/* Case studies and webinar */

.resources-heading { margin-top: 30px; }

.resource-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.resource-list li { border-bottom: 1px solid var(--line); }

.resource-list a {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
}

.resource-type {
  color: var(--muted);
  font-size: 0.8125rem;
}

.resource-type small {
  display: block;
  color: var(--accent);
  font-size: 0.75rem;
  margin-top: 3px;
}

.resource-title {
  font-size: 1.0625rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.resource-action {
  font-size: 0.8125rem;
  color: var(--accent);
  white-space: nowrap;
}

.resource-action > span { margin-left: 10px; }

.asset-note {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 16px 0 0;
}

/* Supporting assets */

.programme-details {
  border-block: 1px solid var(--line);
  margin-top: 24px;
}

summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-weight: 700;
  padding-block: 18px;
}

summary::-webkit-details-marker { display: none; }

summary small {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 3px;
}

.disclosure-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  position: relative;
}

.disclosure-icon::before,
.disclosure-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.disclosure-icon::before {
  width: 14px;
  height: 2px;
  left: 5px;
  top: 11px;
}

.disclosure-icon::after {
  width: 2px;
  height: 14px;
  left: 11px;
  top: 5px;
}

details[open] > summary .disclosure-icon::after {
  display: none;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.support-grid h3 {
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.02em;
}

.programme-details .asset-note { margin-bottom: 20px; }

/* Story and ownership */

.story-section {
  background: #e9ede7;
  border-top: 1px solid var(--line);
  padding-block: 40px;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: start;
  gap: 60px;
}

.story-grid h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
  margin: 0;
}

.story-copy p {
  margin: 0 0 16px;
  color: var(--muted);
}

.story-copy p:last-child { margin-bottom: 0; }

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.role-grid article {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px;
}

.role-grid h3 {
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}

.role-grid article > p:last-child {
  color: var(--muted);
  margin: 0;
  font-size: 0.9375rem;
}

/* Footer */

.page-footer {
  padding-block: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 0.8125rem;
}

.page-footer p { margin: 0; font-weight: 700; }

.page-footer p span {
  display: block;
  font-weight: 400;
  color: var(--muted);
}

.page-footer > a {
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
}

/* In-page video and PDF viewer */

body.modal-open { overflow: hidden; }

.media-modal {
  border: 1px solid var(--line);
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  width: min(1040px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  overflow: auto;
}

.media-modal::backdrop {
  background: rgba(4, 15, 10, 0.82);
  backdrop-filter: blur(6px);
}

.media-modal-panel { padding: 22px; }

.media-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 22px;
  padding-bottom: 18px;
}

.media-modal-header .eyebrow { margin-bottom: 6px; }

.media-modal-header h2 {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0;
}

.media-modal-close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
}

.media-modal-close:hover { background: #e9ede7; }

.media-modal-frame-wrap {
  background: #102019;
  aspect-ratio: 16 / 9;
}

.media-modal-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.media-modal.is-pdf .media-modal-frame-wrap {
  aspect-ratio: auto;
  height: 65vh;
  height: 65dvh;
}

.media-modal-fallback {
  display: inline-block;
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
  margin-top: 14px;
}

/* Tablet */

@media (max-width: 800px) {
  .wrap,
  .header-inner { width: calc(100% - 40px); }

  .hero-grid { gap: 30px; }
  .hero-role { padding-left: 25px; }

  .programme-facts > div {
    padding-inline: 12px;
    gap: 8px;
  }

  .film-card { padding: 22px; }
  .story-grid { gap: 30px; }
  .role-grid { gap: 12px; }
  .role-grid article { padding: 18px; }
}

/* Mobile */

@media (max-width: 600px) {
  html { scroll-padding-top: 92px; }

  .header-inner {
    min-height: 66px;
    gap: 12px;
  }

  nav { gap: 14px; font-size: 0.75rem; }
  .nav-cv span { display: none; }
  .wordmark { font-size: 1.2rem; }
  .page-intro { padding-block: 20px 24px; }
  h1 { font-size: 1.6rem; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 30px;
  }

  .hero-role {
    border-left: 0;
    border-top: 1px solid #598268;
    padding: 24px 0 0;
  }

  .programme-facts {
    grid-template-columns: 1fr 1fr;
    gap: 18px 0;
  }

  .programme-facts > div { padding-inline: 12px; }
  .programme-facts > div:nth-child(odd) { padding-left: 0; }
  .programme-facts > div:nth-child(even) { border-right: 0; }

  .film-grid,
  .story-grid,
  .role-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .film-grid { gap: 16px; }

  .section-top {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }

  .resource-list a {
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
  }

  .resource-type { grid-column: 1; }

  .resource-type small {
    display: inline;
    margin-left: 8px;
  }

  .resource-title { grid-column: 1; }

  .resource-action {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .story-section { padding-block: 30px; }
  .story-grid { gap: 20px; }
  .role-grid { margin-top: 24px; gap: 14px; }

  .page-footer {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }

  .media-modal {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
  }

  .media-modal-panel { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}