@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('./fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('./fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('./fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('./fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root{--navy:#10263f;--ink:#15334a;--blue:#8abfdf;--pale:#f4f8fb;--line:#dce8f0;--muted:#6c8496;--stage-top:66px;font-family:'DM Sans',Arial,sans-serif;color:var(--ink);background:#f4f8fb}
*{box-sizing:border-box}
html{scroll-behavior:auto}
body{margin:0}
h1,h2,h3,h4,h5,h6,.section-subtitle{hyphens:none;text-wrap:balance}
.heading-phrase{display:inline-block;max-inline-size:100%;text-wrap:balance}
button{font:inherit}
button:focus-visible,a:focus-visible{outline:3px solid #49a6d9;outline-offset:4px}
.skip-link{position:fixed;top:-100px;left:15px;z-index:30;background:#fff;padding:10px 14px;color:var(--navy)}
.skip-link:focus{top:12px}
.site-top{position:fixed;top:0;left:0;right:0;height:var(--stage-top);z-index:20;display:flex;justify-content:space-between;align-items:center;background:rgba(244,248,251,.94);backdrop-filter:blur(18px);border-bottom:1px solid #dce8f0}
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 1.25rem;
  background: var(--pale);
}
.footer-privacy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
}
.footer-privacy button {
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration-line: underline;
  cursor: pointer;
}
.footer-privacy [hidden] { display: none; }
.consent-notice {
  position: fixed;
  z-index: 40;
  inset-inline-end: max(0.75rem, env(safe-area-inset-right));
  inset-block-end: max(0.75rem, env(safe-area-inset-bottom));
  inline-size: min(100% - 1.5rem, 34rem);
  max-block-size: calc(100dvh - 1.5rem - env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem clamp(0.875rem, 3vw, 1.25rem);
  border: 1px solid #a9c4d6;
  border-radius: 0.875rem;
  background: #f9fcfe;
  box-shadow: 0 8px 28px rgba(16, 38, 63, 0.14);
}
.consent-notice h2 { margin: 0 0 0.375rem; font-size: 1rem; }
.consent-notice p { margin: 0; font-size: 0.9375rem; line-height: 1.45; }
.consent-options { display: grid; gap: 0.5rem; margin-top: 0.75rem; }
.consent-options label { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.95rem; line-height: 1.4; }
.consent-options input { flex: 0 0 auto; width: 1.1rem; height: 1.1rem; margin: 0.1rem 0 0; accent-color: var(--blue); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.875rem; padding: 0.25rem; }
.consent-actions button {
  flex: 1 1 10rem;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  color: var(--navy);
  border: 1px solid #5a7d94;
  border-radius: 0.5rem;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}
.consent-actions button:hover { background: #edf6fb; }
.consent-actions [data-choice="all"] {
  color: #fff;
  background: var(--navy);
}
.consent-actions [data-choice="all"]:hover { background: #234967; }
.consent-actions button[hidden] { display: none; }
.brand{display:flex;align-items:center;gap:10px;font:800 22px/1 'Manrope',sans-serif;letter-spacing:-.075em;color:var(--navy)}
.brand-mark{display:flex;align-items:flex-end;gap:3px;height:18px;transform:skew(-12deg)}
.brand-mark i{display:block;width:4px;background:var(--blue);border-radius:2px}.brand-mark i:nth-child(1){height:8px}.brand-mark i:nth-child(2){height:13px}.brand-mark i:nth-child(3){height:18px}
.story-track{height:650svh;min-height:3300px;position:relative;background:radial-gradient(circle at 83% 10%,#eaf4f8 0,transparent 43%),#f4f8fb}
.stage{position:sticky;top:0}
.stage-shell{height:100%;max-width:1570px;margin:0 auto;padding:calc(var(--stage-top) + 24px) clamp(18px,4.2vw,70px) 23px;display:flex;flex-direction:column;gap:14px}
.stage-head{display:flex;align-items:center;justify-content:center;flex:none;min-height:20px;text-align:center}
.eyebrow,.chapter-count{font-size:10px;letter-spacing:.18em;font-weight:800;color:#52748a}
.eyebrow{display:flex;align-items:center;gap:11px}.eyebrow-line{width:24px;height:1px;background:#6eabc9}
.chapter-count{font-family:'Manrope',sans-serif;font-size:12px;color:var(--navy)}.slash{color:#9cb3c2;font-weight:400}
.story-grid{min-height:0;flex:1;display:grid;grid-template-columns:minmax(0,1.33fr) minmax(340px,.8fr);gap:clamp(24px,4vw,74px);align-items:stretch}
.visual{position:relative;isolation:isolate;min-width:0;min-height:0;overflow:hidden;border-radius:17px;background:radial-gradient(circle at 50% 54%,#234967 0%,#173752 35%,#10263f 77%);box-shadow:0 24px 70px rgba(19,47,71,.15),inset 0 1px 0 rgba(255,255,255,.16);color:#e4f1f8}
.visual:after{content:'';position:absolute;inset:0;border:1px solid rgba(178,216,239,.18);border-radius:17px;pointer-events:none;z-index:8}
.visual-top,.visual-bottom{position:absolute;left:clamp(18px,2.5vw,34px);right:clamp(18px,2.5vw,34px);display:flex;justify-content:space-between;align-items:center;z-index:7;color:#accadc;font-size:10px;font-weight:700;letter-spacing:.16em}
.visual-top{top:23px}.visual-bottom{bottom:22px;font-size:9px;opacity:.72}
.visual-index{color:#789cb5}
#data-scene{display:block;width:100%;height:100%;position:absolute;inset:0}
#event-scene{display:block;width:100%;height:100%;position:absolute;inset:0;z-index:2;pointer-events:none}
#data-scene .table-structure text,#data-scene .chart-structure text{fill:#bdd8e8;font-family:'DM Sans',Arial,sans-serif;font-size:10px;font-weight:700;letter-spacing:.1em}
#data-scene .foot-text{font-size:12px;font-weight:500;letter-spacing:.01em}
.table-structure,.chart-structure,.feedback-structure{opacity:0;transition:none}
.scene-chip{position:absolute;z-index:4;padding:8px 10px;border:1px solid rgba(179,215,236,.32);border-radius:5px;background:rgba(29,65,89,.7);box-shadow:0 10px 26px rgba(0,0,0,.15);font-size:11px;color:#e0eff6;letter-spacing:.02em;white-space:nowrap}
.scene-chip span{color:#86b8d5;margin-left:12px;font-size:9px}.chip-1{left:18%;top:28%}.chip-2{left:58%;top:44%}.chip-3{left:32%;bottom:25%}
.analysis-label{position:absolute;z-index:4;bottom:9%;left:14%;display:flex;align-items:center;gap:10px;color:#a5cadc;font-size:9px;font-weight:700;letter-spacing:.11em;opacity:0}.analysis-label strong{color:#f1fbff;font-size:13px;letter-spacing:0;font-weight:600}.indicator{width:6px;height:6px;border-radius:50%;background:#a8d9f2;box-shadow:0 0 13px #a8d9f2}
.decision-layer,.feedback-layer{position:absolute;inset:12% 7% 9%;z-index:5;opacity:0;pointer-events:none;transform:translateY(18px);will-change:opacity,transform}
.decision-layer{display:flex;flex-direction:column;justify-content:center}
.model-bar{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px 22px;border:1px solid rgba(172,214,239,.46);border-radius:10px;background:rgba(45,86,113,.58);box-shadow:inset 0 1px 0 rgba(255,255,255,.07)}
.small-label{display:block;font-size:9px;font-weight:800;letter-spacing:.14em;color:#8cb6ce}
.model-bar p{margin:8px 0 0;font:600 clamp(15px,1.4vw,22px)/1.25 'Manrope',sans-serif;color:#f0f8fb}.model-symbol{font-size:28px;color:#bddff1}
.model-symbol{flex:none;width:25px;height:25px;border:1px solid rgba(196,229,246,.65);border-radius:50%;font-size:0;background:radial-gradient(circle at center,#d4edfa 0 3px,transparent 3.5px)}
.context-bridge{display:flex;align-items:center;justify-content:center;gap:13px;margin:15px 0;color:#abd0e4;font-size:10px;letter-spacing:.05em;text-align:center}.bridge-line{width:23px;height:1px;background:#789db7;opacity:.6}
.alternatives{display:grid;grid-template-columns:1fr 1fr;gap:12px}.alternative{min-width:0;min-height:207px;padding:17px 19px;border:1px solid rgba(171,212,237,.38);border-radius:10px;background:rgba(25,58,82,.93);box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
.alt-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid rgba(159,197,220,.18);color:#e7f5fc;font-size:10px;font-weight:800;letter-spacing:.12em}.alt-glyph{font-size:15px;color:#8abfdf}
.alt-glyph{width:7px;height:7px;border-radius:50%;font-size:0;background:#8abfdf;box-shadow:0 0 0 3px rgba(138,191,223,.14)}
.condition{margin:6px 0 16px;color:#cbdfe9;font-size:13px;line-height:1.38;min-height:37px}.action-label{color:#b6d6e9}.alternative h3{margin:6px 0 0;color:#fff;font:700 clamp(15px,1.3vw,20px)/1.27 'Manrope',sans-serif;letter-spacing:-.035em}
.compare-note{text-align:center;color:#b7d7e8;font-size:11px;line-height:1.4;margin:16px 0 0}
.feedback-layer{display:flex;align-items:center;justify-content:center}.feedback-center{width:220px;display:flex;flex-direction:column;gap:10px;text-align:center;align-items:center}.feedback-center strong{font:700 clamp(20px,2.1vw,34px)/1.18 'Manrope',sans-serif;letter-spacing:-.06em}.feedback-node{position:absolute;border:1px solid rgba(188,226,246,.48);border-radius:30px;padding:9px 14px;background:#254e6d;box-shadow:0 12px 28px rgba(0,0,0,.14);font-size:12px;font-weight:700;color:#eaf8ff}.node-one{left:10%;top:21%}.node-two{right:6%;top:28%}.node-three{bottom:12%;left:29%}
.narrative{position:relative;min-width:0;min-height:0;display:flex;flex-direction:column;padding:clamp(8px,2vw,28px) 0 7px}
.narrative-top{display:flex;align-items:center;gap:22px;flex:none}.narrative-kicker{font-size:11px;font-weight:800;letter-spacing:.16em;color:#5b8bad;white-space:nowrap}.thin-rule{flex:1;height:1px;background:#d2e0e8}
.copy-stack{flex:1;min-height:0;position:relative}.copy{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;opacity:0;visibility:hidden;transform:translateY(20px);pointer-events:none;transition:opacity .38s ease,transform .55s ease,visibility .38s ease}.copy.active{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}
.copy h2{margin:0 0 clamp(18px,2vw,31px);max-width:510px;font:700 clamp(34px,3.25vw,56px)/1.13 'Manrope',Arial,sans-serif;letter-spacing:-.062em;color:#102b43}.copy p{margin:0;max-width:465px;font-size:clamp(15px,1.13vw,18px);line-height:1.65;color:#4e6a7c}.copy-note{margin-top:clamp(28px,3vw,48px);display:flex;align-items:flex-start;gap:15px;max-width:450px;color:#718b9c;font-size:12px;line-height:1.55}.note-marker{color:#86b4cf;font:800 12px 'Manrope',sans-serif}
.case-picker{margin-top:clamp(19px,2vw,30px)}.picker-title{display:block;margin-bottom:12px;color:#5c829b;font-size:10px;font-weight:800;letter-spacing:.16em}.case-buttons{display:flex;gap:7px;flex-wrap:wrap}.case-buttons button{padding:8px 12px;border:1px solid #cadae5;border-radius:5px;background:transparent;color:#46687e;cursor:pointer;font-size:11px;font-weight:700;transition:background .18s ease,color .18s ease,transform .18s ease}.case-buttons button:hover{background:#e4f1f7;transform:translateY(-2px)}.case-buttons button[aria-pressed=true]{background:#1c4867;border-color:#1c4867;color:#fff}.more-cases{display:block;margin-top:10px;color:#7293a7;font-size:11px}
.narrative-foot{display:flex;align-items:center;justify-content:space-between;flex:none;gap:10px}.scroll-cue,.phase-name{display:flex;align-items:center;gap:12px;color:#7296ab;font-size:9px;font-weight:800;letter-spacing:.13em}.scroll-line{display:block;width:28px;height:1px;background:#87b7d1}.phase-name{color:#afc4d0}
.stage-controls{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:59px;flex:none;border-top:1px solid #d7e5ee;padding-top:13px}.chapters{flex:1;display:flex;gap:0;max-width:880px}.chapters button{position:relative;min-width:0;flex:1;display:flex;align-items:center;gap:9px;padding:13px 12px 5px 0;border:0;border-top:2px solid #d5e3eb;background:none;text-align:left;color:#88a1b2;cursor:pointer;transition:color .2s ease,border-color .2s ease}.chapters button[aria-current=step]{color:#133d5a;border-color:#4c9ac4}.chapters button:hover{color:#164364}.step-num{font:800 11px 'Manrope',sans-serif}.step-label{font-size:11px;font-weight:700}.play{display:flex;align-items:center;justify-content:center;gap:9px;min-width:110px;padding:11px 15px;border:1px solid #abc6d8;border-radius:5px;background:#e9f3f8;color:#1b5275;font-size:11px;font-weight:800;cursor:pointer}.play:hover{background:#daedf7}#play-icon{font-size:9px}
.after-story{min-height:240px;display:flex;align-items:center;justify-content:space-between;gap:30px;max-width:1570px;margin:auto;padding:50px clamp(18px,4.2vw,70px);border-top:1px solid var(--line)}.after-index{color:#7b9bae;font-size:11px;letter-spacing:.15em;font-weight:800}.after-story p{max-width:500px;margin:0;color:#567387;font-size:14px;line-height:1.6}.after-story a{color:#174967;font-size:12px;font-weight:800;text-decoration:none;border-bottom:1px solid #9fbfd3;padding-bottom:5px;white-space:nowrap}.after-story a span{margin-left:8px}
@media(max-width:1100px){.story-grid{grid-template-columns:minmax(0,1.1fr) minmax(310px,.85fr);gap:28px}.copy h2{font-size:clamp(29px,3.3vw,42px)}.condition{font-size:11px}.alternative{padding:13px;min-height:187px}.alt-top{margin-bottom:11px}}
@media(max-width:780px){:root{--stage-top:54px}.brand{font-size:19px}.story-track{height:630svh;min-height:3100px}.stage{min-height:0}.stage-shell{padding:calc(var(--stage-top) + 10px) 13px 10px;gap:9px}.stage-head{min-height:17px}.eyebrow,.chapter-count{font-size:9px}.story-grid{display:flex;flex-direction:column;gap:11px}.visual{height:43%;min-height:0;flex:none;border-radius:10px}.visual-top{top:10px}.visual-bottom{bottom:9px}.visual-top,.visual-bottom{left:13px;right:13px;font-size:7px}.visual-index{display:none}.narrative{flex:1;padding:0 3px 2px}.narrative-kicker{font-size:9px}.narrative-top{gap:14px}.copy h2{font-size:clamp(25px,5.5vw,37px);margin-bottom:9px;line-height:1.12}.copy p{font-size:13px;line-height:1.45}.copy-note{margin-top:13px;font-size:10px;line-height:1.35}.narrative-foot{min-height:17px}.scroll-cue,.phase-name{font-size:7px;gap:6px}.scroll-line{width:13px}.stage-controls{min-height:50px;padding-top:8px;gap:10px}.chapters button{padding:7px 1px 3px;justify-content:center}.step-num{font-size:10px}.step-label{display:none}.play{min-width:77px;padding:8px 9px;font-size:10px}.decision-layer,.feedback-layer{inset:15% 4% 11%;transform:translateY(7px)}.model-bar{padding:7px 10px;border-radius:5px;gap:5px}.model-bar p{font-size:11px;margin-top:3px}.model-symbol{font-size:17px}.small-label{font-size:6px;letter-spacing:.1em}.context-bridge{font-size:7px;margin:6px 0;gap:6px}.bridge-line{width:12px}.alternatives{gap:7px}.alternative{min-height:94px;padding:7px 8px;border-radius:5px}.alt-top{font-size:7px;margin-bottom:6px;padding-bottom:4px}.alt-glyph{font-size:9px}.condition{font-size:8px;line-height:1.25;margin:3px 0 5px;min-height:25px}.alternative h3{font-size:10px;line-height:1.2;margin-top:3px}.compare-note{font-size:8px;margin-top:7px}.scene-chip{font-size:8px;padding:4px 6px}.scene-chip span{font-size:7px;margin-left:4px}.analysis-label{font-size:7px;bottom:11%}.analysis-label strong{font-size:9px}.feedback-center{width:130px}.feedback-center strong{font-size:17px}.feedback-node{font-size:8px;padding:5px 8px}.node-one{left:5%;top:23%}.node-two{right:2%;top:25%}.node-three{left:29%;bottom:7%}.case-picker{margin-top:12px}.picker-title{font-size:8px;margin-bottom:7px}.case-buttons{gap:5px}.case-buttons button{padding:5px 7px;font-size:9px}.more-cases{font-size:9px;margin-top:5px}.after-story{padding:32px 18px;min-height:180px;flex-wrap:wrap;gap:10px}.after-story p{order:3;width:100%;font-size:12px}}
@media(max-width:780px){.model-symbol{font-size:0;width:19px;height:19px}.alt-glyph{font-size:0;width:6px;height:6px}}
@media(max-width:380px){.visual{height:41%}.copy h2{font-size:24px}.copy p{font-size:12px}.copy-note{font-size:9px}.case-buttons button{font-size:8px;padding:5px 6px}.scroll-cue{font-size:6px}.model-bar p{font-size:10px}.condition{font-size:7.5px}.alternative h3{font-size:9px}}
@media(max-height:680px) and (min-width:781px){.stage-shell{padding-top:calc(var(--stage-top) + 10px);padding-bottom:10px;gap:8px}.visual-top{top:15px}.visual-bottom{bottom:12px}.copy h2{font-size:clamp(29px,2.9vw,44px);margin-bottom:15px}.copy p{font-size:14px;line-height:1.45}.copy-note{margin-top:17px}.alternative{min-height:165px}.alt-top{margin-bottom:7px;padding-bottom:7px}.condition{margin-bottom:8px}.context-bridge{margin:7px 0}.model-bar{padding:11px 17px}.stage-controls{min-height:48px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* The chips suggest the variety of source records; the highlighted row later narrows the story. */
.scene-chip{display:flex;align-items:center;gap:6px;padding:7px 9px;background:rgba(29,65,89,.82);box-shadow:0 9px 22px rgba(4,18,32,.16)}
.scene-chip:before{content:'';position:absolute;left:-14px;top:50%;width:14px;height:1px;background:#b6dff1;box-shadow:0 0 7px rgba(160,215,244,.65)}
.scene-chip .chip-time{margin-left:3px}
.chip-4{left:64%;top:23%}.chip-5{left:10%;top:55%}.chip-6{left:66%;top:65%}.chip-7{left:43%;top:14%}
.chip-type{display:inline-flex;align-items:center;justify-content:center;min-width:25px;height:18px;border:1px solid rgba(159,204,229,.62);border-radius:3px;color:#b6ddf0;font-size:8px;font-weight:800;letter-spacing:.04em}
.image-type{gap:1px}.image-type i{width:4px;height:4px;border-radius:50%;background:#8abfdf}.image-type i:nth-child(2){background:#d5e9aa}.image-type i:nth-child(3){background:#e4bba7}
.condition{min-height:57px;margin-bottom:9px}.priority{display:block;margin-top:4px;color:#dceef7}.priority strong{font-weight:800;color:#fff}
.stage-controls{display:grid;grid-template-columns:minmax(0,1.33fr) minmax(340px,.8fr);gap:clamp(24px,4vw,74px);align-items:center;padding-top:8px;min-height:62px}
.control-row{display:flex;align-items:center;gap:9px;min-width:0;width:100%}
.control-help{justify-self:end;color:#7296ab;font-size:10px;font-weight:700;letter-spacing:.06em}
.chapters{min-width:0;max-width:none;gap:5px}
.chapters button,.case-buttons button,.play{border:1px solid #afcbdc;border-radius:5px;background:#f4f9fc;box-shadow:0 2px 8px rgba(31,82,111,.06);color:#365d78}
.chapters button{justify-content:center;padding:10px 5px;gap:5px;text-align:center;transition:background .2s ease,color .2s ease,box-shadow .2s ease}
.chapters button[aria-current=step],.case-buttons button[aria-pressed=true]{border-color:#478db7;background:#1c4867;color:#fff;box-shadow:0 4px 12px rgba(31,82,111,.15)}
.chapters button:hover,.case-buttons button:hover,.play:hover{background:#e2f1f8;box-shadow:0 4px 12px rgba(31,82,111,.14)}
.chapters button[aria-current=step]:hover,.case-buttons button[aria-pressed=true]:hover{background:#235678}
.play{flex:none;min-width:94px;padding:10px 9px}
.case-buttons button{border-color:#afcbdc}
@media(max-width:1100px){.stage-controls{grid-template-columns:minmax(0,1.1fr) minmax(310px,.85fr);gap:28px}.control-help{font-size:9px}.step-label{font-size:10px}.condition{min-height:62px}}
@media(max-width:780px){
 .scene-chip{padding:4px 5px;gap:3px;font-size:7px}.chip-type{min-width:18px;height:12px;font-size:5px}.image-type i{width:3px;height:3px}.scene-chip .chip-time{display:none}
 .chip-2,.chip-6{display:none}.chip-4{left:61%;top:24%}.chip-5{left:7%;top:56%}.chip-7{left:48%;top:13%}
 .condition{min-height:37px;margin-bottom:5px}.priority{margin-top:2px}
 .stage-controls{display:block;min-height:50px;padding-top:6px}.control-row{gap:6px}.control-help{display:none}
 .chapters{gap:4px}.chapters button{padding:8px 2px}.play{min-width:77px;padding:9px 6px}
}

.case-bar{display:none}
.play{border:2px solid #4b94bd;background:#e1f0f8;box-shadow:0 5px 16px rgba(31,82,111,.15);color:#184c6c}
.play:hover{border-color:#2679aa;background:#d6ebf6;box-shadow:0 6px 18px rgba(31,82,111,.21)}
.play[data-play-state="playing"]{background:#cce5f3;border-color:#2679aa}
.play #play-icon{display:inline-block;width:0;height:0;font-size:0;border-top:4px solid transparent;border-bottom:4px solid transparent;border-left:7px solid currentColor}
.play[data-play-state="playing"] #play-icon{width:8px;height:9px;border:0;border-left:2px solid currentColor;border-right:2px solid currentColor}

/* Main comparison: centred copy, persistent examples and one full-width canvas. */
.layout-focus .stage-shell{padding-top:calc(var(--stage-top) + 14px);padding-bottom:12px;gap:8px}
.layout-focus .story-grid{grid-template-columns:minmax(0,1fr);grid-template-rows:clamp(138px,19vh,165px) auto minmax(0,1fr);gap:8px}
.layout-focus .narrative{grid-row:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0;min-height:0}
.layout-focus .narrative-top{position:absolute;top:0;left:50%;transform:translateX(-50%);white-space:nowrap}
.layout-focus .narrative-top .thin-rule,.layout-focus .narrative-foot{display:none}
.layout-focus .copy-stack{width:100%;height:100%}
.layout-focus .copy{align-items:center;text-align:center;justify-content:center;padding-top:12px}
.layout-focus .copy h2{max-width:1000px;margin:0 0 8px;font-size:clamp(29px,3vw,43px)}
.layout-focus .copy p{max-width:800px;font-size:clamp(13px,1.15vw,16px);line-height:1.45}
.layout-focus .copy-note{margin:8px 0 0;max-width:800px;align-items:center;justify-content:center;text-align:center;font-size:10px;line-height:1.35}
.layout-focus .copy-note .note-marker{flex:none;line-height:1}
.layout-focus .copy-note span:last-child{position:relative;top:1px}
.layout-focus .case-picker{display:none}
.layout-focus .case-bar{grid-row:2;display:flex;align-items:center;justify-content:center;gap:12px;min-height:37px}
.layout-focus .case-bar-label{font-size:9px;letter-spacing:.13em;color:#5c829b;font-weight:800;white-space:nowrap}
.layout-focus .case-bar-mobile-hint{display:none}
.layout-focus .case-bar .case-buttons{flex-wrap:nowrap;gap:7px}
.layout-focus .case-bar .more-cases{margin:0;white-space:nowrap}
.layout-focus :is(.visual, .stage-progress-track){width:min(100%,1240px);justify-self:center}
.layout-focus .decision-layer{inset:8% 0 7%;width:min(1000px,88%);margin-inline:auto}
.layout-focus .model-bar{padding:12px 18px}.layout-focus .model-bar p{margin-top:5px;font-size:clamp(16px,1.45vw,21px)}
.layout-focus .context-bridge{margin:9px 0}.layout-focus .alternative{min-height:155px;padding:14px 18px}.layout-focus .alt-top{margin-bottom:9px;padding-bottom:7px}
.layout-focus .small-label{font-size:9px}.layout-focus .condition{min-height:52px;margin:5px 0 8px;font-size:clamp(12px,1.1vw,15px);line-height:1.32}.layout-focus .alternative h3{font-size:clamp(16px,1.55vw,21px)}
.layout-focus .compare-note{margin-top:11px;font-size:11px}
.layout-focus .stage-controls{display:flex;justify-content:center;min-height:56px}.layout-focus .control-row{max-width:1050px}.layout-focus .control-help{display:none}
@media(min-width:781px) and (max-width:1100px){.layout-focus .case-bar .more-cases{display:none}}
@media(min-width:781px) and (max-height:800px){.layout-focus .story-grid{grid-template-rows:clamp(125px,19vh,145px) auto minmax(0,1fr)}.layout-focus .copy h2{font-size:clamp(27px,2.8vw,37px)}.layout-focus .copy-note{font-size:9px}.layout-focus .stage-controls{min-height:48px}.layout-focus .alternative{min-height:130px;padding:9px 13px}.layout-focus .alt-top{margin-bottom:5px;padding-bottom:4px}.layout-focus .condition{font-size:11px;min-height:39px;margin:3px 0 6px}.layout-focus .model-bar{padding:8px 13px}.layout-focus .context-bridge{margin:6px 0}.layout-focus .compare-note{margin-top:7px}}
@media(max-width:780px){
 .layout-focus .stage-shell{padding:calc(var(--stage-top) + 8px) 12px 9px;gap:6px}
 .layout-focus .story-grid{display:flex;flex-direction:column;gap:6px}
 .layout-focus .narrative{order:0;flex:0 0 clamp(132px,20svh,160px);height:auto;padding:0 2px}
 .layout-focus .narrative-top{top:0}.layout-focus .narrative-kicker{font-size:8px}
 .layout-focus .copy{padding-top:11px}.layout-focus .copy h2{font-size:clamp(22px,5.2vw,30px);margin:0 0 6px}
 .layout-focus .copy p{font-size:11.5px;line-height:1.35}.layout-focus .copy-note{font-size:8.5px;margin-top:6px;line-height:1.25}
 .layout-focus .case-bar{order:1;display:flex;flex-direction:column;align-items:stretch;gap:4px;flex:none;min-height:0}
 .layout-focus .case-bar-label{display:none}
 .layout-focus .case-bar-mobile-hint{display:block;align-self:center;color:#5c829b;font-size:8px;font-weight:800;letter-spacing:.12em}
 .layout-focus .case-bar .case-buttons{width:100%;max-width:100%;overflow-x:auto;justify-content:flex-start;flex-wrap:nowrap;gap:6px;padding:1px 2px 5px;scrollbar-width:thin}
 .layout-focus .case-bar .case-buttons button{flex:0 0 auto;padding:7px 10px;font-size:10px}
 .layout-focus .case-bar .more-cases{display:none}
 .layout-focus .visual,.layout-focus .stage[data-active-scene="3"] .visual{order:2;flex:1;height:auto;min-height:0;width:100%;transition:none}
 .layout-focus .decision-layer{width:auto;inset:12% 4% 9%;margin:0}
 .layout-focus .stage-controls{display:block;min-height:48px;padding-top:5px}
 .layout-focus .chapters button{flex-direction:column;gap:1px;padding:5px 1px}.layout-focus .step-label{display:block;font-size:7px}
}
@media(max-width:380px){.layout-focus .narrative{flex-basis:clamp(148px,25svh,180px)}.layout-focus .copy h2{font-size:21px}.layout-focus .copy p{font-size:10.5px}}
@media(max-width:380px) and (max-height:620px){.layout-focus .narrative{flex-basis:124px}.layout-focus .copy-note{display:none}.layout-focus .copy h2{font-size:20px}.layout-focus .copy p{font-size:10px}.layout-focus .case-bar-mobile-hint{font-size:7px}}

/* Give the decision alternatives a little more breathing room in the wide layout. */
.layout-focus .story-grid{grid-template-rows:clamp(132px,18.5vh,160px) auto minmax(0,1fr)}
.layout-focus .decision-layer{inset:6% 0 5%}
.layout-focus .alternative{min-height:168px;padding:15px 20px}
.layout-focus .alt-top{margin-bottom:11px;padding-bottom:8px}
.layout-focus .condition{min-height:58px;margin:7px 0 10px;line-height:1.4}
.layout-focus .priority{margin-top:6px}
.layout-focus .analysis-label{left:3%}
@media(min-width:781px) and (max-height:800px){
 .layout-focus .story-grid{grid-template-rows:clamp(130px,18.5vh,145px) auto minmax(0,1fr)}
 .layout-focus .alternative{min-height:150px;padding:11px 15px}
 .layout-focus .alt-top{margin-bottom:8px;padding-bottom:6px}
 .layout-focus .condition{min-height:48px;margin:5px 0 8px;font-size:12px;line-height:1.37}
 .layout-focus .priority{margin-top:5px}
}
@media(min-width:781px) and (max-height:680px){
 .layout-focus .alternative{min-height:130px;padding:8px 13px}
 .layout-focus .condition{min-height:39px;margin:3px 0 6px;font-size:11px;line-height:1.3}
 .layout-focus .priority{margin-top:3px}
}
@media(max-width:780px){
 .layout-focus .story-grid{grid-template-rows:none}
 .layout-focus .decision-layer{inset:10% 3% 7%}
 .layout-focus .alternative{min-height:130px;padding:8px 9px}
 .layout-focus .alt-top{margin-bottom:7px;padding-bottom:5px}
 .layout-focus .condition{min-height:48px;margin:4px 0 6px;font-size:10px;line-height:1.3}
 .layout-focus .priority{margin-top:4px}
}
@media(max-width:780px) and (max-height:700px){
 .layout-focus .alternative{min-height:95px;padding:5px 7px}
 .layout-focus .condition{min-height:0;margin:2px 0 4px;font-size:8px;line-height:1.22}
 .layout-focus .priority{margin-top:2px}
}

/* Wspólna siatka i typografia sekcji poza animacją. */
:root {
  --burgundy: #742841;
  --page-gutter: clamp(1rem, 4vw, 2.75rem);
  --page-width: 1240px;
  --prose-line-height: 1.55;
}

.page-width {
  width: min(calc(100% - var(--page-gutter) - var(--page-gutter)), var(--page-width));
  margin-inline: auto;
}

.site-top-inner,
.site-nav {
  display: flex;
  align-items: center;
}

.site-top-inner {
  height: 100%;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-top .brand {
  min-height: 2.75rem;
  text-decoration: none;
}

.site-nav {
  gap: clamp(0.25rem, calc(4vw - 2.2rem), 1.5rem);
}

.site-nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding-inline: clamp(0.35rem, calc(2vw - 0.8rem), 1rem);
  border-radius: 0.4rem;
  color: var(--navy);
  font-size: clamp(0.875rem, calc(2vw - 0.2rem), 1rem);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--line);
}

.site-nav a[aria-current="page"] {
  background: #e1eef6;
}

.site-nav .nav-contact {
  border: 1px solid #9fbccd;
}

.nav-toggle {
  display: none;
}

#tresc {
  padding-top: var(--stage-top);
}

#start,
#podejscie,
#wiedza,
#kontakt {
  scroll-margin-top: var(--stage-top);
}

.hero,
.contact {
  color: var(--pale);
  background: var(--navy);
}

.hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 100% 110%, #234d6a 0%, transparent 65%),
    var(--navy);
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 48%;
  background: radial-gradient(circle, var(--blue) 1px, transparent 1.6px) 0 0 / 18px 18px;
  opacity: 0.24;
  mask-image: radial-gradient(ellipse at 82% 60%, #000, transparent 70%);
  pointer-events: none;
  content: "";
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.43fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(1.5rem, 2.7vw, 2.75rem) clamp(2rem, 3.5vw, 3.5rem);
}

.hero h1,
.approach-intro h2,
.contact h2 {
  margin: 0;
  font-family: Manrope, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero h1 {
  font-size: clamp(2rem, 5.4vw, 5rem);
  line-height: 1.06;
}

.hero h1 span {
  display: block;
}

.hero h1 span + span {
  color: var(--blue);
}

.hero-competencies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-competencies li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.28rem 0.65rem;
  border-radius: 0.35rem;
  background: #234d6a;
  color: var(--pale);
  font-size: 0.9375rem;
  font-weight: 750;
  line-height: 1.4;
}

.hero-competencies li::before {
  flex: none;
  width: 0.37rem;
  height: 0.37rem;
  align-self: center;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

.hero-competencies .specialization-accent {
  background: #512640;
  color: #f8deea;
}

.hero-competencies .specialization-accent::before {
  background: #df9eb4;
}

@media (min-width: 781px) {
  .hero h1 span + span {
    margin-top: 0.12em;
    font-size: 0.79em;
  }
}

.hero-lead,
.hero-motto,
.hero-first-step p,
.approach-copy p,
.contact-copy p {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: var(--prose-line-height);
}

.hero-lead {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  color: var(--line);
  text-wrap: pretty;
}

.hero-lead > span {
  display: block;
}

.hero-motto {
  margin: 1.25rem 0 0;
  color: var(--pale);
  font-weight: 800;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.page-button {
  display: inline-flex;
  min-height: 2.875rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

.page-button-primary {
  color: var(--navy);
  background: var(--blue);
}

.page-button-primary:hover {
  background: var(--pale);
}

.page-button-secondary {
  border-color: var(--blue);
  color: var(--pale);
}

.page-button-secondary:hover {
  background: #20445f;
}

.hero-first-step {
  padding: clamp(1rem, 2.4vw, 1.75rem);
  border: 1px solid #577d98;
  border-radius: 0.75rem;
  background: #173450;
}

.hero-first-step h2 {
  margin: 0;
  color: var(--blue);
  font: 800 clamp(1.15rem, 2vw, 1.5rem)/1.25 Manrope, Arial, sans-serif;
  text-wrap: balance;
}

.hero-first-step p {
  margin: 0.75rem 0 0;
  color: var(--line);
}

.approach-intro,
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.25rem, 5vw, 4.5rem);
  padding-block: clamp(2.75rem, 7vw, 6rem);
}

.approach-intro h2,
.contact h2 {
  font-size: clamp(1.75rem, 4vw, 3.5rem);
  line-height: 1.12;
}

.approach-copy p,
.contact-copy p {
  margin: 0 0 1rem;
}

.story-entry {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--navy);
  font-weight: 800;
  text-underline-offset: 0.28em;
}

.approach-intro {
  padding-block: clamp(1.25rem, 2.2vw, 2rem) clamp(1.25rem, 2.5vw, 2.25rem);
}

.approach-intro h2 span {
  display: block;
}

.approach-details {
  margin-bottom: 0.5rem;
}

.approach-details summary,
.area-disclosure summary {
  color: var(--navy);
  font-weight: 750;
  cursor: pointer;
}

.approach-details summary {
  padding-block: 0.6rem;
}

.approach-details[open] p {
  margin-top: 0.5rem;
}

.approach-details summary:focus-visible,
.area-disclosure summary:focus-visible {
  outline: 3px solid #2c78a1;
  outline-offset: 4px;
}

.after-story {
  width: min(calc(100% - var(--page-gutter) - var(--page-gutter)), var(--page-width));
  min-height: 0;
  padding: 1.75rem 0;
}

.after-story p {
  font-size: 1rem;
}

.after-story a {
  font-size: 0.9375rem;
}

.contact-copy p {
  color: var(--line);
}

.page-section {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  scroll-margin-top: var(--stage-top);
}

.section-realizations,
.section-publications {
  background: #fff;
}

.section-opportunities {
  background: var(--pale);
}

.section-cooperation {
  background: #e9f3f9;
}

.section-head {
  margin-bottom: clamp(1.75rem, 4vw, 3.25rem);
}

.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: start;
  gap: 1.25rem clamp(2rem, 6vw, 5rem);
}

.section-label,
.card-label,
.article-card time,
.article-meta {
  color: #365e77;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.45;
}

.section-label {
  margin: 0 0 0.6rem;
}

.section-title,
.detail h1 {
  max-width: 19ch;
  margin: 0;
  color: var(--navy);
  font: 800 clamp(2rem, 4vw, 3.75rem)/1.1 Manrope, Arial, sans-serif;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.section-realizations .section-title {
  max-width: none;
  font-size: clamp(1.5rem, 3.35vw, 3.2rem);
}

.section-subtitle,
.subsection-title,
.section-note h3 {
  margin: 1rem 0 0;
  color: var(--navy);
  font: 750 clamp(1.15rem, 2vw, 1.6rem)/1.25 Manrope, Arial, sans-serif;
}

.subsection-title {
  margin: 0 0 1.25rem;
}

.section-copy,
.section-note,
.detail-copy {
  color: var(--ink);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: var(--prose-line-height);
}

.section-head > .section-copy {
  max-width: 60ch;
}

.section-head > p.section-copy {
  margin: 0;
}

.section-copy p {
  margin: 0 0 0.75rem;
}

.section-copy p:last-child {
  margin-bottom: 0;
}

.decision-context,
.competency-knowledge,
.expert-partnership {
  scroll-margin-top: calc(var(--stage-top) + 1rem);
}

.decision-context {
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

.decision-context .subsection-title {
  margin-bottom: 1.35rem;
  font-size: clamp(1.5rem, 2.65vw, 2.35rem);
  letter-spacing: -0.025em;
}

.decision-context .heading-phrase {
  display: block;
  text-wrap: balance;
}

.decision-context-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.2rem, 4vw, 3rem);
}

.decision-insight {
  padding: 0.85rem 1rem;
  border-inline-start: 3px solid #6299ba;
  background: #e9f3f9;
}

.decision-figure {
  margin: 0;
  padding: clamp(0.75rem, 2vw, 1.2rem);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fff;
}

.decision-diagram {
  display: grid;
  grid-template-columns: 36% 10% 33% 21%;
  grid-template-rows: auto 1.8rem auto 1.8rem auto auto;
  grid-template-areas:
    "human           human      human       human"
    "agent-link      agent-link engine-link systems-to-human"
    "agent           agent      engine-link systems-to-human"
    "systems-to-agent tool-link engine-link systems-to-human"
    "systems         tool-link  engine-link ."
    ".               engine     engine      engine";
}

.decision-diagram::before {
  grid-column: 1 / -1;
  grid-row: 5 / -1;
  border: 1px solid #c4dae8;
  border-radius: 0.55rem;
  background: #e9f3f9;
  content: "";
}

.decision-node {
  min-width: 0;
  padding: clamp(0.55rem, 1.5vw, 0.8rem);
  border: 1px solid #c4dae8;
  border-radius: 0.55rem;
  color: var(--navy);
  line-height: 1.45;
  text-align: center;
}

.decision-node strong {
  display: block;
  font-family: Manrope, Arial, sans-serif;
}

.decision-node-subtitle {
  display: block;
  font-weight: 700;
}

.decision-node p {
  margin: 0.3rem 0 0;
  text-wrap: balance;
}

.decision-node--engine {
  grid-area: engine;
  margin: 0 0.55rem 0.55rem 0;
  border-color: var(--navy);
  background: var(--navy);
  color: var(--pale);
}

.decision-node--engine strong,
.decision-node--human strong {
  font-size: 1.125rem;
}

.decision-node--human {
  grid-area: human;
  background: #e9f3f9;
}

.decision-node--agent {
  grid-area: agent;
  border-style: dashed;
  background: var(--pale);
}

.decision-systems {
  grid-area: systems;
  align-self: center;
  padding: 0.55rem 0 0.5rem 0.5rem;
  color: var(--navy);
  line-height: 1.35;
  text-align: center;
}

.decision-link {
  position: relative;
  justify-self: center;
  margin-block: 4px;
  border-inline-start: 2px solid currentColor;
  color: #3e82ab;
}

.decision-link::before,
.decision-link::after {
  position: absolute;
  inset-inline-start: -1px;
  width: 7px;
  height: 7px;
  border-block-start: 2px solid currentColor;
  border-inline-start: 2px solid currentColor;
  content: "";
}

.decision-link::before {
  inset-block-start: 0;
  transform: translateX(-50%) rotate(45deg);
}

.decision-link::after {
  inset-block-end: 0;
  transform: translateX(-50%) rotate(225deg);
}

.decision-link--human-agent {
  grid-area: agent-link;
}

.decision-link--human-engine {
  grid-area: engine-link;
}

.decision-link--systems-human {
  grid-area: systems-to-human;
}

.decision-link--systems-agent {
  grid-area: systems-to-agent;
}

.decision-link--systems-human,
.decision-link--systems-agent {
  color: #517083;
}

.decision-link--systems-human::after,
.decision-link--systems-agent::after {
  content: none;
}

.decision-link--agent-engine {
  grid-area: tool-link;
  border-inline-start-style: dashed;
  color: #4d809e;
}

.decision-route-marker {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 0.4rem;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  border: 1px solid #b2cddb;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font: 800 0.75rem/1 Manrope, Arial, sans-serif;
}

.decision-link--systems-human .decision-route-marker {
  inset-inline: auto 0.4rem;
}

.decision-figure figcaption {
  margin-top: 0.75rem;
  color: #365e77;
  line-height: 1.55;
}

.decision-routes {
  margin: 0;
  padding-inline-start: 1.25rem;
}

.decision-routes li + li {
  margin-top: 0.45rem;
}

.decision-routes li::marker,
.decision-routes strong {
  color: var(--navy);
  font-weight: 800;
}

.decision-figure figcaption p {
  margin: 0.75rem 0 0;
}

@media (max-width: 900px) {
  .decision-context-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.case-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.case-card {
  display: grid;
  grid-template-columns: minmax(6rem, 0.31fr) minmax(0, 1fr);
  min-height: 12rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--pale);
}

.case-art {
  background:
    var(--case-motif),
    radial-gradient(ellipse at 85% 20%, #2d5e7e, var(--navy) 70%);
}

.case-art--sales {
  --case-motif: repeating-linear-gradient(145deg, transparent 0 17px, #8abfdf70 18px 19px, transparent 20px 27px);
}

.case-art--systems {
  --case-motif: radial-gradient(circle, #8abfdf 1.4px, transparent 2px) center / 17px 17px;
}

.case-art--imaging {
  --case-motif: repeating-radial-gradient(ellipse at 28% 38%, transparent 0 13px, #8abfdf70 14px 15px, transparent 16px 24px);
}

.case-art--risk {
  --case-motif: repeating-linear-gradient(25deg, transparent 0 13px, #8abfdf72 14px, transparent 15px 24px);
}

.case-art--text {
  --case-motif: repeating-linear-gradient(180deg, transparent 0 10px, #8abfdf85 11px, transparent 12px 19px) center / 52% 54% no-repeat;
}

.case-copy,
.article-card,
.work-steps li,
.work-options-grid > div {
  padding: clamp(1rem, 2.1vw, 1.65rem);
}

.case-copy p,
.article-card p,
.work-steps p,
.work-options p {
  margin: 0.75rem 0;
  line-height: var(--prose-line-height);
}

.case-copy .card-label {
  margin-top: 0;
}

.case-copy h3,
.article-card h3,
.work-steps h3,
.work-options h4 {
  margin: 0.4rem 0 0;
  color: var(--navy);
  font: 800 clamp(1.15rem, 1.8vw, 1.5rem)/1.24 Manrope, Arial, sans-serif;
}

.article-title {
  color: inherit;
  text-decoration: none;
}

.article-title:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.text-link {
  display: inline-block;
  color: #194d70;
  font-weight: 750;
  line-height: 1.45;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

.text-link:hover {
  color: var(--navy);
  text-decoration-thickness: 2px;
}

.case-next {
  display: flex;
  min-height: 6rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 1.25rem;
  border: 1px dashed #94afc1;
  border-radius: 0.75rem;
}

.case-next span {
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: #7696ad;
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 0.75rem;
}

.area-disclosure {
  border: 1px solid #adcadb;
  border-radius: 0.6rem;
  background: #fff;
}

.area-disclosure summary {
  padding: 0.85rem 1rem;
  line-height: 1.4;
}

.area-disclosure[open] {
  border-color: #507d98;
}

@media (min-width: 781px) {
  .area-disclosure[open] {
    grid-column: 1 / -1;
  }

  .area-disclosure[open] dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem 1.5rem;
  }

  .area-disclosure[open] dl > div + div {
    margin-top: 0;
  }
}

.area-disclosure[open] summary,
.area-disclosure summary:hover {
  border-radius: 0.55rem;
  background: #e3f0f8;
}

.area-disclosure dl,
.area-related {
  margin: 0;
  padding: 0.75rem 1rem 1rem;
  line-height: 1.5;
}

.area-disclosure dl > div + div {
  margin-top: 0.75rem;
}

.area-disclosure dt,
.area-related strong {
  color: var(--navy);
  font-weight: 800;
}

.area-disclosure dd {
  margin: 0.2rem 0 0;
}

.area-methods {
  display: block;
  margin-top: 0.35rem;
}

.area-related strong,
.area-related a {
  display: block;
  margin-bottom: 0.25rem;
}

.section-note {
  max-width: 75ch;
  margin-top: 2.5rem;
  padding-inline-start: 1.25rem;
  border-inline-start: 3px solid #8abfdf;
}

.section-note h3,
.section-note p {
  margin: 0 0 0.6rem;
}

.work-steps,
.work-options-grid {
  display: grid;
  gap: 0.75rem;
}

.work-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-steps li {
  border-top: 3px solid #628fab;
  border-radius: 0.15rem 0.15rem 0.7rem 0.7rem;
  background: #fff;
}

.work-options {
  margin-top: clamp(2rem, 5vw, 4rem);
}

.work-options-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.expert-partnership {
  grid-column: 1 / -1;
}

.work-options-grid > div {
  border: 1px solid #b2cddb;
  border-radius: 0.65rem;
}

.work-option-diagnosis {
  background: #fff;
}

.work-option-poc {
  background: #edf5fa;
}

.work-options-grid > .expert-partnership {
  background: #e2eef5;
}

.work-options-grid h4 {
  margin-top: 0.4rem;
}

.work-options .work-option-included {
  display: grid;
  gap: 0.1rem;
  width: min(100%, 18rem);
  margin: 1rem 0 0;
  padding: 0.5rem 0.7rem;
  border: 1px solid #b2cddb;
  border-radius: 0.45rem;
  background: #fff;
  color: var(--navy);
}

.work-option-included span {
  color: #365e77;
  font-size: 0.8rem;
}

.work-cta {
  align-items: center;
  justify-content: space-between;
}

.work-cta p {
  max-width: 59ch;
  margin: 0;
  line-height: var(--prose-line-height);
}

.article-card {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--pale);
}

.article-card:first-child {
  grid-column: 1 / -1;
  border-inline-start: 4px solid #628fab;
  background: #e9f3f9;
}

.article-card p {
  max-width: 66ch;
}

.publication-reading {
  margin-top: clamp(1.65rem, 4vw, 2.75rem);
  scroll-margin-top: calc(var(--stage-top) + 1rem);
}

.publication-reading h3 {
  margin: 0 0 0.65rem;
  color: var(--navy);
  font: 800 1.25rem/1.35 Manrope, Arial, sans-serif;
}

.publication-reading ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.publication-reading a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  height: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--pale);
  color: var(--navy);
  line-height: 1.35;
  text-decoration: none;
}

.publication-reading a span {
  color: #365e77;
  font-size: 0.875rem;
  font-weight: 650;
}

.publication-reading a:hover,
.publication-reading a:focus-visible {
  background: #e9f3f9;
  outline-color: #21739d;
}

.publication-reading a:hover strong,
.publication-reading a:focus-visible strong {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
}

.contact .section-label {
  color: var(--blue);
}

.contact-address {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.5rem;
  font-style: normal;
  line-height: 1.5;
}

.contact-email {
  width: fit-content;
  color: var(--blue);
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 800;
  text-underline-offset: 0.22em;
}

.contact-actions {
  margin-top: 1.25rem;
}

.detail {
  max-width: 56rem;
  padding-block: clamp(2.5rem, 7vw, 6rem);
}

.detail-header {
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.detail h1 {
  max-width: 27ch;
  margin: 0.85rem 0;
}

.detail-copy {
  max-width: 72ch;
}

.detail-copy h2 {
  margin: 1.75rem 0 0.65rem;
  color: var(--navy);
  font: 800 clamp(1.3rem, 2.6vw, 1.8rem)/1.25 Manrope, Arial, sans-serif;
}

.detail-copy p,
.detail-copy ul {
  margin: 0 0 1.1rem;
}

.detail-copy hr {
  margin-block: 2rem;
  border: 0;
  border-top: 1px solid var(--line);
}

.privacy-detail {
  max-width: 54rem;
  padding-block: clamp(2rem, 4vw, 3.5rem);
}

.privacy-detail .detail-header {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
}

.privacy-detail h1 {
  max-width: none;
  margin: 0.55rem 0 0;
  font-size: clamp(1.4rem, 2.4vw, 1.65rem);
  line-height: 1.2;
}

.privacy-detail .detail-copy {
  max-width: 68ch;
  font-size: 1rem;
  line-height: 1.45;
}

.privacy-detail .detail-copy h2 {
  margin: 1.2rem 0 0.4rem;
  font-size: 1.05rem;
  line-height: 1.3;
}

.privacy-detail .detail-copy p {
  margin-bottom: 0.65rem;
}

.privacy-detail .privacy-operator {
  margin-top: 1.2rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}

.privacy-detail .privacy-operator h2 {
  margin-top: 0;
  font-size: 1rem;
}

.privacy-detail .privacy-operator p {
  margin-bottom: 0;
}

.detail-back {
  margin: 2rem 0 0;
}

@media (max-width: 780px) {
  .hero-inner,
  .approach-intro,
  .contact-inner,
  .section-head--split,
  .case-grid,
  .article-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-inner {
    gap: 1.75rem;
  }

  .area-grid,
  .work-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  :root {
    --stage-top: 96px;
  }

  .site-top-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 2.5rem 1fr;
    gap: 0;
  }

  .site-top .brand {
    width: fit-content;
    min-height: 2.25rem;
  }

  .site-nav {
    min-width: 0;
    justify-content: space-between;
    gap: 0.25rem;
    overflow-x: auto;
    padding: 0.25rem 0.25rem 0.45rem;
    scrollbar-width: thin;
  }

  .site-nav a {
    flex: none;
  }
}

@media (max-width: 620px) {
  .area-grid,
  .work-steps,
  .work-options-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Sterowanie B2 w jednym miejscu, nad płótnem. */
.stage .stage-shell {
  width: 100%;
  height: auto;
  min-height: 100svh;
  padding-top: calc(var(--stage-top) + 0.65rem);
  padding-bottom: 0.75rem;
  gap: 0.45rem;
}

.stage .story-grid {
  grid-template-rows: auto minmax(min-content, 1fr) auto;
  gap: 0.55rem;
}

.stage .stage-controls {
  --control-gap: 0.6rem;
  --examples-accent: #6c9bb7;
  --chapter-height: 2.55rem;
  position: relative;
  display: flex;
  flex-direction: column;
  grid-column: 1 / -1;
  grid-row: 1;
  align-items: center;
  gap: var(--control-gap);
  min-height: 0;
  width: min(100%, 1240px);
  margin-inline: auto;
  padding: 0 0 0.2rem;
  border-top: 0;
}

.stage .narrative {
  grid-row: 2;
}

.stage .visual {
  display: grid;
  align-items: center;
  container: story-canvas / inline-size;
  grid-row: 2;
  grid-column: 1;
  height: auto;
  min-height: 15rem;
  cursor: pointer;
}

.story-picture,
.story-panels {
  display: contents;
}

.story-signal {
  display: none;
}

.stage .feedback-layer {
  z-index: 6;
}

.stage-progress-track {
  grid-row: 3;
  grid-column: 1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce8f0;
}

.stage-progress {
  height: 100%;
  background: #3e82ab;
  transform: scaleX(0);
  transform-origin: left;
}

.stage .visual-top,
.stage .visual-bottom {
  color: #c5e2f2;
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.06em;
  opacity: 1;
  pointer-events: none;
}

.stage .visual-top {
  top: 0.75rem;
}

.stage .visual-bottom {
  bottom: 0.55rem;
}

@media (min-width: 781px) {
  :root:not(.layout-focus) .stage .narrative {
    grid-column: 2;
  }
}

.layout-focus .stage .story-grid {
  display: grid;
  grid-template-rows: auto auto minmax(min-content, 1fr) auto;
}

.layout-focus .stage .narrative {
  grid-row: 1;
  gap: 0.2rem;
  justify-content: start;
}

.layout-focus .stage .copy-stack {
  display: grid;
  height: auto;
  flex: none;
}

.layout-focus .stage .copy {
  position: relative;
  grid-area: 1 / 1;
  padding: 0;
}

.layout-focus .stage .stage-controls {
  grid-row: 2;
}

.layout-focus .stage .visual {
  grid-row: 3;
}

.layout-focus .stage-progress-track {
  grid-row: 4;
}

.stage .section-label {
  margin: 0;
}

.stage .copy-note {
  color: #365e77;
  font-size: 0.875rem;
  line-height: 1.45;
}

.stage .chapter-count {
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.stage .chapter-count .slash {
  color: inherit;
}

.stage .copy h2 {
  margin: 0 0 0.25rem;
  line-height: 1.15;
}

.stage .copy p {
  color: var(--ink);
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: var(--prose-line-height);
  text-wrap: pretty;
}

.stage .copy-note {
  margin-top: 0.25rem;
}

.stage .copy-note .note-marker {
  display: none;
}

.stage .playback-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  width: 100%;
}

.stage .playback-hint {
  margin: 0;
  color: #365e77;
  font-size: 0.6875rem;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
}

.stage .play {
  width: 31%;
  min-height: calc(var(--chapter-height) * 0.8);
  padding: 0.125rem 0.5rem;
  border-width: 1px;
  font-size: 0.875rem;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(31, 82, 111, 0.12);
}

.stage .chapters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 100%;
  gap: 0.3rem;
}

.stage .chapters button {
  min-height: var(--chapter-height);
  padding: 0.3rem 0.2rem;
  line-height: 1.25;
}

.stage .chapters button[aria-controls="decision-examples"] {
  border-color: var(--examples-accent);
  border-bottom-width: 2px;
}

.stage .chapters button[aria-controls="decision-examples"]::after {
  position: absolute;
  top: 100%;
  left: 50%;
  height: calc(var(--control-gap) + 2px);
  border-left: 1px solid var(--examples-accent);
  content: "";
  pointer-events: none;
}

.stage .step-label {
  display: inline;
  font-size: clamp(0.72rem, 1.25vw, 1rem);
}

.stage .stage-controls .case-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  width: min(68%, 48rem);
  min-height: 0;
  gap: 0.55rem;
  padding: 0.25rem 0.4rem 0.4rem;
  border: 1px solid #d2e2ec;
  border-top-color: var(--examples-accent);
  border-radius: 0.4rem;
  background: #edf4f8;
}

.stage .case-group-label,
.stage .chapter-count {
  margin: 0;
  padding-inline: 0.4rem;
  color: #365e77;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

.stage .case-bar .case-buttons {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.3rem;
  width: 100%;
  padding: 0;
  overflow: visible;
}

.stage .decision-connector {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #3e82ab;
  stroke-width: 1.5px;
  stroke-linejoin: round;
  stroke-linecap: round;
  pointer-events: none;
  visibility: hidden;
}

.stage[data-active-scene="3"] .decision-connector {
  visibility: visible;
}

.stage .case-bar .case-buttons button {
  position: relative;
  min-height: 2rem;
  padding: 0.25rem 0.15rem;
  font-size: clamp(0.75rem, 1.05vw, 0.875rem);
  white-space: normal;
}

.stage[data-active-scene="3"] .case-buttons button[aria-pressed="true"]::after {
  position: absolute;
  inset-inline: 0.3rem;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: #b3e2ff;
  transform: scaleX(var(--case-progress, 0));
  transform-origin: left;
  pointer-events: none;
  content: "";
}

.stage .case-bar .case-buttons button:hover {
  transform: none;
}

.stage:not([data-active-scene="3"]) .case-buttons button {
  border-color: #bacdd9;
  background: #f1f6f9;
  color: #476578;
  box-shadow: none;
}

.stage:not([data-active-scene="3"]) .case-buttons button[aria-pressed="true"] {
  border-color: #87aec5;
  background: #e3eef5;
}

.stage:not([data-active-scene="3"]) .case-buttons button:is(:hover,:focus-visible) {
  border-color: #4c86ab;
  background: #d2e9f6;
  color: var(--navy);
}

.stage #decision-layer {
  position: relative;
  inset: auto;
  display: grid;
  width: auto;
  margin: 0;
  padding: 2.25rem max(0.75rem, 4%) 1.85rem;
  text-align: center;
  transform: none;
}

.stage .decision-case {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  visibility: hidden;
}

.stage .decision-case.is-current {
  visibility: inherit;
}

.stage .model-bar {
  display: block;
  flex: none;
  padding: 0.5rem 0.75rem;
}

.stage .model-bar p {
  margin: 0.16rem 0 0;
  color: #f0f8fb;
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  line-height: 1.45;
}

.stage .context-bridge,
.stage .compare-note {
  margin: 0;
  color: #dceef7;
  font-size: 0.875rem;
  line-height: 1.45;
}

.stage .alternatives {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.stage .alternative {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.55rem 0.75rem;
}

.stage .alt-top {
  display: block;
  margin: 0 0 0.4rem;
  padding-bottom: 0.28rem;
  color: #f0f8fb;
  font-size: 1rem;
  letter-spacing: 0;
}

.stage #decision-layer .small-label {
  color: #c5e2f2;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.stage #decision-layer .condition {
  min-height: 0;
  margin: 0.25rem 0 0.55rem;
  font-size: 1rem;
  line-height: 1.5;
}

.stage .priority {
  margin-top: 0.17rem;
}

.stage .action-label {
  margin-top: auto;
}

.stage .alternative h3 {
  margin: 0.22rem 0 0;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.4;
}

@media (max-width: 780px) {
  .stage .story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(min-content, 1fr) auto;
  }

  .stage .narrative {
    grid-row: 1;
  }

  .stage .stage-controls {
    --chapter-height: 2.4rem;
    grid-row: 2;
  }

  .stage[data-active-scene] #visual {
    grid-row: 3;
    height: auto;
    min-height: 15rem;
  }

  .stage-progress-track {
    grid-row: 4;
  }

  .stage .stage-controls .case-bar {
    width: 100%;
  }

  .stage .case-buttons button {
    min-height: 2.4rem;
  }

  .stage #decision-layer {
    padding-inline: 0.65rem;
  }

  .stage .alternatives {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 780px) and (min-height: 740px) {
  .stage[data-active-scene] #visual {
    min-height: 16.5rem;
  }
}

.story-track[data-scroll-mode="free"] {
  height: auto;
  min-height: 0;
}

.story-track[data-scroll-mode="free"] .stage {
  position: relative;
}

.story-track[data-scroll-mode="free"] .scroll-cue {
  display: none;
}

@media (max-width: 780px), (max-height: 540px), (prefers-reduced-motion: reduce) {
  #story {
    scroll-margin-top: var(--stage-top);
  }

  .stage .stage-shell {
    padding-top: 0.75rem;
  }

  .stage .play {
    min-height: 2.75rem;
  }

  .stage .stage-controls,
  .stage #visual {
    scroll-margin-top: calc(var(--stage-top) + 0.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage .decision-layer,
  .stage .feedback-layer {
    transform: none !important;
  }
}

.competency {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.1rem, 2.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--pale);
}

.competency-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid #c4dae8;
}

.competency-item {
  padding: 1rem clamp(0.75rem, 1.8vw, 1.4rem);
}

.competency-item + .competency-item {
  border-inline-start: 1px solid #c4dae8;
}

.competency h4 {
  margin: 0.25rem 0 0.45rem;
  color: var(--navy);
  font: 800 1.1rem/1.35 Manrope, Arial, sans-serif;
}

.competency p {
  margin: 0;
  line-height: var(--prose-line-height);
}

.competency .competency-name {
  margin: 0 0 0.55rem;
  font-size: clamp(1.14rem, 2vw, 1.4rem);
  line-height: 1.25;
}

.specialization-accent,
.competency h4.specialization-accent {
  color: var(--burgundy);
}

.competency .competency-promise {
  margin-bottom: 0.4rem;
  color: var(--navy);
  font-weight: 800;
}

.competency-summary {
  margin-top: 1rem;
  max-width: 84ch;
}

.competency-knowledge {
  padding-block: 1rem;
  border-bottom: 1px solid #c4dae8;
}

.competency-knowledge h4 {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
}

.competency-knowledge p + p {
  margin-top: 0.65rem;
}

.competency-knowledge p,
.expert-partnership p {
  max-width: 88ch;
}

.expertise-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.5rem;
  margin: 0.85rem 0;
  padding-inline-start: 1.35rem;
  line-height: 1.6;
}

@media (max-width: 620px) {
  .expertise-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }
}

@media (max-width: 780px) {
  .competency-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .competency-item {
    padding-inline: 0;
  }

  .competency-item + .competency-item {
    border-inline-start: 0;
    border-block-start: 1px solid #c4dae8;
  }
}

.stage #data-scene .table-structure text {
  font-size: 13px;
  letter-spacing: 0.035em;
}

.stage #data-scene .table-structure .table-group-label {
  fill: #ecf8fd;
  font-size: 18px;
}

.stage #data-scene .table-structure .table-example-label {
  font-size: 16px;
  letter-spacing: 0;
}

.feature-layer {
  position: absolute;
  z-index: 6;
  inset: 2.25rem 0.9rem 1.85rem auto;
  width: min(37%, 23rem);
  display: grid;
  align-content: center;
  gap: 0.7rem;
  padding: clamp(0.65rem, 1.3vw, 1rem);
  border: 1px solid #729db8;
  border-radius: 0.65rem;
  background: #183b58;
  cursor: auto;
}

.feature-layer[aria-hidden="true"] {
  visibility: hidden;
}

.feature-layer h3 {
  margin: 0;
  color: #f0f8fb;
  font: 800 1.125rem/1.35 Manrope, Arial, sans-serif;
}

.feature-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
}

.feature-layer button {
  min-height: 2rem;
  padding: 0.25rem 0.4rem;
  border: 1px solid #8abfdf;
  border-radius: 0.35rem;
  color: #edf8fd;
  background: #215070;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
}

.feature-layer button:hover {
  background: #285a7b;
}

.feature-layer button[aria-pressed="true"] {
  border-color: #b9e1f7;
  color: var(--navy);
  background: #b9e1f7;
}

.feature-layer .feature-example-button {
  justify-self: start;
  padding-inline: 0.7rem;
  background: transparent;
}

.feature-explanations {
  display: grid;
}

.feature-detail {
  grid-area: 1 / 1;
}

.feature-detail[aria-hidden="true"] {
  visibility: hidden;
}

.feature-detail p {
  margin: 0;
  color: #edf8fd;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.feature-detail p + p {
  margin-top: 0.2rem;
  color: #d5e9f5;
  font-size: 0.875rem;
  font-weight: 400;
}

.stage .feedback-center {
  width: min(16rem, 52%);
  gap: 0.45rem;
}

.feedback-competencies {
  margin: 0;
  padding: 0;
  color: #d2eaf7;
  font-size: 0.875rem;
  line-height: 1.5;
  list-style: none;
}

.stage .feedback-center strong {
  color: #f1fbff;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  letter-spacing: -0.03em;
}

@container story-canvas (max-width: 780px) {
  .feature-layer {
    inset: auto 0.65rem 1.85rem;
    width: auto;
    gap: 0.5rem;
  }

  .feature-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@container story-canvas (max-width: 520px) {
  .feature-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stage .feedback-center {
    width: min(18rem, 94%);
  }

  .stage .feedback-center strong {
    font-size: clamp(1rem, 5cqi, 1.25rem);
  }

  .feedback-layer .node-one {
    top: 10%;
    left: 5%;
  }

  .feedback-layer .node-two {
    top: 10%;
    right: 5%;
  }

  .feedback-layer .node-three {
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
  }
}

.warehouse-dialog {
  width: min(57rem, calc(100% - 1.5rem));
  max-height: calc(100svh - 1.5rem);
  padding: clamp(1rem, 2.5vw, 1.75rem);
  border: 1px solid #8aafc7;
  border-radius: 0.75rem;
  overscroll-behavior: contain;
  color: var(--ink);
  background: #f4f8fb;
}

.warehouse-dialog::backdrop {
  background: rgba(10, 26, 43, 0.72);
}

html:has(.warehouse-dialog[open]) {
  overflow: hidden;
  scrollbar-gutter: stable;
}

.warehouse-dialog [hidden],
.warehouse-chart[aria-hidden="true"] {
  display: none;
}

.warehouse-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.warehouse-header h2 {
  margin: 0;
  color: var(--navy);
  font: 800 clamp(1.4rem, 3vw, 2rem)/1.2 Manrope, Arial, sans-serif;
}

.warehouse-header p {
  margin: 0.35rem 0 0;
  line-height: 1.55;
}

.warehouse-close {
  min-height: 2.5rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid #9bbbd0;
  border-radius: 0.4rem;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
}

.warehouse-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.warehouse-card {
  margin: 0;
  padding: 0.75rem;
  border: 1px solid #b8d1e2;
  border-radius: 0.55rem;
  background: #fff;
}

.warehouse-card figcaption,
.warehouse-measure {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  line-height: 1.45;
}

.warehouse-card :is(figcaption, .warehouse-measure) strong {
  color: #194d70;
}

.warehouse-chart {
  display: block;
  width: 100%;
  height: auto;
  margin-block: 0.4rem;
  font-size: 12px;
  fill: #365e77;
}

.warehouse-chart .chart-grid {
  stroke: #d5e4ef;
}

.warehouse-chart .chart-mean {
  stroke: #698ba4;
  stroke-dasharray: 5 3;
}

.warehouse-chart .chart-series {
  fill: none;
  stroke: #195d83;
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.warehouse-chart .chart-mark {
  fill: #245f84;
}

.warehouse-chart .chart-empty-mark {
  fill: none;
  stroke: #739cb5;
  stroke-width: 1.5;
}

.warehouse-chart .chart-overlap {
  fill: #e0eef6;
}

.warehouse-measure {
  margin: 0;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}

.warehouse-conclusion {
  margin: 1rem 0 0;
  line-height: var(--prose-line-height);
}

.warehouse-next {
  margin-top: 1rem;
  color: #fff;
  background: #1c4867;
  cursor: pointer;
}

.warehouse-next:hover {
  background: var(--navy);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .warehouse-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Czytanie na stronie pozostaje główną akcją publikacji. */
.article-card .article-read {
  background: #1c4867;
  color: #fff;
}

.article-card .article-read:hover {
  background: var(--navy);
}

.article-card .card-links {
  align-items: center;
}

.article-detail .detail-copy {
  color: var(--ink);
  font-size: clamp(0.9375rem, 1.25vw, 1.0625rem);
  line-height: 1.5;
}

.article-detail .detail-copy > :is(p, ul, ol) {
  margin-bottom: 0.9rem;
}

.article-detail .detail-copy li + li {
  margin-top: 0.35rem;
}

.article-detail .detail-copy h3 {
  margin: 1.1rem 0 0.45rem;
  color: var(--navy);
  font: 800 1.125rem/1.35 Manrope, Arial, sans-serif;
}

#data-scene .chart-structure text {
  font-size: 17px;
  letter-spacing: 0.02em;
}

.research-overview,
#wybrane-realizacje {
  scroll-margin-top: calc(var(--stage-top) + 1rem);
}

.research-overview {
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  border-block: 1px solid var(--line);
}

.research-overview .subsection-title {
  margin-bottom: 0.7rem;
  font-size: clamp(1.4rem, 2.8vw, 2.15rem);
}

.research-intro {
  max-width: 80ch;
  margin: 0 0 1.5rem;
  line-height: var(--prose-line-height);
}

.research-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.research-list li {
  display: grid;
  grid-template-columns: minmax(10rem, 0.85fr) minmax(0, 2fr) auto;
  align-items: start;
  gap: 0.75rem clamp(1rem, 3vw, 2rem);
  padding-block: 0.9rem;
  border-top: 1px solid var(--line);
}

.research-list h5,
.research-list p {
  margin: 0;
}

.research-list h5 {
  margin-bottom: 0.25rem;
  color: var(--navy);
  font: 800 1.0625rem/1.35 Manrope, Arial, sans-serif;
}

.research-list p {
  line-height: 1.5;
}

.research-overview .text-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-self: start;
}

.research-all {
  margin-top: 0.35rem;
}

.research-page {
  background: #fff;
}

.research-width {
  max-width: 52rem;
}

.research-masthead,
.research-close {
  padding-block: clamp(2rem, 6vw, 5rem);
  background: var(--pale);
}

.research-masthead {
  border-bottom: 1px solid var(--line);
}

.research-masthead h1,
.research-article h2,
.research-close h2 {
  margin: 0 0 0.85rem;
  color: var(--navy);
  font: 800 clamp(1.7rem, 3.6vw, 3.2rem)/1.13 Manrope, Arial, sans-serif;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.research-masthead h1 {
  font-size: clamp(2rem, 5.5vw, 4.25rem);
}

.research-masthead h1 .heading-phrase {
  display: block;
  text-wrap: wrap;
}

.research-masthead h1 .heading-phrase + .heading-phrase {
  margin-top: 0.15em;
  color: #365e77;
  font-size: 0.78em;
}

.research-masthead p:not(.section-label),
.research-article,
.research-close {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: var(--prose-line-height);
}

.research-jump ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem 1rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.research-jump a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.65rem;
  color: var(--navy);
  font-weight: 750;
  text-underline-offset: 0.25em;
}

.research-jump a span {
  color: #365e77;
  font-size: 0.875rem;
}

.research-article {
  padding-block: clamp(1.8rem, 4.2vw, 3.6rem);
  scroll-margin-top: var(--stage-top);
}

.research-article:focus:not(:focus-visible) {
  outline: none;
}

.research-article:focus-visible {
  outline: 3px solid #2c78a1;
  outline-offset: 4px;
}

.research-article + .research-article {
  border-top: 1px solid var(--line);
}

.research-article header .article-meta {
  margin: 0 0 0.45rem;
}

.research-article h3 {
  margin: 1.5rem 0 0.45rem;
  color: var(--navy);
  font: 800 1.125rem/1.36 Manrope, Arial, sans-serif;
}

.research-article p {
  margin: 0.7rem 0;
}

.research-article ul {
  margin: 0.55rem 0;
  padding-inline-start: 1.3rem;
}

.research-article li + li {
  margin-top: 0.35rem;
}

.research-article .research-takeaway {
  margin-top: 1.35rem;
  padding: 0.65rem 1rem;
  border-inline-start: 3px solid var(--blue);
  background: var(--pale);
  color: var(--navy);
  font-weight: 800;
}

.research-source {
  margin-top: 1.65rem;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.research-source a {
  color: #24526e;
  text-underline-offset: 0.2em;
}

.research-source .research-source-links {
  padding: 0;
  list-style: none;
}

.research-source-links a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
}

.research-figure {
  margin: 1.5rem 0;
  padding: clamp(0.85rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--pale);
}

.research-figure h3 {
  margin-top: 0;
}

.research-figure figcaption,
.decision-costs caption {
  color: #365e77;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.feature-count {
  margin-top: 0.8rem;
}

.feature-count p,
.feature-count-scale {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem;
}

.feature-count p {
  margin: 0 0 0.25rem;
}

.feature-count-track {
  display: block;
  width: 100%;
  height: 0.75rem;
  background: var(--line);
  fill: #365e77;
}

.feature-count-scale {
  margin-top: 0.2rem;
  color: #365e77;
  font-size: 0.875rem;
}

.decision-costs {
  width: 100%;
  margin-block: 1rem;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  line-height: 1.45;
}

.decision-costs caption {
  margin-bottom: 0.5rem;
  text-align: left;
}

.decision-costs th,
.decision-costs td {
  padding: 0.55rem clamp(0.25rem, 1.6vw, 0.85rem);
  border-bottom: 1px solid #c4dae8;
  text-align: end;
  vertical-align: top;
}

.decision-costs th:first-child {
  width: 54%;
  text-align: start;
}

.decision-costs tbody th {
  font-weight: 600;
}

.decision-cost-result {
  background: #e1edf5;
  color: var(--navy);
  font-weight: 800;
}

.decision-cost-result th {
  font-weight: inherit;
}

.research-close-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
  padding: 0.85rem;
  border-block: 1px solid #c4dae8;
  color: var(--navy);
  font: 800 clamp(1.1rem, 2.5vw, 1.65rem)/1.35 Manrope, Arial, sans-serif;
}

.research-close .page-actions {
  justify-content: center;
  gap: 0.3rem 1.5rem;
}

.research-close .page-actions .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

@media (max-width: 780px) {
  #data-scene .chart-structure text {
    font-size: 28px;
    letter-spacing: 0;
  }

  .research-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.3rem;
  }
}

@media (max-width: 690px) {
  :root {
    --stage-top: 8.4rem;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    overflow: visible;
    padding: 0;
  }

  .site-nav a {
    justify-content: center;
    min-width: 0;
    padding-inline: 0.15rem;
    font-size: clamp(0.75rem, 3.45vw, 0.875rem);
    text-align: center;
  }

}

@media (max-width: 560px) {
  .research-jump ol {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 780px), (max-width: 1000px) and (max-height: 540px) {
  :root.nav-disclosure {
    --stage-top: 3.5rem;
  }

  .nav-disclosure .site-top-inner {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .nav-disclosure .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid #9fbccd;
    border-radius: 0.4rem;
    color: var(--navy);
    background: var(--pale);
    font-weight: 700;
    cursor: pointer;
  }

  .nav-toggle::after {
    width: 0.45rem;
    height: 0.45rem;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    content: "";
    transform: translateY(-0.12rem) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"]::after {
    transform: translateY(0.12rem) rotate(225deg);
  }

  .nav-disclosure .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem;
    max-height: calc(100dvh - var(--stage-top));
    padding: 0.6rem max(0.75rem, calc((100% - 44rem) / 2));
    overflow: auto;
    border-bottom: 1px solid var(--line);
    background: var(--pale);
  }

  .nav-disclosure .site-top[data-nav-open] .site-nav {
    display: grid;
  }

  .nav-disclosure .site-nav a {
    grid-column: auto;
    justify-content: flex-start;
    padding-inline: 0.7rem;
    font-size: 0.9375rem;
    text-align: left;
  }

  .stage .stage-shell {
    width: min(100%, 48rem);
    min-height: 0;
    padding: 0.65rem 0.75rem 0.9rem;
    gap: 0.4rem;
  }

  .layout-focus .stage .story-grid,
  .stage .story-grid {
    --story-gap: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: var(--story-gap);
  }

  .stage .stage-controls,
  .stage[data-active-scene] #visual {
    display: contents;
  }

  .stage .visual::after {
    content: none;
  }

  .stage .playback-controls {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 0.6rem;
    scroll-margin-top: calc(var(--stage-top) + 0.5rem);
  }

  .stage .playback-hint {
    flex-basis: 100%;
  }

  .stage :is(.play, .chapters button, .case-bar .case-buttons button) {
    position: relative;
    isolation: isolate;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .stage .play {
    --button-frame-inset: 9px;
    width: auto;
    min-width: 3.75rem;
    padding-inline: 0.35rem;
    gap: 0.22rem;
    font-size: 0.7rem;
  }

  .stage :is(.play, .chapters button, .case-bar .case-buttons button)::before {
    position: absolute;
    inset: var(--button-frame-inset, 4px) 0;
    z-index: -1;
    border: 1px solid #abc6d8;
    border-radius: inherit;
    background: #f4f9fc;
    content: "";
  }

  .stage .play::before {
    background: #e9f3f8;
  }

  .stage .play:is(:hover, :focus-visible, [data-play-state="playing"])::before {
    border-color: #2679aa;
    background: #cce5f3;
  }

  .stage .chapter-count {
    padding: 0;
    font-size: 0.675rem;
  }

  .stage .motion-option:not([hidden]) {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    gap: 0.25rem;
    color: var(--navy);
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
  }

  .stage .motion-option input {
    margin: 0;
    accent-color: #2679aa;
  }

  .stage .motion-option input:checked ~ .motion-slides,
  .stage .motion-option input:not(:checked) ~ .motion-fluid {
    display: none;
  }

  .stage .story-picture {
    position: relative;
    isolation: isolate;
    order: 1;
    display: block;
    container: story-canvas / inline-size;
    height: clamp(7.5rem, min(56vw, calc(100svh - var(--stage-top) - 9rem)), 13.5rem);
    overflow: hidden;
    border-radius: 0.75rem;
    background: radial-gradient(ellipse at center, #234967, #10263f 78%);
    cursor: pointer;
    scroll-margin-top: calc(var(--stage-top) + 0.5rem);
  }

  .stage .visual-top,
  .stage .visual-bottom {
    font-size: 0.625rem;
  }

  .stage .visual-top {
    top: 0.45rem;
  }

  .stage .visual-bottom {
    bottom: 0.4rem;
  }

  .stage .story-signal {
    position: absolute;
    inset: 1.4rem 0.6rem 1.3rem;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
  }

  .stage .story-signal .model-bar {
    max-width: 34rem;
    padding: 0.35rem 0.55rem;
    color: #edf8fd;
    background: #21445f;
    text-align: center;
  }

  .stage .story-signal .small-label {
    color: #c5e2f2;
    font-size: 0.625rem;
  }

  .stage .story-signal .model-bar p {
    font-size: 0.875rem;
    line-height: 1.25;
  }

  .signal-branches {
    --branch-stroke: #8abfdf;
    --branch-badge: 1.5rem;
    --branch-height: 1rem;
    --branch-fork: 0.4rem;
    position: relative;
    display: flex;
    justify-content: space-between;
    width: min(11rem, 75%);
    padding-top: var(--branch-height);
    background:
      linear-gradient(var(--branch-stroke), var(--branch-stroke)) center top / 1px calc(var(--branch-fork) + 1px) no-repeat,
      linear-gradient(var(--branch-stroke), var(--branch-stroke)) center var(--branch-fork) / calc(100% - var(--branch-badge)) 1px no-repeat;
  }

  .signal-branches span {
    position: relative;
    display: grid;
    place-items: center;
    width: var(--branch-badge);
    height: var(--branch-badge);
    border: 1px solid var(--branch-stroke);
    border-radius: 50%;
    color: #edf8fd;
    background: #21445f;
    font-size: 0.75rem;
    font-weight: 700;
  }

  .signal-branches span::before {
    position: absolute;
    bottom: 100%;
    left: 50%;
    height: calc(var(--branch-height) - var(--branch-fork));
    border-left: 1px solid var(--branch-stroke);
    content: "";
  }

  .stage .story-picture .scene-chip {
    padding: 0.2rem 0.35rem;
    font-size: 0.7rem;
  }

  .stage .story-picture .chip-1 { left: 12%; top: 25%; }
  .stage .story-picture .chip-3 { left: 17%; bottom: 17%; }
  .stage .story-picture .chip-4 { left: auto; right: 8%; top: 32%; }
  .stage .story-picture .chip-5 { left: 15%; top: 49%; }
  .stage .story-picture .chip-7 { left: auto; right: 12%; top: 61%; }
  .stage .story-picture .chip-2,
  .stage .story-picture .chip-6,
  .stage .story-picture .chip-time { display: none; }

  .stage .story-picture .feedback-layer {
    inset: 1.4rem 0.5rem 1.3rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 1fr auto;
  }

  .stage .story-picture .feedback-center {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    gap: 0.3rem;
  }

  .stage .story-picture .feedback-center strong {
    font-size: clamp(0.875rem, 4cqi, 1.1rem);
  }

  .stage .story-picture .feedback-competencies {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 0.55rem;
    font-size: 0.7rem;
  }

  .stage .story-picture .feedback-node {
    position: static;
    grid-row: 2;
    justify-self: center;
    padding: 0.15rem 0.35rem;
    font-size: 0.625rem;
    white-space: nowrap;
    transform: none;
  }

  .stage .stage-progress-track {
    order: 3;
  }

  .stage .chapters {
    order: 4;
    gap: 0.25rem;
  }

  .stage .chapters button,
  .stage .case-bar .case-buttons button {
    min-width: 0;
    min-height: 2.125rem;
    padding: 0.15rem 0.12rem;
  }

  .stage .chapters button[aria-controls="decision-examples"]::before {
    border-color: var(--examples-accent);
    border-bottom-width: 2px;
  }

  .stage :is(.chapters button[aria-current="step"], .case-bar .case-buttons button[aria-pressed="true"])::before {
    border-color: #478db7;
    background: #1c4867;
  }

  .stage .chapters button[aria-controls="decision-examples"]::after,
  .stage[data-active-scene="3"] .decision-connector {
    display: none;
  }

  .stage .narrative {
    order: 6;
    flex: none;
    padding: 0.45rem 0.25rem 0.3rem;
  }

  .stage .narrative-foot,
  .stage .copy:not(.active) {
    display: none;
  }

  .stage .copy.active {
    position: relative;
    padding: 0;
  }

  .stage .copy h2,
  .stage .copy p {
    max-width: 100%;
  }

  .stage .stage-controls .case-bar {
    order: 5;
    display: none;
    width: 100%;
    gap: 0.25rem;
    padding: 0.15rem 0.25rem 0.2rem;
  }

  .stage[data-active-scene="3"] .stage-controls .case-bar {
    display: grid;
  }

  .stage .case-bar .case-buttons {
    gap: 0.25rem;
  }

  .stage .case-bar .case-buttons button {
    font-size: clamp(0.625rem, 2.9vw, 0.75rem);
    line-height: 1.2;
  }

  .stage[data-active-scene="3"] .case-buttons button[aria-pressed="true"]::after {
    bottom: 6px;
  }

  .stage .story-panels {
    order: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 0fr);
    margin-block-start: calc(-1 * var(--story-gap));
    overflow: hidden;
    border-radius: 0.75rem;
    background: var(--navy);
  }

  .stage:is([data-active-scene="1"], [data-active-scene="2"], [data-active-scene="3"]) .story-panels {
    grid-template-rows: minmax(0, 1fr);
    margin-block-start: 0;
  }

  /* Przełącznik ruchu steruje wyłącznie przejściami w opowieści. */
  .stage.story-motion .story-panels {
    transition: grid-template-rows 260ms ease, margin-block-start 260ms ease !important;
  }

  .stage.story-motion .story-panels > * {
    transition: opacity 180ms ease-out 110ms !important;
  }

  .stage.story-motion .story-panels > [aria-hidden="true"] {
    transition: opacity 150ms ease-in, visibility 0s linear 150ms !important;
  }

  .stage #feature-layer,
  .stage #decision-layer {
    order: 2;
    position: relative;
    inset: auto;
    grid-area: 1 / 1;
    width: 100%;
    margin: 0;
    border-radius: 0.75rem;
    color: #edf8fd;
    background: var(--navy);
    cursor: pointer;
  }

  .stage #feature-layer {
    align-content: space-evenly;
    gap: 0.45rem;
    padding: 0.55rem 0.6rem;
    text-align: center;
  }

  .stage .feature-layer h3 {
    font-size: 0.95rem;
  }

  .stage .feature-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(min(40%, 7.25rem), 1fr);
  }

  .stage .feature-layer button {
    min-height: 2.125rem;
    padding-block: 0.15rem;
    font-size: clamp(0.6875rem, 3vw, 0.75rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .stage .feature-buttons button {
    padding-inline: 0.225rem;
  }

  .stage .feature-detail p {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .stage .feature-detail p + p {
    font-size: 0.75rem;
  }

  .stage .feature-layer .feature-example-button {
    justify-self: center;
  }

  .stage #decision-layer {
    align-content: center;
    padding: 0.4rem 0.45rem;
    opacity: 1;
    pointer-events: auto;
  }

  .stage #feature-layer[aria-hidden="true"],
  .stage #decision-layer[aria-hidden="true"] {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .stage #visual > :is(#feature-layer, #decision-layer)[aria-hidden="true"] {
    display: none;
  }

  .stage #decision-layer .model-bar {
    display: none;
  }

  .stage .decision-case {
    gap: 0.3rem;
  }

  .stage .decision-case .alternatives {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 0.35rem;
  }

  .stage .decision-case .alternative {
    padding: 0.35rem 0.4rem;
    overflow-wrap: anywhere;
  }

  .stage .decision-case .alt-top {
    margin-bottom: 0.25rem;
    padding-bottom: 0.18rem;
    font-size: 0.8125rem;
    line-height: 1.25;
  }

  .stage #decision-layer .small-label {
    font-size: 0.575rem;
    line-height: 1.25;
  }

  .stage #decision-layer .condition,
  .stage .decision-case .alternative h3 {
    font-size: 0.75rem;
    line-height: 1.25;
  }

  .stage #decision-layer .condition {
    margin: 0.12rem 0 0.28rem;
  }

  .stage .decision-case .alternative h3 {
    margin-top: 0.12rem;
  }

  .stage .decision-case .context-bridge,
  .stage .decision-case .compare-note {
    font-size: 0.65rem;
    line-height: 1.25;
  }

  .stage #data-scene .table-structure text {
    font-size: 19px;
    letter-spacing: 0;
  }

  .stage #data-scene .table-structure .table-group-label {
    font-size: 22px;
  }

  .stage #feature-columns text:not(.table-group-label) {
    font-size: 16px;
  }

  .stage #data-scene .table-structure .table-example-label {
    font-size: 20px;
  }
}

@media (max-height: 360px) and (max-width: 1000px) {
  .stage .story-picture .feedback-center .brand-mark,
  .stage .signal-branches {
    display: none;
  }
}
