/* ==========================================================================
   Buyegi Trust Fund — v1.3 layer
   Home slider · design styles (Classic, Neumorphism, Glassmorphism) · 3D · videos · phone action bar
   Loaded after site.css. Every style works in light and dark mode.
   ========================================================================== */

/* ── shared helpers ────────────────────────────────────────────────────── */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 300; background: linear-gradient(90deg, var(--orange), #ffc27a); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.btn-glass { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255,255,255,.26); }
.btn .ic { flex: 0 0 auto; }

/* ── home slider ───────────────────────────────────────────────────────── */
.hs { position: relative; margin: 10px 16px 0; height: clamp(560px, 86vh, 800px); border-radius: 36px; overflow: hidden; isolation: isolate; color: #fff; background: #0b0f2a; perspective: 1200px; }
.hs-track, .hs-slide { position: absolute; inset: 0; }
.hs-slide { opacity: 0; visibility: hidden; transition: opacity 1.1s var(--ease), visibility 0s 1.1s; }
.hs-slide.on { opacity: 1; visibility: visible; transition: opacity 1.1s var(--ease), visibility 0s; z-index: 1; }
.hs-media { position: absolute; inset: -4%; transform: translate3d(var(--px, 0), var(--py, 0), 0); transition: transform .6s var(--ease); }
.hs-media img, .hs-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hs-media video { opacity: 0; transition: opacity .8s; }
.hs-media video.ready { opacity: 1; }
.hs-slide.fx-zoom.on .hs-media img { animation: hs-zoom calc(var(--speed, 6s) + 2s) linear both; }
.hs-slide.fx-pan.on .hs-media img { animation: hs-pan calc(var(--speed, 6s) + 2s) linear both; }
@keyframes hs-zoom { from { transform: scale(1.02); } to { transform: scale(1.16); } }
@keyframes hs-pan { from { transform: scale(1.14) translateX(-3%); } to { transform: scale(1.14) translateX(3%); } }
.hs-shade { position: absolute; inset: 0; background:
  linear-gradient(100deg, rgba(8,11,34,.86) 0%, rgba(8,11,34,.62) 38%, rgba(8,11,34,.12) 72%, rgba(8,11,34,0) 100%),
  linear-gradient(0deg, rgba(8,11,34,.7) 0%, rgba(8,11,34,0) 34%); }
.hs-slide.al-center .hs-shade { background: radial-gradient(ellipse at center, rgba(8,11,34,.72), rgba(8,11,34,.35) 70%), linear-gradient(0deg, rgba(8,11,34,.7), transparent 40%); }
.hs-body { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; padding-bottom: 120px; }
.hs-text { max-width: 640px; }
.hs-slide.al-center .hs-body { justify-content: center; text-align: center; }
.hs-slide.al-center .hs-text { max-width: 820px; } .hs-slide.al-center .hero-ctas { justify-content: center; }
.hs .eyebrow { color: #ffc27a; }
.hs .eyebrow::before { background: #ffc27a; }
.hs-title { color: #fff; font-size: calc(clamp(2.4rem, 5.4vw, 4.6rem) * var(--hs, 1)); line-height: 1.04; margin: 14px 0 18px; text-wrap: balance; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hs-title .hl { color: var(--orange); }
.hs-lead { color: rgba(255,255,255,.86); font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 56ch; margin-bottom: 26px; }
.hs-slide.al-center .hs-lead { margin-inline: auto; }
/* text enters after the picture */
.hs-in { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hs-slide.on .hs-in { opacity: 1; transform: none; }
.hs-slide.on .hs-in:nth-child(2) { transition-delay: .12s; } .hs-slide.on .hs-in:nth-child(3) { transition-delay: .24s; } .hs-slide.on .hs-in:nth-child(4) { transition-delay: .36s; }
.hs-ui { position: absolute; inset: auto 0 26px; z-index: 5; display: flex; gap: 20px; align-items: flex-end; justify-content: space-between; left: 0; right: 0; }
.hs-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 14px; flex: 1; max-width: 880px; }
.hs-tab { background: none; border: 0; padding: 0; color: rgba(255,255,255,.62); text-align: left; cursor: pointer; display: grid; gap: 6px; font: inherit; transition: color .3s; }
.hs-tab b { font-size: .78rem; letter-spacing: .1em; }
.hs-tab small { font-size: .78rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.hs-tab.on, .hs-tab:hover { color: #fff; }
.hs-bar { height: 3px; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden; display: block; }
.hs-bar i { display: block; height: 100%; width: 0; background: var(--orange); }
.hs-tab.on .hs-bar i { animation: hs-bar var(--speed, 6s) linear forwards; }
.hs.paused .hs-tab.on .hs-bar i { animation-play-state: paused; }
.hs.static .hs-tab.on .hs-bar i { animation: none; width: 100%; }
@keyframes hs-bar { to { width: 100%; } }
.hs-arrows { display: flex; gap: 8px; }
.hs-btn { width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; font-size: 1rem; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .25s, transform .25s; }
.hs-btn:hover { background: var(--orange); color: #1b1300; transform: translateY(-2px); }
.hs-btn .i-play { display: none; } .hs.paused .hs-btn .i-play { display: inline; } .hs.paused .hs-btn .i-pause { display: none; }
.hs-stats { position: relative; z-index: 6; margin: -54px auto 0; display: flex; flex-wrap: wrap; gap: 10px 34px; align-items: center; justify-content: space-between; padding: 22px 30px; border-radius: 26px;
  background: color-mix(in srgb, var(--surface) 86%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow-lg); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); max-width: calc(var(--max) - 48px); }
.hs-stat b { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.1; color: var(--text); }
.hs-stat span { font-size: .82rem; color: var(--muted); }
.hs-badge { display: flex; gap: 12px; align-items: center; }
.hs-badge .dot { width: 48px; height: 48px; border-radius: 14px; background: var(--orange); color: #1b1300; display: grid; place-items: center; }
.hs-badge b { display: block; color: var(--text); } .hs-badge span { font-size: .82rem; color: var(--muted); }
/* floating 3D petals */
.petals3d { position: absolute; inset: 0; z-index: 3; pointer-events: none; transform-style: preserve-3d; overflow: hidden; }
.petals3d i { position: absolute; top: -8%; left: calc(8% + var(--i) * 10.5%); width: 16px; height: 30px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: linear-gradient(160deg, #ffc27a, var(--orange) 55%, #d96f00); opacity: .75; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25));
  animation: petal calc(13s + var(--i) * 1.7s) linear calc(var(--i) * -2.3s) infinite; }
.petals3d i:nth-child(3n) { width: 11px; height: 22px; opacity: .55; } .petals3d i:nth-child(4n) { width: 20px; height: 36px; opacity: .45; }
@keyframes petal {
  0% { transform: translate3d(0, -10vh, 0) rotate3d(1, .4, .2, 0deg); }
  50% { transform: translate3d(40px, 45vh, 120px) rotate3d(1, .4, .2, 280deg); }
  100% { transform: translate3d(-30px, 110vh, -60px) rotate3d(1, .4, .2, 620deg); }
}
body:not(.fx-3d) .petals3d { display: none; }
@media (max-width: 860px) {
  .hs { margin: 8px 10px 0; border-radius: 26px; height: clamp(560px, 92vh, 720px); }
  .hs-body { align-items: flex-end; padding-bottom: 150px; }
  .hs-shade { background: linear-gradient(0deg, rgba(8,11,34,.92) 0%, rgba(8,11,34,.55) 55%, rgba(8,11,34,.15) 100%); }
  .hs-tabs { grid-auto-columns: 1fr; gap: 6px; } .hs-tab small, .hs-tab b { display: none; }
  .hs-ui { inset: auto 0 18px; } .hs-btn { width: 40px; height: 40px; }
  .hs-stats { margin-top: -36px; padding: 18px 20px; gap: 14px 22px; } .hs-badge { flex-basis: 100%; }
}

/* ── design-style switcher (header) ────────────────────────────────────── */
.style-pick { position: relative; }
.style-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; padding: 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s var(--ease); z-index: 120; }
.style-pick.open .style-menu { opacity: 1; visibility: visible; transform: none; }
.style-menu button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: none; color: var(--text); font: 600 .9rem var(--font-body); cursor: pointer; text-align: left; }
.style-menu button:hover, .style-menu button[aria-checked="true"] { background: var(--sand-2); }
.style-menu button[aria-checked="true"]::after { content: "✓"; margin-left: auto; color: var(--orange); }
.sm-dot { width: 22px; height: 22px; border-radius: 7px; flex: 0 0 22px; }
.sm-classic { background: linear-gradient(135deg, var(--navy) 50%, var(--orange) 50%); }
.sm-neumorphism { background: #e6e9f1; box-shadow: 3px 3px 6px #c3c7d1, -3px -3px 6px #fff; }
.sm-glass { background: linear-gradient(135deg, rgba(247,148,29,.8), rgba(43,57,144,.7)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }

/* ── phone action bar ──────────────────────────────────────────────────── */
.mbar { display: none; }
@media (max-width: 760px) {
  .has-mbar .mbar { position: fixed; z-index: 140; inset: auto 10px calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px;
    border-radius: 22px; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line); box-shadow: 0 18px 40px -12px rgba(10,14,40,.45);
    backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); }
  .mbar a { display: grid; justify-items: center; gap: 2px; padding: 8px 2px; border-radius: 16px; font-size: .72rem; font-weight: 700; color: var(--text); }
  .mbar a:active { background: var(--sand-2); }
  .mbar .mb-wa .ic { color: #25d366; }
  .mbar .mb-book { background: var(--navy); color: #fff; }
  [data-theme="dark"] .mbar .mb-book { background: var(--orange); color: #1b1300; }
  .has-mbar .fab { display: none; }
  .has-mbar footer { padding-bottom: 96px; }
}

/* ── videos ────────────────────────────────────────────────────────────── */
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; align-items: start; }
.vid-grid.n1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.vid { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.vid-play { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; background: #0b0f2a; aspect-ratio: 16/9; overflow: hidden; }
.shape-tall .vid-play { aspect-ratio: 9/14; } .shape-square .vid-play { aspect-ratio: 1; }
.vid-play img, .vid-play video, .vid-play iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; transition: transform .8s var(--ease); }
.vid-play:hover img { transform: scale(1.05); }
.vid-btn { position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%; display: grid; place-items: center; color: #1b1300; background: var(--orange);
  box-shadow: 0 0 0 10px rgba(247,148,29,.25), 0 12px 30px rgba(0,0,0,.35); transition: transform .3s var(--ease); animation: vid-pulse 2.4s infinite; }
.vid-btn svg { margin-left: 4px; }
.vid-play:hover .vid-btn { transform: scale(1.08); }
@keyframes vid-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(247,148,29,.45), 0 12px 30px rgba(0,0,0,.35); } 60% { box-shadow: 0 0 0 18px rgba(247,148,29,0), 0 12px 30px rgba(0,0,0,.35); } }
.vid.playing .vid-btn { display: none; }
.vid figcaption { padding: 16px 18px 20px; display: grid; gap: 4px; }
.vid figcaption b { font-family: var(--font-display); font-size: 1.1rem; }
.vid figcaption span { font-size: .88rem; color: var(--muted); }

/* ── 3D: tilt with light glare, device frames ──────────────────────────── */
.fx-3d [data-tilt] { transform-style: preserve-3d; will-change: transform; transition: transform .5s var(--ease), box-shadow .5s; }
.fx-3d [data-tilt].tilting { transition: transform .08s linear, box-shadow .3s; box-shadow: 0 30px 60px -24px rgba(10,14,40,.45); }
.fx-3d [data-tilt] .glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 4;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.35), rgba(255,255,255,0) 55%); opacity: 0; transition: opacity .3s; mix-blend-mode: soft-light; }
.fx-3d [data-tilt].tilting .glare { opacity: 1; }
.fx-3d .sol-shot { perspective: 1400px; }
.fx-3d .sol-shot .frame { transform: rotateY(var(--ry, -14deg)) rotateX(var(--rx, 6deg)) translateZ(0); transform-style: preserve-3d; transition: transform .8s var(--ease);
  box-shadow: 30px 40px 70px -30px rgba(10,14,40,.55), 0 2px 0 rgba(255,255,255,.4) inset; }
.fx-3d .sol-alt .sol-shot .frame { --ry: 14deg; }
.fx-3d .sol-shot:hover .frame { transform: rotateY(0) rotateX(0) scale(1.02); }
.fx-3d .frame-phone::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 32%); }
.fx-3d .hero-visual .hv { transition: transform .6s var(--ease); transform: translate3d(var(--px, 0), var(--py, 0), 0); }
.fx-3d .flow-fund { animation: fund-spin 7s ease-in-out infinite; transform-style: preserve-3d; }
@keyframes fund-spin { 0%, 100% { transform: rotateY(0) translateY(0); } 50% { transform: rotateY(180deg) translateY(-6px); } }
.fx-3d .flow-fund > * { backface-visibility: visible; }

/* ── motion intensity ──────────────────────────────────────────────────── */
.motion-subtle .rv { transform: translateY(12px); }
.motion-subtle .petals3d i:nth-child(n+5) { display: none; }
.no-anim .hs-media img, .no-anim .petals3d, .no-anim .vid-btn { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .hs-media img, .petals3d i, .vid-btn, .flow-fund, .hs-tab.on .hs-bar i { animation: none !important; }
  .petals3d { display: none; }
  .hs-slide, .hs-in { transition: none !important; }
  .fx-3d [data-tilt] { transform: none !important; }
}

/* ==========================================================================
   DESIGN STYLES
   ========================================================================== */

/* ── 1. Classic — elegant, editorial, calm ─────────────────────────────── */
html[data-style="classic"] .section-tight + .section { border-top: 0; }
html[data-style="classic"] h2 { letter-spacing: -.025em; }

/* ── 2. Neumorphism — soft raised and pressed surfaces ─────────────────── */
html[data-style="neumorphism"] {
  --neu-bg: #e7ebf3; --neu-hi: #ffffff; --neu-lo: #c3c9d8;
  --bg: var(--neu-bg); --sand: var(--neu-bg); --surface: var(--neu-bg); --paper: var(--neu-bg); --sand-2: #dde2ec; --line: transparent;
  --text: #1b2142; --ink: #1b2142; --muted: #4e5578;
  --neu-out: 9px 9px 20px var(--neu-lo), -9px -9px 20px var(--neu-hi);
  --neu-out-sm: 5px 5px 12px var(--neu-lo), -5px -5px 12px var(--neu-hi);
  --neu-in: inset 6px 6px 12px var(--neu-lo), inset -6px -6px 12px var(--neu-hi);
  --shadow: var(--neu-out); --shadow-lg: 14px 14px 32px var(--neu-lo), -14px -14px 32px var(--neu-hi);
}
html[data-style="neumorphism"][data-theme="dark"] {
  --neu-bg: #1d2246; --neu-hi: #272d5a; --neu-lo: #121531; --sand-2: #1a1f40;
  --text: #eef0fb; --ink: #eef0fb; --muted: #b4b9dc;
}
html[data-style="neumorphism"] body { background: var(--neu-bg); }
html[data-style="neumorphism"] :is(.svc, .ev, .post, .pk, .q, .fcard, .person, .rf, .ex, .contact-card, .aside-card, .steps li, .stat-band, .timeline, .faq details, .ptab, .ppanel, .org-node,
  .give-ideas div, .pay, .pay-form, .contact-form, .side-card, .loc, .pain-col, .fs, .sp, .vid, .vm, .v-panel, .pcard, .hs-stats, .demo-links a, .loc, .mcard, .uca, .cn, .barrier .b-front, .barrier .b-back, .tl-panel, .pform) {
  background: var(--neu-bg); border-color: transparent !important; box-shadow: var(--neu-out); }
html[data-style="neumorphism"] :is(.svc, .ev, .post, .fs, .pcard, .vid, .sp):hover { box-shadow: 14px 14px 28px var(--neu-lo), -14px -14px 28px var(--neu-hi); }
html[data-style="neumorphism"] .pk.pop { background: var(--navy); }
html[data-style="neumorphism"] .rf-hl, html[data-style="neumorphism"] .org-node.top { background: var(--navy); color: #fff; }
html[data-style="neumorphism"] :is(.btn-primary, .btn-dark, .btn-ghost, .btn-brand, .icon-btn, .chip, .hs-btn) { box-shadow: var(--neu-out-sm); border-color: transparent; }
html[data-style="neumorphism"] :is(.btn-primary, .btn-dark, .btn-ghost, .btn-brand, .icon-btn, .chip):active,
html[data-style="neumorphism"] .chip.on, html[data-style="neumorphism"] .ptab.on { box-shadow: var(--neu-in); }
html[data-style="neumorphism"] .btn-ghost, html[data-style="neumorphism"] .icon-btn, html[data-style="neumorphism"] .chip { background: var(--neu-bg); color: var(--text); }
html[data-style="neumorphism"] .chip.on { color: var(--orange-600); }
html[data-style="neumorphism"][data-theme="dark"] .chip.on { color: var(--orange); }
html[data-style="neumorphism"] :is(input, select, textarea, .search) { background: var(--neu-bg) !important; border-color: transparent !important; box-shadow: var(--neu-in); }
html[data-style="neumorphism"] .nav, html[data-style="neumorphism"] .nav.scrolled { background: var(--neu-bg); box-shadow: 0 8px 20px -8px var(--neu-lo); }
html[data-style="neumorphism"] .menu .sub, html[data-style="neumorphism"] .style-menu { background: var(--neu-bg); border-color: transparent; box-shadow: var(--neu-out); }
html[data-style="neumorphism"] .menu a.active, html[data-style="neumorphism"] .menu a:hover { background: var(--neu-bg); box-shadow: var(--neu-in); }
html[data-style="neumorphism"] .svc-ic, html[data-style="neumorphism"] .fs-ic, html[data-style="neumorphism"] .loc-ic { box-shadow: var(--neu-out-sm); }
html[data-style="neumorphism"] .subnav { background: var(--neu-bg); box-shadow: 0 10px 20px -12px var(--neu-lo); }
html[data-style="neumorphism"] .mbar { background: var(--neu-bg) !important; box-shadow: var(--neu-out) !important; border-color: transparent !important; }

/* ── 3. Glassmorphism — frosted panels over moving colour ──────────────── */
.glass-bg { display: none; }
html[data-style="glass"] .glass-bg { display: block; position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); }
html[data-style="glass"] .glass-bg i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(70px); opacity: .55; animation: blob 26s ease-in-out infinite alternate; }
html[data-style="glass"] .glass-bg i:nth-child(1) { background: var(--orange); top: -12vmax; left: -10vmax; }
html[data-style="glass"] .glass-bg i:nth-child(2) { background: var(--navy); bottom: -16vmax; right: -12vmax; animation-delay: -9s; opacity: .45; }
html[data-style="glass"] .glass-bg i:nth-child(3) { background: #ff6fae; top: 30%; left: 40%; width: 30vmax; height: 30vmax; opacity: .25; animation-delay: -16s; }
html[data-style="glass"][data-theme="dark"] .glass-bg i { opacity: .32; }
@keyframes blob { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(8vmax, 6vmax) scale(1.15); } 100% { transform: translate(-6vmax, 10vmax) scale(.95); } }
html[data-style="glass"] { --glass: rgba(255,255,255,.55); --glass-line: rgba(255,255,255,.75); --line: rgba(255,255,255,.6); --sand-2: rgba(255,255,255,.4); }
html[data-style="glass"][data-theme="dark"] { --glass: rgba(22,27,64,.52); --glass-line: rgba(255,255,255,.14); --line: rgba(255,255,255,.12); --sand-2: rgba(255,255,255,.06); }
html[data-style="glass"] body { background: transparent; }
html[data-style="glass"] :is(.svc, .ev, .post, .pk, .q, .fcard, .person, .rf, .ex, .contact-card, .aside-card, .steps li, .stat-band, .timeline, .faq details, .ptab, .ppanel, .org-node,
  .give-ideas div, .pay, .pay-form, .contact-form, .side-card, .loc, .pain-col, .fs, .sp, .vid, .vm, .v-panel, .hs-stats, .demo-links a, .mcard, .uca, .barrier .b-front, .tl-panel, .chip, .search, .subnav, .style-menu, .menu .sub, .nav) {
  background: var(--glass) !important; border-color: var(--glass-line) !important;
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); }
html[data-style="glass"] .pk.pop, html[data-style="glass"] .rf-hl, html[data-style="glass"] .org-node.top { background: color-mix(in srgb, var(--navy) 82%, transparent) !important; }
html[data-style="glass"] .chip.on { background: var(--ink) !important; color: var(--bg); }
html[data-style="glass"] :is(input, select, textarea) { background: rgba(255,255,255,.5); border-color: var(--glass-line); }
html[data-style="glass"][data-theme="dark"] :is(input, select, textarea) { background: rgba(255,255,255,.06); }
html[data-style="glass"] .uca, html[data-style="glass"] .eco { box-shadow: 0 30px 60px -30px rgba(10,14,40,.35); }
html[data-style="glass"] .eco { background: color-mix(in srgb, var(--footer, #141a3a) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  [data-style="glass"] { --glass: rgba(255,255,255,.92); }
  [data-style="glass"][data-theme="dark"] { --glass: rgba(22,27,64,.94); }
}
.vid .vid-live { display: block; width: 100%; aspect-ratio: 16/9; background: #000; }
.vid.shape-tall .vid-live { aspect-ratio: 9/14; } .vid.shape-square .vid-live { aspect-ratio: 1; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }

/* header fits the extra style button on laptop screens */
@media (min-width: 1181px) {
  .nav .wrap { max-width: calc(var(--max) + 140px); }
}
@media (min-width: 1181px) and (max-width: 1480px) {
  .menu { gap: 2px; } .menu a { padding: 9px 9px; font-size: .88rem; }
  .nav-actions { gap: 6px; } .nav-actions .icon-btn { width: 40px; height: 40px; }
  .nav-actions .btn { padding: 11px 16px; font-size: .9rem; }
  .brand b { font-size: 1.06rem; } .brand img { width: 46px; height: 46px; }
}
/* slider controls sit above the floating numbers card */
.hs-ui { bottom: 78px; }
.hs-body { padding-bottom: 170px; }
@media (max-width: 860px) { .hs-ui { bottom: 56px; } .hs-body { padding-bottom: 180px; } }
html[data-style="glass"] { background: var(--bg); }
/* phones: keep the header tidy (the action bar already gives Call, WhatsApp, Directions and Book) */
@media (max-width: 600px) {
  .has-mbar .topbar { display: none; }
  .nav-actions { gap: 4px; } .nav-actions .icon-btn { width: 38px; height: 38px; }
}
@media (max-width: 430px) { .style-pick { display: none; } .brand small { display: none; } }

/* ── v1.4 · CEMS application forms (book.php, apply.php) and school phone ── */
.cems-side { position: sticky; top: 110px; }
.cems-side h2 { margin: 8px 0 6px; }
.cems-form { gap: 14px; }
.cems-title { margin: 0; font-size: 1.25rem; }
.cems-sec { margin: 10px 0 0; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-600); }
.cems-sec:first-of-type { border-top: 0; padding-top: 0; }
.cems-form .fld input:focus, .cems-form .fld select:focus, .cems-form .fld textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 18%, transparent); }
.cems-form .bad { border-color: #d64545 !important; }
.call-school { display: inline-flex; align-items: center; gap: 8px; }
.school-phones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
@media (max-width: 900px) { .cems-side { position: static; } }
/* top bar stays on one line even with the longer Kiswahili working hours */
@media (min-width: 601px) {
  .topbar .wrap { flex-wrap: nowrap; }
  .topbar .tb-left { min-width: 0; flex: 1 1 auto; gap: 18px; }
  .topbar .tb-left > * { white-space: nowrap; }
  .topbar .tb-left > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
  .topbar .tb-right { flex: 0 0 auto; white-space: nowrap; gap: 18px; }
}
