/* Where To Go — "the page is a walk".
   One family (Figtree), flat brand fields, one dashed route that runs the length of the page. */
:root {
  --blue: #0030dc;
  --yellow: #ffeb01;
  --peri: #b3c2f5;
  --white: #ffffff;
  --black: #000000;
  --ink: #2e2e38;

  --font: "Figtree", "Helvetica Neue", Arial, sans-serif;

  /* Route lanes, in viewport % so every segment meets at the same x. */
  --lane-l: 4vw;
  --pin-x: 6.5vw;
  --gutter: max(9vw, (100vw - 1240px) / 2);
  --radius: 4px;
  --cut: 5vw;

  --step--1: 0.875rem;
  --step-0: 1.125rem;
  --display-xl: 18vw;
  --display-l: 8vw;
  --display-m: clamp(2.6rem, 6vw, 6.5rem);
}

@media (max-width: 899.98px) {
  :root {
    --lane-l: 2.5vw;
    --pin-x: 8vw;
    --gutter: max(20px, 5vw);
    --cut: 9vw;
    --step-0: 1.0625rem;
    --display-xl: 27vw;
    --display-l: 10.5vw;
    --display-m: clamp(2.3rem, 11vw, 4rem);
  }
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main > section { position: relative; isolation: isolate; overflow-x: clip; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 0.18em; }

h1, h2, h3 {
  font-family: var(--font);
  font-style: italic;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-blue :focus-visible, .site-header :focus-visible { outline-color: var(--yellow); }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.container {
  width: 100%;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 2;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--yellow);
  color: var(--black);
  padding: 8px 14px;
  font-weight: 600;
}
.skip-link:focus { top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font: 600 1.0625rem/1.2 var(--font);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-yellow { background: var(--yellow); color: var(--black); }
.btn-yellow:hover { background: var(--white); }
.btn-ghost { color: var(--white); border-color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--blue); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--black); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 1rem; }
.btn-store { min-width: 17rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Route segments ---------- */
.route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
  color: var(--blue);
}
.route path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-dasharray: 10 8;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.on-blue .route { color: var(--white); }
.how .route { color: var(--black); }
.r-m { display: none; }
@media (max-width: 899.98px) {
  .r-d { display: none; }
  .r-m { display: inline; }
  svg.r-m { display: block; }
}

/* the one orchestrated moment: the hero route draws itself */
#hero-mask-path { fill: none; stroke: #fff; stroke-width: 14; stroke-dasharray: 1; stroke-dashoffset: 0; }
.is-drawing #hero-mask-path { animation: draw-route 1.6s cubic-bezier(.45, 0, .25, 1) .35s both; }
@keyframes draw-route { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  color: var(--white);
}
.site-header.is-solid { position: relative; background: var(--blue); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}
.brand { display: inline-flex; border-radius: 9px; }
.brand img { width: 40px; height: 40px; border-radius: 9px; box-shadow: 0 0 0 2px var(--white); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav-link { color: var(--white); text-decoration: none; font-weight: 600; font-size: 1rem; }
.nav-link:hover { text-decoration: underline; text-decoration-thickness: 2px; }
@media (max-width: 899.98px) {
  .nav-link { display: none; }
}

/* ---------- Hero ---------- */
.on-blue { background: var(--blue); color: var(--white); }
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: clip;
  display: flex;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 110px;
  padding-bottom: 72px;
}
.wordmark {
  color: var(--white);
  font-size: var(--display-xl);
  line-height: 0.86;
  letter-spacing: -0.035em;
  margin-left: -0.04em;
  white-space: nowrap;
  text-wrap: nowrap;
}
.wordmark span { display: block; }
.wordmark .q { display: inline; }
.hero-copy { margin-top: clamp(28px, 3vw, 48px); max-width: min(36rem, 40vw); }
.lead { font-size: clamp(1.25rem, 1.7vw, 1.6rem); line-height: 1.35; font-weight: 600; max-width: 30ch; text-wrap: pretty; }
.hero-copy .cta-row { margin-top: 28px; }
.hero-phone {
  position: absolute;
  z-index: 3;
  right: var(--gutter);
  bottom: -13vw;
  width: clamp(240px, 25vw, 400px);
  transform: rotate(-6deg);
  transform-origin: 50% 60%;
}
.hero-phone img {
  border-radius: 28px;
  box-shadow: 14px 14px 0 var(--black);
}

@media (max-width: 899.98px) {
  .hero { min-height: 0; }
  .hero-inner { padding-top: 104px; padding-bottom: 0; justify-content: flex-start; }
  .hero-copy { max-width: none; }
  .lead { font-size: 1.25rem; max-width: 22ch; }
  .hero-copy .cta-row { flex-direction: column; align-items: stretch; max-width: 22rem; }
  .hero-copy .btn-ghost { align-self: flex-start; }
  .btn-store { min-width: 0; }
  .hero-phone {
    position: relative;
    right: auto; bottom: auto;
    width: min(64vw, 300px);
    margin: 44px auto -32vw;
    transform: rotate(-6deg);
  }
  .hero-phone img { border-radius: 20px; box-shadow: 10px 10px 0 var(--black); }
}

/* ---------- Manifesto ---------- */
.manifesto {
  position: relative;
  overflow: clip;
  background: var(--white);
}
.band {
  position: absolute;
  z-index: 0;
  left: -30vw;
  top: 15vw;
  width: 160vw;
  height: 17vw;
  background: var(--peri);
  transform: rotate(-11deg);
  transform-origin: 50% 50%;
}
.m-lines, .m-body { position: relative; }
.m-lines { padding-top: 17vw; padding-bottom: 4vw; }
.stops { color: var(--blue); font-size: var(--display-l); line-height: 0.9; }
.stop { display: block; width: fit-content; white-space: nowrap; }
.stop + .stop { margin-top: 0.22em; }
.stop-2 { margin-left: 12vw; }
.stop-3 { margin-left: 24vw; }
.m-body { padding-bottom: 14vw; }
.m-body-inner { margin-left: 24vw; max-width: 46rem; }
.manifesto-text { max-width: 60ch; font-size: clamp(1.125rem, 1.55vw, 1.5rem); }
.manifesto-text + .manifesto-text { margin-top: 1em; }

.sheet {
  margin: 56px 0 0;
  background: var(--white);
  border-left: 12px solid var(--blue);
  box-shadow: 0 0 0 2px var(--blue);
  border-radius: var(--radius);
}
.sheet-row {
  display: grid;
  grid-template-columns: 32px 11rem 1fr;
  align-items: baseline;
  gap: 4px 20px;
  padding: 20px 28px 20px 24px;
}
.sheet-row + .sheet-row { border-top: 2px solid var(--peri); }
.sheet-icon {
  width: 28px; height: 28px; align-self: center;
  fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.sheet dt { font-weight: 600; font-size: 1rem; color: var(--ink); }
.sheet dd {
  margin: 0;
  font-style: italic; font-weight: 700;
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  line-height: 1.2;
  color: var(--blue);
}

@media (max-width: 899.98px) {
  .m-lines { padding-top: 46vw; padding-bottom: 6vw; }
  .stop-2 { margin-left: 5vw; }
  .stop-3 { margin-left: 10vw; }
  .band { top: 40vw; height: 26vw; transform: rotate(-14deg); }
  .m-body-inner { margin-left: 0; }
  .m-body { padding-bottom: 18vw; }
  .sheet { margin-top: 40px; border-left-width: 8px; }
  .sheet-row { grid-template-columns: 28px 1fr; padding: 16px 16px 16px 14px; gap: 2px 14px; }
  .sheet-icon { grid-row: span 2; align-self: start; margin-top: 2px; }
  .sheet dt, .sheet dd { grid-column: 2; }
}

/* ---------- How it works (yellow, skewed) ---------- */
.how {
  position: relative;
  background: var(--yellow);
  color: var(--black);
  clip-path: polygon(0 0, 100% var(--cut), 100% 100%, 0 calc(100% - var(--cut)));
  z-index: 1;
  margin-top: calc(-1 * var(--cut) / 2);
}
.how-head, .how-steps { position: relative; }
.how-head { padding-top: calc(var(--cut) + 72px); padding-bottom: 64px; }
.how h2 { font-size: var(--display-m); max-width: 17ch; }
.how-sub { margin-top: 20px; font-size: clamp(1.125rem, 1.4vw, 1.375rem); font-weight: 600; max-width: 52ch; text-wrap: pretty; }
.how-steps { padding-bottom: calc(var(--cut) + 96px); }
.route-strip { height: 64px; bottom: auto; }
.route-after-strip { top: 64px; height: auto; }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.step { position: relative; max-width: 22rem; }
.pin {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--black);
  color: var(--yellow);
  font: italic 800 1.875rem/1 var(--font);
  margin-bottom: 24px;
}
.step h3 { font-size: clamp(1.6rem, 2.3vw, 2.25rem); line-height: 0.95; margin-bottom: 12px; }
.step p { max-width: 32ch; }

@media (max-width: 899.98px) {
  .how { clip-path: polygon(0 0, 100% var(--cut), 100% calc(100% - var(--cut)), 0 100%); }
  .how-head { padding-top: calc(var(--cut) + 48px); padding-bottom: 40px; }
  .how-steps { padding-top: 24px; padding-bottom: calc(var(--cut) + 64px); }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .step { padding-left: calc(10.5vw + 34px - var(--gutter)); max-width: none; }
  .pin {
    position: absolute;
    left: calc(10.5vw - 24px - var(--gutter));
    top: -6px;
    width: 48px; height: 48px;
    font-size: 1.4rem;
    margin: 0;
  }
}

/* ---------- Routes ---------- */
.routes { position: relative; background: var(--white); margin-top: calc(-1 * var(--cut) / 2); }
.routes-head, .routes-cards, .routes-foot { position: relative; }
.routes-head { padding-top: calc(var(--cut) + 72px); padding-bottom: 72px; }
.routes h2, .screens h2 { font-size: var(--display-m); color: var(--blue); }
.section-sub { margin-top: 18px; font-size: clamp(1.125rem, 1.4vw, 1.375rem); font-weight: 600; max-width: 52ch; text-wrap: pretty; }
.postcards {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}
.postcard { position: relative; transform: rotate(-1.5deg); }
.postcard:nth-child(2) { transform: rotate(1.5deg); margin-top: 72px; }
.postcard:nth-child(3) { margin-top: 24px; }
.pc-photo { position: relative; container-type: inline-size; }
.pc-photo img {
  width: 100%;
  aspect-ratio: 354 / 426;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--blue);
}
.tag {
  position: absolute;
  top: -4cqw; right: -5cqw;
  min-width: 42cqw;
  height: 24cqw;
  display: grid; place-items: center;
  padding: 0 4cqw;
  background: var(--black);
  color: var(--white);
  font: italic 800 14cqw/1 var(--font);
  letter-spacing: -0.02em;
  border-radius: 2px;
}
.hours {
  position: absolute;
  left: -4cqw; bottom: 7cqw;
  width: 18cqw; height: 25cqw;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1cqw;
  background: var(--blue);
  color: var(--white);
  font: 600 11cqw/1 var(--font);
  border-radius: 2px;
}
.hours svg { width: 9cqw; height: 9cqw; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.postcard h3 { margin-top: 32px; color: var(--blue); font-weight: 700; font-size: clamp(1.4rem, 1.9vw, 1.875rem); line-height: 1.02; }
.pc-meta { list-style: none; margin: 10px 0 0; padding: 0; font-size: 1rem; color: var(--ink); }
.routes-foot { padding-top: 64px; padding-bottom: 112px; }
.note { font-weight: 600; max-width: 60ch; }

@media (max-width: 899.98px) {
  .routes-head { padding-top: 48px; padding-bottom: 48px; }
  .postcards { grid-template-columns: 1fr; gap: 64px; max-width: 26rem; margin-inline: auto; padding-inline: 6px 14px; }
  .postcard:nth-child(2), .postcard:nth-child(3) { margin-top: 0; }
  .postcard:nth-child(3) { transform: rotate(-1deg); }
  .routes-foot { padding-top: 48px; padding-bottom: 72px; }
}

/* ---------- Screens ---------- */
.screens { position: relative; }
.screens-head, .screens-strip { position: relative; }
.screens-head { padding-top: 112px; padding-bottom: 48px; }
.screens h2 { color: var(--white); }
.screens .section-sub { color: var(--white); }
.scribble {
  position: absolute;
  right: calc(var(--gutter) + 8vw);
  bottom: -24px;
  width: clamp(110px, 12vw, 180px);
  fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
}
.gallery {
  position: relative;
  z-index: 2;
  list-style: none;
  margin: 0;
  padding: 16px var(--gutter) 40px;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-color: var(--yellow) transparent;
}
.gallery li { flex: none; width: clamp(220px, 21vw, 300px); scroll-snap-align: start; }
.gallery img { border-radius: var(--radius); background: var(--white); }

@media (max-width: 899.98px) {
  .screens-head { padding-top: 72px; }
  .scribble { right: var(--gutter); width: 96px; bottom: -28px; }
  .gallery { gap: 16px; }
  .gallery li { width: 62vw; }
}

/* ---------- Closing ---------- */
.closing { position: relative; }
.closing-head, .closing-cta, .closing-foot { position: relative; }
.closing-head { padding-top: 80px; padding-bottom: 48px; }
.closing h2 { font-size: var(--display-l); max-width: 12ch; line-height: 0.92; }
.closing-sub { margin-top: 24px; font-size: clamp(1.125rem, 1.4vw, 1.375rem); font-weight: 600; }
.end-pin {
  position: absolute;
  z-index: 2;
  left: calc(var(--pin-x) - 18px);
  bottom: -2px;
  width: 36px; height: 50px;
}
.end-pin path { fill: var(--yellow); stroke: var(--black); stroke-width: 2; }
.end-pin circle { fill: var(--black); }
.closing-foot { padding-top: 40px; padding-bottom: 96px; }
.text-link { color: var(--white); font-weight: 600; text-decoration-thickness: 2px; }
.text-link:hover { color: var(--yellow); }

@media (max-width: 899.98px) {
  .closing-head { padding-top: 88px; }
  .closing-cta .cta-row { flex-direction: column; align-items: stretch; max-width: 22rem; padding-left: calc(var(--pin-x) + 26px - var(--gutter)); }
  .closing-foot { padding-bottom: 72px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--white); color: var(--ink); font-size: 1rem; }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 32px;
  padding-top: 28px; padding-bottom: 28px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--blue); font-weight: 600; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* ---------- 404 ---------- */
.lost {
  position: relative;
  min-height: calc(100svh - 76px);
  display: grid;
  align-items: center;
  overflow: clip;
  padding-block: 48px 96px;
}
.lost-q {
  font: italic 800 clamp(16rem, 42vw, 34rem)/0.8 var(--font);
  color: var(--blue);
  letter-spacing: -0.04em;
  margin: 0;
}
.lost-q { position: relative; display: inline-block; }
.lost-route {
  position: absolute; left: 37%; top: 62%; width: 230%; height: 38%;
  overflow: visible; pointer-events: none; color: var(--blue);
}
.lost-route path {
  fill: none; stroke: currentColor; stroke-width: 3; stroke-dasharray: 10 8;
  stroke-linecap: round; vector-effect: non-scaling-stroke;
}
.lost p:not(.lost-q) { font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 600; margin: 24px 0 32px; max-width: 32ch; text-wrap: balance; }

/* ---------- Privacy ---------- */
.prose-wrap { position: relative; overflow: clip; }
.prose-wrap .band { top: 40px; height: 120px; left: -20vw; width: 140vw; transform: rotate(-4deg); }
.prose { position: relative; z-index: 2; max-width: calc(70ch + 2 * var(--gutter)); padding: 72px var(--gutter) 112px; }
.prose h1 { color: var(--blue); font-size: clamp(3rem, 8vw, 6rem); }
.prose h2 { color: var(--blue); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1; margin: 2em 0 0.5em; }
.prose p, .prose ul { max-width: 70ch; }
.prose p + p { margin-top: 1em; }
.prose ul { padding-left: 1.2em; margin: 0; }
.prose li + li { margin-top: 0.5em; }
.prose .updated { margin: 16px 0 40px; font-weight: 600; }
@media (max-width: 899.98px) {
  .lost-route { width: 175%; }
}
