@font-face {
  font-family: "Source Serif";
  src: url("fonts/source-serif.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("fonts/plex-mono.woff2") format("woff2");
  font-display: swap;
}

:root {
  --night: #0a1012;
  --white: #f6f4ed;
  --paper: #f1ece0;
  --ink: #182124;
  --muted: #4d5757;
  --amber: #ffbe55;
  --dark-amber: #794515;
  --serif: "Source Serif", Georgia, serif;
  --mono: "Plex Mono", ui-monospace, monospace;
  --rule: #c6c5b7;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--night); }
body { margin: 0; font: 16px/1.58 Inter, system-ui, sans-serif; color: var(--white); }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.research :focus-visible { outline-color: var(--dark-amber); }
h1, h2, h3, p, figure, ol, dl, dd { margin: 0; }
.wrap { width: min(1296px, calc(100% - 104px)); margin-inline: auto; }
.skip {
  position: fixed;
  z-index: 5;
  top: 10px;
  left: 10px;
  clip-path: inset(50%);
  padding: 8px 14px;
  color: var(--night);
  background: var(--amber);
}
.skip:focus { clip-path: none; }

.masthead { border-bottom: 1px solid #ffffff23; }
.masthead-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.author, .section-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  text-decoration: none;
  font-size: .83rem;
}
.author { font-weight: 600; }
.section-link { color: #c5cecd; }
.section-link:hover { color: var(--white); }
.section-link span { color: var(--amber); }
.network-mark {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='m4 24 8-12 8 5 8-10M12 12V5m8 12v11' stroke='%23ffbe55' stroke-width='1.55' fill='none'/%3E%3Cg fill='%23ffbe55'%3E%3Ccircle cx='12' cy='12' r='2.4'/%3E%3Ccircle cx='20' cy='17' r='2.4'/%3E%3C/g%3E%3C/svg%3E") center/cover no-repeat;
}

.player { position: relative; display: grid; isolation: isolate; background: #080b0d; }
video { display: block; grid-area: 1 / 1; width: 100%; height: 100%; min-height: 0; object-fit: contain; background: #080b0d; }
.player.is-ready { min-height: clamp(525px, 76svh, 825px); }
.player.is-ready video { position: absolute; inset: 0; }
.film-cover {
  grid-area: 1 / 1;
  display: grid;
  position: relative;
  z-index: 1;
  background:
    linear-gradient(90deg, #0a1012 1%, #0a1012ec 22%, #0a10129c 48%, #0a101210 79%),
    linear-gradient(0deg, #090e10d9, transparent 40%),
    url("media/cockermouth.webp") 68% 53% / cover no-repeat;
}
.player:not(.is-ready) { display: flex; flex-direction: column-reverse; }
.player:not(.is-ready) .film-cover { min-height: 345px; }
.player:not(.is-ready) video { aspect-ratio: 16 / 9; height: auto; }
.cover-inner { position: relative; display: flex; align-items: center; min-height: 100%; padding-block: 52px 60px; }
.cover-inner::before {
  content: "";
  position: absolute;
  inset: 24px 0;
  pointer-events: none;
  border-right: 1px solid #d8e3df3b;
  border-top: 1px solid #d8e3df20;
  border-bottom: 1px solid #d8e3df20;
}
.cover-inner::after {
  content: "";
  position: absolute;
  inset: 24px 0;
  pointer-events: none;
  background:
    linear-gradient(#e1e8e0, #e1e8e0) right top / 13px 1px,
    linear-gradient(#e1e8e0, #e1e8e0) right top / 1px 13px,
    linear-gradient(#e1e8e0, #e1e8e0) right bottom / 13px 1px,
    linear-gradient(#e1e8e0, #e1e8e0) right bottom / 1px 13px;
  background-repeat: no-repeat;
  opacity: .6;
}
.title-block { z-index: 1; position: relative; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 19px;
  color: var(--amber);
  font: .74rem/1.35 var(--mono);
  text-transform: uppercase;
  letter-spacing: .11em;
}
.eyebrow > span { width: 14px; height: 1px; background: currentColor; }
h1 { font: 480 clamp(4.3rem, 7.9vw, 8.65rem)/.88 var(--serif); letter-spacing: -.071em; }
h1 em { font-style: normal; color: var(--amber); }
.film-subtitle { margin-top: 28px; font-size: clamp(1rem, 1.44vw, 1.31rem); color: #dce1db; line-height: 1.45; }
.play-button, .direct-film {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  text-align: left;
}
.play-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 6px #ffbe5528;
  transition: transform .24s ease, box-shadow .24s ease, background-color .24s ease;
}
.play-button:hover .play-icon { transform: scale(1.055); box-shadow: 0 0 0 10px #ffbe553b; background: #ffd18b; }
.play-copy { display: grid; gap: 3px; }
.play-copy strong { font-size: 1.02rem; }
.play-copy > span { color: #c6ceca; font: .7rem/1.3 var(--mono); }
.map-label {
  position: absolute;
  right: 25px;
  bottom: 47px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  background: #0a1012c9;
  border: 1px solid #d6e0dc45;
  border-radius: 2px;
  font: .69rem/1.45 var(--mono);
}
.map-label div { display: grid; gap: 2px; }
.map-label strong { font-weight: 400; color: var(--white); }
.map-label div span { color: #b6c5bf; }
.map-target { width: 13px; height: 13px; border: 1px solid var(--amber); border-radius: 50%; background: radial-gradient(circle, var(--amber) 1px, transparent 2px); }
.film-cover.playing {
  min-height: inherit;
  pointer-events: none;
  clip-path: inset(50%);
  position: absolute;
  inset: 0;
}
.film-cover.playing .play-button { display: none; }
.play-error { color: #ffd38e; padding-block: 10px; }

.research { color: var(--ink); background: var(--paper); }
.research .eyebrow { color: var(--dark-amber); }
.research h2 {
  font: 500 clamp(2.75rem, 5.1vw, 5.65rem)/.97 var(--serif);
  letter-spacing: -.064em;
  text-wrap: balance;
}
.research-intro {
  padding-block: clamp(52px, 7.4vw, 112px);
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 96px);
  align-items: end;
  border-bottom: 1px solid var(--rule);
}
.research-lede { color: var(--muted); max-width: 43ch; font-size: clamp(1rem, 1.37vw, 1.22rem); }
.research-lede p + p { margin-top: 14px; }
.scenario {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4.4vw, 66px);
  align-items: start;
  padding-block: clamp(40px, 6vw, 82px);
  border-bottom: 1px solid var(--rule);
}
.scenario h2 { font-size: clamp(2.25rem, 4.4vw, 4.3rem); text-wrap: initial; }
.scenario-copy > p:last-child { margin-top: 19px; color: var(--muted); max-width: 43ch; }
.route-figure {
  min-width: 0;
  border: 1px solid #46514d;
  border-radius: 7px;
  overflow: hidden;
  background: #172122;
  color: var(--white);
}
.route-event {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px clamp(14px, 2vw, 25px);
  border-bottom: 1px solid #45534e;
  font: .78rem var(--mono);
}
.route-event span {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 1px solid #eb936f;
  color: #ffb08d;
  border-radius: 50%;
  font-size: 1rem;
}
.route-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.route-option { padding: 18px clamp(13px, 1.65vw, 25px); }
.route-option + .route-option { border-left: 1px solid #45534e; }
.route-option h3 { margin-bottom: 16px; font: 600 clamp(1.04rem, 1.5vw, 1.32rem)/1.15 var(--serif); }
.route-lane {
  display: grid;
  grid-template-columns: 2.7rem minmax(15px, 1fr) max-content;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  color: #e0e9e0;
  font: .68rem var(--mono);
}
.route-lane i { height: 2px; position: relative; background: #687874; }
.route-lane i::after { content: ""; display: block; width: 100%; height: 100%; background: #ffbe55; }
.lane-heavy i { height: 6px; }
.lane-shared i { height: 3px; }
.lane-empty i { height: 0; border-top: 1px dashed #8a9a93; background: transparent; }
.lane-empty i::after { display: none; }
.route-figure figcaption {
  border-top: 1px solid #45534e;
  padding: 11px clamp(14px, 2vw, 25px);
  color: #c4cfc7;
  font-size: .76rem;
}
.approach { padding-block: clamp(48px, 6.4vw, 95px); }
.approach-heading { margin-bottom: clamp(28px, 4vw, 53px); }
.approach-heading h2 { max-width: 18ch; text-wrap: initial; }
.approach-heading > p:last-child { margin-top: 17px; max-width: 53ch; color: var(--muted); }
.method { padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.method > li {
  position: relative;
  display: grid;
  grid-template-columns: 35px minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: start;
  column-gap: clamp(14px, 3vw, 44px);
  row-gap: 15px;
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(21px, 3vw, 37px);
}
.method > li:not(:last-child)::before {
  position: absolute;
  top: calc(clamp(21px, 3vw, 37px) + 16px);
  bottom: calc(-1 * clamp(21px, 3vw, 37px) - 17px);
  left: 16px;
  width: 1px;
  background: #b7a88d;
  content: "";
}
.step {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid #ad9270;
  border-radius: 50%;
  color: var(--dark-amber);
  background: var(--paper);
  font: .72rem var(--mono);
}
.method h3 { font: 600 clamp(1.4rem, 2.5vw, 2.3rem)/1.11 var(--serif); letter-spacing: -.035em; margin-bottom: 10px; }
.method p { color: var(--muted); max-width: 60ch; }
.method-panel {
  display: grid;
  gap: 6px;
  padding: 15px 17px;
  border: 1px solid #d2c5ae;
  border-radius: 5px;
  background: #ebe3d1;
}
.method-panel dt { color: var(--dark-amber); font: .68rem var(--mono); text-transform: uppercase; letter-spacing: .065em; }
.method-panel dt:not(:first-child) { padding-top: 9px; margin-top: 3px; border-top: 1px solid #d2c5ae; }
.method-panel dd { font-size: .84rem; color: #333d39; line-height: 1.45; }

.evaluation { background: #172122; color: var(--white); }
.evaluation .eyebrow { color: var(--amber); }
.evaluation-inner { padding-block: clamp(45px, 6vw, 82px); }
.evaluation-heading {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: end;
  column-gap: 30px;
  margin-bottom: 30px;
}
.evaluation-heading .eyebrow { grid-column: 1 / -1; }
.evaluation h2 { font-size: clamp(2.65rem, 4.35vw, 4.6rem); text-wrap: initial; }
.evaluation-heading > p:last-child { color: #cbd6cf; max-width: 44ch; }
.evaluation-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
}
.evaluation-grid > div {
  padding: clamp(18px, 2vw, 29px);
  border: 1px solid #41504c;
  border-radius: 6px;
  background: #1e2929;
}
.evaluation-grid > div:first-child { border-color: #77644a; background: #292b25; }
.evaluation dt { margin-bottom: 10px; color: #ffd18b; font: 570 1.6rem/1.15 var(--serif); }
.evaluation dd { color: #d2dcd6; font-size: .94rem; }
.evaluation-note { color: #cbd6cf; max-width: 72ch; font-size: .84rem; margin-top: 23px; }
.footer-inner { display: flex; justify-content: space-between; gap: 14px 30px; padding-block: 21px; color: #b8c2bf; font-size: .73rem; }
.footer-inner a { text-underline-offset: 3px; }

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 64px); }
  .map-label { right: 18px; bottom: 36px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 38px); }
  .masthead-inner { min-height: 56px; }
  .player.is-ready { min-height: clamp(462px, 63svh, 630px); }
  .cover-inner { padding-block: 38px 55px; }
  .film-cover {
    background:
      linear-gradient(90deg, #0a1012ed 0%, #0a1012b8 30%, #0a10123c 100%),
      linear-gradient(0deg, #090e10db, transparent 52%),
      url("media/cockermouth.webp") 58% 50% / cover no-repeat;
  }
  h1 { font-size: clamp(3.05rem, 9.4vw, 5.15rem); }
  .film-subtitle { margin-top: 19px; }
  .play-button { margin-top: 26px; }
  .play-icon { width: 52px; height: 52px; }
  .map-label { bottom: 28px; right: 10px; padding: 5px 8px; }
  .map-label div span { display: none; }
  .cover-inner::before, .cover-inner::after { inset-block: 15px; }
  .research-intro, .scenario { grid-template-columns: 1fr; gap: 23px; }
  .evaluation-heading, .evaluation-grid { grid-template-columns: 1fr; }
  .evaluation-heading > p:last-child { margin-top: 12px; }
  .research h2 { text-wrap: initial; }
  .method > li { grid-template-columns: 35px minmax(0, 1fr); }
  .method-panel { grid-column: 2; }
  .footer-inner { flex-direction: column; }
}
@media (max-width: 480px) {
  .route-options { grid-template-columns: 1fr; }
  .route-option + .route-option { border-left: 0; border-top: 1px solid #45534e; }
}
@media (max-width: 400px) {
  .wrap { width: calc(100% - 32px); }
  .title-block h1 { font-size: clamp(2.68rem, 11vw, 3.05rem); }
  .play-copy > span { font-size: .66rem; }
  .hero-break { display: none; }
  .film-subtitle { max-width: 24ch; }
}
@media (max-width: 760px) {
  .player.is-ready.is-playing { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
