/* des-assets/site.css — DES Digital Evolution
   No inline styles anywhere on the site, so the Content-Security-Policy can use style-src 'self'. */

:root {
    --bg: #0b1020;
    --bg-2: #0f1630;
    --card: rgba(255, 255, 255, .045);
    --card-2: rgba(255, 255, 255, .07);
    --line: rgba(255, 255, 255, .10);
    --text: #eef1fb;
    --muted: #a3acc7;
    --indigo: #818cf8;
    --indigo-2: #6366f1;
    --amber: #f59e0b;
    --sky: #38bdf8;
    --green: #34d399;
    --radius: 18px;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, .6);
    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--amber); color: #111; padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }

/* ---------- Animated background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(80px); opacity: .35; }
.b1 { background: radial-gradient(circle, var(--indigo-2), transparent 65%); top: -18vmax; left: -10vmax; animation: drift1 22s ease-in-out infinite alternate; }
.b2 { background: radial-gradient(circle, var(--amber), transparent 65%); top: 30%; right: -20vmax; opacity: .22; animation: drift2 26s ease-in-out infinite alternate; }
.b3 { background: radial-gradient(circle, var(--sky), transparent 65%); bottom: -25vmax; left: 25%; opacity: .2; animation: drift3 30s ease-in-out infinite alternate; }
.grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%); }
@keyframes drift1 { to { transform: translate(14vmax, 10vmax) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-12vmax, -8vmax) scale(1.15); } }
@keyframes drift3 { to { transform: translate(8vmax, -12vmax) scale(.9); } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: 12px; font-weight: 700; font-size: .95rem; border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; font-family: inherit; color: inherit; background: none; }
.btn-sm { padding: .55rem 1rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--indigo-2), #8b5cf6); color: #fff; box-shadow: 0 10px 30px -10px rgba(99, 102, 241, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(99, 102, 241, .85); }
.btn-ghost { border-color: var(--line); background: rgba(255,255,255,.04); }
.btn-ghost:hover { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.08); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(11, 16, 32, .55); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.nav.scrolled { border-color: var(--line); background: rgba(11, 16, 32, .82); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; font-size: .98rem; }
.brand-mark { width: 36px; height: 36px; }
.brand-logo { display: block; height: 40px; width: auto; }
.footer-logo { display: block; height: 32px; width: auto; opacity: .9; }
.brand-text b { font-weight: 900; letter-spacing: .04em; }
.menu { display: flex; gap: 1.6rem; font-size: .92rem; color: var(--muted); }
.menu a { position: relative; transition: color .2s; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--amber); transform: scaleX(0); transition: transform .25s; }
.menu a:hover, .menu a.active { color: var(--text); }
.menu a:hover::after, .menu a.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }

.dropdown { position: relative; }
.chev { width: 16px; height: 16px; transition: transform .2s; }
.dropdown.open .chev { transform: rotate(180deg); }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 250px; padding: .5rem; border-radius: 14px; background: #121a36; border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s, transform .2s; }
.dropdown.open .dropdown-menu { opacity: 1; transform: none; pointer-events: auto; }
.dropdown-menu a { display: flex; align-items: center; gap: .75rem; padding: .7rem .8rem; border-radius: 10px; }
.dropdown-menu a:hover, .dropdown-menu a:focus-visible { background: var(--card-2); }
.dropdown-menu small, .portal small { display: block; color: var(--muted); font-size: .78rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-green { background: var(--green); box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); }
.dot-amber { background: var(--amber); box-shadow: 0 0 0 4px rgba(245, 158, 11, .18); }

.burger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.04); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 2rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fcd34d; margin-bottom: 1rem; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.rotator { background: linear-gradient(90deg, var(--indigo), var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; white-space: nowrap; transition: opacity .3s, transform .3s; }
.rotator.swap { opacity: 0; transform: translateY(10px); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 36rem; }
.lead-sm { color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 2.4rem; }
.stats { display: flex; flex-wrap: wrap; gap: 2.2rem; list-style: none; padding: 0; margin: 0; }
.stats b { display: block; font-size: 2rem; font-weight: 800; }
.stats span { color: var(--muted); font-size: .85rem; }

.hero-visual { position: relative; }
.mock { border-radius: 20px; background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: .8rem 1rem; border-bottom: 1px solid var(--line); font-size: .75rem; color: var(--muted); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.mock-bar span { margin-left: .5rem; }
.mock-body { padding: 1.2rem; display: grid; gap: 1rem; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.mock-kpis div { padding: .8rem; border-radius: 12px; background: rgba(255,255,255,.05); }
.mock-kpis small { display: block; color: var(--muted); font-size: .72rem; }
.mock-kpis strong { font-size: 1.3rem; }
.mock-kpis em { display: block; font-style: normal; font-size: .72rem; }
.up { color: var(--green); }
.mock-chart { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding: .6rem; border-radius: 12px; background: rgba(255,255,255,.04); }
.bar { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--indigo), var(--indigo-2)); transform-origin: bottom; animation: grow 1.4s cubic-bezier(.2,.8,.2,1) both; }
.bar:nth-child(odd) { animation-delay: .15s; }
.h40 { height: 40%; } .h50 { height: 50%; } .h60 { height: 60%; } .h65 { height: 65%; } .h70 { height: 70%; } .h80 { height: 80%; } .h85 { height: 85%; } .h95 { height: 95%; background: linear-gradient(180deg, var(--amber), #d97706); }
@keyframes grow { from { transform: scaleY(0); } }
.mock-rows p { display: flex; align-items: center; gap: .6rem; margin: 0 0 .5rem; font-size: .82rem; color: var(--muted); }
.chip { font-size: .68rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; }
.c-green { background: rgba(52,211,153,.15); color: var(--green); }
.c-amber { background: rgba(245,158,11,.15); color: #fcd34d; }
.c-indigo { background: rgba(129,140,248,.18); color: var(--indigo); }
.float { position: absolute; padding: .6rem .9rem; border-radius: 12px; background: #121a36; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .8rem; white-space: nowrap; animation: bob 5s ease-in-out infinite; }
.f1 { left: -28px; bottom: -22px; }
.f2 { right: -18px; top: -18px; animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; will-change: transform; }

.marquee { margin-top: 4rem; border-block: 1px solid var(--line); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee-track { display: flex; width: max-content; animation: scroll 32s linear infinite; }
.marquee-track span { padding: 1.1rem 2rem; color: var(--muted); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; }
.marquee-track span::before { content: "✦"; margin-right: 2rem; color: var(--amber); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section.alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,.025), transparent); }
.section-head { max-width: 44rem; margin-bottom: 3rem; }
.section-head p:last-child { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.card { padding: 1.6rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.card:hover { border-color: rgba(255,255,255,.22); background: var(--card-2); }
.card p { color: var(--muted); font-size: .93rem; flex: 1; }
.icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1.1rem; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-indigo { background: rgba(129,140,248,.15); color: var(--indigo); }
.i-amber { background: rgba(245,158,11,.15); color: #fcd34d; }
.i-sky { background: rgba(56,189,248,.15); color: var(--sky); }
.i-green { background: rgba(52,211,153,.15); color: var(--green); }
.more { font-weight: 700; font-size: .9rem; color: var(--indigo); }
.more:hover { color: #c7d2fe; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .9rem; }
.checks li { position: relative; padding-left: 2rem; color: var(--muted); }
.checks li b { color: var(--text); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: .05rem; width: 1.35rem; height: 1.35rem; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; color: #0b1020; background: var(--green); }
.checks.small { gap: .7rem; font-size: .92rem; }

.portal-links { display: grid; grid-template-columns: 1fr; gap: .8rem; max-width: 420px; }
.portal { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; border-radius: 14px; background: var(--card); border: 1px solid var(--line); transition: border-color .2s, transform .2s, background .2s; }
.portal:hover { border-color: rgba(255,255,255,.25); background: var(--card-2); transform: translateY(-2px); }
.portal .arrow { margin-left: auto; transition: transform .2s; }
.portal:hover .arrow { transform: translateX(4px); }

.feature-stack { position: relative; min-height: 360px; }
.fs-card { position: absolute; padding: 1.1rem 1.2rem; border-radius: 16px; background: #121a36; border: 1px solid var(--line); box-shadow: var(--shadow); width: min(340px, 90%); animation: bob 6s ease-in-out infinite; }
.fs-card small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.fs-card p { margin: .4rem 0 0; font-size: .9rem; }
.muted { color: var(--muted); }
.fs1 { top: 0; left: 0; }
.fs2 { top: 130px; right: 0; animation-delay: -2s; }
.fs3 { bottom: 0; left: 8%; animation-delay: -4s; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: .6rem; }
.cal span { font-size: .66rem; text-align: center; padding: .45rem 0; border-radius: 6px; background: rgba(255,255,255,.06); }
.cal .hot { background: rgba(245,158,11,.25); color: #fcd34d; }
.cal .off { color: var(--muted); }

/* ---------- Tabs ---------- */
.tabs { border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); padding: 1rem; }
.tab-list { display: flex; flex-wrap: wrap; gap: .4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.tab-list button { font: inherit; font-size: .9rem; font-weight: 600; color: var(--muted); background: none; border: 1px solid transparent; padding: .6rem 1rem; border-radius: 10px; cursor: pointer; transition: background .2s, color .2s; }
.tab-list button:hover { color: var(--text); background: rgba(255,255,255,.05); }
.tab-list button[aria-selected="true"] { color: var(--text); background: rgba(129,140,248,.16); border-color: rgba(129,140,248,.35); }
.tab-panel { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; padding: 1.8rem .8rem .8rem; animation: fade .35s ease; }
.tab-panel[hidden] { display: none; }
.tab-panel p { color: var(--muted); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; align-content: flex-start; }
.pills li { padding: .45rem .85rem; border-radius: 999px; font-size: .85rem; background: rgba(255,255,255,.06); border: 1px solid var(--line); }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; max-width: 960px; }
.plan { position: relative; padding: 2rem; border-radius: 22px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan .checks { flex: 1; }
.plan.featured { background: linear-gradient(180deg, rgba(99,102,241,.16), rgba(99,102,241,.04)); border-color: rgba(129,140,248,.45); box-shadow: 0 30px 70px -30px rgba(99,102,241,.6); }
.plan-sub { color: var(--muted); }
.badge { position: absolute; top: -12px; right: 24px; padding: .3rem .8rem; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #0b1020; background: linear-gradient(90deg, #fcd34d, var(--amber)); }
.fine { margin-top: 1.5rem; color: var(--muted); font-size: .85rem; }

/* ---------- Training ---------- */
.meta { list-style: none; padding: 0; margin: 1.4rem 0 1.8rem; display: grid; gap: .5rem; color: var(--muted); }
.curriculum { display: grid; gap: .8rem; }
.curriculum details { border-radius: 16px; background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: border-color .2s, background .2s; }
.curriculum details[open] { border-color: rgba(129,140,248,.4); background: var(--card-2); }
.curriculum summary { cursor: pointer; list-style: none; padding: 1.1rem 1.2rem; font-weight: 700; display: flex; align-items: center; gap: .8rem; }
.curriculum summary::-webkit-details-marker { display: none; }
.curriculum summary::after { content: "+"; margin-left: auto; font-size: 1.3rem; color: var(--muted); transition: transform .2s; }
.curriculum details[open] summary::after { transform: rotate(45deg); }
.day { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; background: rgba(245,158,11,.16); color: #fcd34d; }
.curriculum ul { margin: 0; padding: 0 1.2rem 1.2rem 2.6rem; color: var(--muted); display: grid; gap: .6rem; }
.curriculum ul b { color: var(--text); }

/* ---------- Work ---------- */
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.work-card { border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.work-card:hover { border-color: rgba(255,255,255,.22); }
.work-art { height: 170px; position: relative; overflow: hidden; }
.work-art::after { content: ""; position: absolute; inset: 22px 22px -20px; border-radius: 12px 12px 0 0; background: rgba(11,16,32,.55); border: 1px solid rgba(255,255,255,.18); transition: transform .4s; }
.work-card:hover .work-art::after { transform: translateY(-8px); }
.w1 { background: linear-gradient(135deg, #1e3a8a, #b45309); }
.w2 { background: linear-gradient(135deg, #312e81, #0e7490); }
.w3 { background: linear-gradient(135deg, #065f46, #4338ca); }
.work-body { padding: 1.3rem; display: grid; gap: .3rem; }
.work-body small { color: #fcd34d; font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.work-body b { font-size: 1.05rem; }
.work-body span { color: var(--muted); font-size: .9rem; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; max-width: 900px; }
.about p { color: var(--muted); }
.avatar { width: 120px; height: 120px; border-radius: 30px; display: grid; place-items: center; font-size: 2.4rem; font-weight: 900; color: #0b1020; background: linear-gradient(135deg, var(--indigo), var(--amber)); box-shadow: 0 20px 50px -20px rgba(245,158,11,.6); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; padding: clamp(1.8rem, 4vw, 3rem); border-radius: 26px; background: linear-gradient(135deg, rgba(99,102,241,.2), rgba(245,158,11,.12)); border: 1px solid rgba(255,255,255,.14); }
.contact p { color: var(--muted); }
.contact-actions { display: grid; gap: .8rem; align-content: center; margin-top: 1.6rem; }
.contact-item { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; border-radius: 14px; background: rgba(11,16,32,.45); border: 1px solid var(--line); transition: border-color .2s, transform .2s; overflow-wrap: anywhere; }
a.contact-item:hover { border-color: rgba(255,255,255,.3); transform: translateY(-2px); }
.contact-item small { display: block; color: var(--muted); font-size: .75rem; }

/* Booking form */
.book-form { display: grid; gap: .9rem; align-content: start; padding: clamp(1.2rem, 3vw, 1.8rem); border-radius: 20px; background: rgba(11,16,32,.55); border: 1px solid var(--line); }
.book-form h3 { margin: 0 0 .2rem; font-size: 1.2rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.field { display: grid; gap: .35rem; font-size: .85rem; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: .75rem .9rem; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); font: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 110px; }
.field select option { background: var(--bg-2); color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(129,140,248,.25); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: #f87171; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.book-form [data-book-submit][disabled] { opacity: .65; cursor: wait; transform: none; }
.form-note { margin: 0; font-size: .78rem; color: var(--muted); }
.form-status { margin: 0; font-size: .9rem; min-height: 1.4em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #fca5a5; }
.ci-icon { font-size: 1.3rem; }
.copy { justify-self: start; font: inherit; font-size: .82rem; font-weight: 700; color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; cursor: pointer; }
.copy.done { color: var(--green); border-color: rgba(52,211,153,.4); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 2rem 0; color: var(--muted); font-size: .85rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer p { margin: 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer a:hover { color: var(--text); }
.tm { width: 100%; font-size: .75rem; opacity: .7; }

.to-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #121a36; color: var(--text); font-size: 1.1rem; cursor: pointer; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .25s, transform .25s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .hero-grid, .split { grid-template-columns: 1fr; }
    .hero-visual { max-width: 560px; }
}
@media (max-width: 860px) {
    .burger { display: flex; }
    .nav, .nav.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(11, 16, 32, .96); }
    .menu { position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0; padding: .5rem 16px 1rem; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0,0,0,.45); transform: translateY(-120%); transition: transform .3s; }
    .menu.open { transform: none; }
    .menu a { padding: .9rem 0; border-bottom: 1px solid var(--line); color: var(--text); }
    .menu a::after { display: none; }
    .hide-sm { display: none; }
    .work, .plans, .contact { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .tab-panel { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .cards, .portal-links { grid-template-columns: 1fr; }
    .brand-text { display: none; }
    .about { grid-template-columns: 1fr; }
    .f1 { left: 8px; } .f2 { right: 8px; }
    .stats { gap: 1.4rem; }
    .feature-stack { min-height: 420px; }
    .fs2 { top: 150px; }
    .dropdown-menu { right: -60px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}
