/* Four destinations, flow version — real sections in the page; the pieces ride along in page coordinates */
:root { --char: #1D1B1A; --char-2: #2A2725; --ivory: #F4ECE2; --ivory-2: rgba(244, 236, 226, .7); --dim: #8C827A; --red: #D7262E; --red-dk: #B51E25;
  --red-text: #EA4A51;   /* the brand red, lifted just enough for small text to reach 4.5:1 on charcoal */
  --err: #FF8E86;
  --m: clamp(20px, 5.5vw, 80px); --rg: 44px; --top: 84px; --bot: 48px; --gap: 18vh; }
@media (min-width: 900px) and (min-aspect-ratio: 21/20) { :root { --rg: 210px; --top: 96px; --bot: 64px; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* the custom track is the only visible scrollbar; scrolling itself stays native */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: no-preference) { html.ready { scroll-behavior: smooth; } }   /* not during load: a smooth first jump to #how races the font swap */
body { position: relative; margin: 0; background: var(--char); color: var(--ivory); font: 400 16px/1.55 "Space Grotesk", system-ui, sans-serif; overflow-x: clip; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 50; background: var(--ivory); color: var(--char); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
::selection { background: var(--red); color: #fff; }

/* pieces: absolutely positioned over the whole page, so they scroll with the text natively */
.pieces { position: absolute; inset: 0; z-index: 0; overflow: clip; pointer-events: none; }
html:not(.ready) .pieces { visibility: hidden; }
.el { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.shape { border-style: solid; border-color: var(--red); }
.word { font: 700 100px/1 "Space Grotesk", system-ui, sans-serif; letter-spacing: -.035em; white-space: nowrap; color: var(--ivory); }
main { position: relative; z-index: 1; }

/* sections */
.dest { min-height: 100svh; padding: var(--top) var(--rg) var(--bot) var(--m); container-type: inline-size; }   /* a full screen each, so arriving at a section is a rest, not mid-transition */
.dest + .dest { margin-top: var(--gap); }
/* while app.js glides a touch flick on to the next section: stops the browser's own coast, which would
   otherwise carry the page through two or three sections. A new touch lifts it at once. */
html.touch-hold { overflow: hidden; }
/* the two middle sections are short: 80% of a screen + the gap still keeps arrival a rest, with less dead air before the next one */
.d1, .d2 { min-height: 80svh; }
.kicker { margin: 0 0 12px; font: 500 12px/1 "IBM Plex Mono", monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--red-text); }
h2 { margin: 0 0 12px; font: 700 clamp(26px, 3vw, 40px)/1.1 "Space Grotesk", sans-serif; letter-spacing: -.02em; text-wrap: balance; }
h3 { margin: 0 0 6px; font: 700 21px/1.2 "Space Grotesk", sans-serif; letter-spacing: -.01em; }
.lead { margin: 0 0 12px; font: 500 clamp(22px, 2.2vw, 30px)/1.25 "Space Grotesk", sans-serif; letter-spacing: -.01em; }
.body { margin: 0 0 20px; color: var(--ivory-2); font-size: 17px; max-width: 34em; }
.item p, .step p:not(.n) { margin: 0; color: var(--ivory-2); }
.acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dk); }
.btn-line { border-color: rgba(244, 236, 226, .35); background: none; color: var(--ivory); }
.btn-line:hover { border-color: var(--ivory); }
.link { color: var(--red-text); font-weight: 500; text-decoration: underline; text-underline-offset: 5px; }
.link:hover { color: var(--ivory); }

/* 0 · Explore — the name is a real h1; the moving words sit exactly on top of it */
.d0 { display: flex; flex-direction: column; }
.hero { order: 1; margin: 0 0 28px; font: 700 var(--big, 64px)/1 "Space Grotesk", system-ui, sans-serif; letter-spacing: -.035em; }
.hero > span { display: block; width: max-content; margin-bottom: -.06em; }
.hero > span:last-child { margin-bottom: 0; }
.amp { color: var(--red); }
html.ready .hero .amp { color: transparent; }   /* the visible name is the moving word pieces */
html.ready .hero { color: transparent; }
.ex-copy { order: 2; }
.disc-slot { order: 3; height: min(64vw, 40svh); margin-top: 28px; }
.d0 .acts { margin-top: 0; }

/* 1 · What's possible */
.items { display: grid; gap: 30px; margin-top: 36px; }
.item { padding-top: 22px; }
.more { margin: 40px 0 0; padding: 22px 0 32px; font-size: 19px; max-width: 620px; }

/* 2 · How we work */
.steps { list-style: none; margin: 36px 0 0; padding: 0 0 50px 40px; display: grid; gap: 30px; }
.step .n { margin: 0 0 6px; font: 500 12px/1 "IBM Plex Mono", monospace; letter-spacing: .12em; color: var(--red-text); }
.item p, .step p:not(.n) { max-width: 36em; }
/* tablet portrait and wide phones: two examples per row instead of one long column */
@media (min-width: 600px) { .items { grid-template-columns: repeat(2, 1fr); gap: 34px 28px; } }

/* 3 · Let's talk */
.talk h2 { margin-bottom: 30px; }
/* the coverage map: a 3:2 box (the SVG's 600 x 400); labels sit at SVG coordinates, as % of the box */
.cov-map { position: relative; width: min(100%, 560px); aspect-ratio: 3 / 2; margin: 64px auto 0; }
.cov-map img { display: block; width: 100%; height: 100%; }
.cov-lab { position: absolute; left: var(--x); top: var(--y); transform: translate(0, -50%); padding: 2px 5px; background: var(--char);   /* the dark pad parts the lines under the name */
  font: 500 10px/1 "IBM Plex Mono", monospace; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; color: rgba(244, 236, 226, .56); }
.l-phx { --x: 46%; --y: 51.5%; transform: translate(-100%, -50%); }   /* above-left of the Phoenix node */
.l-west { --x: 22%; --y: 67.5%; transform: translate(-50%, -50%); }
.l-scot { --x: 66%; --y: 39.3%; }
.l-east { --x: 75.5%; --y: 63%; }
.l-se { --x: 65.3%; --y: 88%; }
/* a small map (phones, and the narrow right column of a small landscape screen): three names, Phoenix lifted clear of
   its node, East Valley above Mesa so it ends inside the map instead of under the rail */
.cov-map { container-type: inline-size; }
@container (max-width: 419px) { .l-scot, .l-se { display: none; } .l-phx { --x: calc(47.8% - 8px); --y: calc(57.6% - 11px); } .l-east { --x: 98%; --y: 52%; transform: translate(-100%, -50%); } }
.nw { white-space: nowrap; }
.cov { margin-top: 26px; }
.cov p { margin: 0 0 4px; text-wrap: balance; }

@media (min-width: 900px) and (min-aspect-ratio: 21/20) {
  .d0 { justify-content: flex-end; }
  .ex-copy { order: 1; width: min(460px, 40%); margin-bottom: 40px; }
  .hero { order: 2; margin: 0; }
  .disc-slot { display: none; }
  .intro { width: min(640px, 60%); }
  .items { grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 56px; }
  .more { margin-top: 48px; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 64px; padding: 0; }
  .step { padding: 30px 28px 0 0; }
  .d3 { display: grid; grid-template-columns: min(520px, 48%) 1fr; align-items: start; }
  .cov-wrap { display: flex; flex-direction: column; align-items: center; padding-top: 20px; }
  .cov-map { width: min(44cqw, 80vh); margin: 40px 0 0; }
  .cov-lab { font-size: 10.5px; }
  .cov { width: min(300px, 30cqw); }
}

/* form: the field underlines ARE the moving bars, so inputs carry no bottom border once the pieces are up */
.f { border: 0; margin: 0 0 18px; padding: 0 0 6px; min-width: 0; }
.f label, .f legend { display: block; font: 500 12px/1 "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--ivory-2); margin-bottom: 8px; padding: 0; }
.f input:not([type=radio]), .f textarea { width: 100%; min-height: 40px; padding: 6px 0; border: 0; background: transparent; outline: none; font-size: 18px; resize: vertical; }
html:not(.ready) .f input:not([type=radio]), html:not(.ready) .f textarea { border-bottom: 1.5px solid var(--dim); }
.f textarea { min-height: 76px; }
.f input:focus-visible, .f textarea:focus-visible { outline: none; }
/* focus draws a red line along the field's underline; an error turns label and line the error colour */
.f input:not([type=radio]):focus, .f textarea:focus { box-shadow: inset 0 -2px 0 var(--red); }
.f:hover label, .f:focus-within label { color: var(--ivory); }
.f.is-invalid label { color: var(--err); }
.f.is-invalid input, .f.is-invalid textarea { box-shadow: inset 0 -2px 0 var(--err); }
.chips span:hover { border-color: var(--ivory); }
.err { color: var(--err); font-size: 14px; margin: 6px 0 0; }
.err:empty { display: none; }
.qerr { margin: 12px 0 0; color: var(--err); font-size: 15px; outline: none; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }   /* honeypot: people never see it */
.qs-ref { font: 500 1em "IBM Plex Mono", monospace; color: var(--ivory); }
button[type=submit]:disabled { opacity: .7; cursor: progress; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 0; }
.chips legend { width: 100%; float: left; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1.5px solid rgba(244, 236, 226, .3); cursor: pointer; }
.chips input:checked + span { background: var(--ivory); color: var(--char); border-color: var(--ivory); }
.chips input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 3px; }
form .btn-red { width: 100%; margin-top: 4px; }
form.is-sent [data-quote-fields] { display: none; }
.qstatus { outline: none; }
.qs-flag { display: inline-block; margin: 0 0 10px; font: 500 11px/1 "IBM Plex Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--char); background: var(--ivory); padding: 5px 10px; border-radius: 999px; }
.qs-head { margin: 0 0 6px; font: 700 24px/1.2 "Space Grotesk", sans-serif; }
.qs-body { margin: 0 0 14px; color: var(--ivory-2); }
.qs-summary { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0 0 16px; }
.qs-summary dt { color: var(--dim); } .qs-summary dd { margin: 0; overflow-wrap: anywhere; }
.qs-edit { min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1.5px solid rgba(244, 236, 226, .4); background: none; cursor: pointer; }
.direct { margin: 26px 0 0; padding: 18px 0 0; color: var(--ivory-2); font-size: 15px; line-height: 1.7; }
.direct a { color: var(--ivory); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.direct a:hover { color: var(--red-text); }

/* the track: section links + a position indicator that is also the page's only visible scrollbar */
.vtrack { position: fixed; z-index: 20; top: 0; right: 0; bottom: 0; width: 200px; pointer-events: none; }
.vtrack > * { pointer-events: auto; }
.vrail { position: absolute; top: 84px; bottom: 36px; right: 30px; width: 24px; cursor: grab; touch-action: none; }
.vrail.dragging { cursor: grabbing; }
.vrail::before { content: ""; position: absolute; left: 11px; top: 0; bottom: 0; width: 2px; background: rgba(244, 236, 226, .16); }
.vfill { position: absolute; left: 11px; top: 0; bottom: 0; width: 2px; background: var(--red); transform-origin: top; }
.vpuck { position: absolute; left: 12px; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(215, 38, 46, .22); }
.vpuck { z-index: 2; }   /* above the section labels, so the dot can be grabbed while it sits on one */
.stop::after { pointer-events: none; }
.vpuck:focus-visible { outline: 2px solid var(--ivory); outline-offset: 4px; }
.stop { position: absolute; right: 64px; transform: translateY(-50%); display: inline-flex; align-items: center; min-height: 40px; padding: 4px 6px; font: 500 12px/1 "IBM Plex Mono", monospace; letter-spacing: .12em; text-transform: uppercase; color: rgba(244, 236, 226, .5); text-decoration: none; white-space: nowrap; transition: color .2s; }
.stop::after { content: ""; position: absolute; right: -24px; top: 50%; width: 14px; height: 1px; background: rgba(244, 236, 226, .3); transition: width .2s, background .2s; }
.stop:hover { color: var(--ivory); }
.stop[aria-current="true"] { color: var(--ivory); }
.stop[aria-current="true"]::after { background: var(--red); height: 2px; width: 20px; margin-top: -1px; }
.short, .now { display: none; }
.stop:focus-visible { outline-offset: 2px; color: var(--ivory); }
@media (max-width: 899px), (max-aspect-ratio: 21/20) {
  .vtrack { width: 44px; }
  .vrail { right: 10px; top: 64px; bottom: 24px; }
  .stop { right: 2px; width: 40px; height: 40px; padding: 0; font-size: 0; }
  .stop::after { right: 13px; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--char); border: 1.5px solid rgba(244, 236, 226, .45); }
  .stop[aria-current="true"]::after { background: var(--ivory); border-color: var(--ivory); width: 14px; height: 14px; margin-top: -7px; }
  .stop:hover::after { border-color: var(--ivory); }
  .now { display: block; position: absolute; right: 38px; transform: translateY(-50%); padding: 3px 8px; border-radius: 999px; background: var(--ivory); color: var(--char); font: 500 10.5px/1.2 "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: uppercase; pointer-events: none; opacity: 0; transition: opacity .25s; }
  .vtrack.moving .now { opacity: .92; }   /* only while scrolling or dragging, so it never sits on top of the text */
}
@media (prefers-reduced-motion: reduce) { .btn, .stop, .stop::after, .now { transition: none; } }
