@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-wdth-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  --asphalt: #15262d;   /* petrol night, the road after dark */
  --shoulder: #1e343c;  /* panels, video frames */
  --lane: #f4f6f1;      /* the route line, like a map overlay */
  --text: #e6ece8;
  --muted: #9cb0b0;
  --sodium: #e7b567;    /* streetlight: links and focus only */
  --paper: #f7f5ef;     /* cats and wheelbarrows */
  --ink-blue: #2840a8;

  --rail: 9rem;
  --page: 78rem;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--asphalt);
  color: var(--text);
  font-family: "Archivo", system-ui, sans-serif;
  font-stretch: 100%;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--sodium); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
a:hover { color: var(--sodium); }
:focus-visible { outline: 2px solid var(--sodium); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { margin: 0; font-weight: 800; font-stretch: 125%; line-height: 1; letter-spacing: -.015em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }

/* masthead */
.masthead {
  max-width: var(--page);
  margin: 0 auto;
  padding: 1.5rem var(--gap);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.wordmark { font-weight: 800; font-stretch: 125%; text-decoration: none; letter-spacing: -.01em; }
.masthead nav { display: flex; gap: 1.5rem; font-stretch: 87%; font-weight: 500; color: var(--muted); }
.masthead nav a { text-decoration: none; }

/* hero */
.hero {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(3rem, 10vh, 7rem) var(--gap) clamp(3rem, 8vh, 6rem);
}
.hero h1 {
  font-size: clamp(2.9rem, 8.4vw, 8rem);
  line-height: .93;
  letter-spacing: -.025em;
  max-width: 12ch;
}
.intro {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  margin-left: auto;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.125rem;
}
.intro .lede { color: var(--text); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.4; }

/* section titles */
.section-title {
  font-size: 1rem;
  font-stretch: 87%;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(244, 246, 241, .18);
  margin-bottom: 2rem;
}

/* how I work */
.how, .voices {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gap) clamp(3.5rem, 8vw, 6rem);
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}
.how h3 { font-size: 1.5rem; margin-bottom: .9rem; }
.how p { color: var(--muted); max-width: 34ch; margin: 0; }
@media (max-width: 52rem) {
  .how-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .how p { max-width: 60ch; }
}

/* colleague quotes */
.quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
.quotes li { display: grid; grid-template-columns: minmax(0, 1fr) 11rem; gap: 1.5rem; align-items: baseline; }
.quotes blockquote {
  margin: 0;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  font-weight: 300;
  font-stretch: 112%;
  line-height: 1.12;
  letter-spacing: -.01em;
  text-indent: -.42em;
  text-wrap: balance;
}
.quotes span { color: var(--muted); font-stretch: 87%; font-weight: 500; }
@media (max-width: 40rem) { .quotes li { grid-template-columns: 1fr; gap: .4rem; } }

/* the route */
.route {
  position: relative;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gap) 3rem calc(var(--gap) + var(--rail));
}
.road {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.road-line {
  fill: none;
  stroke: var(--lane);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.route-head { padding-bottom: clamp(3rem, 7vw, 5rem); position: relative; }
.route-head h2 { font-size: clamp(2.25rem, 5.5vw, 4.5rem); letter-spacing: -.02em; }
.route-head p { color: var(--muted); margin-top: .9rem; }

.stop { position: relative; padding-bottom: clamp(4.5rem, 10vw, 8rem); }
.stop-meta { margin-bottom: 1rem; }
.era { font-stretch: 87%; font-weight: 600; color: var(--muted); }

.marker {
  position: absolute;
  top: .1rem;
  left: calc(-1 * var(--rail) + var(--mx, 2.5rem) - .75rem);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 3px solid var(--lane);
  background: var(--asphalt);
  z-index: 1;
  transition: background-color .3s ease;
}
.marker::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--lane);
  transform: scale(0);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1.4);
}
.stop.reached .marker::after, .route-end.reached .marker::after { transform: scale(1); }

/* where each stop sits on the rail: the road bends between them */
.stop:nth-of-type(1) { --mx: 2.5rem; }
.stop:nth-of-type(2) { --mx: 6.25rem; }
.stop:nth-of-type(3) { --mx: 3rem; }
.stop:nth-of-type(4) { --mx: 5.5rem; }
.stop:nth-of-type(5) { --mx: 2rem; }
.stop:nth-of-type(6) { --mx: 6.5rem; }
.stop:nth-of-type(7) { --mx: 3.5rem; }
.stop:nth-of-type(8) { --mx: 5.75rem; }
.route-end { position: relative; height: 1.5rem; --mx: 4rem; }
.route-end .marker { top: 0; }

.stop-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.stop h3 { font-size: clamp(1.9rem, 3.6vw, 3rem); margin-bottom: .6rem; }
.kicker { font-size: 1.2rem; line-height: 1.4; margin-bottom: 1.25rem; }
.stop-text > p:not(.kicker):not(.links) { color: var(--muted); max-width: 62ch; }

dl { margin: 1.5rem 0 0; padding: 0; display: grid; gap: .55rem; }
dl div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding-top: .55rem; border-top: 1px solid rgba(244, 246, 241, .14); }
dt { font-stretch: 87%; font-weight: 600; color: var(--muted); }
dd { margin: 0; }

.links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.5rem; font-weight: 600; }

/* media */
.media { margin: 0; }
.media video, .media img { width: 100%; border-radius: 4px; background: var(--shoulder); }
.media figcaption { color: var(--muted); font-size: .9rem; margin-top: .6rem; font-stretch: 87%; }
.media.tall { max-width: 21rem; }
.media.tall video { aspect-ratio: 640 / 1138; object-fit: cover; }
.media.square { max-width: 32rem; }
.media.square video { aspect-ratio: 1; }
.media.wide video { aspect-ratio: 16 / 9; object-fit: cover; }

.photos { display: grid; gap: 1rem; }
.photos figure { margin: 0; }
.photos figure:nth-child(2) { width: 82%; margin-left: auto; }

.stop-body.media-heavy { grid-template-columns: minmax(0, .85fr) minmax(0, 1.6fr); }
.collage {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: .9rem;
  align-items: start;
}
.collage figure { margin: 0; }
.c-loop { grid-column: 1; grid-row: 1 / span 2; }
.c-loop video { aspect-ratio: 2 / 3; object-fit: cover; }
.c-a { grid-column: 2; grid-row: 1; margin-top: 2.5rem !important; }
.c-b { grid-column: 3; grid-row: 1; }
.c-reel { grid-column: 2 / span 2; grid-row: 2; max-width: 9.5rem; justify-self: center; }
.c-reel video { aspect-ratio: 480 / 848; object-fit: cover; }

/* playground: its own world, in its own colours */
.play-card {
  grid-column: 1 / -1;
  background: var(--paper);
  color: var(--ink-blue);
  border-radius: 6px;
  padding: clamp(1.5rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.stop-play .stop-body { display: block; }
.play-card .stop-text > p:not(.kicker):not(.links) { color: #3c4a86; }
.play-card a { text-decoration-color: currentColor; }
.play-card a:hover { color: #11206b; }
.play-card :focus-visible { outline-color: var(--ink-blue); }
.play-media { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.play-media img { width: 100%; border-radius: 3px; box-shadow: 0 0 0 1px rgba(40, 64, 168, .12); }
.p-og { grid-column: 1 / -1; }

/* contact */
.contact {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--gap) clamp(4rem, 10vw, 8rem) calc(var(--gap) + var(--rail));
}
.contact h2 { font-size: clamp(2.6rem, 7vw, 6rem); letter-spacing: -.025em; margin-bottom: 1.25rem; }
.contact p { color: var(--muted); }
.contact .links { font-size: 1.25rem; color: var(--text); }

.foot {
  max-width: var(--page);
  margin: 0 auto;
  padding: 1.5rem var(--gap) 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  color: var(--muted);
  font-size: .875rem;
  font-stretch: 87%;
  border-top: 1px solid rgba(244, 246, 241, .14);
}

/* narrower screens */
@media (max-width: 64rem) {
  .stop-body, .stop-body.media-heavy { grid-template-columns: 1fr; }
  .media.wide, .photos, .collage { max-width: 44rem; }
  .play-card { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
  :root { --rail: 2.75rem; }
  .route { padding-left: calc(var(--gap) + var(--rail)); }
  .contact { padding-left: var(--gap); }
  .stop:nth-of-type(odd) { --mx: .9rem; }
  .stop:nth-of-type(even) { --mx: 1.6rem; }
  .route-end { --mx: 1.2rem; }
  .marker { width: 1.25rem; height: 1.25rem; left: calc(-1 * var(--rail) + var(--mx) - .625rem); border-width: 2.5px; }
  dl div { grid-template-columns: 5.5rem minmax(0, 1fr); }
  .collage { grid-template-columns: 1fr 1fr; }
  .c-loop { grid-column: 1 / -1; grid-row: auto; max-width: 18rem; }
  .c-a, .c-b { grid-column: auto; grid-row: auto; margin-top: 0 !important; }
  .c-reel { grid-column: 1 / -1; grid-row: auto; justify-self: start; }
  .masthead nav { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .marker, .marker::after { transition: none; }
}
