/* REIA Cumulative Effects page, illustrations C1 to C10. Builds on explain.css.
   Map motifs: dark disturbance lines (roads thicker than seismic lines),
   translucent green buffer halos at 250 m and 500 m drawn as one shape so
   overlaps count once, and flat muted greens for connected patches. */

.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.ce-eyebrow{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin:0 0 22px;font-size:15px;font-weight:600;color:#E7F1EA}
.ce-h2{max-width:24ch}
.ce-split{align-items:center;margin-top:0}
.pl-sub + .pl-sub{margin-top:14px}

/* shared map strokes */
.il .rd{fill:none;stroke:var(--il-ink);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.il .sl{fill:none;stroke:var(--il-ink);stroke-width:1;stroke-linecap:round;vector-effect:non-scaling-stroke;opacity:.85}
.il .pd{fill:var(--il-ink)}
.il .halo *{fill:none;stroke:var(--il-acc);stroke-width:var(--w);stroke-linecap:round;stroke-linejoin:round}
.il .h500{opacity:.11}
.il .h250{opacity:.24}
.il .exb{fill:var(--il-bg);stroke:var(--il-line);stroke-width:1}
.il .ext{font-size:11px;fill:var(--il-sub)}
@keyframes c-bloom{from{stroke-width:0}}
@keyframes c-draw{to{stroke-dashoffset:0}}

/* ---------- C1 territory at a glance ---------- */
.c1{position:relative;max-width:560px;width:100%;justify-self:end;padding-bottom:44px}
.js .c1:not(.in) .halo *{stroke-width:0}
.c1.in .h250 *{animation:c-bloom 1.4s cubic-bezier(.2,.7,.2,1) .3s both}
.c1.in .h500 *{animation:c-bloom 1.6s cubic-bezier(.2,.7,.2,1) .9s both}
.c1.in .contours{animation:il-drift 6s ease-in-out forwards}
.c1-read{position:absolute;right:-6px;bottom:0;width:min(310px,72%);padding:14px 16px 12px;border-radius:12px;background:rgba(6,20,14,.94);border:1px solid rgba(234,243,237,.16);box-shadow:0 20px 50px -24px rgba(0,0,0,.7);color:#DCEBE2}
.js .c1 .c1-read{opacity:0;transform:translateY(14px)}
.c1.in .c1-read{animation:il-settle .8s cubic-bezier(.2,.7,.2,1) 2.1s forwards}
.c1-rh{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-bottom:10px;margin-bottom:6px;border-bottom:1px solid rgba(234,243,237,.1);font-family:var(--font-mono);font-size:12px;color:#A9C2B3}
.c1-rh .ex{color:#C9D6CF}
.c1-read dl{margin:0}
.c1-read dl div{display:flex;justify-content:space-between;align-items:baseline;gap:14px;padding:5px 0}
.c1-read dt{display:flex;align-items:center;gap:8px;font-size:13px;color:#C9DBD0}
.c1-read dd{margin:0;font-family:var(--font-mono);font-size:17px;font-weight:500;color:#FFFFFF}
.sw{flex:none;width:12px;height:12px;border-radius:3px}
.sw.s250{background:rgba(76,192,138,.55)}
.sw.s500{background:rgba(76,192,138,.25)}
.sw.sc{background:#8DBBA0}

/* ---------- C2 same land, two measures (real) ---------- */
.c2{margin-top:40px}
.c2-top{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:16px}
.c2-real{font-family:var(--font-mono);font-size:12px;padding:4px 9px;border-radius:6px;border:1px solid var(--spruce);color:var(--ink)}
.c2 .seg{display:none}
.c2-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}
.c2-pane{background:#F4F8F5;border:1px solid var(--line);border-radius:14px;padding:20px 20px 14px;color:#0E1A15}
.c2-h{display:grid;gap:2px}
.c2-h .k{font-size:14px;font-weight:600;color:#1E4D3A}
.c2-h .v{font-size:clamp(34px,4vw,52px);font-weight:600;font-stretch:80%;letter-spacing:-.02em;line-height:1.05;color:#1E4D3A}
.c2-h .s{font-size:14px;line-height:1.45;color:#4F665A;max-width:36ch}
.c2-pane img{display:block;width:100%;height:auto;margin-top:12px}
.js .c2 .c2-pane{opacity:0;transform:translateY(12px)}
.c2.in .c2-pane{animation:il-settle .8s cubic-bezier(.2,.7,.2,1) .1s forwards}
.c2.in .c2-pane.conn{animation-delay:.45s}
.c2 figcaption{margin-top:12px}

/* ---------- C3 one thin line ---------- */
.c3{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:18px 40px;align-items:center;max-width:920px;margin-top:64px}
.c3 svg{max-width:520px}
.c3 .pL{fill:#8DBBA0}
.c3 .pR{fill:#8DBBA0;transition:fill .7s ease}
.c3.in .pR{fill:#C8DFCF;transition-delay:1.5s}
.c3 .c3-halo{fill:none;stroke:var(--il-acc);stroke-linecap:round;opacity:.16}
.js .c3 .c3-halo.new{opacity:0}
.c3.in .c3-halo.new{animation:c3-halo .6s ease 1.3s forwards}
@keyframes c3-halo{to{opacity:.16}}
.c3 .c3-line{fill:none;stroke:var(--il-ink);stroke-width:1.6;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:0}
.js .c3 .c3-line{stroke-dashoffset:1}
.c3.in .c3-line{animation:c-draw 1.1s ease-in-out .3s forwards}
.c3-read{display:grid;gap:18px}
.c3-read > div{display:grid;gap:2px;padding-top:12px;border-top:1px solid var(--line)}
.c3-read .k{font-size:14px;font-weight:600;color:var(--ink)}
.c3-read .v{font-size:clamp(32px,3.6vw,44px);font-weight:600;font-stretch:80%;letter-spacing:-.02em;line-height:1.05;color:var(--forest-2)}
.c3-read .was{font-family:var(--font-mono);font-size:12px;color:var(--ink-3)}
.c3 figcaption{grid-column:1/-1}

/* ---------- territory check features ---------- */
.feats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 48px;margin-top:40px;max-width:1040px}
.feat{display:grid;grid-template-columns:52px minmax(0,1fr);gap:18px;align-items:start;padding-top:22px;border-top:1px solid var(--line)}
.fi{display:grid;place-items:center;width:52px;height:52px;border-radius:12px;background:var(--il-fill);border:1px solid var(--line)}
.fi svg{width:34px;height:34px}
.feat h3{margin:0;font-size:18px}
.feat p{margin:6px 0 0;font-size:15.5px;line-height:1.55;color:var(--ink-2)}

/* ---------- C4 ranked lines ---------- */
.c4{max-width:560px;width:100%;justify-self:end}
.c4 .g{fill:none;stroke:#8EA69A;stroke-width:1.6;stroke-linecap:round;vector-effect:non-scaling-stroke}
.c4 .rl{transition:stroke .4s ease,stroke-width .4s ease}
.c4.in .r1{stroke:var(--il-acc);stroke-width:3.4;transition-delay:.6s}
.c4.in .r2{stroke:var(--il-acc);stroke-width:3.4;transition-delay:2s}
.c4.in .r3{stroke:var(--il-acc);stroke-width:3.4;transition-delay:3.2s}
.c4 .m3{transition:fill .8s ease}
.c4.in .m3{fill:#C8DFCF;transition-delay:1.2s}
.c4 .rkn{fill:#FFFFFF;font-family:var(--font-sans);font-weight:700;font-size:11.5px}
.c4 .rkp{fill:var(--il-bg);stroke:var(--il-acc);stroke-width:1}
.c4 .rkt{font-size:11px;fill:var(--il-txt)}
.js .c4 .rk{opacity:0}
.c4.in .rk.rank1{animation:il-show .4s ease .7s forwards}
.c4.in .rk.rank2{animation:il-show .4s ease 2.1s forwards}
.c4.in .rk.rank3{animation:il-show .4s ease 3.3s forwards}
.c4 figcaption{margin-top:12px}

/* ---------- C5 before and after ---------- */
.c5{max-width:560px;width:100%;justify-self:end}
.c5 .pp{fill:none;stroke:var(--il-acc);stroke-width:1.8;stroke-dasharray:4 4;vector-effect:non-scaling-stroke}
.c5 .halo-p{fill:none;stroke:var(--il-acc);stroke-width:24;stroke-linejoin:round;stroke-linecap:round;opacity:.14}
.js .c5 .prop{opacity:0;transform:translateY(-36px)}
.c5.in .prop{animation:il-settle 1s cubic-bezier(.2,.7,.2,1) .4s forwards}
.c5-t{width:100%;margin-top:14px;border-collapse:collapse;font-size:14.5px}
.c5-t th,.c5-t td{padding:10px 8px;border-bottom:1px solid var(--line);text-align:right;font-family:var(--font-mono);font-weight:400;color:var(--ink)}
.c5-t thead th{font-family:var(--font-sans);font-size:13px;font-weight:600;color:var(--ink-2)}
.c5-t tbody th{text-align:left;font-family:var(--font-sans);font-weight:600}
.c5-t .up,.c5-t .down{color:var(--forest-2)}
.c5 figcaption{margin-top:12px}

/* ---------- results table ---------- */
.rt-wrap{margin-top:36px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--white)}
.rt{width:100%;border-collapse:collapse;font-size:15.5px;line-height:1.5}
.rt th,.rt td{padding:16px 20px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
.rt tbody tr:last-child th,.rt tbody tr:last-child td{border-bottom:0}
.rt thead th{font-size:13px;font-weight:600;color:var(--ink-2);background:var(--mist)}
.rt tbody th{font-weight:600;color:var(--ink);width:32%}
.rt td:nth-of-type(1){color:var(--ink);font-weight:500}
.rt td:nth-of-type(2){color:var(--ink-2);font-family:var(--font-mono);font-size:13.5px}

/* ---------- coming next ---------- */
.next3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:40px}
.nx{display:flex;flex-direction:column;gap:12px;padding:22px;border:1.5px dashed color-mix(in srgb,var(--ink) 22%,transparent);border-radius:14px}
.nx h3{margin:6px 0 0;font-size:19px}
.nx p{margin:0;font-size:15px;line-height:1.55;color:var(--ink-2)}
.nx > .il{min-height:252px;margin-bottom:6px;display:flex;flex-direction:column;justify-content:center}
.c7{padding:14px;border-radius:12px;background:var(--il-bg);border:1px solid var(--line)}
.c7-h{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;font-family:var(--font-mono);font-size:12px;color:var(--il-sub)}
.c7-row{display:grid;grid-template-columns:minmax(0,1fr) 34px;gap:4px 10px;align-items:center;padding:8px 0;border-top:1px solid var(--line)}
.c7-k{grid-column:1/-1;font-size:13px;color:var(--il-txt)}
.c7 .bar{position:relative;height:8px;border-radius:4px;background:var(--il-fill);overflow:hidden}
.c7 .bar i{position:absolute;inset:0 auto 0 0;width:var(--v);border-radius:4px;background:var(--il-acc)}
.c7 .warn .bar i{background:var(--il-amb)}
.c7-v{font-family:var(--font-mono);font-size:12px;text-align:right;color:var(--il-txt)}
.c7 .warn .c7-v{color:var(--il-amb-t);font-weight:500}
.js .c7 .bar i{width:0}
.c7.in .bar i{animation:c7-w 1.2s cubic-bezier(.2,.7,.2,1) .2s forwards}
@keyframes c7-w{to{width:var(--v)}}
.chk{display:inline-flex;align-items:center;gap:6px;font-family:var(--font-mono);font-size:12px;color:var(--il-acc)}
.chk svg{width:16px;height:16px}
.c8 .thr{fill:none;stroke:var(--il-ink);stroke-width:1.2;stroke-dasharray:5 5;vector-effect:non-scaling-stroke}
.c8 .c8-line{fill:none;stroke:var(--il-acc);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:0}
.js .c8 .c8-line{stroke-dashoffset:1}
.c8.in .c8-line{animation:c-draw 1.8s ease-in-out .2s forwards}
.c8 .c8-dot{fill:var(--il-amb)}
.c8 .c8-lbl{font-size:11px;fill:var(--il-amb-t)}
.js .c8 .c8-dot,.js .c8 .c8-lbl{opacity:0}
.c8.in .c8-dot,.c8.in .c8-lbl{animation:il-show .3s ease 1.8s forwards}
.c8-note{margin-top:4px;font-family:var(--font-mono);font-size:12px;color:var(--il-sub)}
.c9 .c9-f{vector-effect:none;stroke-width:1.5;stroke-dasharray:1;stroke-dashoffset:0}
.js .c9 .c9-f{stroke-dashoffset:1}
.c9.in .c9-f{animation:c-draw 1s ease-in-out .2s forwards}
.c9 .c9-n{font-size:11.5px;fill:var(--il-acc);font-weight:500}
.js .c9 .c9-n{opacity:0}
.c9.in .c9-n{animation:il-show .4s ease 1.1s forwards}

/* ---------- C10 report pages ---------- */
.c10{max-width:520px;width:100%;justify-self:end}
.c10 .pgb{fill:var(--il-bg);stroke:var(--il-line);stroke-width:1.5;vector-effect:non-scaling-stroke}
.c10 .tag{fill:var(--il-fill);stroke:var(--il-acc);stroke-width:1;vector-effect:non-scaling-stroke}
.c10 .tagt{font-size:9.5px;fill:var(--il-acc)}
.c10 .pg{transition:transform 1.1s cubic-bezier(.2,.7,.2,1)}
.c10 .p3{transition-delay:.12s}
.js .c10:not(.in) .p2{transform:translate(-96px,12px)}
.js .c10:not(.in) .p3{transform:translate(-192px,24px)}

/* ---------- who it's for ---------- */
.cards3{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:32px}

/* ---------- responsive ---------- */
@media (max-width:1000px){
  .c1,.c4,.c5,.c10{justify-self:start}
  .next3{grid-template-columns:1fr 1fr}
}
@media (max-width:760px){
  .js .c2 .seg{display:inline-flex}
  .c2.in .c2-pane,.c2.in .c2-pane.conn{animation-duration:.4s;animation-delay:0s}
  .c2-grid{grid-template-columns:1fr}
  .js .c2[data-view="near"] .c2-pane.conn,.js .c2[data-view="conn"] .c2-pane.near{display:none}
  .c3{grid-template-columns:1fr;margin-top:48px}
  .feats{grid-template-columns:1fr;gap:20px}
  .next3,.cards3{grid-template-columns:1fr}
  .rt thead{display:none}
  .rt tr{display:grid;padding:14px 16px;border-bottom:1px solid var(--line)}
  .rt tbody tr:last-child{border-bottom:0}
  .rt th,.rt td{padding:4px 0;border:0;width:auto}
  .rt td::before{display:block;font-family:var(--font-sans);font-size:12px;font-weight:600;color:var(--ink-3);margin-top:6px}
  .rt td:nth-of-type(1)::before{content:"Result"}
  .rt td:nth-of-type(2)::before{content:"How firm"}
}
@media (max-width:560px){
  .c1{padding-bottom:0}
  .c1-read{position:static;width:auto;margin-top:12px}
  .c5-t{font-size:13px}
  .c5-t th,.c5-t td{padding:9px 4px}
}
@media (prefers-reduced-motion:reduce){
  .js .c1 .halo *{stroke-width:var(--w)}
  .js .c1 .c1-read,.js .c2 .c2-pane,.js .c3 .c3-halo.new,.js .c4 .rk,.js .c5 .prop,.js .c8 .c8-dot,.js .c8 .c8-lbl,.js .c9 .c9-n{opacity:1;transform:none}
  .js .c3 .c3-halo.new{opacity:.16}
  .js .c3 .c3-line,.js .c8 .c8-line,.js .c9 .c9-f{stroke-dashoffset:0}
  .js .c7 .bar i{width:var(--v)}
  .js .c10 .pg{transform:none}
}

/* captions sit on tinted sections here, so use the stronger grey */
main .cap{color:var(--ink-2)}
