:root {
  --ink: #171713;
  --muted: rgba(23, 23, 19, 0.72);
  --dim: rgba(23, 23, 19, 0.46);
  --paper: #e8e1d2;
  --road: #e8e1d2;
  --road-2: #d8cfbc;
  --panel: rgba(246, 241, 229, 0.78);
  --line: rgba(23, 23, 19, 0.2);
  --yellow: #ff3eb5;
  --olive: #7a812e;
  --ocean: #7ca7b0;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "Inter", system-ui, sans-serif;
  --display: "Inter", system-ui, sans-serif;
}

@font-face {
  font-family: "Sharp Grotesk 12";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local("SharpGroteskSmBold12"),
       local("Sharp Grotesk SmBold 12"),
       url("/Users/johnpolson/Library/Fonts/SharpGroteskSmBold12.otf") format("opentype");
}

@font-face {
  font-family: "Fjalla One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://au.blacksheep.cc/cdn/fonts/fjalla_one/fjallaone_n4.262edaf1abaf5ed669f7ecd26fc3e24707a0ad85.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("https://au.blacksheep.cc/cdn/fonts/instrument_sans/instrumentsans_n5.1ce463e1cc056566f977610764d93d4704464858.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 24% 18%, rgba(124, 167, 176, 0.18), transparent 34rem),
    radial-gradient(circle at 76% 42%, rgba(122, 129, 46, 0.12), transparent 32rem),
    linear-gradient(180deg, #e8e1d2 0%, #d9d0bd 100%);
  font-family: var(--sans);
}

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

a {
  color: inherit;
  text-decoration: none;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: multiply;
  background-image:
    linear-gradient(115deg, rgba(23, 23, 19, 0.08) 0 1px, transparent 1px 4px),
    radial-gradient(circle, rgba(23, 23, 19, 0.15) 0 1px, transparent 1px);
  background-size: 180px 180px, 5px 5px;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 117px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000;
  font-family: "Instrument Sans", var(--sans);
  text-transform: uppercase;
  letter-spacing: 0;
}

.bs-toolbar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: 36px;
  background: #f5f5f2;
  color: #000;
  border-bottom: 1px solid #000;
  font-size: 13px;
  line-height: 36px;
}

.bs-sports {
  display: flex;
  height: 100%;
}

.bs-sports a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  height: 100%;
  border-right: 1px solid #000;
}

.bs-currency {
  display: flex;
  align-items: center;
  padding: 0 49px 0 18px;
}

.bs-mainnav {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px minmax(0, 1fr);
  align-items: center;
  height: 81px;
  background: #000;
  color: #fff;
  font-family: "Fjalla One", "Arial Narrow", var(--sans);
  font-size: 11px;
  line-height: 1.2;
}

.bs-primary {
  display: flex;
  align-items: stretch;
  height: 100%;
  padding-left: 35px;
}

.bs-primary a,
.bs-actions a {
  display: flex;
  align-items: center;
  height: 100%;
  color: #fff;
  text-decoration: none;
}

.bs-primary a {
  padding: 5px 14px;
}

.bs-logo {
  display: block;
  width: 180px;
}

.bs-logo img {
  width: 180px;
  height: auto;
}

.bs-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  padding-right: 44px;
  gap: 24px;
}

.bs-actions svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.bs-cart {
  width: 24px;
}

.bs-cart span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-family: "Instrument Sans", var(--sans);
  font-size: 13px;
  font-weight: 600;
}

.section {
  position: relative;
  min-height: 100svh;
  padding: clamp(82px, 12vw, 132px) clamp(22px, 7vw, 118px);
  overflow: hidden;
}

.hero {
  display: grid;
  align-items: end;
  min-height: 100svh;
  padding-right: clamp(128px, 12vw, 190px);
  padding-bottom: clamp(78px, 9.5vw, 118px);
}

.hero-media,
.finish > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media {
  inset: -12.5% auto auto -35%;
  width: 135%;
  height: 135%;
  max-width: none;
  filter: saturate(0.8) contrast(1.05);
  object-position: center center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 10, 8, 0.56), rgba(8, 10, 8, 0.16) 55%, rgba(8, 10, 8, 0.7)),
    linear-gradient(0deg, rgba(8, 10, 8, 0.74), rgba(8, 10, 8, 0.2) 58%);
}

.hero-ticker {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  color: #a2ff00;
  font-family: var(--mono);
  font-size: clamp(34px, 2.72vw, 56px);
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  opacity: 0.18;
  mix-blend-mode: overlay;
}

.ticker-line {
  position: absolute;
  left: 0;
  display: flex;
  width: max-content;
  min-width: 200%;
  gap: 0.55em;
  white-space: nowrap;
  will-change: transform;
}

.ticker-line span {
  display: block;
}

.ticker-line:nth-child(1) { top: 1.5%; animation: ticker-left 52s linear infinite; }
.ticker-line:nth-child(2) { top: 8%; animation: ticker-right 58s linear infinite; }
.ticker-line:nth-child(3) { top: 14.5%; animation: ticker-left 64s linear infinite; }
.ticker-line:nth-child(4) { top: 21%; animation: ticker-right 60s linear infinite; }
.ticker-line:nth-child(5) { top: 27.5%; animation: ticker-left 70s linear infinite; }
.ticker-line:nth-child(6) { top: 34%; animation: ticker-right 66s linear infinite; }
.ticker-line:nth-child(7) { top: 40.5%; animation: ticker-left 56s linear infinite; }
.ticker-line:nth-child(8) { top: 47%; animation: ticker-right 72s linear infinite; }
.ticker-line:nth-child(9) { top: 53.5%; animation: ticker-left 62s linear infinite; }
.ticker-line:nth-child(10) { top: 60%; animation: ticker-right 68s linear infinite; }
.ticker-line:nth-child(11) { top: 66.5%; animation: ticker-left 74s linear infinite; }
.ticker-line:nth-child(12) { top: 73%; animation: ticker-right 64s linear infinite; }

@keyframes ticker-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes ticker-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 980px;
  margin-left: 0;
}

.kicker,
.chapter-index,
.tracker-title {
  margin: 0;
  color: var(--yellow);
  font-family: var(--mono);
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.chapter-index span {
  color: var(--yellow);
}

.hero h1,
.chapter h2,
.finish h2 {
  margin: 18px 0 22px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(42px, 2.35vw, 60px);
  line-height: 0.88;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero h1 {
  margin: 10px 0 28px;
  font-size: clamp(42px, 3vw, 60px);
  line-height: 0.94;
}

.hero h1 span {
  display: inline;
  color: rgba(243, 241, 232, 0.92);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}

.hero h1 span + span::before {
  content: " ";
}

.hero-copy {
  display: none;
  max-width: 590px;
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.45;
}

.hero-subcopy,
.chapter-copy p,
.finish-copy p {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.65;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
}

.scroll-cue span {
  width: 1px;
  height: 38px;
  background: var(--ink);
  box-shadow: 0 26px 0 -12px var(--yellow);
}

.intro {
  display: grid;
  align-items: center;
  min-height: 112svh;
  padding-right: clamp(128px, 12vw, 190px);
  border-top: 1px solid rgba(243, 241, 232, 0.11);
}

.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 10, 8, 0.9), rgba(8, 10, 8, 0.62)),
    radial-gradient(circle at 20% 25%, rgba(229, 210, 58, 0.08), transparent 32rem);
}

.intro-copy {
  position: relative;
  z-index: 2;
  width: min(1060px, 78vw);
  margin: 0 auto;
}

.intro-copy p:not(.chapter-index) {
  margin: 26px 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(18px, 1.28vw, 24px);
  line-height: 1.35;
}

.goal-time {
  display: grid;
  grid-template-columns: auto minmax(130px, 180px);
  gap: 18px;
  align-items: center;
  width: fit-content;
  margin-top: 28px;
  color: var(--yellow);
  font-family: var(--mono);
  font-size: clamp(14px, 1.45vw, 20px);
  font-weight: 700;
  text-transform: uppercase;
}

.goal-time input {
  width: 100%;
  border: 1px solid rgba(255, 62, 181, 0.55);
  border-radius: 0;
  background: rgba(10, 12, 9, 0.64);
  color: var(--ink);
  font: inherit;
  padding: 11px 12px;
  letter-spacing: 0;
}

.goal-time input:focus {
  outline: 1px solid var(--yellow);
  outline-offset: 3px;
}

.clock-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(112px, 1fr));
  gap: 1px;
  width: min(900px, 100%);
  margin-top: 24px;
  border-top: 1px solid rgba(243, 241, 232, 0.14);
  border-bottom: 1px solid rgba(243, 241, 232, 0.14);
  background: rgba(243, 241, 232, 0.1);
  font-family: var(--mono);
}

.clock-strip div {
  min-height: 72px;
  padding: 14px 16px;
  background: rgba(10, 12, 9, 0.78);
}

.clock-strip span {
  display: block;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.clock-strip strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(18px, 1.12vw, 24px);
  line-height: 1;
}

.tracker {
  position: fixed;
  top: 117px;
  right: 0;
  bottom: 0;
  z-index: 30;
  width: 106px;
  min-width: 0;
  overflow: hidden;
  border-left: 1px solid rgba(243, 241, 232, 0.18);
  background:
    linear-gradient(180deg, rgba(21, 24, 17, 0.92), rgba(9, 11, 9, 0.9)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 5px);
  backdrop-filter: blur(20px);
  transition: width 260ms ease, background-color 260ms ease;
}

.tracker:focus {
  outline: 1px solid var(--yellow);
  outline-offset: -1px;
}

.tracker:hover,
.tracker:focus,
.tracker:focus-within {
  width: min(29vw, 342px);
}

.tracker-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  padding: 20px 10px;
  font-family: var(--mono);
}

.tracker-title {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  width: 86px;
  white-space: nowrap;
  font-size: 0;
  transition: width 260ms ease, font-size 180ms ease;
}

.tracker:hover .tracker-title,
.tracker:focus .tracker-title,
.tracker:focus-within .tracker-title {
  justify-content: flex-start;
  width: 100%;
  font-size: 13px;
}

.tracker-title span {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
}

.km-readout {
  width: 86px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  transition: width 260ms ease, text-align 260ms ease;
}

.tracker:hover .km-readout,
.tracker:focus .km-readout,
.tracker:focus-within .km-readout {
  width: 100%;
  text-align: left;
}

.km-readout > span,
.km-readout small {
  display: none;
  color: var(--muted);
  font-size: 14px;
}

.tracker:hover .km-readout small,
.tracker:focus .km-readout small,
.tracker:focus-within .km-readout small {
  display: block;
}

.km-readout strong {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  width: 100%;
  margin: 4px 0;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0;
  transition: font-size 260ms ease;
}

.km-readout strong span {
  display: inline;
}

.km-readout strong em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tracker:hover .km-readout strong,
.tracker:focus .km-readout strong,
.tracker:focus-within .km-readout strong {
  justify-content: flex-start;
  font-size: clamp(44px, 5vw, 62px);
}

.tracker:hover .km-readout strong em,
.tracker:focus .km-readout strong em,
.tracker:focus-within .km-readout strong em {
  font-size: 15px;
}

.status-list {
  display: grid;
  gap: 14px;
  margin: 0;
  width: 314px;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 260ms ease;
}

.tracker:hover .status-list,
.tracker:focus .status-list,
.tracker:focus-within .status-list {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.status-list div {
  display: grid;
  gap: 5px;
}

.status-list dt {
  color: var(--yellow);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.mini-route {
  display: grid;
  grid-template-columns: 86px;
  gap: 0;
  min-height: min(56vh, 430px);
  padding: 10px 0;
  transition: grid-template-columns 260ms ease, gap 260ms ease;
}

.tracker:hover .mini-route,
.tracker:focus .mini-route,
.tracker:focus-within .mini-route {
  grid-template-columns: 42px 1fr;
  gap: 18px;
}

.route-line {
  position: relative;
  width: 4px;
  height: 100%;
  justify-self: center;
  border-radius: 999px;
  background: rgba(243, 241, 232, 0.22);
}

.route-line span {
  position: absolute;
  inset: 0 0 auto;
  height: 0%;
  border-radius: inherit;
  background: var(--yellow);
}

.route-line i {
  position: absolute;
  left: 50%;
  top: 0%;
  width: 18px;
  height: 18px;
  border: 3px solid var(--yellow);
  border-radius: 50%;
  background: var(--road);
  transform: translate(-50%, -50%);
}

.mini-route ol {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 220px;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 260ms ease;
}

.tracker:hover .mini-route ol,
.tracker:focus .mini-route ol,
.tracker:focus-within .mini-route ol {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.mini-route li {
  display: flex;
  gap: 12px;
  color: var(--dim);
  font-size: 11px;
  line-height: 1.1;
  text-transform: uppercase;
}

.mini-route li span {
  width: 36px;
  color: var(--ink);
}

.mini-route li b {
  font-weight: 500;
}

.chapter {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(320px, 0.9fr);
  gap: clamp(28px, 4.3vw, 72px);
  align-items: center;
  min-height: clamp(760px, 100vh, 1240px);
  padding-right: clamp(88px, 8vw, 160px);
  border-top: 1px solid rgba(243, 241, 232, 0.11);
}

.chapter::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 10, 8, 0.9), rgba(8, 10, 8, 0.62)),
    radial-gradient(circle at 20% 25%, rgba(229, 210, 58, 0.08), transparent 32rem);
}

.chapter h2,
.finish h2 {
  max-width: 100%;
  color: rgba(243, 241, 232, 0.9);
  white-space: nowrap;
}

.chapter-paradise h2 {
  color: var(--yellow);
}

.chapter-copy {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.chapter-copy p:not(.chapter-index):not(.lede) {
  max-width: 640px;
  font-size: clamp(14px, 0.82vw, 20px);
  line-height: 1.65;
}

.lede {
  color: var(--ink) !important;
  font-family: var(--mono);
  font-size: clamp(17px, 1.18vw, 24px) !important;
  line-height: 1.35 !important;
}

.photo-panel,
.wide-photo {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(243, 241, 232, 0.14);
  background: #151711;
  filter: blur(0.18px);
}

.chapter-callout-overlay {
  position: absolute;
  z-index: 4;
  width: min(42vw, 920px);
  color: #a2ff00;
  font-family: var(--mono);
  font-size: clamp(24px, 1.92vw, 48px);
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  opacity: 0.26;
  mix-blend-mode: plus-lighter;
  filter: blur(0.12px);
  pointer-events: none;
}

.chapter-start .chapter-callout-overlay {
  right: clamp(100px, 9vw, 190px);
  top: 42%;
  width: min(42vw, 820px);
  opacity: 0.24;
}

.chapter-math .chapter-callout-overlay {
  right: clamp(94px, 8.5vw, 150px);
  top: 43%;
  width: min(40vw, 760px);
  font-size: clamp(25px, 2.02vw, 50px);
  opacity: 0.3;
}

.chapter-race .chapter-callout-overlay {
  right: clamp(96px, 8.5vw, 150px);
  top: 43%;
  width: min(38vw, 720px);
  font-size: clamp(24px, 1.85vw, 46px);
  opacity: 0.31;
}

.photo-panel img,
.photo-panel video,
.wide-photo img,
.repeat-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.06) brightness(0.94);
}

.photo-panel::after,
.wide-photo::after,
.video-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 115, 0, 0.1), rgba(255, 115, 0, 0.1)),
    repeating-linear-gradient(0deg, rgba(243, 241, 232, 0.03) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

.photo-panel {
  aspect-ratio: 4 / 5;
  z-index: 2;
}

.photo-panel.tall {
  aspect-ratio: 3 / 4;
}

.photo-panel video {
  display: block;
}

.field-notes,
.road-notes {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid rgba(243, 241, 232, 0.16);
  border-bottom: 1px solid rgba(243, 241, 232, 0.16);
  background: rgba(243, 241, 232, 0.12);
  font-family: var(--mono);
}

.field-notes span,
.road-notes span {
  min-height: 64px;
  padding: 18px;
  background: rgba(10, 12, 9, 0.76);
  color: var(--ink);
}

.chapter-coast {
  grid-template-columns: minmax(420px, 1.08fr) minmax(300px, 0.62fr);
  min-height: clamp(680px, 86vh, 1050px);
}

.wide-photo {
  aspect-ratio: 16 / 9;
}

.chapter-coast .wide-photo {
  align-self: center;
  width: min(100%, 1060px);
}

.number-wall {
  position: absolute;
  inset: 15% auto auto 8%;
  display: grid;
  gap: 8px;
  color: rgba(243, 241, 232, 0.06);
  font-family: var(--display);
  font-size: clamp(74px, 8vw, 160px);
  line-height: 0.86;
}

.chapter-math .photo-panel {
  order: 2;
}

.chapter-math .photo-panel,
.chapter-race .photo-panel {
  width: min(100%, 620px);
  justify-self: center;
  aspect-ratio: 4 / 5;
}

.chapter-paradise {
  grid-template-columns: minmax(300px, 0.64fr) minmax(420px, 1fr);
  align-items: stretch;
  min-height: clamp(940px, 112vh, 1420px);
  background:
    linear-gradient(90deg, rgba(10, 12, 9, 0.98), rgba(10, 12, 9, 0.78)),
    radial-gradient(circle at 44% 34%, rgba(229, 210, 58, 0.1), transparent 28rem);
}

.chapter-paradise .chapter-copy {
  max-width: 900px;
  align-self: start;
  padding-top: clamp(8px, 2vw, 44px);
}

.km-column {
  position: absolute;
  left: clamp(18px, 3vw, 40px);
  top: 14%;
  bottom: 14%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 15px;
}

.km-column strong {
  position: relative;
  color: var(--yellow);
  font-size: 17px;
}

.km-column strong::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  transform: translateY(-50%);
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-self: center;
}

.evidence-main {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.evidence-grid .photo-panel:not(.evidence-main) {
  aspect-ratio: 1 / 1;
}

.chapter-return {
  min-height: clamp(700px, 90vh, 1100px);
  grid-template-columns: minmax(420px, 1.06fr) minmax(320px, 0.72fr);
}

.repeat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
  height: clamp(260px, 32vh, 420px);
  overflow: hidden;
  opacity: 0.74;
  align-self: center;
}

.repeat-strip img:nth-child(2) {
  transform: translateY(38px) scale(1.05);
  filter: saturate(0.65) contrast(1.18);
}

.repeat-strip img:nth-child(3) {
  transform: translateY(76px) scale(1.1);
  filter: saturate(0.45) contrast(1.25);
}

.chapter-race {
  min-height: clamp(760px, 100vh, 1240px);
  grid-template-columns: minmax(320px, 0.68fr) minmax(360px, 0.86fr);
}

.chapter-race .chapter-copy {
  max-width: 780px;
}

.chapter-race .photo-panel {
  z-index: 2;
}

.chapter-start .photo-panel,
.chapter-math .photo-panel,
.chapter-race .photo-panel {
  z-index: 2;
}

.time-calculator {
  display: none;
  grid-column: 1 / -1;
  position: relative;
  z-index: 3;
  grid-template-columns: minmax(190px, 0.38fr) minmax(0, 1fr);
  gap: 1px;
  margin-top: clamp(10px, 2vw, 24px);
  border-top: 1px solid rgba(243, 241, 232, 0.16);
  border-bottom: 1px solid rgba(243, 241, 232, 0.16);
  background: rgba(243, 241, 232, 0.12);
  font-family: var(--mono);
}

.time-summary,
.time-table-wrap {
  background: rgba(10, 12, 9, 0.78);
}

.time-summary {
  display: grid;
  align-content: space-between;
  gap: 28px;
  padding: 18px;
}

.time-summary span,
.time-table th {
  color: var(--yellow);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.time-summary strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(28px, 3.6vw, 54px);
  line-height: 0.96;
}

.time-callouts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.time-callouts li {
  border: 1px solid rgba(243, 241, 232, 0.16);
  padding: 7px 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.time-table-wrap {
  overflow-x: auto;
}

.time-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
}

.time-table th,
.time-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(243, 241, 232, 0.1);
  text-align: left;
  white-space: nowrap;
}

.time-table th:nth-child(n + 2),
.time-table td:nth-child(n + 2) {
  text-align: right;
}

.time-table tbody tr:last-child td {
  border-bottom: 0;
}

.time-table td:first-child {
  white-space: normal;
}

.finish {
  display: grid;
  align-items: end;
  padding-right: clamp(128px, 12vw, 190px);
}

.finish::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 9, 7, 0.9), rgba(7, 9, 7, 0.32));
}

.finish-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.finish-copy a {
  display: inline-flex;
  margin-top: 24px;
  border: 1px solid var(--yellow);
  padding: 13px 18px;
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
}

.receipt-section {
  display: grid;
  place-items: start center;
  min-height: 108svh;
  padding-right: clamp(96px, 9vw, 164px);
  padding-top: clamp(132px, 12vh, 176px);
  background:
    radial-gradient(circle at 50% 44%, rgba(243, 241, 232, 0.07), transparent 32rem),
    linear-gradient(180deg, #070807 0%, #020302 100%);
}

.receipt-shell {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 22px;
  width: min(100%, 760px);
}

.race-receipt {
  position: relative;
  width: min(100%, 520px);
  padding: 38px 42px 46px;
  color: #151515;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #f1ede3 0%, #e6dfcf 100%);
  background-size: 5px 100%, 100% 100%;
  box-shadow: 0 34px 80px rgba(23, 23, 19, 0.26);
  font-family: var(--mono);
  overflow: hidden;
}

.race-receipt::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.55), transparent 18rem),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.035) 0 1px, transparent 1px 4px);
  mix-blend-mode: multiply;
  opacity: 0.42;
}

.race-receipt > * {
  position: relative;
  z-index: 1;
}

.receipt-logo-mark {
  display: grid;
  place-items: center;
  width: 120px;
  height: 36px;
  margin: 0 auto 18px;
}

.receipt-logo-mark img {
  width: 120px;
  height: auto;
  filter: invert(1);
}

.receipt-heading {
  text-align: center;
  text-transform: uppercase;
}

.receipt-heading p,
.receipt-heading span,
.receipt-code {
  margin: 0;
  color: rgba(21, 21, 21, 0.52);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
}

.receipt-heading h2 {
  margin: 8px 0 10px;
  color: #111;
  font-family: "Fjalla One", var(--display);
  font-size: 38px;
  line-height: 0.9;
  text-transform: uppercase;
}

.receipt-rule {
  height: 1px;
  margin: 22px 0 20px;
  background-image: linear-gradient(90deg, rgba(21, 21, 21, 0.5) 55%, transparent 0);
  background-size: 10px 1px;
}

.receipt-stats {
  display: grid;
  gap: 14px;
  margin: 0;
  text-transform: uppercase;
}

.receipt-stats div,
.receipt-sections li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.receipt-stats dt,
.receipt-sections p,
.receipt-sections span {
  color: rgba(21, 21, 21, 0.48);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.receipt-stats dd,
.receipt-sections b {
  margin: 0;
  color: #151515;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: right;
  white-space: nowrap;
}

.receipt-sections p {
  margin: 0 0 14px;
  text-transform: uppercase;
}

.receipt-sections ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-transform: uppercase;
}

.receipt-warning {
  display: grid;
  gap: 7px;
  margin: 22px 0 18px;
  text-align: center;
  text-transform: uppercase;
}

.receipt-warning span {
  color: var(--yellow);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.05;
}

.receipt-warning strong {
  color: #151515;
  justify-self: center;
  max-width: 360px;
  font-size: 13px;
  letter-spacing: 0.08em;
  line-height: 1.35;
}

.receipt-unlock {
  display: grid;
  gap: 12px;
  margin: 24px 0 18px;
  padding: 18px 0;
  border-top: 1px dashed rgba(21, 21, 21, 0.34);
  border-bottom: 1px dashed rgba(21, 21, 21, 0.34);
  font-family: var(--mono);
  text-transform: uppercase;
}

.receipt-unlock label:first-child {
  display: block;
  margin-bottom: 9px;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
}

.receipt-unlock input[type="text"],
.receipt-unlock input[type="email"] {
  width: 100%;
  border: 1px solid rgba(21, 21, 21, 0.28);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.32);
  color: #151515;
  font: inherit;
  font-size: 14px;
  padding: 12px;
  text-align: center;
}

.receipt-unlock input[type="text"] + input[type="email"] {
  margin-top: 9px;
}

.receipt-unlock input[type="text"]:focus,
.receipt-unlock input[type="email"]:focus {
  border-color: var(--yellow);
  outline: 1px solid var(--yellow);
  outline-offset: 2px;
}

.receipt-opt-in {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(21, 21, 21, 0.58);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.receipt-opt-in input {
  accent-color: var(--yellow);
}

.receipt-unlock button {
  justify-self: center;
  border: 1px solid var(--yellow);
  border-radius: 0;
  background: var(--yellow);
  color: #151515;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  padding: 10px 14px;
  text-transform: uppercase;
}

.receipt-unlock button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.receipt-unlock-status {
  margin: 0;
  color: rgba(21, 21, 21, 0.48);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.receipt-unlock-status.is-error {
  color: #c01872;
}

.receipt-unlock-status.is-success {
  color: rgba(21, 21, 21, 0.62);
}

.receipt-barcode {
  display: flex;
  justify-content: center;
  gap: 3px;
  height: 62px;
  margin: 0 auto 14px;
}

.receipt-barcode i {
  display: block;
  width: var(--bar-width, 2px);
  height: 100%;
  background: #111;
}

.receipt-barcode i:nth-child(3n) { --bar-width: 4px; }
.receipt-barcode i:nth-child(4n) { --bar-width: 1px; }
.receipt-barcode i:nth-child(7n) { --bar-width: 6px; }

.receipt-code {
  text-align: center;
}

.receipt-teeth {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22px;
  background:
    linear-gradient(135deg, transparent 50%, #050605 0) 0 0 / 22px 22px,
    linear-gradient(225deg, transparent 50%, #050605 0) 11px 0 / 22px 22px;
}

.receipt-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.receipt-actions button {
  border: 1px solid rgba(243, 241, 232, 0.26);
  border-radius: 0;
  background: rgba(243, 241, 232, 0.08);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  padding: 12px 15px;
  text-transform: uppercase;
}

.receipt-actions button:hover,
.receipt-actions button:focus {
  border-color: var(--yellow);
  color: var(--yellow);
  outline: 0;
}

.receipt-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.receipt-actions button:disabled:hover,
.receipt-actions button:disabled:focus {
  border-color: rgba(23, 23, 19, 0.2);
  color: var(--ink);
}

/* Light archive theme */
.hero-media {
  filter: saturate(0.9) contrast(1.08) brightness(0.98) sepia(0.04);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(232, 225, 210, 0.52), rgba(232, 225, 210, 0.12) 54%, rgba(232, 225, 210, 0.34)),
    linear-gradient(0deg, rgba(232, 225, 210, 0.66), rgba(232, 225, 210, 0.08) 62%);
}

.hero-ticker {
  color: #66711f;
  opacity: 0.2;
  mix-blend-mode: multiply;
}

.hero h1 span {
  color: rgba(23, 23, 19, 0.94);
  text-shadow: none;
}

.hero-subcopy,
.chapter-copy p,
.finish-copy p {
  color: var(--muted);
}

.scroll-cue span {
  background: var(--ink);
}

.intro,
.chapter {
  border-top-color: rgba(23, 23, 19, 0.12);
}

.intro::before,
.chapter::before {
  background:
    linear-gradient(90deg, rgba(232, 225, 210, 0.94), rgba(232, 225, 210, 0.68)),
    radial-gradient(circle at 18% 26%, rgba(122, 129, 46, 0.08), transparent 32rem);
}

.intro-copy p:not(.chapter-index),
.lede {
  color: rgba(23, 23, 19, 0.9) !important;
}

.goal-time input {
  background: rgba(246, 241, 229, 0.7);
  color: var(--ink);
}

.clock-strip {
  border-top-color: rgba(23, 23, 19, 0.16);
  border-bottom-color: rgba(23, 23, 19, 0.16);
  background: rgba(23, 23, 19, 0.12);
}

.clock-strip div {
  background: rgba(246, 241, 229, 0.76);
}

.tracker {
  border-left-color: rgba(23, 23, 19, 0.18);
  background:
    linear-gradient(180deg, rgba(246, 241, 229, 0.92), rgba(222, 213, 194, 0.9)),
    repeating-linear-gradient(0deg, rgba(23, 23, 19, 0.035) 0 1px, transparent 1px 5px);
  box-shadow: -12px 0 28px rgba(23, 23, 19, 0.08);
}

.route-line {
  background: rgba(23, 23, 19, 0.2);
}

.route-line i {
  background: var(--paper);
}

.chapter h2,
.finish h2 {
  color: rgba(23, 23, 19, 0.92);
}

.photo-panel,
.wide-photo {
  border-color: rgba(23, 23, 19, 0.16);
  background: #d8cfbc;
}

.photo-panel img,
.photo-panel video,
.wide-photo img,
.repeat-strip img {
  filter: saturate(0.7) contrast(1.02) brightness(1.08) sepia(0.08);
}

.photo-panel::after,
.wide-photo::after,
.video-panel::after {
  background:
    linear-gradient(rgba(232, 225, 210, 0.12), rgba(232, 225, 210, 0.12)),
    repeating-linear-gradient(0deg, rgba(23, 23, 19, 0.04) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}

.chapter-callout-overlay {
  color: #687120;
  opacity: 0.2;
  mix-blend-mode: multiply;
}

.chapter-start .chapter-callout-overlay {
  opacity: 0.2;
}

.chapter-math .chapter-callout-overlay,
.chapter-race .chapter-callout-overlay {
  opacity: 0.24;
}

.field-notes,
.road-notes {
  border-top-color: rgba(23, 23, 19, 0.16);
  border-bottom-color: rgba(23, 23, 19, 0.16);
  background: rgba(23, 23, 19, 0.12);
}

.field-notes span,
.road-notes span,
.time-summary,
.time-table-wrap {
  background: rgba(246, 241, 229, 0.72);
  color: var(--ink);
}

.number-wall {
  color: rgba(23, 23, 19, 0.07);
}

.chapter-paradise {
  background:
    linear-gradient(90deg, rgba(232, 225, 210, 0.98), rgba(232, 225, 210, 0.74)),
    radial-gradient(circle at 44% 34%, rgba(122, 129, 46, 0.12), transparent 28rem);
}

.repeat-strip {
  opacity: 0.82;
}

.time-calculator {
  border-top-color: rgba(23, 23, 19, 0.16);
  border-bottom-color: rgba(23, 23, 19, 0.16);
  background: rgba(23, 23, 19, 0.12);
}

.time-callouts li,
.finish-copy a,
.receipt-actions button {
  border-color: rgba(23, 23, 19, 0.2);
}

.time-table {
  color: var(--ink);
}

.time-table th,
.time-table td {
  border-bottom-color: rgba(23, 23, 19, 0.1);
}

.finish > img {
  filter: saturate(1.04) contrast(1.06) brightness(0.99);
}

.finish::after {
  background: linear-gradient(90deg, rgba(232, 225, 210, 0.24), rgba(232, 225, 210, 0.04) 34%, transparent 66%);
}

.receipt-section {
  background:
    radial-gradient(circle at 50% 38%, rgba(124, 167, 176, 0.13), transparent 30rem),
    radial-gradient(circle at 50% 42%, rgba(23, 23, 19, 0.12), transparent 34rem),
    linear-gradient(180deg, #d7cdb8 0%, #c9bea6 100%);
}

.receipt-section .race-receipt {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #f7f1e5 0%, #ece3d2 100%);
}

.receipt-actions button {
  background: rgba(246, 241, 229, 0.7);
  color: var(--ink);
}

@media (max-width: 1180px) {
  .hero,
  .intro,
  .chapter,
  .finish,
  .receipt-section {
    padding-right: clamp(22px, 6vw, 72px);
  }

  .tracker {
    top: auto;
    right: 18px;
    bottom: 18px;
    width: min(calc(100vw - 36px), 740px);
    min-width: 0;
    height: auto;
    max-height: 40svh;
    border: 1px solid rgba(243, 241, 232, 0.2);
  }

  .tracker:hover,
  .tracker:focus,
  .tracker:focus-within {
    width: min(calc(100vw - 36px), 740px);
  }

  .tracker-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  .tracker-title,
  .status-list,
  .mini-route {
    display: none;
  }

  .km-readout {
    width: 100%;
    padding: 0;
    border: 0;
    text-align: left;
  }

  .km-readout strong {
    font-size: 42px;
  }
}

@media (max-width: 760px) {
  .topbar {
    height: 88px;
  }

  .bs-toolbar {
    height: 32px;
    font-size: 12px;
    line-height: 32px;
  }

  .bs-sports a {
    min-width: 96px;
  }

  .bs-currency {
    padding-right: 16px;
  }

  .bs-mainnav {
    grid-template-columns: 1fr 142px 1fr;
    height: 56px;
  }

  .bs-primary {
    overflow: auto;
    padding-left: 14px;
    scrollbar-width: none;
  }

  .bs-primary::-webkit-scrollbar {
    display: none;
  }

  .bs-primary a {
    padding: 5px 10px;
    white-space: nowrap;
  }

  .bs-logo,
  .bs-logo img {
    width: 142px;
  }

  .bs-actions {
    gap: 12px;
    padding-right: 14px;
  }

  .bs-actions svg,
  .bs-cart,
  .bs-cart span {
    width: 21px;
    height: 21px;
  }

  .section {
    padding: 78px 18px 112px;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-ticker {
    font-size: clamp(26px, 8vw, 42px);
  }

  .hero h1,
  .chapter h2,
  .finish h2 {
    font-size: clamp(42px, 12vw, 60px);
    white-space: normal;
  }

  .hero h1 {
    font-size: clamp(42px, 12vw, 60px);
  }

  .chapter,
  .chapter-coast,
  .chapter-paradise {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
  }

  .intro {
    min-height: auto;
  }

  .intro-copy {
    width: 100%;
  }

  .goal-time {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .clock-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .chapter-math .photo-panel {
    order: 0;
  }

  .evidence-grid,
  .field-notes,
  .road-notes {
    grid-template-columns: 1fr;
  }

  .number-wall,
  .km-column {
    display: none;
  }

  .chapter-start .chapter-callout-overlay,
  .chapter-math .chapter-callout-overlay,
  .chapter-race .chapter-callout-overlay {
    left: 18px;
    right: 18px;
    top: 52% !important;
    width: auto;
    font-size: clamp(24px, 8vw, 42px);
    opacity: 0.4;
  }

  .chapter-race {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .time-calculator {
    grid-template-columns: 1fr;
  }

  .time-summary {
    gap: 18px;
  }

  .repeat-strip {
    grid-template-columns: 1fr;
    height: 420px;
  }

  .repeat-strip img:nth-child(n + 2) {
    display: none;
  }

  .tracker {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    max-height: none;
  }

  .tracker-inner {
    align-items: center;
  }

  .km-readout strong {
    font-size: 36px;
  }

  .receipt-section {
    min-height: auto;
    padding-top: 112px;
  }

  .race-receipt {
    width: 100%;
    padding: 34px 24px 44px;
  }

  .receipt-logo-mark,
  .receipt-logo-mark img {
    width: 108px;
  }

  .receipt-heading h2 {
    font-size: 31px;
  }

  .receipt-heading p,
  .receipt-heading span,
  .receipt-code {
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  .receipt-stats dt,
  .receipt-sections p,
  .receipt-sections span,
  .receipt-stats dd,
  .receipt-sections b {
    font-size: 13px;
  }

  .receipt-barcode {
    gap: 2px;
    height: 58px;
  }

  .receipt-actions {
    width: 100%;
  }

  .receipt-actions button {
    flex: 1 1 150px;
  }

}
