/* =========================================================================
   GROUNDWORK — marketing site
   Modern-luxury, dark-desert. Warm espresso ground, antique brass, sand light.
   ========================================================================= */

:root {
  /* surfaces — warm near-black, never pure/blue black */
  --ink:      #15110d;
  --ink-2:    #1c1610;
  --ink-3:    #241c14;
  --line:     #3a2e22;
  --line-2:   #4c3b2a;

  /* accents */
  --brass:    #cda35f;
  --brass-2:  #e3c692;
  --ember:    #b75c36;

  /* type */
  --sand:     #ece3d3;
  --sand-dim: #9c8d78;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono:  "Space Grotesk", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1180px;
  --pad:  clamp(1.25rem, 5vw, 2.75rem);
  --bezier: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--sand);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.08rem);
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--brass-2); }
strong { color: var(--sand); font-weight: 600; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---- film grain: faint warmth over everything ---- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================================================
   SHARED TYPE
   ========================================================================= */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--brass);
  opacity: 0.7;
}

.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.018em;
  margin: 0 0 1.8rem;
  color: var(--sand);
}

.lede {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.22rem);
  line-height: 1.62;
  color: var(--sand-dim);
  max-width: 40ch;
  margin: 0 0 1.3rem;
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
  --bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 0.95rem 1.6rem;
  border-radius: 2px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--sand);
  cursor: pointer;
  transition: transform .25s var(--bezier), background .25s var(--bezier),
              border-color .25s var(--bezier), color .25s var(--bezier);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--brass-2); outline-offset: 3px; }

.btn--primary {
  background: var(--brass);
  border-color: var(--brass);
  color: #1a1209;
  font-weight: 500;
}
.btn--primary:hover { background: var(--brass-2); border-color: var(--brass-2); }

.btn--ghost:hover { border-color: var(--brass); color: var(--brass-2); }

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--bezier), border-color .4s var(--bezier),
              backdrop-filter .4s var(--bezier);
}
.nav.is-stuck {
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.42rem;
  letter-spacing: 0.01em;
  color: var(--sand);
}

.nav__coords {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--sand-dim);
  text-transform: uppercase;
}
.coords__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--brass) 70%, transparent);
  animation: ping 3.2s var(--bezier) infinite;
}
.coords__label {
  padding-left: 0.7rem;
  border-left: 1px solid var(--line-2);
  color: var(--brass);
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brass) 60%, transparent); }
  70%  { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.nav__actions { display: flex; align-items: center; gap: 0.6rem; }
.nav__call { padding: 0.5rem 1.1rem; flex-direction: column; gap: 0; line-height: 1.15; }
.btn__sub { font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sand-dim); }
.btn__num { font-size: 0.95rem; color: var(--sand); }

/* the conversion CTA: brass, sized to sit flush with the call button */
.nav__claim { padding: 0.82rem 1.3rem; font-size: 0.82rem; letter-spacing: 0.05em; white-space: nowrap; }
.nav__claim-sm { display: none; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 78px;
  overflow: hidden;
}
/* desert dusk glow rising from the horizon */
.hero__dusk {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 78% 92%, color-mix(in srgb, var(--ember) 42%, transparent) 0%, transparent 55%),
    radial-gradient(90% 70% at 18% 100%, color-mix(in srgb, var(--brass) 16%, transparent) 0%, transparent 60%),
    linear-gradient(180deg, #100d0a 0%, var(--ink) 42%, #19130d 100%);
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  width: 100%;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.7rem, 1.4rem + 6vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 1.7rem;
  color: var(--sand);
}
.hero__lede {
  font-size: clamp(1.06rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.6;
  color: var(--sand-dim);
  max-width: 46ch;
  margin: 0 0 2.2rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.6rem; }
.hero__micro {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--brass);
  margin: 0;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.7rem;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sand-dim);
  writing-mode: vertical-rl;
  padding-bottom: 46px;
}
.hero__scroll::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 1px; height: 38px;
  background: linear-gradient(var(--brass), transparent);
  animation: drip 2.4s var(--bezier) infinite;
}
@keyframes drip {
  0%   { transform: translateX(-50%) scaleY(0); transform-origin: top; }
  45%  { transform: translateX(-50%) scaleY(1); transform-origin: top; }
  55%  { transform: translateX(-50%) scaleY(1); transform-origin: bottom; }
  100% { transform: translateX(-50%) scaleY(0); transform-origin: bottom; }
}

/* ---- the plat signature ---- */
.plat { margin: 0; position: relative; }
.plat svg { width: 100%; height: auto; display: block; overflow: visible; }

.plat__contours path { fill: none; stroke: var(--line); stroke-width: 1; opacity: 0.5; }
.plat__bound { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.plat__road  { fill: none; stroke: var(--line-2); stroke-width: 9; stroke-dasharray: 2 12; stroke-linecap: round; opacity: 0.7; }
.plat__ticks path { fill: none; stroke: var(--brass); stroke-width: 1.5; opacity: 0.8; }

.lot {
  fill: var(--ink-3);
  stroke: color-mix(in srgb, var(--brass) 28%, var(--line-2));
  stroke-width: 1.4;
}
.lot--yours { stroke: var(--brass-2); stroke-width: 1.5; filter: drop-shadow(0 8px 24px color-mix(in srgb, var(--brass) 40%, transparent)); }

.plat__stake circle { fill: var(--ink); stroke: var(--brass-2); stroke-width: 2; }
.plat__stake path { stroke: var(--brass-2); stroke-width: 1; stroke-dasharray: 3 4; fill: none; }

.plat__tag {
  position: absolute;
  right: -6px;
  bottom: 2%;
  display: flex;
  flex-direction: column;
  font-family: var(--mono);
  text-align: right;
  background: color-mix(in srgb, var(--ink) 80%, transparent);
  backdrop-filter: blur(4px);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.5rem 0.8rem;
}
.plat__tag-k { font-size: 0.66rem; letter-spacing: 0.1em; color: var(--sand-dim); }
.plat__tag-v { font-size: 0.82rem; letter-spacing: 0.04em; color: var(--brass-2); }

/* =========================================================================
   SECTION RHYTHM
   ========================================================================= */
.section { position: relative; z-index: 2; padding: clamp(5rem, 11vh, 9rem) 0; }
.section + .section { border-top: 1px solid var(--line); }

/* ---- problem ---- */
.problem__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: 0.5rem;
}
.problem__cols .lede { max-width: 38ch; margin-bottom: 0; }

/* ---- how it works / stations ---- */
.stations {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.station {
  position: relative;
  padding: 2.85rem 1.6rem 0.5rem 0;
  border-right: 1px solid var(--line);
}
.station:last-child { border-right: 0; }
/* the survey baseline tick where each station meets the top rule */
.station::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 11px; height: 11px;
  background: var(--brass);
  transform: translateY(-50%) rotate(45deg);
}
.station__no {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--brass);
}
.station__h {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0.7rem 0 0.7rem;
  color: var(--sand);
}
.station__p { font-size: 0.98rem; color: var(--sand-dim); margin: 0; max-width: 30ch; }

/* ---- exclusivity ---- */
.slot__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.slot__copy .btn { margin-top: 0.8rem; }

.slotmap__board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.cell {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  border-radius: 2px;
  border: 1px solid var(--line);
  color: var(--sand-dim);
  background: var(--ink-2);
}
.cell.taken { color: color-mix(in srgb, var(--sand-dim) 55%, transparent); }
.cell.open  { color: var(--sand); border-color: var(--line-2); border-style: dashed; }
.cell.yours {
  color: #1a1209;
  font-weight: 500;
  background: linear-gradient(135deg, var(--brass-2), var(--brass));
  border-color: var(--brass-2);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--brass) 30%, transparent);
}
.slotmap__cap {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--sand-dim);
  text-align: center;
  margin-top: 1.1rem;
}

/* ---- coverage ---- */
.schedule {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 5rem);
  margin-top: 1rem;
  max-width: 760px;
}
.schedule__head {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  padding-bottom: 0.9rem;
  margin: 0 0 0.4rem;
  border-bottom: 1px solid var(--line);
}
.schedule__list { list-style: none; margin: 0; padding: 0; }
.schedule__list li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.5rem;
  border-bottom: 1px solid var(--line);
  color: var(--sand);
  font-size: 1.04rem;
}
.schedule__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 7px; height: 7px;
  transform: translateY(-50%) rotate(45deg);
  border: 1px solid var(--brass);
}
.coverage__note {
  margin-top: 2rem;
  font-size: 0.98rem;
  color: var(--sand-dim);
  font-style: italic;
}

/* =========================================================================
   CLOSING CTA
   ========================================================================= */
.close { overflow: hidden; text-align: center; padding-block: clamp(6rem, 14vh, 11rem); }
.close__dusk {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(80% 120% at 50% 120%, color-mix(in srgb, var(--ember) 40%, transparent) 0%, transparent 60%),
    radial-gradient(60% 80% at 50% 110%, color-mix(in srgb, var(--brass) 18%, transparent) 0%, transparent 70%);
}
.close__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.close__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.8rem, 1.6rem + 6vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 1.4rem;
  color: var(--sand);
}
.close__lede {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.25rem);
  color: var(--sand-dim);
  max-width: 38ch;
  margin: 0 0 2.4rem;
}
.close__phone {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.2rem + 3.5vw, 3.4rem);
  letter-spacing: 0.01em;
  color: var(--brass-2);
  margin-bottom: 2rem;
  transition: color .25s var(--bezier);
}
.close__phone:hover { color: var(--sand); }
.close__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }

/* =========================================================================
   CONTACT FORM  (lives inside the closing CTA)
   ========================================================================= */
.cform {
  width: 100%;
  max-width: 540px;
  margin: 0.6rem auto 0;
  text-align: left;            /* override the centered .close */
  display: grid;
  gap: 1.1rem;
}
.cform__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field__label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}
.field__opt { color: var(--sand-dim); letter-spacing: 0.08em; }

.field__input {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--sand);
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  padding: 0.85rem 0.95rem;
  transition: border-color .25s var(--bezier), box-shadow .25s var(--bezier);
}
.field__input::placeholder { color: color-mix(in srgb, var(--sand-dim) 75%, transparent); }
.field__input:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brass) 22%, transparent);
}
.field__area { resize: vertical; min-height: 3.4rem; line-height: 1.55; }

/* select: strip native chrome, draw our own brass chevron */
.field__select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23cda35f' stroke-width='1.5' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
}
.field__select:invalid { color: var(--sand-dim); }   /* dim while on the placeholder */
.field__select option { color: var(--sand); background: var(--ink-2); }

.cform__submit { width: 100%; margin-top: 0.3rem; }

.cform__note {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--sand-dim);
  text-align: center;
  margin: 0;
  min-height: 1.2em;
}
.cform__note.is-error { color: var(--ember); }

/* honeypot: shoved off-canvas — never seen, never tabbed to */
.cform__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* success panel that replaces the form after an async submit */
.cform__done {
  max-width: 540px;
  margin: 1rem auto 0;
  padding: 2rem 1.6rem;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  background: var(--ink-2);
  text-align: center;
}
.cform__done:focus-visible { outline: 2px solid var(--brass-2); outline-offset: 3px; }
.cform__done-h {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--sand);
  margin: 0 0 0.6rem;
}
.cform__done-p { color: var(--sand-dim); margin: 0; }

.close__or {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--sand-dim);
  margin: 1.8rem 0 0;
}
.close__phone-inline { color: var(--brass-2); transition: color .25s var(--bezier); }
.close__phone-inline:hover { color: var(--sand); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.foot { border-top: 1px solid var(--line); padding: 2.4rem 0; position: relative; z-index: 2; }
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--sand-dim);
}
.foot__mark { color: var(--brass); }
.foot a:hover { color: var(--brass-2); }
.foot__sep { opacity: 0.5; }
.foot__line {
  flex-basis: 100%;
  margin-top: 0.9rem;
  color: color-mix(in srgb, var(--sand-dim) 80%, transparent);
  letter-spacing: 0.02em;
}

/* =========================================================================
   SCROLL REVEAL
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--bezier), transform .8s var(--bezier);
}
.reveal.is-in { opacity: 1; transform: none; }

/* stagger children that share a parent */
.hero__copy .reveal:nth-child(2) { transition-delay: .07s; }
.hero__copy .reveal:nth-child(3) { transition-delay: .14s; }
.hero__copy .reveal:nth-child(4) { transition-delay: .21s; }
.hero__copy .reveal:nth-child(5) { transition-delay: .28s; }

/* the plat draws itself in: lots settle one by one */
.lot {
  opacity: 0;
  transform: translateY(10px);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity .6s var(--bezier), transform .6s var(--bezier);
  transition-delay: calc(var(--i) * 90ms + .3s);
}
.plat.is-in .lot { opacity: 1; transform: none; }
.lot--yours { transition-delay: calc(var(--i) * 90ms + .55s); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 920px) {
  .nav__coords { display: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .plat { max-width: 440px; margin-inline: auto; order: 2; }
  .stations { grid-template-columns: 1fr 1fr; }
  .station:nth-child(2) { border-right: 0; }
  .station { border-bottom: 1px solid var(--line); padding-right: 1.2rem; }
  .slot__grid { grid-template-columns: 1fr; }
  .slotmap { max-width: 360px; }
}

@media (max-width: 560px) {
  .wordmark { font-size: 1.18rem; }
  .nav__actions { gap: 0.45rem; }
  .btn__sub { display: none; }
  .nav__call { padding: 0.7rem 1rem; }
  .btn__num { font-size: 0.9rem; }
  .nav__claim { padding: 0.6rem 0.9rem; font-size: 0.74rem; letter-spacing: 0.03em; }
  .nav__claim-lg { display: none; }
  .nav__claim-sm { display: inline; }
  .problem__cols { grid-template-columns: 1fr; }
  .stations { grid-template-columns: 1fr; }
  .station { border-right: 0; }
  .schedule { grid-template-columns: 1fr; gap: 2rem; }
  .hero__scroll { display: none; }
  .hero__title { font-size: clamp(2.6rem, 11vw, 3.4rem); }
  .cform__row { grid-template-columns: 1fr; }
}

/* =========================================================================
   REDUCED MOTION — show final state, no movement
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .lot { opacity: 1; transform: none; }
}
