/*
  Milepost — web share styling.
  A port of the iOS app's TripDetailView / ProfileView: one dark look, SF Pro
  worked across three axes (expanded / condensed / monospaced small-caps),
  drawn road furniture over ambient texture. No web fonts, no frameworks.
*/

:root {
  --yellow: #FFD43A;
  --red: #DA080D;
  --blue: #2091ED;

  --bg-top: #151515;
  --bg-bottom: #000000;
  --hero-fade: #0c0c0c;
  --tile: #1a1a1a;
  --neutral: #2A2A2C;

  --card: rgba(255, 255, 255, 0.05);
  --card-faint: rgba(255, 255, 255, 0.04);
  --divider: rgba(255, 255, 255, 0.08);
  --border-photo: rgba(255, 255, 255, 0.10);

  --w100: #ffffff;
  --w85: rgba(255, 255, 255, 0.85);
  --w80: rgba(255, 255, 255, 0.80);
  --w75: rgba(255, 255, 255, 0.75);
  --w70: rgba(255, 255, 255, 0.70);
  --w60: rgba(255, 255, 255, 0.60);
  --w50: rgba(255, 255, 255, 0.50);
  --w40: rgba(255, 255, 255, 0.40);
  --w35: rgba(255, 255, 255, 0.35);
  --w30: rgba(255, 255, 255, 0.30);

  --content: 720px;
  --pad: 20px;

  --sans: -apple-system, "SF Pro", "SF Pro Display", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
}

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

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--w100);
  background-color: var(--bg-bottom);
  background-image: linear-gradient(var(--bg-top), var(--bg-bottom));
  background-attachment: fixed;
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.4;
}

img { max-width: 100%; }

a { color: inherit; }

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

/* ---- Layout ---------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.stack-28 > * + * { margin-top: 28px; }

/* ---- Icons ----------------------------------------------------------- */

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

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  fill: currentColor;
  flex: none;
}

/* ---- Shared type roles ---------------------------------------------- */

.section-title {
  font-stretch: condensed;
  font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--w100);
  margin-bottom: 14px;
}

/* ====================================================================== */
/* HERO                                                                    */
/* ====================================================================== */

.hero {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
  background: var(--tile);
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(rgba(12, 12, 12, 0), var(--hero-fade));
  pointer-events: none;
  z-index: 3;
}

/* ---- Route map panel (hero + card) ---------------------------------- */

.routemap {
  position: relative;
  background: var(--tile);
  overflow: hidden;
}

.routemap--hero { position: absolute; inset: 0; }

.routemap--card {
  height: 210px;
  border-radius: 24px;
  border: 1px solid var(--divider);
}

.routemap__svg,
.routemap__mk {
  position: absolute;
  inset: 0;
}

.routemap__svg { z-index: 1; transition: opacity 0.5s ease; }
.routemap__svg svg { width: 100%; height: 100%; display: block; }

.routemap__mk { z-index: 2; opacity: 0; transition: opacity 0.5s ease; }

.routemap.is-map-ready .routemap__mk { opacity: 1; }
.routemap.is-map-ready .routemap__svg { opacity: 0; pointer-events: none; }

/* Endpoint dots drawn as custom DOM annotations (white start, yellow end). */
.mk-endpoint {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mk-endpoint::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dot, #fff);
}

/* ====================================================================== */
/* TRIP PAGE                                                               */
/* ====================================================================== */

.trip { padding-top: 24px; padding-bottom: 8px; }

/* ---- Title & story --------------------------------------------------- */

.titleblock > * + * { margin-top: 8px; }

.trip__date {
  font-family: var(--mono);
  font-variant-caps: all-small-caps;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--yellow);
}

.trip__title {
  font-stretch: expanded;
  font-weight: 700;
  font-size: 34px;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--w100);
}

.trip__narrative {
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.55;
  color: var(--w75);
  white-space: pre-wrap;
  margin-top: 12px;
}

.trip__provenance {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  color: var(--w35);
  margin-top: 4px;
}
.prov__icon { width: 12px; height: 12px; }

/* ---- Stats bento ----------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 132px;
  padding: 18px;
  border-radius: 20px;
  background: var(--card);
}

.tile__icon { width: 18px; height: 18px; color: var(--yellow); }

.tile__figure {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tile__value {
  font-stretch: expanded;
  font-weight: 700;
  font-size: 38px;
  line-height: 1;
  color: var(--w100);
}
.tile--distance .tile__value { font-size: 44px; }

.tile__unit {
  font-family: var(--mono);
  font-variant-caps: all-small-caps;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--w60);
}

/* ---- The Drive ------------------------------------------------------- */

.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.section-head__title {
  font-stretch: condensed;
  font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--w100);
  flex: none;
}

/* Lane-line divider: a dashed center-line that drifts slowly. */
.lane-divider {
  flex: 1 1 auto;
  height: 2px;
  background-image: repeating-linear-gradient(
    to right,
    var(--w40) 0, var(--w40) 22px,
    transparent 22px, transparent 38px
  );
  background-size: 38px 2px;
  background-repeat: repeat-x;
  animation: lane-drift 1.6s linear infinite;
}

@keyframes lane-drift {
  to { background-position: -38px 0; }
}

.drive__chapters > * + * { margin-top: 34px; }

/* Chapters are borderless magazine spreads — no card background. */
.chapter { }

.chapter__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-stretch: condensed;
  font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--w100);
}
.chapter__icon { width: 16px; height: 16px; }

.chapter__body {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.55;
  color: var(--w80);
  white-space: pre-wrap;
}

.chapter__text > * + * { margin-top: 10px; }

/* Visual slots: the server injects <img class="visual-photo"> or
   <div class="chapter-map"><svg></div>; we size them to fill the slot. */
.visual-slot {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border-photo);
  background: var(--tile);
}
.visual-slot--16 { border-radius: 16px; }
.visual-slot--22 { border-radius: 22px; }

.visual-slot .visual-photo,
.visual-slot .chapter-map {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: var(--tile);
}
.visual-slot .chapter-map { position: relative; }
.chapter-map__svg,
.chapter-map__mk {
  position: absolute;
  inset: 0;
}
.chapter-map__svg { z-index: 1; transition: opacity 0.5s ease; }
.chapter-map__svg svg { width: 100%; height: 100%; display: block; }
.chapter-map__mk { z-index: 2; opacity: 0; transition: opacity 0.5s ease; }
.chapter-map.is-map-ready .chapter-map__mk { opacity: 1; }
.chapter-map.is-map-ready .chapter-map__svg { opacity: 0; pointer-events: none; }

/* imageLeadText */
.c-imglead { display: flex; align-items: flex-start; gap: 16px; }
.c-imglead__visual { flex: none; width: 132px; height: 178px; }

/* textLeadImageTilted */
.c-tilted { display: flex; align-items: flex-start; gap: 16px; }
.c-tilted .chapter__text { flex: 1 1 auto; }
.c-tilted__visual {
  flex: none;
  width: 120px;
  height: 158px;
  margin-top: 8px;
  transform: rotate(4deg);
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.35);
}

/* fannedImagesText */
.c-fan > * + * { margin-top: 18px; }
.c-fan__stack { position: relative; height: 150px; }
.fan-card {
  position: absolute;
  left: 50%;
  top: 15px;
  width: 120px;
  height: 120px;
  margin-left: -60px;
  border: 3px solid #fff;
  border-radius: 14px;
  object-fit: cover;
  background: var(--tile);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transform-origin: center;
}
.fan-front       { z-index: 3; box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25); }
.fan-back-right  { z-index: 1; transform: translateX(34px) rotate(10deg); }
.fan-back-left   { z-index: 2; transform: translateX(-34px) rotate(-10deg); }
.fan-two-front   { z-index: 3; transform: translateX(-40px) rotate(-10deg); }
.fan-two-back    { z-index: 2; transform: translateX(40px) rotate(10deg); }
.fan-single      { z-index: 3; }

/* textRowImages */
.c-rowimages > * + * { margin-top: 12px; }

/* fullBleedMap */
.c-fullmap > * + * { margin-top: 14px; }
.c-fullmap__visual { height: 200px; }

/* dropCapProse */
.c-dropcap > * + * { margin-top: 10px; }
.c-dropcap__prose { overflow: hidden; }
.dropcap {
  float: left;
  font-stretch: expanded;
  font-weight: 700;
  font-size: 44px;
  line-height: 0.86;
  padding-right: 8px;
  margin-top: 2px;
}

/* photoBackdrop */
.c-backdrop {
  position: relative;
  height: 340px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border-photo);
}
.c-backdrop__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.c-backdrop__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.2) 55%,
    rgba(0, 0, 0, 0.85) 100%
  );
}
.c-backdrop__text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
}
.c-backdrop__text .chapter__text > * + * { margin-top: 8px; }

/* sideMapNote */
.c-sidemap > * + * { margin-top: 12px; }
.c-sidemap__top { display: flex; align-items: flex-start; gap: 14px; }
.c-sidemap__visual { flex: none; width: 116px; height: 116px; }
.c-sidemap__top .chapter__heading { padding-top: 2px; }

/* dualPhotoSplit */
.c-dual > * + * { margin-top: 12px; }
.c-dual__pair { display: flex; gap: 10px; }
.c-dual__img {
  flex: 1 1 0;
  width: 0;
  height: 168px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--border-photo);
  background: var(--tile);
  display: block;
}

/* ---- Highlights ------------------------------------------------------ */

.highlight-list { display: flex; flex-direction: column; gap: 10px; }

.highlight {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
}
.highlight__icon { width: 22px; height: 22px; flex: none; }
.highlight__text {
  font-stretch: condensed;
  font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.highlight--blue {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), rgba(32, 145, 237, 0.7));
}
.highlight--yellow {
  color: #000;
  background: linear-gradient(135deg, var(--yellow), rgba(255, 212, 58, 0.7));
}
.highlight--red {
  color: #fff;
  background: linear-gradient(135deg, var(--red), rgba(218, 8, 13, 0.7));
}

/* ---- Journal --------------------------------------------------------- */

.journal__text {
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.55;
  color: var(--w85);
  white-space: pre-wrap;
  padding: 18px;
  border-radius: 18px;
  background: var(--card);
}
.journal .photostrip { margin-top: 12px; }

/* ---- Details --------------------------------------------------------- */

.kv {
  padding: 4px 16px;
  border-radius: 18px;
  background: var(--card);
}
.kv__row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  font-family: var(--mono);
  font-size: 15px;
}
.kv__row + .kv__row { border-top: 1px solid var(--divider); }
.kv__label { color: var(--w60); }
.kv__value { margin-left: auto; text-align: right; color: var(--w100); }

/* ---- Marks ----------------------------------------------------------- */

.mark-list { display: flex; flex-direction: column; gap: 10px; }

.mark {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: var(--card);
}
.mark__icon {
  flex: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mark__icon .icon { width: 18px; height: 18px; }
.mark__body { flex: 1 1 auto; min-width: 0; }
.mark__body > * + * { margin-top: 8px; }
.mark__title {
  font-stretch: condensed;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--w100);
}
.mark__note {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.5;
  color: var(--w75);
  white-space: pre-wrap;
}

/* ---- Byline ---------------------------------------------------------- */

.byline__text {
  font-family: var(--mono);
  font-variant-caps: all-small-caps;
  font-size: 15px;
  letter-spacing: 0.03em;
  color: var(--w60);
}
.byline__link {
  color: var(--yellow);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 212, 58, 0.35);
}
.byline__link:hover { border-bottom-color: var(--yellow); }

/* ---- Photo strips (bleed past the page padding, hidden scrollbar) ---- */

.photostrip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  margin-inline: calc(-1 * var(--pad));
  padding-inline: var(--pad);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.photostrip::-webkit-scrollbar { display: none; }
.photostrip--chapter { gap: 10px; }

.photostrip__item {
  flex: none;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--border-photo);
  background: var(--tile);
  scroll-snap-align: start;
  display: block;
}
.photostrip__item--journal { width: 240px; height: 300px; }
.photostrip__item--mark    { width: 200px; height: 150px; }
.photostrip__item--chapter { width: 168px; height: 132px; }

/* ====================================================================== */
/* PROFILE PAGE                                                            */
/* ====================================================================== */

.profile { padding-top: 32px; padding-bottom: 8px; }

.profile__header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar--mono { background: linear-gradient(135deg, var(--yellow), var(--red)); }
.avatar__initials {
  font-stretch: expanded;
  font-weight: 700;
  font-size: 24px;
  color: #000;
  text-transform: uppercase;
}

.profile__id { min-width: 0; }
.profile__name {
  font-stretch: expanded;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--w100);
}
.profile__since {
  font-family: var(--mono);
  font-variant-caps: all-small-caps;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.03em;
  color: var(--yellow);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

.profile__bio {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.55;
  color: var(--w75);
  white-space: pre-wrap;
}

/* ---- Profile stat tiles ---------------------------------------------- */

.stats--four {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 124px;
  padding: 16px;
  border-radius: 20px;
  background: var(--card);
}
.stile__icon { width: 18px; height: 18px; color: var(--yellow); }
.stile__figure {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stile__value {
  font-stretch: expanded;
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  color: var(--w100);
}
.stile__unit {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 14px;
  color: var(--w60);
}
.stile__label {
  font-family: var(--mono);
  font-variant-caps: all-small-caps;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--w60);
  margin-top: 4px;
}

/* ---- Garage / vehicle cards ------------------------------------------ */

.garage__scroll { padding-block: 4px; align-items: stretch; }

.vcard {
  position: relative;
  flex: none;
  width: 190px;
  padding: 12px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--divider);
  scroll-snap-align: start;
}
.vcard--primary { border-color: rgba(255, 212, 58, 0.6); }
.vcard__star {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  font-size: 12px;
  color: var(--yellow);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}
.vcard__art {
  height: 110px;
  border-radius: 16px;
  background: var(--tile);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vcard__car {
  width: 92px;
  height: auto;
  color: #fff;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}
.vcard__render {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}
/* No render yet: a quiet wash of the car's paint colour rather than a generic
   wireframe car — nothing that reads as a placeholder default. */
.vcard__placeholder {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: radial-gradient(120% 90% at 50% 42%,
              color-mix(in srgb, var(--swatch, #6a6a6a) 30%, transparent), transparent 72%);
}
.vcard__title {
  font-stretch: condensed;
  font-weight: 600;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--w100);
  margin-top: 12px;
}
.vcard__subtitle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--w60);
  margin-top: 4px;
}
.swatch {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

/* ---- Roadbook -------------------------------------------------------- */

.roadbook__list { display: flex; flex-direction: column; gap: 18px; }

.rbrow {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}
.rbrow__map {
  flex: none;
  width: 120px;
  height: 120px;
  border-radius: 14px;
  border: 3px solid #fff;
  overflow: hidden;
  background: var(--tile);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.rbrow__map svg { width: 100%; height: 100%; display: block; }
.rbrow__text { min-width: 0; }
.rbrow__title {
  font-stretch: condensed;
  font-weight: 600;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--w100);
}
.rbrow__subtitle {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--w70);
  margin-top: 4px;
}

/* ---- Capsule buttons ------------------------------------------------- */

.capsule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 9999px;
  text-decoration: none;
  font-stretch: condensed;
  font-weight: 600;
  font-variant-caps: all-small-caps;
  font-size: clamp(18px, 4.5vw, 24px);
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.capsule__icon { width: 20px; height: 20px; }
.capsule--yellow {
  background: var(--yellow);
  color: #000;
  box-shadow: 0 10px 5px rgba(255, 212, 58, 0.25);
}
.capsule--neutral {
  background: var(--neutral);
  color: #fff;
  box-shadow: 0 10px 5px rgba(0, 0, 0, 0.3);
}
.capsule:hover { filter: brightness(1.05); transform: translateY(-1px); }
.capsule:active { transform: translateY(0); }

.addfriend {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.addfriend__caption {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--w50);
}

/* ====================================================================== */
/* FRIEND INVITE                                                           */
/* ====================================================================== */

.invite__avatar { width: 96px; height: 96px; }
.invite__avatar .avatar__initials { font-size: 36px; }
.invite__title {
  font-stretch: expanded;
  font-weight: 700;
  font-size: clamp(26px, 7vw, 40px);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--w100);
}
.invite__fineprint {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--w50);
  max-width: 340px;
}

/* ====================================================================== */
/* FOOTER                                                                  */
/* ====================================================================== */

.footer { margin-top: 44px; padding-bottom: 36px; }
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

/* Checkered finish strip: two rows of ~3.5px squares, ends dissolved. */
.finish {
  width: 100%;
  height: 7px;
  margin-bottom: 12px;
  background-color: rgba(255, 255, 255, 0.02);
  background-image:
    repeating-conic-gradient(var(--w35) 0% 25%, transparent 0% 50%);
  background-size: 7px 7px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.wordmark {
  font-stretch: expanded;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--w50);
}
.tagline {
  font-family: var(--mono);
  font-variant-caps: all-small-caps;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--w30);
}

/* ====================================================================== */
/* LANDING + LOST HIGHWAY                                                  */
/* ====================================================================== */

.landing {
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.landing__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  max-width: 460px;
  padding-block: 48px;
}
.wordmark--lg {
  font-size: clamp(38px, 12vw, 60px);
  letter-spacing: 0.04em;
  color: var(--w100);
}
.landing__tagline { color: var(--w40); }
.landing__lede {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  color: var(--w70);
}
.landing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 8px;
}
.lane-divider--center {
  width: 120px;
  flex: none;
  margin-block: 4px;
}

/* ====================================================================== */
/* RESPONSIVE                                                              */
/* ====================================================================== */

@media (max-width: 600px) {
  .hero { height: 240px; }
  .trip__title { font-size: 30px; }
}

@media (min-width: 700px) {
  .stats--four { grid-template-columns: repeat(4, 1fr); }
}

/* ====================================================================== */
/* MOTION + PRINT                                                          */
/* ====================================================================== */

@media (prefers-reduced-motion: reduce) {
  .lane-divider { animation: none; }
  .routemap__svg,
  .routemap__mk,
  .chapter-map__svg,
  .chapter-map__mk,
  .capsule { transition: none; }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }
  .routemap__mk,
  .chapter-map__mk { display: none !important; }
  .routemap__svg,
  .chapter-map__svg { opacity: 1 !important; }
  .capsule, .lane-divider { box-shadow: none; }
}

/* ====================================================================== */
/* MARKETING SITE — namespaced so the shared trip page stays pixel-stable. */
/* ====================================================================== */

.page-landing {
  background-color: #000;
  background-image:
    radial-gradient(circle at 72% 12%, rgba(32, 145, 237, 0.13), transparent 28rem),
    radial-gradient(circle at 18% 34%, rgba(255, 212, 58, 0.06), transparent 24rem),
    linear-gradient(#151515, #000 38rem);
}
.marketing-shell { width: min(100%, 1180px); margin-inline: auto; padding-inline: 28px; }
.marketing-nav {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--divider);
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(18px) saturate(130%);
}
.marketing-nav__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.marketing-brand, .profile-web-brand, .invite-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-stretch: expanded;
  font-size: 17px;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}
.marketing-brand__mark, .profile-web-brand img, .invite-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.marketing-nav__links { display: flex; align-items: center; gap: 26px; }
.marketing-nav__links a {
  color: var(--w60);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.16s ease;
}
.marketing-nav__links a:hover { color: #fff; }

.marketing-hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.82fr);
  align-items: center;
  gap: clamp(42px, 8vw, 110px);
  padding-block: 88px 106px;
}
.marketing-hero__copy { max-width: 670px; }
.marketing-kicker, .profile-discovery__kicker {
  color: var(--yellow);
  font-family: var(--mono);
  font-variant-caps: all-small-caps;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.07em;
}
.marketing-hero__title {
  margin-top: 16px;
  font-stretch: expanded;
  font-size: clamp(54px, 7.6vw, 100px);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 0.88;
  text-transform: uppercase;
}
.marketing-hero__name {
  display: block;
  margin-bottom: 15px;
  color: var(--w60);
  font-size: 0.22em;
  letter-spacing: 0.16em;
  line-height: 1;
}
.marketing-hero__lede {
  max-width: 610px;
  margin-top: 28px;
  color: var(--w70);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.56;
}
.marketing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  margin-top: 30px;
}
.marketing-button, .invite-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-stretch: condensed;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.16s ease, filter 0.16s ease, border-color 0.16s ease;
}
.marketing-button .icon, .invite-button .icon { width: 19px; height: 19px; }
.marketing-button--primary, .invite-button--primary {
  color: #000;
  background: var(--yellow);
  box-shadow: 0 11px 26px rgba(255, 212, 58, 0.2);
}
.marketing-button--secondary, .invite-button--secondary {
  color: #fff;
  border-color: var(--divider);
  background: var(--neutral);
}
.marketing-button:hover, .invite-button:hover { filter: brightness(1.08); transform: translateY(-2px); }
.marketing-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--w60);
  font-family: var(--mono);
  font-size: 11px;
  list-style: none;
  text-transform: uppercase;
}
.marketing-proof li { display: inline-flex; align-items: center; gap: 8px; }
.marketing-proof li::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--yellow);
  content: "";
  box-shadow: 0 0 9px rgba(255, 212, 58, 0.7);
}

.marketing-hero__visual {
  position: relative;
  width: 100%;
  max-width: 470px;
  justify-self: end;
  padding: 28px 8px;
}
.marketing-roadbook {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  background: #101010;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.58);
  transform: rotate(1.7deg);
}
.marketing-roadbook::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  content: "";
  pointer-events: none;
}
.marketing-roadbook__map {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: radial-gradient(circle at 42% 42%, rgba(32, 145, 237, 0.15), transparent 38%), linear-gradient(145deg, #252525, #121212);
}
.marketing-roadbook__map svg { width: 100%; height: 100%; display: block; }
.marketing-route__terrain {
  fill: none;
  stroke: rgba(255, 255, 255, 0.055);
  stroke-linecap: round;
  stroke-width: 38;
}
.marketing-route__terrain--two { stroke-width: 25; }
.marketing-route__shadow {
  fill: none;
  stroke: rgba(0, 0, 0, 0.72);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 15;
}
.marketing-route__line {
  fill: none;
  stroke: var(--blue);
  stroke-dasharray: 650;
  stroke-dashoffset: 650;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 8;
  animation: marketing-route-draw 2.2s 0.35s cubic-bezier(.22,.74,.18,1) forwards;
}
.marketing-route__start { fill: #fff; stroke: #111; stroke-width: 5; }
.marketing-route__end { fill: var(--yellow); stroke: #111; stroke-width: 5; }
.marketing-route__pin { fill: var(--red); filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.5)); }
.marketing-route__pin circle { fill: #fff; }
@keyframes marketing-route-draw { to { stroke-dashoffset: 0; } }
.marketing-roadbook__map-label {
  position: absolute;
  right: 16px;
  bottom: 14px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  color: var(--w60);
  background: rgba(0, 0, 0, 0.62);
  font-family: var(--mono);
  font-size: 10px;
  backdrop-filter: blur(8px);
}
.marketing-roadbook__body { padding: 24px; }
.marketing-data { font-family: var(--mono); }
.marketing-roadbook__date {
  color: var(--yellow);
  font-size: 11px;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.05em;
}
.marketing-roadbook__body h2 {
  margin-top: 7px;
  font-stretch: expanded;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.04;
  text-transform: uppercase;
}
.marketing-roadbook__story {
  margin-top: 11px;
  color: var(--w70);
  font-family: ui-serif, "New York", Georgia, serif;
  font-size: 16px;
  line-height: 1.5;
}
.marketing-roadbook__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}
.marketing-roadbook__stats > div {
  display: flex;
  min-height: 88px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 13px;
  border-radius: 17px;
  background: var(--card);
}
.marketing-roadbook__stats strong { font-stretch: expanded; font-size: 27px; line-height: 1; }
.marketing-roadbook__stats span {
  margin-top: 5px;
  color: var(--w50);
  font-family: var(--mono);
  font-size: 10px;
  font-variant-caps: all-small-caps;
}
.marketing-moment {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-stretch: condensed;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
}
.marketing-moment .icon { width: 17px; height: 17px; }
.marketing-moment--scenic {
  top: 3px;
  left: -36px;
  color: #fff;
  background: rgba(32, 145, 237, 0.82);
  transform: rotate(-5deg);
}
.marketing-moment--pit {
  right: -28px;
  bottom: 92px;
  color: #000;
  background: rgba(255, 212, 58, 0.9);
  transform: rotate(4deg);
}

.marketing-section { padding-block: 92px; }
.marketing-section__head {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 38px;
}
.marketing-section__head > div { flex: none; max-width: 680px; }
.marketing-section__head h2, .marketing-privacy h2, .marketing-demo h2 {
  margin-top: 9px;
  font-stretch: expanded;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1;
  text-transform: uppercase;
}
.marketing-lane {
  min-width: 90px;
  height: 2px;
  flex: 1 1 auto;
  margin-bottom: 8px;
  background-image: repeating-linear-gradient(to right, var(--w30) 0 22px, transparent 22px 38px);
  background-size: 38px 2px;
  animation: lane-drift 1.6s linear infinite;
}
.marketing-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.marketing-step {
  position: relative;
  min-height: 330px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--divider);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.045);
}
.marketing-step::after {
  position: absolute;
  right: -50px;
  bottom: -76px;
  width: 190px;
  height: 190px;
  border: 26px solid rgba(255, 255, 255, 0.025);
  border-radius: 50%;
  content: "";
}
.marketing-step__number { color: var(--w50); font-family: var(--mono); font-size: 12px; }
.marketing-step__icon {
  display: block;
  width: 30px;
  height: 30px;
  margin-top: 74px;
  color: var(--yellow);
}
.marketing-step h3, .marketing-feature h3, .marketing-privacy__facts h3 {
  margin-top: 18px;
  font-stretch: condensed;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}
.marketing-step p, .marketing-feature p, .marketing-privacy p, .marketing-demo p {
  margin-top: 10px;
  color: var(--w60);
  font-size: 15px;
  line-height: 1.6;
}
.marketing-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.marketing-feature {
  min-height: 240px;
  padding: 25px;
  border: 1px solid var(--divider);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.045);
}
.marketing-feature--wide {
  display: flex;
  min-height: 210px;
  grid-column: span 2;
  align-items: flex-start;
  gap: 26px;
}
.marketing-feature > .icon { width: 29px; height: 29px; color: var(--yellow); }
.marketing-feature--wide > .icon { width: 45px; height: 45px; flex: none; }
.marketing-feature--wide h3 { margin-top: 0; }
.marketing-feature--blue {
  border-color: rgba(32, 145, 237, 0.28);
  background: linear-gradient(135deg, rgba(32, 145, 237, 0.19), rgba(32, 145, 237, 0.045));
}
.marketing-feature--blue > .icon { color: #6ebaff; }
.marketing-feature--yellow {
  color: #000;
  border-color: transparent;
  background: linear-gradient(145deg, var(--yellow), #e7a91e);
}
.marketing-feature--yellow > .icon { color: #000; }
.marketing-feature--yellow p { color: rgba(0, 0, 0, 0.65); }
.marketing-feature--red {
  border-color: rgba(218, 8, 13, 0.3);
  background: linear-gradient(145deg, rgba(218, 8, 13, 0.24), rgba(218, 8, 13, 0.05));
}
.marketing-feature--red > .icon { color: #ff5559; }
.marketing-privacy {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 8vw, 100px);
  padding: clamp(34px, 6vw, 72px);
  overflow: hidden;
  border: 1px solid rgba(255, 212, 58, 0.25);
  border-radius: 32px;
  background: radial-gradient(circle at 0 100%, rgba(255, 212, 58, 0.12), transparent 34rem), rgba(255, 255, 255, 0.045);
}
.marketing-privacy::after {
  position: absolute;
  right: -120px;
  bottom: -210px;
  width: 430px;
  height: 430px;
  border: 42px solid rgba(255, 212, 58, 0.025);
  border-radius: 50%;
  content: "";
}
.marketing-privacy__intro, .marketing-privacy__facts { position: relative; z-index: 1; }
.marketing-privacy__facts { display: grid; gap: 22px; }
.marketing-privacy__facts > div {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0 15px;
}
.marketing-privacy__facts .icon {
  width: 25px;
  height: 25px;
  grid-row: span 2;
  color: var(--yellow);
}
.marketing-privacy__facts h3 { margin-top: 0; font-size: 17px; }
.marketing-privacy__facts p { margin-top: 5px; }
.marketing-demo {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 36px;
  border: 1px solid var(--divider);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.045);
}
.marketing-demo > div:first-child { max-width: 630px; }
.marketing-demo .marketing-actions { flex: none; justify-content: flex-end; }
.marketing-demo p { overflow-wrap: anywhere; }

/* ---- Invite page ----------------------------------------------------- */

.page-invite {
  background-color: #000;
  background-image: radial-gradient(circle at 50% 5%, rgba(255, 212, 58, 0.1), transparent 29rem), linear-gradient(#151515, #000 42rem);
}
.invite-nav {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  padding: 16px 22px;
}
.invite-page {
  display: grid;
  min-height: calc(100vh - 220px);
  place-items: center;
  padding: 44px 20px 72px;
}
.invite-card {
  width: min(100%, 620px);
  padding: clamp(28px, 6vw, 52px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.44);
  text-align: center;
}
.invite-connection {
  display: flex;
  width: min(100%, 360px);
  align-items: center;
  margin-inline: auto;
}
.invite-connection__avatar, .invite-connection__you { width: 88px; height: 88px; }
.invite-connection__avatar { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.045); }
.invite-connection__avatar .avatar__initials { font-size: 32px; }
.invite-connection__you {
  display: grid;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  place-items: center;
  color: var(--yellow);
  background: #202020;
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.035);
}
.invite-connection__you .icon { width: 34px; height: 34px; }
.invite-connection__road {
  height: 2px;
  flex: 1 1 auto;
  background-image: repeating-linear-gradient(to right, var(--yellow) 0 19px, transparent 19px 32px);
  background-size: 32px 2px;
  animation: lane-drift 1.6s linear infinite;
}
.invite-kicker {
  margin-top: 34px;
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 12px;
  font-variant-caps: all-small-caps;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.invite-kicker--quiet { color: var(--w60); }
.invite-card h1 {
  max-width: 520px;
  margin: 12px auto 0;
  font-stretch: expanded;
  font-size: clamp(31px, 7vw, 48px);
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.03;
  text-transform: uppercase;
}
.invite-lede {
  max-width: 500px;
  margin: 18px auto 0;
  color: var(--w70);
  font-size: 17px;
  line-height: 1.58;
}
.invite-card h1, .invite-lede { overflow-wrap: anywhere; }
.invite-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.invite-expiry { margin-top: 19px; color: var(--w60); font-family: var(--mono); font-size: 11px; }
.invite-trust {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 30px;
  padding: 17px;
  border: 1px solid var(--divider);
  border-radius: 18px;
  text-align: left;
  background: rgba(0, 0, 0, 0.24);
}
.invite-trust .icon { width: 21px; height: 21px; flex: none; color: var(--yellow); }
.invite-trust p { color: var(--w60); font-size: 13px; line-height: 1.55; }
.invite-trust strong { color: var(--w85); }

/* ---- Public profile refinements ------------------------------------- */

.profile-web-nav {
  border-bottom: 1px solid var(--divider);
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(16px);
}
.profile-web-nav__inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.profile-web-nav__label {
  color: var(--w60);
  font-family: var(--mono);
  font-size: 11px;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.05em;
}
.page-profile .profile { padding-top: 38px; }
.page-profile .profile__header .avatar { width: 76px; height: 76px; }
.profile__handle { margin-top: 4px; color: var(--w50); font-family: var(--mono); font-size: 12px; }
.page-profile .profile__since { margin-top: 3px; text-shadow: none; }
.page-profile .profile__bio {
  color: var(--w80);
  font-family: ui-serif, "New York", Georgia, serif;
  font-size: 17px;
  line-height: 1.6;
}
.page-profile .profile__name,
.page-profile .profile__handle,
.page-profile .profile__bio,
.page-profile .vcard__title,
.page-profile .vcard__subtitle,
.page-profile .rbrow__title,
.page-profile .rbrow__subtitle { overflow-wrap: anywhere; }
.page-profile .rbrow {
  position: relative;
  padding: 10px;
  margin-inline: -10px;
  border-radius: 20px;
  transition: background 0.16s ease, transform 0.16s ease;
}
.page-profile .rbrow:hover { background: rgba(255, 255, 255, 0.045); transform: translateX(3px); }
.rbrow__arrow { margin-left: auto; padding-right: 4px; color: var(--yellow); font-size: 22px; }
.profile-empty, .profile-discovery {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 21px;
  border: 1px solid var(--divider);
  border-radius: 22px;
  background: var(--card);
}
.profile-empty > .icon { width: 29px; height: 29px; flex: none; color: var(--yellow); }
.profile-empty h2, .profile-discovery h2 {
  font-stretch: condensed;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}
.profile-empty p, .profile-discovery p { margin-top: 5px; color: var(--w60); font-size: 14px; line-height: 1.5; }
.profile-discovery {
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, rgba(255, 212, 58, 0.1), rgba(255, 255, 255, 0.04));
}
.profile-discovery__kicker { font-size: 11px; }
.profile-discovery__link {
  flex: none;
  color: var(--yellow);
  font-stretch: condensed;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.marketing a:focus-visible, .marketing-nav a:focus-visible,
.invite-page a:focus-visible, .invite-nav a:focus-visible,
.page-profile a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}
.page-profile .garage__scroll:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .marketing-hero { min-height: auto; grid-template-columns: 1fr; padding-block: 74px 82px; }
  .marketing-hero__visual { max-width: 500px; justify-self: center; }
  .marketing-steps { grid-template-columns: 1fr; }
  .marketing-step { display: grid; min-height: 0; grid-template-columns: 52px 1fr; gap: 0 18px; }
  .marketing-step__number { grid-column: 1; }
  .marketing-step__icon { grid-column: 1; grid-row: 2 / span 2; margin-top: 20px; }
  .marketing-step h3 { grid-column: 2; margin-top: 18px; }
  .marketing-step p { grid-column: 2; }
  .marketing-bento { grid-template-columns: 1fr 1fr; }
  .marketing-privacy { grid-template-columns: 1fr; }
  .marketing-demo { align-items: flex-start; flex-direction: column; }
  .marketing-demo .marketing-actions { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .marketing-shell { padding-inline: 20px; }
  .marketing-nav__inner { min-height: 64px; }
  .marketing-nav__links { gap: 16px; }
  .marketing-nav__links a:not(:first-child) { display: none; }
  .marketing-brand__mark { width: 30px; height: 30px; }
  .marketing-hero { gap: 52px; padding-block: 58px 72px; }
  .marketing-hero__title { font-size: clamp(49px, 15.5vw, 72px); }
  .marketing-hero__lede { font-size: 17px; }
  .marketing-actions, .marketing-proof { align-items: stretch; flex-direction: column; }
  .marketing-button { width: 100%; }
  .marketing-hero__visual { width: calc(100% - 6px); padding-block: 10px; }
  .marketing-roadbook { transform: none; }
  .marketing-roadbook__map { height: 245px; }
  .marketing-moment--scenic { left: -9px; top: -17px; }
  .marketing-moment--pit { right: -10px; bottom: 70px; }
  .marketing-section { padding-block: 68px; }
  .marketing-section__head { align-items: flex-start; flex-direction: column; gap: 18px; }
  .marketing-lane { width: 100%; flex: none; }
  .marketing-bento { grid-template-columns: 1fr; }
  .marketing-feature--wide { min-height: 0; grid-column: auto; }
  .marketing-privacy { margin-inline: -4px; padding: 28px 23px; border-radius: 26px; }
  .marketing-demo { padding: 26px 22px; }
  .marketing-demo .marketing-actions { width: 100%; }
  .invite-page { align-items: start; padding-top: 22px; }
  .invite-card { border-radius: 26px; }
  .invite-connection__avatar, .invite-connection__you { width: 72px; height: 72px; }
  .invite-connection__you .icon { width: 28px; height: 28px; }
  .invite-actions { align-items: stretch; flex-direction: column; }
  .invite-button { width: 100%; }
  .profile-web-nav__label { display: none; }
  .profile-discovery { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .marketing-route__line { animation: none; stroke-dashoffset: 0; }
  .marketing-lane, .invite-connection__road { animation: none; }
  .marketing-button, .invite-button, .page-profile .rbrow { transition: none; }
}
