/* Elk Run Homes — inner-page sections
   Same rule as sections.css: one self-contained block per section so each can be
   lifted into a standalone Elementor section later. */

/* ============================================================
   Page hero — used by all 19 inner pages
   ============================================================ */

.page-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(76svh, 760px);
  padding-top: calc(var(--header-h) + 4rem);
  overflow: hidden;
  background: var(--c-forest-night);
  color: var(--text-on-dark);
  isolation: isolate;
}

.page-hero-media {
  position: absolute;
  inset: -8% 0 -8%;
  z-index: -2;
  will-change: transform;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  transform: scale(1.1);
  animation: page-hero-settle 2400ms var(--ease-out) forwards;
}

@keyframes page-hero-settle { to { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .page-hero-media img { animation: none; transform: none; }
}

.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 28, 22, .72) 0%, rgba(20, 28, 22, .2) 34%, rgba(20, 28, 22, .78) 80%, rgba(20, 28, 22, .96) 100%),
    linear-gradient(96deg, rgba(20, 28, 22, .68) 0%, rgba(20, 28, 22, 0) 62%);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .16;
  pointer-events: none;
  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='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.page-hero-inner { padding-bottom: clamp(2.75rem, 5vw, 4.75rem); }

.page-hero-copy { max-width: 46rem; }

.page-hero-copy h1 {
  color: var(--c-white);
  font-size: var(--fs-h1);
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.028em;
  text-wrap: balance;
  text-shadow: 0 1px 40px rgba(12, 18, 13, .35);
}

.page-hero-copy h1 em {
  color: var(--c-brass);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 90, "WONK" 1;
  font-weight: 200;
}

.page-hero-copy .lede {
  max-width: 40rem;
  margin-top: var(--space-m);
  color: rgba(255, 255, 255, .82);
}

.page-hero .btn-row { margin-top: var(--space-xl); }

/* ---------- Breadcrumb ---------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin-bottom: var(--space-m);
  color: rgba(255, 255, 255, .58);
  font-size: var(--fs-micro);
  letter-spacing: .05em;
}

.crumbs a { transition: color var(--t-micro) var(--ease); }
.crumbs a:hover { color: var(--c-brass); }
.crumbs span[aria-hidden] { opacity: .45; }
.crumbs .here { color: rgba(255, 255, 255, .85); }

/* ============================================================
   Two-column story grid
   ============================================================ */

.story-grid {
  display: grid;
  gap: var(--space-l) var(--space-2xl);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .story-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: var(--space-2xl); }
  .story-grid > :first-child { position: sticky; top: calc(var(--header-h) + 3rem); align-self: start; }
}

.story-grid h2 { margin-top: var(--space-2xs); }

.story-grid .story-body > p + p { margin-top: var(--space-m); }
.story-grid .story-body .lede + p { margin-top: var(--space-m); }

/* A hairline that draws itself in as the column enters view. */
.story-rule {
  display: block;
  width: 100%;
  height: 1px;
  margin-top: var(--space-l);
  background: var(--line-strong);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow) var(--ease-out);
}
.story-rule.is-visible { transform: scaleX(1); }

/* ============================================================
   Numbered service detail rows — services page
   ============================================================ */

.svc-rows { display: grid; gap: 0; }

.svc-row {
  position: relative;
  display: grid;
  gap: var(--space-m) var(--space-2xl);
  grid-template-columns: 1fr;
  padding-block: clamp(2.75rem, 5vw, 4.5rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 2rem);
}

.svc-row:last-child { border-bottom: 1px solid var(--line); }

@media (min-width: 900px) {
  .svc-row { grid-template-columns: 5.5rem minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; }
}

.svc-row-num {
  color: var(--c-brass-deep);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-variation-settings: "opsz" 72, "SOFT" 40, "WONK" 1;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
}

.svc-row-head h2 { font-size: clamp(1.7rem, 2.6vw, 2.35rem); }

.svc-row-head > p {
  margin-top: var(--space-s);
  color: var(--text-muted);
  font-size: var(--fs-small);
  line-height: 1.72;
}

.svc-row-points { display: grid; gap: .1rem; }

.svc-row-points li {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding-block: .72rem;
  border-bottom: 1px solid var(--line);
  color: var(--text-body);
  font-size: var(--fs-small);
  line-height: 1.55;
  transition: color var(--t-micro) var(--ease), padding-left var(--t-base) var(--ease);
}

.svc-row-points li:hover { color: var(--text-strong); padding-left: .45rem; }

.svc-row-points li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: .5rem;
  border: 1px solid var(--c-brass-deep);
  border-radius: 50%;
  transition: background var(--t-micro) var(--ease);
}

.svc-row-points li:hover::before { background: var(--c-brass); }

.svc-row .btn { margin-top: var(--space-m); }

/* ============================================================
   Three-step story — our process
   ============================================================ */

.step-story { display: grid; gap: var(--space-2xl); grid-template-columns: 1fr; }

@media (min-width: 980px) {
  .step-story { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .step-story > :first-child { position: sticky; top: calc(var(--header-h) + 3rem); align-self: start; }
}

.step-list { display: grid; counter-reset: step; }

.step-list li {
  position: relative;
  display: grid;
  gap: var(--space-s) var(--space-l);
  grid-template-columns: 3.25rem minmax(0, 1fr);
  padding-block: var(--space-l);
  border-top: 1px solid var(--line-strong);
}

.step-list li:last-child { border-bottom: 1px solid var(--line-strong); }

.step-list b {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--c-bark);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}

.step-list li:hover b { background: var(--c-brass); border-color: var(--c-brass); color: var(--c-ink); }

.step-list h3 { margin-bottom: var(--space-2xs); }
.step-list p { color: var(--text-muted); font-size: var(--fs-small); line-height: 1.72; }

/* ============================================================
   Phase grid — our process
   ============================================================ */

.phase-grid { display: grid; gap: 1px; grid-template-columns: 1fr; background: var(--line); border: 1px solid var(--line); }

@media (min-width: 640px) { .phase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .phase-grid { grid-template-columns: repeat(5, 1fr); } }

.phase {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  padding: var(--space-l) var(--space-m) var(--space-xl);
  background: var(--c-white);
  transition: background var(--t-base) var(--ease);
}

.phase:hover { background: var(--c-cream); }

.phase > span {
  color: var(--c-brass-deep);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-variation-settings: "opsz" 72, "SOFT" 40, "WONK" 1;
  font-weight: 300;
  line-height: 1;
}

.phase h3 { font-size: 1.12rem; }
.phase p { color: var(--text-muted); font-size: var(--fs-micro); line-height: 1.7; }

.phase::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--c-brass);
  transition: width var(--t-slow) var(--ease-out);
}

.phase.is-visible::after { width: 100%; transition-delay: var(--reveal-delay, 0ms); }

/* The cards stay light even inside a dark band, so re-assert the light-on-dark text colours. */
.section-dark .phase-grid { background: var(--line-on-dark); border-color: var(--line-on-dark); }
.section-dark .phase h3 { color: var(--c-ink); }
.section-dark .phase p { color: var(--text-muted); }

/* ============================================================
   Resource library rows — resources page
   ============================================================ */

.library { display: grid; gap: 0; }

.library-row {
  display: grid;
  gap: var(--space-m) var(--space-2xl);
  grid-template-columns: 1fr;
  align-items: center;
  padding-block: clamp(2.25rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
  transition: background var(--t-base) var(--ease);
}

.library-row:last-child { border-bottom: 1px solid var(--line); }

@media (min-width: 900px) {
  .library-row { grid-template-columns: 7rem minmax(0, 1.25fr) minmax(0, 1fr) auto; }
}

.library-row .kicker {
  color: var(--c-bark);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}

.library-row h2 { font-size: clamp(1.55rem, 2.4vw, 2.1rem); }
.library-row p { color: var(--text-muted); font-size: var(--fs-small); line-height: 1.72; }

/* ============================================================
   Guide checklist — the three guide pages
   ============================================================ */

.guide-layout { display: grid; gap: var(--space-2xl); grid-template-columns: 1fr; }

@media (min-width: 1060px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; }
}

.guide-head { max-width: 44ch; margin-bottom: var(--space-xl); }
.guide-head p { margin-top: var(--space-s); color: var(--text-muted); }

.guide-checklist { display: grid; counter-reset: q; }

.guide-checklist li {
  position: relative;
  display: grid;
  gap: var(--space-s) var(--space-m);
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: baseline;
  padding-block: var(--space-m);
  border-top: 1px solid var(--line);
  counter-increment: q;
  transition: padding-left var(--t-base) var(--ease);
}

.guide-checklist li:last-child { border-bottom: 1px solid var(--line); }
.guide-checklist li:hover { padding-left: .5rem; }

.guide-checklist li::before {
  content: counter(q, decimal-leading-zero);
  color: var(--c-brass-deep);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-variation-settings: "opsz" 24, "SOFT" 30, "WONK" 0;
  letter-spacing: .02em;
}

.guide-checklist p { color: var(--text-body); font-size: var(--fs-body); line-height: 1.64; }

.guide-aside {
  padding: var(--space-l);
  background: var(--c-forest);
  color: var(--text-on-dark);
  box-shadow: var(--shadow-card);
}

@media (min-width: 1060px) {
  .guide-aside { position: sticky; top: calc(var(--header-h) + 2rem); }
}

.guide-aside h3 { color: var(--c-white); font-size: 1.22rem; }
.guide-aside p { margin-top: var(--space-s); color: var(--text-on-dark-muted); font-size: var(--fs-small); line-height: 1.7; }
/* The aside is a fixed ~320px column, so the label has to be allowed to wrap
   instead of being clipped by .btn's nowrap + overflow:hidden. */
.guide-aside .btn { width: 100%; margin-top: var(--space-l); white-space: normal; text-align: center; line-height: 1.4; }

/* ============================================================
   Check list — contact, owner-builder, subcontractors
   ============================================================ */

.check-list { display: grid; gap: .1rem; }

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-s);
  padding-block: .9rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-small);
  line-height: 1.6;
}

.check-list li:first-child { border-top: 1px solid var(--line); }

.check-list li::before {
  content: "";
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: .05rem;
  border: 1px solid var(--c-brass);
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C4A468' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / .72rem no-repeat;
  transition: background-color var(--t-micro) var(--ease);
}

.section-dark .check-list li { border-color: var(--line-on-dark); color: var(--text-on-dark); }
.section-dark .check-list li:first-child { border-top-color: var(--line-on-dark); }

.check-list-2 { grid-template-columns: 1fr; }
@media (min-width: 860px) { .check-list-2 { grid-template-columns: repeat(2, 1fr); column-gap: var(--space-2xl); } }
@media (min-width: 860px) { .check-list-2 li:nth-child(2) { border-top: 1px solid var(--line); } }
@media (min-width: 860px) { .section-dark .check-list-2 li:nth-child(2) { border-top-color: var(--line-on-dark); } }

/* ============================================================
   Credential pills — about
   ============================================================ */

.credential-list { display: flex; flex-wrap: wrap; gap: var(--space-2xs); margin-top: var(--space-l); }

.credential-list span {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--text-strong);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: .04em;
  transition: border-color var(--t-micro) var(--ease), background var(--t-micro) var(--ease);
}

.credential-list span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-brass);
}

.credential-list span:hover { border-color: var(--c-brass); background: var(--c-brass-glow); }

/* ============================================================
   Contact layout
   ============================================================ */

.contact-layout { display: grid; gap: var(--space-2xl); grid-template-columns: 1fr; align-items: start; }

@media (min-width: 1020px) {
  .contact-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
}

.contact-details { display: grid; gap: .75rem; margin-top: var(--space-xl); }

.contact-details a {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  width: fit-content;
  font-size: 1.12rem;
  transition: color var(--t-micro) var(--ease), gap var(--t-micro) var(--ease);
}

.contact-details a svg { width: 17px; height: 17px; flex: none; stroke: var(--c-brass); stroke-width: 1.6; fill: none; }
.contact-details a:hover { color: var(--c-brass); gap: .95rem; }

.form-embed {
  overflow: hidden;
  border-radius: var(--radius-l);
  background: var(--c-white);
  box-shadow: var(--shadow-lift);
}

/* Only a placeholder for the moment before the form reports its height (see
   elkrun_ghl_form_sizer). It has to stay under the shortest real form height or
   min-height would beat the measured height back and reopen the gap. */
.form-embed iframe {
  display: block;
  width: 100%;
  min-height: 600px;
  border: 0;
}

/* form_embed.js reparents this iframe into containers of its own, so the panel
   must not clip and the frame carries the rounding and shadow instead. */
.form-embed-tall { overflow: visible; border-radius: 0; background: none; box-shadow: none; }
.form-embed-tall iframe { border-radius: var(--radius-l); box-shadow: var(--shadow-lift); }

/* ============================================================
   Detail cards — region markets, subcontractor trades
   ============================================================ */

.detail-cards { display: grid; gap: var(--space-m); grid-template-columns: 1fr; }

@media (min-width: 880px) { .detail-cards { grid-template-columns: repeat(2, 1fr); gap: var(--space-l); } }

.detail-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  background: var(--c-white);
  transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

.detail-card:hover { border-color: transparent; transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.detail-card h3 { margin-bottom: var(--space-m); padding-bottom: var(--space-s); border-bottom: 1px solid var(--line); font-size: 1.22rem; }

.detail-card ul { display: grid; gap: .55rem; }

@media (min-width: 560px) { .detail-card ul { grid-template-columns: repeat(2, 1fr); column-gap: var(--space-m); } }

.detail-card li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  color: var(--text-body);
  font-size: var(--fs-small);
  line-height: 1.5;
}

.detail-card li::before {
  content: "";
  flex: none;
  width: 4px;
  height: 4px;
  margin-top: .55rem;
  border-radius: 50%;
  background: var(--c-brass-deep);
}

.detail-card > p { margin-top: var(--space-l); padding-top: var(--space-m); border-top: 1px solid var(--line); color: var(--text-muted); font-size: var(--fs-micro); line-height: 1.75; }

.detail-card-wide { grid-column: 1 / -1; }

/* ============================================================
   Deep-dive stack — Sandpoint region
   ============================================================ */

.deep-dive { display: grid; gap: var(--space-xl); grid-template-columns: 1fr; }

@media (min-width: 900px) { .deep-dive { grid-template-columns: repeat(2, 1fr); gap: var(--space-2xl) var(--space-2xl); } }

.deep-dive article { position: relative; padding-top: var(--space-m); border-top: 1px solid var(--line-on-dark-strong); }

.deep-dive h3 { color: var(--c-white); font-size: clamp(1.32rem, 2vw, 1.62rem); }
.deep-dive p { margin-top: var(--space-s); color: var(--text-on-dark-muted); font-size: var(--fs-small); line-height: 1.75; }

/* ============================================================
   Note band — postal areas, disclaimers
   ============================================================ */

.note-band { padding-block: clamp(2.75rem, 5vw, 4rem); background: var(--c-forest-night); color: var(--text-on-dark-muted); }

.note-band-inner { display: grid; gap: var(--space-m) var(--space-2xl); grid-template-columns: 1fr; }

@media (min-width: 880px) {
  .note-band-inner { grid-template-columns: 15rem minmax(0, 1fr); }
  /* Without explicit placement the second paragraph auto-flows back into
     column one and sits under the label. */
  .note-band-inner > strong { grid-column: 1; grid-row: 1; }
  .note-band-inner > :not(strong) { grid-column: 2; }
}

.note-band strong {
  position: relative;
  align-self: start;
  padding-top: .35rem;
  color: var(--c-brass);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  line-height: 1.5;
  text-transform: uppercase;
}

.note-band strong::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 2px;
  margin-bottom: .7rem;
  background: var(--c-brass);
  opacity: .55;
}

.note-band p { font-size: var(--fs-micro); line-height: 1.85; }
.note-band p + p { margin-top: var(--space-s); }

/* The band paints its own dark ground but carries no .section-dark class, so the
   on-dark link colours never reached it and every link rendered in body ink. */
.note-band .text-link { color: var(--text-on-dark); border-color: var(--c-brass); }
.note-band .text-link:hover { color: var(--c-brass); }

/* Chip list — postal codes and other short enumerations */

.note-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.note-chips li {
  padding: .46rem .95rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: var(--c-white);
  font-size: var(--fs-micro);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1;
  transition: background var(--t-micro) var(--ease), border-color var(--t-micro) var(--ease), color var(--t-micro) var(--ease);
}

.note-chips li:hover {
  border-color: rgba(196, 164, 104, .55);
  background: rgba(196, 164, 104, .14);
  color: var(--c-brass);
}

/* ============================================================
   Region cards on the service-areas page (adds the blurb)
   ============================================================ */

.area-card .blurb {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, .78);
  font-size: var(--fs-micro);
  line-height: 1.65;
  opacity: 0;
  transition:
    max-height var(--t-base) var(--ease),
    margin-top var(--t-base) var(--ease),
    opacity var(--t-base) var(--ease);
}

.area-card:hover .blurb,
.area-card:focus-visible .blurb { max-height: 8rem; margin-top: var(--space-2xs); opacity: 1; }

/* The mosaic's two single-column cards only have 199px of inner height, and the opened
   blurb wants 5 lines, so flex-shrink was squeezing it and cutting the last line through
   the middle of the letters. Clamping lands the cut on a line boundary with an ellipsis.
   Excluded on touch, where the row is free to grow and the whole blurb does fit. */
@media (min-width: 1020px) and (hover: hover) {
  .area-card:nth-child(3) .blurb,
  .area-card:nth-child(4) .blurb {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
}

/* Touch devices get no hover, so the blurb stays open there. */
@media (hover: none) {
  .area-card .blurb { max-height: 8rem; margin-top: var(--space-2xs); opacity: 1; }
}

/* ============================================================
   Intro stat row — regions, subcontractors
   ============================================================ */

.fact-row { display: grid; gap: 1px; grid-template-columns: repeat(2, 1fr); margin-top: var(--space-xl); background: var(--line-on-dark); }

@media (min-width: 720px) { .fact-row { grid-template-columns: repeat(4, 1fr); } }

.fact {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: var(--space-m) var(--space-s);
  background: rgba(20, 28, 22, .42);
  backdrop-filter: blur(6px);
}

.fact b {
  color: var(--c-brass);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-variation-settings: "opsz" 72, "SOFT" 40, "WONK" 1;
  font-weight: 300;
  line-height: 1;
}

.fact span { color: rgba(255, 255, 255, .72); font-size: var(--fs-micro); letter-spacing: .06em; line-height: 1.4; text-transform: uppercase; }

/* ============================================================
   Split feature — image beside copy, reversible
   ============================================================ */

.split-feature { display: grid; gap: var(--space-xl); grid-template-columns: 1fr; align-items: center; }

@media (min-width: 960px) {
  .split-feature { grid-template-columns: repeat(2, 1fr); gap: var(--space-2xl); }
  .split-feature-flip .split-feature-media { order: 2; }
  /* Media sits in the right column here, so the overhangs mirror inward
     instead of pushing past the page edge. */
  .split-feature-flip .shot-sub { right: auto; left: -1.75rem; }
  .split-feature-flip .split-feature-tag { left: auto; right: -1.25rem; }
}

.split-feature-media { position: relative; }

.split-feature-media figure { position: relative; margin: 0; overflow: hidden; }
.split-feature-media img { width: 100%; height: 100%; object-fit: cover; }
.split-feature-media .shot-main { aspect-ratio: 4 / 5; }

.split-feature-media .shot-sub {
  display: none;
  position: absolute;
  right: -1.75rem;
  bottom: -2.25rem;
  width: 46%;
  aspect-ratio: 1 / 1;
  border: 8px solid var(--bg-page);
  box-shadow: var(--shadow-lift);
}

@media (min-width: 620px) { .split-feature-media .shot-sub { display: block; } }

/* Below 960px the grid is single-column, so the media spans the full wrap and
   the negative offset pushes past the page edge instead of into a gutter. */
@media (max-width: 959px) { .split-feature-media .shot-sub { right: 0; } }
.section-cream .split-feature-media .shot-sub { border-color: var(--c-cream); }
.section-white .split-feature-media .shot-sub { border-color: var(--c-white); }
.section-dark .split-feature-media .shot-sub { border-color: var(--c-forest); }

.split-feature-tag {
  position: absolute;
  left: -1.25rem;
  top: 1.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem 1.1rem;
  background: var(--c-brass);
  color: var(--c-ink);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  box-shadow: var(--shadow-card);
}

.split-feature-copy > p { margin-top: var(--space-m); }
.split-feature-copy .lede + p { color: var(--text-muted); font-size: var(--fs-small); line-height: 1.75; }
.section-dark .split-feature-copy .lede + p { color: var(--text-on-dark-muted); }
.split-feature-copy .btn-row { margin-top: var(--space-xl); }

/* ============================================================
   Full-bleed image interlude
   ============================================================ */

.interlude {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: clamp(17rem, 40vw, 30rem);
  margin: 0;
  overflow: hidden;
  background: var(--c-forest-night);
  isolation: isolate;
}

.interlude-media { position: absolute; inset: -12% 0 -12%; z-index: -1; will-change: transform; }
.interlude-media img { width: 100%; height: 100%; object-fit: cover; }

.interlude-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 28, 22, .25) 0%, rgba(20, 28, 22, .12) 45%, rgba(20, 28, 22, .85) 100%);
}

.interlude figcaption {
  padding-bottom: clamp(2.25rem, 4.5vw, 3.75rem);
  color: var(--c-white);
}

.interlude figcaption p {
  max-width: 34rem;
  font-family: var(--font-display);
  font-size: clamp(1.32rem, 2.4vw, 2.05rem);
  font-variation-settings: "opsz" 96, "SOFT" 50, "WONK" 1;
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.interlude figcaption cite {
  display: block;
  margin-top: var(--space-s);
  color: var(--c-brass);
  font-size: var(--fs-eyebrow);
  font-style: normal;
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}

/* ============================================================
   Standalone CTA link block — wildfire resources
   ============================================================ */

.resource-callout { display: grid; gap: var(--space-l); justify-items: start; }
.resource-callout .btn svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; }

/* ============================================================
   Legal documents — privacy policy, terms of service
   ============================================================ */

.legal-layout {
  display: grid;
  gap: var(--space-l);
  grid-template-columns: 1fr;
}

@media (min-width: 1040px) {
  .legal-layout {
    grid-template-columns: 17rem minmax(0, 1fr);
    gap: clamp(2.5rem, 4.5vw, 5rem);
    align-items: start;
  }

  .legal-aside {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

.legal-doc { max-width: 68ch; }

/* ---------- Index rail ---------- */

.legal-index {
  padding: var(--space-m);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--c-white);
  box-shadow: var(--shadow-card);
}

.legal-index-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  color: var(--text-strong);
  cursor: pointer;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  list-style: none;
  text-transform: uppercase;
}

.legal-index-head::-webkit-details-marker { display: none; }

.legal-index-head svg {
  flex: none;
  width: 1rem;
  height: 1rem;
  stroke: var(--c-brass);
  stroke-width: 2;
  fill: none;
  transition: transform var(--t-base) var(--ease);
}

.legal-index[open] .legal-index-head svg { transform: rotate(180deg); }

.legal-index ol {
  counter-reset: legal-idx;
  margin: var(--space-s) 0 0;
  padding: 0;
  border-left: 1px solid var(--line);
  list-style: none;
}

.legal-index li { list-style: none; }

.legal-index a {
  display: block;
  margin-left: -1px;
  padding: .4rem 0 .4rem .95rem;
  border-left: 2px solid transparent;
  color: var(--text-muted);
  font-size: var(--fs-small);
  line-height: 1.45;
  transition: color var(--t-micro) var(--ease), border-color var(--t-micro) var(--ease);
}

.legal-index a:hover { color: var(--text-strong); }

.legal-index a.is-current {
  border-left-color: var(--c-brass);
  color: var(--text-strong);
  font-weight: 600;
}

@media (min-width: 1040px) {
  /* The rail is always open on desktop, so the summary is a plain label. */
  .legal-index-head { cursor: default; }
  .legal-index-head svg { display: none; }
}

/* ---------- Document body ---------- */

.legal-head {
  padding-bottom: var(--space-l);
  border-bottom: 1px solid var(--line);
}

.legal-updated {
  margin: 0;
  color: var(--c-brass-deep);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}

.legal-intro {
  margin: var(--space-s) 0 0;
  color: var(--text-body);
  font-size: var(--fs-lede);
  line-height: 1.6;
}

.legal-clause { margin-top: var(--space-xl); }

.legal-clause h2 {
  display: flex;
  align-items: baseline;
  gap: var(--space-s);
  margin: 0 0 var(--space-m);
  font-size: var(--fs-h3);
  line-height: var(--lh-heading);
}

.legal-num {
  flex: none;
  color: var(--c-brass);
  font-family: var(--font-text);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
}

.legal-body {
  color: var(--text-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.legal-body > * + * { margin-top: var(--space-s); }
.legal-body > :first-child { margin-top: 0; }
.legal-body p { margin-bottom: 0; }

/* base.css zeroes list-style globally, so markers are drawn the same way the
   blog body draws them. */
.legal-body ul,
.legal-body ol { margin-left: 0; padding-left: 0; }
.legal-body li + li { margin-top: .4rem; }

.legal-body ul > li {
  position: relative;
  padding-left: 1.6rem;
}

.legal-body ul > li::before {
  content: "";
  position: absolute;
  top: .72em;
  left: .25rem;
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: var(--c-brass);
}

.legal-body ol { counter-reset: legal-ol; }

.legal-body ol > li {
  position: relative;
  padding-left: 2.1rem;
  counter-increment: legal-ol;
}

.legal-body ol > li::before {
  content: counter(legal-ol, decimal-leading-zero);
  position: absolute;
  top: .1em;
  left: 0;
  color: var(--c-brass);
  font-size: var(--fs-micro);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

.legal-body a {
  color: var(--text-strong);
  text-decoration: underline;
  text-decoration-color: var(--c-brass);
  text-underline-offset: .2em;
}

.legal-body a:hover { color: var(--c-brass-deep); }

.legal-body strong { color: var(--text-strong); font-weight: 700; }

/* ---------- Contact panel ---------- */

.legal-contact {
  margin-top: var(--space-2xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--c-white);
  box-shadow: var(--shadow-card);
}

.legal-contact h3 { margin: 0 0 var(--space-xs); font-size: var(--fs-h4); }

.legal-contact p {
  margin: 0;
  color: var(--text-body);
  font-size: var(--fs-small);
  line-height: var(--lh-body);
}

.legal-contact-rows {
  display: grid;
  gap: var(--space-xs) var(--space-m);
  margin: var(--space-m) 0 0;
  grid-template-columns: max-content minmax(0, 1fr);
}

.legal-contact-rows dt {
  color: var(--text-muted);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.legal-contact-rows dd {
  margin: 0;
  color: var(--text-strong);
  font-size: var(--fs-small);
}

.legal-contact-rows a {
  color: var(--text-strong);
  text-decoration: underline;
  text-decoration-color: var(--c-brass);
  text-underline-offset: .2em;
}

.legal-contact-rows a:hover { color: var(--c-brass-deep); }

@media (max-width: 479px) {
  .legal-contact-rows { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .legal-contact-rows dd + dt { margin-top: var(--space-xs); }
}

/* ============================================================
   404 — off the trail
   ============================================================ */

.notfound { display: grid; gap: var(--space-2xl); }

.notfound-code {
  display: block;
  margin-bottom: var(--space-s);
  color: var(--c-brass);
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 9rem);
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 1;
  font-weight: 300;
  line-height: .9;
  letter-spacing: -0.03em;
}

.notfound-links {
  display: grid;
  gap: var(--space-s);
  margin-top: var(--space-xl);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

/* auto-fit lands on five columns at desktop, orphaning the sixth card. */
@media (min-width: 900px) { .notfound-links { grid-template-columns: repeat(3, 1fr); } }

.notfound-links a {
  display: grid;
  gap: .3rem;
  padding: var(--space-m);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--c-white);
  transition: border-color var(--t-micro) var(--ease), transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

.notfound-links a:hover {
  border-color: var(--c-brass);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.notfound-links .ttl {
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-variation-settings: "opsz" 24, "SOFT" 30;
  line-height: 1.2;
}

.notfound-links .sub {
  color: var(--text-muted);
  font-size: var(--fs-small);
  line-height: 1.5;
}
