/*
 * Signal brief. Modules hold the writing; the passage sits behind.
 * The field is a cool marine black. Chapter color is an instrument:
 * vermilion for advocacy, phosphor for technology, brass for ventures.
 * Cards stay square. Index labels use the mono face.
 * Lists are inset rows, never flush to a card edge.
 */

:root {
  color-scheme: dark;
  --paper: #07111a;
  --paper-strong: #0d1c2b;
  --well: #0a1622;
  --ink: #e8f1fa;
  --ink-soft: #93a8bd;
  --line: rgba(168, 198, 230, 0.16);
  --advocacy: #ff5a3c;
  --technology: #3ee0a0;
  --ventures: #f0b429;
  --media: #6ea8ff;
  --signal: #6ea8ff;
  --accent: var(--signal);
  --header-h: calc(3.5rem + env(safe-area-inset-top, 0px));
  /* Content column. Side space is --gutter, so the wrap can grow with it. */
  --measure: 68rem;
  --gutter: clamp(1.15rem, 4.2vw, 2.25rem);
  --inset: clamp(1.15rem, 2.6vw, 1.85rem);
  --gap: clamp(0.9rem, 1.6vw, 1.25rem);
  --gap-tight: clamp(0.65rem, 1.2vw, 0.85rem);
  --section: clamp(2.75rem, 7vw, 5.5rem);
  --sans: "Schibsted Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
  word-spacing: 0.01em;
  color: var(--ink);
  background: var(--paper);
  text-rendering: auto;
  font-kerning: normal;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  overflow-x: clip;
}

body[data-chapter="advocacy"] {
  --accent: var(--advocacy);
}

body[data-chapter="technology"] {
  --accent: var(--technology);
}

body[data-chapter="ventures"] {
  --accent: var(--ventures);
}

body[data-chapter="media"] {
  --accent: var(--media);
}

img {
  max-width: 100%;
  height: auto;
  image-orientation: from-image;
}

button,
input {
  font: inherit;
}

a,
button {
  touch-action: manipulation;
}

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

::selection {
  background: rgba(110, 168, 255, 0.38);
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.skip:focus {
  top: calc(env(safe-area-inset-top, 0px) + 0.4rem);
}

.passage-stage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--paper);
}

.passage {
  display: block;
  width: 100%;
  height: 100%;
}

.scroll-progress {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 30;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.wrap {
  box-sizing: border-box;
  width: min(calc(var(--measure) + 2 * var(--gutter)), 100%);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px))
    max(var(--gutter), env(safe-area-inset-right, 0px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  /* Opaque fill. A backdrop blur restyles every frame while text passes under
     the sticky bar, which is what made scrolling feel sticky. */
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: none;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
  white-space: nowrap;
}

/* The mark tracks the chapter in view, same token as the scroll bar. */
.brand::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  background: var(--accent);
  flex: none;
}

.site-nav {
  display: flex;
  gap: 0.35rem 1rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.2rem 0.1rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a[aria-current="location"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.7rem;
  margin: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.45;
  word-spacing: 0.12em;
}

/* Square index pip, same color as the label. */
.kicker-rule {
  width: 0.42rem;
  height: 0.42rem;
  background: currentColor;
  flex: none;
}

h1,
h2,
.chapter-title,
h3 {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.03em;
  max-width: 100%;
}

h1,
h2,
.chapter-title {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

h1 {
  margin: 0.35rem 0 0;
  font-size: clamp(2.5rem, 8vw, 6.15rem);
}

.chapter-title {
  margin: 0.45rem 0 0;
  font-size: clamp(2.45rem, 5.2vw, 4.2rem);
  max-width: 12ch;
}

h3 {
  margin: 0.3rem 0 0;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.25;
}

p,
li,
figcaption,
.fact-detail,
.proof-detail,
.lede,
.chapter-lede,
.module-lede {
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0;
  word-spacing: 0.01em;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

.lede,
.chapter-lede,
.module-lede {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.55;
}

.lede,
.chapter-lede {
  margin: 0;
  font-size: 1.15rem;
  max-width: 38rem;
}

.lede strong,
.marks strong {
  color: var(--ink);
  font-weight: 600;
}

.hero {
  display: flex;
  flex-direction: column;
  padding-top: clamp(0.85rem, 2.2vh, 1.35rem);
  padding-bottom: clamp(1.25rem, 4vh, 2.75rem);
}

.hero .wrap {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1 0 auto;
  gap: clamp(1.35rem, 4vh, 2.5rem);
}

/*
 * Vimeo frame. Height is a % of width so the box is exactly the file ratio.
 * These films are 16:9 (Vimeo posters 80x45, oembed 426x240).
 * The share-dialog snippet still prints padding-top: 75% (4:3). That box
 * letterboxes a 16:9 file. Do not use 75% here.
 * Border is a shadow so it cannot shrink the iframe off-ratio.
 */
.vimeo {
  position: relative;
  width: 100%;
  height: 0;
  padding: 0;
  padding-top: 56.25%;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px var(--line);
}

.vimeo iframe,
.vimeo img,
.vimeo video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.hero-film {
  margin: 0;
}

/* A hidden film is out of the flex layout, so it cannot leave a gap. */
.hero-film[hidden] {
  display: none;
}

.hero-copy {
  margin-top: 0;
}

.hero .kicker {
  color: var(--ink-soft);
}

.proofs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap-tight);
}

.proof {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 8.5rem;
  padding: var(--inset) var(--inset) calc(var(--inset) + 0.05rem);
  color: inherit;
  text-decoration: none;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-top: 3px solid var(--proof, var(--line));
}

/* Order matches the four hero links: law, lab, company, law. */
.proof:nth-child(1),
.proof:nth-child(4) {
  --proof: var(--advocacy);
}

.proof:nth-child(2) {
  --proof: var(--technology);
}

.proof:nth-child(3) {
  --proof: var(--ventures);
}

.proof-title {
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: 1.05rem;
  line-height: 1.25;
}

.proof-detail {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.proof:hover,
.proof:focus-visible {
  border-color: var(--proof, var(--accent));
}

.proof:hover .proof-title,
.proof:focus-visible .proof-title {
  color: var(--proof, var(--accent));
}

.travel {
  min-height: clamp(16rem, 52svh, 38rem);
  display: flex;
  align-items: flex-end;
  padding-block: clamp(2rem, 5vh, 3.25rem) clamp(1.5rem, 4vh, 2.5rem);
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--paper) 94%, transparent),
    color-mix(in srgb, var(--paper) 18%, transparent) 58%,
    transparent
  );
}

.chapter-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.15rem, 3vw, 3rem);
  align-items: end;
}

[data-chapter="advocacy"] {
  --accent: var(--advocacy);
}

[data-chapter="technology"] {
  --accent: var(--technology);
}

[data-chapter="ventures"] {
  --accent: var(--ventures);
}

[data-chapter="media"] {
  --accent: var(--media);
}

.chapter {
  padding-bottom: var(--section);
}

.stack {
  display: grid;
  gap: var(--gap);
  min-width: 0;
}

.stack > * {
  min-width: 0;
}

.project {
  display: grid;
  gap: var(--gap);
}

.module {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  min-width: 0;
}

.module[open] {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  box-shadow: inset 3px 0 0 var(--accent);
}

.module-summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: var(--inset) calc(var(--inset) + 2rem) var(--inset) var(--inset);
}

.module[open] > .module-summary {
  border-bottom: 1px solid var(--line);
}

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

.module-summary::after {
  content: "";
  position: absolute;
  top: var(--inset);
  right: var(--inset);
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1.5px solid var(--ink-soft);
  border-bottom: 1.5px solid var(--ink-soft);
  transform: rotate(45deg);
  transform-origin: center;
}

.module[open] > .module-summary::after {
  top: calc(var(--inset) + 0.2rem);
  transform: rotate(225deg);
}

.module-summary h3 {
  pointer-events: none;
}

.module-summary:hover {
  background: rgba(168, 198, 230, 0.05);
}

.module-panel {
  padding: clamp(1.15rem, 2.2vw, 1.5rem) var(--inset) var(--inset);
  min-width: 0;
}

.module-panel > p,
.module-copy > p {
  margin: 0 0 1.2rem;
}

.module-panel p a {
  color: var(--ink);
  text-underline-offset: 0.18em;
}

/* Outbound site link. Filled with the chapter color so it reads as an action. */
.module-panel p a.visit {
  display: inline-flex;
  align-items: center;
  margin-top: 0.15rem;
  padding: 0.55rem 0.95rem;
  color: var(--paper);
  background: var(--accent);
  border: 1px solid var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.module-panel p a.visit:hover,
.module-panel p a.visit:focus-visible {
  color: var(--ink);
  background: transparent;
}

.module-split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.85fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

/* Intro copy beside a smaller 16:9 film. The film stays narrower than the hero. */
.module-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(15rem, 0.72fr);
  gap: clamp(1.15rem, 2.6vw, 2rem);
  align-items: center;
  margin: 0 0 1.2rem;
}

/*
 * See Us Now lead. The portrait keeps its own frame so the sneakers and
 * the Capitol stay in view. The film stays a companion beside it. The
 * gallery rail under both is the slot for later photos.
 */
.see-stage {
  display: grid;
  grid-template-columns: minmax(16rem, 0.9fr) minmax(0, 1fr);
  gap: clamp(1.15rem, 2.6vw, 2rem);
  align-items: stretch;
  margin: 0 0 1.35rem;
}

.see-hero {
  margin: 0;
  min-width: 0;
}

.see-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 819 / 1024;
  object-fit: cover;
  object-position: center center;
  border: 1px solid var(--line);
  background: var(--well);
}

.see-aside {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.25rem);
  min-width: 0;
  min-height: 0;
}

.see-aside > p {
  margin: 0;
}

.module-intro > p {
  margin: 0;
}

.module-film {
  margin: 0;
  min-width: 0;
}

/*
 * Press clipping. The card is a reading column, not the full measure,
 * so a portrait page does not fill the screen.
 */
.press {
  min-width: 0;
  max-width: 42.5rem;
  padding: var(--inset);
  background: var(--paper-strong);
  border: 1px solid var(--line);
}

.press h3 {
  max-width: 28ch;
}

.press-frame {
  width: 100%;
  height: min(56svh, 29.25rem);
  margin: 1.1rem 0 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: #f4f1ea;
  border: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}

.press-frame img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

.press-open {
  margin: 0.85rem 0 0;
}

.press-open a {
  color: var(--ink);
  text-underline-offset: 0.18em;
}

/*
 * Article index. Same paper and left rule as a module list.
 * Each row is one outbound piece, with the date in the mono kicker.
 */
.articles {
  list-style: none;
  display: grid;
  gap: var(--gap);
  margin: 0;
  padding: 0;
  counter-reset: none;
}

.articles > li {
  min-width: 0;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-left: 2px solid color-mix(in srgb, var(--accent) 55%, var(--line));
}

.article-link {
  display: block;
  padding: var(--inset);
  color: inherit;
  text-decoration: none;
}

.article-link h3 {
  max-width: 28ch;
}

.article-go {
  margin: 0.85rem 0 0;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.article-also {
  margin: 0;
  padding: 0 var(--inset) var(--inset);
}

.article-also a {
  color: var(--ink-soft);
  text-underline-offset: 0.18em;
}

.article-link:hover h3,
.article-also a:hover {
  color: var(--ink);
}

.module-copy,
.module-side {
  min-width: 0;
}

.module-side {
  padding: 0.1rem 0 0 var(--inset);
  background: none;
  border: 0;
  border-left: 1px solid var(--line);
}

.marks {
  list-style: none;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
}

.marks li {
  margin: 0;
  padding: 1.05rem 0.15rem 1.05rem 1.15rem;
  color: var(--ink-soft);
  line-height: 1.6;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid color-mix(in srgb, var(--accent) 55%, var(--line));
  transition: color 160ms ease, border-color 160ms ease;
}

.marks li:first-child {
  padding-top: 0.2rem;
}

.marks li:last-child {
  border-bottom: none;
  padding-bottom: 0.15rem;
}

.marks li:hover {
  color: var(--ink);
  border-left-color: var(--accent);
}

.marks li::before {
  content: none;
}

.fact-title {
  margin: 0.85rem 0 0.2rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.fact-title:first-of-type,
.module-side .fact-title:first-of-type {
  margin-top: 0.55rem;
}

.fact-detail {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
}

.module-side .plate {
  margin-top: 1rem;
}

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
  gap: clamp(1.15rem, 2.8vw, 2.25rem);
  align-items: center;
}

.showcase--flip .showcase-copy {
  order: 2;
}

.showcase-copy h3 {
  margin-top: 0.45rem;
}

.section-label {
  margin: 0.15rem 0 var(--gap-tight);
}

.builds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-tight);
}

.module--compact .module-summary {
  padding-bottom: 1.25rem;
}

.module--compact .plate {
  margin: 0 0 0.9rem;
}

.module--compact .module-panel p {
  margin: 0;
  color: var(--ink-soft);
}

.module--compact .module-panel a {
  color: var(--ink);
  text-underline-offset: 0.18em;
}

.plate {
  margin: 0;
  min-width: 0;
}

.plate--lead {
  margin: 0 0 clamp(1.1rem, 2.2vw, 1.4rem);
}

.plate--lead .plate-frame {
  aspect-ratio: 2.15 / 1;
}

.fly {
  min-height: 72svh;
}

/* A still portrait does not need the long scrub runway a sequence uses. */
.fly:has(.plate--portrait),
.fly:has(.plate--ecovision) {
  min-height: 0;
}

.fly .plate {
  position: sticky;
  top: calc(var(--header-h) + 0.75rem);
}

.plate-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--well);
  border: 1px solid var(--line);
  contain: layout paint;
}

.plate-shot {
  background: var(--well);
}

/* The legislation still is a link out. The caption names the page. */
.plate-link {
  color: inherit;
  text-decoration: none;
}

.plate-link:hover figcaption,
.plate-link:focus-visible figcaption {
  color: var(--accent);
}

.plate-link:hover .plate-frame,
.plate-link:focus-visible .plate-frame {
  border-color: var(--accent);
}

.plate--wide .plate-frame {
  aspect-ratio: 2.2 / 1;
}

/*
 * Meeting stills are portrait files. A 16:9 bed would crop the
 * handshake and the people standing behind it.
 */
.plate--portrait .plate-frame {
  aspect-ratio: 2 / 3;
}

/*
 * Full width under the copy. A portrait in the side column left the
 * rest of the card empty. A 16:9 crop fills that width and keeps the banner.
 */
.company-booth {
  margin-top: 1.15rem;
}

.company-booth .plate-frame {
  aspect-ratio: 16 / 9;
}

.company-booth .plate-shot {
  object-position: center 42%;
}

/* Charitybuzz still is a 4:3 office group. A 16:9 bed cuts the wall mark. */
.plate--four-three .plate-frame {
  aspect-ratio: 4 / 3;
}

/* EcoVision working-session still. Native 847×1024 so the table stays in. */
.plate--ecovision .plate-frame {
  aspect-ratio: 847 / 1024;
}

/* Demo sits under the headset still, so it inherits that column's width. */
.ecovision-film {
  display: grid;
  gap: 0.7rem;
  width: 100%;
  margin-top: 1.15rem;
}

.plate-frame canvas,
.plate-frame video,
.plate-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.plate figcaption {
  margin-top: 0.65rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
  padding-inline: 0.1rem;
}

.rail-block {
  margin-top: clamp(1.2rem, 2.4vw, 1.6rem);
  min-width: 0;
  max-width: 100%;
}

.rail {
  display: flex;
  gap: var(--gap-tight);
  width: 100%;
  max-width: 100%;
  margin: 0.9rem 0 0;
  padding: 0 0 0.4rem;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.15rem;
  scrollbar-color: rgba(168, 198, 230, 0.35) transparent;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}

.rail li {
  flex: 0 0 min(78%, 20rem);
  scroll-snap-align: start;
}

.rail-shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  background: none;
  cursor: zoom-in;
}

.rail-shot:hover,
.rail-shot:focus-visible {
  border-color: var(--accent);
}

.rail-shot img {
  display: block;
  width: 100%;
  height: 14.5rem;
  object-fit: cover;
  background: var(--well);
}

.site-footer {
  padding: 0.5rem 0 calc(var(--section) * 0.55 + env(safe-area-inset-bottom, 0px));
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--gap);
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.signature {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.signature-meta {
  margin: 0;
  color: var(--ink-soft);
}

.lightbox {
  width: min(92vw, 1080px);
  max-width: calc(100vw - 1.25rem);
  max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 1rem);
  margin: auto;
  padding: 0.75rem 0.75rem max(1rem, env(safe-area-inset-bottom, 0px));
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.lightbox::backdrop {
  background: rgba(4, 10, 18, 0.88);
}

.lightbox-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0 0 0.55rem auto;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.lightbox img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 7rem);
  height: auto;
  margin-inline: auto;
  object-fit: contain;
}

.lightbox-caption {
  margin: 0.7rem 0.15rem 0.15rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  word-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.hero,
.travel,
.chapter,
article,
details,
#legislation,
#who,
#run-the-money,
#media {
  scroll-margin-top: calc(var(--header-h) + 0.6rem);
}

@media (max-width: 1100px) {
  .proofs {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .chapter-head,
  .showcase,
  .showcase--flip,
  .module-split,
  .module-intro,
  .see-stage,
  .builds {
    grid-template-columns: minmax(0, 1fr);
  }

  .showcase--flip .showcase-copy {
    order: 0;
  }

  .showcase--flip .fly {
    order: 1;
  }

  .chapter-title {
    max-width: none;
  }

  .module-side {
    padding: 1.15rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* Four section links need their own row once the brand and the nav share a phone width. */
@media (max-width: 800px) {
  .header-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  .site-nav {
    gap: 0.15rem 0.7rem;
  }

  .site-nav a {
    font-size: 0.84rem;
  }

  .brand {
    font-size: 0.98rem;
  }

  .hero {
    padding-top: 0.85rem;
    padding-bottom: 0.95rem;
  }

  .hero-copy {
    margin-top: 0;
  }

  .proof {
    min-height: 0;
  }

  .proof-title {
    font-size: 1rem;
  }

  .chapter-title {
    font-size: clamp(2.15rem, 11vw, 2.8rem);
  }

  .fly {
    min-height: 0;
  }

  .travel {
    min-height: clamp(15rem, 44svh, 26rem);
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .lede,
  .chapter-lede {
    font-size: 1.05rem;
  }

  .marks li {
    padding: 0.95rem 0.1rem 0.95rem 1rem;
  }

  .rail-shot img {
    height: 12.5rem;
  }
}

@media (max-width: 360px) {
  .header-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .proofs {
    grid-template-columns: 1fr;
  }
}

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

  .travel {
    min-height: 0;
    padding-block: 2.5rem 1.25rem;
    background: transparent;
  }

  .fly {
    min-height: 0;
  }

  .fly .plate {
    position: static;
  }
}

@media (forced-colors: active) {
  .passage,
  .scroll-progress {
    display: none;
  }
}

@media print {
  .passage,
  .scroll-progress,
  .site-header,
  .travel,
  .vimeo,
  .press-frame {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .module,
  .showcase {
    break-inside: avoid;
  }
}
