/* Methods page: scroll-driven brain stage in the French navy, blue and red. */
.m-stage{position:relative;background:radial-gradient(circle at 72% 22%,rgba(49,95,142,.42),transparent 46rem),radial-gradient(circle at 30% 90%,rgba(190,74,74,.14),transparent 38rem),#081a2b;color:#f4f7fb}
.m-sticky{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden}
.m-sticky canvas{display:block;width:100%;height:100%;opacity:0;transition:opacity .9s ease}
.m-ready .m-sticky canvas{opacity:1}
.m-lines,.m-labels{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.m-lines line{stroke:rgba(255,255,255,.55);stroke-width:1}
.m-lines circle{fill:#fff}
.m-label{position:absolute;top:0;left:0;padding:5px 11px;border:1px solid rgba(255,255,255,.28);border-radius:999px;background:rgba(8,26,43,.8);color:#fff;font-size:.82rem;font-weight:650;line-height:1.25;white-space:nowrap;opacity:0;will-change:transform,opacity}
.m-progress{position:absolute;top:50%;right:18px;width:2px;height:180px;overflow:hidden;border-radius:2px;background:rgba(255,255,255,.18);transform:translateY(-50%)}
.m-progress i{display:block;width:100%;height:100%;background:#ef6a6a;transform:scaleY(0);transform-origin:top}

.m-steps{position:relative;z-index:2;margin-top:-100vh;margin-top:-100svh;padding:0 clamp(16px,5vw,72px);pointer-events:none}
.m-step{box-sizing:border-box;display:flex;align-items:center;min-height:125vh;min-height:125svh}
.m-card{width:min(100%,29rem);padding:clamp(22px,2.6vw,32px);border:1px solid rgba(255,255,255,.14);border-radius:var(--radius-md);background:rgba(10,31,51,.82);backdrop-filter:blur(10px);opacity:.28;transform:translateY(22px);transition:opacity .45s ease,transform .45s ease;pointer-events:auto}
.m-step.is-active .m-card{opacity:1;transform:none}
.m-step--hero .m-card{width:min(100%,36rem);border:0;background:none;backdrop-filter:none;padding-left:0}
.m-kicker{margin:0 0 12px;color:#f2a7a7;font-size:.86rem;font-weight:700;line-height:1.3}
.m-card h1,.m-card h2{margin:0;color:#fff;font-family:var(--display);font-weight:600;letter-spacing:-.03em}
.m-card h1{font-size:clamp(2.5rem,5vw,4.4rem);line-height:1.04}
.m-card h2{font-size:clamp(1.7rem,2.8vw,2.35rem);line-height:1.12}
.m-card p{margin:14px 0 0;color:rgba(244,247,251,.82);font-size:1.03rem;line-height:1.6}
.m-class{margin-top:18px!important;padding-top:14px;border-top:1px solid rgba(255,255,255,.16);color:#fff!important}
.m-class b{display:block;margin-bottom:3px;color:#9cc6ee;font-size:.82rem;font-weight:700}
.m-card .m-note{margin-top:12px;color:rgba(244,247,251,.62);font-size:.84rem;line-height:1.45}
.m-areas{display:flex;flex-wrap:wrap;gap:6px;margin:16px 0 0;padding:0;list-style:none}
.m-areas li{padding:3px 10px;border:1px solid rgba(255,255,255,.2);border-radius:999px;color:rgba(255,255,255,.86);font-size:.78rem;line-height:1.5}
.m-cue{display:inline-flex;align-items:center;gap:10px;margin-top:26px;color:rgba(255,255,255,.75);font-size:.92rem}
.m-cue i{display:block;width:1px;height:36px;background:linear-gradient(#fff,transparent);animation:m-cue 1.8s ease-in-out infinite;transform-origin:top}
@keyframes m-cue{0%{transform:scaleY(0)}60%,100%{transform:scaleY(1)}}

.m-lab-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:18px}
.m-lab-buttons button{min-height:48px;padding:8px 12px;border:1px solid rgba(255,255,255,.28);border-radius:14px;background:rgba(255,255,255,.05);color:#fff;font:inherit;font-size:.95rem;font-weight:600;cursor:pointer}
.m-lab-buttons button:hover{border-color:#ef8f8f}
.m-lab-buttons button[aria-pressed="true"]{border-color:#be4a4a;background:#be4a4a}
.m-lab-buttons button:focus-visible{outline:2px solid #fff;outline-offset:2px}
.m-lab-result{margin-top:16px!important;color:#fff!important;font-weight:650}
.m-lab-result span{color:#f2a7a7;font-size:1.3em}
.m-region-names{display:none}

.m-after{padding-block:clamp(56px,8vw,96px)}
.m-after-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:clamp(32px,6vw,80px);align-items:start}
.m-after h2{margin:0 0 14px;font-size:clamp(1.8rem,3.4vw,2.8rem);line-height:1.1}
.m-after p{color:var(--muted);line-height:1.65}
.m-source-note{font-size:.92rem}
.m-after .actions{margin-top:20px}

html[lang="si"] .m-card h1,html[lang="si"] .m-card h2,html[lang="si"] .m-after h2{letter-spacing:0;line-height:1.3}
html[lang="si"] .m-card h1{font-size:clamp(2.1rem,4.2vw,3.5rem)}

.m-no3d .m-sticky{display:none}
.m-no3d .m-steps{margin-top:0;padding-block:40px}
.m-no3d .m-step{min-height:0;padding-block:12px}
.m-no3d .m-card{opacity:1;transform:none;width:min(100%,44rem)}
.m-no3d .m-lab-buttons,.m-no3d .m-lab-result{display:none}

@media(max-width:759px){
  .m-step{align-items:flex-end;min-height:130vh;min-height:130svh;padding-bottom:104px}
  .m-step--hero{min-height:100vh;min-height:100svh}
  .m-steps{padding:0 12px}
  .m-card{width:100%;padding:18px;background:rgba(10,31,51,.93)}
  .m-step--hero .m-card{padding:18px 4px;background:none}
  .m-card h1{font-size:clamp(2.1rem,10vw,2.9rem)}
  .m-card h2{font-size:1.5rem}
  .m-card p{margin-top:10px;font-size:.97rem;line-height:1.5}
  .m-class{margin-top:12px!important;padding-top:10px}
  .m-areas{display:none}
  .m-label{padding:3px 8px;font-size:.72rem}
  .m-progress{right:6px;height:110px;top:30%}
  .m-after-grid{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  .m-card,.m-sticky canvas{transition:none}
  .m-cue i{animation:none}
}

/* Animated card illustrations; each plays only while its card is in view. */
.m-art{display:block;width:100%;max-width:240px;height:92px;margin:0 0 14px;overflow:visible;color:#fff}
.m-art *{animation-play-state:paused}
.m-step.is-active .m-art *{animation-play-state:running}
.m-art text{fill:#fff;font:600 10.5px var(--body);text-anchor:middle}
.m-art text.big{font-size:26px}
.m-art .a-fill{fill:#9cc6ee}
.m-art .a-stroke{fill:none;stroke:#9cc6ee;stroke-width:6;stroke-linecap:round;stroke-linejoin:round}
.m-art .a-thin{fill:none;stroke:rgba(156,198,238,.55);stroke-width:2.5}
.m-art .a-block{fill:rgba(49,95,142,.55);stroke:#9cc6ee;stroke-width:2}
.m-art .a-arc{fill:none;stroke:#ef8f8f;stroke-width:4;stroke-linecap:round;animation:a-fade 1.6s ease-in-out infinite}
.m-art .d1{animation-delay:.18s}.m-art .d2{animation-delay:.36s}.m-art .d3{animation-delay:.54s}.m-art .d4{animation-delay:.72s}.m-art .d5{animation-delay:.9s}
.a-lines path{fill:none;stroke:rgba(156,198,238,.6);stroke-width:2;stroke-dasharray:6 6;animation:a-dash 1.2s linear infinite}
.a-node{fill:#ef6a6a;transform-box:fill-box;transform-origin:center;animation:a-pulse 1.8s ease-in-out infinite}
.a-hand{transform-box:view-box;transform-origin:120px 104px;animation:a-wave 1.6s ease-in-out infinite}
.a-bars rect{fill:#ef8f8f;transform-box:fill-box;transform-origin:center;animation:a-eq 1s ease-in-out infinite alternate}
.a-c1{animation:a-in-l 3.4s ease-in-out infinite}.a-c3{animation:a-in-r 3.4s ease-in-out infinite}
.a-merge{fill:none;stroke:#ef8f8f;stroke-width:2.5;opacity:0;animation:a-merge 3.4s ease-in-out infinite}
.a-spin{transform-box:fill-box;transform-origin:center;animation:a-rot 2.2s linear infinite}
.a-card{transform-box:fill-box;transform-origin:center;animation:a-pop 3.6s ease-in-out infinite;opacity:.25}
.a-card.d1{animation-delay:.35s}.a-card.d2{animation-delay:1s}.a-card.d3{animation-delay:2s}
.a-step{transform-box:fill-box;transform-origin:bottom;animation:a-grow 4s ease-out infinite}
.a-step.d1{animation-delay:.25s}.a-step.d2{animation-delay:.5s}.a-step.d3{animation-delay:.75s}.a-step.d4{animation-delay:1s}
.a-climb{fill:#ef6a6a;animation:a-climb 4s ease-in-out infinite}
.m-art .a-line-text{font-size:14px;text-anchor:start}
.a-blank{fill:none;stroke:#9cc6ee;stroke-width:2;stroke-dasharray:5 4}
.m-art .a-q{font-size:24px;fill:#ef8f8f;animation:a-q 3.6s ease-in-out infinite}
.m-art .a-answer{font-size:15px;fill:#fff;opacity:0;animation:a-a 3.6s ease-in-out infinite}
.a-bubble{fill:rgba(49,95,142,.55);stroke:#9cc6ee;stroke-width:2}
.a-bars.small rect{fill:#ef8f8f}
.a-laugh{transform-box:fill-box;transform-origin:center bottom;animation:a-laugh .55s ease-in-out infinite alternate}
.a-face{fill:rgba(49,95,142,.6);stroke:#9cc6ee;stroke-width:3}
.a-mouth{fill:#ef6a6a}
.a-heart{fill:#ef6a6a;transform-box:fill-box;transform-origin:center;animation:a-beat 1.1s ease-in-out infinite}
.a-sw{animation:a-sw 2.8s ease-in-out infinite}.a-s2{animation-delay:-1.4s}
.a-arrows{fill:none;stroke:#ef8f8f;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.a-track{fill:none;stroke:rgba(255,255,255,.18);stroke-width:12;stroke-linecap:round}
.a-gauge{fill:none;stroke:#ef6a6a;stroke-width:12;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:100;animation:a-gauge 4s ease-in-out infinite}
.a-needle{transform-box:view-box;transform-origin:120px 92px;animation:a-needle 4s ease-in-out infinite}
@keyframes a-fade{0%,100%{opacity:.15}50%{opacity:1}}
@keyframes a-dash{to{stroke-dashoffset:-24}}
@keyframes a-pulse{0%,100%{transform:scale(.72);opacity:.65}50%{transform:scale(1.14);opacity:1}}
@keyframes a-wave{0%,100%{transform:rotate(-13deg)}50%{transform:rotate(13deg)}}
@keyframes a-eq{from{transform:scaleY(.25)}to{transform:scaleY(1)}}
@keyframes a-in-l{0%,12%{transform:translateX(-10px);opacity:.5}42%,88%{transform:translateX(4px);opacity:1}100%{transform:translateX(-10px);opacity:.5}}
@keyframes a-in-r{0%,12%{transform:translateX(10px);opacity:.5}42%,88%{transform:translateX(-4px);opacity:1}100%{transform:translateX(10px);opacity:.5}}
@keyframes a-merge{0%,40%{opacity:0}54%,88%{opacity:1}100%{opacity:0}}
@keyframes a-rot{to{transform:rotate(360deg)}}
@keyframes a-pop{0%,100%,30%{opacity:.25;transform:none}10%,20%{opacity:1;transform:translateY(-8px)}}
@keyframes a-grow{0%{transform:scaleY(0)}30%,85%{transform:scaleY(1)}100%{transform:scaleY(0)}}
@keyframes a-climb{0%,8%{transform:translate(0,0);opacity:0}14%{opacity:1}30%{transform:translate(40px,-16px)}46%{transform:translate(80px,-32px)}62%{transform:translate(120px,-48px)}78%,88%{transform:translate(160px,-64px);opacity:1}100%{transform:translate(160px,-64px);opacity:0}}
@keyframes a-q{0%,42%{opacity:1}52%,92%{opacity:0}100%{opacity:1}}
@keyframes a-a{0%,46%{opacity:0}58%,92%{opacity:1}100%{opacity:0}}
@keyframes a-laugh{from{transform:rotate(-3deg) translateY(0)}to{transform:rotate(3deg) translateY(-4px)}}
@keyframes a-beat{0%,100%{transform:scale(.86)}35%{transform:scale(1.08)}60%{transform:scale(.94)}}
@keyframes a-sw{0%,100%{opacity:.4}50%{opacity:1}}
@keyframes a-gauge{0%{stroke-dashoffset:100}60%,92%{stroke-dashoffset:0}100%{stroke-dashoffset:100}}
@keyframes a-needle{0%{transform:rotate(0)}60%,92%{transform:rotate(180deg)}100%{transform:rotate(0)}}
@media(max-width:759px){.m-art{float:right;width:128px;height:58px;margin:0 0 4px 10px}}
@media(prefers-reduced-motion:reduce){.m-art *{animation:none!important;opacity:1!important}}

/* Minimal top view, bottom right of the brain. */
.m-top{position:absolute;right:30px;bottom:26px;width:150px;margin:0;pointer-events:none}
.m-top svg{display:block;width:100%;height:auto;overflow:visible}
.m-top-lobe{fill:rgba(156,198,238,.09);stroke:rgba(214,230,246,.55);stroke-width:.018;stroke-linejoin:round}
.m-top-line{fill:none;stroke:rgba(214,230,246,.24);stroke-width:.014;stroke-linecap:round}
.m-top-glow{filter:blur(3px)}
.m-top figcaption{margin-top:6px;color:rgba(244,247,251,.6);font-size:.72rem;line-height:1.3;text-align:center}
@media(max-width:759px){
  .m-top{top:92px;right:18px;bottom:auto;width:62px}
  .m-top figcaption{display:none}
  .m-card .m-note{display:none}
  .m-top-glow{filter:blur(1.5px)}
}

/* The opening screen fills the view, directly below the site header. */
@media(min-width:760px){.m-step--hero{min-height:100vh;min-height:100svh;padding-top:96px}.m-step--hero .m-card{width:min(100%,42vw)}}
