:root{--verde:#246c4c;--ambar:#91620e;--azul:#285f91;--turquesa:#15756f;--terracota:#a54630;--violeta:#71519d;--gold:#91680b;--mist:#163e35;--haze:#50665b;--moss-line:#c9d7cf}*{box-sizing:border-box}html,body{margin:0;min-width:0}body{font:17px/1.5 'Segoe UI',Arial,sans-serif;color:var(--mist);background:#f8f5eb url('forest-flat.webp') center/cover fixed no-repeat}.frame{position:relative;z-index:2;min-height:100dvh;display:flex;flex-direction:column}header{padding:28px max(8vw,24px) 16px;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;background:linear-gradient(#faf7edee,#faf7ed00)}.eyebrow{font-size:14px;letter-spacing:.08em;text-transform:uppercase}h1{font:700 clamp(34px,4.5vw,64px)/1.15 Georgia,serif;margin:8px 0}.brand p{font:24px Georgia,serif;margin:0}button{font:600 16px 'Segoe UI',sans-serif;border:1px solid #aebdaf;border-radius:30px;background:#fffdf4;color:var(--mist);min-height:48px;padding:12px 20px;cursor:pointer;touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid #ab760c;outline-offset:4px}.stage{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.85fr) minmax(0,1fr);grid-template-rows:repeat(3,minmax(104px,1fr));gap:22px 5%;width:82%;max-width:1500px;margin:30px auto 140px;flex:1;align-content:center}.node{position:relative!important;left:auto!important;top:auto!important;transform:none!important;z-index:2;text-decoration:none;color:inherit;min-width:0}.node[data-id=n1]{grid-area:1/1}.node[data-id=n2]{grid-area:2/1}.node[data-id=n5]{grid-area:3/1}.node[data-id=n6]{grid-area:1/3}.node[data-id=n3]{grid-area:2/3}.node[data-id=n4]{grid-area:3/3}.node-inner{display:block;height:100%}.card{display:grid;grid-template-columns:56px 1fr 18px;grid-template-rows:auto auto;gap:4px 16px;align-content:center;align-items:center;height:100%;padding:18px;border:1px solid #cdb77c;border-radius:16px;background:#fffcf3;box-shadow:0 4px 12px #123e3520;transition:transform .2s}.node:hover .card{transform:translateY(-3px)}.card h3{font:700 clamp(18px,1.5vw,23px)/1.25 Georgia,serif;margin:0;grid-column:2;grid-row:1}.tag{font-size:15px;line-height:1.3;color:#49645b;grid-column:2;grid-row:2}.ico{width:56px;height:56px;border-radius:50%;background:#e6ebd1;display:grid;place-items:center;grid-row:1/3;grid-column:1}.ico svg{width:30px;height:30px}.go{grid-row:1/3;grid-column:3;color:#a17a16}.go svg{width:20px;height:20px}svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}.core{grid-area:1/2/4/3;align-self:center;text-align:center;z-index:2}.core img{display:block;width:100%;background:white;border-radius:12px;padding:10px;box-shadow:0 3px 16px #123e3520}.name{font:700 32px Georgia,serif;margin-top:16px}.sub{font:19px Georgia,serif;background:#fbf8e8d9;border-radius:20px;padding:5px}.name{color:#fffdf2;text-shadow:0 2px 4px #163e35}#links{position:absolute;inset:0;width:100%;height:100%;z-index:0;overflow:visible}.path{stroke-width:2;opacity:.7}.secondary{display:none}.flow{stroke-width:3;stroke-dasharray:5 90;opacity:.8}@keyframes drift{to{stroke-dashoffset:-190}}footer{margin-top:auto;text-align:center;background:#faf8efed;font-size:14px;padding:14px 20px}#fauna{position:fixed;inset:0;pointer-events:none;z-index:1;overflow:hidden}.animal{position:absolute;background-image:url('wildlife-atlas.webp');background-size:400% 500%;background-repeat:no-repeat;will-change:transform;width:150px;height:150px}.resource-modal{border:1px solid #c9d7cf;border-radius:18px;width:min(500px,calc(100% - 24px));padding:0;max-height:calc(100dvh - 24px);overflow:auto;color:var(--mist);background:#fffdf5}.resource-modal::backdrop{background:#163e3580;backdrop-filter:blur(3px)}.modal-content{padding:30px}.modal-close{position:absolute;top:12px;right:12px;width:48px;padding:0;font-size:28px}.modal-category{padding-right:48px;color:#637453;font-size:14px}.resource-modal h2{font:700 28px/1.25 Georgia,serif;margin:20px 0}.modal-description{font-size:18px}.modal-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:24px}.modal-open{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:12px 20px;background:#16483b;color:white;text-decoration:none;border-radius:26px;font-weight:600}.modal-back{min-height:50px}@media(max-width:1100px){body{background:#f7f5ed}.stage{width:calc(100% - 40px);grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;gap:16px;margin:24px auto}.core{grid-area:auto;grid-column:1/-1;max-width:320px;justify-self:center;margin-bottom:12px}.core .name{color:var(--mist);text-shadow:none}.node[data-id]{grid-area:auto}#links,#fauna,#pauseFauna{display:none}header{padding:24px 20px 0}.card{min-height:120px}.brand p{font-size:22px}}@media(max-width:650px){.stage{grid-template-columns:1fr;width:calc(100% - 32px)}h1{font-size:34px}.eyebrow{font-size:12px;letter-spacing:.035em}.card{padding:18px 14px;grid-template-columns:48px 1fr 18px;gap:4px 12px}.ico{width:48px;height:48px}.card h3{font-size:21px}.tag{font-size:16px}.core img{max-width:280px}.core .name,.core .sub{display:none}.modal-content{padding:24px 20px}.modal-actions{flex-direction:column-reverse}.modal-actions>*{width:100%}footer{font-size:13px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* Keep the entire landscape visible and align fauna in its coordinates. */
@media(min-width:1101px){body{background-size:100% 100%;background-position:center;}.stage{margin-bottom:175px;margin-top:24px}header{background:none;padding-top:26px}.brand{background:#faf7eddb;padding:12px 22px;border-radius:14px}.brand h1{font-size:clamp(34px,3.8vw,58px)}.animal{background-image:url('wildlife-atlas.webp');}.animal.torogoz{background-image:url('torogoz-perched.webp');background-size:400% 100%;}}
@media(min-width:1101px) and (max-height:750px){header{padding-top:12px}.brand h1{font-size:34px}.brand p{font-size:20px}.brand{padding:8px 16px}.stage{gap:14px 4%;margin-top:14px;margin-bottom:130px;grid-template-rows:repeat(3,minmax(86px,1fr))}.card{padding:12px}.card h3{font-size:19px}.tag{font-size:14px}.ico{width:44px;height:44px}.card{grid-template-columns:44px 1fr 18px}.name{font-size:26px}.sub{font-size:16px}}

/* Inset landscape inside a continuous white frame. */
@media(min-width:1101px){body{padding:20px;background:#fff;}body::before{content:"";position:fixed;inset:20px;border:6px solid white;border-radius:16px;background:#f8f5eb url('forest-flat.webp') center/100% 100% no-repeat;box-shadow:0 0 0 1px #d9e1d8;z-index:0;pointer-events:none}.frame{min-height:calc(100dvh - 40px)}#fauna{inset:26px;border-radius:10px}.stage{width:84%;margin-bottom:160px}footer{border-radius:0 0 10px 10px;margin:0 6px 6px;margin-top:auto}.animal.stalker{background-image:url('tigrillo-stalking.webp');background-size:100% 100%;transition:opacity .35s ease,transform .35s ease}.stalker-leaves{position:absolute;width:162px;height:126px;background:url('stalking-leaves.webp') center/contain no-repeat;pointer-events:none;z-index:2}}

/* Saturated, luminous resource connections against the forest. */
#links .path{stroke-width:3.5;opacity:1;filter:drop-shadow(0 0 3px currentColor) drop-shadow(0 0 7px currentColor)}#links .flow{stroke:#fffbd7!important;stroke-width:3.5;opacity:1;stroke-dasharray:8 100;filter:drop-shadow(0 0 4px currentColor)}

/* Axis colors restored; no outer white outline. */
:root{--rosa:#ba397b} .node .card{border-color:var(--ac);border-left:4px solid var(--ac)}.node .ico{color:var(--ac);background:color-mix(in srgb,var(--ac) 13%,#fffdf3)}.node .go{color:var(--ac)}.node .tag{color:var(--ac)}
@media(min-width:1101px){body::before{border:0;box-shadow:none}.frame{min-height:calc(100dvh - 40px)}#fauna{inset:20px}.stage{grid-template-rows:repeat(4,minmax(85px,1fr));margin-bottom:135px;gap:14px 4%}.core{grid-area:1/2/5/3}.node[data-id=n7]{grid-area:4/1}.node[data-id=n4]{grid-area:3/3/5/4;align-self:start}.card{padding:14px}.card h3{font-size:clamp(18px,1.5vw,22px)}.core img{padding:8px}footer{margin-left:0;margin-right:0;margin-bottom:0}}
@media(min-width:1101px) and (max-height:750px){.stage{grid-template-rows:repeat(4,minmax(70px,1fr));gap:10px 4%;margin-bottom:105px}.card{padding:10px}.card h3{font-size:18px}.tag{font-size:13px}}
@media(min-width:1101px){body{padding:0}body::before{inset:0;border-radius:0}.frame{min-height:100dvh}#fauna{inset:0;border-radius:0}footer{border-radius:0}}

/* Twelve flight poses and a continuously rotating tail, anchored at feet. */
.animal.smooth-flight{background-image:url('birds-smooth-v2.webp');background-size:600% 400%}.motmot-body,.motmot-tail{position:absolute;inset:0;display:block;background:url('torogoz-perched.webp') 33.333333% 0/400% 100% no-repeat}.motmot-body{clip-path:inset(0 0 49% 0)}.motmot-tail{clip-path:inset(51% 0 0 0);transform-origin:50% 51%;will-change:transform}.animal.stalker{transition:none!important}

/* Six resources: project information, coordination and monitoring on the left. */
@media(min-width:1101px){.stage{grid-template-rows:repeat(3,minmax(85px,1fr))}.core{grid-area:1/2/4/3}.node[data-id=n6]{grid-area:1/1}.node[data-id=n1]{grid-area:2/1}.node[data-id=n3]{grid-area:3/1}.node[data-id=n4]{grid-area:1/3;align-self:stretch}.node[data-id=n2]{grid-area:2/3}.node[data-id=n7]{grid-area:3/3}}
@media(min-width:1101px) and (max-height:750px){.stage{grid-template-rows:repeat(3,minmax(70px,1fr))}}


/* Complete anatomical flight frames: both wings belong to each pose. */
.motmot-complete-frame{position:absolute;left:0;top:0;display:block;background-image:url('torogoz-flight-complete.webp');background-repeat:no-repeat}
