@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* Colours come from the logo: brand blue, heartbeat green, globe teal, tagline orange */
:root {
  --navy: #0b2d50;
  --navy-soft: #3e5873;
  --blue: #004e8b;
  --green: #67ab00;
  --green-light: #7cc214;
  --green-text: #3b6e00;
  --teal: #00756e;
  --teal-deep: #005a63;
  --sea: #bfe3dc;
  --mist: #ebf4f2;
  --orange: #fea000;
  --white: #ffffff;
  --line: #d3e0dd;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --width: 76rem;
  --section: clamp(3.5rem, 8vw, 6.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
}

h3 {
  font-size: 1.6rem;
}

p {
  margin: 0;
}

p + p {
  margin-top: 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.on-navy :focus-visible {
  outline-color: var(--green-light);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--navy);
  color: var(--white);
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: calc(var(--width) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section--mist {
  background: var(--mist);
}

.lede {
  max-width: 38em;
  margin-top: 1rem;
  color: var(--navy-soft);
}

/* Buttons */

.button {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.button--accent {
  background: var(--green);
  color: var(--navy);
}

.button--accent:hover {
  background: var(--green-light);
}

.button--line {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.button--line:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.button--dark {
  border-color: var(--navy);
  color: var(--navy);
}

.button--dark:hover {
  background: var(--navy);
  color: var(--white);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Masthead: white, so the full-colour logo reads as it was designed */

.masthead {
  position: relative;
  z-index: 2;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.9rem;
}

.lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.lockup__globe {
  width: 66px;
}

.lockup__words {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.lockup__wordmark {
  width: 190px;
}

.tagline {
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.tagline__dot {
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  margin: 0 0.45em 0.12em;
  border-radius: 50%;
  background: var(--orange);
  vertical-align: middle;
}

.nav ul {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2rem);
}

.nav a {
  display: block;
  padding-block: 0.3rem;
  border-bottom: 2px solid transparent;
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  border-bottom-color: var(--green);
}

.nav-toggle {
  display: none;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--navy);
  border-radius: 2px;
  background: none;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

/* Home hero */

.hero {
  background: var(--navy);
  color: var(--white);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 5fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: end;
  padding-top: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hero h1 {
  font-size: clamp(2rem, 5.6vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero__copy {
  color: #d9e4ee;
}

.hero__copy strong {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.25;
}

/* The chain: the logo's heartbeat line, turned into the path a record travels */

.chain {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: 1rem;
  row-gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: var(--section);
}

.chain-rule {
  height: 4px;
  background: var(--green);
  transform-origin: left;
}

.chain-holder {
  overflow: hidden;
}

.chain ol,
.chain li {
  display: contents;
}

.chain__button {
  position: relative;
  grid-row: 1;
  padding: 1.75rem 0.25rem 0.5rem 0;
  border: 0;
  background: none;
  color: var(--navy-soft);
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.75vw, 1.4rem);
  line-height: 1.2;
  text-align: left;
  transition: color 150ms ease;
}

.chain__button::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 0;
  width: 22px;
  height: 22px;
  border: 4px solid var(--green);
  border-radius: 50%;
  background: var(--white);
  transition: background-color 150ms ease, transform 150ms ease;
}

.chain__button:hover {
  color: var(--navy);
}

.chain__button[aria-expanded="true"] {
  color: var(--navy);
  font-weight: 500;
}

.chain__button[aria-expanded="true"]::before {
  background: var(--navy);
  transform: scale(1.15);
}

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

.chain__intro p {
  margin-top: 0.75rem;
  color: var(--navy-soft);
}

.chain__text {
  grid-row: 2;
  grid-column: 3 / -1;
  max-width: 34em;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  line-height: 1.3;
}

.js .chain__text[hidden] {
  display: none;
}

html:not(.js) .chain__intro,
html:not(.js) .chain__text {
  grid-row: auto;
  grid-column: 1 / -1;
}

.js .chain__text {
  animation: text-in 220ms ease;
}

@keyframes text-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

/* The one orchestrated moment: the line draws, each step lands on it in turn */

@media (min-width: 861px) {
  .js .chain-rule {
    animation: draw 1500ms cubic-bezier(0.65, 0, 0.35, 1) both;
  }

  .js .chain__button {
    animation: land 400ms ease both;
  }

  .js li:nth-child(1) .chain__button { animation-delay: 150ms; }
  .js li:nth-child(2) .chain__button { animation-delay: 350ms; }
  .js li:nth-child(3) .chain__button { animation-delay: 550ms; }
  .js li:nth-child(4) .chain__button { animation-delay: 750ms; }
  .js li:nth-child(5) .chain__button { animation-delay: 950ms; }
  .js li:nth-child(6) .chain__button { animation-delay: 1150ms; }
}

@keyframes draw {
  from {
    transform: scaleX(0);
  }
}

@keyframes land {
  from {
    opacity: 0;
  }
}

/* Service areas: a tonal ramp from blue-green to navy, as in the globe */

.areas__head {
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

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

.ramp__panel {
  display: flex;
  flex-direction: column;
  min-height: 23rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  text-decoration: none;
}

.ramp__panel h3 {
  font-size: clamp(1.7rem, 2.4vw, 2.1rem);
}

.ramp__panel p {
  margin-top: 1rem;
}

.ramp__more {
  margin-top: auto;
  padding-top: 1.5rem;
  font-weight: 600;
}

.ramp__panel:hover h3,
.ramp__panel:hover .ramp__more {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.ramp__panel:nth-child(1) { background: var(--mist); }
.ramp__panel:nth-child(2) { background: var(--sea); }
.ramp__panel:nth-child(3) { background: var(--teal); color: var(--white); }
.ramp__panel:nth-child(4) { background: var(--navy); color: var(--white); }

.ramp__panel:nth-child(n + 3):focus-visible {
  outline-color: var(--green-light);
  outline-offset: -6px;
}

/* Approach steps: a real sequence, so they are numbered */

.steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 2rem;
}

.steps li {
  padding: 1.25rem 1rem 1.5rem;
}

.steps__num {
  display: block;
  font-size: 1rem;
}

.steps__name {
  display: block;
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.2;
}

.steps li:nth-child(1) { background: var(--white); }
.steps li:nth-child(2) { background: #d6ece8; }
.steps li:nth-child(3) { background: var(--sea); }
.steps li:nth-child(4) { background: var(--teal); color: var(--white); }
.steps li:nth-child(5) { background: var(--teal-deep); color: var(--white); }
.steps li:nth-child(6) { background: var(--navy); color: var(--white); }

.promise {
  max-width: 34em;
  margin-top: 2rem;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  line-height: 1.3;
}

/* Two-column reading layout */

.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
}

.split__side p {
  margin-top: 1rem;
  color: var(--navy-soft);
}

.split__body {
  max-width: 40em;
}

.terms > li {
  padding-block: 1.35rem;
  border-top: 1px solid var(--line);
}

.terms > li:last-child {
  border-bottom: 1px solid var(--line);
}

.terms h3 {
  font-size: 1.55rem;
}

.terms p {
  margin-top: 0.3rem;
  color: var(--navy-soft);
}

/* Inner page banner */

.page-hero {
  background: var(--navy);
  color: var(--white);
  border-bottom: 4px solid var(--green);
}

.page-hero__inner {
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.page-hero h1 {
  max-width: 17em;
  font-size: clamp(2.6rem, 5.8vw, 4.6rem);
  line-height: 1.04;
}

.page-hero p {
  max-width: 40em;
  margin-top: 1.25rem;
  color: #d9e4ee;
}

/* In-page jump links */

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.jump a {
  font-weight: 600;
  text-decoration: none;
}

.jump a:hover {
  text-decoration: underline;
}

[id] {
  scroll-margin-top: 1.5rem;
}

/* Services */

.services-layout {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.services-nav {
  position: sticky;
  top: 2rem;
}

.services-nav a {
  display: block;
  padding-block: 0.55rem;
  border-left: 2px solid var(--line);
  padding-left: 1rem;
  text-decoration: none;
}

.services-nav a:hover {
  border-left-color: var(--green);
}

.service-group + .service-group {
  margin-top: var(--section);
}

.service-group__intro {
  max-width: 38em;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--navy-soft);
}

/* Expandable rows, shared by services and FAQs */

.service {
  border-top: 1px solid var(--line);
}

.service:last-child {
  border-bottom: 1px solid var(--line);
}

.service summary {
  position: relative;
  padding: 1.25rem 2.5rem 1.25rem 0;
  cursor: pointer;
  list-style: none;
}

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

.service summary::before,
.service summary::after {
  content: "";
  position: absolute;
  top: 2rem;
  right: 0.3rem;
  width: 16px;
  height: 2px;
  background: var(--teal);
  transition: transform 150ms ease;
}

.service summary::after {
  transform: rotate(90deg);
}

.service[open] summary::after {
  transform: rotate(0deg);
}

.service__title {
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.2;
}

.service__short {
  display: block;
  margin-top: 0.3rem;
  color: var(--navy-soft);
}

.service__body {
  padding-bottom: 1.75rem;
}

.service__body > p,
.service__body > blockquote {
  max-width: 40em;
}

.service__body h4 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}

.ticks {
  columns: 2;
  column-gap: 2.5rem;
}

.ticks li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.4rem;
  break-inside: avoid;
  font-size: 1.05rem;
  line-height: 1.45;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.ticks--single {
  columns: 1;
}

.faq-list {
  max-width: 52rem;
}

.quote {
  margin: 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--sea);
}

.quote p + p {
  margin-top: 0.8em;
}

.quote cite {
  display: block;
  margin-top: 0.8rem;
  color: var(--navy-soft);
  font-size: 1rem;
  font-style: normal;
}

.formula {
  max-width: 40em;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--mist);
}

.formula span {
  display: block;
  color: var(--navy-soft);
  font-size: 1rem;
  font-weight: 600;
}

.formula strong {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.35;
}

.audiences {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 2rem;
}

.audiences h3 {
  font-size: 1.45rem;
}

.audiences ul {
  margin-top: 0.75rem;
}

.audiences li {
  padding-block: 0.2rem;
  color: var(--navy-soft);
}

/* About the consultancy */

.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 5rem);
}

.pair h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
}

.pair p,
.pair ul {
  margin-top: 1rem;
}

.statement {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  line-height: 1.35;
}

.pull.philosophy__lead {
  max-width: 30em;
  margin-top: 1.75rem;
  color: var(--teal);
}

.philosophy__body {
  margin-top: 2.5rem;
}

.philosophy__principles {
  margin-top: 3rem;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2rem;
  background: var(--line);
  border: 1px solid var(--line);
}

.principles li {
  padding: 1.25rem;
  background: var(--white);
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.25;
}

/* Meet the founder */

.about-intro {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  margin-top: 2.5rem;
}

.about-intro__photo img {
  width: 100%;
  max-width: 15rem;
  border-bottom: 4px solid var(--green);
}

.about-intro__text {
  max-width: 36em;
}

.about-intro__text p:first-child {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  line-height: 1.3;
}

.pull {
  max-width: 28em;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.25;
}

.timeline {
  position: relative;
  border-left: 4px solid var(--green);
}

.timeline li {
  position: relative;
  padding: 0 0 2rem 2rem;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  left: -13px;
  width: 22px;
  height: 22px;
  border: 4px solid var(--green);
  border-radius: 50%;
  background: var(--white);
}

.timeline li:last-child::before {
  background: var(--navy);
}

.timeline__date {
  display: block;
  color: var(--green-text);
  font-weight: 600;
}

.timeline h3 {
  margin-top: 0.1rem;
  font-size: 1.5rem;
}

.timeline p {
  margin-top: 0.25rem;
  color: var(--navy-soft);
}

.quals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 2rem;
}

.quals h3 {
  font-size: 1.45rem;
}

.quals ul {
  margin-top: 0.75rem;
}

.quals li {
  padding-block: 0.45rem;
  border-top: 1px solid var(--line);
  line-height: 1.4;
}

.quals small {
  display: block;
  color: var(--navy-soft);
  font-size: 1rem;
}

/* Contact */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}

.contact-list {
  margin-top: 1.5rem;
}

.contact-list li {
  padding-block: 0.9rem;
  border-top: 1px solid var(--line);
}

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

.contact-list span {
  display: block;
  color: var(--navy-soft);
  font-size: 1rem;
}

.contact-list a {
  overflow-wrap: anywhere;
}

.contact-note {
  margin-top: 1.75rem;
}

.form {
  display: grid;
  gap: 1.25rem;
}

.form__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid #7f96a0;
  border-radius: 2px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
}

.form textarea {
  min-height: 11rem;
  resize: vertical;
}

.form__hp {
  position: absolute;
  left: -9999px;
}

.form__privacy {
  color: var(--navy-soft);
  font-size: 1rem;
}

.form button {
  justify-self: start;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

/* Long-form text: privacy notice */

.prose {
  max-width: 42em;
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: 1.75rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose ul {
  margin-top: 0.8rem;
}

.prose ul {
  padding-left: 1.2rem;
  list-style: disc;
}

/* Home: free coding standards download */

.resource {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1.5rem clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  background: var(--white);
}

.resource__kicker {
  color: var(--green-text);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.resource h2 {
  margin-top: 0.6rem;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
}

.resource__text p:last-child {
  max-width: 34em;
  margin-top: 0.9rem;
  color: var(--navy-soft);
}

.resource__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  text-align: center;
}

@media (max-width: 760px) {
  .resource {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Articles: series listings */

.series__head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1rem clamp(2rem, 4vw, 4rem);
  align-items: end;
  padding-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.series__head p {
  max-width: 34em;
  color: var(--navy-soft);
}

.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.article-list--courses .article-card:last-child {
  grid-column: 1 / -1;
}

.article-list--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 30rem;
}

.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--white);
}

.article-card__num {
  color: var(--green-text);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.article-card h3 {
  font-size: 1.4rem;
  line-height: 1.2;
}

.article-card h3 a {
  text-decoration: none;
}

.article-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.article-card:hover h3 a {
  text-decoration: underline;
}

.article-card:focus-within {
  outline: 3px solid var(--blue);
  outline-offset: -3px;
}

.article-card h3 a:focus-visible {
  outline: none;
}

.article-card p {
  color: var(--navy-soft);
  font-size: 1rem;
}

.article-card__meta {
  margin-top: auto;
  padding-top: 0.4rem;
  color: var(--navy-soft);
  font-size: 0.9rem;
}

/* Articles: single article */

.page-hero--article h1 {
  max-width: 22em;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  line-height: 1.08;
}

.page-hero__kicker {
  display: inline-block;
  margin-bottom: 1.1rem;
  color: var(--green-light);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-decoration: none;
  text-transform: uppercase;
}

.page-hero__kicker:hover {
  text-decoration: underline;
}

.page-hero .page-hero__sub {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  color: var(--sea);
}

.page-hero .page-hero__byline {
  font-size: 1rem;
}

.article-body {
  max-width: 42rem;
}

.article-body > * + * {
  margin-top: 1.1rem;
}

.article-body h2 {
  margin-top: 2.75rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.18;
}

.article-body h3 {
  margin-top: 2rem;
  font-size: 1.35rem;
  line-height: 1.25;
}

.article-body h2 + *,
.article-body h3 + * {
  margin-top: 0.75rem;
}

.article-body strong {
  font-weight: 600;
}

.article-body ul,
.article-body ol {
  padding-left: 1.4rem;
}

.article-body ul {
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body li + li {
  margin-top: 0.4rem;
}

.article-body li::marker {
  color: var(--green-text);
}

.article-body .standfirst {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.5rem);
  line-height: 1.45;
  color: var(--teal-deep);
}

.article-body .standfirst strong {
  font-weight: 500;
}

.article-body .callout {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--green);
  background: var(--mist);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.4rem);
  line-height: 1.4;
}

.article-body .article-cite {
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
}

.article-cite a {
  font-weight: 600;
}

.article-cite span {
  display: block;
  margin-top: 0.3rem;
  color: var(--navy-soft);
  font-size: 0.95rem;
}

.table-scroll {
  overflow-x: auto;
}

.article-body table {
  width: 100%;
  min-width: 30rem;
  border-collapse: collapse;
  font-size: 1rem;
}

.article-body th,
.article-body td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-body th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}

.series-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2rem;
  max-width: 42rem;
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.series-nav a {
  display: block;
  text-decoration: none;
}

.series-nav span {
  display: block;
  color: var(--green-text);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.series-nav strong {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.25;
}

.series-nav a:hover strong {
  text-decoration: underline;
}

.series-nav__next {
  grid-column: 2;
  text-align: right;
}

.article-back {
  margin-top: 2rem;
  font-weight: 600;
}

/* Journal */

.publication {
  max-width: 52rem;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
}

.publication__source {
  color: var(--green-text);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.publication h2 {
  margin-top: 0.75rem;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
}

.publication__sub {
  margin-top: 0.6rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--teal-deep);
}

.publication__authors,
.publication__ref {
  color: var(--navy-soft);
  font-size: 0.98rem;
}

.publication__authors {
  margin-top: 1.25rem;
}

.publication__authors strong {
  color: var(--navy);
  font-weight: 600;
}

.publication__text {
  margin-top: 1.25rem;
  max-width: 42em;
}

.publication__figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1.75rem;
  border: 1px solid var(--line);
  background: var(--line);
}

.publication__figures li {
  padding: 1rem 1.1rem;
  background: var(--mist);
}

.publication__figures strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 1.9rem);
  font-weight: 400;
  line-height: 1.15;
}

.publication__figures span {
  display: block;
  margin-top: 0.35rem;
  color: var(--navy-soft);
  font-size: 0.95rem;
  line-height: 1.4;
}

@media (max-width: 760px) {
  .series__head,
  .publication__figures {
    grid-template-columns: minmax(0, 1fr);
  }

  .series-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .series-nav__next {
    grid-column: auto;
    text-align: left;
  }
}

/* Simple message pages */

.notice {
  min-height: 40vh;
}

.notice h1 {
  font-size: clamp(2.6rem, 5.8vw, 4.6rem);
}

.notice p {
  max-width: 34em;
  margin-top: 1rem;
}

/* Footer */

.footer {
  background: var(--navy);
  border-top: 4px solid var(--green);
  color: var(--white);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.footer h2 {
  max-width: 15em;
  font-size: clamp(2rem, 4vw, 2.9rem);
}

.footer__name {
  margin-top: 0.75rem;
  color: #c6d4e2;
}

.footer__contact li {
  padding-block: 0.3rem;
  overflow-wrap: anywhere;
}

.footer__contact span {
  color: #c6d4e2;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #c6d4e2;
  font-size: 1rem;
}

.footer__bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

/* Tablet */

@media (max-width: 1000px) {
  .ramp {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ramp__panel {
    min-height: 19rem;
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Narrow: the menu folds away and the chain runs down the page */

/* Nine menu items need more room than the rest of the layout, so the menu folds earlier */

.nav a {
  white-space: nowrap;
}

@media (max-width: 1400px) {
  .nav ul {
    gap: clamp(0.7rem, 1.25vw, 1.2rem);
  }

  .nav a {
    font-size: 1.02rem;
  }
}

@media (max-width: 1140px) {
  .masthead__inner {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    flex-basis: 100%;
  }

  .js .nav:not(.is-open) {
    display: none;
  }

  .nav ul {
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line);
  }

  .nav a {
    padding-block: 0.8rem;
    border-bottom: 1px solid var(--line);
  }

  .nav a[aria-current="page"] {
    border-bottom-color: var(--line);
    color: var(--green-text);
  }
}

@media (max-width: 860px) {
  .hero__inner,
  .split,
  .pair,
  .footer__top,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__inner {
    align-items: start;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 9.2vw, 4.7rem);
  }

  .chain {
    display: block;
    padding-top: 2.5rem;
  }

  .chain ol {
    display: block;
    margin-top: 2rem;
    margin-left: 9px;
    border-left: 4px solid var(--green);
  }

  .chain li {
    display: block;
    padding-left: 1.5rem;
  }

  .chain__button {
    width: 100%;
    padding: 0.8rem 0;
    font-size: 1.45rem;
  }

  .chain__button::before {
    top: 1rem;
    left: calc(-1.5rem - 13px);
  }

  .chain__text {
    padding-bottom: 1.1rem;
    font-size: 1.3rem;
  }

  .audiences,
  .quals {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-nav {
    position: static;
  }

  .about-intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-intro__photo img {
    max-width: 11rem;
  }
}

/* Phone */

@media (max-width: 600px) {
  body {
    font-size: 1.0625rem;
  }

  .lockup {
    gap: 0.6rem;
  }

  .lockup__globe {
    width: 44px;
  }

  .lockup__wordmark {
    width: 150px;
  }

  .tagline {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }

  .ramp,
  .principles {
    grid-template-columns: minmax(0, 1fr);
  }

  .ramp__panel {
    min-height: 0;
  }

  .ticks {
    columns: 1;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form__pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .button-row .button {
    width: 100%;
    text-align: center;
  }
}

/* Articles: two-column reading layout */

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: 4px;
  pointer-events: none;
}

.read-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--teal));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.page-hero--article {
  position: relative;
  overflow: hidden;
}

.page-hero--article .page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero__num {
  position: absolute;
  right: max(var(--gutter), calc((100% - var(--width)) / 2 + var(--gutter)));
  bottom: -0.2em;
  color: transparent;
  font-family: var(--serif);
  font-size: clamp(10rem, 21vw, 19rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  -webkit-text-stroke: 1.5px rgba(124, 194, 20, 0.45);
  pointer-events: none;
  user-select: none;
  animation: num-in 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.page-hero--article:has(.page-hero__num) h1 {
  max-width: 15.5em;
}

@keyframes num-in {
  from {
    opacity: 0;
    transform: translateY(2.5rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.article-section {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 42rem) minmax(16rem, 20rem);
  grid-template-areas:
    "body aside"
    "foot aside";
  justify-content: space-between;
  column-gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.article-layout .article-body {
  grid-area: body;
}

.article-foot {
  grid-area: foot;
}

.article-aside {
  grid-area: aside;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.aside-sticky {
  position: sticky;
  top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.aside__label {
  color: var(--green-text);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Series list */

.series-list {
  padding-top: 1.25rem;
  border-top: 3px solid var(--navy);
}

.series-list__name {
  margin-top: 0.3rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.2;
}

.series-list ol {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}

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

.series-list a {
  position: relative;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.5rem;
  padding: 0.65rem 0.75rem 0.65rem 0.5rem;
  color: var(--navy-soft);
  font-size: 0.95rem;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.series-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--green);
  transform: scaleY(0);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.series-list a:hover {
  background: var(--mist);
  color: var(--navy);
}

.series-list a:hover::before,
.series-list .is-current a::before {
  transform: scaleY(1);
}

.series-list__num {
  color: var(--green-text);
  font-size: 0.85rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
}

.series-list .is-current a {
  background: var(--mist);
  color: var(--navy);
  font-weight: 600;
}

/* Contents list that follows the reader */

.toc ol {
  max-height: calc(100vh - 21rem);
  margin-top: 0.75rem;
  overflow-y: auto;
  border-left: 2px solid var(--line);
  scrollbar-width: thin;
}

.toc a {
  display: block;
  margin-left: -2px;
  padding: 0.35rem 0 0.35rem 1rem;
  border-left: 2px solid transparent;
  color: var(--navy-soft);
  font-size: 0.95rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.toc a:hover {
  color: var(--navy);
}

.toc a.is-active {
  border-left-color: var(--green);
  color: var(--navy);
  font-weight: 600;
}

.read-meter {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.read-meter__bar {
  flex: 1;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line);
}

.read-meter__bar span {
  display: block;
  height: 100%;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.read-meter__text {
  color: var(--navy-soft);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.aside-cta {
  padding: 1.35rem 1.4rem 1.5rem;
  border-top: 4px solid var(--green);
  background: var(--navy);
  color: var(--white);
}

.aside-cta__title {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.25;
}

.aside-cta p + p {
  margin-top: 0.5rem;
  color: #d9e4ee;
  font-size: 0.95rem;
  line-height: 1.45;
}

.aside-cta .button {
  margin-top: 1rem;
}

.article-foot .series-nav {
  max-width: none;
}

/* Article cards: a little lift on hover */

.article-card {
  transition: background-color 0.3s ease;
}

.article-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.article-card:hover {
  background: #f6faf9;
}

.article-card:hover::before {
  transform: scaleX(1);
}

/* Movement as you scroll (only when scripts run and motion is welcome) */

.js .reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.page-hero__inner > *,
.hero__copy > * {
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.page-hero__inner > :nth-child(2),
.hero__copy > :nth-child(2) {
  animation-delay: 0.08s;
}

.page-hero__inner > :nth-child(3),
.hero__copy > :nth-child(3) {
  animation-delay: 0.16s;
}

.page-hero__inner > :nth-child(n + 4),
.hero__copy > :nth-child(n + 4) {
  animation-delay: 0.24s;
}

@media (max-width: 1000px) {
  .article-layout {
    grid-template-columns: minmax(0, 42rem);
    grid-template-areas:
      "body"
      "foot"
      "aside";
    justify-content: start;
  }

  .article-aside {
    margin-top: 3rem;
  }

  .aside-sticky {
    position: static;
  }

  .toc,
  .read-meter {
    display: none;
  }

  .page-hero__num {
    font-size: clamp(7rem, 26vw, 11rem);
    -webkit-text-stroke-color: rgba(124, 194, 20, 0.3);
  }
}

@media (max-width: 600px) {
  .page-hero__num {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .nav,
  .nav-toggle,
  .chain-rule,
  .button-row,
  .form {
    display: none;
  }
}

/* Featured article on the homepage */
.feature { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.feature__photo { position: relative; margin: 0; }
.feature__photo::before { content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; background: var(--mist); border-bottom: 4px solid var(--green); }
.feature__photo img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.feature__kicker { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-text); }
.feature__series { margin-top: 0.35rem; color: var(--navy-soft); }
.feature h2 { margin-top: 0.9rem; font-size: clamp(1.7rem, 2.8vw, 2.35rem); line-height: 1.15; }
.feature__text > p:not([class]) { margin-top: 1rem; max-width: 34em; }
.feature .button-row { margin-top: 1.6rem; align-items: center; }
.feature__all { font-weight: 600; color: var(--navy); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature__photo { margin-right: 1.25rem; } }

/* Home hero with photo: headline on navy at left, photo filling the right half */
.hero--photo { position: relative; overflow: hidden; }
.hero--photo .hero__inner { display: flex; align-items: center; min-height: clamp(560px, 80vh, 760px); }
.hero--photo .hero__text { position: relative; z-index: 1; width: min(36rem, 47%); }
.hero--photo h1 { font-size: clamp(2.1rem, 3.7vw, 3.5rem); }
.hero--photo h1 span { white-space: normal; }
.hero--photo .hero__copy { margin-top: 1.6rem; }
.hero--photo .hero__copy p { max-width: 34em; }
.hero__photo { position: absolute; inset: 0 0 0 auto; width: 50%; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; animation: hero-photo 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__photo::before { content: ""; position: absolute; inset: 0 auto 0 0; z-index: 1; width: 22%; background: linear-gradient(90deg, var(--navy), rgba(11, 45, 80, 0)); }
@keyframes hero-photo { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .hero--photo { display: flex; flex-direction: column; }
  .hero__photo { position: relative; inset: auto; width: 100%; height: clamp(240px, 62vw, 380px); }
  .hero__photo img { object-position: 50% 30%; }
  .hero__photo::before { inset: auto 0 0 0; width: auto; height: 35%; background: linear-gradient(0deg, var(--navy), rgba(11, 45, 80, 0)); }
  .hero--photo .hero__inner { min-height: 0; padding-top: 1.5rem; }
  .hero--photo .hero__text { width: auto; }
  .hero--photo h1 { font-size: clamp(2rem, 8.6vw, 3.4rem); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__photo img { animation: none; }
}
