/* ==========================================================================
   SHARED LAYOUT
   The structure of the page, used by every look. Colours, fonts and sizes
   come from tokens.css, so a look can restyle the page without touching this.
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--color-page);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 500;
  line-height: var(--leading-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, blockquote, figure { margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
strong { font-weight: 700; }

.display {
  font-family: var(--font-display);
  font-size: var(--text-display);
  line-height: var(--leading-tight);
}
.center { text-align: center; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 5;
}
/* The blur sits on a layer of its own so the open menu can blur the page too */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: transparent;   /* blur only, no tint, so it suits every look */
  -webkit-backdrop-filter: blur(var(--nav-blur));
  backdrop-filter: blur(var(--nav-blur));
  transition: background 0.2s;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md) var(--space-lg);
  max-width: var(--page-max);
  margin-inline: auto;
  padding: var(--space-md) var(--space-nav-x);
}
.brand { display: flex; align-items: center; gap: var(--space-sm); line-height: 1; }
.brand:hover { text-decoration: none; }
.brand-name { font-family: var(--font-display); font-size: var(--text-brand); white-space: nowrap; }
.brand-role { font-size: clamp(16px, 1.389vw, 20px); font-weight: 400; white-space: pre; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(20px, 2.5vw, 40px); padding-top: 11px; }
.nav-group { display: contents; }
.nav-toggle { display: none; }

/* Nav links are plain text. js/page.js splits each one into letters, and on hover
   the letters roll up one after another while a copy of the word rolls in from
   below (the copy is a text-shadow, so it is always the text's own colour). */
.nav-link {
  position: relative;
  flex: none;
  padding: 12px 0;
  font-size: var(--text-nav);
  line-height: 1;
  white-space: nowrap;
}
.nav-link:hover { text-decoration: none; }
.nav-roll {
  display: inline-flex;
  overflow: hidden;
  line-height: 1.3;
  margin-block: -0.15em;   /* keeps the link the same height as plain text */
  white-space: pre;
}
.nav-roll > span {
  display: inline-block;
  text-shadow: 0 1.3em 0 currentColor;
  transition: translate 0.5s cubic-bezier(0.625, 0.05, 0, 1) calc(var(--i) * 0.02s);
}
.nav-link:hover .nav-roll > span,
.nav-link:focus-visible .nav-roll > span { translate: 0 -1.3em; }

/* The look you're on, and hover for people who turn animation off: a thin underline */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1.5px;
  background: currentColor;
  scale: 0 1;
  transform-origin: left;
  transition: scale 0.35s cubic-bezier(0.625, 0.05, 0, 1);
}
.nav-link[aria-current="true"]::after { scale: 1 1; }
@media (prefers-reduced-motion: reduce) {
  .nav-roll > span { transition: none; }
  .nav-link:hover .nav-roll > span,
  .nav-link:focus-visible .nav-roll > span { translate: none; }
  .nav-link::after { transition: none; }
  .nav-link:hover::after { scale: 1 1; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Page column */
.content {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--space-page);
  overflow: clip;
}

/* Every section is at least one screen tall below the nav, with its content centred */
main > section {
  min-height: var(--page-height);
  padding-block: var(--space-section);
  scroll-margin-top: var(--nav-height);
}
main > section.split { align-content: center; }
main > section:not(.split) { justify-content: center; }

/* Two columns: a big heading on the left, details on the right */
.split {
  --col: 36.859%;   /* 460px of the 1248px column in Figma */
  --gap: 64px;
  display: grid;
  grid-template-columns: minmax(0, var(--col)) minmax(0, 1fr);
  column-gap: var(--gap);
  align-items: start;
}
.split--wide-gap { --col: 42.067%; --gap: 60px; }   /* 525px */

/* Hero */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-xl);
}
.hero h1 { max-width: 62.821%; font-size: var(--text-display); line-height: 1; }
.hero-tags {
  max-width: calc(100% - min(400px, 32.05%) - var(--space-lg));   /* stops short of the photo */
  font-size: var(--text-md);
  font-weight: 300;
  line-height: var(--leading-tight);
  white-space: pre-wrap;
  text-wrap: balance;
}
.hero-photo {
  position: absolute;
  top: calc(50% - 6.5px);
  right: -4px;
  translate: 0 -50%;
  width: min(400px, 32.05%);
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border-radius: 50%;
}
.hero-photo img {
  position: absolute;
  top: -40.75%;
  left: -11%;
  width: 113.75%;
  height: auto;
  max-width: none;
}

.greeting { display: flex; align-items: center; }
.greeting p { width: 100%; }

/* "Pleased to meet you" holds at the centre of the screen while it fades on and off.
   The numbers are shares of one screen, and match the timing in js/sections.js. */
html.pages .greeting {
  display: block;
  height: calc(var(--page-height) * 2.1);
  margin-top: calc(var(--page-height) * -0.5);
  margin-bottom: calc(var(--page-height) * -0.4);
  padding-block: 0;
  pointer-events: none;
}
html.pages .greeting p {
  position: sticky;
  top: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--page-height);
}

/* Small heading */
.step-title {
  display: flex;
  gap: 12px;
  font-size: var(--text-sm);
  line-height: var(--leading-text);
  white-space: nowrap;
}
.step-title span { font-family: var(--font-display); }
.step-title img { flex: none; }
.step-title--icon { align-items: center; font-size: var(--text-step); }
.step { display: flex; flex-direction: column; gap: var(--space-sm); }

/* What I do. The three columns share rows, so their lists always start level. */
.what { display: flex; flex-direction: column; gap: var(--space-2xl); }
.what-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-sm) 36px; align-items: start; }
.what-grid .step { display: grid; grid-row: span 3; grid-template-rows: subgrid; gap: inherit; }
.step-lede { min-height: 80px; }
.bullets { list-style: disc; padding-inline-start: 30px; }
.bullets li { margin-bottom: var(--space-lg); text-wrap: pretty; }
.bullets li:last-child { margin-bottom: 0; }

/* Accordion: one click opens all three columns together */
.accordion-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.accordion-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
.accordion-toggle img { transition: rotate 0.4s ease, translate 0.2s ease; }
.accordion-toggle:hover img { translate: 0 2px; }
.is-open .accordion-toggle img { rotate: 180deg; }
.is-open .accordion-toggle:hover img { translate: 0 -2px; }
.accordion-panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.4s ease, opacity 0.3s ease; }
.accordion-panel > * { min-height: 0; overflow: hidden; }
html.js .step-lede { cursor: pointer; }
html.js [data-accordion]:not(.is-open) .accordion-panel {
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows 0.4s ease, opacity 0.3s ease, visibility 0s linear 0.4s;
}

/* How I decide */
.decide-left { display: flex; flex-direction: column; align-items: center; gap: var(--space-2xl); }
.decide-left h2 { align-self: stretch; }
.decide-sub { font-family: var(--font-display); font-size: var(--text-md); line-height: var(--leading-tight); text-align: center; }
.decide-right { display: flex; flex-direction: column; gap: var(--space-lg); }
.decide-right h3 { font-size: var(--text-xl); line-height: var(--leading-tight); text-align: center; }
.decide-notes { font-family: var(--font-display); font-size: var(--text-sm); line-height: var(--leading-tight); text-align: center; white-space: pre-wrap; }
.decide-body { line-height: normal; }
.decide-body p + p, .decide-body ul + p, .decide-body p + ul { margin-top: var(--space-md); }
.decide-body ul { list-style: disc; padding-inline-start: 1.5em; }
.decide-body li + li { margin-top: var(--space-xs); }

/* Watch Demo, under the Product Kung Fu subhead */
.demo { display: flex; flex-direction: column; align-items: center; gap: var(--space-md); width: fit-content; }
.demo:hover { text-decoration: none; }
.demo-thumb { position: relative; display: block; width: 157px; aspect-ratio: 157 / 174; overflow: hidden; border-radius: 16px; background: #ffffff; }
.demo-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.demo-thumb .glass-button { position: absolute; top: 50%; left: 50%; width: 70px; height: 70px; translate: -50% -50%; }
.demo-label { display: flex; gap: var(--space-xs); font-family: var(--font-display); font-size: var(--text-caption); line-height: normal; }
.demo-time { font-family: var(--font-body); font-weight: 500; }
.demo:focus-visible { outline-offset: 6px; border-radius: 18px; }

/* Demo video, shown on top of the page and cropped around the figure, which stays
   between 38% and 69% across the 16:9 frame: 4:5 on wide screens, 9:16 on tall ones. */
.video-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  overflow: hidden;
}
.video-dialog[open] { display: grid; place-items: center; }
.video-dialog::backdrop {
  background: rgba(233, 237, 243, 0.55);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
html:has(.video-dialog[open]) { overflow: hidden; }
.video-frame {
  position: relative;
  height: min(84dvh, 92vw * 5 / 4);
  aspect-ratio: 4 / 5;
  background: #ffffff;
  box-shadow: 0 30px 80px -30px rgba(17, 17, 20, 0.45);
}
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; cursor: pointer; }
.video-play { position: absolute; top: 50%; left: 50%; translate: -50% -50%; }
.video-dialog.is-playing .video-play { opacity: 0; pointer-events: none; }
.video-close { position: fixed; top: 16px; right: 16px; }
@media (orientation: portrait) {
  .video-frame { height: min(84dvh, 92vw * 16 / 9); aspect-ratio: 9 / 16; }
}

/* How I build */
.build-steps { display: flex; flex-direction: column; gap: var(--space-lg); text-wrap: balance; }

/* How I lead */
.lead { display: flex; flex-direction: column; gap: var(--space-3xl); }
.lead > h2 { margin-bottom: -0.128em; }
.lead-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3xl); align-items: start; }
.lead-item { display: flex; flex-direction: column; gap: var(--space-lg); }
.lead-arrow { display: flex; align-items: center; justify-content: center; height: 0.9em; font-size: var(--text-xxl); }
/* Drawn from the Figma arrows: the web version of Cal Sans has no left or right arrow.
   --w is each arrow's width in Figma, where the type size is 64px. */
.lead-arrow img { width: calc(var(--w) / 64 * 1em); height: auto; }
.lead-item h3 { font-size: var(--text-lg); line-height: var(--leading-snug); text-align: center; text-wrap: balance; }
.lead-item h3 + p { text-wrap: balance; }
.team-sport { font-family: var(--font-display); font-size: var(--text-xxl); line-height: var(--leading-tight); text-align: center; }

/* Who I've done it for */
.clients { --col: 42.067%; --gap: 64px; }   /* 525px */
.clients h2 { max-width: 83%; }   /* 436px, from Figma */
.clients-right { display: flex; flex-direction: column; gap: 12px; }
.clients-intro { display: flex; flex-direction: column; gap: var(--space-lg); }
.clients-intro h3 { font-size: var(--text-sm); line-height: var(--leading-text); }
.clients-copy { line-height: normal; }
.clients-copy p + p { margin-top: var(--space-md); }
.brands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); font-size: var(--text-fine); line-height: var(--leading-list); }
.brands ul { list-style: none; }

/* Results: big numbers, two by two (one column on phones) */
.results-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xl) var(--space-xl); }
.result { display: flex; flex-direction: column; gap: var(--space-xs); }
.result-number { font-family: var(--font-display); font-size: var(--text-xxl); line-height: var(--leading-tight); white-space: nowrap; }
.result-label { font-size: var(--text-body); font-weight: 700; line-height: var(--leading-text); }
.result-source { font-size: var(--text-caption); line-height: normal; opacity: 0.7; }
.result:nth-child(1) .result-number { color: var(--color-pink); }
.result:nth-child(2) .result-number { color: var(--color-violet); }
.result:nth-child(3) .result-number { color: var(--color-sky); }
.result:nth-child(4) .result-number { color: var(--color-green); }

/* Deep dives */
.dive-list { display: flex; flex-direction: column; gap: 51px; }
.dive { display: block; width: fit-content; }
.dive:hover { text-decoration: none; }
.dive-title { display: flex; align-items: center; gap: 20px; font-family: var(--font-display); font-size: var(--text-xl); line-height: normal; }
.dive-arrow { display: flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 19.13px; opacity: 0.5; transform: scaleX(-1); transition: translate 0.2s; }
.dive:hover .dive-arrow { opacity: 1; translate: 4px 0; }
.dive-sub { display: block; font-size: var(--text-body); line-height: var(--leading-tight); }
.dive--pink .dive-sub { color: var(--color-pink); }
.dive--violet .dive-sub { color: var(--color-violet); }
.dive--sky .dive-sub { color: var(--color-sky); }
.dive--green .dive-sub { color: var(--color-green); }
.dive--orange .dive-sub { color: var(--color-orange); }

/* Quotes */
.praise { display: flex; flex-direction: column; gap: var(--space-3xl); }
.quotes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3xl); align-items: start; }
.quote { display: flex; flex-direction: column; gap: var(--space-md); }
.quote--wide-gap figcaption { margin-top: var(--space-xl); }   /* 48px in all, from Figma */
.quote blockquote { font-size: var(--text-quote); line-height: var(--leading-quote); }
.quote blockquote p + p { margin-top: var(--space-md); }
.quote figcaption { font-size: var(--text-caption); line-height: normal; white-space: pre-wrap; }

/* Glass buttons: the video play button, the listen buttons and the video's close button */
.glass-button {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.18));
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  backdrop-filter: blur(14px) saturate(1.6);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9), inset 0 -1px 2px rgba(0, 0, 0, 0.06), 0 6px 18px -6px rgba(17, 17, 20, 0.35);
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.2s, scale 0.2s;
}
.glass-button svg { display: block; width: 14px; height: 14px; fill: currentColor; }
.glass-button--large { width: 72px; height: 72px; }
.glass-button--large svg { width: 22px; height: 22px; margin-left: 3px; }   /* nudge the triangle to look centred */
:is(.glass-button, .listen, .demo):hover :is(.glass-button, .listen-icon),
.glass-button:hover { background: linear-gradient(to bottom, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.35)); scale: 1.05; }
.glass-button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Listen button at the top of each quote (added by js/page.js) */
.listen {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: fit-content;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.listen-icon { width: 36px; height: 36px; }
.listen[aria-pressed="true"] .listen-icon { background: rgba(255, 255, 255, 0.62); }
.listen .icon-pause, .listen[aria-pressed="true"] .icon-play { display: none; }
.listen[aria-pressed="true"] .icon-pause { display: block; }
.listen-text { display: flex; flex-direction: column; font-size: var(--text-fine); line-height: 1.3; }
.listen-title { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Song versions under each "How I lead" column. They line up along the bottom. */
.lead-grid { align-items: stretch; }
.song {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: auto;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
html:not(.js) .song { display: none; }
.song-cover { position: relative; flex: none; width: 88px; aspect-ratio: 1; }
.song-cover img { display: block; width: 100%; height: 100%; border-radius: 8px; box-shadow: 0 10px 24px -12px rgba(17, 17, 20, 0.55); }
.song-cover .glass-button { width: 36px; height: 36px; position: absolute; top: 50%; left: 50%; translate: -50% -50%; }
.song:hover .song-cover .glass-button { background: linear-gradient(to bottom, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.35)); scale: 1.05; }
.song[aria-pressed="true"] .song-cover .glass-button { background: rgba(255, 255, 255, 0.62); }
.song .icon-pause, .song[aria-pressed="true"] .icon-play { display: none; }
.song[aria-pressed="true"] .icon-pause { display: block; }
.song-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.song-label { font-family: var(--font-display); font-size: 18px; line-height: var(--leading-snug); white-space: nowrap; }
.song-label [data-time] { margin-left: 4px; font-family: var(--font-body); font-size: var(--text-caption); font-weight: 600; font-variant-numeric: tabular-nums; opacity: 0.6; }
.song-title { font-size: var(--text-caption); }
.song:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 10px; }
.listen:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 18px; }

/* Contact */
.contact { display: flex; flex-direction: column; gap: var(--space-lg); }
.contact h2 { max-width: 968px; }
.contact-grid { display: flex; flex-wrap: wrap; gap: var(--space-lg) var(--space-2xl); line-height: normal; }
.contact-col { display: flex; flex-direction: column; gap: 12px; }
.contact-row { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.contact-label { font-weight: 600; }
.contact .link { color: var(--color-link); }
.contact-email { align-items: center; gap: 12px; }
.email-button {
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: var(--color-text);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}
.email-button:hover { text-decoration: none; background: #33333a; }
.copy-email {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  cursor: pointer;
}
.copy-email:hover { background: rgba(0, 0, 0, 0.06); }
.copy-email:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.copy-email svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.copy-email .icon-done, .copy-email.is-copied .icon-copy { display: none; }
.copy-email.is-copied .icon-done { display: block; }
/* Heard by screen readers only; sighted visitors just see the check mark */
.copy-note { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Copyright */
.footer {
  max-width: var(--page-max);
  margin-inline: auto;
  padding: var(--space-md) var(--space-page) var(--space-lg);
  font-size: var(--text-caption);
  line-height: normal;
}
main > section.contact { min-height: calc(var(--page-height) - var(--footer-height)); }

/* Hamburger menu, used whenever the nav would no longer fit on one line */
@media (max-width: 1200px) {
  .hero-tags { line-height: var(--leading-snug); }   /* it can wrap to two lines here */
  html.js .nav-inner { padding-block: 12px; }
  /* Menu and close button: just the icon, no background */
  html.js .nav-toggle {
    position: relative;
    display: block;
    flex: none;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: none;
    color: inherit;
    cursor: pointer;
  }
  .nav-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 0; }
  .nav-toggle span {
    position: absolute;
    left: 11px;
    right: 11px;
    top: 21px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transition: translate 0.2s ease, rotate 0.2s ease;
  }
  .nav-toggle span:first-child { translate: 0 -4px; }
  .nav-toggle span:last-child { translate: 0 4px; }
  .nav-toggle[aria-expanded="true"] span:first-child { translate: 0; rotate: 45deg; }
  .nav-toggle[aria-expanded="true"] span:last-child { translate: 0; rotate: -45deg; }

  /* The open menu: one plain list, the three looks above a divider and the pages below */
  html.js .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    max-height: calc(100svh - var(--nav-height));
    overflow-y: auto;
    padding: var(--space-xs) var(--space-nav-x) var(--space-lg);
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(var(--nav-blur));
    backdrop-filter: blur(var(--nav-blur));
    opacity: 0;
    visibility: hidden;
    translate: 0 -8px;
    transition: opacity 0.2s ease, translate 0.2s ease, visibility 0s linear 0.2s;
  }
  html.js .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    translate: 0;
    transition: opacity 0.2s ease, translate 0.2s ease;
  }
  html.js .nav:has(.is-open)::before { background: rgba(255, 255, 255, 0.72); }
  html.js .nav-group {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--space-xs);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid rgba(0, 0, 0, 0.14);
  }
  html.js .nav-links .nav-link {
    padding: 12px 0;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    line-height: var(--leading-snug);
  }
  /* No letter roll in the menu: plain text, underlined on hover */
  html.js .nav-links .nav-roll { display: inline; margin: 0; line-height: inherit; }
  html.js .nav-links .nav-roll > span { display: inline; text-shadow: none; translate: none; }
  html.js .nav-links .nav-link::after { content: none; }
  html.js .nav-links .nav-link:hover { text-decoration: underline; text-underline-offset: 0.2em; }
  html.js .nav-links .nav-link[aria-current="true"] { font-weight: 700; }   /* the look you're on */
}

/* Tablet */
@media (max-width: 1040px) {
  .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone */
@media (max-width: 820px) {
  /* Every title and subhead lines up on the left on phones */
  .center, .decide-right h3, .decide-sub, .decide-notes, .lead-item h3, .team-sport { text-align: left; }
  .decide-left, .demo { align-items: flex-start; }
  /* Lead columns: the arrow sits to the left of its title, on one line */
  .results-list { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .result-number { font-size: 64px; }
  .lead-item { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--space-lg) var(--space-md); }
  .lead-item > :not(.lead-arrow, h3) { grid-column: 1 / -1; }
  .lead-item h3 br { display: none; }
  .lead-arrow { width: calc(79 / 64 * 1em); height: auto; }   /* as wide as the widest arrow, so the titles line up */
  html.pages .greeting p { justify-content: flex-start; }
  .split, .what-grid, .lead-grid { grid-template-columns: minmax(0, 1fr); }
  .split { row-gap: var(--space-xl); }
  .what-grid, .lead-grid { gap: var(--space-2xl); }
  .what-grid .step { display: flex; gap: var(--space-sm); }
  .step-lede { min-height: 0; }
  .hero h1, .hero-tags { max-width: none; }
  .hero-photo { position: relative; top: 0; right: 0; translate: none; order: -1; width: min(240px, 60%); }
  .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brands ul:last-child { grid-column: 1 / -1; }
  .quotes { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
  .quote, .quote--wide-gap { gap: var(--space-md); }
  .dive-title { flex-wrap: nowrap; }
  .step-title { white-space: normal; }
}

/* Small phones: the name and role stack, so the menu button always fits */
@media (max-width: 480px) {
  .brand { flex-direction: column; align-items: flex-start; gap: 3px; }
  .brand-bar { display: none; }
  .brand-role { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dive-arrow, .accordion-toggle img, .accordion-panel, .nav-toggle span, .nav-links { transition: none !important; }
}
