/* Track your Indigo Luna order: a preview with one example shipment, drawn as the deck's tracking page. */

@font-face {
  font-family: "Inter";
  src: url("assets/inter-var-latin.woff2?v=3100e775e8") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/instrument-serif-latin.woff2?v=60c06664b5") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* the tracking page's palette, as the deck's mock draws it */
  --ink: #161616;
  --mute: #6b665e;
  --num: #67676c;
  --line: #e6e7ea;
  --line-strong: #d5d7dc;
  --card: #f7f8fa;
  --page: #ffffff;
  --good: #2f8f5b;
  --good-fill: #e3f0e8;
  --good-line: #cfe5d7;
  --dots: #a9acb3;
  --underline: #cfc7ba;
  --field: #8f8a82;
  --bad: #b3261e;
  /* Indigo Luna's own: the gold of the mark, and the brand card's words */
  --gold: #b1964e;
  --brand-ink: #1e1e20;
  --brand-body: #2a2a2c;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --radius-card: 14px;
  --gap: 24px;
  --maxw: 1240px;

  /* motion: a critically damped spring, interruptible because every move is a CSS transition */
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
  --move: 620ms;
  --move-layout: 300ms;
  --fade: 240ms;
}

@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, 0.0329, 0.1097, 0.207, 0.3101, 0.4103, 0.5029, 0.5855, 0.6575, 0.7191, 0.771, 0.8144, 0.8503, 0.8797, 0.9037, 0.9232, 0.9389, 0.9515, 0.9616, 0.9697, 0.9761, 0.9812, 0.9852, 0.9884, 0.9909, 0.9929, 0.9945, 0.9957, 0.9966, 0.9974, 0.998, 0.9984, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --move: 0ms;
    --move-layout: 0ms;
    --fade: 160ms;
  }
}

/* ---------- base ---------- */

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

html {
  background: var(--page);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

p,
h1,
h2,
h3,
ol,
ul {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
  color: inherit;
}

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

svg {
  display: block;
}

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

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* the address #example works with no script: an empty mark at the top of the page that the view rules below follow */
.anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
}

.is-booting *,
.is-booting *::before,
.is-booting *::after {
  transition: none !important;
}

/* ---------- the two views: the search screen, and the example shipment ---------- */

.track {
  display: none;
}

.is-track .landing {
  display: none;
}

.is-track .track {
  display: block;
}

html:not(.js) #example:target ~ main .landing {
  display: none;
}

html:not(.js) #example:target ~ main .track {
  display: block;
}

/* the header names the page on the journey; the search screen says it in its own heading */
html:not(.is-track) .header-sub {
  visibility: hidden;
}

html:not(.js) #example:target ~ .site-header .header-sub {
  visibility: visible;
}

/* with no script the box cannot answer, so the search screen offers the example alone */
html:not(.js) .find-box,
html:not(.js) .find-help,
html:not(.js) .stage-toggle,
html:not(.js) .film-toggle {
  display: none;
}

/* and the grid's cards give back the room kept for the chevron (the phone's cards keep theirs at the side) */
@media (min-width: 700px) {
  html:not(.js) .stage-sum {
    padding-bottom: 22px;
  }
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: max(clamp(16px, 4vw, 40px), env(safe-area-inset-left));
}

/* ---------- header ---------- */

.site-header {
  background: var(--page);
  border-bottom: 1px solid var(--line);
}

.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
}

.brand-logo {
  width: 46px;
  height: 46px;
}

.header-sub {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: -6px;
  padding: 0 6px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--mute);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease;
}

@media (hover: hover) {
  .header-sub:hover {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--underline);
    text-underline-offset: 3px;
  }
}

/* ---------- the search screen ---------- */

.landing {
  padding-top: 84px;
}

.find-wrap {
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
}

.find-h {
  font-size: clamp(32px, 1.1vw + 24px, 40px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.024em;
  color: var(--ink);
}

.find-h:focus,
.eta:focus {
  outline: none;
}

.find {
  margin-top: 28px;
}

.find-box {
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--field);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(22, 22, 22, 0.04), 0 14px 34px -22px rgba(22, 22, 22, 0.3);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.find-box:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink), 0 14px 34px -22px rgba(22, 22, 22, 0.3);
}

.find.is-invalid .find-box {
  border-color: var(--bad);
  box-shadow: 0 0 0 1px var(--bad), 0 14px 34px -22px rgba(22, 22, 22, 0.3);
}

.find-input {
  flex: 1;
  min-width: 0;
  height: 48px;
  -webkit-appearance: none;
  appearance: none;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.02em;
  color: var(--ink);
  outline: none;
}

.find-input::placeholder {
  color: var(--mute);
  letter-spacing: 0.06em;
  opacity: 1;
}

.find-go {
  flex: none;
  min-width: 92px;
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.005em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, transform var(--move) var(--spring);
}

@media (hover: hover) {
  .find-go:hover {
    background: #2b2b2b;
  }
}

.find-go:active {
  transform: scale(0.97);
}

/* a message opens under the box and the lines below glide down with it. Both messages are in the page from the
   start; a link carrying another number shows its note from the first frame, so nothing moves on load */
.find-msg {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows var(--move-layout) var(--spring), visibility 0s linear var(--move-layout);
}

.find.is-invalid .find-msg,
.find.is-note .find-msg {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows var(--move-layout) var(--spring), visibility 0s linear 0s;
}

.is-noting .find-msg {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: none;
}

.find-msg-in {
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity var(--fade) ease;
}

.find.is-invalid .find-msg-in,
.find.is-note .find-msg-in,
.is-noting .find-msg-in {
  opacity: 1;
}

.find-error--blank,
.find-error--note {
  display: none;
}

.find.is-invalid .find-error--blank,
.find.is-note .find-error--note,
.is-noting .find-error--note {
  display: block;
}

.find-error {
  padding-top: 12px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 20px;
  color: var(--bad);
  text-wrap: balance;
}

/* a number that is not the example: not a mistake, so a calm note rather than an error */
.find-error--note {
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  font-weight: 500;
  color: var(--ink);
}

/* each sentence holds together: a message too long for one line breaks between its sentences */
.find-error-part {
  display: inline-block;
}

.find-help {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--mute);
  text-wrap: balance;
}

.find-alt {
  margin-top: 22px;
}

.find-example {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px 0 18px;
  border: 1px solid var(--field);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(22, 22, 22, 0.04);
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform var(--move) var(--spring);
}

.find-example-ic {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--gold);
}

@media (hover: hover) {
  .find-example:hover {
    border-color: var(--ink);
    background: var(--card);
  }
}

.find-example:active {
  transform: scale(0.98);
}

.landing .brand-card {
  margin-top: 72px;
}

/* ---------- the example: headline, number and status ---------- */

.hero {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding-top: 34px;
}

.eta {
  font-size: clamp(28px, 1.2vw + 19px, 34px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.022em;
  color: var(--ink);
}

.tno {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink);
}

.pill {
  margin-left: auto;
  padding: 6px 15px;
  border: 1px solid var(--good-line);
  border-radius: 999px;
  background: var(--good-fill);
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
  color: var(--ink);
}

/* ---------- the order: the product, and what has happened ---------- */

.order {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  padding: 7px 18px 7px 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
}

.order-img {
  flex: none;
  width: 62px;
  height: 93px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #e9e3dc;
  object-fit: cover;
}

.order-text {
  min-width: 0;
}

.order-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.006em;
}

.order-items {
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--mute);
}

/* ---------- the journey: six stages ---------- */

.journey-wrap {
  margin-top: 18px;
}

.journey {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px var(--gap);
  /* the step rows: one column for the mark, then the label over a quieter line with the place and time */
  --mark: 14px;
  --mark-gap: 7px;
  --tick: 9px;
  --row-pad: 9px;
  --lab-size: 12px;
  --lab-lh: 16px;
  --meta-size: 11px;
  --meta-lh: 15px;
  --drop-pad: 10px;
}

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* the dotted connector between cards, on the icon line */
.stage::before {
  content: "";
  position: absolute;
  top: 35px;
  left: calc(var(--gap) / -2 - 7px);
  width: 14px;
  height: 3px;
  background: radial-gradient(circle, var(--dots) 1.1px, transparent 1.4px) 0 0 / 5px 3px repeat-x;
}

.stage:first-child::before {
  display: none;
}

.stage-card {
  --sep: var(--line);
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--card);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.stage-sum {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 14px 36px;
  text-align: center;
}

.stage-no {
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--num);
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--good-fill);
}

.badge-tick {
  width: 17px;
  height: 17px;
  color: var(--good);
}

.stage-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  color: var(--ink);
}

.stage-icon .ic {
  width: 28px;
  height: 28px;
}

.stage-logo {
  width: 30px;
  height: 30px;
}

/* every title keeps two lines, so the presses below line up across the row */
.stage-title {
  min-height: calc(2 * 1.3em);
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.003em;
  color: var(--ink);
  text-wrap: balance;
}

.flag {
  display: inline-block;
  vertical-align: -0.5px;
  margin-right: 6px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(20, 20, 22, 0.14);
}

.flag-au {
  width: 19px;
  height: 9.5px;
}

.flag-us {
  width: 18px;
  height: 9.5px;
}

/* the press covers the whole card face; what shows of it is a quiet chevron at the foot */
.stage-toggle {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 12px;
  border: 0;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  background: transparent;
  color: var(--num);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease;
}

.stage:not(.is-open) .stage-toggle {
  border-radius: var(--radius-card);
}

.stage-toggle:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -3px;
}

.chev {
  width: 16px;
  height: 16px;
  transition: transform var(--move) var(--spring);
}

.stage.is-open .chev {
  transform: rotate(180deg);
}

.stage.is-open .stage-toggle {
  color: var(--ink);
}

@media (hover: hover) {
  .js .stage-card:hover {
    border-color: var(--line-strong);
    box-shadow: 0 12px 30px -24px rgba(22, 22, 22, 0.5);
  }

  .stage-card:hover .stage-toggle {
    color: var(--ink);
  }
}

/* the last stage, delivered: pale green, its tick a solid green circle */
.stage--final .stage-card {
  --sep: var(--good-line);
  border-color: var(--good-line);
  background: var(--good-fill);
}

.stage--final .badge {
  background: var(--good);
}

.stage--final .badge-tick {
  color: #fff;
}

@media (hover: hover) {
  .js .stage--final .stage-card:hover {
    border-color: #b5d8c2;
  }
}

/* ---------- the details, inside the card ---------- */

.stage-panel {
  display: grid;
  grid-template-rows: 0fr;
  min-width: 0;
  visibility: hidden;
  transition: grid-template-rows var(--move-layout) var(--spring), visibility 0s linear var(--move-layout);
}

.stage.is-open .stage-panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows var(--move-layout) var(--spring), visibility 0s linear 0s;
}

.stage-panel-in {
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity var(--fade) ease;
}

.stage.is-open .stage-panel-in {
  opacity: 1;
}

.steps {
  margin: 0 var(--drop-pad);
  border-top: 1px solid var(--sep);
  text-align: left;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: var(--mark) minmax(0, 1fr);
  column-gap: var(--mark-gap);
  align-items: start;
  padding: var(--row-pad) 0;
}

.step + .step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--sep);
}

.step-mark {
  display: grid;
  place-items: center;
  width: var(--mark);
  height: var(--mark);
  margin-top: calc((var(--lab-lh) - var(--mark)) / 2);
  border-radius: 50%;
  background: var(--good-fill);
}

.stage--final .step-mark {
  background: #fff;
}

.step-tick {
  width: var(--tick);
  height: var(--tick);
  color: var(--good);
}

/* the row's text block decides, by its own width, whether the place and time share one line */
.step-body {
  min-width: 0;
  container: step / inline-size;
  font-size: var(--meta-size);
}

.step-title {
  font-size: var(--lab-size);
  font-weight: 600;
  line-height: var(--lab-lh);
  letter-spacing: -0.003em;
  color: var(--ink);
}

.step-meta,
.step-note {
  margin-top: 2px;
  font-size: var(--meta-size);
  line-height: var(--meta-lh);
  font-variant-numeric: tabular-nums;
  color: var(--mute);
}

.step-note {
  margin-top: 0;
}

.step-place,
.step-when {
  display: block;
  white-space: nowrap;
}

.step-sep {
  display: none;
}

/* a row wide enough keeps its place and time on one line */
@container step (min-width: 19em) {
  .step-place,
  .step-when {
    display: inline;
  }

  .step-sep {
    display: inline;
    margin: 0 0.42em;
  }
}

/* times are shown once the details are open */
.journey-note {
  display: none;
  margin-top: 12px;
  font-size: 12px;
  line-height: 18px;
  color: var(--mute);
  text-wrap: balance;
}

.journey.has-open + .journey-note {
  display: block;
}

/* ---------- the brand card: Indigo Luna in its own words ---------- */

.brand-card {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--card);
}

.brand-media {
  position: relative;
  align-self: stretch;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #4f5e57;
}

.brand-card--water .brand-media {
  aspect-ratio: 5 / 3;
  background: #9fa69b;
}

.brand-img,
.brand-film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-card--water .brand-img {
  object-position: 50% 40%;
}

/* the film fades in over its own first frame once it plays, so nothing jumps */
.brand-film {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.brand-media.is-playing .brand-film {
  opacity: 1;
}

.film-toggle {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.film-toggle[hidden] {
  display: none;
}

.film-toggle::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: rgba(22, 22, 22, 0.42);
  transition: background-color 0.2s ease;
}

@media (hover: hover) {
  .film-toggle:hover::before {
    background: rgba(22, 22, 22, 0.62);
  }
}

.film-toggle:focus-visible {
  outline: none;
}

.film-toggle:focus-visible::before {
  outline: 2px solid #fff;
  outline-offset: 1px;
  box-shadow: 0 0 0 4px var(--ink);
}

.film-ic {
  position: relative;
  width: 14px;
  height: 14px;
}

.film-ic--play,
.film-toggle.is-paused .film-ic--pause {
  display: none;
}

.film-toggle.is-paused .film-ic--play {
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 36px 48px 36px 44px;
}

/* the serif is drawn without hinting: hinted (Chrome on Windows, Android and Linux) its "a" and "d" snap wide and open
   gaps inside words; Inter's own feature settings (cv11, ss01) are not the serif's either */
.brand-h,
.brand-p {
  font-feature-settings: normal;
  text-rendering: geometricPrecision;
}

.brand-h {
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: clamp(34px, 1.6vw + 16px, 44px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--brand-ink);
  text-wrap: balance;
}

.brand-p {
  max-width: 62ch;
  font-family: var(--serif);
  font-size: clamp(17px, 0.3vw + 15px, 19px);
  font-weight: 400;
  line-height: 1.32;
  color: var(--brand-body);
  text-wrap: pretty;
}

.brand-by {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ---------- footer ---------- */

.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  background: var(--page);
}

.footer-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  padding-top: 20px;
  padding-bottom: max(36px, env(safe-area-inset-bottom));
  font-size: 12px;
  line-height: 1.5;
  color: var(--mute);
}

/* ---------- widths ---------- */

/* six across below the full page width: a little less gap, so the step rows keep their room */
@media (max-width: 1239.98px) {
  :root {
    --gap: 20px;
  }
}

/* three across, two rows */
@media (max-width: 1159.98px) {
  /* two lines hold "Packed at Indigo Luna, Australia" with the name whole from here down; six across they cannot */
  .keep {
    white-space: nowrap;
  }

  .journey {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    --mark: 16px;
    --mark-gap: 8px;
    --tick: 10px;
    --row-pad: 10px;
    --lab-size: 12.5px;
    --meta-size: 11.5px;
    --drop-pad: 12px;
  }

  .stage:nth-child(3n + 1)::before {
    display: none;
  }
}

/* the brand card stacks: the picture over the words */
@media (max-width: 899.98px) {
  .brand-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand-text {
    padding: 28px 32px 32px;
  }
}

@media (max-width: 767.98px) {
  :root {
    --gap: 16px;
  }
}

/* phones: the six stages become a vertical timeline, and each card opens on its own */
@media (max-width: 699.98px) {
  .header-in {
    min-height: 62px;
    padding-block: 10px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .landing {
    padding-top: 44px;
  }

  .find {
    margin-top: 22px;
  }

  .find-go {
    padding: 0 18px;
  }

  .find-alt {
    margin-top: 18px;
  }

  .landing .brand-card {
    margin-top: 48px;
  }

  /* the number and the pill share a line, the pill at the right edge; on a phone too narrow for both, the pill starts
     its own line at the left rather than hanging at the right */
  .hero {
    justify-content: space-between;
    gap: 12px 10px;
    padding-top: 24px;
  }

  .pill {
    margin-left: 0;
  }

  .eta {
    flex-basis: 100%;
  }

  .tno {
    padding: 7px 14px;
    font-size: 13px;
    letter-spacing: 0.1em;
  }

  .order {
    gap: 14px;
    margin-top: 16px;
    padding: 6px 14px 6px 6px;
  }

  .order-img {
    width: 56px;
    height: 84px;
  }

  .order-title {
    font-size: 15.5px;
  }

  .order-items {
    font-size: 13.5px;
  }

  .journey {
    display: flex;
    flex-direction: column;
    gap: 14px;
    --mark: 16px;
    --mark-gap: 14px;
    --tick: 10px;
    --row-pad: 11px;
    --lab-size: 14px;
    --lab-lh: 19px;
    --meta-size: 12.5px;
    --meta-lh: 17px;
    --drop-pad: 16px;
  }

  .stage {
    display: block;
  }

  .stage-sum {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: 14px;
    min-height: 84px;
    padding: 14px 52px 14px 16px;
    text-align: left;
  }

  /* the connector turns and runs down the icon line */
  .stage::before,
  .stage:nth-child(3n + 1)::before {
    display: block;
    top: -14px;
    left: 34.5px;
    width: 3px;
    height: 14px;
    background: radial-gradient(circle, var(--dots) 1.1px, transparent 1.4px) 0 0 / 3px 5px repeat-y;
  }

  .stage:first-child::before {
    display: none;
  }

  .stage-no {
    position: static;
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }

  .badge {
    top: 12px;
    right: 12px;
  }

  .stage-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 40px;
    height: 40px;
  }

  .stage-icon .ic {
    width: 26px;
    height: 26px;
  }

  .stage-logo {
    width: 32px;
    height: 32px;
  }

  .stage-title {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    min-height: 0;
    margin-top: 1px;
    font-size: 15px;
    text-wrap: pretty;
  }

  /* the chevron sits under the tick, at the card's right edge */
  .stage-toggle {
    justify-content: flex-end;
    padding: 0 19px 13px 0;
  }

  /* the steps line up under the card: marks on the icon line, words on the title's edge */
  .steps {
    margin: 0 16px;
  }

  .step {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .step-mark {
    justify-self: center;
  }

  .brand-text {
    gap: 9px;
    padding: 24px 20px 26px;
  }

  .brand-h {
    font-size: 32px;
  }

  .brand-p {
    font-size: 17.5px;
  }

  .footer-in {
    flex-direction: column;
    padding-bottom: max(32px, env(safe-area-inset-bottom));
  }
}

/* the narrowest phones: Track goes under the box's input */
@media (max-width: 359.98px) {
  .find-box {
    flex-wrap: wrap;
  }

  .find-input {
    flex-basis: 100%;
  }

  .find-go {
    flex: 1 1 100%;
  }

  .tno {
    letter-spacing: 0.06em;
  }
}

/* no motion asked for: the film never plays, nothing slides or springs, the details only fade */
@media (prefers-reduced-motion: reduce) {
  .brand-film {
    display: none;
  }

  .stage-panel,
  .find-msg {
    transition: grid-template-rows 0s linear var(--fade), visibility 0s linear var(--fade);
  }

  .stage.is-open .stage-panel,
  .find.is-invalid .find-msg,
  .find.is-note .find-msg {
    transition: none;
  }

  .find-go:active,
  .find-example:active {
    transform: none;
  }
}

@media (forced-colors: active) {
  .badge,
  .step-mark {
    border: 1px solid CanvasText;
  }

  .find-box {
    border-color: CanvasText;
  }

  .find.is-invalid .find-box {
    outline: 2px solid Highlight;
  }

  .find-example,
  .tno,
  .pill {
    border-color: ButtonText;
  }

  .film-toggle::before {
    background: ButtonFace;
    border: 1px solid ButtonText;
  }
}
