/* V6.6 — integrated geology; complete warm-light theme. */
/* These pockets occupy explicitly reserved background space; no sprite touches a clip edge. */
body[data-v66] .v66-geology-section{position:relative!important;isolation:isolate;padding-bottom:clamp(142px,13vw,190px)!important;overflow:visible!important}
body[data-v66] .v66-geology-section>.wrap{position:relative;z-index:2}
.v66-geology-pocket{position:absolute;z-index:1;bottom:14px;left:max(34px,calc((100% - 1320px)/2));right:max(34px,calc((100% - 1320px)/2));height:clamp(108px,11vw,158px);display:flex;align-items:flex-end;justify-content:flex-start;gap:clamp(8px,2vw,28px);pointer-events:none;isolation:isolate;overflow:visible}
.v66-geology-pocket[data-align=right]{justify-content:flex-end}.v66-geology-pocket[data-align=split]{justify-content:space-between}.v66-geology-pocket[data-align=left]{padding-left:clamp(0px,7vw,112px)}.v66-geology-pocket[data-align=right]{padding-right:clamp(0px,6vw,96px)}
body[data-v66] .v66-ore{position:relative;display:block;flex:0 1 var(--rock-size,155px);width:var(--rock-size,155px);max-width:calc((100% - 12px)/2);height:auto;aspect-ratio:396/324;border:0!important;padding:0!important;margin:0 0 var(--rock-shift,0px)!important;background:none!important;box-shadow:none!important;overflow:visible!important;isolation:isolate;pointer-events:none;line-height:0}
.v66-ore:before{content:'';position:absolute;z-index:-1;bottom:8%;left:5%;width:90%;height:16%;background:radial-gradient(ellipse,#06050970,transparent 72%);filter:blur(3px);pointer-events:none}.v66-ore img{display:block!important;width:100%!important;height:auto!important;max-width:none!important;max-height:none!important;object-fit:contain!important;transform:scaleX(var(--rock-flip,1));image-rendering:pixelated;filter:drop-shadow(0 0 7px #ff791023);margin:0!important;transition:filter .25s}
body[data-v66] .v66-discovery{pointer-events:auto;cursor:pointer}.v66-discovery:hover img,.v66-discovery[aria-pressed=true] img{filter:brightness(1.16) drop-shadow(0 0 10px #ff7b3d55)}.v66-discovery:focus-visible{outline:2px solid var(--accent-ink)!important;outline-offset:3px}.v66-marker{position:absolute;right:9%;top:15%;display:grid;place-items:center;width:19px;height:19px;border:1px solid #c37a3d;background:#31241c;color:#ffba78;font:700 12px/1 monospace;opacity:.8;pointer-events:none}.v66-discovery[aria-pressed=true] .v66-marker{background:#ee7a21;color:#201208;opacity:1}
html[data-theme=light] .v66-ore:before{background:radial-gradient(ellipse,#77645255,transparent 72%)}html[data-theme=light] .v66-marker{background:#fff8ee;color:#8d3908;border-color:#bd764a}
@media(max-width:760px){body[data-v66] .v66-geology-section{padding-bottom:126px!important}.v66-geology-pocket{height:100px;left:27px;right:19px;bottom:12px;gap:8px;padding:0!important}.v66-geology-pocket[data-align=split]{justify-content:space-around}body[data-v66] .v66-ore{width:clamp(82px,29vw,125px);flex:0 1 clamp(82px,29vw,125px);max-width:calc((100% - 8px)/2)}.v66-marker{width:16px;height:16px;font-size:10px}}
@media(max-width:380px){.v66-geology-pocket{left:25px;right:14px}.v66-geology-pocket:has(.v66-ore:nth-child(3)) .v66-ore{flex-basis:29%;max-width:29%}}
/* Light mode is a first-class theme, including cinematic areas. No dark tokens inherited from the old stage selectors. */
html[data-theme=light] body[data-v66]{--bg:#f6f2ea;--surface:#fffcf6;--panel:#eee7dc;--raised:#e6dbcd;--ink:#292521;--muted:#514943;--dim:#70625a;--line:#d2c3b3;--line-strong:#aa9784;--accent:#ef700c;--accent-ink:#9b3d06;--accent-soft:#f8e2ce;--gold:#87500c;--header:#f7f3ec;--on-accent:#21140a;--shadow:0 15px 40px #58412b16;--forge-paper:#f6f2ea;--forge-dark:#f6f2ea;--forge-panel:#eee7dc;--forge-line:#c8b7a5;--hero-wash:radial-gradient(ellipse at 72% 52%,#efbe9160,transparent 56%),linear-gradient(140deg,#fffcf6,#ede2d3);--stage-wash:radial-gradient(ellipse,#ffb36c38,transparent 64%);color-scheme:light}
html[data-theme=light] body[data-v66] :is(.hero-forge-v51,.v6-dark,.v6-finale,.v6-simple-hero,.v6-solution-hero,.v62-network){--bg:#f6f2ea;--surface:#fffcf6;--panel:#eee7dc;--raised:#e6dbcd;--ink:#292521;--muted:#514943;--dim:#70625a;--line:#d2c3b3;--line-strong:#aa9784;--accent:#ef700c;--accent-ink:#9b3d06;--accent-soft:#f8e2ce;--gold:#87500c;--on-accent:#21140a;--header:#f7f3ec;--hero-wash:radial-gradient(ellipse at 72% 52%,#efbe9160,transparent 56%),linear-gradient(140deg,#fffcf6,#ede2d3);--stage-wash:radial-gradient(ellipse,#ffb36c38,transparent 64%);color-scheme:light;color:var(--ink)!important}
html[data-theme=light] body[data-v66] .hero-forge-v51{background:#f7f2e9!important;border-color:#cbb9a8!important}
html[data-theme=light] body[data-v66] .hero-forge-v51 .hero-sky{background:radial-gradient(ellipse at 73% 50%,#ffc08185 0%,#f7e0c8 27%,transparent 65%),linear-gradient(135deg,#fffcf6,#e9dece)!important}
/* Real dark obsidian in the artwork remains dark; the wash transitions it into the light page. */
html[data-theme=light] body[data-v66] .hero-forge-v51 .hero-bg{opacity:.20!important;mask-image:linear-gradient(to top,#0009 0%,#0005 35%,transparent 100%)!important}
html[data-theme=light] body[data-v66] .hero-forge-v51 .hero-grid-overlay{background:linear-gradient(90deg,#fffaf1f5 0%,#fffaf1bd 34%,transparent 66%),linear-gradient(180deg,#fffaf14a,transparent 28%,transparent 75%,#f6f2ea)!important}
html[data-theme=light] body[data-v66] .hero-forge-v51 h1{color:var(--ink)!important;text-shadow:none!important}html[data-theme=light] body[data-v66] .hero-forge-v51 h1 .hot{color:#c64e08!important;text-shadow:none!important}
html[data-theme=light] body[data-v66] .hero-forge-v51 :is(.hero-description,.hero-meta-v4,.hero-footer,.stage-caption,.v51-stage-coordinates){color:var(--muted)!important;text-shadow:none!important}
html[data-theme=light] body[data-v66] .hero-forge-v51 .stage-caption b{color:#93400d!important}html[data-theme=light] body[data-v66] .hero-forge-v51 .stage-aura{mix-blend-mode:multiply;background:radial-gradient(ellipse,#ff9c5140,transparent 62%)!important}
html[data-theme=light] body[data-v66] .hero-forge-v51 .v51-offer{background:#fffcf3dd!important;border-color:#c6b4a2!important;box-shadow:0 12px 28px #76533a13!important}html[data-theme=light] body[data-v66] .hero-forge-v51 .v51-offer :is(h2,p,li){color:var(--ink)!important}html[data-theme=light] body[data-v66] .hero-forge-v51 .v51-offer :is(b,.v51-offer-tag){color:var(--accent-ink)!important}
html[data-theme=light] body[data-v66] .hero-forge-v51 .hero-cta .secondary{background:#fffaf1!important;color:var(--ink)!important;border-color:var(--line-strong)!important}
html[data-theme=light] body[data-v66] .hero-forge-v51 .motion-toggle{background:#fffaf1!important;color:var(--ink)!important;border-color:var(--line-strong)!important}
html[data-theme=light] body[data-v66] .hero-forge-v51 .core-object{filter:drop-shadow(0 15px 20px #65432833) drop-shadow(0 0 28px #f75b0338)!important}
html[data-theme=light] body[data-v66] :is(.v6-dark,.v6-simple-hero,.v6-solution-hero,.v6-finale){background:radial-gradient(ellipse at 88% 9%,#f1d5b96b,transparent 52%),linear-gradient(125deg,#f9f5ed,#eee5da)!important;border-color:var(--line)!important}
html[data-theme=light] body[data-v66] :is(.v6-dark,.v6-simple-hero,.v6-solution-hero,.v6-finale) :is(h1,h2,h3){color:var(--ink)!important}
html[data-theme=light] body[data-v66] :is(.v6-dark,.v6-simple-hero,.v6-solution-hero,.v6-finale) p{color:var(--muted)!important}
html[data-theme=light] body[data-v66] :is(.v6-dark,.v6-simple-hero,.v6-solution-hero,.v6-finale) .eyebrow{color:var(--accent-ink)!important}
html[data-theme=light] body[data-v66] .v62-network{background:radial-gradient(ellipse at 50% 48%,#f1d7bc,#f7f1e8 55%,#eee5d9)!important;box-shadow:inset 0 0 45px #a9896720!important;border-color:var(--line-strong)!important}
html[data-theme=light] body[data-v66] .v62-module-stage{background:linear-gradient(150deg,#fffcf6,#eee4d7)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme=light] body[data-v66] .v62-network button[data-module]{background:linear-gradient(140deg,#fffdf6,#e8ddcf)!important;border-color:#a89583!important;color:#52473d!important;box-shadow:inset 0 0 0 4px #e8ddce,0 5px 0 #c5b3a0!important}
html[data-theme=light] body[data-v66] .v62-network button[data-module][aria-pressed=true]{background:linear-gradient(140deg,#ffe2bf,#efba86)!important;color:#743208!important;border-color:#b95717!important;box-shadow:inset 0 0 0 4px #f4d2b0,0 0 15px #f28e4645!important}
html[data-theme=light] body[data-v66] .v62-network button[data-module].v62-visited-node:not([aria-pressed=true]){border-color:#bd7547!important;color:#894314!important}
html[data-theme=light] body[data-v66] .v62-network :is(.v62-node-number,.v62-node-title,.v62-network-hint,.v62-center span){color:#645348!important}
html[data-theme=light] body[data-v66] .v62-network button[aria-pressed=true] :is(.v62-node-number,.v62-node-title){color:#743208!important}
html[data-theme=light] body[data-v66] .v62-pipe-shell{stroke:#b2a08d!important}html[data-theme=light] body[data-v66] .v62-pipe-rim{stroke:#d7c7b6!important}html[data-theme=light] body[data-v66] .v62-pipe-inner{stroke:#a58d76!important}
html[data-theme=light] body[data-v66] .v62-pipes>path[fill="#1b191c"]{fill:#d8c5b2!important;stroke:#b5a08b!important}
html[data-theme=light] body[data-v66] :is(.v63-journey,.v63-case-explorer,.v63-case-flow,.v61-case-view,.v61-principles-grid article,.v63-reward,.v6-field-guide,.v6-stepper,.v6-project-explorer,.v6-nfc-demo){background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line-strong)!important}
html[data-theme=light] body[data-v66] :is(.v63-journey-copy,.v63-case-notes,.v63-case-flow,.v63-reward,.v6-field-guide,.v61-founder-sig,.v61-manifest-art) :is(h2,h3,b,p,summary){color:var(--ink)!important}
html[data-theme=light] body[data-v66] .v63-scene{background:radial-gradient(ellipse at 50% 54%,#efcfac,#f5ebdf 56%,#ede3d7)!important}
html[data-theme=light] body[data-v66] .v63-reward.complete{background:#f9e3cd!important;border-color:#d27b3a!important}
html[data-theme=light] body[data-v66] .v63-reward-nodes i.on{background:#ef790f!important;border-color:#b65b23!important}
html[data-theme=light] body[data-v66] .v6-paper .v63-reward :is(h3,p){color:var(--ink)!important}
/* Preserve fixed brand action and the primary action's high contrast. */
html[data-theme=light] body[data-v66] .btn:not(.secondary):not(.outline):not(.ghost){background:var(--accent)!important;color:#1e140a!important;border-color:#d75e0b!important}
html[data-theme=light] body[data-v66] .v6-whatsapp{background:#193a28!important;color:#fff!important;border-color:#57ab73!important}
/* Keep each embedded template's own palette; theme only changes its surrounding shell. */
html[data-theme=light] body[data-v66] .v63-template{color:var(--ink);background:var(--paper)}
html[data-theme=light] body[data-v66] .v63-template :is(h2,h3,p,b,small,label,span){color:inherit!important}
@media(max-width:740px){html[data-theme=light] body[data-v66] .hero-forge-v51 .hero-sky{background:radial-gradient(ellipse at 50% 66%,#ffc58c75,transparent 60%),#f7f2e9!important}html[data-theme=light] body[data-v66] .hero-forge-v51 .hero-grid-overlay{background:linear-gradient(180deg,#fffaf1e0,transparent 55%,#f6f2ea)!important}}
@media(prefers-reduced-motion:reduce){.v66-ore img{transition:none!important}}
/* Local geological bed: an irregular, faded patch instead of the old full-width floor strip. */
.v66-ore:before{bottom:5%;left:-5%;width:110%;height:35%;background:url('ground-dark.svg') center bottom/100% 100% no-repeat;filter:none}
html[data-theme=light] .v66-ore:before{background:url('ground-light.svg') center bottom/100% 100% no-repeat;filter:none}
.v66-marker{opacity:.62;border-color:transparent;background:transparent;color:var(--accent-ink);transition:opacity .2s}.v66-discovery:hover .v66-marker,.v66-discovery:focus-visible .v66-marker,.v66-discovery[aria-pressed=true] .v66-marker{opacity:1;border-color:var(--accent);background:var(--surface);color:var(--accent-ink)}html[data-theme=light] .v66-marker{background:transparent;border-color:transparent;color:#9b3d06}
/* Desktop: a layout-aware placement may use actual free space instead of a footer pocket. */
@media(min-width:901px){body[data-v66] .v66-geology-section.v66-fit{padding-bottom:var(--v66-normal-pad,95px)!important}.v66-geology-pocket.v66-fit-pocket{inset:0;width:100%;height:100%;padding:0!important;display:block;pointer-events:none}.v66-fit-pocket .v66-ore{position:absolute!important;left:var(--v66-x)!important;top:var(--v66-y)!important;bottom:auto!important;width:var(--v66-w)!important;max-width:none!important;margin:0!important}}
/* The original artwork is fully visible, with a legible light-stage caption. */
html[data-theme=light] body[data-v66] .hero-forge-v51 .stage-caption{padding:6px 10px;background:#fffaf1e8!important;border:1px solid #d6c4b1;box-shadow:0 4px 12px #55413116!important;bottom:7%;text-shadow:none!important}
@media(min-width:1101px){body[data-v66] .hero-forge-v51 .v51-scene-art{inset:0 -3% -3% -7%}}
/* Fitted discoveries remain clickable above the empty part of a layout, never over occupied content. */
.v66-fit-pocket{z-index:3}
/* Journal's former deliberately dark CTA is a normal themed surface in V6.6. */
html[data-theme=light] body[data-v66] .j64-end-cta{background:#eee4d6!important;color:var(--j-ink)!important;border-top-color:#dc690f!important}
html[data-theme=light] body[data-v66] .j64-end-cta h2{color:var(--j-ink)!important}html[data-theme=light] body[data-v66] .j64-end-cta p{color:var(--j-muted)!important}html[data-theme=light] body[data-v66] .j64-end-cta .j64-kicker{color:var(--j-accent)!important}
html[data-theme=light] body[data-v66] .v62-core-ring{background:#b58b63!important}html[data-theme=light] body[data-v66] .v62-core-ring:before{background:radial-gradient(#f1c8a3,#e7d5c1 72%)!important}
