/* Groundbreak launch site. Tokens are the brief's survey-plat palette. */
:root {
  /* light */
  --paper: #f3efe7;
  --paper-raised: #fbf8f2;
  --paper-sunken: #e8e1d4;
  --ink: #18201c;
  --ink-muted: #4f564f;
  --rule: #cfc6b6;
  --rule-strong: #9d9484;
  --flag: #ec6a35;
  --flag-text: #a63a12;
  --plat: #9fb3cf;
  --plat-strong: #2f4f7f;
  --lot-open: #3c7a4a;
  --lot-soon: #c99a2e;
  --lot-held: #7a62a0;
  --lot-sold: #8a8478;
  --on-flag: #18201c;
  --on-ink: #f3efe7;
  --shadow: 0 1px 2px rgb(40 30 15 / 0.08), 0 8px 24px -8px rgb(40 30 15 / 0.18);

  /* lot number colour on a full-strength status fill */
  --lt-open: var(--paper);
  --lt-soon: var(--ink);
  --lt-held: var(--paper);
  --lt-sold: var(--ink);

  --display: "Archivo", system-ui, sans-serif;
  --body: "Public Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
  --gutter: 1.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121614;
    --paper-raised: #1a1f1c;
    --paper-sunken: #0c0f0d;
    --ink: #efe9dd;
    --ink-muted: #a9a395;
    --rule: #2c332e;
    --rule-strong: #4a524b;
    --flag: #f07a45;
    --flag-text: #f39467;
    --plat: #34465e;
    --plat-strong: #9db8e4;
    --lot-open: #6fbf80;
    --lot-soon: #e2bb62;
    --lot-held: #b9a6dc;
    --lot-sold: #6f6a62;
    --on-flag: #121614;
    --on-ink: #121614;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px -10px rgb(0 0 0 / 0.6);

    --lt-open: var(--paper);
    --lt-soon: var(--paper);
    --lt-held: var(--paper);
    --lt-sold: var(--ink);
  }
}

@media (min-width: 960px) {
  :root {
    --gutter: 3rem;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  text-wrap: pretty;
  overflow-x: clip;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-variation-settings: "wdth" 112;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  font-weight: 800;
  max-width: 22ch;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.08;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.mono {
  font-family: var(--mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

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

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

.grid-line {
  fill: none;
  stroke: var(--plat);
  stroke-width: 1;
  opacity: 0.45;
}
.hatch-line {
  stroke: var(--ink);
  stroke-width: 1.4;
  opacity: 0.5;
}
.dot-fill {
  fill: var(--ink);
  opacity: 0.5;
}
.flag-fill {
  fill: var(--flag);
}

:focus-visible {
  outline: 3px solid var(--flag);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: calc(76rem + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Sheets ---------- */
.sheet {
  position: relative;
  padding-block: clamp(4rem, 9vw, 7.5rem);
  background: var(--paper);
}

.sunken {
  background: var(--paper-sunken);
}

.drafting {
  background-color: var(--paper);
  background-image:
    linear-gradient(
      to right,
      color-mix(in srgb, var(--plat) 18%, transparent) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      color-mix(in srgb, var(--plat) 18%, transparent) 1px,
      transparent 1px
    );
  background-size: 24px 24px;
}

.sheet-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  font: 500 0.6875rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.sheet-label::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--rule);
}

.eyebrow {
  margin-bottom: 1rem;
  font: 500 0.75rem/1.2 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--flag-text);
}

.intro {
  max-width: 56ch;
  margin-top: 1.25rem;
  color: var(--ink-muted);
  font-size: 1.125rem;
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1 var(--body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn:focus-visible {
  border-radius: 999px;
}

.btn-ink {
  background: var(--ink);
  color: var(--on-ink);
}

.btn-ink:hover {
  background: color-mix(in srgb, var(--ink) 82%, var(--flag));
}

.btn-flag {
  min-height: 3.25rem;
  padding: 0 1.6rem;
  background: var(--flag);
  color: var(--on-flag);
}

.btn-flag:hover {
  background: color-mix(in srgb, var(--flag) 86%, var(--on-flag));
}

.btn-ghost {
  border-color: var(--rule-strong);
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--paper-raised);
}

.btn-tall {
  min-height: 3.25rem;
  padding: 0 1.6rem;
}

.btn-block {
  width: 100%;
}

/* ---------- Logo ---------- */
.mark {
  width: 28px;
  height: 28px;
  flex: none;
  overflow: visible;
}

.mark-ink {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.mark-stake {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.logo {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.5em;
  min-height: 2.75rem;
  padding-block: 0.5rem;
  color: var(--ink);
  text-decoration: none;
}

.wordmark {
  font: 800 1.25rem/1 var(--display);
  font-variation-settings: "wdth" 112;
  letter-spacing: -0.02em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--rule);
}

.header-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  gap: 1rem;
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2rem);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font: 500 0.9375rem/1 var(--body);
  text-decoration: underline 2px transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 160ms ease;
}

.site-nav a:hover {
  text-decoration-color: var(--flag);
}

.site-nav a:active {
  color: var(--flag-text);
}

.btn-header {
  justify-self: end;
}

.btn-header .short {
  display: none;
}

@media (max-width: 719px) {
  .site-nav {
    display: none;
  }
  .header-row {
    grid-template-columns: 1fr auto;
  }
  .btn-header .long {
    display: none;
  }
  .btn-header .short {
    display: inline;
  }
}

/* ---------- Hero ---------- */
.hero {
  min-height: min(100svh, 56rem);
  padding-block: 2rem 5rem;
}

/* The headline spans the sheet so it sets in two lines; copy and plat sit 5/7 beneath. */
.hero-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: start;
  column-gap: clamp(2rem, 4vw, 4rem);
  row-gap: 1.5rem;
}

.hero .sheet-label {
  margin-bottom: 1.25rem;
}

.hero-head {
  grid-column: 1 / -1;
}

.hero-head h1 {
  max-width: 13em;
}

.hero-copy {
  padding-top: 0.5rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.5rem);
  font-weight: 800;
  line-height: 1.02;
}

.hero-sub {
  max-width: 34ch;
  margin-top: 1.5rem;
  font-size: 1.1875rem;
  color: var(--ink-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.fine-print {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.hero-art {
  position: relative;
  aspect-ratio: 720 / 560;
  --px: 0;
  --py: 0;
}

.plat-frame {
  position: absolute;
  inset: 0;
}

.plat {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.plat-hero {
  height: 100%;
}

.plane {
  transition: transform 500ms var(--out);
}

.plane-ui {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ui-card {
  position: absolute;
  padding: 1rem 1.125rem;
  background: var(--paper-raised);
  border-radius: 12px;
  box-shadow: var(--shadow);
  pointer-events: auto;
}

.cd-card {
  top: 2%;
  right: 2%;
  width: min(20rem, 48%);
}

.cd-label {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.cd-digits {
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.cd-group {
  display: grid;
  justify-items: center;
}

.cd-num {
  display: block;
  font-size: 1.75rem;
  line-height: 1.1;
  border-bottom: 2px solid var(--flag);
  padding-bottom: 0.125rem;
}

.cd-sep {
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--rule-strong);
}

.cd-unit {
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  color: var(--ink-muted);
}

.cd-done {
  margin-top: 0.5rem;
  font: 700 1.25rem/1.2 var(--display);
  font-variation-settings: "wdth" 112;
}

.cd-note {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.leader {
  position: absolute;
  left: calc(150 / 720 * 100%);
  top: calc(176 / 560 * 100%);
  height: calc((330 - 176) / 560 * 100%);
  border-left: 1px solid var(--ink);
}

.leader::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3.5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}

.lot-card {
  top: calc(330 / 560 * 100%);
  left: 4%;
  width: min(17rem, 44%);
  border-top: 3px solid var(--flag);
}

.lot-card-title {
  font-size: 0.875rem;
}

.lot-card-meta {
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.lot-card-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.chip-ghost {
  padding: 0.125rem 0.625rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-size: 0.8125rem;
}

/* ---------- The plat (shared by hero, launch day and closing) ---------- */
.plat-sheet {
  fill: var(--paper-raised);
  stroke: var(--rule);
}

.plat-grid {
  fill: url(#gb-grid);
  stroke: none;
}

.contour {
  fill: none;
  stroke: var(--plat);
  stroke-width: 1;
}

.st-edge,
.cul-edge {
  fill: none;
  stroke: var(--plat);
  stroke-width: 28;
}

.cul-edge {
  fill: var(--plat);
  stroke: none;
}

.st-surface {
  fill: none;
  stroke: var(--paper-raised);
  stroke-width: 26;
}

.cul-surface {
  fill: var(--paper-raised);
}

.st-mid {
  fill: none;
  stroke: var(--plat);
  stroke-width: 1;
  stroke-dasharray: 6 6;
}

.st-label {
  font: 500 10px var(--mono);
  letter-spacing: 0.08em;
  fill: var(--plat-strong);
  stroke: var(--paper-raised);
  stroke-width: 4px;
  paint-order: stroke;
}

.park-shape {
  fill: color-mix(in srgb, var(--lot-open) 12%, transparent);
  stroke: var(--plat);
}

.tree {
  fill: var(--lot-open);
  fill-opacity: 0.35;
}

.lot {
  --c: var(--lot-soon);
  --tc: var(--lt-soon);
  --pat: none;
  --dash: 4 3;
}

.plat[data-state="1"] .lot[data-s1="o"],
.plat[data-state="2"] .lot[data-s2="o"],
.plat[data-state="3"] .lot[data-s3="o"],
.plat[data-state="4"] .lot[data-s4="o"] {
  --c: var(--lot-open);
  --tc: var(--lt-open);
  --dash: none;
}

.plat[data-state="1"] .lot[data-s1="r"],
.plat[data-state="2"] .lot[data-s2="r"],
.plat[data-state="3"] .lot[data-s3="r"],
.plat[data-state="4"] .lot[data-s4="r"] {
  --c: var(--lot-held);
  --tc: var(--lt-held);
  --pat: url(#gb-dots);
  --dash: none;
}

.plat[data-state="1"] .lot[data-s1="s"],
.plat[data-state="2"] .lot[data-s2="s"],
.plat[data-state="3"] .lot[data-s3="s"],
.plat[data-state="4"] .lot[data-s4="s"] {
  --c: var(--lot-sold);
  --tc: var(--lt-sold);
  --pat: url(#gb-hatch);
  --dash: none;
}

.lot-shape {
  fill: var(--c);
  fill-opacity: var(--fo, 0.22);
  stroke: color-mix(in srgb, var(--ink) 70%, transparent);
  stroke-width: 1.25;
  stroke-dasharray: var(--dash);
  transition:
    fill 400ms ease,
    stroke-dasharray 0s;
  transition-delay: calc(var(--i) * 18ms);
}

.lot-pat {
  fill: var(--pat);
  stroke: none;
  pointer-events: none;
}

.lot-num {
  font: 500 9px var(--mono);
  text-anchor: middle;
  fill: var(--ink);
}

.plat-full {
  --fo: 0.85;
}

.plat-full .lot-num {
  fill: var(--tc);
  transition: fill 400ms ease;
  transition-delay: calc(var(--i) * 18ms);
}

.lot-hero .lot-shape {
  stroke: var(--flag);
  stroke-width: 2.5;
  stroke-dasharray: none;
}

.stake-marker line {
  stroke: var(--ink);
  stroke-width: 2;
}

.tag {
  opacity: 0;
  transition: opacity 300ms ease;
}

.tag rect {
  fill: var(--flag);
}

.tag text {
  font: 500 9px var(--mono);
  letter-spacing: 0.06em;
  text-anchor: middle;
  fill: var(--on-flag);
}

.plat[data-state="2"] .tag[data-on~="2"],
.plat[data-state="3"] .tag[data-on~="3"],
.plat[data-state="4"] .tag[data-on~="4"] {
  opacity: 1;
}

/* ---------- How it works ---------- */
.steps {
  position: relative;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.survey-line {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  right: 0;
  border-top: 2px dashed var(--plat);
}

.step-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-body h3 {
  margin-top: 1.5rem;
}

.step-body > p {
  margin-top: 0.75rem;
  max-width: 38ch;
  color: var(--ink-muted);
}

.stake {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper-sunken);
  font-size: 1rem;
}

.stake-flag {
  position: absolute;
  top: -14px;
  right: -8px;
  width: 12px;
  height: 14px;
  overflow: visible;
  transform-origin: 1px 14px;
}

.stake-pole {
  stroke: var(--ink);
  stroke-width: 1.5;
}

.code-card,
.folder-card,
.envelope-card {
  margin-top: 1.5rem;
  padding: 1rem 1.125rem;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 12px;
}

.code-card {
  white-space: pre-wrap;
  overflow-x: visible;
  font-size: 0.8125rem;
  line-height: 1.8;
}

/* Wrapped lines hang under the code, not under the line number. */
.code-card .cl {
  display: block;
  padding-left: 1.75rem;
  text-indent: -1.75rem;
  overflow-wrap: anywhere;
}

.code-card .ln {
  display: inline-block;
  width: 1.75rem;
  color: var(--ink-muted);
  user-select: none;
}

.code-card .str {
  color: var(--flag-text);
}

.folder-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.folder-icon {
  width: 20px;
  height: 16px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
}

.file-list {
  margin: 0.5rem 0 0;
  padding: 0 0 0 1.75rem;
  list-style: none;
  font-size: 0.8125rem;
}

.file-list li {
  display: flex;
  justify-content: space-between;
  padding-block: 0.3rem;
  border-top: 1px dashed var(--rule);
}

.ok {
  color: var(--lot-open);
  font-weight: 600;
}

.envelope-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.8125rem;
}

.envelope-icon {
  flex: none;
  width: 28px;
  height: 21px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
}

@media (max-width: 959px) {
  .step-list {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .step {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 1.25rem;
  }
  .step-body h3 {
    margin-top: 0.375rem;
  }
  .survey-line {
    top: 1.25rem;
    bottom: 0;
    left: calc(1.25rem - 1px);
    right: auto;
    border-top: 0;
    border-left: 2px dashed var(--plat);
  }
}

/* ---------- Launch day ---------- */
.ld-track {
  position: relative;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

/* Without script: the stage fixed at state 3, all four moments listed beneath. */
.ld-stage {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.ld-board {
  order: -1;
}

.ld-rail {
  display: none;
}

.moments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.moment h3 {
  margin-top: 0.5rem;
}

.moment > p:not(.clock) {
  margin-top: 0.75rem;
  color: var(--ink-muted);
}

.clock {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plat-strong);
}

.ld-clockbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ld-clock {
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--paper-raised);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ld-chip {
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  border-bottom: 2px solid var(--flag);
  background: var(--paper-raised);
  font-size: 0.875rem;
}

.ld-stage:not([data-state="1"]) .ld-chip {
  display: none;
}

.ld-plat .plat {
  width: 100%;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper-raised);
  font-size: 0.875rem;
}

.legend b {
  font-weight: 500;
}

.sw {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1.5px solid color-mix(in srgb, var(--ink) 70%, transparent);
}

.sw-o {
  background: var(--lot-open);
}

.sw-c {
  background: color-mix(in srgb, var(--lot-soon) 85%, transparent);
  border-style: dashed;
}

.sw-r {
  background:
    radial-gradient(
        circle,
        color-mix(in srgb, var(--ink) 55%, transparent) 1.1px,
        transparent 1.4px
      )
      0 0 / 5px 5px,
    var(--lot-held);
}

.sw-s {
  background:
    repeating-linear-gradient(
      45deg,
      color-mix(in srgb, var(--ink) 55%, transparent) 0 1.4px,
      transparent 1.4px 4px
    ),
    var(--lot-sold);
}

/* Desktop with motion: the scroll-scrubbed stage. */
.is-scrub .ld-track {
  height: 320vh;
}

.is-scrub .ld-stage {
  position: sticky;
  top: var(--header-h);
  display: grid;
  grid-template-columns: 5.5rem minmax(15rem, 1fr) minmax(0, 2.2fr);
  align-items: center;
  gap: 2rem;
  height: calc(100svh - var(--header-h));
  padding-block: 1.5rem;
}

.is-scrub .ld-board {
  order: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
}

.is-scrub .ld-plat {
  min-height: 0;
  flex: 1;
  display: flex;
}

.is-scrub .ld-plat .plat {
  max-height: 100%;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
}

.is-scrub .ld-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: min(26rem, 70%);
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--rule-strong);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.ld-rail li {
  position: relative;
  padding-left: 1rem;
}

.ld-rail li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.625rem;
  border-top: 1px solid var(--rule-strong);
}

.ld-rail li::after {
  content: "";
  position: absolute;
  left: -1px;
  top: calc(50% - 16px);
  width: 14px;
  height: 10px;
  background: var(--flag);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: scale(0);
  transform-origin: left center;
  transition: transform 300ms var(--spring);
}

.ld-rail li.is-active {
  color: var(--ink);
}

.ld-rail li.is-active::after {
  transform: scale(1);
}

.is-scrub .moments {
  display: grid;
  grid-template-columns: 1fr;
}

.is-scrub .moment {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 300ms ease,
    transform 300ms ease;
}

.is-scrub .moment.is-active {
  opacity: 1;
  transform: none;
}

.is-scrub .moment .clock,
.is-scrub .moment-tags,
.is-scrub .moment-plat {
  display: none;
}

.is-scrub .moment h3 {
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
}

/* Phone, tablet and reduced motion: four stacked cards. */
.is-cards .ld-board,
.is-cards .ld-rail {
  display: none;
}

.is-cards .moments {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.is-cards .moment {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 16px;
}

.moment-plat {
  order: 5;
  margin-top: 1.25rem;
}

/* At card size the in-plat labels would render at about 4 px; the tags repeat as chips. */
.moment-plat .lot-num,
.moment-plat .st-label,
.moment-plat .tag {
  display: none;
}

.moment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
}

.moment-tag {
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  border-bottom: 2px solid var(--flag);
  background: var(--paper);
  font-size: 0.8125rem;
}

.moment-plat .legend li {
  padding: 0.25rem 0.625rem;
  font-size: 0.8125rem;
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.feature {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 16px;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
}

.f-gallery {
  grid-column: span 7;
}
.f-lot {
  grid-column: span 5;
}
.f-shortlist,
.f-register,
.f-adopt {
  grid-column: span 4;
}

.feature h3 {
  margin-top: 0.5rem;
}

.feature > p:last-child {
  margin-top: 0.75rem;
  color: var(--ink-muted);
}

.f-label {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--flag-text);
}

.vignette {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  min-height: 9rem;
  padding: 1.125rem;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--rule);
  font-size: 0.875rem;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  transition:
    background-color 200ms ease,
    color 200ms ease,
    border-color 200ms ease;
}

.pill.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-ink);
}

.plan-rows,
.fit-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-rows li {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  gap: 0.75rem;
  padding-block: 0.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
}

.plan-rows li span:first-child {
  font-family: var(--body);
  font-weight: 600;
}

.plan-rows li span:nth-child(2) {
  color: var(--ink-muted);
}

/* Phone: name and price on line one, specs on line two. */
@media (max-width: 719px) {
  .plan-rows li {
    grid-template-columns: 1fr auto;
    row-gap: 0.125rem;
  }
  .plan-rows li span:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

.plan-count {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.mini-lot-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.125rem 0.625rem;
  border: 1.5px solid var(--lot-soon);
  border-radius: 999px;
  font: 500 0.8125rem/1.5 var(--body);
}

.status-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lot-soon);
}

.muted {
  color: var(--ink-muted);
}

.mini-lot > .muted {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
}

.fit-rows {
  margin-top: 0.75rem;
}

.fit-rows li {
  display: flex;
  justify-content: space-between;
  padding-block: 0.375rem;
  border-top: 1px solid var(--rule);
}

.shortlist-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.heart-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  font-size: 1.25rem;
  color: var(--flag-text);
}

.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: var(--flag);
  color: var(--on-flag);
  font-size: 0.6875rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.375rem 0.25rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper-raised);
  font-size: 0.8125rem;
}

.chip .x {
  display: grid;
  place-items: center;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: var(--paper-sunken);
  color: var(--ink-muted);
}

.mail-lines {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.8;
  white-space: pre-wrap;
}

.split-swatch {
  flex-direction: row;
  padding: 0;
  overflow: hidden;
  gap: 0;
}

.split-swatch .half {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1rem 0.5rem;
  background: var(--paper);
  color: var(--ink);
}

.split-swatch .half .mono {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.split-swatch .status-pill {
  border-color: var(--lot-open);
}

.split-swatch .status-pill .dot {
  background: var(--lot-open);
}

.theme-light {
  --paper: #f3efe7;
  --ink: #18201c;
  --ink-muted: #4f564f;
  --lot-open: #3c7a4a;
}

.theme-dark {
  --paper: #121614;
  --ink: #efe9dd;
  --ink-muted: #a9a395;
  --lot-open: #6fbf80;
}

@media (max-width: 959px) {
  .feature-grid > * {
    grid-column: 1 / -1;
  }
}

/* ---------- See it live ---------- */
.seg {
  display: inline-flex;
  margin-top: 2rem;
  padding: 0.25rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--paper-raised);
}

.seg button {
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 500 0.9375rem/1 var(--body);
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.seg button:hover {
  background: var(--paper-sunken);
}

.seg button:active {
  transform: translateY(1px);
}

.seg button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--on-ink);
}

.browser {
  max-width: 100%;
  margin: 1.25rem auto 0;
  overflow: hidden;
  background: var(--paper-raised);
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition:
    max-width 400ms var(--out),
    border-radius 400ms var(--out);
}

.browser.is-phone {
  max-width: 390px;
  border-radius: 28px;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem 0.5rem 1rem;
  border-bottom: 1px solid var(--rule);
}

.dots {
  display: inline-flex;
  gap: 6px;
}

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rule-strong);
}

.address {
  flex: 1;
  min-width: 0;
  max-width: 22rem;
  margin-inline: auto;
  padding: 0.3rem 0.875rem;
  border-radius: 999px;
  background: var(--paper-sunken);
  font-size: 0.8125rem;
  color: var(--ink-muted);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.full-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--flag-text);
  text-decoration: underline 1px transparent;
  text-underline-offset: 4px;
  white-space: nowrap;
  transition: text-decoration-color 160ms ease;
}

.full-link:hover {
  text-decoration-color: currentColor;
}

.full-link:active {
  color: var(--ink);
}

.browser iframe {
  display: block;
  width: 100%;
  height: min(80svh, 52rem);
  border: 0;
  background: var(--paper);
}

.phone-only {
  display: none;
}

.caption {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--ink-muted);
  text-align: center;
}

@media (max-width: 959px) {
  .seg {
    display: none;
  }
  .browser {
    margin-top: 2rem;
  }
  .browser.is-phone {
    max-width: 100%;
    border-radius: 14px;
  }
  .browser iframe {
    height: 70svh;
  }
  .phone-only {
    display: flex;
    margin-top: 1rem;
  }
}

/* ---------- The hand-off ---------- */
.handoff-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.not-title {
  margin-top: 2rem;
  font-size: 1.125rem;
}

.dont-list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.dont-list li {
  padding-block: 0.25rem;
}

.dont-list li::before {
  content: "— ";
  color: var(--ink-muted);
}

.closer {
  margin-top: 1.25rem;
  font-weight: 600;
}

.mail-card {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mail-head {
  margin: 0;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.mail-head div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-block: 0.25rem;
}

.mail-head dt {
  min-width: 4.5rem;
  font-weight: 600;
}

.mail-head dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.9375rem;
}

.mail-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

@media (max-width: 959px) {
  .handoff-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Closing and footer ---------- */
.closing {
  overflow: hidden;
  background: var(--ink);
  color: var(--on-ink);
  --focus: var(--flag);
}

.closing .sheet-label {
  color: color-mix(in srgb, var(--on-ink) 70%, transparent);
}

.closing .sheet-label::after {
  border-color: color-mix(in srgb, var(--on-ink) 15%, transparent);
}

.closing-bg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0.08;
  pointer-events: none;
}

.closing-bg .plat {
  width: max(100%, 60rem);
  --ink: var(--on-ink);
  --plat: var(--on-ink);
  --paper-raised: transparent;
  --rule: transparent;
  --fo: 0;
}

.closing-inner {
  position: relative;
}

.mark-big {
  width: 56px;
  height: 56px;
}

.closing h2 {
  margin-top: 1.5rem;
  font-size: clamp(2.25rem, 5vw, 4rem);
  max-width: none;
}

.closing-line {
  max-width: 44ch;
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: color-mix(in srgb, var(--on-ink) 82%, transparent);
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 600;
  text-decoration: underline 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 160ms ease;
}

.text-link:hover {
  text-decoration-color: var(--flag);
  text-decoration-thickness: 2px;
}

.text-link:active {
  color: var(--flag);
}

.mark-flag {
  transform-box: fill-box;
  transform-origin: left center;
}

.site-footer {
  background: var(--ink);
  color: var(--on-ink);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2rem;
  border-top: 1px solid color-mix(in srgb, var(--on-ink) 15%, transparent);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand .mark {
  width: 24px;
  height: 24px;
}

.footer-note {
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--on-ink) 70%, transparent);
}

/* ---------- Hero, tablet and phone ---------- */
@media (max-width: 959px) {
  .hero {
    min-height: 0;
    padding-block: 1.5rem 4rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-art {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .plane-ui {
    position: static;
    order: -1;
  }
  .ui-card {
    position: relative;
    inset: auto;
  }
  .cd-card {
    width: 100%;
  }
  .lot-card,
  .leader {
    display: none;
  }
  .plat-frame {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--rule);
    border-radius: 12px;
    background: var(--paper-raised);
  }
  .plat-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 180%;
    height: auto;
  }
}

@media (max-width: 719px) {
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .cd-num {
    font-size: 1.625rem;
  }
}

/* ---------- Motion (only when the visitor allows it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Hero entrance: streets draw, lots fade in by phase, flag drops, cards rise. */
  .plat-hero .st-edge,
  .plat-hero .st-surface {
    stroke-dasharray: 1;
    animation: draw 700ms var(--out) both;
    animation-delay: calc(var(--n) * 120ms);
  }
  .plat-hero .st-mid,
  .plat-hero .st-label,
  .plat-hero .cul,
  .plat-hero .park {
    animation: fade 400ms ease both;
    animation-delay: 600ms;
  }
  .plat-hero .lot {
    animation: fade 300ms ease-out both;
    animation-delay: calc(500ms + var(--p) * 120ms + var(--k) * 60ms);
  }
  .plat-hero .flag-drop {
    animation: drop 450ms var(--spring) both;
    animation-delay: 1150ms;
  }
  .hero-art .ui-card {
    animation: rise 450ms var(--out) both;
    animation-delay: 1250ms;
  }
  .hero-art .lot-card {
    animation-delay: 1320ms;
  }
  .hero-art .leader {
    animation: fade 300ms ease both;
    animation-delay: 1300ms;
  }
  .cd-sec.tick {
    animation: tick 400ms ease;
  }

  /* Parallax planes (only moved by script, with a fine pointer on desktop). */
  .hero-art .plane-ground {
    transform: translate(calc(var(--px) * 4px), calc(var(--py) * 4px));
  }
  .hero-art .plane-streets {
    transform: translate(calc(var(--px) * 8px), calc(var(--py) * 8px));
  }
  .hero-art .plane-lots {
    transform: translate(calc(var(--px) * 12px), calc(var(--py) * 12px));
  }
  .hero-art .plane-ui {
    transform: translate(calc(var(--px) * 18px), calc(var(--py) * 18px));
  }

  /* Reveals: hidden only once script is running and waiting for the section. */
  .js .steps:not(.in) .survey-line {
    clip-path: inset(0 100% 0 0);
  }
  .js .steps.in .survey-line {
    animation: line-across 900ms var(--out) both;
  }
  .js .steps:not(.in) .stake-flag {
    transform: scale(0);
  }
  .js .steps.in .stake-flag {
    animation: pop 360ms var(--spring) both;
    animation-delay: calc(var(--n) * 330ms + 80ms);
  }
  .js [data-reveal="type"]:not(.in) .line {
    opacity: 0;
  }
  .js [data-reveal="type"].in .line {
    animation: fade 240ms ease-out both;
    animation-delay: calc(var(--n) * 80ms);
  }
  .js .closing.in .mark-big .mark-flag {
    animation: wave 900ms ease-in-out;
  }

  .feature:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
  }

  @media (max-width: 959px) {
    .js .steps:not(.in) .survey-line {
      clip-path: inset(0 0 100% 0);
    }
    .js .steps.in .survey-line {
      animation-name: line-down;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .lot-shape,
  .plat-full .lot-num,
  .plane,
  .browser,
  .tag {
    transition: none;
  }
}

@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes drop {
  from {
    transform: translateY(-18px);
    opacity: 0;
  }
}

@keyframes rise {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
}

@keyframes tick {
  from {
    opacity: 0.2;
  }
}

@keyframes pop {
  from {
    transform: scale(0);
  }
}

@keyframes line-across {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes line-down {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes wave {
  33% {
    transform: skewY(-6deg);
  }
  66% {
    transform: skewY(6deg);
  }
}
