:root { --bg:#030507; --ink:#e8efe9; --mut:#8a978f; --green:#7ef0a6; --cyan:#7fe3f0; --line:rgba(255,255,255,.08); --serif:'Instrument Serif', Georgia, serif; }
* { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; background:var(--bg); }
body { font-family:Inter, system-ui, sans-serif; color:var(--ink); background:var(--bg); -webkit-font-smoothing:antialiased; overflow-x:hidden; }
a { color:inherit; text-decoration:none; }
em { font-style:italic; }
.muted { color:var(--mut); } .small { font-size:12.5px; } .r { margin-left:auto; }

/* nav */
.nav { position:fixed; top:0; left:0; right:0; z-index:1200; display:flex; align-items:center; gap:24px; padding:18px clamp(18px,4vw,48px);
  background:linear-gradient(180deg, rgba(3,5,7,.8), rgba(3,5,7,0)); }
.brand { display:flex; align-items:center; gap:10px; font-weight:600; font-size:15px; letter-spacing:-.01em; }
.brand-txt { display:flex; flex-direction:column; gap:1px; line-height:1.05; }
.brand-txt b { font-weight:600; }
.brand-txt small { font-weight:500; font-size:10.5px; color:var(--mut); letter-spacing:.01em; }
.mark { width:26px; height:26px; border-radius:8px; display:grid; place-items:center; background:linear-gradient(135deg,#34d399,#0d9488); color:#02130c; }
.mark svg { width:15px; height:15px; }
.links { display:flex; gap:26px; margin-left:auto; font-size:13.5px; color:#b8c4bc; }
.links a:hover { color:#fff; }
.pill { display:inline-flex; align-items:center; gap:8px; padding:9px 16px; border-radius:999px; font-size:13.5px; font-weight:500; background:#eef6f0; color:#04100a; transition:transform .2s, box-shadow .2s; }
.pill:hover { transform:translateY(-1px); box-shadow:0 8px 30px -8px rgba(126,240,166,.6); }
.pill.big { padding:16px 28px; font-size:16px; }

/* hero */
.hero { position:relative; height:100vh; min-height:640px; overflow:hidden; background:transparent; }
#globe { position:absolute; inset:0; width:100%; height:100%; display:block; }
.hero-copy { position:absolute; left:0; right:0; bottom:clamp(56px,9vh,110px); text-align:center; pointer-events:none; padding:0 20px; }
.eyebrow { font-size:12px; letter-spacing:.18em; text-transform:uppercase; color:var(--mut); }
.eyebrow i { font-style:normal; color:var(--green); margin-right:10px; }
h1 { font-family:var(--serif); font-weight:400; font-size:clamp(84px,15vw,230px); line-height:.86; letter-spacing:-.02em; margin-top:10px;
  text-shadow:0 10px 60px rgba(0,0,0,.6); }
h1 em { color:var(--green); }
.team { margin-top:12px; font-size:clamp(16px,1.7vw,22px); font-weight:500; letter-spacing:.01em; color:#e8efe9; }
.sub { font-size:clamp(16px,1.6vw,20px); color:#c7d2cb; margin-top:14px; }
.sub span { color:#fff; }
.chip { position:absolute; z-index:3; padding:12px 16px; border-radius:16px; background:rgba(14,22,19,.55); border:1px solid rgba(255,255,255,.09);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); display:flex; flex-direction:column; gap:2px; box-shadow:0 20px 50px -20px rgba(0,0,0,.8);
  animation:float 7s ease-in-out infinite; transition:border-color .2s; }
.chip:hover { border-color:rgba(126,240,166,.4); }
.chip b { font-family:var(--serif); font-weight:400; font-size:28px; line-height:1; }
.chip span { font-size:12px; color:var(--mut); }
.c1 { left:4.5%; top:22%; } .c2 { right:4.5%; top:20%; animation-delay:-2.3s; } .c3 { left:auto; right:4.5%; top:42%; animation-delay:-4.6s; }
@keyframes float { 0%,100% { transform:translateY(0) } 50% { transform:translateY(-12px) } }
.scroll { position:absolute; left:50%; bottom:4px; width:22px; height:34px; margin-left:-11px; border:1.5px solid rgba(255,255,255,.25); border-radius:12px; z-index:4; }
.scroll span { position:absolute; left:50%; top:7px; width:3px; height:7px; margin-left:-1.5px; border-radius:2px; background:#fff; animation:wheel 2s infinite; }
@keyframes wheel { 0% { opacity:0; transform:translateY(0) } 30% { opacity:1 } 100% { opacity:0; transform:translateY(10px) } }

/* sections */
.sec { position:relative; min-height:100vh; display:flex; flex-direction:column; justify-content:center; padding:120px clamp(20px,5vw,72px); overflow:hidden; }
.sec-inner { position:relative; z-index:1; max-width:1240px; width:100%; margin:0 auto; display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:clamp(32px,6vw,90px); align-items:center; }
#protect .sec-inner { grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); }
#protect .copy { order:2; }
h2 { font-family:var(--serif); font-weight:400; font-size:clamp(46px,6vw,88px); line-height:.98; letter-spacing:-.015em; margin-top:18px; }
h2 em { color:var(--green); }
.copy p { font-size:clamp(16px,1.35vw,19px); line-height:1.55; color:#aeb9b2; margin-top:22px; max-width:470px; }
.glow { position:absolute; width:900px; height:900px; border-radius:50%; filter:blur(120px); opacity:.18; pointer-events:none; }
.g1 { background:#10b981; right:-300px; top:10%; opacity:.10; } .g2 { background:#0d7a5a; left:-400px; top:20%; opacity:.08; } .g3 { background:#145c43; right:-350px; bottom:-200px; opacity:.09; }
.glass { position:relative; border-radius:26px; padding:clamp(18px,2.2vw,28px); background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.09); box-shadow:0 40px 100px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06); }
.reveal { opacity:0; transform:translateY(34px); transition:opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity:1; transform:none; }
.d1 { transition-delay:.15s; } .d2 { transition-delay:.3s; }

/* packet */
.row { display:flex; align-items:center; gap:10px; font-size:13px; }
.lbl { font-weight:600; letter-spacing:.06em; text-transform:uppercase; font-size:12px; color:var(--green); }
.live { width:8px; height:8px; border-radius:50%; background:var(--green); box-shadow:0 0 0 0 rgba(126,240,166,.6); animation:ping 2s infinite; }
@keyframes ping { 0% { box-shadow:0 0 0 0 rgba(126,240,166,.55) } 70%,100% { box-shadow:0 0 0 10px rgba(126,240,166,0) } }
.tag { font-size:10.5px; font-weight:600; padding:3px 8px; border-radius:6px; letter-spacing:.04em; }
.tag.real { color:#86efac; background:rgba(34,197,94,.1); border:1px solid rgba(34,197,94,.25); }
.tiles { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:22px; }
.tile { border-radius:18px; padding:16px 16px 18px; background:rgba(255,255,255,.035); border:1px solid rgba(255,255,255,.06); }
.tile .k { font-size:12.5px; color:var(--mut); }
.tile .v { font-family:var(--serif); font-size:clamp(44px,4.6vw,64px); line-height:1; margin-top:10px; letter-spacing:-.01em; }
.tile .v small { font-family:Inter; font-size:13px; color:var(--mut); margin-left:4px; }
.tile.cold .v { color:var(--cyan); }
.meta { font-size:12.5px; color:var(--mut); margin-top:14px; }
.mini-flow { display:flex; align-items:center; margin:22px 0 14px; padding:14px 6px; border-top:1px solid var(--line); }
.mf { display:flex; flex-direction:column; align-items:center; gap:6px; font-size:11.5px; color:#b8c4bc; width:76px; text-align:center; }
.mf i { width:38px; height:38px; border-radius:12px; display:grid; place-items:center; background:rgba(126,240,166,.08); border:1px solid rgba(126,240,166,.22); color:var(--green); }
.mf i svg { width:19px; height:19px; }
.mline { flex:1; height:1.5px; background:rgba(255,255,255,.12); position:relative; margin-bottom:22px; }
.mline b { position:absolute; top:-3px; width:7px; height:7px; border-radius:50%; background:var(--green); box-shadow:0 0 10px 2px rgba(126,240,166,.7); animation:mv 3s linear infinite; opacity:0; }
@keyframes mv { 0% { left:0; opacity:0 } 6% { opacity:1 } 30% { left:calc(100% - 7px); opacity:1 } 34%,100% { left:calc(100% - 7px); opacity:0 } }

/* map */
.sec-inner.wide { grid-template-columns:minmax(0,.62fr) minmax(0,1.38fr); }
.mapcard { padding:12px; }
#map { width:100%; height:auto; display:block; border-radius:18px; background:radial-gradient(80% 80% at 55% 40%, #08151a, #04080a); }
#map.flowmap, #map.leaflet-container { aspect-ratio: 1100 / 880; height:auto; min-height:420px; cursor:grab; }
#map.leaflet-container:active { cursor:grabbing; }
#map.flowmap.armed { box-shadow: inset 0 0 0 1px rgba(126,240,166,.28); }
#map .land { fill:#0c1a17; stroke:rgba(126,240,166,.12); stroke-width:.7; }
#map .eu { fill:#10241d; }
#map .arc { fill:none; stroke:#3fb6d8; stroke-linecap:round; stroke-linejoin:round; opacity:.55; stroke-dasharray:1000; stroke-dashoffset:1000; }
#map .arc.sea { stroke:#5fa8ff; stroke-dasharray:1000; }
#map .arc.lt { stroke:#7ef0a6; opacity:.95; }
#map .pkt.lt { fill:#eafff1; }
#map .ltc { fill:#173a2b; stroke:rgba(126,240,166,.45); }
#map .lt1r { fill:none; stroke:#fcd34d; stroke-width:2.2; stroke-linecap:round; }
#map .lt1 circle { fill:#ef4444; stroke:#fff; stroke-width:1.2; }
#map .lt1 text { font:600 12px Inter; fill:#fecaca; } #map .lt1 text.s { font-weight:400; fill:#c9a0a0; font-size:11px; }
#map .node.lt { fill:#eafff1; }
.in #map .arc, #map.in .arc { animation:draw 1.8s cubic-bezier(.3,.6,.2,1) forwards; animation-delay:var(--dl); }
@keyframes draw { to { stroke-dashoffset:0 } }
#map .pkt { fill:#c9fbe0; }
#map .node { fill:#7ef0a6; opacity:.8; }
#map .cname { font:500 11px Inter; fill:#9fb0a6; }
#map .best circle.ring { fill:none; stroke:#fcd34d; stroke-width:1.5; animation:ring 2.4s ease-out infinite; transform-origin:center; transform-box:fill-box; }
@keyframes ring { 0% { transform:scale(.4); opacity:1 } 100% { transform:scale(2.4); opacity:0 } }
#map .best text { font:600 12.5px Inter; fill:#fde68a; }
.legend { display:flex; gap:18px; flex-wrap:wrap; font-size:12px; color:var(--mut); padding:12px 8px 4px; }
.legend .ln { display:inline-block; width:18px; height:2px; background:linear-gradient(90deg,#0ea5e9,#7ef0a6); vertical-align:middle; margin-right:6px; }
.legend .dot { display:inline-block; width:8px; height:8px; border-radius:50%; background:#fcd34d; margin-right:6px; }
.stats { position:relative; z-index:1; max-width:1240px; width:100%; margin:56px auto 0; display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid var(--line); }
.stat { padding:26px 24px 0 0; }
.stat + .stat { padding-left:24px; border-left:1px solid var(--line); }
.stat b { display:block; font-family:var(--serif); font-weight:400; font-size:clamp(40px,4.4vw,64px); line-height:1; }
.stat span { display:block; font-size:13.5px; color:var(--mut); margin-top:8px; }
.source { position:relative; z-index:1; max-width:1240px; width:100%; margin:22px auto 0; font-size:11.5px; color:#5f6c65; }

/* slider */
.ba { position:relative; overflow:hidden; border-radius:0; aspect-ratio:5/4; background:#000; user-select:none; touch-action:none; }
.ba img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.ba .after { position:absolute; inset:0; clip-path:inset(0 0 0 var(--x)); }
.ba .handle { position:absolute; top:0; bottom:0; left:var(--x); width:2px; background:#fff; pointer-events:none; transform:translateX(-50%); box-shadow:0 0 16px rgba(255,255,255,.35); z-index:2; }
.ba .handle::after { content:"⟷"; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:38px; height:38px; border-radius:50%; background:#fff; color:#000; display:grid; place-items:center; font-size:15px; font-weight:700; box-shadow:0 6px 20px rgba(0,0,0,.4); }
.ba .swipe-hit { position:absolute; top:0; bottom:0; left:var(--x); width:44px; transform:translateX(-50%); cursor:ew-resize; pointer-events:auto; z-index:4; }
.ba input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:ew-resize; }
.bl { position:absolute; top:12px; font-size:10.5px; font-weight:600; letter-spacing:.1em; padding:4px 9px; border-radius:7px; background:rgba(0,0,0,.6); color:#e8efe9; z-index:3; pointer-events:none; }
.verdict { display:flex; align-items:center; gap:16px; margin-top:16px; padding:4px 4px 2px; }
.vbadge { padding:9px 14px; border-radius:12px; background:#dc2626; font-weight:700; font-size:18px; letter-spacing:.06em; box-shadow:0 0 40px -6px rgba(239,68,68,.7); }
.vt { font-family:var(--serif); font-size:clamp(24px,2.2vw,30px); line-height:1.1; }
.verdict .muted { font-size:12.5px; margin-top:4px; }

/* end + footer */
.end { min-height:70vh; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:36px; text-align:center; padding:100px 20px; background:transparent; }
.end h2 { font-size:clamp(52px,8vw,120px); }
.foot { display:flex; justify-content:space-between; gap:24px; flex-wrap:wrap; padding:28px clamp(20px,5vw,72px) 36px; border-top:1px solid rgba(255,255,255,.05); font-size:13px; background:transparent; }
.foot-brand { display:flex; flex-direction:column; gap:2px; }
.foot-brand b { font-size:15px; }
.foot-brand span { color:#c7d2cb; }
.foot-brand .muted { color:#6b7a72; font-size:12px; max-width:none; }
.foot .muted { max-width:680px; font-size:12px; line-height:1.5; }

/* mobile */
@media (max-width: 860px) {
  .links { display:none; } .nav .pill { margin-left:auto; padding:8px 14px; font-size:13px; }
  .hero { min-height:600px; height:100svh; }
  .hero-copy { bottom:176px; }
  .chip { padding:8px 10px; border-radius:13px; top:auto !important; bottom:70px; animation:none; }
  .chip b { font-size:18px; } .chip span { font-size:10px; max-width:96px; }
  .c1 { left:12px; right:auto; }
  .c2 { left:50%; right:auto; transform:translateX(-50%); }
  .c3 { display:flex; left:auto; right:12px; }
  .sec { min-height:auto; padding:96px 20px; }
  .sec-inner, .sec-inner.wide, #protect .sec-inner { grid-template-columns:1fr; gap:36px; }
  #protect .copy { order:0; }
  .tiles { gap:8px; } .tile { padding:12px 10px 14px; border-radius:14px; } .tile .v { font-size:38px; }
  .mf { width:58px; font-size:10.5px; } .mf i { width:32px; height:32px; }
  .stats { grid-template-columns:1fr; margin-top:36px; }
  .stat, .stat + .stat { padding:20px 0; border-left:0; border-bottom:1px solid var(--line); }
  .glow { width:500px; height:500px; }
  .vt { font-size:22px; }
  .row { flex-wrap:wrap; row-gap:4px; } .row .r { margin-left:0; width:100%; font-size:12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  .reveal { opacity:1; transform:none; transition:none; }
  .chip, .scroll span, .live, .mline b, #map .best circle.ring { animation:none; }
  #map .arc { stroke-dasharray:none; stroke-dashoffset:0; animation:none !important; }
  .mline b { opacity:1; left:calc(50% - 3px); }
}

/* ---- v5: IoT section */
.sec-head { position:relative; z-index:1; max-width:1240px; width:100%; margin:0 auto 44px; }
.sec-head p { font-size:clamp(16px,1.35vw,19px); line-height:1.55; color:#aeb9b2; margin-top:20px; max-width:620px; }
.iot-grid { position:relative; z-index:1; max-width:1240px; width:100%; margin:0 auto; display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr) minmax(0,1fr); gap:18px; }
.kitcard { padding:0; overflow:hidden; min-height:380px; display:flex; flex-direction:column;
  background:radial-gradient(80% 70% at 50% 40%, rgba(126,240,166,.10), transparent 70%), linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); }
#kit { flex:1; width:100%; min-height:300px; display:block; cursor:grab; touch-action:pan-y; }
#kit:active { cursor:grabbing; }
.kit-cap { display:flex; gap:10px; align-items:baseline; flex-wrap:wrap; padding:14px 20px 18px; font-size:13px; border-top:1px solid var(--line); }
.kit-cap b { font-weight:600; } .kit-cap span { color:var(--mut); } .kit-cap .hint { margin-left:auto; font-size:11.5px; color:#5f6c65; }
.mapwrap { position:relative; padding:0; overflow:hidden; min-height:440px; }
#iotmap { position:absolute; inset:0; background:#05090b; }
.beam { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:500; }
.beamline { animation:dash 1s linear infinite; } @keyframes dash { to { stroke-dashoffset:-20 } }
.map-cap { position:absolute; z-index:600; left:16px; top:16px; display:flex; gap:8px; align-items:center; font-size:12.5px; padding:8px 12px; border-radius:12px; background:rgba(5,10,9,.72); border:1px solid var(--line); backdrop-filter:blur(8px); }
.map-key { position:absolute; z-index:600; left:16px; bottom:16px; display:flex; flex-wrap:wrap; gap:6px 14px; font-size:11.5px; color:#b8c4bc; padding:8px 12px; border-radius:12px; background:rgba(5,10,9,.72); border:1px solid var(--line); max-width:calc(100% - 32px); }
.map-key i { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:6px; vertical-align:middle; }
.k-dev { background:#7ef0a6; box-shadow:0 0 8px #7ef0a6; } .k-grid { background:rgba(126,240,166,.4); border:1px solid #7ef0a6; } .k-lt1 { background:#ef4444; }
.map-key em.demo { font-style:normal; color:#c4b5fd; margin-left:4px; }
.devpin { position:relative; width:0; height:0; } .devpin span { position:absolute; left:-6px; top:-6px; width:12px; height:12px; border-radius:50%; background:#7ef0a6; box-shadow:0 0 0 4px rgba(126,240,166,.25), 0 0 20px #7ef0a6; }
.devpin::after { content:""; position:absolute; left:-18px; top:-18px; width:36px; height:36px; border-radius:50%; border:1.5px solid #7ef0a6; animation:ring 2.4s ease-out infinite; }
.satpin { position:relative; } .satpin svg { position:absolute; left:-13px; top:-13px; width:26px; height:26px; color:#7fe3f0; filter:drop-shadow(0 0 6px rgba(127,227,240,.8)); }
.leaflet-tooltip.devtip { background:rgba(5,10,9,.85); color:#e8efe9; border:1px solid rgba(126,240,166,.35); border-radius:8px; font:500 12px Inter; box-shadow:none; }
.leaflet-tooltip.devtip::before { display:none; }
.leaflet-container { font-family:Inter, sans-serif; } .leaflet-control-attribution { background:rgba(0,0,0,.5) !important; color:#6b7a72 !important; font-size:10px; } .leaflet-control-attribution a { color:#8a978f !important; }
.packet-strip { position:relative; z-index:1; max-width:1240px; width:100%; margin:20px auto 0; padding:18px 20px; }
.ps-head { display:flex; gap:12px; align-items:center; flex-wrap:wrap; font-size:13px; font-weight:500; }
.ps-head .muted { font-weight:400; }
.ps-tiles { display:grid; grid-template-columns:repeat(6,1fr); gap:10px; margin-top:14px; }
.ps-tiles .tile .v { font-size:clamp(34px,3.2vw,46px); }
/* ---- v5: case switcher */
.cases { display:grid; grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:10px; margin-top:28px; max-width:520px; }
.case { all:unset; cursor:pointer; display:flex; align-items:center; gap:10px; padding:7px 10px 7px 7px; border-radius:14px; border:1px solid var(--line); background:rgba(255,255,255,.025); font-size:12.5px; color:#b8c4bc; transition:border-color .2s, background .2s, color .2s; }
.case img { width:38px; height:38px; border-radius:9px; object-fit:cover; flex:none; }
.case:hover { border-color:rgba(255,255,255,.2); color:#fff; }
.case.on { border-color:rgba(126,240,166,.55); background:rgba(126,240,166,.08); color:#fff; }
.case:focus-visible { outline:2px solid var(--green); outline-offset:2px; }
.ba img { image-rendering:auto; transition:opacity .18s; } .ba.pix img { image-rendering:pixelated; } .ba.swap img { opacity:0; }
.vbadge.ok { background:#16a34a; box-shadow:0 0 40px -6px rgba(34,197,94,.7); }
.glass .src { font-size:11.5px; color:#5f6c65; margin-top:12px; line-height:1.45; }
@media (max-width: 860px) {
  .iot-grid { grid-template-columns:1fr; }
  .kitcard { min-height:360px; } #kit { min-height:290px; }
  .mapwrap { min-height:380px; }
  .ps-tiles { grid-template-columns:repeat(3,1fr); gap:8px; }
  .ps-tiles .tile .v { font-size:30px; }
  .cases { grid-template-columns:1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .beamline, .devpin::after { animation:none; } }
.ba.sqr { aspect-ratio:1/1; }
#iotmap .leaflet-tile-pane { filter:saturate(.6) brightness(.95) hue-rotate(110deg); }

/* v5: quiet labels */
.eyebrow { text-transform:none; letter-spacing:.01em; font-size:13.5px; }
.bl { text-transform:none; letter-spacing:0; font-weight:500; font-size:12px; }
.vbadge, .vbadge.ok { width:12px; height:12px; padding:0; border-radius:50%; flex:none; margin-top:9px; box-shadow:0 0 0 5px rgba(239,68,68,.16); }
.vbadge.ok { box-shadow:0 0 0 5px rgba(34,197,94,.16); }
.ps-head > span:first-child { color:#fff; font-weight:500; }
.sub { font-size:clamp(18px,2.1vw,25px); line-height:1.35; max-width:640px; margin-left:auto; margin-right:auto; text-wrap:balance; }

/* v6 */
.ps-tiles { grid-template-columns:repeat(3,1fr) !important; }
#netmap { position:absolute; inset:0; border-radius:inherit; }
.mapwrap, .mapwrap.netwrap { min-height:380px; position:relative; }
.map-note { font-size:11.5px; color:#6b7a72; padding:0 16px 14px; line-height:1.45; }
.howto { max-width:1240px; width:100%; margin:28px auto 0; padding:22px 26px; border:1px solid var(--line); border-radius:18px; background:rgba(255,255,255,.02); }
.howto h3 { font-family:var(--serif); font-size:22px; font-weight:400; margin-bottom:8px; }
.howto p { font-size:14.5px; color:#aeb9b2; line-height:1.55; max-width:820px; }
#flowprod { display:flex; gap:8px; flex-wrap:wrap; margin-top:16px; }
#flowprod button { all:unset; cursor:pointer; padding:7px 12px; border-radius:999px; border:1px solid var(--line); font-size:12.5px; color:#b8c4bc; }
#flowprod button.on { border-color:rgba(126,240,166,.5); color:#fff; background:rgba(126,240,166,.1); }
.reveal { opacity:0; transform:translateY(16px); filter:blur(8px); transition:opacity .85s cubic-bezier(.2,.7,.2,1), transform .85s cubic-bezier(.2,.7,.2,1), filter .85s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity:1; transform:none; filter:none; }
.reveal.d1 { transition-delay:.12s; } .reveal.d2 { transition-delay:.24s; } .reveal.d3 { transition-delay:.36s; }
.chip, .pill, .card, .glass, .case, .btn, .nav-item, .alert { transition:border-color .25s ease, box-shadow .25s ease, transform .25s ease, background .25s ease; }
.chip:hover, .glass:hover, .case:hover, .pill:hover, a.card:hover { box-shadow:0 0 40px -12px rgba(126,240,166,.45); }
@media (max-width: 1100px) {
  .iot-grid { grid-template-columns:1fr 1fr; }
  .kitcard { grid-column:1 / -1; }
}
@media (max-width: 860px) {
  .iot-grid { grid-template-columns:1fr !important; }
  .kitcard { grid-column:auto; }
  .mapwrap, .mapwrap.netwrap { min-height:360px; }
  .howto { padding:18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity:1; transform:none; filter:none; transition:none; }
}

/* v6 flow products + clearance gallery */
#map .arc.roundwood { stroke:#3fb6d8; } #map .arc.sawnwood { stroke:#e8b86d; } #map .arc.chips { stroke:#8b9cff; }
#map .arc.lt { stroke:#7ef0a6; }
.pg { display:grid; grid-template-columns:1fr 1fr; gap:20px; max-width:1240px; width:100%; margin:0 auto; position:relative; z-index:1; }
.pg-map { position:relative; min-height:520px; overflow:hidden; }
#clearmap { position:absolute; inset:0; border-radius:inherit; }
.pg-stats { position:absolute; left:14px; right:14px; bottom:14px; z-index:2; padding:10px 14px; border-radius:12px; background:rgba(4,8,8,.72); border:1px solid rgba(255,255,255,.08); font-size:13px; color:#d5e0d8; pointer-events:none; }
.pg-stats b { color:#fff; font-weight:600; }
.bapoly { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.regions { display:flex; gap:8px; flex-wrap:wrap; margin-top:22px; }
.regions .region { all:unset; cursor:pointer; padding:8px 14px; border-radius:999px; border:1px solid var(--line); font-size:13px; color:#b8c4bc; }
.regions .region.on, .regions .region:hover { border-color:rgba(126,240,166,.5); color:#fff; background:rgba(126,240,166,.1); }
.clist { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:8px; max-width:1240px; width:100%; margin:18px auto 0; position:relative; z-index:1; }
.citem { all:unset; cursor:pointer; padding:10px 12px; border-radius:12px; border:1px solid var(--line); background:rgba(255,255,255,.02); display:flex; flex-direction:column; gap:3px; font-size:12px; color:#8a978f; }
.citem .cha { font-family:var(--serif); font-size:18px; color:#fff; }
.citem.on, .citem:hover { border-color:rgba(126,240,166,.45); background:rgba(126,240,166,.07); }
.intl { max-width:1240px; width:100%; margin:56px auto 0; position:relative; z-index:1; }
.intl h3 { font-family:var(--serif); font-size:32px; font-weight:400; margin-bottom:10px; }
.intl p { font-size:16px; color:#aeb9b2; line-height:1.55; max-width:720px; margin-bottom:18px; }
@media (max-width: 860px) {
  .pg { grid-template-columns:1fr; }
  .pg-map { min-height:360px; }
  .clist { grid-template-columns:repeat(2,1fr); }
  .intl h3 { font-size:26px; }
}
/* before/after slider is 5:4, matching the pre-rendered Sentinel-2 crops */
#protect .ba { aspect-ratio: 5 / 4 !important; width:100%; }
#protect .ba img { object-fit: fill !important; }

/* ---- v7: one continuous deep green-black sky */
html, body { background:#030806; }
body { background:transparent; }
.sky { position:fixed; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(90% 70% at 50% -8%, rgba(18,72,52,.32), transparent 58%),
    radial-gradient(60% 50% at 88% 28%, rgba(10,40,36,.16), transparent 60%),
    radial-gradient(70% 55% at 8% 62%, rgba(14,48,36,.14), transparent 62%),
    radial-gradient(50% 40% at 50% 100%, rgba(12,40,30,.18), transparent 70%),
    linear-gradient(180deg, #040a08 0%, #030807 28%, #04090a 58%, #030706 82%, #030806 100%);
}
.sky::before { content:""; position:absolute; inset:0; opacity:.22; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.02  0 0 0 0 0.04  0 0 0 0 0.03  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.sky::after { content:""; position:absolute; inset:0; opacity:.45;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.35), transparent),
    radial-gradient(1px 1px at 28% 72%, rgba(255,255,255,.22), transparent),
    radial-gradient(1.2px 1.2px at 63% 14%, rgba(200,255,220,.28), transparent),
    radial-gradient(1px 1px at 81% 44%, rgba(255,255,255,.2), transparent),
    radial-gradient(1px 1px at 47% 36%, rgba(255,255,255,.16), transparent),
    radial-gradient(1px 1px at 91% 78%, rgba(200,255,230,.22), transparent),
    radial-gradient(1px 1px at 6% 48%, rgba(255,255,255,.18), transparent),
    radial-gradient(1.1px 1.1px at 74% 88%, rgba(255,255,255,.2), transparent);
  background-repeat:repeat; background-size:auto;
}
.hero, main, .sec, .end, .foot { position:relative; z-index:1; }
.nav { position:fixed; z-index:1200; }
.hero { isolation:isolate; }
.hero::after { content:""; position:absolute; left:0; right:0; bottom:-1px; height:28vh; pointer-events:none; z-index:2;
  background:linear-gradient(180deg, rgba(3,8,6,0), rgba(3,8,6,.55) 70%, rgba(3,8,6,.0)); }
.sec { background:transparent; }
.sec::before, .sec::after { content:""; position:absolute; left:0; right:0; height:120px; pointer-events:none; z-index:0; }
.sec::before { top:0; background:linear-gradient(180deg, rgba(3,8,6,.18), transparent); }
.sec::after { bottom:0; background:linear-gradient(0deg, rgba(3,8,6,.18), transparent); }

/* flow tools + threshold note */
.flow-tools { display:flex; flex-wrap:wrap; gap:10px 18px; align-items:center; margin-top:16px; }
#flowprod { margin-top:0; }
#flowth { display:flex; gap:0; border:1px solid var(--line); border-radius:999px; overflow:hidden; }
#flowth button { all:unset; cursor:pointer; padding:7px 12px; font-size:12.5px; color:#8a978f; }
#flowth button + button { border-left:1px solid var(--line); }
#flowth button.on { color:#fff; background:rgba(126,240,166,.12); }
.flownote { max-width:1240px; width:100%; margin:14px auto 0; font-size:12.5px; color:#6b7a72; line-height:1.5; position:relative; z-index:1; }

/* one large clearance map */
.clearstage { max-width:800px; width:100%; margin:0 auto; position:relative; z-index:1; }
.clearmain { padding:0; overflow:hidden; height:auto; min-height:0; }
.case-tabs { margin:12px 14px 10px; }
.case-meta { display:grid; grid-template-columns:1fr 1fr; gap:10px 28px; margin:0; padding:16px 20px 18px; }
.case-meta div { display:flex; flex-direction:column; gap:2px; min-width:0; }
.case-meta dt { font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:#6b7a72; }
.case-meta dd { margin:0; font-size:16px; font-weight:500; color:#e8efe9; line-height:1.3; }
.case-meta .fine { color:#f4c7a8; }
#clearmap { position:absolute; inset:0; background:#040807; border-radius:inherit; }
.cmap-ui { position:absolute; z-index:700; top:16px; left:16px; right:16px; display:flex; align-items:flex-start; gap:12px; pointer-events:none; }
.cmap-ui > * { pointer-events:auto; }
.seg { display:inline-flex; border:1px solid rgba(255,255,255,.1); border-radius:999px; overflow:hidden; background:rgba(5,10,9,.72); backdrop-filter:blur(10px); }
.seg button { all:unset; cursor:pointer; padding:7px 14px; font-size:12.5px; color:#9aa79f; }
.seg button + button { border-left:1px solid rgba(255,255,255,.08); }
.seg button.on { color:#fff; background:rgba(126,240,166,.14); }
.tour-cap { margin-left:auto; max-width:min(360px, 48%); padding:10px 14px; border-radius:14px; background:rgba(5,10,9,.78); border:1px solid rgba(255,255,255,.08); backdrop-filter:blur(10px); color:#e8efe9; font-size:13px; line-height:1.4; }
.tour-cap b { font-family:var(--serif); font-weight:400; font-size:20px; display:block; line-height:1.1; margin-bottom:2px; }
.tour-cap .subc { color:#9aa79f; font-size:12px; }
.tour-cap .lt1line { color:#fecaca; font-size:12px; margin-top:4px; }
.swipe { position:absolute; inset:0; z-index:640; pointer-events:none; }
.swipe-line { position:absolute; top:0; bottom:0; left:var(--x); width:2px; background:#fff; transform:translateX(-50%); box-shadow:0 0 16px rgba(255,255,255,.35); }
.swipe-line::after { content:"⟷"; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:36px; height:36px; border-radius:50%; background:#fff; color:#04100a; display:grid; place-items:center; font-size:14px; font-weight:700; box-shadow:0 6px 20px rgba(0,0,0,.4); }
.swipe-hit { position:absolute; top:0; bottom:0; left:var(--x); width:32px; transform:translateX(-50%); cursor:ew-resize; pointer-events:auto; z-index:641; }
.cmap-dates { position:absolute; z-index:700; left:16px; right:16px; bottom:16px; display:flex; justify-content:space-between; pointer-events:none; }
.cmap-dates span { font-size:11.5px; font-weight:500; padding:4px 9px; border-radius:8px; background:rgba(0,0,0,.55); color:#e8efe9; }
.clear-foot { display:flex; justify-content:space-between; align-items:baseline; gap:16px; flex-wrap:wrap; margin-top:12px; }
.quiet { font-size:13.5px; color:#8a978f; }
.quiet b { color:#d5e0d8; font-weight:500; }
.howlink { all:unset; cursor:pointer; font-size:13px; color:#9aa79f; border-bottom:1px solid rgba(255,255,255,.16); padding-bottom:1px; }
.howlink:hover { color:#e8efe9; border-color:rgba(126,240,166,.5); }

/* Peru modal */
.modal { position:fixed; inset:0; z-index:80; background:rgba(2,6,5,.72); backdrop-filter:blur(10px); display:grid; place-items:center; padding:24px; }
.modal[hidden] { display:none !important; }
.modal-card { position:relative; max-width:760px; width:100%; max-height:min(86vh, 900px); overflow:auto; padding:32px 32px 28px; border-radius:22px; background:linear-gradient(180deg, rgba(16,28,24,.96), rgba(8,14,12,.98)); border:1px solid rgba(255,255,255,.1); box-shadow:0 40px 80px -20px rgba(0,0,0,.8); }
.modal-card h3 { font-family:var(--serif); font-weight:400; font-size:clamp(28px,4vw,40px); line-height:1.1; margin-bottom:12px; }
.modal-card > p { font-size:15px; color:#aeb9b2; line-height:1.55; margin-bottom:22px; }
.modal-x { position:absolute; top:14px; right:16px; all:unset; cursor:pointer; width:36px; height:36px; display:grid; place-items:center; font-size:24px; color:#9aa79f; border-radius:50%; }
.modal-x:hover { color:#fff; background:rgba(255,255,255,.06); }
.peru { display:flex; flex-direction:column; gap:18px; }
.peru article { display:grid; grid-template-columns:140px 1fr; gap:16px; align-items:center; padding-top:16px; border-top:1px solid var(--line); }
.peru img { width:140px; height:100px; object-fit:cover; border-radius:12px; }
.peru h4 { font-size:15px; font-weight:600; margin-bottom:4px; }
.peru p { font-size:13.5px; color:#aeb9b2; line-height:1.45; }
.peru .src { font-size:11.5px; color:#5f6c65; margin-top:6px; }
.leaflet-pane.after-pane { will-change:clip-path; }
@media (max-width: 860px) {
  /* static cases: height from the image */
  .tour-cap { top:auto; bottom:52px; right:16px; left:16px; max-width:none; font-size:12.5px; }
  .tour-cap b { font-size:17px; }
  .cmap-ui { flex-direction:column; align-items:stretch; }
  .peru article { grid-template-columns:1fr; }
  .peru img { width:100%; height:140px; }
  .clear-foot { flex-direction:column; align-items:flex-start; }
}
.netwrap .map-note { position:absolute; z-index:600; left:16px; right:16px; bottom:16px; padding:8px 12px; border-radius:12px; background:rgba(5,10,9,.72); border:1px solid var(--line); margin:0; }
.netwrap .map-key { bottom:58px; }
.tour-cap { position:absolute; top:16px; right:58px; left:auto; bottom:auto; transform:none; margin-left:0; max-width:min(360px, 46%); z-index:700; }
#clearmap .leaflet-control-zoom { border:1px solid rgba(255,255,255,.1); border-radius:10px; overflow:hidden; }
#clearmap .leaflet-control-zoom a { background:rgba(5,10,9,.78); color:#e8efe9; border-bottom-color:rgba(255,255,255,.08); width:30px; height:30px; line-height:30px; }
#clearmap .leaflet-control-zoom a:hover { background:rgba(16,32,26,.95); color:#fff; }

#protect .sec-head { margin-bottom: 22px; scroll-margin-top: 24px; }
@media (max-width: 860px) {
  /* static cases */
  .tour-cap { top: auto !important; bottom: 52px !important; left: 16px !important; right: 16px !important; max-width: none !important; }
  #protect { padding-top: 88px; padding-bottom: 64px; }
  #protect h2 { font-size: 48px; }
  .clear-foot { margin-top: 10px; padding-bottom: 8px; }
}


/* v8: interactive flowing timber map */
#map path.flow-arc { fill:none; stroke-linecap:round; stroke-linejoin:round; }
#map path.flow-arc.roundwood { stroke:#3fb6d8; }
#map path.flow-arc.sawnwood { stroke:#e8b86d; }
#map path.flow-arc.chips { stroke:#8b9cff; }
#map path.flow-arc.lt { stroke:#7ef0a6; }
#map path.flow-dash { fill:none; stroke-linecap:round; stroke-dasharray:8 18; animation:flowdash 2.8s linear infinite; pointer-events:none; }
#map path.flow-dash.sea { stroke-dasharray:6 16; animation-duration:3.4s; }
@keyframes flowdash { to { stroke-dashoffset:-24; } }
#map canvas.flow-particles { position:absolute; left:0; top:0; pointer-events:none; }
#map .leaflet-control-zoom { border:1px solid rgba(255,255,255,.1); border-radius:10px; overflow:hidden; margin:12px 12px 0 0; }
#map .leaflet-control-zoom a { background:rgba(5,10,9,.78); color:#e8efe9; border-bottom-color:rgba(255,255,255,.08); width:30px; height:30px; line-height:30px; }
#map .leaflet-control-zoom a:hover { background:rgba(16,32,26,.95); color:#fff; }
#map .flow-label { background:none; border:0; box-shadow:none; font:500 11px Inter, sans-serif; color:#9fb0a6; white-space:nowrap; }
#map .flow-label::before { display:none; }
#map .leaflet-div-icon.flow-label,
#map .leaflet-div-icon.flow-best-label { background:none !important; border:0 !important; box-shadow:none !important; }
#map .flow-label { font:500 11px Inter, sans-serif; color:#9fb0a6; white-space:nowrap; }
#map .flow-label::before, #map .flow-best-label::before { display:none; }
#map .flow-best-label { width:0 !important; height:0 !important; overflow:visible; }
#map .flow-best-label .best-box { position:absolute; left:50%; bottom:0; transform:translateX(-50%); width:max-content; padding:6px 10px 5px; border-radius:10px; background:rgba(5,12,10,.88); border:1px solid rgba(253,230,138,.38); font:600 12px Inter, sans-serif; color:#fde68a; text-align:center; line-height:1.3; white-space:nowrap; box-shadow:0 4px 16px rgba(0,0,0,.45); }
#map .flow-best-label .best-sub { font-weight:400; color:#cbb878; font-size:11px; }
#map path.flow-best-leader { fill:none; stroke-linecap:round; pointer-events:none; }

.legend .hint { color:#6b7a72; }
@media (max-width: 860px) {
  #map.flowmap, #map.leaflet-container { min-height:360px; }
  #map .flow-best-label .best-sub { display:none; }
  #map .flow-best-label .best-box { font-size:11px; }
}
@media (prefers-reduced-motion: reduce) {
  #map path.flow-dash { animation:none; stroke-dasharray:none; }
}

/* v10: find who did it — responsibility chain under the clearance map */
.chain { margin-top:14px; padding:16px 20px 14px; }
.chain-head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:12px; }
.chain-head h3 { font-family:var(--serif); font-weight:400; font-size:22px; line-height:1; letter-spacing:-.01em; }
.chain-sel { font-size:12.5px; color:#8a978f; }
.chain-steps { list-style:none; display:grid; grid-template-columns:repeat(5, minmax(0,1fr)); gap:0 22px; position:relative; margin:0; padding:0; }
.chain-steps::before { content:""; position:absolute; top:13px; left:14px; right:14px; height:1px; background:linear-gradient(90deg, rgba(126,240,166,.35), rgba(255,255,255,.08)); }
.st { position:relative; min-width:0; }
.st .dot { position:relative; z-index:1; display:grid; place-items:center; width:27px; height:27px; border-radius:50%; font-style:normal; font-size:12px; font-weight:600; margin-bottom:12px; background:#06100c; }
.st.ok .dot { color:#04100a; background:var(--green); box-shadow:0 0 0 4px rgba(126,240,166,.12); }
.st.ex .dot { color:#e8b86d; border:1px solid rgba(232,184,109,.6); }
.st.todo .dot { color:#8a978f; border:1px dashed rgba(255,255,255,.28); }
.st-k { font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:#8a978f; margin-bottom:4px; }
.st-v { font-size:14.5px; font-weight:500; color:#e8efe9; line-height:1.25; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.st.todo .st-v { color:#9aa79f; font-weight:400; }
.st-d { font-size:12px; color:#aeb9b2; line-height:1.4; margin-top:4px; }
.st-s { font-size:10.5px; color:#5f6c65; line-height:1.35; margin-top:4px; }
.chain-end { margin-top:14px; padding-top:10px; border-top:1px solid var(--line); font-size:12.5px; color:#9aa79f; }
.chain.swap .chain-steps { animation:chainin .5s ease both; }
@keyframes chainin { from { opacity:.35; transform:translateY(4px); } to { opacity:1; transform:none; } }
@media (max-width: 1100px) {
  .chain-steps { grid-template-columns:repeat(3, minmax(0,1fr)); gap:22px 22px; }
  .chain-steps::before { display:none; }
}
@media (max-width: 860px) {
  #protect .clearmain { padding-top:16px; scroll-margin-top:76px; }
  #protect .case-tabs { width:calc(100% - 24px); max-width:calc(100% - 24px); margin:0 12px 10px; }
  .case-tabs button { padding:6px 10px; font-size:11.5px; }
  .case-meta { grid-template-columns:1fr 1fr; gap:10px 16px; padding:14px 16px 16px; }
  .case-meta dd { font-size:14.5px; }
  .chain { padding:16px 16px 12px; }
  .chain-head h3 { font-size:22px; }
  .chain-steps { grid-template-columns:1fr; gap:0; }
  .chain-steps::before { display:block; top:14px; bottom:14px; left:13px; right:auto; width:1px; height:auto; background:linear-gradient(180deg, rgba(126,240,166,.35), rgba(255,255,255,.08)); }
  .st { display:grid; grid-template-columns:27px 1fr; column-gap:14px; padding-bottom:18px; }
  .st:last-child { padding-bottom:0; }
  .st .dot { grid-row:1 / span 4; margin-bottom:0; }
  .st-v { font-size:15px; }
}
@media (prefers-reduced-motion: reduce) { .chain.swap .chain-steps { animation:none; } }

/* v13: clearing outline drawn over both before and after, at every slider position */
.ba-outline { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:2; overflow:visible; display:block; }
#protect .clearmain { padding-top:14px; scroll-margin-top:80px; }
#protect .case-tabs { display:flex; flex-wrap:nowrap; width:calc(100% - 28px); max-width:calc(100% - 28px); overflow-x:auto; overflow-y:hidden; -webkit-overflow-scrolling:touch; scrollbar-width:thin; margin:0 14px 12px; }
#protect .case-tabs button { flex:none; white-space:nowrap; }

#sense, #flow, #protect { scroll-margin-top: 80px; }
