/* ── DESIGN TOKENS ──────────────────────────────────────────────────────────
   Contrast ratios verified against WCAG 2.1 AA on --bg (#DACBBC).
   Normal text (≤18px or non-bold): needs 4.5:1
   Large text  (≥18px bold or ≥24px): needs 3.0:1
   ──────────────────────────────────────────────────────────────────────── */
:root {
  --bg:    #DACBBC;
  --bg-lo: #CFC0B0;
  --bg-hi: #E8DDD2;
  --red:   #9B1D2E;  /* 5.08:1 — large text ✓ */
  --blue:  #0D2463;  /* 9.14:1 ✓ */
  --fire:  #8B3300;  /* 5.15:1 — large text ✓ */
  --green: #1A4A2E;  /* 6.42:1 ✓ */
  --ink:   #1E1A16;  /* 10.91:1 ✓ */
  --mid:   #544435;  /* 5.88:1 ✓ */
  --dim:   #4A3428;  /* 7.31:1 ✓ */
  --rule:  rgba(30,26,22,0.1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── WCAG: Skip link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── WCAG: Visually hidden (screen-reader only) ── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── WCAG: Visible focus styles ── */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}
a:focus-visible { outline-offset: 2px; }

/* ── BASE ── */
html {
  background-color: var(--bg);
  padding-top:    env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left:   env(safe-area-inset-left);
  padding-right:  env(safe-area-inset-right);
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

.wrap { max-width: 920px; margin: 0 auto; padding: 0 48px; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  padding: 80px 48px 64px;
  position: relative;
  overflow: hidden;
}
.hero-stamp { position: absolute; top: 36px; left: 48px; }
.hero-logo  { height: clamp(24px, 2.5vw, 36px); width: auto; }

.slogan { display: flex; flex-direction: column; align-items: center; }
.slogan-line {
  font-size: clamp(52px, 9vw, 120px);
  font-weight: 900; font-style: italic;
  color: var(--red);
  text-transform: uppercase;
  line-height: 1.0; letter-spacing: -1px;
}
.slogan-line.energy { color: var(--green); }
.slogan-line.boom   { color: var(--fire); }
.slogan-op {
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 900; font-style: italic;
  color: var(--blue); line-height: 1.1; opacity: 0.85;
}

.hero-sub {
  margin-top: 52px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--mid); line-height: 2.4;
  max-width: 100%; word-break: break-word;
}

/* ── STATS ── */
.stats {
  display: flex; gap: 56px; flex-wrap: wrap;
  justify-content: center;
  padding: 48px 48px 0;
}
.stat-item  { text-align: center; }
.stat-num   {
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 900; color: var(--red);
  letter-spacing: -1px; line-height: 1;
}
.stat-label {
  font-size: 9px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--dim); margin-top: 6px;
}

/* ── SCROLL REVEAL ────────────────────────────────────────────────────────
   Sections animate in from below as they enter the viewport.
   Each section's children stagger with a small delay cascade.
   JS adds .is-visible via IntersectionObserver.
   Reduced-motion: skip animation entirely per WCAG 2.1 §2.3.3.
   ──────────────────────────────────────────────────────────────────────── */
.section-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity  0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: var(--reveal-delay, 0ms);
}
.section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Ensure content is always accessible without JS or with reduced motion */
@media (prefers-reduced-motion: reduce) {
  .section-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
/* p.body also always readable regardless of reveal state */
p.body {
  opacity: 1 !important;
  transform: none !important;
}

/* ── SHARED TYPOGRAPHY ── */
.label {
  font-size: 13px; font-weight: 900; letter-spacing: 2px;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 14px;
}
h2 {
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 900; line-height: 1.1;
  text-transform: uppercase; letter-spacing: -0.5px;
  color: var(--ink);
}
h2 .fire  { color: var(--fire); }
h2 .red   { color: var(--red);  }
h2 .blue  { color: var(--blue); }
h2 .green { color: var(--green);}

p.body {
  font-size: 15px; font-weight: 400;
  line-height: 1.9; color: var(--mid);
  margin-top: 20px; max-width: 600px;
}

/* ── SECTIONS ── */
.section {
  padding: 72px 0;
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}

/* ── PILLARS — What We Build ── */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2px; margin-top: 40px;
}
.pillar {
  background: var(--bg-hi); padding: 28px 24px;
  border-left: 3px solid var(--ink);
}
.pillar h3 {
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--ink); margin-bottom: 10px;
}
.pillar p { font-size: 13px; font-weight: 400; line-height: 1.85; color: var(--mid); }

/* ── BENEFIT LIST — Landowner ── */
.benefits { list-style: none; margin-top: 28px; }
.benefits li {
  padding: 5px 0;
  font-size: 14px; font-weight: 400;
  color: var(--mid); line-height: 1.6;
}

/* ── STEP BOXES — Landowner ── */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; margin-top: 40px;
}
.step { background: var(--bg-hi); padding: 28px 24px; border-left: 3px solid var(--blue); }
.step-num { font-size: 10px; font-weight: 700; letter-spacing: 3px; color: var(--dim); margin-bottom: 6px; }
.step h3  { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.step p   { font-size: 13px; font-weight: 400; line-height: 1.7; color: var(--mid); }

/* ── CARDS — Land Stewardship ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2px; margin-top: 40px;
}
.card { background: var(--bg-hi); padding: 28px 24px; border-left: 3px solid var(--green); }
.card h4 { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.card p  { font-size: 13px; font-weight: 400; line-height: 1.85; color: var(--mid); }

/* ── CLOSING — full-bleed ── */
.closing {
  background: var(--red);
  padding: 96px 48px;
  text-align: center;
  position: relative; overflow: hidden;
}
.closing-inner { position: relative; z-index: 1; }
.closing h2 {
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 900; text-transform: uppercase;
  color: var(--bg); letter-spacing: -0.5px; line-height: 1.1;
}
.closing-punch {
  font-size: clamp(28px, 5vw, 72px);
  font-weight: 900; font-style: italic;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -1px; line-height: 1; margin-top: 12px;
}

/* ── FOOTER ── */
footer {
  padding: 36px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 12px;
}
.footer-left  { text-align: left; }
.footer-right { text-align: right; }
.footer-copy  {
  font-size: 10px; letter-spacing: 1px; color: var(--dim);
  text-align: center; line-height: 1.9;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.footer-copy a {
  color: var(--dim); text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-copy a:hover { color: var(--ink); }
.footer-logo-link  {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--dim);
  text-decoration: underline; text-underline-offset: 3px;
}
.footer-logo-link:hover  { color: var(--ink); }
.footer-legal-link {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--dim);
  text-decoration: underline; text-underline-offset: 3px;
}
.footer-legal-link:hover { color: var(--ink); }

/* ── PERFORMANCE: animation hints ── */
.section-reveal           { will-change: opacity, transform; }
.section-reveal.is-visible { will-change: auto; }

/* ── ACCESSIBILITY: forced-colors (Windows High Contrast) ── */
@media (forced-colors: active) {
  .pillar, .step, .card { border: 2px solid ButtonText; }
  .slogan-line, .closing-punch { forced-color-adjust: none; }
  .skip-link { forced-color-adjust: none; }
}

/* ── PRINT ── */
@media print {
  .hero { min-height: auto; padding: 40px 0; }
  .section-reveal { opacity: 1 !important; transform: none !important; }
  .closing { background: none; color: var(--ink); }
  .closing h2, .closing-punch { color: var(--ink); }
}

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .wrap   { padding: 0 20px; }
  .hero   { padding: 72px 20px 56px; min-height: 100vh; }
  .hero-stamp { top: 24px; left: 20px; }
  .hero-logo  { height: 22px; }
  .hero-sub {
    font-size: 10px; letter-spacing: 0.5px;
    margin-top: 28px; line-height: 2.0;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
  }
  .hero-sub-sep { display: none; }

  .stats { gap: 28px; padding: 32px 0 0; flex-direction: column; align-items: center; }
  .stat-num { font-size: 24px; }

  .section { padding: 48px 0; }
  .label  { font-size: 11px; }
  h2      { font-size: clamp(20px, 6vw, 28px); }
  p.body  { font-size: 14px; }

  .pillars { grid-template-columns: 1fr; gap: 2px; }
  .steps   { grid-template-columns: 1fr; gap: 2px; }
  .cards   { grid-template-columns: 1fr; gap: 2px; }

  .pillar, .step, .card { padding: 20px 18px; }
  .pillar h3, .step h3  { font-size: 11px; }
  .pillar p, .step p, .card p { font-size: 13px; }

  .benefits li { font-size: 13px; }

  .closing { padding: 64px 20px; }
  .closing h2 { font-size: clamp(18px, 5vw, 26px); }
  .closing-punch { font-size: clamp(28px, 8vw, 48px); }

  footer {
    grid-template-columns: 1fr;
    text-align: center; gap: 8px;
  }
  .footer-left, .footer-right { text-align: center; }
  .footer-copy { font-size: 10px; line-height: 1.8; }
}

/* ── LEGAL PAGE ── */
.disclaimer { margin-top: 24px; padding-top: 20px; }
.disclaimer p {
  font-size: 10px; line-height: 1.8;
  color: var(--dim); margin-bottom: 10px; max-width: 100%;
}
.disclaimer p:last-child { margin-bottom: 0; }
.disclaimer a { color: var(--dim); text-decoration: underline; text-underline-offset: 3px; }
.disclaimer a:hover { color: var(--ink); }
