/* Landing page v2, "Cut through" (owned by the landing page builder). Tokens and shared classes: tokens.css. Rules: ../STYLE.md
   The page is the walk from Flinders St to Bourke St Mall. Each .stop is a place on it; a thin route line runs down the
   left gutter through round stop markers. The line is static. The hero map (css/hero-map.css) owns everything inside .hero-map. */

:root {
  --rail: clamp(150px, 15vw, 210px);  /* gutter column that carries the route line and place names */
  --line-x: 13px;                     /* route line, from the page gutter: lines up with the centre of the wordmark */
  --pad-y: clamp(80px, 7.5vw, 112px);
}
@media (max-width: 719px) {
  :root { --rail: 40px; --pad-y: 72px; }
}

/* ---------- Page chrome ---------- */
.skip {
  position: absolute; left: var(--gutter); top: 8px; z-index: var(--z-bar);
  padding: 10px 14px; border-radius: var(--r-control);
  background: var(--bluestone); color: var(--white);
  font-size: var(--fs-16); font-weight: 600; font-stretch: var(--w-semi); text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus-visible { transform: none; }
.head-link { text-decoration-thickness: 1.5px; }
.noscript { margin: 0; padding: 16px var(--gutter); background: var(--gold-wash); font-size: var(--fs-16); }
p { margin: 0; }
h1, h2, h3 { margin: 0; }

/* ---------- The walk ---------- */
.stop {
  --pt: var(--pad-y);
  --pb: var(--pad-y);
  position: relative;
  padding: var(--pt) var(--gutter) var(--pb) calc(var(--gutter) + var(--rail));
}
.stop::before {
  content: "";
  position: absolute; top: 0; bottom: 0;
  left: calc(var(--gutter) + var(--line-x) - 1px);
  width: 2px;
  background: var(--route);
}
/* the line starts at Flinders St and ends at Bourke St Mall: 11px is the centre of a marker */
.stop-start::before { top: calc(var(--pt) + 11px); }
.stop-end::before { bottom: auto; height: calc(var(--pt) + 11px); }

.stop-name {
  position: absolute; top: var(--pt); left: var(--gutter);
  width: calc(var(--rail) - 16px);
  padding-left: 34px;
  font-size: var(--fs-16); font-weight: 600; font-stretch: var(--w-semi); line-height: 22px;
}
.stop-dot {
  position: absolute; top: 3px; left: calc(var(--line-x) - 8px);
  width: 16px; height: 16px; border-radius: 50%;
  border: 3px solid var(--bluestone); background: var(--white);
}
.stop-dot-pass { background: var(--gold); }     /* a passage: gold, like on the map */
.stop-dot-end { background: var(--bluestone); }  /* start and end of the walk */

@media (max-width: 719px) {
  .stop { padding-right: var(--gutter); }
  .stop-name { position: static; width: auto; padding-left: 0; margin-bottom: 18px; }
  .stop-dot { top: auto; margin-top: 3px; left: calc(var(--gutter) + var(--line-x) - 8px); }
}

/* ---------- Flinders St: hero ---------- */
.hero { --pt: clamp(28px, 4.4vw, 64px); --pb: clamp(40px, 4.4vw, 60px); }
.hero-title { font-size: clamp(42px, 6.6vw, 92px); max-width: 11.5em; }
.hero-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px clamp(32px, 5vw, 72px); align-items: end;
  margin-top: clamp(24px, 3vw, 40px);
}
.hero-lead { max-width: 24em; }
@media (max-width: 899px) {
  .hero-row { grid-template-columns: minmax(0, 1fr); }
}

/* The hero map box. The component fills it; the poster alone must also look right. */
.hero-map {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: clamp(440px, 74svh, 860px);
}
:where(.hero-map-poster) { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Waitlist form ---------- */
.wl { width: 100%; max-width: 34rem; }
.wl-row { display: flex; gap: 10px; }
.wl-input { flex: 1 1 auto; min-width: 0; }
.wl-btn { flex: none; }
.wl-msg { margin-top: 10px; font-size: var(--fs-16); font-weight: 600; font-stretch: var(--w-semi); color: var(--error); }
.wl-msg:empty { margin-top: 0; }
.wl-note { margin-top: 12px; font-size: var(--fs-14); line-height: 1.45; color: var(--bluestone-2); }
@media (max-width: 519px) {
  .t-lead { font-size: 18px; line-height: 1.5; }
  /* Phones: keep the hero short so the live map shows in the first screen. */
  .hero { --pt: 12px; --pb: 24px; }
  .hero .stop-name { margin-bottom: 10px; }
  .hero-title { font-size: 36px; line-height: 0.98; }
  .hero-row { margin-top: 16px; gap: 18px; }
  .wl-btn { padding: 0 16px; }
  .wl-note { margin-top: 8px; }
}
@media (max-width: 359px) {
  .wl-row { flex-direction: column; }
}

.wl-done { max-width: 34rem; animation: wl-in var(--t-ui) var(--ease-out) both; }
.wl-done-t { font-size: var(--fs-28); font-weight: 750; font-stretch: var(--w-wide); line-height: 1.15; }
.wl-done-s { margin-top: 8px; color: var(--bluestone-2); overflow-wrap: anywhere; }
.wl-done-s b { color: var(--bluestone); font-weight: 600; }
.wl-done .btn { margin-top: 20px; }
.wl-demo { margin-top: 12px; font-size: var(--fs-14); color: var(--bluestone-2); }
@keyframes wl-in { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) {
  .wl-done { animation: none; }
}

/* ---------- Degraves St: what it does (two columns) ---------- */
.split {
  max-width: 1180px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 28px clamp(32px, 5vw, 80px); align-items: start;
}
.split-text .t-body { margin-top: 20px; }
@media (max-width: 899px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Block Arcade: strip diagrams ---------- */
.dry-title { max-width: 15em; }
.dry-lead { margin-top: 24px; }
.trips { display: grid; gap: 44px; margin-top: clamp(44px, 5vw, 64px); max-width: 880px; }
.trip { margin: 0; }
.trip-head { margin-bottom: 12px; }
.trip-head .t-small { margin-top: 4px; max-width: 40em; }
.trip-row {
  display: grid; align-items: center;
  grid-template-columns: 7.5em minmax(0, 1fr) 4.2em 7.2em;
  column-gap: 16px;
  min-height: 34px;
  font-size: var(--fs-16); font-stretch: var(--w-semi);
}
.trip-way { font-weight: 600; color: var(--bluestone-2); }
.trip-m, .trip-c { text-align: right; color: var(--bluestone-2); }
.trip-row-through .trip-way, .trip-row-through .trip-m, .trip-row-through .trip-c { color: var(--bluestone); }
.trip-row-through .trip-c { font-weight: 600; }

/* A strip: the walk as a line, start on the left. Open sky is the thin line; covered metres are gold blocks. 811 m = full width. */
.strip {
  position: relative; display: block; justify-self: start;
  width: calc(var(--m) / 811 * 100%);
  height: 14px;
  border-inline: 2px solid var(--bluestone);   /* start and end ticks */
}
.strip::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--bluestone); }
.strip i {
  position: absolute; top: 1px; bottom: 1px;
  left: calc(var(--s) / var(--m) * 100%);
  width: calc((var(--e) - var(--s)) / var(--m) * 100%);
  background: var(--gold);
  border: 1px solid rgba(43, 48, 56, 0.6);
}
.fig-note { margin-top: 28px; max-width: 46em; }

@media (max-width: 599px) {
  .trip-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "way m c" "strip strip strip";
    row-gap: 6px; column-gap: 12px; padding: 6px 0;
  }
  .trip-way { grid-area: way; }
  .trip-m { grid-area: m; }
  .trip-c { grid-area: c; }
  .strip { grid-area: strip; }
}

/* ---------- Royal Arcade: hours ---------- */
@media (min-width: 900px) {
  .split-chart { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
}
.split-chart .t-body { margin-top: 20px; }
.split-chart .t-body + .t-body { margin-top: 14px; }
.hours { margin: 0; padding-top: 8px; }
.hours-grid {
  display: grid;
  grid-template-columns: minmax(7.5em, 12em) minmax(0, 1fr);
  grid-template-rows: 30px repeat(4, minmax(56px, auto));
  column-gap: 20px;
  align-items: center;
}
.h-name { grid-column: 1; grid-row: var(--r); font-size: var(--fs-16); font-stretch: var(--w-semi); line-height: 1.3; }
.h-name b { display: block; font-weight: 650; }
.h-name span { display: block; font-size: var(--fs-14); color: var(--bluestone-2); }
.h-track { grid-column: 2; grid-row: var(--r); position: relative; display: block; height: 16px; }
.h-track::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--bluestone-2); }
.h-track i {
  position: absolute; top: 0; bottom: 0;
  left: calc(var(--a) / 24 * 100%);
  width: calc((var(--b) - var(--a)) / 24 * 100%);
  background: var(--gold);
  border: 1px solid rgba(43, 48, 56, 0.6);
}
/* time marks: one layer over the track column, from the label row to the last track */
.h-marks { grid-column: 2; grid-row: 1 / 6; align-self: stretch; position: relative; z-index: var(--z-raised); pointer-events: none; }
.h-mark {
  position: absolute; top: 0; bottom: 8px;
  left: calc(var(--h) / 24 * 100%);
  border-left: 2px solid var(--bluestone);
  margin-left: -1px;
}
.h-mark b {
  position: absolute; top: 0; left: 0; transform: translateX(-50%);
  padding: 0 4px; background: var(--white);
  font-size: var(--fs-14); font-weight: 650; font-stretch: var(--w-semi); line-height: 20px; white-space: nowrap;
}
.h-mark-end b { transform: translateX(-100%); left: -6px; padding: 0; }
.h-mark-quiet { border-left: 1px solid var(--stone-line); margin-left: 0; top: 22px; }
.h-mark-quiet b { top: -22px; font-weight: 500; color: var(--bluestone-2); }
.hours .fig-note { margin-top: 20px; }

@media (max-width: 599px) {
  .hours-grid { grid-template-columns: 7.2em minmax(0, 1fr); column-gap: 12px; }
  .h-mark-quiet b { display: none; }
}

/* ---------- The app: square plates ---------- */
.app-title { max-width: 14em; }
.app-sub { margin-top: 20px; }
.plates {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px clamp(20px, 2.5vw, 36px);
  max-width: 1180px;
  margin-top: clamp(40px, 5vw, 64px);
}
.plate-fig { margin: 0; }
.plate {
  position: relative; overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--stone);
}
.plate picture { display: block; }
.plate img {
  width: 58%; height: auto;
  margin: 9% auto 0;
  border: 5px solid var(--bluestone); border-bottom: 0;
  border-radius: 26px 26px 0 0;
}
.plate-fig figcaption { margin-top: 16px; max-width: 26em; font-size: var(--fs-16); line-height: 1.5; text-wrap: pretty; }
@media (max-width: 719px) {
  .plates { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Bourke St Mall: join again ---------- */
.stop-end { --pb: clamp(96px, 10vw, 152px); }
.join-lead { margin-top: 20px; }
.wl-end { margin-top: 28px; }
.asks {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px clamp(32px, 5vw, 72px);
  max-width: 880px;
  margin-top: clamp(64px, 8vw, 104px);
}
.ask .t-body { margin-top: 8px; }
.ask .btn { margin-top: 20px; }
@media (max-width: 719px) {
  .asks { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Questions (after the walk) ---------- */
.after {
  padding: 0 var(--gutter) clamp(88px, 10vw, 136px) calc(var(--gutter) + var(--rail));
}
.qa {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px clamp(32px, 5vw, 72px);
  max-width: 1180px;
  margin: clamp(32px, 4vw, 48px) 0 0;
}
.qa dt { font-size: var(--fs-18); font-weight: 700; font-stretch: var(--w-wide); line-height: 1.3; }
.qa dd { margin: 8px 0 0; max-width: var(--measure); color: var(--bluestone); text-wrap: pretty; }
@media (max-width: 719px) {
  .qa { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* ---------- Privacy ---------- */
.doc {
  padding: clamp(40px, 6vw, 88px) var(--gutter) clamp(88px, 10vw, 136px) calc(var(--gutter) + var(--rail));
}
.doc h1 { max-width: 14em; }
.doc .t-lead { margin-top: 20px; }
.doc h2 { margin-top: 48px; font-size: var(--fs-22); font-weight: 700; font-stretch: var(--w-wide); line-height: 1.25; }
.doc p, .doc ul { max-width: var(--measure); }
.doc h2 + p, .doc h2 + ul { margin-top: 10px; }
.doc p + p, .doc ul + p { margin-top: 14px; }
.doc ul { margin: 10px 0 0; padding-left: 1.1em; }
.doc li + li { margin-top: 8px; }
.doc .updated { margin-top: 48px; }
.doc .back { margin-top: 24px; }

/* ---------- Links ---------- */
@media (hover: hover) and (pointer: fine) {
  main a:not(.btn):hover, .site-foot a:hover, .head-link:hover { text-decoration-thickness: 2px; }
}
