/* The approved homepage statistics and dark closing bookend. The hero and
   shared night palette remain in style.css; the continuous lower-page journey
   is scoped in landing-journey.css. Keep these inherited tokens fixed in dark
   mode, so the landing illustrations retain their intended paper ground. */

.hedge {
  position: relative;
  --ink-2: #3A423C; --border: #E5DECF; --border-strong: #D3C9B4;
  --accent: #A2542F; --teal: #1f7a6c; --gold-strong: #8F6220;
  --foil-hi: #e6cd8c; --foil-mid: #c9a44c; --foil-lo: #a8842c; --foil-ink: #6b5015;
  --wmap-print: #efe7da; --scratch: #c0357a;
  /* The scratch card's sea takes the band's own tone so the card has no
     edge against the page. */
  --globe-sea: #D7DFCA;
  --hd-head: #1E2C20;      /* daylight display type, a shade under --sage-dark */
  --hd-foil: linear-gradient(90deg, transparent, var(--foil-lo) 8%, var(--foil-hi) 44%, var(--foil-mid) 74%, transparent);
}

.hedge__main { background: var(--hd-night); width: 100%; max-width: none; margin: 0; padding: 0; overflow: clip; }
.hedge__main > section + section { margin-top: 0; }
.hedge__wide { width: min(100% - clamp(40px, 8vw, 128px), 1280px); margin-inline: auto; }

/* Supporting positioning copy keeps its prose role beneath the brand lockup. */
.hedge__descriptor {
  margin: 0 auto 14px; max-width: 58ch;
  font-size: 16px; font-weight: 400; line-height: 1.5; letter-spacing: normal;
  text-transform: none; color: var(--hd-ink-soft); text-wrap: balance;
}

/* --- Shared furniture -------------------------------------------------- */

/* The section seam: a rule either side of the waypoint star. */
.hedge__seam {
  display: flex; align-items: center; gap: clamp(14px, 1.6vw, 22px);
  margin: 0 0 clamp(30px, 3.4vw, 46px);
}
.hedge__seam > span { flex: 1; height: 1px; background: var(--hd-line); }
.hedge__seam .lp__mark { flex: none; }
.hedge__seam--night { color: var(--hd-gold); }
.hedge__seam--day { color: var(--gold); }
.hedge__seam--day > span { background: var(--border-strong); }

/* The threshold between night and day: the foil rule along the top edge of
   the section, and the star badge sitting astride it. */
.hedge__foilRule { position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--hd-foil); }
.hedge__threshold {
  position: absolute; top: 0; left: 50%; z-index: 3;
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.hedge__threshold--day { background: var(--hd-night); border: 1px solid rgba(216, 170, 87, .8); color: var(--hd-gold); }
.hedge__threshold--day .lp__mark { stroke-width: 1.4; }
.hedge__threshold--night {
  background: var(--hd-gold); border: 1px solid var(--hd-night); color: var(--hd-night);
  box-shadow: 0 0 0 1px rgba(216, 170, 87, .55);
}
.hedge__threshold--night .lp__mark { stroke-width: 1.5; }

/* The small-caps section label. */
.hedge__kicker {
  margin: 0 0 clamp(22px, 2.4vw, 34px);
  font-size: 11px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-strong);
}
.hedge__kicker--gold { color: var(--hd-gold); margin-bottom: clamp(16px, 1.8vw, 26px); }
.hedge__kicker--tone { color: var(--tone); margin-bottom: clamp(18px, 2vw, 28px); }

/* Static route decoration in the preserved dark closing bookend. */
.hedge__route { pointer-events: none; }


/* --- The archive in numbers -------------------------------------------- */

/* The figures belong to the personal-history story, on its sage ground.
   Keep this wrapper compact: landing-hero.js observes it for the count-up. */
.hedge__archiveProof { margin-top: 36px; }
.hedge__statsLabel {
  margin: 0 0 24px; font-size: 14px; font-weight: 500;
  line-height: 1.5; color: var(--ink-2);
}
.hedge__statsLabel .lp__sample {
  display: inline-block; margin-left: 8px; padding: 3px 8px; border-radius: 2px;
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--sage-dark); background: transparent; border: 1px solid #A9B79B;
}
.hedge__archiveEvidence {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  align-items: center; gap: 48px;
}
.hedge__statValue { font-family: var(--hd-serif); color: var(--sage-dark); }
.hedge__statLead > .hedge__statValue {
  font-size: clamp(4rem, 7vw, 6rem); line-height: 1; letter-spacing: -.035em;
}
.hedge__statLead > .hedge__statLabel { margin-top: 10px; font-size: 16px; }
.hedge__statsGrid {
  max-width: none; margin: 0; padding: 0; border: 0; text-align: left;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
.hedge__statSecondary .hedge__statValue { font-size: 30px; line-height: 1.1; }
.hedge__statSecondary .hedge__statLabel { margin-top: 6px; font-size: 13px; }
.hedge__statLabel { font-weight: 500; letter-spacing: normal; text-transform: none; color: var(--ink-2); }
.hedge__archiveProof > .journey__link { margin-top: 16px; }
.hedge__planContext a, .hedge__refuse a { color: #f1c66c; }

/* --- The refusals: back to night, a numbered ledger ------------------- */

.hedge__refuse {
  position: relative; background: var(--hd-night); color: var(--hd-ink);
  padding: clamp(64px, 7vw, 98px) 0 clamp(52px, 6vw, 80px);
}
.hedge__refuseInner {
  position: relative; z-index: 1; max-width: 1280px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(42px, 7vw, 108px); align-items: start;
}
.hedge__refuseLead { margin-top: clamp(0px, 3.4vw, 44px); }
.hedge__refuseTitle {
  margin: 0; max-width: 12ch; font-family: var(--hd-serif); font-weight: 400;
  font-size: clamp(2.5rem, 4.6vw, 4.2rem); line-height: 1.02; letter-spacing: -.02em;
  color: var(--hd-ink); text-wrap: balance;
}
.hedge__refuseIntro { margin: 22px 0 0; max-width: 38ch; font-size: 16px; line-height: 1.68; color: var(--hd-ink-soft); }
.hedge__refuseList { position: relative; list-style: none; margin: 0; padding: 0 0 0 clamp(26px, 2.8vw, 42px); }
/* The spine is the list's own ::before rather than a child element: an <ol>
   may hold nothing but <li>. */
.hedge__refuseList::before {
  content: ""; pointer-events: none;
  position: absolute; left: 3px; top: 18px; bottom: 18px; width: 1px;
  background: linear-gradient(to bottom, rgba(216, 170, 87, .62), rgba(216, 170, 87, .4) 55%, rgba(216, 170, 87, .1));
}
.hedge__refuseList li {
  display: block; position: relative; padding: clamp(18px, 2vw, 26px) 0;
  border-top: 1px solid var(--hd-line);
}
.hedge__refuseList li:last-child { border-bottom: 1px solid var(--hd-line); }
.hedge__route--stop {
  position: absolute; left: calc(-1 * clamp(26px, 2.8vw, 42px)); top: calc(clamp(18px, 2vw, 26px) + 8px);
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--tone, var(--hd-sage)); box-shadow: 0 0 0 3px var(--hd-night);
}
.hedge__refuseHead { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.hedge__refuseIndex { font-size: 11px; font-weight: 650; letter-spacing: .16em; color: var(--tone, var(--hd-sage)); }
.hedge__refuseNo {
  font-family: var(--hd-serif); font-style: italic;
  font-size: clamp(20px, 2.1vw, 27px); line-height: 1.1; color: var(--tone, var(--hd-sage));
}
.hedge__refuseText { margin: 0; max-width: 52ch; font-size: 16px; line-height: 1.66; color: #D6D9CC; }
.hedge__refuseEvidence {
  margin: clamp(22px, 2.4vw, 32px) 0 0; max-width: 64ch;
  font-size: 15px; line-height: 1.68; color: var(--hd-ink-soft);
}
.hedge__refuseEvidence a, .hedge__planContext a { font-weight: 700; }

/* --- Plans: one ruled row ---------------------------------------------- */

.hedge__planContext { position: relative; z-index: 2; background: var(--hd-night); padding: 0; }
.hedge__planRow {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 40px); align-items: baseline;
  padding: clamp(20px, 2.4vw, 28px) 0;
  border-top: 1px solid var(--hd-line); border-bottom: 1px solid var(--hd-line);
}
.hedge__planRow .hedge__kicker { margin: 0; }
.hedge__planRow .hedge__trust { margin: 0; max-width: 76ch; font-size: 16px; line-height: 1.7; color: rgba(244, 241, 230, .86); }

/* --- The closing plaque ------------------------------------------------ */

.hedge__cta2 {
  position: relative; overflow: clip; background: var(--hd-night);
  padding: clamp(48px, 5.5vw, 78px) 24px clamp(40px, 4.6vw, 64px);
}
.hedge__route--arc {
  position: absolute; top: 0; left: 0; width: 100%; height: clamp(140px, 17vw, 240px);
  color: var(--hd-gold); opacity: .42;
}
.hedge__ctaCard {
  position: relative; max-width: 760px; margin: 0 auto; text-align: center;
  padding: clamp(44px, 5vw, 66px) clamp(24px, 4vw, 40px) clamp(34px, 3.8vw, 48px);
  border: 1px solid rgba(216, 170, 87, .38); border-bottom: 0; border-radius: 340px 340px 0 0;
  background: none;
}
.hedge__ctaCard > :not(.hedge__ctaGlobe) { position: relative; }
.hedge__ctaGlobe {
  position: absolute; left: 0; right: 0; bottom: clamp(18px, 2vw, 28px); margin: 0 auto;
  width: min(86%, 560px); height: auto; color: var(--hd-sage); opacity: .22;
}
.hedge__ctaMark { margin: 0 auto 14px; }
.hedge__ctaTitle { font-size: clamp(2rem, 4.6vw, 3.15rem); line-height: 1.05; }
.hedge__ctaSub { max-width: 46ch; line-height: 1.66; }
.hedge__cta2 .hedge__cta { margin-top: 28px; }
.hedge__cta2 .hedge__trust { margin: 16px 0 0; font-size: 13px; color: rgba(244, 241, 230, .55); }
.hedge__ctaFoil {
  max-width: 760px; margin: 0 auto; height: 3px;
  background: linear-gradient(90deg, transparent, var(--foil-lo) 10%, var(--foil-hi) 46%, var(--foil-mid) 76%, transparent);
}

/* --- Footer ------------------------------------------------------------ */

.hedge__foot { border-top: 0; padding: clamp(28px, 3vw, 40px) 0 clamp(30px, 3.4vw, 44px); }
.hedge__footInner { width: min(100% - clamp(40px, 8vw, 128px), 1280px); max-width: none; margin-inline: auto; }
.hedge__footBrand { color: var(--hd-ink-soft); }
.hedge__footBrand > span:last-child { font-family: var(--hd-serif); font-size: 16px; }
.hedge__foot .publicFooter__groups {
  margin-top: 26px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px 32px;
}
.hedge__foot .publicFooter__title {
  margin: 0 0 12px; font-size: 11px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase;
}
.hedge__foot .publicFooter__group a { display: inline-flex; align-items: center; min-height: 30px; }

/* Focus, everywhere on the page, in the gold the page already speaks. */
.hedge :is(a:not(.public-login), button):focus-visible { outline: 3px solid var(--hd-gold); outline-offset: 4px; }
.hedge .hedge__daylight :is(a, button):focus-visible { outline-color: var(--hd-gold-focus); }

/* --- Narrow layouts ---------------------------------------------------- */

@media (max-width: 940px) {
  .hedge__archiveEvidence { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hedge__refuseInner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

@media (max-width: 620px) {
  .hedge__statsGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hedge__foot .publicFooter__group a { min-height: 44px; }
}

/* Keep short navigation phrases intact at every width. The header remains
   outside main; at the narrowest sizes its real height precedes the hero. */
.hedge__navLinks > a, .hedge__availability a { white-space: nowrap; }
@media (max-width: 380px) {
  .hedge__nav { position: relative; align-items: flex-start; gap: 12px; }
  .hedge__nav .hedge__navLinks { display: grid; grid-template-columns: auto auto; justify-content: end; }
  .hedge__navLinks > a:first-child { grid-column: 1 / -1; justify-self: end; display: inline-flex; align-items: center; min-height: 28px; }
  .hedge__hero { min-height: 0; }
  .hedge__heroBody { padding-bottom: 48px; }
}

/* Keep two columns on small phones, including with reserved scrollbar
   space. The gap reaches its existing 32px at 392px. */
@media (max-width: 480px) {
  .hedge__foot .publicFooter__groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(20px, calc(100vw - 360px), 32px);
  }
}

/* The remaining decorative bookend routes are static. Journey motion has its
   own reduced-motion rules in landing-journey.css. */
@media (prefers-reduced-motion: reduce) {
  .hedge__route { animation: none; }
}
