/* stevenmerickson.com: Matchday x Passport
   Headers: Big Shoulders Display. Body: Inter. Labels: Space Mono.
   Palette: cobalt #0047AB, ink #1E212E, white. */

:root {
  --brand: #0047ab;
  --brand-dark: #003580;
  --brand-tint: #8fb3ff;
  --brand-soft: #c7d7f2;
  --ink: #1e212e;
  --ink-2: #2f3446;
  --body: #3a3f52;
  --muted: #4a5068;
  --line: #d5d9e4;
  --surface: #eef1f7;
  --white: #ffffff;
  --on-brand: #e3ebf8;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;
  --max: 1200px;
  --narrow: 740px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--ink);
}
a:hover {
  color: var(--brand);
}
:focus-visible {
  outline: 3px solid var(--brand-tint);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--white);
  color: var(--brand);
  padding: 10px 16px;
  z-index: 10;
  font-weight: 700;
}
.skip-link:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow {
  max-width: calc(var(--narrow) + 48px);
}

/* Type helpers */
.display {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.005em;
}
.display--xl {
  font-size: clamp(56px, 9vw, 96px);
  line-height: 0.85;
}
.display--xxl {
  font-size: clamp(64px, 11vw, 128px);
  line-height: 0.85;
}
.label {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}
.label--brand {
  color: var(--brand);
}
.label--muted {
  color: var(--muted);
}
.label--light {
  color: var(--brand-soft);
}

/* Header */
.site-header {
  background: var(--brand);
  color: var(--white);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  padding-bottom: 18px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.25);
}
.site-logo {
  display: flex;
  align-items: center;
  flex: none;
  color: var(--white);
  text-decoration: none;
}
.site-logo img {
  height: 40px;
  width: auto;
}
.site-logo:hover {
  color: var(--white);
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 26px;
}
.site-nav a {
  color: var(--white);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 0;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--white);
  box-shadow: inset 0 -3px 0 var(--white);
}
.site-nav .site-nav__resume {
  background: var(--white);
  color: var(--brand);
  padding: 4px 12px;
}
.site-nav .site-nav__resume:hover {
  background: var(--ink);
  color: var(--white);
  box-shadow: none;
}

/* Footer */
.site-footer {
  background: var(--brand);
  color: var(--white);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 48px;
  padding-bottom: 48px;
}
.site-footer__title {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 56px;
  line-height: 0.9;
  text-transform: uppercase;
}
.site-footer a {
  color: var(--white);
}
.site-footer__contact a {
  font-size: 18px;
}
.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.site-footer__social a {
  display: inline-flex;
  padding: 4px;
  border-radius: 6px;
  transition: opacity 0.15s;
}
.site-footer__social a:hover {
  opacity: 0.75;
}
.social-icon {
  width: 26px;
  height: 26px;
  display: block;
}

/* Hero */
.hero {
  background: var(--brand);
  color: var(--white);
}
.hero__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 56px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 88px;
}
.hero__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero__tag {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--white);
  padding: 4px 10px;
}
.hero__tag--dark {
  background: var(--ink);
  border-color: var(--ink);
}
.hero__name {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(64px, 10vw, 136px);
  line-height: 0.82;
  text-transform: uppercase;
}
.hero__intro {
  margin: 0;
  font-size: 20px;
  text-wrap: pretty;
  line-height: 1.6;
  max-width: 520px;
  color: var(--on-brand);
}

/* About the holder card */
.holder {
  background: var(--white);
  color: var(--ink);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  transform: rotate(-2deg);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.holder__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 2px dashed #c9cedb;
  padding-bottom: 14px;
}
.holder__heading {
  font-family: var(--display);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}
.holder__number {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.holder__main {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
}
.holder__photo {
  width: 150px;
  height: 190px;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
}
.holder__fields {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  align-content: start;
}
.holder__field--wide {
  grid-column: span 2;
}
.holder__field dt {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
}
.holder__field dd {
  margin: 2px 0 0;
  font-weight: 600;
}
.holder__field .holder__name {
  font-family: var(--display);
  font-weight: 900;
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
}
.holder__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.badge {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 10px;
}
.badge--solid {
  color: var(--brand);
  border: 2px solid var(--brand);
  border-radius: 6px;
  transform: rotate(3deg);
}
.badge--round {
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  transform: rotate(-4deg);
}
.badge--dashed {
  color: var(--brand);
  border: 2px dashed var(--brand);
  border-radius: 6px;
  transform: rotate(2deg);
}
.badge--icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.badge__icon {
  flex: none;
  display: block;
}

/* Ticker */
.ticker {
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.ticker__track {
  display: flex;
  width: max-content;
  padding-top: 14px;
  padding-bottom: 14px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ticker__group {
  display: flex;
  gap: 28px;
  padding-right: 28px;
  white-space: nowrap;
}
.ticker__sep {
  color: var(--brand-tint);
}
/* Slow, continuous scroll. Pauses on hover, and stays still for reduced motion. */
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: no-preference) {
  .ticker__track { animation: ticker-scroll 65s linear infinite; }
  .ticker:hover .ticker__track { animation-play-state: paused; }
  .ticker--off .ticker__track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track { padding-left: 24px; }
}
/* "Turn this annoying ticker off" switch, right-aligned under the ticker (_includes/ticker.html).
   Hidden when reduced motion is on, because the ticker already stands still. */
.ticker-toggle {
  display: flex;
  justify-content: flex-end;
  padding-top: 10px;
}
.ticker-toggle__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border: 0;
  background: none;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}
.ticker-toggle__button:hover {
  color: var(--ink);
}
.ticker-toggle__button:focus-visible {
  outline: 2px solid var(--brand-tint);
  outline-offset: 3px;
}
.ticker-toggle__switch {
  position: relative;
  flex: none;
  width: 30px;
  height: 16px;
  border-radius: 999px;
  background: var(--line);
  transition: background-color 0.15s ease;
}
.ticker-toggle__switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  transition: translate 0.15s ease;
}
.ticker-toggle__button[aria-checked="true"] .ticker-toggle__switch {
  background: var(--brand);
}
.ticker-toggle__button[aria-checked="true"] .ticker-toggle__switch::after {
  translate: 14px 0;
}
@media (prefers-reduced-motion: reduce) {
  .ticker-toggle {
    display: none;
  }
}

/* Sections */
.section {
  padding-top: 96px;
  padding-bottom: 96px;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 16px;
  border-bottom: 6px solid var(--ink);
  padding-bottom: 12px;
  margin-bottom: 8px;
}
.section-head__aside {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}
.section-head--light {
  border-color: var(--white);
  margin-bottom: 40px;
}
.section-head--light .section-head__aside {
  color: var(--brand-tint);
}
.more-link {
  display: inline-block;
  padding-top: 20px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}
.more-link--light {
  color: var(--white);
  padding-top: 32px;
}
.empty-note {
  margin: 24px 0 0;
  padding: 32px;
  background: var(--surface);
  color: var(--muted);
}

/* Writing */
.featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  padding: 32px 0;
  border-bottom: 2px solid var(--ink);
  text-decoration: none;
}
.featured__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.featured__image--blank {
  background: var(--brand);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}
.featured__image--blank span {
  font-family: var(--display);
  font-weight: 900;
  font-size: 64px;
  line-height: 0.9;
  color: var(--white);
  text-transform: uppercase;
}
.featured__text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}
.featured__text .label .label {
  font-size: inherit;
  letter-spacing: inherit;
}
.featured__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(38px, 5vw, 52px);
  line-height: 0.95;
  text-transform: uppercase;
}
.featured__excerpt {
  font-size: 18px;
  color: var(--muted);
}
.featured:hover .featured__title {
  color: var(--brand);
}

.fixtures {
  display: flex;
  flex-direction: column;
}
.fixture {
  display: grid;
  grid-template-columns: 96px 130px minmax(0, 1fr) 70px;
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.fixture__date {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
}
.fixture__topic {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand);
}
.fixture__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fixture__excerpt {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
}
.fixture__time {
  font-size: 14px;
  color: var(--muted);
  text-align: right;
}
.fixture:hover .fixture__title {
  color: var(--brand);
}
.fixtures--archive {
  margin-top: 24px;
  border-top: 2px solid var(--ink);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.chip--active,
.chip--active:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

/* Workshop band and report cards */
.workshop-band {
  background: var(--ink);
  color: var(--white);
  padding-top: 88px;
  padding-bottom: 96px;
}
.workshop-band--page {
  padding-top: 56px;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 24px;
}
.report-card {
  position: relative;
  background: var(--white);
  color: var(--ink);
  display: flex;
  flex-direction: column;
}
.report-card__bar,
.report__bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: var(--brand);
  color: var(--white);
  padding: 12px 20px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}
.report-card__body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}
.report-card__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: 44px;
  line-height: 0.92;
  text-transform: uppercase;
}
.report-card__title a {
  text-decoration: none;
  color: inherit;
}
.report-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.report-card__summary {
  margin: 0;
  font-size: 16px;
  color: var(--body);
}
.report-card__link {
  margin-top: auto;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}
.report-card:hover .report-card__title {
  color: var(--brand);
}
.report-card:focus-within {
  outline: 3px solid var(--brand-tint);
  outline-offset: 3px;
}
.report-card__title a:focus-visible {
  outline: none;
}

.spec {
  margin: 0;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  border-top: 2px solid var(--ink);
}
.spec dt {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.spec dd {
  margin: 0;
  font-size: 15px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.spec dt:last-of-type,
.spec dd:last-of-type {
  border-bottom: 0;
}

/* Project visuals */
.visual {
  min-height: 170px;
}
.visual--image {
  width: 100%;
  height: 170px;
  object-fit: cover;
}
.visual--flow {
  background: var(--surface);
  padding: 28px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.visual__arrow {
  font-weight: 700;
  color: var(--brand);
}
.flow-step {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
  background: var(--white);
  border: 2px solid var(--ink);
}
.flow-step--2 {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}
.flow-step--3 {
  border: 2px dashed var(--brand);
}
.flow-step--4 {
  background: var(--ink);
  color: var(--white);
}
.visual--film {
  background: var(--ink);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.film-holes {
  display: flex;
  gap: 6px;
  overflow: hidden;
}
.film-holes span {
  flex: none;
  width: 14px;
  height: 10px;
  background: var(--white);
  border-radius: 2px;
}
.film-stills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.film-stills img,
.film-still--empty {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.film-still--empty {
  background: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  color: #a7adbf;
}
.visual--iterations {
  background: var(--surface);
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 10px;
  align-items: end;
}
.iteration {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.iteration__block {
  width: 100%;
  height: 48px;
  border: 2px dashed #8a91a8;
}
.iteration--2 .iteration__block {
  height: 72px;
  border-color: #6a7189;
}
.iteration--3 .iteration__block {
  height: 88px;
  border: 2px solid var(--muted);
}
.iteration--final .iteration__block {
  height: 104px;
  background: var(--brand);
  border: 0;
}
.iteration__label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}
.iteration--final .iteration__label {
  color: var(--brand);
}

/* Stamps */
.stamps-band {
  background: var(--surface);
  padding-top: 96px;
  padding-bottom: 96px;
}
.stamps-band .section-head {
  margin-bottom: 40px;
}
.stamps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.stamp-panel {
  background: var(--white);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.team-stamps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.team-stamp {
  font-family: var(--display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
  padding: 10px 14px;
}
.team-stamp--round {
  color: var(--brand);
  border: 4px double var(--brand);
  border-radius: 50%;
  width: 108px;
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(-8deg);
  padding: 8px;
}
.team-stamp--solid {
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 8px;
  transform: rotate(5deg);
}
.team-stamp--dashed {
  color: var(--brand);
  border: 3px dashed var(--brand);
  border-radius: 8px;
  transform: rotate(-3deg);
}
.team-stamp--pill {
  color: var(--ink);
  border: 4px double var(--ink);
  border-radius: 999px;
  padding: 8px 18px;
  transform: rotate(4deg);
}
.team-stamp--tab {
  color: var(--brand-dark);
  background: var(--white);
  border: 2px solid var(--brand);
  border-left-width: 8px;
  border-radius: 0 6px 6px 0;
  transform: rotate(-2deg);
}
.team-stamp--banner {
  color: var(--brand);
  border-top: 5px solid var(--brand);
  border-bottom: 5px solid var(--brand);
  padding: 8px 6px;
  transform: rotate(3deg);
}
.team-stamp--framed {
  color: var(--brand);
  border: 3px solid var(--brand);
  outline: 1.5px solid var(--brand);
  outline-offset: -8px;
  padding: 14px 18px;
  transform: rotate(-5deg);
}
.team-stamp--square {
  color: var(--ink);
  border: 3px dotted var(--ink);
  width: 108px;
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  transform: rotate(-6deg);
}
.stamp-panel--teams,
.stamp-panel--passport {
  padding: 0;
  overflow: hidden;
  gap: 0;
}
.teams__head,
.panel-head {
  background: var(--ink);
  color: var(--white);
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
}
.teams__title,
.panel-head__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: 32px;
  line-height: 1;
  text-transform: uppercase;
}
.teams__count,
.panel-head__count {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--brand-tint);
}
.stamp-panel__body {
  flex: 1;
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.teams-table {
  width: 100%;
  border-collapse: collapse;
  flex: 1;
}
.teams-table th,
.teams-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.teams-table th:first-child,
.teams-table td:first-child {
  padding-left: 24px;
  width: 72px;
}
.teams-table th:last-child,
.teams-table td:last-child {
  padding-right: 24px;
}
.teams-table thead th {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--ink);
  padding-top: 10px;
  padding-bottom: 10px;
}
.teams-table tbody th {
  font-weight: 600;
}
.teams-table tbody tr:last-child th,
.teams-table tbody tr:last-child td {
  border-bottom: 0;
}
.teams-table .teams-table__sport {
  width: 56px;
  text-align: center;
}
.team-code {
  font-family: var(--display);
  font-weight: 900;
  font-size: 24px;
  line-height: 1;
}
.team-code--tag {
  display: inline-block;
  padding: 2px 6px;
}
.sport-icon {
  display: inline-flex;
  color: var(--ink);
  vertical-align: middle;
}
.country-stamps {
  flex: 1;
  gap: 24px 20px;
  justify-content: space-evenly;
  align-content: space-evenly;
  padding: 8px 0;
}
.country-stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.country-stamp.team-stamp--round,
.country-stamp.team-stamp--square {
  flex-direction: column;
  gap: 6px;
  width: 112px;
  height: 112px;
  font-size: 18px;
}
.country-stamp__flag {
  width: 30px;
  height: 20px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(30, 33, 46, 0.2);
  flex: none;
}
.country-stamp__count {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
}
.country-stamp.team-stamp--round .country-stamp__count,
.country-stamp.team-stamp--square .country-stamp__count {
  margin-top: -2px;
}
/* Ticket stub footer: a full-width link bar pinned to the bottom of a stamp card.
   The card must be a flex column with overflow: hidden so the bar takes its rounded corners. */
.card-stub {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--brand);
  color: var(--white);
  border-top: 2px dashed var(--brand-tint);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.card-stub:hover,
.card-stub:focus-visible {
  background: var(--brand-dark);
  color: var(--white);
}
.card-stub:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: -4px;
}
.card-stub__icon {
  flex: none;
  display: inline-flex;
}
.card-stub__icon svg {
  width: 20px;
  height: 20px;
  display: block;
}
.card-stub__icon--plane {
  rotate: 90deg;
}
@media (prefers-reduced-motion: no-preference) {
  .card-stub__icon {
    transition: translate 0.2s ease;
  }
  .card-stub:hover .card-stub__icon--plane,
  .card-stub:focus-visible .card-stub__icon--plane {
    translate: 3px -3px;
  }
  .card-stub:hover .card-stub__icon--bike,
  .card-stub:focus-visible .card-stub__icon--bike {
    translate: 4px 0;
  }
}

/* Travel page */
.section--flush-top {
  padding-top: 0;
}
.passport-page {
  margin-top: 32px;
  background: var(--surface);
  border-radius: 18px;
  padding: 32px;
}
.timeline {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}
.timeline__item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  padding-bottom: 32px;
}
.timeline__date {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--brand);
}
.timeline__body {
  position: relative;
  padding-left: 28px;
  border-left: 3px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
.timeline__body--cover {
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: start;
}
.timeline__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.timeline__title a {
  color: inherit;
  text-decoration: none;
}
.timeline__title a:hover {
  color: var(--brand);
}
.timeline__meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
}
.timeline__meta .timeline__link {
  font-family: var(--font);
  font-size: 16px;
  text-transform: none;
}
.timeline__cover img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}
.timeline__body::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 6px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid var(--white);
}
.timeline__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: 32px;
  line-height: 0.95;
  text-transform: uppercase;
}
.timeline__places {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  color: var(--muted);
}
.timeline__note {
  margin: 0;
  color: var(--body);
}
.timeline__link {
  font-weight: 600;
  color: var(--brand);
}

/* Travel maps (D3, see assets/js/travel-map.js) */
.travel-map {
  position: relative;
  height: 360px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
}
.travel-map--all {
  margin-top: 32px;
  height: 520px;
}
.map-stage {
  position: absolute;
  inset: 0;
}
.map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: pan-x pan-y;
}
.map-svg:active {
  cursor: grabbing;
}
.map-svg--markers {
  pointer-events: none;
  cursor: default;
}
.map-country {
  fill: var(--line);
  stroke: var(--white);
  stroke-width: 0.6;
  vector-effect: non-scaling-stroke;
}
.map-country:hover {
  fill: #c2c8d6;
}
.map-country--visited {
  fill: var(--brand);
}
.map-country--visited:hover {
  fill: var(--brand-dark);
}
.map-marker {
  fill: var(--ink);
  stroke: var(--white);
  pointer-events: auto;
  cursor: pointer;
}
.map-marker:focus {
  outline: none;
}
.map-marker:focus-visible {
  stroke: var(--brand-tint);
}
.map-marker--sight {
  fill: var(--muted);
}
.map-tip {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, calc(-100% - 10px));
  pointer-events: none;
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.map-tip span {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--brand-tint);
}
.map-error {
  margin: 0;
  padding: 24px;
  color: var(--muted);
}
.map-controls {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.map-control {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.map-control:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.map-control--reset {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
}
.map-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.map-legend__swatch {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  background: var(--line);
}
.map-legend__swatch--visited {
  background: var(--brand);
}
.map-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow:
    0 0 0 1.5px var(--white),
    0 0 0 2.5px var(--line);
}
.map-legend__hint {
  margin-left: auto;
  text-transform: none;
  font-family: var(--font);
  font-size: 13px;
}
.map-list {
  margin-top: 12px;
  font-size: 15px;
}
.map-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}
.map-list ul {
  margin: 8px 0 0;
  padding-left: 1.3em;
  columns: 3 160px;
}

/* Trip page */
.trip__head {
  background: var(--brand);
  color: var(--white);
  padding-top: 48px;
  padding-bottom: 64px;
}
.trip__head--cover {
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  padding-top: 120px;
}
.trip__head .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.trip__head .report__bar {
  background: var(--ink);
  align-self: flex-start;
  gap: 24px;
}
.trip__overview {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 48px;
  align-items: start;
}
.trip__overview--no-map {
  grid-template-columns: minmax(0, 1fr);
}
.trip__facts {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.trip__facts dd {
  margin: 4px 0 0;
  font-size: 18px;
}
.trip__countries {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.trip__country {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.trip__country img {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(30, 33, 46, 0.2);
}
.trip__story {
  padding-bottom: 48px;
}
.trip__days,
.trip__gallery {
  padding-bottom: 64px;
}
.days {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.day {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
}
.day__marker {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.day__number {
  font-family: var(--display);
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--brand);
}
.day__date {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
}
.day__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 24px;
  border-left: 3px solid var(--line);
}
.day__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: 30px;
  line-height: 0.95;
  text-transform: uppercase;
}
.day__text p {
  margin: 0 0 0.8em;
}
.day__text p:last-child {
  margin-bottom: 0;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 16px;
  margin-top: 8px;
}
.trip__gallery .photo-grid {
  margin-top: 32px;
}
.photo-grid__item {
  margin: 0;
}
.photo-grid__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}
.photo-grid__item figcaption {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}
.trip__nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 96px;
  border-top: 6px solid var(--ink);
}
.trip__nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  text-transform: uppercase;
}
.trip__nav-link--next {
  text-align: right;
  align-items: flex-end;
}
.stamp-panel--member {
  background: var(--brand);
  color: var(--white);
  justify-content: space-between;
}
.stamp-panel--member .label {
  color: var(--brand-soft);
}
.member__name {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: 40px;
  line-height: 0.95;
  text-transform: uppercase;
}
.member__text {
  margin: 0;
  font-size: 15px;
  color: var(--on-brand);
}
.member__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.5);
  padding-top: 12px;
}
.stamp-panel--photo {
  padding: 0;
  overflow: hidden;
  gap: 0;
}
.stamp-panel--photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.stamp-panel__inner {
  padding: 20px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  font-weight: 600;
  font-size: 14px;
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 12px;
}

/* Inner page heads */
.page-head {
  background: var(--brand);
  color: var(--white);
  padding-top: 56px;
  padding-bottom: 64px;
}
.page-head .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.page-head__lead {
  margin: 0;
  max-width: 680px;
  font-size: 20px;
  line-height: 1.6;
  color: var(--on-brand);
}
.page-head .label {
  color: var(--brand-soft);
}
.back-link {
  color: var(--white);
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.back-link:hover {
  color: var(--white);
  text-decoration: underline;
}
.section .chips {
  margin-bottom: 8px;
}

/* Project report page */
.report__head {
  background: var(--brand);
  color: var(--white);
  padding-top: 48px;
  padding-bottom: 64px;
}
.report__head .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.report__head .report__bar {
  background: var(--ink);
  align-self: flex-start;
  gap: 24px;
}
.report__overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 48px;
  align-items: start;
}
.report__visual .visual {
  min-height: 260px;
}
.report__visual .visual--image {
  height: auto;
}
.report__spec {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.report__body {
  padding-bottom: 48px;
}
.report__more {
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.report__more-list {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--ink);
}
.report__more-list a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 28px;
  text-transform: uppercase;
  line-height: 1;
}
.report__more-list .label {
  color: var(--brand);
}

/* Posts */
.page-head--post .label {
  color: var(--brand-soft);
}
.post__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(48px, 8vw, 88px);
  line-height: 0.9;
  text-transform: uppercase;
}
.post__hero {
  margin: 48px auto 0;
}
.post__hero img {
  width: 100%;
}
.post .prose {
  padding-top: 48px;
}
.post__footer {
  padding-top: 48px;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.author-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px;
  background: var(--surface);
}
.author-card img {
  border-radius: 50%;
  border: 3px solid var(--brand);
  background: var(--white);
  flex: none;
}
.author-card p {
  margin: 0;
}
.author-card__name {
  font-family: var(--display);
  font-weight: 900;
  font-size: 22px;
  text-transform: uppercase;
}
.author-card__bio {
  color: var(--muted);
}
.post-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.post-nav__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  border: 2px solid var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.post-nav__link .label {
  color: var(--brand);
}
.post-nav__link--next {
  text-align: right;
}
.post-nav__link:hover {
  border-color: var(--brand);
}

/* Long-form text */
.prose {
  font-size: 18px;
  line-height: 1.75;
  color: var(--body);
}
.prose > * + * {
  margin-top: 1.1em;
}
.prose > * {
  margin-bottom: 0;
}
.prose > :first-child {
  margin-top: 0;
}
.prose h2 {
  margin-top: 1.8em;
  font-family: var(--display);
  font-weight: 900;
  font-size: 40px;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--ink);
}
.prose h3 {
  margin-top: 1.6em;
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
}
.prose a {
  color: var(--brand);
}
.prose strong {
  color: var(--ink);
}
.prose img {
  margin-top: 1.6em;
}
.prose blockquote {
  margin-left: 0;
  padding: 4px 0 4px 20px;
  border-left: 6px solid var(--brand);
  color: var(--ink);
  font-size: 20px;
}
.prose code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--surface);
  padding: 2px 6px;
}
.prose pre {
  background: var(--ink);
  color: #eef0f6;
  padding: 20px;
  overflow-x: auto;
}
.prose pre code {
  background: none;
  padding: 0;
  color: inherit;
}
.prose ol,
.prose ul {
  padding-left: 1.3em;
}
.prose li + li {
  margin-top: 0.4em;
}
.prose iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }
  .site-nav {
    gap: 6px 18px;
  }
  .site-nav a {
    font-size: 18px;
  }
  .hero__inner {
    padding-top: 40px;
    padding-bottom: 64px;
    gap: 40px;
  }
  .holder {
    transform: none;
    padding: 20px;
  }
  .holder__main {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 16px;
  }
  .holder__photo {
    width: 100px;
    height: 130px;
  }
  .holder__fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .holder__field--wide {
    grid-column: auto;
  }
  .holder__field .holder__name {
    font-size: 24px;
  }
  .section,
  .stamps-band {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .workshop-band {
    padding-top: 64px;
    padding-bottom: 72px;
  }
  .fixture {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
  }
  .fixture__date {
    grid-column: 1;
    grid-row: 1;
    font-size: 18px;
  }
  .fixture__topic {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }
  .fixture__title {
    grid-column: 1 / -1;
  }
  .fixture__time {
    display: none;
  }
  .report-card__title {
    font-size: 38px;
  }
  .stamps {
    grid-template-columns: minmax(0, 1fr);
  }
  .stamp-panel {
    padding: 22px;
  }
  .stamp-panel--teams,
  .stamp-panel--passport,
  .stamp-panel--photo {
    padding: 0;
  }
  .stamp-panel__body {
    padding: 20px 22px 22px;
  }
  .passport-page {
    padding: 20px;
  }
  .timeline__item {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .timeline__date {
    padding-left: 31px;
  }
  .timeline__body--cover {
    grid-template-columns: minmax(0, 1fr);
  }
  .timeline__cover {
    order: -1;
  }
  .travel-map,
  .travel-map--all {
    height: auto;
    aspect-ratio: 3 / 2;
  }
  .map-controls {
    top: 8px;
    right: 8px;
    gap: 4px;
  }
  .map-control {
    min-width: 32px;
    height: 32px;
    font-size: 18px;
    padding: 0 6px;
  }
  .map-control--reset {
    font-size: 12px;
  }
  .map-legend__hint {
    margin-left: 0;
  }
  .trip__overview {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 40px;
  }
  .trip__head--cover {
    padding-top: 80px;
  }
  .day {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .day__marker {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
  }
  .day__body {
    padding-left: 16px;
  }
  .trip__nav {
    flex-direction: column;
    padding-bottom: 64px;
  }
  .trip__nav-link--next {
    text-align: left;
    align-items: flex-start;
  }
  .site-footer__title {
    font-size: 44px;
  }
}

/* If the display font fails to load, long words wrap instead of widening the page */
.display,
.hero__name,
.post__title,
.featured__title,
.report-card__title,
.member__name,
.site-footer__title {
  overflow-wrap: break-word;
}

/* Case study pieces used inside project reports (Strava) */
.case-meta {
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  color: var(--muted);
}
.case-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.case-nav .chip {
  text-decoration: none;
}
.prose .case-nav a {
  color: var(--ink);
}
.case-figure {
  margin: 1.6em 0 0;
}
.case-figure img,
.case-compare img,
.case-usecase img {
  margin: 0;
  width: 100%;
  border-radius: 10px;
}
.case-figure figcaption,
.case-compare figcaption,
.case-usecase figcaption,
.case-swatches figcaption,
.case-locate figcaption {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.case-more {
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
}
.case-more + .case-more {
  margin-top: 12px;
}
.case-more summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}
.case-more p {
  margin: 12px 0 0;
}
.case-note {
  background: var(--surface);
  border-left: 6px solid var(--brand);
  padding: 14px 18px;
  font-size: 16px;
}
.case-usecases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 24px;
}
.case-usecase {
  margin: 0;
}
.prose .case-usecase img {
  width: auto;
  max-width: 100%;
  height: 300px;
  object-fit: contain;
}
.case-swatches,
.case-locate {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-end;
}
.case-swatches figure,
.case-locate figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.case-swatch {
  display: block;
  width: 100px;
  height: 40px;
}
.case-swatch--remaining {
  background: #fc5200;
  border: 6px solid #cc4200;
}
.case-swatch--completed {
  background: #4b90e2;
  border: 6px solid #2a59a2;
}
.prose .case-locate img {
  margin: 0;
}
.case-viewer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border-radius: 18px;
  padding: 24px;
}
.case-viewer__controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}
.case-viewer__controls .chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
}
.prose .case-viewer__image {
  margin: 0;
  width: auto;
  max-width: 100%;
  max-height: 640px;
  border-radius: 10px;
}
.case-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.case-compare--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.case-compare--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.case-compare figure {
  margin: 0;
  text-align: center;
}
.prose .case-compare img {
  width: auto;
  max-width: 100%;
  max-height: 560px;
  margin: 0 auto;
}
@media (max-width: 560px) {
  .case-compare--three,
  .case-compare--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Motion. Kept short and small so it supports the content without pulling focus.
   Everything here is skipped when the visitor's system asks for reduced motion.
   Reveals use the `translate` property so they never override the tilted stamps' `transform`. */
@media (prefers-reduced-motion: no-preference) {
  /* Page to page: a quick crossfade, with the header held still (supported browsers only) */
  @view-transition {
    navigation: auto;
  }
  .site-header {
    view-transition-name: site-header;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 200ms;
    animation-timing-function: ease-out;
  }

  /* On load: hero and page headers rise in */
  @keyframes rise-in {
    from {
      opacity: 0;
      translate: 0 12px;
    }
    to {
      opacity: 1;
      translate: 0 0;
    }
  }
  .hero__text,
  .holder,
  .page-head .container,
  .report__head .container,
  .trip__head .container {
    animation: rise-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .holder {
    animation-delay: 0.12s;
  }

  /* On scroll: below the fold blocks fade up once (classes added by assets/js/motion.js) */
  .reveal {
    opacity: 0;
    translate: 0 16px;
    transition:
      opacity 0.5s ease-out,
      translate 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .reveal.is-visible {
    opacity: 1;
    translate: 0 0;
  }

  /* Hover and focus: colors ease instead of snapping, cards lift slightly */
  a,
  .chip,
  .map-control,
  .card-stub,
  .post-nav__link,
  .site-nav a,
  .featured__title,
  .fixture__title,
  .report-card__title,
  .report__more-list a,
  .trip__nav-link,
  .timeline__title a {
    transition:
      color 0.15s ease,
      background-color 0.15s ease,
      border-color 0.15s ease,
      box-shadow 0.15s ease,
      opacity 0.15s ease;
  }
  .report-card {
    transition:
      translate 0.2s ease,
      box-shadow 0.2s ease;
  }
  .report-card:hover {
    translate: 0 -3px;
    box-shadow: 0 12px 28px rgba(30, 33, 46, 0.18);
  }
  .timeline__cover,
  .photo-grid__item a {
    display: block;
    overflow: hidden;
    border-radius: 10px;
  }
  .timeline__cover img,
  .photo-grid__item img {
    transition: scale 0.3s ease;
  }
  .timeline__cover:hover img,
  .photo-grid__item a:hover img {
    scale: 1.03;
  }
}

/* Cycling: homepage card stats and the /cycling/ page */
.ride-stats {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.ride-stats dt {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.ride-stats dd {
  margin: 2px 0 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
}
.stamp-panel--cycling .stamp-panel__inner {
  flex: 1;
  gap: 16px;
}
.link-icon {
  flex: none;
}
.bikes {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 24px;
}
.bike {
  background: var(--white);
  border: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
}
.bike__photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.bike__photo--blank {
  background: var(--surface);
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}
.bike__photo--blank .link-icon {
  width: 64px;
  height: 64px;
  stroke-width: 1.2;
}
.bike__body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bike__name {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: 34px;
  line-height: 0.95;
  text-transform: uppercase;
}
.cycling-story {
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.cycling-story__photo {
  margin: 0;
}
.cycling-story__photo img {
  width: 100%;
  border-radius: 10px;
}
.cycling-story__photo figcaption,
.carousel__slide figcaption,
.metrics__note {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}
.carousel {
  margin-top: 32px;
}
.carousel__track {
  position: relative;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-bottom: 8px;
}
.carousel__track:focus-visible {
  outline: 3px solid var(--brand-tint);
  outline-offset: 4px;
}
.carousel__slide {
  margin: 0;
  flex: 0 0 min(100%, 560px);
  scroll-snap-align: start;
}
.carousel__slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}
.carousel__controls {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.carousel__controls .map-control:disabled {
  opacity: 0.35;
  cursor: default;
}
.carousel__count {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.metrics {
  margin-top: 32px;
  max-width: 720px;
}
.metrics-table th:first-child,
.metrics-table td:first-child {
  width: auto;
  padding-left: 0;
}
.metrics-table td {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
}
.case-callout {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  border-radius: 18px;
}
.case-callout .label {
  color: var(--brand-tint);
}
.case-callout__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: 44px;
  line-height: 0.95;
  text-transform: uppercase;
}
.case-callout__text {
  max-width: 640px;
  color: #D7DBE6;
}
.case-callout__link {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-tint);
}
.case-callout:hover {
  color: var(--white);
}
.case-callout:hover .case-callout__link {
  color: var(--white);
}
@media (max-width: 720px) {
  .cycling-story {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .bike__name {
    font-size: 28px;
  }
  .case-callout {
    padding: 24px;
  }
  .case-callout__title {
    font-size: 36px;
  }
}
.cycling-story--text {
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
}
