/* ==========================================================================
   Coachella Valley pages — the growth surface.
   Feature layer on top of dea.css. Colour and type come from tokens.css only;
   if you are about to type a '#', reach for a token instead.
   ========================================================================== */

/* ------------------------------------------------------------ breadcrumb */
.valley-crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: var(--tracking-mono-label); text-transform: uppercase;
  color: var(--color-dusk);
}
.valley-crumbs a { color: var(--color-dusk); text-decoration: none; }
.valley-crumbs a:hover { color: var(--color-bolt); }
.valley-crumbs li { list-style: none; display: flex; align-items: center; gap: .5rem; }
.valley-crumbs ol { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.valley-crumbs li + li::before { content: "/"; color: var(--color-haze); }
.valley-crumbs [aria-current="page"] { color: var(--color-ink); }

/* ------------------------------------------------------------------ hero */
.valley-hero {
  position: relative; isolation: isolate; overflow: hidden;
  border-bottom: 1px solid var(--color-haze);
  padding-block: clamp(3rem, 9vw, var(--space-9)) clamp(2.5rem, 6vw, var(--space-8));
}
/* The sun sitting on the horizon, four hundred metres out. Low enough that it
   reads as ground haze rather than a gradient button. */
.valley-hero::before {
  content: ""; position: absolute; inset: auto 0 -40% 0; height: 90%;
  background: radial-gradient(
    62% 100% at 50% 100%,
    color-mix(in srgb, var(--color-bolt) 13%, transparent) 0%,
    transparent 72%);
  z-index: -2; pointer-events: none;
}
/* The ridge line. One hairline, no illustration. */
.valley-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent, color-mix(in srgb, var(--color-bolt) 45%, transparent) 30%,
    color-mix(in srgb, var(--color-bolt) 45%, transparent) 70%, transparent);
  z-index: -1;
}
/* The photograph. .page-hero--film (sales.css) supplies the layers; the only
   thing added here is a wash over the corner the copy starts in. The eyebrow is
   --color-sun, the lowest-contrast text on the page, so that corner is held at
   flat sand and the picture is left to be a picture everywhere else. */
.valley-hero.page-hero--film .page-hero__bg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50rem 21rem at 0 9rem,
    var(--color-sand) 0%,
    var(--color-sand) 56%,
    color-mix(in srgb, var(--color-sand) 55%, transparent) 74%,
    transparent 90%);
}
@media (max-width: 62rem) {
  /* Stacked, the copy runs down the middle of the frame, so the corner wash
     becomes a top band. It is measured to the crumbs and the eyebrow — the two
     lowest-contrast strings on the page — and lets go before the picture does
     any work. */
  .valley-hero.page-hero--film .page-hero__bg::after {
    background: linear-gradient(to bottom,
      var(--color-sand) 0,
      var(--color-sand) 13rem,
      color-mix(in srgb, var(--color-sand) 45%, transparent) 20rem,
      transparent 28rem);
  }
}

.valley-hero__kicker { display: flex; align-items: center; gap: var(--space-3); }
.valley-hero h1 { max-width: 14ch; }
.valley-hero .lede { max-width: 42ch; }
.valley-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* -------------------------------------------------------- the fact strip */
.valley-facts {
  display: grid; gap: 1px; background: var(--color-haze);
  border: 1px solid var(--color-haze); border-radius: var(--radius-md); overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}
.valley-fact { background: var(--color-shell); padding: var(--space-4) var(--space-5); display: grid; gap: .3rem; }
.valley-fact dt {
  font-family: var(--font-mono); font-size: .64rem;
  letter-spacing: var(--tracking-mono-label); text-transform: uppercase;
  color: var(--color-sun-ink);
}
.valley-fact dd {
  margin: 0; font-family: var(--font-display); font-size: max(1.25rem, var(--scale-step-1));
  line-height: 1.2; color: var(--color-ink);
}
.valley-fact dd small { display: block; font-family: var(--font-body); font-size: .8rem; color: var(--color-dusk); line-height: 1.4; margin-top: .2rem; }

/* --------------------------------------------------------- the city grid */
.valley-cards { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.valley-card {
  display: flex; flex-direction: column; gap: var(--space-2);
  background: var(--color-shell); border: 1px solid var(--color-haze);
  border-top: 3px solid var(--color-haze);
  border-radius: var(--radius-md); padding: var(--space-5);
  text-decoration: none; color: inherit;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.valley-card:hover { border-color: var(--color-haze); border-top-color: var(--color-bolt); background: var(--color-dune); transform: translateY(-2px); }
.valley-card__name { font-family: var(--font-display); font-size: var(--scale-step-2); color: var(--color-ink); line-height: 1.1; }
.valley-card:hover .valley-card__name { color: var(--color-bolt); }
.valley-card__why { font-size: .92rem; color: var(--color-ink); margin: 0; }
.valley-card__go {
  margin-top: auto; padding-top: var(--space-3);
  font-family: var(--font-mono); font-size: .64rem;
  letter-spacing: var(--tracking-mono-label); text-transform: uppercase; color: var(--color-sun-ink);
}

/* --------------------------------------------- the rest of the valley */
.valley-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.valley-chips .tag { color: var(--color-dusk); }

/* ------------------------------------------------------- start-here rows */
.valley-start { display: grid; gap: 1px; background: var(--color-haze); border: 1px solid var(--color-haze); border-radius: var(--radius-md); overflow: hidden; }
.valley-start__row {
  background: var(--color-shell); padding: var(--space-5);
  display: grid; gap: var(--space-3) var(--space-5); align-items: start;
  grid-template-columns: 1fr auto;
}
.valley-start__row:first-child { border-left: 3px solid var(--color-bolt); }
.valley-start__body { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.valley-start__name { font-family: var(--font-display); font-size: max(1.25rem, var(--scale-step-1)); color: var(--color-ink); }
.valley-start__what { font-size: .93rem; color: var(--color-ink); margin: 0; }
.valley-start__terms { font-family: var(--font-mono); font-size: .68rem; letter-spacing: var(--tracking-mono-label); text-transform: uppercase; color: var(--color-sun-ink); }
.valley-start__buy { display: flex; flex-direction: column; gap: .5rem; align-items: stretch; text-align: center; }
.valley-start__price { font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em; font-size: var(--scale-step-2); color: var(--color-ink); font-variant-numeric: tabular-nums; line-height: 1; font-weight: var(--weight-display-black); }
@media (max-width: 40rem) {
  .valley-start__row { grid-template-columns: 1fr; }
  .valley-start__buy { align-items: start; text-align: left; }
}

/* ------------------------------------------------------------ two column */
.valley-split { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 52rem) { .valley-split { grid-template-columns: 1fr; } }
.valley-aside { position: sticky; top: calc(var(--masthead-h, 4.25rem) + 1.25rem); display: flex; flex-direction: column; gap: var(--space-4); }
@media (max-width: 52rem) { .valley-aside { position: static; } }

/* --------------------------------------------------------------- outro */
.valley-cta {
  border: 1px solid var(--color-haze); border-left: 3px solid var(--color-bolt);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--color-dune), var(--color-shell));
  padding: clamp(var(--space-5), 4vw, var(--space-7));
  display: flex; flex-direction: column; gap: var(--space-4);
}
.valley-cta h2 { max-width: 20ch; }
.valley-cta__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---- The Desert Chapter, Corrine's copy under the hub hero ---- */
.valley-chapter { max-width: 40rem; }
/* "Slowing down. / Sharing space. / ..." — one short line each, as she wrote them. */
.valley-chapter__lines {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding-left: var(--space-4);
  border-left: 3px solid var(--color-sun);
  font-family: var(--font-display);
  font-size: max(1.15rem, var(--scale-step-1));
  line-height: 1.35;
  color: var(--color-ink);
}
.valley-chapter__close {
  font-family: var(--font-display);
  font-size: max(1.2rem, var(--scale-step-1));
  color: var(--color-ink);
}
