@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@300..700&display=swap");

:root {
  /* Sampled from the Figma export (node 4264-5), not eyeballed. */
  --yellow: #fdda24;
  --black: #000000;
  --white: #ffffff;
  --cream: #f7f6f2;
  --line: #dfddd6;
  --text-muted: #a7a7a7;
  /* Sections bleed to the viewport edge on wide screens, matching the
     full-bleed Figma; interior spacing is padding-based. Set a px value to
     reintroduce a cap. */
  --page-width: 100%;
  --section-gap: 0;
  --gutter: 24px;
  --radius-pill: 999px;
  --shadow-glow: 0 0 14px rgba(248, 212, 35, 0.55);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Instrument Sans", sans-serif;
  background: var(--white);
  color: var(--black);
  overflow-x: clip;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header,
.timeline,
.prizes,
.faq,
.site-footer {
  width: min(100%, var(--page-width));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  min-height: 76px;
  background: var(--white);
}

.brand__logo,
.site-footer__logo {
  width: 112px;
  object-fit: contain;
}

.site-nav,
.site-footer__nav,
.site-footer__meta,
.site-footer__social {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Hamburger toggle — mobile only; see the 820px query. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--black);
  cursor: pointer;
}

.nav-toggle__close {
  display: none;
}

body.nav-open .nav-toggle__open {
  display: none;
}

body.nav-open .nav-toggle__close {
  display: block;
}

.site-nav__cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* One standard CTA size everywhere; sections may recolor but not resize. */
.button {
  min-height: 52px;
  padding: 0 28px;
  font-size: 0.9rem;
  align-self: flex-start;
}

/* The nav pill is navigation, not a section CTA — it stays compact. */
.site-nav__cta {
  min-height: 36px;
  padding: 0 16px;
  font-size: 11px;
}

.site-nav__cta::after,
.button::after {
  content: "\2192";
  font-size: 13px;
  line-height: 1;
}

.site-nav__cta,
.button--yellow {
  background: var(--yellow);
}

.button--dark {
  background: var(--black);
  color: var(--yellow);
}

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

.hero,
.grid--support,
.grid--lisbon {
  display: block;
  width: 100%;
}

.hero__inner,
.stats__inner,
.challenge__inner {
  width: min(100%, var(--page-width));
  margin: 0 auto;
}

.hero__inner,
.build-section__inner,
.grid--flush__inner,
.grid--flush__inner,
.grid--support__inner,
.grid--lisbon__inner,
.final-cta__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Column splits below are the design's colour boundaries measured at 1440:
   hero x=790, support x=860, Lisbon x=610. */
.hero__inner {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: clamp(620px, 48vw, 820px);
  grid-template-columns: 790fr 650fr;
}

.grid--support__inner {
  grid-template-columns: 860fr 580fr;
}

.grid--lisbon__inner {
  grid-template-columns: 610fr 830fr;
}

.build-section__inner,
.grid--flush__inner,
.grid--support__inner,
.grid--lisbon__inner,
.final-cta__inner {
  width: 100%;
  max-width: none;
  margin: 0;
}

.hero__panel,
.panel,
.track,
.support,
.lisbon-copy,
.lisbon-image {
  min-height: 420px;
}

.hero__panel {
  min-height: 0;
}

.hero__panel--copy {
  background: var(--yellow);
  padding: 54px 68px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__panel--image {
  position: relative;
  overflow: hidden;
}

.hero__panel--image > img:first-child,
.lisbon-image img {
  height: 100%;
  object-fit: cover;
}

.hero__panel--image > img:first-child {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Two overlay pieces, scoped to the photo panel and aspect-true. Placement
   mirrors the source artwork's own geometry: the HACK letterforms band the
   top from 6% in, the chevron marks hold the lower-left 62%. */
.hero__overlay-letters,
.hero__overlay-marks {
  position: absolute;
  z-index: 2;
  height: auto;
  pointer-events: none;
}

.hero__overlay-letters {
  top: 0;
  right: 0;
  width: 94%;
}

.hero__overlay-marks {
  left: 0;
  bottom: 0;
  width: 62%;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.28em;
}

.hero h1,
.display,
.timeline h2,
.support h2,
.lisbon-copy h2,
.faq h2,
.final-cta h2 {
  margin: 0;
  letter-spacing: -0.06em;
  line-height: 0.92;
}

/* The design uses a heavy weight for exactly three headings — the hero, the
   build panel and the closing CTA — and a light weight for every section
   heading. Keep the two groups separate. */
.hero h1,
.display,
.final-cta h2 {
  font-weight: 700;
}

.timeline h2,
.support h2,
.lisbon-copy h2,
.faq h2,
.prizes__headline {
  font-weight: 300;
}

/* Two lines in the design ("Build something" / "worth shipping."); the old
   7.4ch clamp forced roughly one word per line. */
.hero h1 {
  max-width: none;
  font-size: clamp(3.5rem, 6.4vw, 5.75rem);
}

.hero__lede,
.hero__meta,
.panel p,
.track p,
.support p,
.timeline__footer,
.lisbon-copy p,
.prizes p,
.faq p,
.final-cta__meta {
  max-width: 42ch;
  font-size: 0.95rem;
  line-height: 1.45;
}

.hero__lede {
  margin: 24px 0 22px;
  max-width: 44ch;
  font-size: 1.05rem;
}

.hero__meta {
  margin: 0 0 34px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
}

.stats {
  background: var(--black);
  color: var(--yellow);
}

.stats__inner {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 24px;
  padding: 54px 48px 48px;
}

.stats__eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.stats__heading {
  margin: 0;
  color: var(--white);
  font-size: clamp(2rem, 3.4vw, 3.6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.stat__value {
  font-size: clamp(4rem, 8.4vw, 6.6rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.86;
  font-variant-numeric: tabular-nums;
  /* Motion-blur echo trailing up-left, matching the design's repeat. */
  text-shadow:
    -0.04em -0.03em 0 rgba(253, 218, 36, 0.4),
    -0.08em -0.06em 0 rgba(253, 218, 36, 0.26),
    -0.12em -0.09em 0 rgba(253, 218, 36, 0.16),
    -0.16em -0.12em 0 rgba(253, 218, 36, 0.09),
    -0.2em -0.15em 0 rgba(253, 218, 36, 0.05);
}

.stat__label {
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  white-space: nowrap;
}

.stat__label-key {
  color: var(--yellow);
}

.panel,
.track,
.support,
.lisbon-copy,
.faq,
.timeline,
.prizes,
.final-cta {
  padding: 54px 52px;
}

.panel--white {
  background: var(--white);
}

.panel--cream {
  background: var(--cream);
}

.display {
  font-size: clamp(3rem, 5.5vw, 4.8rem);
  max-width: 8ch;
}

.panel--white p {
  margin: 22px 0 28px;
}

.panel--list {
  display: flex;
  align-items: center;
}

.panel--list ol {
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

.panel--list li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.1;
}

.panel--list li::before {
  counter-increment: steps;
  content: "0" counter(steps);
  color: var(--yellow);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.panel--list ol {
  counter-reset: steps;
}

.build-section {
  position: relative;
  overflow: hidden;
  background: var(--white);
}

.build-section__inner {
  position: relative;
}

.build-section__panel {
  position: relative;
  z-index: 1;
  min-height: 520px;
  padding: 62px 64px 112px;
}

.build-section__panel--left {
  background: var(--white);
}

.build-section__panel--right {
  background: var(--cream);
}

/* The heading's line breaks come from its own <br>; a ch clamp would add a
   third wrap that the design doesn't have. */
.build-section .display {
  max-width: none;
  font-size: clamp(4rem, 6vw, 5.9rem);
  line-height: 0.88;
  letter-spacing: -0.08em;
}

.build-section__panel--left p {
  margin: 28px 0 30px;
  max-width: 56ch;
  font-size: 0.95rem;
  line-height: 1.35;
}

.build-section__panel--left .button {
  color: var(--black);
}

.build-section__panel--left .button::after {
  margin-left: 10px;
}

.build-section__panel--right {
  display: flex;
  align-items: center;
}

.build-section__panel--right ol {
  width: 100%;
  margin-top: 6px;
}

.build-section__panel--right li {
  gap: 22px;
  padding: 18px 0;
  font-size: clamp(2rem, 3vw, 2.35rem);
  font-weight: 400;
  line-height: 1.15;
}

.build-section__panel--right li::before {
  color: var(--yellow);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  min-width: 34px;
}

.build-section__pattern {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  z-index: 2;
  background-image: url("assets/panel-pattern.png");
  background-repeat: repeat-x;
  background-position: left bottom;
  /* Scale the tile with the strip so the chevrons are never clipped when
     the strip height changes at other breakpoints. */
  background-size: auto 100%;
  pointer-events: none;
}

.grid--flush .track {
  min-height: 430px;
  position: relative;
  padding: 48px 60px 52px;
}

.track--yellow {
  background: var(--yellow);
}

.track--black {
  background: var(--black);
  color: var(--white);
}

.track__title {
  margin: 0 0 28px;
  font-size: clamp(5.6rem, 10.35vw, 9.3rem);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: -0.08em;
  line-height: 0.82;
}

.track h3 {
  margin: 0 0 22px;
  font-size: clamp(2rem, 2.8vw, 2.5rem);
  font-weight: 400;
}

.track > p:not(.track__title) {
  max-width: 22ch;
  font-size: 1.05rem;
  line-height: 1.45;
}

.track--black h3 {
  color: var(--yellow);
}

.track__tag {
  display: inline-block;
  margin-top: 30px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.34em;
}

.grid--flush {
  position: relative;
  display: block;
  width: 100%;
}

.grid--flush__inner {
  position: relative;
  width: min(100%, var(--page-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.challenge {
  background: var(--black);
  color: var(--white);
}

.challenge__inner {
  padding: 50px 52px 64px;
}

.challenge__intro {
  margin: 0 0 54px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 300;
  letter-spacing: -0.04em;
}

.challenge__wordmark {
  display: grid;
  place-items: center;
  min-height: 168px;
  margin-top: 36px;
  perspective: 1800px;
  perspective-origin: center center;
}

.challenge__wordmark-stage {
  position: relative;
  width: min(88vw, 1160px);
  height: 112px;
  transform-style: preserve-3d;
  overflow: hidden;
  will-change: transform;
}

.challenge__wordmark-text {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  padding: 0 12px;
  margin: 0;
  color: var(--yellow);
  font-size: clamp(4rem, 7vw, 7.8rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
  transform-origin: center center;
  backface-visibility: hidden;
  will-change: transform, opacity, filter;
  transform-style: preserve-3d;
}

.challenge__wordmark-text--current {
  transform: translate3d(-50%, -50%, 56px) rotateX(0deg);
  opacity: 1;
  filter:
    drop-shadow(0 4px 0 rgba(248, 212, 35, 0.28))
    drop-shadow(0 8px 0 rgba(248, 212, 35, 0.18))
    drop-shadow(0 12px 0 rgba(248, 212, 35, 0.1));
}

.challenge__wordmark-text--next {
  transform: translate3d(-50%, calc(-50% + 56px), 0) rotateX(-90deg);
  opacity: 1;
  filter:
    drop-shadow(0 3px 0 rgba(248, 212, 35, 0.22))
    drop-shadow(0 6px 0 rgba(248, 212, 35, 0.12))
    brightness(0.96);
}

.challenge__wordmark-stage.is-rotating .challenge__wordmark-text--current {
  animation: challengeWordOut 820ms cubic-bezier(0.55, 0, 0.2, 1) forwards;
}

.challenge__wordmark-stage.is-rotating .challenge__wordmark-text--next {
  animation: challengeWordIn 820ms cubic-bezier(0.32, 0.94, 0.6, 1) forwards;
}

@keyframes challengeWordOut {
  0% {
    transform: translate3d(-50%, -50%, 56px) rotateX(0deg);
    opacity: 1;
    filter:
      drop-shadow(0 4px 0 rgba(248, 212, 35, 0.28))
      drop-shadow(0 8px 0 rgba(248, 212, 35, 0.18))
      drop-shadow(0 12px 0 rgba(248, 212, 35, 0.1));
  }
  100% {
    transform: translate3d(-50%, calc(-50% - 56px), 0) rotateX(90deg);
    opacity: 1;
    filter:
      drop-shadow(0 2px 0 rgba(248, 212, 35, 0.22))
      drop-shadow(0 5px 0 rgba(248, 212, 35, 0.14))
      brightness(0.88);
  }
}

@keyframes challengeWordIn {
  0% {
    transform: translate3d(-50%, calc(-50% + 56px), 0) rotateX(-90deg);
    opacity: 0.92;
    filter:
      drop-shadow(0 2px 0 rgba(248, 212, 35, 0.18))
      drop-shadow(0 5px 0 rgba(248, 212, 35, 0.1))
      brightness(0.86);
  }
  100% {
    transform: translate3d(-50%, -50%, 56px) rotateX(0deg);
    opacity: 1;
    filter:
      drop-shadow(0 4px 0 rgba(248, 212, 35, 0.28))
      drop-shadow(0 8px 0 rgba(248, 212, 35, 0.18))
      drop-shadow(0 12px 0 rgba(248, 212, 35, 0.1));
  }
}

.support--black {
  background: var(--black);
  color: var(--white);
}

.support--yellow {
  background: var(--yellow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.support h2 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  margin-bottom: 22px;
}

.support--yellow h2 {
  color: var(--white);
  font-size: clamp(3rem, 5.4vw, 4.8rem);
}

.support__chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 20px;
}

.support__chips span {
  min-height: 70px;
  padding: 18px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  box-shadow: inset 0 2px 0 0 var(--yellow);
  font-size: 0.7rem;
  line-height: 1.35;
}

.support__note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.support__ai-mark {
  width: 78px;
  height: auto;
  margin-top: 16px;
}

.timeline {
  background: var(--white);
  position: relative;
  overflow: hidden;
  padding: 56px 60px 64px;
}

.timeline h2 {
  font-size: clamp(2.8rem, 4.9vw, 4.5rem);
  font-weight: 400;
  max-width: none;
  letter-spacing: -0.07em;
  line-height: 0.94;
}

.timeline__headline-line {
  display: block;
  white-space: nowrap;
}

.timeline__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
  margin-top: 44px;
  padding-top: 0;
  z-index: 1;
}

.timeline__line {
  position: absolute;
  top: 13px;
  left: 12px;
  right: 12px;
  height: 1px;
  background: var(--black);
}

.timeline__step {
  display: grid;
  grid-template-rows: 26px auto;
  row-gap: 18px;
  min-width: 0;
}

.timeline__marker {
  position: relative;
}

.timeline__dot {
  position: absolute;
  top: 1px;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--black);
  background: var(--white);
}

.timeline__step--filled .timeline__dot {
  background: var(--yellow);
  border-color: var(--yellow);
}

.timeline__label {
  margin: 0 0 10px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.34em;
}

.timeline__copy {
  margin: 0;
  max-width: 16ch;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
}

.timeline__footer {
  position: relative;
  margin: 110px 0 0;
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  z-index: 1;
}

.timeline__marks {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 14px;
  align-items: flex-end;
  opacity: 0.9;
  pointer-events: none;
}

.timeline__marks img {
  width: 130px;
  height: auto;
}

.lisbon-copy {
  background: var(--black);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lisbon-copy h2 {
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  margin-bottom: 18px;
}

.lisbon-copy p {
  margin: 0 0 10px;
}

.lisbon-copy .button {
  align-self: flex-start;
  margin-top: 20px;
}

.lisbon-copy .button--yellow {
  color: var(--black);
}

.prizes {
  display: grid;
  grid-template-columns: 0.7fr 1.5fr 1.3fr 1fr;
  gap: 18px;
  align-items: start;
  background: var(--cream);
}

.prizes p {
  margin: 0;
}

.prizes__eyebrow {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.26em;
}

.prizes__headline {
  font-size: clamp(2.8rem, 4.8vw, 4.6rem);
  line-height: 0.98;
}

.prizes__detail {
  font-size: 0.9rem;
  line-height: 1.4;
}

.prizes__detail--muted {
  color: var(--text-muted);
}

.faq {
  background: var(--white);
}

.faq h2 {
  margin-bottom: 26px;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 400;
}

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

.faq__item:last-of-type {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  cursor: pointer;
  list-style: none;
  font-size: 0.92rem;
}

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

.faq summary::after {
  content: "+";
  font-size: 1rem;
}

.faq details[open] summary::after {
  content: "-";
}

.faq details p {
  margin: 0 0 18px;
  color: #444;
}

.faq > .button {
  margin-top: 22px;
}

.final-cta {
  background: var(--black);
  color: var(--white);
  padding: 0;
  overflow: hidden;
}

.final-cta__inner {
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.final-cta__image {
  min-height: 520px;
}

.final-cta__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.eyebrow--yellow {
  color: var(--yellow);
}

.final-cta__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 88px 86px 76px;
}

.final-cta h2 {
  margin-bottom: 28px;
  max-width: none;
  font-size: clamp(3.4rem, 6.67vw, 6rem);
  line-height: 0.88;
  letter-spacing: -0.09em;
}

.final-cta__line {
  display: block;
}

.final-cta__line--ship {
  white-space: nowrap;
}

.final-cta__line--ship span {
  color: var(--yellow);
  text-shadow:
    8px 0 0 rgba(248, 212, 35, 0.32),
    16px 0 0 rgba(248, 212, 35, 0.24),
    24px 0 0 rgba(248, 212, 35, 0.18),
    32px 0 0 rgba(248, 212, 35, 0.12),
    40px 0 0 rgba(248, 212, 35, 0.08),
    48px 0 0 rgba(248, 212, 35, 0.05);
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-left: 0.12ch;
  transform: translateZ(0);
}

.final-cta__meta {
  margin: 0 0 34px;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.final-cta .button {
  color: var(--black);
}

.site-footer {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 26px 20px;
  background: var(--yellow);
  font-size: 0.68rem;
}

.site-footer__nav {
  text-transform: uppercase;
  font-weight: 700;
}

.site-footer__meta {
  justify-content: center;
  flex-wrap: wrap;
  color: rgba(5, 5, 5, 0.72);
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
}

.site-footer__social svg {
  display: block;
  width: auto;
}

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

  /* Below the width where six steps fit on one row, the timeline becomes a
     vertical rail: dot left, text right, connector drawn per step so it
     always meets the next dot and stops at the last one. */
  .timeline__steps {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .timeline__line {
    display: none;
  }

  .timeline__step {
    position: relative;
    grid-template-columns: 26px 1fr;
    grid-template-rows: auto;
    column-gap: 16px;
    row-gap: 0;
    align-items: start;
  }

  .timeline__step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 11.5px; /* centre of the 24px dot */
    top: 25px;
    bottom: -26px; /* spans the 26px row gap to reach the next dot */
    width: 1px;
    background: var(--black);
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .site-footer__meta {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  /* The nav collapses into a hamburger with a full-screen yellow overlay.
     The header goes yellow and sticky so the toggle stays reachable and
     blends with the hero beneath it, as in the design mock. */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--yellow);
  }

  /* Keep the logo and toggle painted above the fixed overlay, which is a
     sibling inside the same header stacking context. */
  .brand,
  .nav-toggle {
    position: relative;
    z-index: 95;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
  }

  body.nav-open .site-nav {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: var(--yellow);
    padding: 100px 24px 32px;
    overflow-y: auto;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .site-nav a:not(.site-nav__cta) {
    display: block;
    padding: 22px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.16);
    font-size: 1.5rem;
    letter-spacing: 0.06em;
  }

  body.nav-open .site-nav__cta {
    display: flex;
    width: 100%;
    min-height: 52px;
    margin-top: 32px;
    font-size: 0.9rem;
    background: var(--black);
    color: var(--yellow);
  }

  /* Anchor targets clear the sticky header instead of sliding under it. */
  #build,
  #program,
  #lisbon,
  #faq,
  #apply {
    scroll-margin-top: 84px;
  }

  .hero__inner,
  .build-section__inner,
  .grid--flush__inner,
  .grid--support__inner,
  .grid--lisbon__inner,
  .final-cta__inner,
  .timeline__steps,
  .support__chips,
  .prizes {
    grid-template-columns: 1fr;
  }

  .hero__panel,
  .panel,
  .track,
  .support,
  .lisbon-copy,
  .lisbon-image {
    min-height: auto;
  }

  .hero__panel--copy,
  .panel,
  .track,
  .support,
  .timeline,
  .prizes,
  .faq,
  .final-cta,
  .lisbon-copy {
    padding: 36px 22px;
  }

  .challenge {
    padding: 40px 0 48px;
  }

  /* Desktop side padding lives on the inner wrapper; without this reset it
     stacked with the section padding and the 88vw stage overflowed the page. */
  .challenge__inner {
    padding: 10px 22px 16px;
  }

  .challenge__wordmark-stage {
    width: 100%;
  }

  .site-header {
    padding: 16px;
    gap: 12px;
  }

  .site-nav {
    gap: 12px;
    font-size: 10px;
  }

  .hero__inner {
    min-height: auto;
  }

  .stats__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 36px;
    padding: 40px 22px 36px;
  }

  .stats__intro {
    grid-column: 1 / -1;
  }

  .stat__value {
    font-size: 3.6rem;
  }

  /* Stacked panels give the overlay nothing sensible to span on mobile. */
  .hero__overlay-letters,
  .hero__overlay-marks {
    display: none;
  }

  .hero__meta {
    white-space: normal;
  }

  .hero__panel--copy {
    padding: 48px 22px 36px;
  }

  /* The image is absolutely positioned on desktop, which contributes no height —
     with min-height dropped the panel collapsed to 0 and the photograph vanished.
     Put it back in flow so it stacks below the copy, as the design requires. */
  .hero__panel--image > img:first-child {
    position: static;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .panel--list li {
    font-size: 1.4rem;
  }

  .build-section__panel {
    min-height: auto;
    padding: 36px 22px 72px;
  }

  .build-section__pattern {
    height: 32px;
  }

  .build-section .display {
    max-width: 8ch;
    font-size: 3.3rem;
  }

  .build-section__panel--right li {
    font-size: 1.45rem;
    gap: 14px;
    padding: 12px 0;
  }


  .final-cta__content {
    padding: 44px 22px 36px;
  }

  .final-cta h2 {
    font-size: 3.8rem;
    margin-bottom: 20px;
  }

  .final-cta__line--ship {
    white-space: normal;
  }

  /* "SHIP?" wraps to its own line here. It is all caps, so cap height fills
     the tight 0.88 line box and reads closer than the lowercase lines above;
     a small optical margin restores even perceived spacing. */
  .final-cta__line--ship span {
    display: block;
    margin-top: 0.09em;
  }

  .final-cta__meta {
    margin-bottom: 24px;
    font-size: 0.76rem;
  }

  .final-cta__image {
    min-height: 360px;
  }


  .grid--flush .track {
    min-height: auto;
    padding: 36px 22px;
  }

  .track__title {
    font-size: 5.6rem;
    margin-bottom: 18px;
  }

  .track h3 {
    margin-bottom: 14px;
    font-size: 1.9rem;
  }

  .track > p:not(.track__title) {
    font-size: 1rem;
  }

  .track__tag {
    margin-top: 20px;
    font-size: 0.68rem;
  }


  .timeline {
    padding: 36px 22px 140px;
  }

  .timeline__line {
    display: none;
  }

  .timeline__marks {
    right: 12px;
    gap: 8px;
  }

  .timeline__marks img {
    width: 54px;
  }

  /* Step layout, dot geometry and connector are inherited from the 1120px
     query so the rail stays aligned at every narrow width. */
  .timeline__steps {
    margin-top: 28px;
  }

  .timeline__footer {
    margin-top: 44px;
  }

  .timeline__headline-line {
    white-space: normal;
  }


}
