/**
 * Oasis 2030: One million trees by 2030
 * Editorial layout on the brand system (forest green, DM Serif Display,
 * Poppins). No monospace; numbers use Poppins tabular figures. Rhythm comes
 * from full-bleed colour bands (green / tint / white) and a two-column split
 * for prose sections. Built on design-tokens.css; self-contained.
 */

.o2030 {
    --g-ink:        #102a22;
    --g-soft:       #43564f;
    --g-faint:      #586a62;   /* >= 4.5:1 on white and on tint */
    --g-green:      #004734;
    --g-green-lt:   #006B50;
    --g-mint:       #2f9e6f;
    --g-mint-2:     #8fdcb4;
    --g-rule:       #e2eae6;
    --g-rule-soft:  #edf2ef;
    --g-paper:      #ffffff;
    --g-tint:       #f1f7f3;
}
body.o2030 { background: var(--g-paper); }

.o2030 .num, .o2030-num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; letter-spacing: -0.01em; }

/* ── Band rhythm ───────────────────────────────────────── */
.o2030-band { padding: clamp(2.75rem, 6vw, 4.75rem) 0; }
.o2030-band--tint { background: var(--g-tint); }
.o2030-wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .o2030-wrap { padding: 0 2rem; } }

.o2030-head {
    font-family: 'DM Serif Display', serif; font-weight: 400; color: var(--g-green);
    font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.12; letter-spacing: -0.012em;
    margin: 0 0 0.9rem; max-width: 18ch;
}
.o2030-standfirst { font-size: clamp(1.02rem, 1.4vw, 1.15rem); line-height: 1.62; font-weight: 300; color: var(--g-soft); max-width: 42rem; margin: 0; }
.o2030-standfirst strong { font-weight: 600; color: var(--g-ink); }

a.o2030-link { color: var(--g-green); font-weight: 500; text-decoration: underline; text-underline-offset: 0.18em; text-decoration-color: rgba(0,71,52,0.35); transition: text-decoration-color 0.15s ease; }
a.o2030-link:hover { text-decoration-color: var(--g-green); }

/* Two-column editorial split for prose sections */
.o2030-split { display: grid; gap: 1.5rem; }
@media (min-width: 880px) {
    .o2030-split { grid-template-columns: 17rem 1fr; gap: 1rem 3.5rem; align-items: start; }
    .o2030-split__aside { position: sticky; top: 5rem; }
}
.o2030-split__aside .o2030-standfirst { margin-top: 0.9rem; }

/* ── HERO ──────────────────────────────────────────────── */
.o2030-hero {
    position: relative; overflow: hidden; color: #fff;
    background: linear-gradient(158deg, #00301e 0%, #004734 48%, #00583f 100%);
    padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(2.75rem, 5vw, 4rem);
}
.o2030-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 55% at 82% 6%, rgba(255,255,255,0.07) 0%, transparent 60%); }
.o2030-hero__inner { position: relative; z-index: 1; }
.o2030-hero h1 {
    font-family: 'DM Serif Display', serif; font-weight: 400;
    font-size: clamp(2.5rem, 7vw, 4.5rem); line-height: 1.02; letter-spacing: -0.018em;
    margin: 0; max-width: 15ch;
}
.o2030-hero__sub { margin: 1.2rem 0 0; max-width: 38rem; font-size: clamp(1rem, 1.4vw, 1.15rem); font-weight: 300; line-height: 1.6; color: rgba(255,255,255,0.82); }
.o2030-hero__sub .o2030-num { font-weight: 500; color: #fff; }

.o2030-console { margin-top: clamp(1.9rem, 4vw, 2.5rem); max-width: 40rem; }
.o2030-progress__top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; font-size: 0.88rem; color: rgba(255,255,255,0.78); margin-bottom: 0.55rem; }
.o2030-progress__top sup a { color: rgba(255,255,255,0.55); text-decoration: none; }
.o2030-progress__top b { font-variant-numeric: tabular-nums; font-weight: 600; color: #fff; font-size: 1.05rem; }
.o2030-progress__bar { height: 0.5rem; background: rgba(255,255,255,0.16); border-radius: 9999px; overflow: hidden; }
.o2030-progress__fill { height: 100%; width: 0%; border-radius: 9999px; background: linear-gradient(90deg, #2f9e6f, #9be9c0); transition: width 1.2s cubic-bezier(0.22,1,0.36,1); }
.o2030-readouts { display: flex; flex-wrap: wrap; gap: 1.4rem 2.5rem; margin-top: 1.5rem; }
.o2030-readout__n { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 1.55rem; color: #fff; line-height: 1; }
.o2030-readout__l { font-size: 0.8rem; color: rgba(255,255,255,0.62); margin-top: 0.25rem; line-height: 1.35; }
.o2030-clock { margin-top: 1.3rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; }
.o2030-clock__days { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 1.4rem; color: #fff; }
.o2030-clock__time { font-variant-numeric: tabular-nums; font-size: 1.05rem; color: rgba(255,255,255,0.82); letter-spacing: 0.01em; }
.o2030-clock__lbl { font-size: 0.8rem; color: rgba(255,255,255,0.58); }

.o2030-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.9rem; }
.o2030-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.78rem 1.35rem; border-radius: 0.7rem; font-weight: 600; font-size: 0.92rem; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.2s ease; }
.o2030-btn svg { width: 1.05rem; height: 1.05rem; }
.o2030-btn--solid { background: #fff; color: var(--g-green); }
.o2030-btn--solid:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0,0,0,0.22); }

/* ── STANCES (ruled typographic list) ──────────────────── */
.o2030-stances { max-width: 42rem; }
.o2030-stance { padding: 1.4rem 0; border-top: 1px solid var(--g-rule); }
.o2030-stance:first-child { border-top: none; padding-top: 0; }
.o2030-stance h3 { font-size: 1.1rem; font-weight: 600; color: var(--g-ink); margin: 0 0 0.45rem; }
.o2030-stance p { margin: 0; color: var(--g-soft); line-height: 1.72; font-size: 0.98rem; }

/* ── MILESTONE RAIL ────────────────────────────────────── */
.o2030-rail-wrap { margin-top: 2rem; }
.o2030-rail { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); }
.o2030-railbar { position: absolute; top: 0.59rem; left: 7.1428%; right: 7.1428%; height: 2px; background: var(--g-rule); border-radius: 2px; }
.o2030-band--tint .o2030-railbar { background: #d7e3dc; }
.o2030-rail__fill { position: absolute; left: 0; top: 0; width: 0%; height: 100%; background: var(--g-green); border-radius: 2px; transition: width 1.2s cubic-bezier(0.22,1,0.36,1); }
.o2030-node { position: relative; z-index: 2; text-align: center; }
.o2030-node__dot { width: 0.85rem; height: 0.85rem; border-radius: 9999px; margin: 0.225rem auto 0.75rem; background: var(--g-tint); border: 2px solid #bcccc4; box-shadow: 0 0 0 4px var(--g-tint); }
.o2030-node.is-done .o2030-node__dot { background: var(--g-green); border-color: var(--g-green); }
.o2030-node.is-next .o2030-node__dot { border-color: var(--g-green); background: var(--g-tint); box-shadow: 0 0 0 4px var(--g-tint), 0 0 0 6px rgba(0,71,52,0.18); }
.o2030-node__v { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 0.92rem; color: var(--g-ink); }
.o2030-node.is-next .o2030-node__v { color: var(--g-green); }
@media (max-width: 640px) {
    .o2030-rail { grid-template-columns: 1fr; }
    .o2030-railbar { left: 0.4rem; right: auto; top: 1.05rem; bottom: 1.05rem; width: 2px; height: auto; }
    .o2030-rail__fill { width: 100%; height: 0%; }
    .o2030-node { display: grid; grid-template-columns: 0.85rem 1fr; align-items: center; gap: 0.9rem; text-align: left; padding: 0.5rem 0; }
    .o2030-node__dot { margin: 0; }
}

/* ── POINTS (transparency) ─────────────────────────────── */
.o2030-points { list-style: none; margin: 2.25rem 0 0; padding: 0; max-width: 54rem; }
.o2030-points li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.85rem; align-items: start; padding: 0.95rem 0; border-top: 1px solid var(--g-rule); line-height: 1.62; color: var(--g-soft); }
.o2030-points li:first-child { border-top: none; padding-top: 0; }
@media (min-width: 760px) {
    .o2030-points { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 3rem; }
    .o2030-points li { border-top: none; padding: 0; }
}
.o2030-points svg { width: 1.1rem; height: 1.1rem; color: var(--g-mint); margin-top: 0.18rem; }
.o2030-points b { color: var(--g-ink); font-weight: 600; }
.o2030-points a { color: var(--g-green); text-decoration: underline; text-underline-offset: 0.18em; }

/* ── ROADMAP (scroll-revealed vertical timeline) ───────── */
.o2030-roadmap { margin-top: 2.25rem; max-width: 42rem; }
.o2030-rmphase { position: relative; padding: 0 0 2.75rem 2.75rem; }
.o2030-rmphase:last-child { padding-bottom: 0; }
/* connecting line below each dot (fills green as the phase is reached) */
.o2030-rmphase::before { content: ""; position: absolute; left: 0.4375rem; top: 0.4rem; bottom: 0; width: 2px; background: #d3e0d9; transition: background 0.5s ease; }
.o2030-rmphase:last-child::before { display: none; }
/* dot */
.o2030-rmphase::after { content: ""; position: absolute; left: 0; top: 0.3rem; width: 0.95rem; height: 0.95rem; border-radius: 9999px; border: 2px solid #b7c8c0; background: var(--g-tint); box-shadow: 0 0 0 4px var(--g-tint); z-index: 1; transition: border-color 0.45s ease, background 0.45s ease, transform 0.45s ease; }
.o2030-rmphase.is-in::before { background: var(--g-green); }
.o2030-rmphase.is-in::after { border-color: var(--g-green); background: var(--g-green); }
.o2030-rmphase__year { display: block; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 0.92rem; color: var(--g-green); margin-bottom: 0.3rem; }
.o2030-rmphase__inner h3 { font-size: 1.05rem; font-weight: 600; color: var(--g-ink); margin: 0 0 0.35rem; }
.o2030-rmphase__inner p { margin: 0; color: var(--g-soft); line-height: 1.7; font-size: 0.96rem; }
/* "is-armed" = JS will reveal on scroll; until then content stays visible (no-JS safe) */
.o2030-roadmap.is-armed .o2030-rmphase__inner { opacity: 0; transform: translateY(22px); transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.o2030-roadmap.is-armed .o2030-rmphase.is-in .o2030-rmphase__inner { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .o2030-roadmap.is-armed .o2030-rmphase__inner { opacity: 1; transform: none; transition: none; }
    .o2030-rmphase::before, .o2030-rmphase::after { transition: none; }
}

/* ── FOUNDER NOTE (green band) ─────────────────────────── */
.o2030-founder { background: linear-gradient(150deg, #00301e 0%, #004734 60%, #00573f 100%); color: #fff; }
.o2030-founder__label { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--g-mint-2); margin: 0 0 1.2rem; }
.o2030-founder blockquote { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: clamp(1.3rem, 2.7vw, 1.95rem); line-height: 1.42; margin: 0; max-width: 46rem; }
.o2030-founder__sig { margin-top: 1.5rem; font-size: 0.92rem; line-height: 1.5; }
.o2030-founder__sig b { display: block; font-weight: 600; }
.o2030-founder__sig span { color: rgba(255,255,255,0.7); }

/* ── FAQ ───────────────────────────────────────────────── */
.o2030-faq { margin-top: 1.6rem; max-width: 44rem; border-top: 1px solid var(--g-rule); }
.o2030-faq details { border-bottom: 1px solid var(--g-rule); }
.o2030-faq summary { cursor: pointer; list-style: none; padding: 1.15rem 2rem 1.15rem 0; position: relative; font-weight: 600; color: var(--g-ink); font-size: 1rem; }
.o2030-faq summary::-webkit-details-marker { display: none; }
.o2030-faq summary::after { content: "+"; position: absolute; right: 0; top: 0.95rem; font-size: 1.4rem; font-weight: 400; color: var(--g-green-lt); transition: transform 0.2s ease; }
.o2030-faq details[open] summary::after { transform: rotate(45deg); }
.o2030-faq p { margin: 0; padding: 0 0 1.25rem; color: var(--g-soft); line-height: 1.72; font-size: 0.96rem; max-width: 40rem; }
.o2030-faq a { color: var(--g-green); text-decoration: underline; text-underline-offset: 0.18em; }

/* ── Reduced motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .o2030-progress__fill, .o2030-rail__fill { transition: none; }
}
