/*
Theme Name: 7 myths – Erasmus+ (Hand-drawn)
Theme URI:
Author: Jakub Marcinka | ByMarciPán
Description: Vícejazyčná prezentační šablona pro Erasmus+ KA2 projekt „7 myths“. Ručně kreslený styl: kresba modrým perem na bílém papíře, animované doodly (kruh 12 hvězd, mapa partnerských zemí, papírová vlaštovka), jen bílá a EU modrá. Fonty i skripty jsou hostované lokálně (GDPR).
Version: 7.1 (Hand-drawn · White + EU Blue · Admin-editable)
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nnts-erasmus
*/

/* ═════════════════════════════════════════════
   FONTS — self-hosted (assets/fonts), SIL OFL 1.1
   ═════════════════════════════════════════════ */
@font-face {
    font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url('assets/fonts/fraunces-latin-soft-normal.woff2') format('woff2-variations');
    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: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url('assets/fonts/fraunces-latin-ext-soft-normal.woff2') format('woff2-variations');
    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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
    font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap;
    src: url('assets/fonts/figtree-latin-wght-normal.woff2') format('woff2-variations');
    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: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap;
    src: url('assets/fonts/figtree-latin-ext-wght-normal.woff2') format('woff2-variations');
    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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
    font-family: 'Caveat'; font-style: normal; font-weight: 700; font-display: swap;
    src: url('assets/fonts/caveat-latin-700-normal.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: 'Caveat'; font-style: normal; font-weight: 700; font-display: swap;
    src: url('assets/fonts/caveat-latin-ext-700-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ═════════════════════════════════════════════
   TOKENS — strictly two colours: white + EU blue (Pantone Reflex Blue, #003399).
   Every other value below is a mix of those two.
   ═════════════════════════════════════════════ */
:root {
    --white: #FFFFFF;
    --blue: #003399;
    --blue-soft: #3D64B2;      /* 76 % blue on white — secondary text (AA 5.6:1) */
    --tint: #F2F5FA;           /*  5 % blue on white — alternate sections */
    --tint-2: #E0E7F3;         /* 12 % blue on white — fills, hover */
    --line: rgba(0, 51, 153, 0.22);
    --on-blue-soft: rgba(255, 255, 255, 0.82);
    --on-blue-line: rgba(255, 255, 255, 0.35);

    --surface: var(--white);   /* background of the current section (used by sketch shadows) */

    --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
    --font-body: 'Figtree', 'Segoe UI', system-ui, sans-serif;
    --font-hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;

    /* hand-drawn corners: every box is a little lopsided */
    --sketch-btn: 255px 18px 225px 18px / 18px 225px 18px 255px;
    --sketch-card: 16px 5px 18px 7px / 7px 18px 5px 16px;
    --sketch-round: 58% 42% 52% 48% / 46% 56% 44% 54%;

    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --ease-pen: cubic-bezier(0.45, 0.05, 0.3, 1);
    --nav-h: 84px;

    --wave-blue: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8' preserveAspectRatio='none'%3E%3Cpath d='M1 5C15 2.5 30 6.5 45 4.2S75 2 90 4.8 110 6 119 3.5' fill='none' stroke='%23003399' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
    --wave-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8' preserveAspectRatio='none'%3E%3Cpath d='M1 5C15 2.5 30 6.5 45 4.2S75 2 90 4.8 110 6 119 3.5' fill='none' stroke='%23ffffff' stroke-opacity='.45' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
    --ring-blue: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Cpath d='M44 6C33 1 12 3 6 14 1 25 14 36 32 36S58 26 55 16C53 9 44 5 30 5.5' fill='none' stroke='%23003399' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    --tick-blue: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 11C5 13 7 15 8.5 17 11 11 14 7 18 3' fill='none' stroke='%23003399' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ═════ BASE ═════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    background: var(--white);
    color: var(--blue);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
::selection { background: var(--blue); color: var(--white); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-variation-settings: 'SOFT' 100;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.012em;
    color: inherit;
    text-wrap: balance;
}
p { text-wrap: pretty; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
a:hover { text-decoration-style: wavy; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2.5px dashed var(--blue); outline-offset: 4px; border-radius: 6px; }
.myths-section :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.container.narrow { max-width: 760px; }
section[id], header[id] { scroll-margin-top: calc(var(--nav-h) - 10px); }

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 2000;
    background: var(--blue); color: var(--white); padding: 10px 16px; border-radius: var(--sketch-btn);
    font-weight: 700; text-decoration: none; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.nnts-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--blue); z-index: 1100; border-radius: 0 3px 3px 0; }

/* ═════════════════════════════════════════════
   DRAW-IN — any <svg data-draw> gets .is-drawn when it enters the viewport;
   its .draw paths (pathLength="1") are then inked in one after another.
   Without JS everything is simply shown finished.
   ═════════════════════════════════════════════ */
.js :is([data-draw], .hero-map) .draw { stroke-dasharray: 1 2; stroke-dashoffset: 1.02; }
.js :is([data-draw], .hero-map).is-drawn .draw {
    animation: nnts-draw var(--t, 1s) var(--ease-pen) var(--d, 0s) forwards;
}
@keyframes nnts-draw { to { stroke-dashoffset: 0; } }

/* ═════ NAV ═════ */
.site-nav { position: fixed; inset: 0 0 auto 0; z-index: 1000; background: var(--white); transition: box-shadow .3s var(--ease); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--nav-h); }
.nav-line { position: absolute; left: 0; bottom: -4px; width: 100%; height: 8px; color: var(--blue); opacity: 0; transition: opacity .3s var(--ease); }
.site-nav.scrolled .nav-line { opacity: .5; }

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo:hover { text-decoration: none; }
.logo-star { width: 34px; height: 34px; flex-shrink: 0; transition: transform .5s var(--ease); }
.nav-logo:hover .logo-star { transform: rotate(-24deg) scale(1.08); }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-name { font-family: var(--font-display); font-variation-settings: 'SOFT' 100; font-weight: 700; font-size: 23px; letter-spacing: -0.01em; }
.nav-logo-sub { font-family: var(--font-hand); font-size: 17px; color: var(--blue-soft); margin-top: 3px; }

.site-nav .nav-links { display: flex; align-items: center; gap: 26px; }
.site-nav .nav-links > li > a:not(.lang-btn) {
    font-weight: 600; font-size: 15px; text-decoration: none; padding: 6px 0;
    background: var(--wave-blue) left bottom / 0% 6px no-repeat;
    transition: background-size .35s var(--ease-pen);
}
.site-nav .nav-links > li > a:not(.lang-btn):hover,
.site-nav .nav-links > li > a.is-active { background-size: 100% 6px; }

.lang-switcher { display: flex; gap: 4px; font-weight: 700; font-size: 13.5px; }
.lang-btn { display: inline-grid; place-items: center; width: 38px; height: 30px; text-decoration: none; color: var(--blue-soft); border-radius: 6px; }
.lang-btn:hover { color: var(--blue); text-decoration: none; background: var(--tint); }
.lang-btn.active { color: var(--blue); background: var(--ring-blue) center / 100% 100% no-repeat; }

.burger { display: none; width: 46px; height: 46px; border: 2px solid var(--blue); border-radius: var(--sketch-round); background: var(--white); cursor: pointer; z-index: 1200; flex-shrink: 0; }
.burger svg { width: 100%; height: 100%; }
.burger path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; transform-box: fill-box; transform-origin: center; transition: transform .35s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] .b1 { transform: translateY(6.8px) rotate(42deg); }
.burger[aria-expanded="true"] .b2 { opacity: 0; }
.burger[aria-expanded="true"] .b3 { transform: translateY(-6.6px) rotate(-40deg); }

/* logged-in admin bar sits above the fixed nav */
.admin-bar .site-nav { top: 32px; }
.admin-bar .site-nav .nav-links { top: calc(var(--nav-h) + 32px); }
@media (max-width: 782px) { .admin-bar .site-nav { top: 46px; } .admin-bar .site-nav .nav-links { top: calc(var(--nav-h) + 46px); } }
@media (max-width: 600px) { .admin-bar .site-nav { top: 0; } .admin-bar .site-nav .nav-links { top: var(--nav-h); } }

/* ═════ BUTTONS — lopsided pen outline with an offset second stroke ═════ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 28px; border: 2px solid var(--blue); border-radius: var(--sketch-btn);
    font-family: var(--font-body); font-weight: 700; font-size: 16px; line-height: 1.2;
    text-decoration: none; cursor: pointer; background: var(--white); color: var(--blue);
    box-shadow: 4px 5px 0 -2px var(--surface), 4px 5px 0 0 var(--blue);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn:hover { text-decoration: none; transform: translate(-1px, -2px) rotate(-1deg); box-shadow: 6px 8px 0 -2px var(--surface), 6px 8px 0 0 var(--blue); }
.btn:active { transform: translate(3px, 4px); box-shadow: 0 0 0 -2px var(--surface), 0 0 0 0 var(--blue); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-ghost:hover { background: var(--tint); }
.doodle-arrow { flex-shrink: 0; transition: transform .25s var(--ease); }
.btn:hover .doodle-arrow { transform: translateX(4px) rotate(-4deg); }

/* ═════ SECTIONS ═════ */
.section { padding: 110px 0; background: var(--surface); }
.section--tint { --surface: var(--tint); }
.section-header { max-width: 680px; margin-bottom: 60px; }
.section-header h2 { font-size: clamp(32px, 4.2vw, 50px); }
.title-squiggle { display: block; width: 140px; height: 16px; margin: 12px 0 0 2px; color: var(--blue); overflow: visible; }
.section-desc { margin-top: 20px; color: var(--blue-soft); font-size: 18px; max-width: 60ch; }
.section-tag { display: inline-block; font-family: var(--font-hand); font-size: 30px; line-height: 1; margin-bottom: 14px; transform: rotate(-3deg); transform-origin: left; }

/* ═════ HERO ═════ */
.hero { position: relative; padding: calc(var(--nav-h) + 56px) 0 0; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(circle at 1px 1px, rgba(0, 51, 153, 0.16) 1.3px, transparent 1.8px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding-bottom: 80px; }
.hero-content { max-width: 640px; }
.hero-kicker { display: inline-block; font-family: var(--font-hand); font-size: 28px; line-height: 1; margin-bottom: 26px; transform: rotate(-2.5deg); transform-origin: left; }
.hero-title { font-size: clamp(40px, 5.4vw, 72px); font-weight: 650; line-height: 1.02; letter-spacing: -0.025em; margin-bottom: 28px; }
.hero-line { display: block; padding-bottom: 0.06em; }
.hero-line + .hero-line { margin-top: 0.12em; }
.hero-desc { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--blue-soft); line-height: 1.7; max-width: 54ch; margin-bottom: 38px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 44px; }

.eu-badge { display: inline-flex; align-items: center; gap: 12px; font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 14px; font-weight: 700; line-height: 1.25; color: var(--blue); }
.eu-flag { width: 57px; height: 38px; flex-shrink: 0; display: block; }
.eu-badge--hero span { max-width: 18ch; }

/* write-on sequence for the hero (page load only) */
.js .hero-line { clip-path: inset(-12% 102% -18% 0); animation: nnts-write 1.05s var(--ease-pen) calc(0.25s + var(--i) * 0.6s) forwards; }
@keyframes nnts-write { to { clip-path: inset(-12% -3% -18% 0); } }
.js .hero-kicker, .js .hero-desc, .js .hero-btns, .js .eu-badge--hero { opacity: 0; animation: nnts-fade .7s var(--ease) forwards; }
.js .hero-kicker { animation-delay: .05s; }
.js .hero-desc { animation-delay: 1.35s; }
.js .hero-btns { animation-delay: 1.6s; }
.js .eu-badge--hero { animation-delay: 1.85s; }
@keyframes nnts-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hero-visual { position: relative; }
.hero-map { display: block; width: 100%; max-width: 580px; margin-left: auto; overflow: visible; color: var(--blue); }
.hero-map .globe { opacity: .3; }
.hero-map .labels text { font-family: var(--font-hand); font-size: 25px; stroke: none; }
.hero-map .labels path { fill: none; }
.hero-map .note text { font-family: var(--font-hand); font-size: 30px; fill: currentColor; }
.hero-map .hs { transform-box: fill-box; transform-origin: center; }
.hero-map.is-drawn .hs { animation: nnts-twinkle 5s ease-in-out calc(2.4s + var(--i) * -0.41s) infinite; }
@keyframes nnts-twinkle { 0%, 100% { transform: rotate(0) scale(1); } 30% { transform: rotate(-8deg) scale(1.1); } 60% { transform: rotate(5deg) scale(0.96); } }
.plane-wrap { color: var(--blue); }

.js .hero-map .pin { transform: scale(0); }
.js .hero-map.is-drawn .pin { animation: nnts-pop .55s cubic-bezier(.3, 1.7, .5, 1) calc(1.9s + var(--i) * 0.18s) forwards; }
@keyframes nnts-pop { to { transform: scale(1); } }
.js .hero-map .lbl text, .js .hero-map .note, .js .hero-map .plane-wrap { opacity: 0; }
.js .hero-map.is-drawn .lbl text { animation: nnts-fade-svg .5s var(--ease) calc(2.1s + var(--i) * 0.15s) forwards; }
.js .hero-map.is-drawn .note { animation: nnts-fade-svg .6s var(--ease) 2.6s forwards; }
.js .hero-map.is-drawn .plane-wrap { animation: nnts-fade-svg .4s linear 3s forwards; }
@keyframes nnts-fade-svg { to { opacity: 1; } }

/* sticky-note myth teaser, taped over the corner of the map */
.hero-note {
    position: absolute; right: -12px; bottom: -62px; width: min(290px, 58%);
    display: flex; flex-direction: column; gap: 10px;
    padding: 30px 24px 20px; background: var(--white); color: var(--blue);
    border: 2px solid var(--blue); border-radius: 4px 6px 18px 5px / 5px 4px 6px 16px;
    box-shadow: 7px 8px 0 -2px var(--surface), 7px 8px 0 0 var(--blue);
    text-decoration: none; transform: rotate(2.5deg);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.hero-note:hover { text-decoration: none; transform: rotate(0.5deg) translateY(-4px); box-shadow: 10px 12px 0 -2px var(--surface), 10px 12px 0 0 var(--blue); }
.js .hero-note { opacity: 0; animation: nnts-pin-note .7s cubic-bezier(.3, 1.4, .5, 1) 2.8s forwards; }
@keyframes nnts-pin-note { from { opacity: 0; transform: rotate(8deg) translate(20px, 30px) scale(.9); } to { opacity: 1; transform: rotate(2.5deg); } }
.tape {
    position: absolute; top: -14px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%) rotate(3deg);
    background: repeating-linear-gradient(135deg, rgba(0, 51, 153, .16) 0 5px, rgba(0, 51, 153, .08) 5px 10px);
    border: 1.5px solid rgba(0, 51, 153, .35); border-radius: 2px;
}
.hero-note-kicker { font-family: var(--font-hand); font-size: 22px; line-height: 1; color: var(--blue-soft); }
.hero-note-text { font-family: var(--font-display); font-variation-settings: 'SOFT' 100; font-size: 20px; font-weight: 600; line-height: 1.3; }
.hero-note-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.hero-note-prompt { font-family: var(--font-hand); font-size: 30px; line-height: 1; transform: rotate(-4deg); }
.hero-note-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; }
.hero-note:hover .doodle-arrow { transform: translateX(4px); }

.hand-divider { display: block; width: 100%; height: 24px; color: var(--blue); overflow: visible; }

/* ═════ ABOUT ═════ */
.about-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 72px; align-items: start; }
.about-lead { font-family: var(--font-display); font-variation-settings: 'SOFT' 100; font-size: clamp(22px, 2.3vw, 29px); font-weight: 500; line-height: 1.42; }
.about-body { margin-top: 22px; color: var(--blue-soft); font-size: 17.5px; line-height: 1.75; max-width: 62ch; }
.about-figure { margin-top: 36px; max-width: 380px; }
.talk-doodle { width: 100%; height: auto; color: var(--blue); overflow: visible; }
.talk-dots circle { opacity: 0; }
.talk-q, .talk-heart { opacity: 0; transform-box: fill-box; transform-origin: center; }
.talk-doodle.is-drawn .talk-dots circle { animation: nnts-dot 1.4s ease-in-out 2.4s infinite; }
.talk-doodle.is-drawn .talk-dots circle:nth-child(2) { animation-delay: 2.6s; }
.talk-doodle.is-drawn .talk-dots circle:nth-child(3) { animation-delay: 2.8s; }
.talk-doodle.is-drawn .talk-q { animation: nnts-fade-svg .3s 3.6s forwards; }
.talk-doodle.is-drawn .talk-heart { animation: nnts-heart 3.2s ease-in-out 2.2s infinite; }
@keyframes nnts-dot { 0%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
@keyframes nnts-heart { 0% { opacity: 0; transform: translateY(8px) scale(.6); } 25% { opacity: 1; transform: translateY(0) scale(1); } 70% { opacity: 1; transform: translateY(-10px) scale(1); } 100% { opacity: 0; transform: translateY(-22px) scale(.8); } }
html:not(.js) .talk-dots circle, html:not(.js) .talk-q, html:not(.js) .talk-heart { opacity: 1; }

.about-points { display: grid; gap: 34px; }
.about-point { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.doodle-icon { width: 52px; height: 52px; color: var(--blue); overflow: visible; }
.about-point h3 { font-size: 21px; margin-bottom: 8px; }
.about-point p { color: var(--blue-soft); font-size: 16.5px; }
.goal-list { display: grid; gap: 8px; margin-top: 6px; color: var(--blue-soft); font-size: 16.5px; }
.goal-list li { padding-left: 30px; background: var(--tick-blue) left 3px / 20px 20px no-repeat; }

.project-facts { display: grid; grid-template-columns: 1fr 1fr 1fr 1.7fr; gap: 26px; margin-top: 84px; }
.fact {
    position: relative; padding: 22px 22px 20px; background: var(--white);
    border: 2px solid var(--blue); border-radius: var(--sketch-card);
    box-shadow: 5px 6px 0 -2px var(--surface), 5px 6px 0 0 var(--blue);
}
.fact:nth-child(odd) { transform: rotate(-0.8deg); }
.fact:nth-child(even) { transform: rotate(0.6deg); }
.fact dt { font-family: var(--font-hand); font-size: 22px; line-height: 1.05; color: var(--blue-soft); margin-bottom: 8px; }
.fact dd { font-family: var(--font-display); font-variation-settings: 'SOFT' 100; font-size: 26px; font-weight: 650; line-height: 1.15; }
.fact dd small { display: block; font-family: var(--font-body); font-size: 13.5px; font-weight: 700; letter-spacing: .04em; color: var(--blue-soft); margin-top: 4px; }
.fact-number { font-size: 16px !important; font-family: var(--font-body) !important; font-weight: 700 !important; letter-spacing: .02em; word-break: break-all; }

/* ═════ MYTHS — full-bleed EU-blue sheet with hand-cut edges ═════ */
.myths-section { position: relative; color: var(--white); --surface: var(--blue); }
.edge { display: block; width: 100%; height: 26px; color: var(--blue); }
.edge--top { margin-bottom: -1px; }
.edge--bottom { margin-top: -1px; }
.myths-body { background: var(--blue); padding: 84px 0 96px; }
.myths-section .section-desc { color: var(--on-blue-soft); }

.myths-list { max-width: 880px; }
.myth-item { background: var(--wave-white) left top / 100% 8px no-repeat; }
.myth-item:last-child { padding-bottom: 8px; background: var(--wave-white) left top / 100% 8px no-repeat, var(--wave-white) left bottom / 100% 8px no-repeat; }
.myth-summary { display: grid; grid-template-columns: 64px 1fr 34px; gap: 20px; align-items: center; padding: 28px 4px; cursor: pointer; list-style: none; }
.myth-summary::-webkit-details-marker { display: none; }
.myth-index { justify-self: center; font-family: var(--font-display); font-variation-settings: 'SOFT' 100; font-weight: 700; font-size: 32px; line-height: 1; }
.myth-head { display: block; }
.myth-eyebrow { display: block; font-family: var(--font-hand); font-size: 21px; line-height: 1; color: var(--on-blue-soft); margin-bottom: 6px; }
.myth-title { font-family: var(--font-display); font-variation-settings: 'SOFT' 100; font-weight: 500; font-size: clamp(19px, 2.2vw, 25px); line-height: 1.3; transition: opacity .4s var(--ease); }
.myth-item[open] .myth-title { opacity: .72; }
.myth-toggle { width: 30px; height: 30px; transition: transform .35s var(--ease); }
.myth-summary:hover .myth-toggle { transform: rotate(18deg); }
.myth-item[open] .myth-toggle { transform: rotate(135deg); }
.myth-body { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 0 4px 34px; }
.myth-item[open] .myth-body { animation: nnts-open .45s var(--ease); }
@keyframes nnts-open { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.fact-check { width: 44px; height: 44px; justify-self: center; color: var(--white); }
.fact-check path { stroke-dasharray: 1 2; stroke-dashoffset: 1.02; }
.myth-item[open] .fact-check path { animation: nnts-draw .55s var(--ease-pen) .5s forwards; }
.myth-fact { max-width: 64ch; }
.myth-fact strong { display: block; font-family: var(--font-hand); font-size: 28px; font-weight: 700; line-height: 1; margin-bottom: 8px; }
.myth-fact p, .myth-fact-text { font-size: 17.5px; line-height: 1.72; color: var(--on-blue-soft); }

/* side doodles: magnifier next to the myths, suitcase next to the timeline */
.myths-layout, .activities-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; }
.side-doodle { position: sticky; top: calc(var(--nav-h) + 40px); }
.magnifier { width: 100%; max-width: 280px; color: var(--white); overflow: visible; }
.mag-dot, .mag-sparks { opacity: 0; }
.magnifier.is-drawn .mag-dot { animation: nnts-fade-svg .3s 2.4s forwards; }
.magnifier.is-drawn .mag-sparks { animation: nnts-spark 2.4s ease-in-out 2.6s infinite; }
@keyframes nnts-spark { 0%, 100% { opacity: 0; } 30%, 70% { opacity: 1; } }
.side-note { font-family: var(--font-hand); font-size: 26px; line-height: 1.15; margin-top: 8px; transform: rotate(-3deg); max-width: 14ch; }
.suitcase { width: 100%; max-width: 290px; color: var(--blue); overflow: visible; }
.suit-codes text { font-family: var(--font-display); font-variation-settings: 'SOFT' 100; font-weight: 700; font-size: 17px; opacity: 0; }
.suitcase.is-drawn .suit-codes text { animation: nnts-fade-svg .4s 2.5s forwards; }
html:not(.js) .mag-dot, html:not(.js) .suit-codes text { opacity: 1; }

/* ═════ CARDS (outputs, partners) — sketched paper cards ═════ */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 32px; }
.sketch-card {
    position: relative; display: flex; flex-direction: column; background: var(--white);
    border: 2px solid var(--blue); border-radius: var(--sketch-card);
    box-shadow: 6px 7px 0 -2px var(--surface), 6px 7px 0 0 var(--blue);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card-grid > .sketch-card:nth-child(3n+1) { transform: rotate(-0.7deg); }
.card-grid > .sketch-card:nth-child(3n+2) { transform: rotate(0.5deg); }
.card-grid > .sketch-card:nth-child(3n+3) { transform: rotate(-0.3deg); }
.card-grid > .sketch-card:hover { transform: rotate(0) translate(-2px, -4px); box-shadow: 9px 11px 0 -2px var(--surface), 9px 11px 0 0 var(--blue); }

.duotone { filter: url(#nnts-duotone); }

.output-media { height: 210px; display: grid; place-items: center; background: var(--tint); border-bottom: 2px solid var(--blue); border-radius: 14px 4px 0 0 / 6px 16px 0 0; overflow: hidden; }
.output-media img { width: 100%; height: 100%; object-fit: cover; }
.output-media .doodle-icon { width: 84px; height: 84px; }
.output-content { padding: 26px 28px 28px; }
.output-content h3 { font-size: 22px; margin-bottom: 10px; }
.output-content p { color: var(--blue-soft); font-size: 16px; }
.output-details { margin-top: 18px; padding-top: 14px; background: var(--wave-blue) left top / 100% 6px no-repeat; }
.output-details summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-weight: 700; font-size: 15px; }
.output-details summary::-webkit-details-marker { display: none; }
.output-details summary::after { content: '+'; margin-left: auto; font-family: var(--font-hand); font-size: 30px; line-height: .6; transition: transform .3s var(--ease); }
.output-details[open] summary::after { transform: rotate(45deg); }
.output-details-content { margin-top: 12px; color: var(--blue-soft); font-size: 15.5px; }
.output-details-content > * + * { margin-top: 10px; }
.output-details-content h2, .output-details-content h3, .output-details-content h4 { font-size: 18px; line-height: 1.3; color: var(--blue); margin-top: 16px; }
.output-details-content :is(ul, ol) { display: grid; gap: 6px; }
.output-details-content ul li { padding-left: 24px; background: var(--tick-blue) left 4px / 16px 16px no-repeat; }
.output-details-content ol { list-style: decimal; padding-left: 1.3em; }
.output-details-content :is(img, iframe, video) { max-width: 100%; height: auto; border-radius: 6px; }
.output-details-content a { font-weight: 700; }

.sketch-card.partner { padding: 28px 28px 30px; }
.partner-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; min-height: 76px; }
.partner-logo { max-width: 55%; }
.partner-logo img { max-height: 64px; width: auto; object-fit: contain; }
.stamp { width: 124px; height: 72px; margin-left: auto; color: var(--blue); transform: rotate(-9deg); overflow: visible; flex-shrink: 0; }
.stamp text { font-family: var(--font-display); font-variation-settings: 'SOFT' 100; font-weight: 700; font-size: 23px; fill: currentColor; }
.sketch-card.partner h3 { font-size: 22px; margin-bottom: 4px; }
.partner-country { font-family: var(--font-hand); font-size: 23px; line-height: 1.1; margin-bottom: 12px; color: var(--blue-soft); }
.sketch-card.partner p:not(.partner-country) { color: var(--blue-soft); font-size: 16px; }

.empty-note {
    grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; padding: 28px 30px;
    border: 2px dashed var(--line); border-radius: var(--sketch-card); color: var(--blue-soft); font-size: 17px;
}
.empty-note .doodle-icon { width: 44px; height: 44px; flex-shrink: 0; }

/* ═════ TIMELINE — a wiggly route inked in as you scroll, with a paper plane at its tip ═════ */
.timeline-wrap { position: relative; max-width: 820px; }
.timeline-route { position: absolute; left: 0; top: 10px; width: 40px; height: calc(100% - 20px); color: var(--blue); overflow: visible; }
.timeline-route .route-base { opacity: .35; }
.timeline-route .route-ink { stroke-dasharray: 1 2; stroke-dashoffset: 1.02; }
html:not(.js) .timeline-route .route-ink, html:not(.js) .timeline-plane { display: none; }
.timeline-route .route-base { opacity: .35; }
.timeline-plane { position: absolute; left: 20px; top: 10px; width: 34px; height: 25px; color: var(--blue); opacity: 0; transform: translate(-50%, -50%) rotate(90deg); pointer-events: none; z-index: 2; transition: opacity .3s; }
.timeline { position: relative; padding-left: 84px; }
.timeline-item { position: relative; padding: 18px 0 46px; }
.timeline-item:last-child { padding-bottom: 8px; }
.timeline-num {
    position: absolute; left: -84px; top: 16px; width: 40px; height: 40px; display: grid; place-items: center;
    background: var(--surface); border-radius: 50%;
    font-family: var(--font-display); font-variation-settings: 'SOFT' 100; font-weight: 700; font-size: 19px;
}
.timeline-date { font-family: var(--font-hand); font-size: 27px; line-height: 1; margin-bottom: 8px; color: var(--blue-soft); }
.timeline-card h3 { font-size: 24px; margin-bottom: 8px; }
.timeline-card p:not(.timeline-date) { color: var(--blue-soft); font-size: 16.5px; max-width: 60ch; }

/* ═════ CONTACT — an Erasmus+ postcard ═════ */
.postcard {
    position: relative; display: grid; grid-template-columns: 1fr 14px 1fr; gap: 0 36px;
    max-width: 1040px; padding: 52px 56px; background: var(--white);
    border: 2px solid var(--blue); border-radius: 6px 10px 8px 12px / 12px 6px 10px 8px;
    box-shadow: 9px 10px 0 -2px var(--surface), 9px 10px 0 0 var(--blue);
    transform: rotate(-0.8deg); transition: transform .4s var(--ease);
}
.postcard:hover { transform: rotate(0deg); }
.postcard::before { /* faint airmail stripe along the top edge */
    content: ''; position: absolute; left: 16px; right: 16px; top: 12px; height: 7px; border-radius: 2px;
    background: repeating-linear-gradient(135deg, var(--blue) 0 14px, transparent 14px 28px); opacity: .5;
}
.postcard-message { display: flex; flex-direction: column; gap: 18px; padding-top: 10px; }
.postcard-greeting { font-family: var(--font-hand); font-size: 36px; line-height: 1.05; transform: rotate(-2deg); transform-origin: left; }
.postcard-text { font-family: var(--font-hand); font-size: 26px; line-height: 1.35; color: var(--blue); max-width: 30ch; }
.postcard-sign { font-family: var(--font-hand); font-size: 24px; color: var(--blue-soft); }
.postcard-sign::before { content: '— '; }
.postcard .btn-send { align-self: flex-start; margin-top: 8px; }
.postcard-rule { width: 14px; opacity: .55; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 400' preserveAspectRatio='none'%3E%3Cpath d='M6 4C4 60 8 120 6 180S4 300 6 396' fill='none' stroke='%23003399' stroke-width='2' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.postcard-address { display: flex; flex-direction: column; gap: 22px; padding-top: 6px; }
.postcard-stamps { display: flex; justify-content: flex-end; align-items: flex-start; gap: 4px; min-height: 112px; }
.postcard-stamps .stamp { width: 130px; height: 76px; margin: 22px -34px 0 0; transform: rotate(-14deg); position: relative; z-index: 1; }
.postage { width: 88px; height: 106px; color: var(--blue); transform: rotate(4deg); flex-shrink: 0; }
.postage text { font-family: var(--font-hand); font-size: 13px; }
.js .postcard .stamp { opacity: 0; }
.js .postcard .stamp.is-drawn { animation: nnts-thud .5s cubic-bezier(.3, 1.6, .5, 1) .6s forwards; }
@keyframes nnts-thud { 0% { opacity: 0; transform: rotate(-14deg) scale(1.6); } 60% { opacity: 1; transform: rotate(-14deg) scale(.94); } 100% { opacity: 1; transform: rotate(-14deg) scale(1); } }
.postcard-lines { display: grid; gap: 4px; }
.postcard-lines > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: baseline; padding: 10px 0 12px; background: var(--wave-blue) left bottom / 100% 6px no-repeat; }
.postcard-lines dt { font-family: var(--font-hand); font-size: 21px; line-height: 1.1; color: var(--blue-soft); }
.postcard-lines dd { font-weight: 700; font-size: 16.5px; word-break: break-word; }
.postcard-social { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.send-plane { width: 28px; height: 20px; color: var(--white); flex-shrink: 0; transition: transform .3s var(--ease); }
.send-plane path:first-child { fill: var(--blue); }
.btn-send:hover .send-plane { transform: translate(4px, -4px) rotate(-12deg); }

/* ═════ MYTH TRACKER — a star for every busted myth ═════ */
.myth-tracker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 26px; }
.tracker-stars { display: flex; gap: 6px; }
.t-star { width: 30px; height: 30px; overflow: visible; }
.t-star path { fill: transparent; stroke: var(--white); stroke-width: 1.8; stroke-linejoin: round; transition: fill .3s var(--ease); transform-box: fill-box; transform-origin: center; }
.t-star.is-on path { fill: var(--white); animation: nnts-star-pop .5s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes nnts-star-pop { 0% { transform: scale(.4) rotate(-40deg); } 100% { transform: scale(1) rotate(0); } }
.tracker-label { font-family: var(--font-hand); font-size: 24px; line-height: 1; }
.myth-tracker.is-done .t-star path { animation: nnts-star-dance 1.1s ease-in-out calc(var(--i, 0) * .07s) 2; }
@keyframes nnts-star-dance { 0%, 100% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-9px) rotate(-16deg); } 70% { transform: translateY(2px) rotate(8deg); } }

/* ═════ FUNDING STRIP (on every page, above the footer) ═════ */
.funding { padding: 44px 0; background: var(--white); background-image: var(--wave-blue); background-size: 100% 8px; background-repeat: no-repeat; background-position: left top; }
.funding-inner { display: flex; align-items: center; gap: 40px; }
.funding .eu-badge { flex-shrink: 0; font-size: 15px; }
.funding .eu-flag { width: 72px; height: 48px; }
.funding .eu-badge span { max-width: 17ch; }
.funding p { font-size: 13.5px; line-height: 1.7; color: var(--blue-soft); max-width: 90ch; }

/* ═════ FOOTER ═════ */
.site-footer { position: relative; overflow: hidden; padding: 84px 0 72px; background: var(--blue); color: var(--white); --surface: var(--blue); }
.footer-ring { position: absolute; right: -210px; top: 50%; width: 480px; height: 480px; margin-top: -240px; color: var(--white); opacity: .14; pointer-events: none; }
.footer-grid { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 56px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-variation-settings: 'SOFT' 100; font-weight: 700; font-size: 26px; margin-bottom: 14px; }
.footer-brand p:not(.footer-logo) { color: var(--on-blue-soft); max-width: 42ch; font-size: 16px; }
.footer-col h2 { font-family: var(--font-hand); font-size: 27px; font-weight: 700; line-height: 1; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { color: var(--on-blue-soft); text-decoration: none; font-weight: 500; }
.footer-col a:hover { color: var(--white); text-decoration: underline wavy; text-underline-offset: 5px; }
.footer-number { color: var(--on-blue-soft); font-size: 14px; word-break: break-all; }
.footer-bottom { position: relative; padding-top: 26px; background: var(--wave-white) left top / 100% 7px no-repeat; font-size: 14px; color: var(--on-blue-soft); }

/* ═════ NEWS ═════ */
.news-card { overflow: hidden; }
.news-media { display: block; height: 190px; border-bottom: 2px solid var(--blue); border-radius: 14px 4px 0 0 / 6px 16px 0 0; overflow: hidden; background: var(--tint); }
.news-media img { width: 100%; height: 100%; object-fit: cover; }
.news-content { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-date { font-family: var(--font-hand); font-size: 22px; line-height: 1; color: var(--blue-soft); }
.news-card h3, .news-h { font-size: 21px; }
.news-card h3 a, .news-h a { text-decoration: none; }
.news-card h3 a:hover, .news-h a:hover { text-decoration: underline wavy; }
.news-card p { color: var(--blue-soft); font-size: 16px; }
.news-more, .partner-web { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; text-decoration: none; padding-top: 6px; }
.partner-web { margin-top: 14px; }
.news-more:hover .doodle-arrow, .partner-web:hover .doodle-arrow { transform: translateX(4px); }
.news-all { margin-top: 44px; }
.btn-small { padding: 10px 20px; font-size: 14.5px; margin-top: 18px; }
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border: 2px solid var(--blue); border-radius: var(--sketch-round); text-decoration: none; font-weight: 700; }
.pagination .page-numbers.current { background: var(--blue); color: var(--white); }
.entry-thumb { margin: 30px 0 0; }
.entry-thumb img { border: 2px solid var(--blue); border-radius: var(--sketch-card); }
.entry-back { margin-top: 48px; }
.page-section .entry-content { margin-top: 0; }
.entry-content .alignwide { max-width: min(1100px, 92vw); margin-left: 50%; transform: translateX(-50%); }
.entry-content .wp-block-button__link { background: var(--blue); color: var(--white); border-radius: var(--sketch-btn); padding: 12px 24px; font-weight: 700; text-decoration: none; }
.entry-content .wp-block-image img { border-radius: var(--sketch-card); }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content td, .entry-content th { border: 1.5px solid var(--line); padding: 8px 12px; text-align: left; }
.myth-fact-text p + p, .timeline-text p + p { margin-top: 10px; }
.myth-fact-text a { color: var(--white); }
.timeline-text { color: var(--blue-soft); font-size: 16.5px; max-width: 60ch; }

/* ═════ BACK TO TOP ═════ */
.back-to-top {
    position: fixed; right: 24px; bottom: 24px; z-index: 900; width: 52px; height: 52px; display: grid; place-items: center;
    background: var(--white); color: var(--blue); border: 2px solid var(--blue); border-radius: var(--sketch-round);
    box-shadow: 3px 4px 0 0 var(--blue); cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(10px) rotate(-8deg);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { transform: translateY(-3px) rotate(6deg); }

/* ═════ FALLBACK PAGES ═════ */
.page-wrap { padding: calc(var(--nav-h) + 70px) 0 100px; }
.entry-title { font-size: clamp(34px, 4.6vw, 54px); margin-bottom: 14px; }
.entry-content { margin-top: 30px; font-size: 18px; line-height: 1.8; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: 30px; margin-top: 1.6em; }
.entry-content ul { list-style: none; padding-left: 0; }
.entry-content ul li { padding-left: 30px; background: var(--tick-blue) left 5px / 20px 20px no-repeat; }
.entry-content ol { list-style: decimal; padding-left: 1.4em; }
.entry-content blockquote { font-family: var(--font-display); font-size: 24px; padding-left: 24px; border-left: 3px solid var(--blue); }

/* ═════ RESPONSIVE ═════ */
@media (max-width: 1080px) {
    .myths-layout, .activities-layout { grid-template-columns: 1fr; }
    .side-doodle { display: none; }
    .site-nav .nav-links { gap: 18px; }
    .hero-inner { grid-template-columns: 1fr; gap: 24px; }
    .hero-content { max-width: 720px; }
    .hero-visual { max-width: 600px; margin: 0 auto; width: 100%; }
    .hero-map { margin: 0 auto; }
    .about-layout { grid-template-columns: 1fr; gap: 48px; }
    .project-facts { grid-template-columns: 1fr 1fr; }
    .postcard { grid-template-columns: 1fr; gap: 26px; padding: 44px 36px; }
    .postcard-rule { display: none; }
}
@media (max-width: 900px) {
    :root { --nav-h: 72px; }
    .burger { display: block; }
    .site-nav .nav-links {
        position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; z-index: 1000;
        flex-direction: column; align-items: stretch; gap: 0; padding: 18px 28px 40px; overflow-y: auto;
        background: var(--white); background-image: radial-gradient(circle at 1px 1px, rgba(0, 51, 153, 0.12) 1.2px, transparent 1.7px); background-size: 26px 26px;
        transform: translateX(100%); visibility: hidden; transition: transform .4s var(--ease), visibility .4s;
    }
    .site-nav .nav-links.open { transform: none; visibility: visible; }
    .site-nav .nav-links > li > a:not(.lang-btn) { display: block; padding: 14px 0; font-family: var(--font-display); font-variation-settings: 'SOFT' 100; font-size: 28px; font-weight: 600; background-position: left 80%; }
    .site-nav .nav-links.open > li { animation: nnts-fade .45s var(--ease) both; }
    .site-nav .nav-links.open > li:nth-child(2) { animation-delay: .04s; } .site-nav .nav-links.open > li:nth-child(3) { animation-delay: .08s; }
    .site-nav .nav-links.open > li:nth-child(4) { animation-delay: .12s; } .site-nav .nav-links.open > li:nth-child(5) { animation-delay: .16s; }
    .site-nav .nav-links.open > li:nth-child(6) { animation-delay: .2s; } .site-nav .nav-links.open > li:nth-child(7) { animation-delay: .24s; }
    .lang-item { margin-top: 20px; }
    .lang-btn { width: 48px; height: 38px; font-size: 16px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .funding-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .container { padding: 0 20px; }
    .section { padding: 76px 0; }
    .section-header { margin-bottom: 42px; }
    .hero { padding-top: calc(var(--nav-h) + 30px); }
    .hero-inner { padding-bottom: 48px; }
    .hero-btns { gap: 14px; }
    .hero-btns .btn { flex: 1 1 auto; }
    .hero-note { position: relative; left: auto; bottom: auto; width: auto; margin: -30px 8px 0; }
    .about-point { grid-template-columns: 44px 1fr; gap: 14px; }
    .doodle-icon { width: 44px; height: 44px; }
    .project-facts { grid-template-columns: 1fr; gap: 20px; margin-top: 56px; }
    .fact { transform: none !important; }
    .myths-body { padding: 60px 0 70px; }
    .myth-summary { grid-template-columns: 40px 1fr 26px; gap: 14px; padding: 22px 0; }
    .myth-index { font-size: 25px; }
    .myth-body { grid-template-columns: 40px 1fr; gap: 14px; padding: 0 0 28px; }
    .fact-check { width: 34px; height: 34px; }
    .card-grid { grid-template-columns: 1fr; gap: 30px; }
    .card-grid > .sketch-card { transform: none !important; }
    .timeline { padding-left: 64px; }
    .timeline-num { left: -64px; }
    .postcard { padding: 38px 22px 30px; transform: none; }
    .postcard-greeting { font-size: 30px; }
    .postcard-text { font-size: 23px; }
    .postcard-lines > div { grid-template-columns: 1fr; gap: 2px; }
    .postcard-stamps { justify-content: flex-start; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .back-to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
}

/* ═════ REDUCED MOTION — show every drawing finished, stop the line wobble ═════ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    [filter="url(#nnts-boil)"] { filter: none; }
    .js .hero-line { clip-path: none; }
    .js :is([data-draw], .hero-map) .draw, .timeline-route .route-ink { stroke-dashoffset: 0 !important; }
    .js .hero-map .pin { transform: none; }
    .hero-map .plane-wrap { display: none; }
    .timeline-plane { display: none; }
    .talk-dots circle, .talk-q, .mag-dot, .suit-codes text, .js .postcard .stamp { opacity: 1 !important; }
}

/* Rough Notation positions its SVG against the nearest positioned ancestor;
   anchoring every annotated element's parent keeps the drawings in place
   when accordions open and the layout above them shifts. */
.hero-content, .hero-note-foot, .section-header, .myth-summary, .myth-head, .timeline-item { position: relative; }

/* ═════ OUTPUTS: unlimited, typed, filterable ═════ */
.output-filter { display: flex; flex-wrap: wrap; gap: 10px 12px; margin: -18px 0 38px; }
.filter-tab {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; cursor: pointer;
    font: 700 15px/1.2 var(--font-body); color: var(--blue); background: var(--white);
    border: 2px solid var(--blue); border-radius: var(--sketch-btn);
    transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.filter-tab .doodle-icon { width: 24px; height: 24px; }
.filter-tab .count { font-family: var(--font-hand); font-size: 19px; line-height: 1; opacity: .75; }
.filter-tab:hover { transform: rotate(-1.5deg) translateY(-1px); }
.filter-tab.is-active { background: var(--blue); color: var(--white); }
.output-grid > .output.is-hidden { display: none; }
.output-grid > .output.is-in { animation: nnts-card-in .45s var(--ease) both; animation-delay: calc(var(--n, 0) * 40ms); }
@keyframes nnts-card-in { from { opacity: 0; transform: translateY(14px) rotate(1deg); } }
.output-media { text-decoration: none; }
.type-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -16px 22px 0; position: relative; z-index: 1; }
.type-chips li { padding: 2px 12px; background: var(--white); border: 1.5px solid var(--blue); border-radius: var(--sketch-btn); font-family: var(--font-hand); font-size: 20px; line-height: 1.2; transform: rotate(-2deg); }
.type-chips li:nth-child(even) { transform: rotate(1.5deg); }
.type-chips--static { margin: 0 0 18px; }
.type-chips--static a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.type-chips--static .doodle-icon { width: 22px; height: 22px; }
.output-content h3 a { text-decoration: none; }
.output-content h3 a:hover { text-decoration: underline wavy; text-underline-offset: 5px; }
.res-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.res-btn { gap: 8px; }
.res-btn .doodle-icon { width: 22px; height: 22px; flex-shrink: 0; }
.output-detail-link { margin-top: 14px; }
.outputs-more-wrap { margin-top: 40px; text-align: center; }
.outputs-archive { margin-top: 18px; text-align: center; }

.output-single .entry-title { max-width: 22ch; }
.page-lead-big { margin-top: 26px; max-width: 60ch; font-family: var(--font-display); font-variation-settings: 'SOFT' 100; font-size: clamp(20px, 2vw, 25px); line-height: 1.45; }
.output-single-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; margin-top: 40px; }
.output-files { position: sticky; top: calc(var(--nav-h) + 24px); padding: 24px; border: 2px solid var(--blue); border-radius: var(--sketch-card); box-shadow: 6px 7px 0 -2px var(--surface), 6px 7px 0 0 var(--blue); background: var(--white); }
.output-files h2 { font-family: var(--font-hand); font-size: 28px; font-weight: 700; margin-bottom: 14px; }
.output-files ul { display: grid; gap: 10px; }
.output-files .res-btn { width: 100%; justify-content: flex-start; text-align: left; }
.video-embed { position: relative; margin: 0 0 30px; }
.video-embed .video-play, .video-embed iframe {
    display: grid; place-items: center; align-content: center; gap: 10px; width: 100%; aspect-ratio: 16 / 9; border: 2px solid var(--blue);
    border-radius: var(--sketch-card); background: var(--blue); color: var(--white); cursor: pointer; font: 700 17px var(--font-body);
}
.video-embed .video-play .doodle-icon { width: 96px; height: 96px; color: var(--white); transition: transform .3s var(--ease); }
.video-embed .video-play:hover .doodle-icon { transform: scale(1.08) rotate(-4deg); }
.video-embed figcaption { margin-top: 8px; font-size: 13.5px; color: var(--blue-soft); }
@media (max-width: 1080px) { .output-single-grid { grid-template-columns: 1fr; } .output-files { position: static; } }
