/* =========================================================
   Paleawluang Witaya School — public theme v2
   Aurora / glass design · green + gold brand · light & dark
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
    --lime: #aad304;
    --lime-2: #c5f03a;
    --emerald: #22c55e;
    --teal: #2dd4bf;
    --gold: #fbbf24;
    --danger: #f43f5e;

    --font-body: 'Noto Sans Thai', 'IBM Plex Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-head: 'Prompt', 'Noto Sans Thai', system-ui, sans-serif;

    --radius: 22px;
    --radius-sm: 14px;
    --container: 1240px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 76px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --spring: cubic-bezier(.34, 1.56, .64, 1);

    --grad: linear-gradient(110deg, #e3ff8a 0%, var(--lime) 28%, var(--emerald) 58%, var(--teal) 100%);
    --grad-gold: linear-gradient(110deg, #fde68a, var(--gold) 50%, #f59e0b);
}

/* dark (default) */
:root,
[data-theme="dark"],
.dark-zone {
    --bg: #030b07;
    --bg-2: #06140e;
    --bg-3: #0a1d15;
    --surface: rgba(255, 255, 255, .045);
    --surface-2: rgba(255, 255, 255, .08);
    --surface-solid: #0b1c14;
    --border: rgba(255, 255, 255, .09);
    --border-strong: rgba(170, 211, 4, .35);
    --text: #e9f6ee;
    --text-strong: #ffffff;
    --muted: #93a99b;
    --shadow: 0 20px 60px -20px rgba(0, 0, 0, .7);
    --glass: rgba(6, 20, 14, .62);
    --text-grad: var(--grad);
}

[data-theme="light"] {
    --bg: #f5faf3;
    --bg-2: #ecf5e8;
    --bg-3: #e2efdc;
    --surface: #ffffff;
    --surface-2: #f2f8ef;
    --surface-solid: #ffffff;
    --border: rgba(16, 60, 30, .1);
    --border-strong: rgba(101, 163, 13, .45);
    --text: #12251a;
    --text-strong: #06140c;
    --muted: #587062;
    --shadow: 0 18px 50px -22px rgba(20, 70, 30, .35);
    --glass: rgba(255, 255, 255, .72);
    --text-grad: linear-gradient(110deg, #4d7c0f, #16a34a 50%, #0f766e);
}

/* zones that stay dark in both themes (heros, footer, video band) */
.hero, .page-hero, .article-hero, .site-footer, .section-dark, .preloader, .lightbox, .ticker {
    --bg: #030b07;
    --bg-2: #06140e;
    --surface: rgba(255, 255, 255, .05);
    --surface-2: rgba(255, 255, 255, .09);
    --border: rgba(255, 255, 255, .1);
    --text: #e9f6ee;
    --text-strong: #fff;
    --muted: #9fb5a7;
    --glass: rgba(6, 20, 14, .6);
    --text-grad: var(--grad);
    color-scheme: dark;
    color: var(--text);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color .4s var(--ease), color .4s var(--ease);
}
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--text-strong); line-height: 1.25; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input { font: inherit; color: inherit; }
kbd { font-family: var(--font-body); font-size: 11px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); }
::selection { background: var(--lime); color: #071005; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 8px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--lime), var(--emerald)); border-radius: 10px; border: 2px solid var(--bg); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 2; }
.container.narrow { max-width: 880px; }
.center { text-align: center; }
.mt-lg { margin-top: 48px; }
[hidden] { display: none !important; }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; background: var(--lime); color: #061005; padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 16px; }

.gradient-text {
    background: var(--text-grad);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: gradient-pan 8s linear infinite;
}
@keyframes gradient-pan { to { background-position: 200% center; } }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-head); font-size: 12.5px; font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase; color: var(--lime);
    margin-bottom: 12px;
}
[data-theme="light"] .eyebrow { color: #4d7c0f; }
[data-theme="light"] :is(.hero, .page-hero, .article-hero, .site-footer, .section-dark) .eyebrow { color: var(--lime); }
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--grad); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 500; background: rgba(170, 211, 4, .12); color: var(--lime); border: 1px solid rgba(170, 211, 4, .25); }
[data-theme="light"] .chip { color: #3f6212; background: rgba(132, 204, 22, .14); }
.chip-warn { background: rgba(251, 191, 36, .15); color: var(--gold); border-color: rgba(251, 191, 36, .35); margin-bottom: 14px; }

/* ---------- Buttons ---------- */
.btn {
    --pad: 13px 24px;
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: var(--pad); border-radius: 999px;
    font-family: var(--font-head); font-weight: 500; font-size: 15.5px; line-height: 1.2;
    transition: transform .35s var(--spring), box-shadow .35s var(--ease), background .3s, border-color .3s, color .3s;
    white-space: nowrap;
}
.btn-sm { --pad: 9px 16px; font-size: 14px; }
.btn-glow { background: var(--grad); background-size: 160% auto; color: #071005; box-shadow: 0 10px 30px -10px rgba(170, 211, 4, .7), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-glow::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .65) 50%, transparent 65%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(170, 211, 4, .85), inset 0 1px 0 rgba(255, 255, 255, .5); background-position: right center; }
.btn-glow:hover::after { transform: translateX(120%); }
.btn-ghost { background: var(--surface); color: var(--text-strong); border: 1px solid var(--border); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-ghost:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-2px); }
.icon-btn {
    width: 42px; height: 42px; border-radius: 14px; display: inline-grid; place-items: center;
    background: var(--surface); border: 1px solid var(--border); color: var(--text-strong);
    transition: background .25s, border-color .25s, transform .25s var(--spring);
    font-size: 17px;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--border-strong); transform: translateY(-1px); }

/* ---------- Preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #0c2a1b, #030b07 65%); transition: opacity .6s var(--ease), visibility .6s; }
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader-core { position: relative; width: 130px; height: 130px; display: grid; place-items: center; }
.preloader-core img { width: 60px; height: auto; animation: breathe 1.6s ease-in-out infinite; filter: drop-shadow(0 0 18px rgba(170, 211, 4, .55)); }
.preloader-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--lime); border-right-color: rgba(34, 197, 94, .5); animation: spin 1.1s linear infinite; }
.preloader-ring.r2 { inset: 14px; border-top-color: var(--gold); border-right-color: transparent; border-left-color: rgba(251, 191, 36, .4); animation-duration: 1.7s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.08); } }

.scroll-progress, .read-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 1001; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); box-shadow: 0 0 12px rgba(170, 211, 4, .8); }
.read-progress { z-index: 1002; height: 4px; }

/* ---------- Header / Nav ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 900; padding: 14px var(--gutter) 0; transition: padding .35s var(--ease); pointer-events: none; }
.nav-shell {
    pointer-events: auto;
    max-width: calc(var(--container) - 2 * 0px); margin-inline: auto;
    height: var(--header-h); padding: 0 12px 0 18px;
    display: flex; align-items: center; gap: 18px;
    border-radius: 22px; border: 1px solid transparent;
    transition: background .35s, border-color .35s, box-shadow .35s, height .35s var(--ease);
    /* over the dark hero */
    --text: #e9f6ee; --text-strong: #fff; --muted: #a9bdb0; --surface: rgba(255, 255, 255, .06); --surface-2: rgba(255, 255, 255, .12); --border: rgba(255, 255, 255, .12);
    color: var(--text);
}
.site-header.is-scrolled { padding-top: 10px; }
.site-header.is-scrolled .nav-shell {
    --header-h: 64px;
    background: var(--glass-nav, rgba(4, 16, 10, .72));
    backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-color: rgba(255, 255, 255, .08);
    box-shadow: 0 14px 40px -18px rgba(0, 0, 0, .65);
}
[data-theme="light"] .site-header.is-scrolled .nav-shell {
    --glass-nav: rgba(255, 255, 255, .8);
    --text: #12251a; --text-strong: #06140c; --muted: #587062; --surface: rgba(16, 60, 30, .05); --surface-2: rgba(16, 60, 30, .09); --border: rgba(16, 60, 30, .12);
    border-color: rgba(16, 60, 30, .08);
    box-shadow: 0 14px 40px -20px rgba(20, 70, 30, .35);
}
.site-header.is-hidden { transform: translateY(-120%); }
.site-header { transition: transform .4s var(--ease), padding .35s var(--ease); }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-emblem { width: 40px; height: auto; filter: drop-shadow(0 4px 12px rgba(170, 211, 4, .35)); transition: transform .5s var(--spring); }
.brand:hover .brand-emblem { transform: rotate(-8deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-family: var(--font-head); font-size: 17px; font-weight: 600; color: var(--text-strong); }
.brand-text small { font-size: 9.5px; letter-spacing: .22em; color: var(--muted); margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-link {
    position: relative; display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 13px; border-radius: 12px; font-size: 15px; font-weight: 500; color: var(--text);
    transition: color .25s, background .25s;
}
.nav-link > .bi:first-child { font-size: 15px; opacity: .75; }
.nav-link .caret { font-size: 11px; transition: transform .3s var(--ease); }
.nav-link:hover, .nav-link.is-active, .nav-dropdown.open > .nav-link { color: var(--text-strong); background: var(--surface); }
.nav-link.is-active::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 18px; height: 3px; border-radius: 3px; translate: -50% 0; background: var(--grad); box-shadow: 0 0 10px var(--lime); }

.nav-dropdown { position: relative; }
.dropdown-panel {
    position: absolute; top: calc(100% + 12px); left: 50%; translate: -50% 8px;
    min-width: 280px; max-width: 380px; max-height: min(70vh, 520px); overflow-y: auto;
    padding: 8px; border-radius: 18px;
    background: var(--surface-solid, #0b1c14); border: 1px solid var(--border);
    box-shadow: var(--shadow), 0 0 0 1px rgba(170, 211, 4, .05);
    opacity: 0; visibility: hidden; transition: opacity .25s, translate .3s var(--ease), visibility .25s;
    --surface-solid: rgba(8, 24, 16, .96);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
[data-theme="light"] .is-scrolled .dropdown-panel { --surface-solid: rgba(255, 255, 255, .97); }
.dropdown-panel::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.dropdown-right { left: auto; right: 0; translate: 0 8px; min-width: 190px; }
.nav-dropdown:hover > .dropdown-panel, .nav-dropdown:focus-within > .dropdown-panel, .nav-dropdown.open > .dropdown-panel { opacity: 1; visibility: visible; translate: -50% 0; }
.nav-dropdown:hover > .dropdown-right, .nav-dropdown:focus-within > .dropdown-right, .nav-dropdown.open > .dropdown-right { translate: 0 0; }
.nav-dropdown:hover > .nav-link .caret, .nav-dropdown.open > .nav-link .caret { transform: rotate(180deg); }
.dropdown-panel a { display: flex; align-items: flex-start; gap: 8px; padding: 9px 12px; border-radius: 11px; font-size: 14.5px; line-height: 1.5; color: var(--text); transition: background .2s, color .2s, padding .25s var(--ease); }
.dropdown-panel a:hover { background: var(--surface-2); color: var(--text-strong); padding-left: 16px; }
.dropdown-panel a > .bi { color: var(--lime); margin-top: 3px; }
.dropdown-panel a img { border-radius: 3px; margin-top: 4px; }
.dropdown-empty { display: block; padding: 10px 12px; color: var(--muted); font-size: 14px; }
.dropdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; min-width: 520px; max-width: 560px; }
.dropdown-grid .tile { align-items: center; gap: 12px; padding: 12px; }
.dropdown-grid .tile > .bi { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; font-size: 18px; margin: 0; color: #071005; background: var(--grad); box-shadow: 0 6px 18px -6px rgba(170, 211, 4, .6); }
.dropdown-grid .tile span { display: flex; flex-direction: column; line-height: 1.35; }
.dropdown-grid .tile b { font-weight: 500; font-size: 14.5px; color: var(--text-strong); }
.dropdown-grid .tile small { font-size: 12.5px; color: var(--muted); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.search-trigger { width: auto; padding: 0 12px; gap: 10px; display: inline-flex; }
.search-trigger kbd { display: inline-block; }
.theme-light-icon { display: none; }
[data-theme="light"] .theme-light-icon { display: inline; }
[data-theme="light"] .theme-dark-icon { display: none; }
.burger { display: none; flex-direction: column; gap: 5px; justify-content: center; align-items: center; }
.burger span { width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease), opacity .2s; }
body.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Ambient backgrounds ---------- */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; mix-blend-mode: screen; animation: drift 18s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { width: 46vw; height: 46vw; left: -12vw; top: -18vw; background: radial-gradient(circle, rgba(170, 211, 4, .55), transparent 65%); }
.aurora span:nth-child(2) { width: 40vw; height: 40vw; right: -10vw; top: -6vw; background: radial-gradient(circle, rgba(45, 212, 191, .45), transparent 65%); animation-duration: 22s; animation-delay: -6s; }
.aurora span:nth-child(3) { width: 38vw; height: 38vw; left: 30vw; bottom: -24vw; background: radial-gradient(circle, rgba(251, 191, 36, .32), transparent 65%); animation-duration: 26s; animation-delay: -12s; }
.aurora.soft span { opacity: .3; }
@keyframes drift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(6vw, 4vw, 0) scale(1.15); }
    100% { transform: translate3d(-4vw, 6vw, 0) scale(.95); }
}
.grid-bg {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image: linear-gradient(rgba(170, 211, 4, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(170, 211, 4, .07) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 20%, transparent 75%);
    animation: grid-move 20s linear infinite;
}
@keyframes grid-move { to { background-position: 56px 56px; } }
.particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

/* ---------- Hero ---------- */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: 100svh; display: flex; align-items: center;
    padding: calc(var(--header-h) + 60px) 0 110px;
    background: radial-gradient(ellipse at 70% 10%, #0d2a1c 0%, var(--bg) 60%);
}
.hero-photo { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; opacity: .22; filter: saturate(1.2); mask-image: linear-gradient(180deg, #000 30%, transparent 95%); -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%); transform: scale(1.06); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.pill {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
    padding: 7px 16px 7px 12px; border-radius: 99px; font-size: 14px; color: var(--text);
    background: rgba(170, 211, 4, .08); border: 1px solid rgba(170, 211, 4, .3);
    backdrop-filter: blur(10px); transition: background .3s, gap .3s var(--ease);
}
.pill:hover { background: rgba(170, 211, 4, .16); gap: 14px; }
.pill .bi { color: var(--lime); }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(170, 211, 4, .7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(170, 211, 4, 0); } 100% { box-shadow: 0 0 0 0 rgba(170, 211, 4, 0); } }
.hero-title { margin: 0 0 22px; font-weight: 700; }
.hero-line { display: block; font-size: clamp(22px, 2.6vw, 32px); font-weight: 400; color: var(--text); margin-bottom: 8px; }
.hero-title .gradient-text { display: block; font-size: clamp(46px, 7.4vw, 96px); line-height: 1.12; padding-bottom: .08em; filter: drop-shadow(0 6px 40px rgba(170, 211, 4, .25)); }
.hero-lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); max-width: 560px; }
.hero-lead p:last-child { margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 44px; max-width: 600px; }
.stat { padding: 14px 14px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(10px); position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--grad); opacity: .7; }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; color: var(--text-strong); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12.5px; color: var(--muted); }

.hero-visual { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.hero-glow { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(170, 211, 4, .35), rgba(34, 197, 94, .12) 45%, transparent 70%); filter: blur(30px); animation: breathe 6s ease-in-out infinite; }
.hero-img { position: relative; z-index: 2; width: 92%; height: auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .55)); animation: float-y 7s ease-in-out infinite; }
@keyframes float-y { 50% { translate: 0 -14px; } }
.orbit { position: absolute; inset: 0; z-index: 1; }
.orbit .ring { position: absolute; inset: 4%; border-radius: 50%; border: 1px solid rgba(170, 211, 4, .16); }
.orbit .r1 { animation: spin 40s linear infinite; border-top-color: rgba(170, 211, 4, .7); }
.orbit .r2 { inset: 13%; border-style: dashed; border-color: rgba(45, 212, 191, .22); animation: spin 60s linear infinite reverse; }
.orbit .r3 { inset: -3%; border-color: rgba(251, 191, 36, .1); border-right-color: rgba(251, 191, 36, .55); animation: spin 28s linear infinite; }
/* satellites: a rotating ring-sized box carrying a glowing dot */
.orbit .sat { position: absolute; inset: 4%; border-radius: 50%; animation: spin 14s linear infinite; }
.orbit .sat::before { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 16px 4px rgba(170, 211, 4, .6); }
.orbit .s2 { inset: -3%; animation-duration: 22s; animation-delay: -7s; }
.orbit .s2::before { background: var(--gold); box-shadow: 0 0 16px 4px rgba(251, 191, 36, .6); width: 8px; height: 8px; top: -4px; }
.orbit .s3 { inset: 13%; animation-duration: 30s; animation-direction: reverse; }
.orbit .s3::before { background: var(--teal); box-shadow: 0 0 16px 4px rgba(45, 212, 191, .6); width: 7px; height: 7px; top: -3px; }

.float-card {
    position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: 18px;
    background: rgba(8, 24, 16, .55); border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
    box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .6);
    transition: border-color .3s, transform .3s;
}
a.float-card:hover { border-color: rgba(170, 211, 4, .6); }
.float-card span { display: flex; flex-direction: column; line-height: 1.3; }
.float-card b { font-family: var(--font-head); font-size: 15px; font-weight: 600; color: #fff; }
.float-card small { font-size: 12px; color: var(--muted); }
.float-card > .bi { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #071005; background: var(--grad-gold); font-size: 18px; }
.float-card img { width: auto; height: 36px; max-width: none; border-radius: 6px; flex-shrink: 0; }
.float-card img[src*="ITALogo"] { background: #fff; padding: 3px 6px; }
.fc-1 { top: 10%; left: -4%; animation: bob 6s ease-in-out infinite; }
.fc-2 { bottom: 16%; right: -2%; animation: bob 7s ease-in-out infinite -2s; }
.fc-3 { bottom: 2%; left: 6%; animation: bob 8s ease-in-out infinite -4s; }
@keyframes bob { 50% { translate: 0 -10px; } }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; z-index: 3; width: 26px; height: 42px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .35); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--lime); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Ticker ---------- */
.ticker { position: relative; z-index: 3; display: flex; align-items: stretch; background: linear-gradient(90deg, #071a10, #0b2416); border-block: 1px solid rgba(170, 211, 4, .18); overflow: hidden; }
.ticker-label { flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 12px 20px; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: #071005; background: var(--grad); clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); padding-right: 30px; }
.ticker-viewport { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.ticker-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track a { display: inline-flex; align-items: center; padding: 12px 22px 12px 4px; font-size: 14.5px; color: var(--text); white-space: nowrap; transition: color .2s; }
.ticker-track a:hover { color: var(--lime); }
.ticker-track .bi { color: var(--lime); font-size: 22px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(64px, 9vw, 110px) 0; }
.section-tight { padding: 10px 0; }
.section-dark { background: radial-gradient(ellipse at 50% 0%, #0e2b1d, var(--bg) 70%); overflow: hidden; isolation: isolate; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-title { font-size: clamp(30px, 4vw, 48px); font-weight: 700; margin: 0; }
.section-head p { color: var(--muted); margin: 10px 0 0; max-width: 560px; }
.subhead { display: flex; align-items: center; gap: 10px; font-size: 20px; margin: 40px 0 18px; }
.subhead .bi { color: var(--lime); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

.card {
    position: relative; display: flex; flex-direction: column;
    border-radius: var(--radius); overflow: hidden;
    background: var(--surface); border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform .5s var(--ease), border-color .35s, box-shadow .5s var(--ease);
    transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0));
    will-change: transform;
}
.card::before { /* glow border on hover */
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 3; pointer-events: none;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(170, 211, 4, .9), transparent 45%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: 0; transition: opacity .4s;
}
.card:hover { --ty: -6px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55), 0 0 40px -18px rgba(170, 211, 4, .55); }
.card:hover::before { opacity: 1; }
.card-link { position: absolute; inset: 0; z-index: 4; }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #0f3a24, #08180f 60%, #1d2a06); }
.card-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.card:hover .card-media > img { transform: scale(1.08); filter: saturate(1.15); }
.media-fallback { position: absolute; inset: 0; display: none; place-items: center; }
.media-fallback img { width: 64px; opacity: .55; filter: drop-shadow(0 0 22px rgba(170, 211, 4, .5)); }
.card-media.no-img .media-fallback { display: grid; }
.card-media.no-img::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(170, 211, 4, .25), transparent 55%), radial-gradient(circle at 80% 90%, rgba(45, 212, 191, .2), transparent 50%); }
.shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .22) 48%, transparent 62%); transform: translateX(-110%); transition: transform 1s var(--ease); pointer-events: none; }
.card:hover .shine { transform: translateX(110%); }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px; color: var(--muted); }
.card-meta .bi { color: var(--lime); }
[data-theme="light"] .card-meta .bi { color: #4d7c0f; }
.card-title { font-family: var(--font-body); font-size: 16.5px; font-weight: 600; line-height: 1.55; margin: 0; color: var(--text-strong); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--lime); }
[data-theme="light"] .card-more { color: #4d7c0f; }
.card-more .bi { transition: transform .3s var(--ease); }
.card:hover .card-more .bi { transform: translateX(5px); }

/* bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: auto; gap: 22px; }
.bento .featured { grid-column: span 2; grid-row: span 2; }
.news-card.featured .card-media { position: absolute; inset: 0; aspect-ratio: auto; }
.news-card.featured { min-height: 460px; justify-content: flex-end; }
.news-card.featured .card-body { position: relative; z-index: 2; flex: 0; padding: 28px; background: linear-gradient(180deg, transparent, rgba(2, 10, 6, .85) 35%, rgba(2, 10, 6, .95)); --text-strong: #fff; --muted: #b9cbbf; margin-top: auto; padding-top: 90px; }
.news-card.featured .card-title { font-family: var(--font-head); font-size: clamp(20px, 2.2vw, 28px); line-height: 1.4; -webkit-line-clamp: 4; }
.news-card.featured .card-more { color: var(--lime); }
.news-card.featured .card-meta .bi { color: var(--lime); }

/* rail (horizontal) */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(320px, 82vw); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 26px; margin: -10px -4px 0; scrollbar-width: none; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.dragging .card-link { pointer-events: none; }
.rail > * { scroll-snap-align: start; }
.rail-controls { display: flex; justify-content: flex-end; gap: 10px; }

/* video */
.video-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform 1s var(--ease), opacity .4s; }
.video-card:hover .video-thumb img { transform: scale(1.06); opacity: 1; }
.play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; color: #071005; background: var(--grad); box-shadow: 0 0 0 0 rgba(170, 211, 4, .6), 0 12px 30px rgba(0, 0, 0, .5); animation: play-pulse 2.2s infinite; transition: transform .4s var(--spring); }
.play .bi { margin-left: 4px; }
.video-card:hover .play { transform: scale(1.12); }
@keyframes play-pulse { 70% { box-shadow: 0 0 0 18px rgba(170, 211, 4, 0), 0 12px 30px rgba(0, 0, 0, .5); } 100% { box-shadow: 0 0 0 0 rgba(170, 211, 4, 0), 0 12px 30px rgba(0, 0, 0, .5); } }

/* ITA band */
.ita-band {
    position: relative; isolation: isolate; overflow: hidden;
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px;
    padding: 34px 40px; border-radius: 28px;
    background: linear-gradient(120deg, #0b2a19, #0a1f14 50%, #1f2a07);
    border: 1px solid rgba(170, 211, 4, .3); color: #e9f6ee;
    box-shadow: 0 30px 70px -30px rgba(170, 211, 4, .45);
    transition: transform .5s var(--ease), box-shadow .5s;
}
.ita-band:hover { transform: translateY(-4px); box-shadow: 0 40px 80px -30px rgba(170, 211, 4, .6); }
.ita-band-glow { position: absolute; inset: -40%; z-index: -1; background: conic-gradient(from 0deg, transparent, rgba(170, 211, 4, .25), transparent 30%, rgba(251, 191, 36, .2), transparent 60%); animation: spin 14s linear infinite; }
.ita-band::after { content: ""; position: absolute; inset: 1px; z-index: -1; border-radius: 27px; background: linear-gradient(120deg, rgba(7, 26, 16, .94), rgba(9, 24, 15, .9)); }
.ita-band-logo { height: 84px; width: auto; background: #fff; border-radius: 18px; padding: 10px 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.ita-band h2 { font-size: clamp(20px, 2.2vw, 28px); margin: 0 0 6px; color: #fff; }
.ita-band p { margin: 0; color: #a9bdb0; }
.ita-band .eyebrow { color: var(--lime); margin-bottom: 6px; }

/* services */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
    position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 24px;
    border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
    transition: transform .5s var(--ease), border-color .3s, background .3s;
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0));
}
.service:hover { --ty: -6px; border-color: var(--border-strong); }
.service > .bi { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; font-size: 24px; color: #071005; background: var(--grad); box-shadow: 0 12px 30px -10px rgba(170, 211, 4, .7); margin-bottom: 6px; transition: transform .5s var(--spring); }
.service:hover > .bi { transform: rotate(-8deg) scale(1.08); }
.service b { font-family: var(--font-head); font-weight: 600; font-size: 17.5px; color: var(--text-strong); }
.service span { font-size: 14.5px; color: var(--muted); }

/* ---------- Page heroes ---------- */
.page-hero, .article-hero {
    position: relative; isolation: isolate; overflow: hidden;
    padding: calc(var(--header-h) + 80px) 0 70px;
    background: radial-gradient(ellipse at 70% 0%, #0f2e1e, var(--bg) 65%);
}
.page-hero h1 { font-size: clamp(34px, 5.4vw, 64px); font-weight: 700; margin: 0; }
.page-hero-sub { color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); margin: 14px 0 0; max-width: 720px; }
.page-hero::after, .article-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(170, 211, 4, .5), transparent); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a { transition: color .2s; }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb .bi-chevron-right { font-size: 10px; opacity: .6; }

/* toolbar / search */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.search-field { flex: 1; max-width: 560px; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 18px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transition: border-color .3s, box-shadow .3s; }
.search-field:focus-within { border-color: var(--border-strong); box-shadow: 0 0 0 4px rgba(170, 211, 4, .12); }
.search-field > .bi { color: var(--muted); }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 8px 0; }
.search-field.compact { padding: 4px 18px; max-width: 380px; }
.toolbar-count { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14.5px; }
.toolbar-count b { color: var(--text-strong); }
.year-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); flex-wrap: wrap; }
.year-tabs a { padding: 8px 18px; border-radius: 99px; font-weight: 500; font-size: 14.5px; color: var(--muted); transition: background .25s, color .25s; }
.year-tabs a:hover { color: var(--text-strong); }
.year-tabs a.is-active { background: var(--grad); color: #071005; box-shadow: 0 6px 18px -6px rgba(170, 211, 4, .7); }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); font-weight: 500; transition: border-color .2s, background .2s, transform .2s; }
.pagination a:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.pagination .current { background: var(--grad); color: #071005; border-color: transparent; box-shadow: 0 8px 20px -8px rgba(170, 211, 4, .7); }
.pagination .disabled { opacity: .35; }
.pagination .gap { border: 0; background: none; }

.empty-state { text-align: center; padding: 60px 20px; border-radius: var(--radius); border: 1px dashed var(--border); color: var(--muted); }
.empty-state .bi { font-size: 44px; display: block; margin-bottom: 8px; color: var(--lime); opacity: .7; }
.empty-filter { text-align: center; color: var(--muted); padding: 30px; }

/* ---------- Article ---------- */
.article-hero { padding-bottom: 60px; }
.article-hero-bg { position: absolute; inset: -30px; z-index: -1; background-size: cover; background-position: center; filter: blur(28px) saturate(1.3); opacity: .35; }
.article-title { font-size: clamp(26px, 3.6vw, 44px); font-weight: 700; line-height: 1.35; margin: 0 0 20px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.article-meta span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; color: var(--text); }
.article-meta .bi { color: var(--lime); }
.article-layout { padding-top: 40px; padding-bottom: 40px; }
.article-cover { margin: 0 0 36px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); cursor: zoom-in; }
.article-cover img { width: 100%; }

.prose { font-size: 17.5px; line-height: 1.9; color: var(--text); overflow-wrap: anywhere; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin: 1.6em 0 .6em; }
.prose a { color: var(--lime); text-decoration: underline; text-decoration-color: rgba(170, 211, 4, .4); text-underline-offset: 3px; }
[data-theme="light"] .prose a { color: #3f6212; }
.prose img { max-width: 100% !important; height: auto !important; border-radius: 16px; margin: 18px auto; box-shadow: var(--shadow); cursor: zoom-in; transition: transform .4s var(--ease); display: inline-block; }
.prose img:hover { transform: scale(1.01); }
.prose iframe, .prose video { max-width: 100%; border: 0; border-radius: 16px; }
.prose iframe[src*="youtube"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.prose table { width: 100% !important; border-collapse: collapse; display: block; overflow-x: auto; margin: 20px 0; font-size: 15.5px; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; }
.prose th { background: var(--surface-2); }
.prose blockquote { margin: 24px 0; padding: 16px 22px; border-left: 4px solid var(--lime); background: var(--surface); border-radius: 0 14px 14px 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose p:empty { display: none; }
.prose [style*="font-family"] { font-family: inherit !important; }
.prose [style*="color: rgb(0, 0, 0)"], .prose [style*="color:#000"], .prose [style*="color: #000"] { color: inherit !important; }
.prose [style*="background-color: rgb(255, 255, 255)"], .prose [style*="background-color: rgb(255,255,255)"] { background-color: transparent !important; }

.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 46px; padding: 18px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.share-bar > span { margin-right: auto; font-weight: 500; color: var(--text-strong); }
.share { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 18px; color: #fff; transition: transform .3s var(--spring), box-shadow .3s; }
.share:hover { transform: translateY(-3px) scale(1.06); }
.share.fb { background: #1877f2; }
.share.line { background: #06c755; }
.share.copy { background: var(--grad); color: #071005; }
.share.print { background: var(--surface-2); color: var(--text-strong); border: 1px solid var(--border); }
.share.copied { box-shadow: 0 0 0 4px rgba(170, 211, 4, .35); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.post-nav a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); transition: border-color .3s, transform .3s var(--ease); }
.post-nav a:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.post-nav .next { text-align: right; grid-column: 2; }
.post-nav small { color: var(--lime); font-weight: 500; }
.post-nav b { font-weight: 500; font-size: 15px; line-height: 1.5; color: var(--text-strong); }

/* ---------- ITA ---------- */
.ita-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.ita-hero-art img { max-height: 190px; width: auto; border-radius: 20px; background: #fff; padding: 10px; box-shadow: 0 30px 60px -20px rgba(170, 211, 4, .45); animation: float-y 7s ease-in-out infinite; }
.ita-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: none; }
.ita-item {
    position: relative; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 18px;
    padding: 16px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
    transition: border-color .3s, transform .4s var(--ease), background .3s, box-shadow .4s;
    overflow: hidden;
}
.ita-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad); transform: scaleY(0); transition: transform .4s var(--ease); }
.ita-item:hover { border-color: var(--border-strong); transform: translateX(6px); background: var(--surface-2); box-shadow: var(--shadow); }
.ita-item:hover::before { transform: scaleY(1); }
.ita-num { font-family: var(--font-head); font-weight: 700; font-size: 18px; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; color: var(--lime); background: rgba(170, 211, 4, .1); border: 1px solid rgba(170, 211, 4, .25); }
[data-theme="light"] .ita-num { color: #3f6212; }
.ita-list.compact .ita-num { width: auto; padding: 0 12px; font-size: 14px; height: 40px; }
.ita-name { font-weight: 500; color: var(--text-strong); line-height: 1.5; }
.ita-type { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.t-text { color: var(--teal); background: rgba(45, 212, 191, .12); }
.t-link { color: var(--lime); background: rgba(170, 211, 4, .12); }
.t-pdf { color: #fb7185; background: rgba(244, 63, 94, .12); }
[data-theme="light"] .t-text { color: #0f766e; }
[data-theme="light"] .t-link { color: #4d7c0f; }
[data-theme="light"] .t-pdf { color: #be123c; }
.ita-go { color: var(--muted); transition: transform .3s var(--ease), color .3s; }
.ita-item:hover .ita-go { transform: translate(3px, -3px); color: var(--lime); }

.pdf-toolbar { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.pdf-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--surface); }
.pdf-frame iframe { display: block; width: 100%; height: 82vh; border: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 36px; }
.contact-card {
    display: flex; flex-direction: column; gap: 8px; padding: 26px 22px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
    transition: transform .5s var(--ease), border-color .3s;
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0));
}
.contact-card:hover { --ty: -6px; border-color: var(--border-strong); }
.contact-card b { font-family: var(--font-head); font-size: 18px; color: var(--text-strong); font-weight: 600; }
.contact-card span:last-child { color: var(--muted); font-size: 15px; word-break: break-word; }
.contact-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; font-size: 22px; color: #071005; background: var(--grad); box-shadow: 0 12px 30px -10px rgba(170, 211, 4, .7); margin-bottom: 8px; }
.map-frame { border-radius: 28px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); position: relative; }
.map-frame iframe { display: block; width: 100%; height: min(65vh, 560px); border: 0; filter: saturate(1.1); }
[data-theme="dark"] .map-frame iframe { filter: invert(.9) hue-rotate(180deg) saturate(.9) brightness(.95); }

/* ---------- Footer ---------- */
.site-footer { position: relative; isolation: isolate; margin-top: 60px; padding: 120px 0 30px; background: #030b07; overflow: hidden; }
.footer-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: .16; }
.site-footer::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 20% 0%, rgba(170, 211, 4, .16), transparent 50%), radial-gradient(ellipse at 90% 100%, rgba(45, 212, 191, .12), transparent 50%); }
.footer-wave { position: absolute; top: -1px; left: 0; width: 100%; height: 80px; }
.footer-wave path { fill: var(--page-bg, #030b07); }
[data-theme="light"] .footer-wave path { fill: #f5faf3; }
.footer-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding: 34px 38px; border-radius: 28px; margin-bottom: 64px; background: linear-gradient(120deg, rgba(170, 211, 4, .12), rgba(45, 212, 191, .06)); border: 1px solid rgba(170, 211, 4, .25); backdrop-filter: blur(10px); }
.footer-cta h2 { font-size: clamp(22px, 2.4vw, 30px); margin: 0 0 6px; }
.footer-cta p { margin: 0; color: var(--muted); }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1.2fr 1.1fr; gap: 40px; }
.footer-grid h4 { font-size: 16px; margin-bottom: 18px; color: #fff; position: relative; padding-bottom: 12px; }
.footer-grid h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; border-radius: 2px; background: var(--grad); }
.footer-brand p { color: var(--muted); font-size: 14.5px; margin: 18px 0; }
.footer-brand .brand-emblem { width: 52px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); transition: background .3s, color .3s, transform .3s var(--spring); }
.socials a:hover { background: var(--grad); color: #071005; transform: translateY(-3px) rotate(-6deg); }
.footer-links, .footer-news, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14.5px; }
.footer-links a, .footer-news a, .footer-contact a { color: var(--muted); transition: color .2s, padding .3s var(--ease); }
.footer-links a:hover, .footer-news a:hover, .footer-contact a:hover { color: var(--lime); }
.footer-links a:hover { padding-left: 6px; }
.footer-news li { display: flex; flex-direction: column; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.footer-news a { color: var(--text); line-height: 1.5; }
.footer-news small { color: var(--muted); font-size: 12.5px; }
.footer-contact li { display: flex; gap: 12px; color: var(--muted); }
.footer-contact .bi { color: var(--lime); margin-top: 2px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--muted); }

/* ---------- Floating dock ---------- */
.dock { position: fixed; right: 20px; bottom: 20px; z-index: 800; display: flex; flex-direction: column; gap: 10px; }
.dock-btn { position: relative; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; color: #fff; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6); transition: transform .35s var(--spring), opacity .35s, visibility .35s; }
.dock-btn:hover { transform: scale(1.1); }
.dock-btn.fb { background: #1877f2; }
.dock-btn.tel { background: linear-gradient(135deg, #22c55e, #15803d); animation: ring 4s ease-in-out infinite; }
@keyframes ring { 0%, 86%, 100% { rotate: 0deg; } 88% { rotate: -14deg; } 90% { rotate: 14deg; } 92% { rotate: -10deg; } 94% { rotate: 8deg; } }
.dock-btn.top { background: rgba(8, 24, 16, .85); backdrop-filter: blur(10px); color: var(--lime); opacity: 0; visibility: hidden; transform: translateY(10px); }
.dock-btn.top.show { opacity: 1; visibility: visible; transform: none; }
.dock-btn.top svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.dock-btn.top circle { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 3; }
.dock-btn.top circle.ring { stroke: var(--lime); stroke-linecap: round; stroke-dasharray: 132; stroke-dashoffset: calc(132 - 132 * var(--p, 0)); }

/* ---------- Dialogs ---------- */
dialog { padding: 0; border: 0; background: transparent; color: var(--text); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(1, 6, 3, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
dialog[open] { animation: pop .35s var(--spring); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.palette { width: min(680px, calc(100vw - 32px)); margin: 12vh auto auto; }
.palette-box { border-radius: 22px; overflow: hidden; background: var(--surface-solid, #0b1c14); border: 1px solid var(--border); box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(170, 211, 4, .12); }
[data-theme="dark"] .palette-box, :root:not([data-theme="light"]) .palette-box { --surface-solid: rgba(8, 22, 15, .97); }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.palette-input .bi { font-size: 20px; color: var(--lime); }
.palette-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 18px; color: var(--text-strong); }
.palette-results { max-height: 56vh; overflow-y: auto; padding: 8px; }
.palette-hint { display: flex; flex-direction: column; gap: 2px; }
.palette-hint > span, .palette-group { padding: 8px 12px 4px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.palette-results a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--text); transition: background .15s; }
.palette-results a .bi { color: var(--lime); font-size: 17px; flex-shrink: 0; }
.palette-results a span { display: flex; flex-direction: column; min-width: 0; line-height: 1.45; }
.palette-results a b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-strong); }
.palette-results a small { color: var(--muted); font-size: 12.5px; }
.palette-results a:hover, .palette-results a.is-active { background: var(--surface-2); }
.palette-results mark { background: rgba(170, 211, 4, .3); color: inherit; border-radius: 4px; padding: 0 2px; }
.palette-empty { padding: 24px; text-align: center; color: var(--muted); }

.lightbox { width: 100vw; height: 100vh; margin: 0; display: none; place-items: center; }
.lightbox[open] { display: grid; }
.lightbox-stage { width: min(1100px, 92vw); max-height: 88vh; display: grid; place-items: center; }
.lightbox-stage iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 18px; box-shadow: 0 40px 90px rgba(0, 0, 0, .8); background: #000; }
.lightbox-stage img { max-height: 88vh; width: auto; border-radius: 14px; box-shadow: 0 40px 90px rgba(0, 0, 0, .8); }
.lightbox-close { position: fixed; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 20px; display: grid; place-items: center; transition: background .2s, transform .3s var(--spring); z-index: 2; }
.lightbox-close:hover { background: var(--danger); transform: rotate(90deg); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; translate: 0 28px; transition: opacity .9s var(--ease) var(--d, 0ms), translate .9s var(--ease) var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; translate: 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .search-trigger kbd { display: none; }
    .nav-link { padding: 9px 10px; font-size: 14.5px; }
    .nav-link > .bi:first-child { display: none; }
    .bento { grid-template-columns: repeat(3, 1fr); }
    .bento .featured { grid-column: span 3; grid-row: auto; }
    .service-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
    .burger { display: inline-flex; }
    .nav-links {
        position: fixed; top: 0; right: 0; bottom: 0; z-index: -1;
        width: min(380px, 88vw); margin: 0; padding: calc(var(--header-h) + 34px) 18px 30px;
        flex-direction: column; align-items: stretch; gap: 4px; overflow-y: auto;
        background: rgba(5, 16, 10, .97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid rgba(255, 255, 255, .08);
        transform: translateX(105%); transition: transform .5s var(--ease);
        --text: #e9f6ee; --text-strong: #fff; --muted: #a9bdb0; --surface: rgba(255, 255, 255, .06); --surface-2: rgba(255, 255, 255, .1); --border: rgba(255, 255, 255, .1);
        color: var(--text);
    }
    body.nav-open .nav-links { transform: none; box-shadow: -30px 0 80px rgba(0, 0, 0, .6); }
    body.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 850; background: rgba(0, 0, 0, .5); backdrop-filter: blur(3px); }
    .site-header { z-index: 900; }
    body.nav-open .site-header { transform: none !important; }
    .nav-links .nav-link { width: 100%; justify-content: flex-start; padding: 13px 14px; font-size: 16px; }
    .nav-links .nav-link > .bi:first-child { display: inline; }
    .nav-links .nav-link .caret { margin-left: auto; }
    .nav-link.is-active::after { left: 4px; top: 50%; bottom: auto; width: 3px; height: 18px; translate: 0 -50%; }
    .nav-links .dropdown-panel { position: static; translate: none !important; opacity: 1; visibility: visible; max-height: 0; overflow: hidden; padding: 0 0 0 10px; min-width: 0; max-width: none; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; transition: max-height .45s var(--ease); }
    .nav-links .nav-dropdown:hover > .dropdown-panel { translate: none; }
    .nav-links .nav-dropdown.open > .dropdown-panel { max-height: 1200px; }
    .nav-links .nav-dropdown:not(.open):hover > .nav-link .caret { transform: none; }
    .nav-links .dropdown-grid { grid-template-columns: 1fr; min-width: 0; }
    .nav-links .dropdown-panel::before { display: none; }
    .nav-actions { margin-left: auto; }

    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 20px; }
    .hero-copy { order: 2; }
    .hero-visual { order: 1; width: min(520px, 100%); margin: 0 auto; }
    .hero-lead { margin-inline: auto; }
    .hero-actions, .hero-stats { justify-content: center; margin-inline: auto; }
    .hero { padding-top: calc(var(--header-h) + 30px); }
    .ita-band { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 30px 24px; }
    .ita-hero-grid { grid-template-columns: 1fr; }
    .ita-hero-art { display: none; }
}
@media (max-width: 700px) {
    :root { --header-h: 64px; }
    body { font-size: 16px; }
    .site-header { padding: 8px 10px 0; }
    .nav-shell { padding: 0 8px 0 12px; gap: 8px; }
    .brand-text small { display: none; }
    .brand-text b { font-size: 15.5px; }
    .brand-emblem { width: 34px; }
    .nav-actions { gap: 6px; }
    .nav-actions .icon-btn { width: 38px; height: 38px; border-radius: 12px; }
    .nav-dropdown.lang { display: none; }
    .search-trigger { padding: 0; width: 38px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .float-card { padding: 8px 12px; gap: 8px; border-radius: 14px; }
    .float-card b { font-size: 13px; }
    .float-card small { font-size: 11px; }
    .fc-3 { display: none; }
    .fc-1 { left: 0; }
    .fc-2 { right: 0; }
    .bento { grid-template-columns: 1fr; }
    .bento .featured { grid-column: auto; }
    .news-card.featured { min-height: 380px; }
    .service-grid, .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-cta { padding: 26px 22px; }
    .ita-item { grid-template-columns: auto 1fr; gap: 12px; padding: 14px; }
    .ita-num { width: 42px; height: 42px; font-size: 15px; }
    .ita-type { grid-column: 2; justify-self: start; }
    .ita-go { display: none; }
    .post-nav { grid-template-columns: 1fr; }
    .post-nav .next { grid-column: auto; }
    .share-bar > span { width: 100%; }
    .toolbar { flex-direction: column; align-items: stretch; }
    .search-field, .search-field.compact { max-width: none; }
    .year-tabs { justify-content: center; }
    .dock { right: 12px; bottom: 12px; }
    .dock-btn { width: 46px; height: 46px; font-size: 18px; }
    .prose { font-size: 16.5px; }
    .ticker-label { padding: 10px 22px 10px 14px; font-size: 13px; }
}

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; translate: none; }
    .particles { display: none; }
}
@media print {
    .site-header, .site-footer, .dock, .preloader, .scroll-progress, .read-progress, .share-bar, .post-nav, .aurora, .grid-bg { display: none !important; }
    body, .article-hero { background: #fff !important; color: #000 !important; }
    .article-hero { padding: 0 0 20px !important; --text: #000; --text-strong: #000; --muted: #333; }
    .prose { color: #000; }
}
