@font-face { font-family: "Plex"; font-weight: 400; font-display: swap; src: url("fonts/IBMPlexSans-Regular.woff") format("woff"); }
@font-face { font-family: "Plex"; font-weight: 500; font-display: swap; src: url("fonts/IBMPlexSans-Medium.woff") format("woff"); }
@font-face { font-family: "Plex"; font-weight: 600; font-display: swap; src: url("fonts/IBMPlexSans-SemiBold.woff") format("woff"); }

:root {
  --signal: #f7ce46;            /* hit colour of the stand screen */
  --bg: #0d0e10;
  --ink: #edeef0;
  --ink-soft: #a3a7ad;
  --line: #2a2d32;
  --gutter: 1.25rem;
  --max: 82rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.55 "Plex", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, dl, dd, figure { margin: 0; }
ol { padding: 0; list-style: none; }
::selection { background: var(--signal); color: #111214; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

/* ---- shared pieces ---- */
.label {
  font-size: .75rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
}
.label::before {
  content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .6rem;
  border: 2px solid var(--signal); border-radius: 50%; vertical-align: .02em;
}
.icon { display: block; width: 1.75rem; height: 1.75rem; stroke: currentColor; }
.num {
  display: block; font-size: .8125rem; font-weight: 500; letter-spacing: .08em;
  font-variant-numeric: tabular-nums; color: var(--signal);
}
h2 {
  font-size: clamp(1.75rem, 6.4vw, 2.75rem);
  font-weight: 600; line-height: 1.1; letter-spacing: -.022em; text-wrap: balance;
}
h2 span { display: block; }
.band__head h2 span + span { color: var(--ink-soft); }
h3 { font-size: 1.1875rem; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.lead { max-width: 34rem; font-size: 1.125rem; color: var(--ink-soft); }

.button {
  display: inline-flex; align-items: center; min-height: 3.25rem; padding: 0 1.5rem;
  background: var(--signal); color: #111214;
  font-weight: 600; text-decoration: none; border-radius: .25rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 0 0 3px rgb(247 206 70 / .25); }
.button:active { transform: none; }
.textlink {
  font-weight: 500; text-decoration: none; padding: .5rem 0;
  border-bottom: 1px solid var(--line); transition: border-color .2s;
}
.textlink:hover { border-color: var(--ink); }

/* ---- top bar ---- */
.top {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto;
  padding: 1.1rem var(--gutter);
}
.logo { height: 1.75rem; width: auto; }
.top__mail { font-size: .9375rem; }

/* ---- hero ---- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: 2.5rem var(--gutter) 4rem;
  display: grid; gap: 2.75rem;
}
h1 {
  margin-top: 1.1rem;
  font-size: clamp(2.25rem, 9.2vw, 4.25rem);
  font-weight: 600; line-height: 1.04; letter-spacing: -.028em;
}
h1 span { display: block; text-wrap: balance; }
h1 span + span { color: var(--ink-soft); }
.hero .lead { margin-top: 1.35rem; }
.hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }

.pilot { margin-top: 1.75rem; max-width: 30rem; font-size: .875rem; color: var(--ink-soft); }
.pilot .dot { vertical-align: .05em; }

.stand { margin-inline: calc(var(--gutter) * -1); }
.stand__screen {
  position: relative; overflow: hidden;
  border-block: 1px solid var(--line);
  background: #000;
}
.stand__hit {
  /* centre of the newest hit in the picture: 664 / 718 of 1920 x 1080 */
  position: absolute; left: 34.58%; top: 66.5%;
  width: 4.3%; aspect-ratio: 1; translate: -50% -50%;
  border: 2px solid var(--signal); border-radius: 50%;
  opacity: 0; pointer-events: none;
}
.readout {
  display: flex; flex-wrap: wrap; gap: .35rem 1.5rem;
  padding: .85rem var(--gutter) 0;
  font-size: .8125rem; font-variant-numeric: tabular-nums;
}
.readout b { font-weight: 500; letter-spacing: .12em; text-transform: uppercase; font-size: .6875rem; color: var(--ink-soft); margin-right: .4rem; }
.readout__note { color: var(--ink-soft); flex-basis: 100%; }

/* ---- sections ---- */
.band {
  max-width: var(--max); margin: 0 auto;
  padding: 4rem var(--gutter);
  border-top: 1px solid var(--line);
  scroll-margin-top: 1rem;
}
.band__head h2 { margin-top: 1rem; max-width: 34ch; }
.band__head + * { margin-top: 2.5rem; }

/* four points: rows on the phone, columns divided by hairlines on wide screens */
.points li { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.points li:last-child { padding-bottom: 0; }
.points .icon { margin-top: 1rem; }
.points h3 { margin-top: .9rem; }
.points p, .steps p, .shots p, .tech p { margin-top: .6rem; color: var(--ink-soft); font-size: 1rem; }

/* technology: tagged entries, two by two on wide screens */
.tech { margin-bottom: 0; padding: 0; list-style: none; }
.tech li { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.tech li:last-child { padding-bottom: 0; }
.tech__top { display: flex; align-items: center; gap: .85rem; }
.tech__top .icon { color: var(--signal); }
.tech h3 { margin-top: 1.1rem; font-size: 1.375rem; }
.tag {
  display: inline-block; padding: .2rem .55rem;
  border: 1px solid var(--line); border-radius: 2rem;
  font-size: .6875rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
}

/* one run: a photo of the stop, the three steps beside it on wide screens */
.run { display: grid; gap: 2.5rem; }
.run__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 28%; border: 1px solid var(--line); border-radius: .375rem; }
.run__photo figcaption { margin-top: .75rem; font-size: .8125rem; color: var(--ink-soft); }

/* three steps: a yellow line is drawn above each as it comes into view */
.steps { display: grid; gap: 2rem; }
.steps li { position: relative; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.steps li::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 100%; height: 1px;
  background: var(--signal); transform-origin: left;
}
.steps .num { font-size: 2.5rem; font-weight: 600; line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.steps h3 { margin-top: .9rem; }

/* interface pictures: swipe on the phone, three across on wide screens */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 1rem;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shots figure { scroll-snap-align: start; }
.shots a { display: block; cursor: zoom-in; }
.shots img { border: 1px solid var(--line); border-radius: .375rem; }
.shots h3 { margin-top: 1rem; }

/* roadmap: three stations on one line; the line is yellow up to today,
   runs down the left on the phone and across the top on wide screens */
.road { --node: 1.125rem; display: grid; }
.road__step { position: relative; padding: 0 0 2.75rem calc(var(--node) + 1.25rem); }
.road__step:last-child { padding-bottom: 0; }
.road__step::before {
  content: ""; position: absolute; left: calc(var(--node) / 2 - 1px); top: var(--node); bottom: 0; width: 2px;
  background: var(--line); transform-origin: top;
}
.road__step.is-now::before { background: linear-gradient(var(--signal), var(--line)); }
.road__step:last-child::before { display: none; }
.road__node {
  position: absolute; left: 0; top: 0; width: var(--node); height: var(--node);
  border-radius: 50%; border: 2px solid var(--ink-soft); background: var(--bg);
}
.is-now .road__node { border-color: var(--signal); background: var(--signal); box-shadow: 0 0 0 5px rgb(247 206 70 / .18); }
.is-next .road__node { border-color: var(--signal); }
.road__when { font-size: .75rem; font-weight: 500; line-height: var(--node); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.is-now .road__when { color: var(--signal); }
.road h3 { margin-top: .9rem; font-size: 1.375rem; }
.road h3 + p { margin-top: .6rem; color: var(--ink-soft); font-size: 1rem; }

.dot { display: inline-block; width: .5rem; height: .5rem; margin-right: .6rem; border-radius: 50%; border: 1px solid var(--ink-soft); }
.dot--on { border-color: var(--signal); background: var(--signal); }

/* ---- origin: one large statement; the picture of a range sits below it
        on the phone and behind it on wide screens ---- */
.origin {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.origin__bg { order: 2; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 72% 50%; }
.origin__text {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 4.5rem var(--gutter) 3rem;
}
.origin h2 { margin-top: 1rem; font-size: clamp(2.5rem, 12vw, 6.5rem); line-height: 1; letter-spacing: -.035em; }
.origin h2 span { color: var(--signal); }
.origin .lead { margin-top: 1.75rem; max-width: 38rem; color: var(--ink); }
.origin .label { color: var(--ink); }

/* ---- contact ---- */
.contact {
  max-width: var(--max); margin: 0 auto;
  padding: 5rem var(--gutter) 5.5rem;
}
.contact h2 { margin-top: 1rem; }
.contact .lead { margin-top: 1.1rem; }
.mail {
  display: inline-block; margin-top: 2.5rem;
  font-size: clamp(2rem, 10.5vw, 6.5rem); font-weight: 600; line-height: 1.1; letter-spacing: -.035em;
  text-decoration: none;
  background: linear-gradient(var(--signal), var(--signal)) left bottom / 100% 2px no-repeat;
  padding-bottom: .12em;
  transition: background-size .35s var(--ease), color .2s;
}
.mail:hover { background-size: 100% 100%; color: #111214; }

.foot {
  max-width: var(--max); margin: 0 auto;
  padding: 1.75rem var(--gutter) 2.5rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem;
  font-size: .8125rem; color: var(--ink-soft);
}
.foot .logo { height: 1.25rem; }
.foot__year { margin-left: auto; }

/* ---- wider screens ---- */
@media (min-width: 40rem) {
  .points { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
  .points li:last-child { padding-bottom: 1.5rem; }
  .tech { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
  .tech li { padding: 2rem 0; }
  .tech li:last-child { padding-bottom: 2rem; }
  .tech p { max-width: 30rem; }

}
@media (min-width: 60rem) {
  :root { --gutter: 2.5rem; }
  .logo { height: 2rem; }
  .hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center; gap: 4rem;
    padding-block: 4.5rem 6.5rem;
  }
  h1 { font-size: clamp(2.75rem, 4.1vw, 4.25rem); }
  /* the screen runs out to the right edge of the window */
  .stand { margin: 0 calc((100vw - min(100vw, var(--max))) / -2 - var(--gutter)) 0 0; }
  .stand__screen { border: 1px solid var(--line); border-right: 0; border-radius: .5rem 0 0 .5rem; }
  .readout { padding-inline: 0; }
  .readout__note { flex-basis: auto; margin-left: auto; padding-right: var(--gutter); }

  .band { padding-block: 6.5rem; }
  .band__head + * { margin-top: 3.5rem; }
  .points { grid-template-columns: repeat(4, 1fr); column-gap: 0; }
  .points li { padding: .25rem 2rem 0; border-top: 0; border-left: 1px solid var(--line); }
  .points li:first-child { padding-left: 0; border-left: 0; }
  .points li:last-child { padding-bottom: 0; }
  .points .icon { margin-top: 2.5rem; width: 2rem; height: 2rem; }
  .points h3 { margin-top: 1.5rem; }
  .run { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 5rem; align-items: center; }
  .run__photo img { aspect-ratio: 4 / 5; }
  .steps { gap: 2.5rem; }
  .steps .num { font-size: 3.25rem; }
  /* one large picture, two smaller ones beside it */
  .shots { grid-auto-flow: row; grid-template-columns: 2fr 1fr; gap: 2.5rem 2rem; align-items: start; margin-inline: 0; padding-inline: 0; overflow: visible; }
  .shots figure:first-child { grid-row: span 2; }
  .road { grid-template-columns: repeat(3, 1fr); --sx: 0; --sy: 1; }
  .road__step { padding: calc(var(--node) + 1.75rem) 2.5rem 0 0; }
  .road__step::before { left: var(--node); right: 0; top: calc(var(--node) / 2 - 1px); bottom: auto; width: auto; height: 2px; transform-origin: left; }
  .road__step.is-now::before { background: linear-gradient(90deg, var(--signal), var(--line)); }
  .road__step:last-child::before { display: block; background: linear-gradient(90deg, var(--line), transparent); }
  .tech { column-gap: 5rem; }
  .tech li { padding: 2.5rem 0; }
  .tech li:last-child { padding-bottom: 2.5rem; }
  .origin__bg { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; object-position: 50% 30%; }
  .origin::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(13 14 16 / .92) 0%, rgb(13 14 16 / .72) 36%, rgb(13 14 16 / .05) 62%, rgb(13 14 16 / 0) 100%); }
  .origin__text { padding-block: 11rem 13rem; }
  .origin h2 span { display: block; }
  .contact { padding-block: 8rem 8.5rem; }
}

/* ---- motion: text settles, the target runs in, the new hit blinks,
        sections further down fade in once ---- */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; translate: 0 .75rem; animation: rise .6s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 80ms); }
  .stand__screen { opacity: 0; translate: 3rem 0; animation: rise .9s cubic-bezier(.16, .8, .24, 1) .25s forwards; }
  .stand__hit { animation: hit 1.6s ease-out 1.5s 3; }

  .js .reveal { opacity: 0; translate: 0 1rem; transition: opacity .6s var(--ease), translate .6s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .reveal.is-seen { opacity: 1; translate: 0 0; }
  .js .steps li::before { transform: scaleX(0); transition: transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 180ms + 150ms); }
  .js .steps li.is-seen::before { transform: scaleX(1); }
  .js .road__step::before { transform: scale(var(--sx, 1), var(--sy, 0)); transition: transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 250ms + 200ms); }
  .js .road__step.is-seen::before { transform: none; }
  .js .is-now.is-seen .road__node { animation: now 2.4s ease-out .6s 2; }
}
@keyframes now { 0% { box-shadow: 0 0 0 0 rgb(247 206 70 / .5); } 100% { box-shadow: 0 0 0 5px rgb(247 206 70 / .18); } }
@keyframes rise { to { opacity: 1; translate: 0 0; } }
@keyframes hit {
  0% { opacity: .9; scale: 1; }
  100% { opacity: 0; scale: 2.6; }
}
