/* ==========================================================
   Stageomay — Layout D "Spotlight Bento"
   Bootstrap 5.3 colour modes (light / dark) · glass navigation · bento grid
   ========================================================== */
:root, [data-bs-theme="light"] {
  --sd-bg: #f5f3fb;
  --sd-surface: #ffffff;
  --sd-surface-2: #efeaf9;
  --sd-text: #1d1830;
  --sd-muted: #6b6582;
  --sd-line: rgba(29, 24, 48, .09);
  --sd-violet: #6a2fd6;
  --sd-pink: #d9327a;
  --sd-gold: #f2a51a;
  --sd-grad: linear-gradient(120deg, #6a2fd6 0%, #d9327a 55%, #f2a51a 100%);
  --sd-glass: rgba(255,255,255,.72);
  --sd-shadow: 0 24px 60px -30px rgba(52, 22, 110, .35);
  --bs-body-bg: var(--sd-bg);
  --bs-body-color: var(--sd-text);
  --bs-link-color: #6a2fd6;
  --bs-link-color-rgb: 106, 47, 214;
  --bs-link-hover-color: #d9327a;
  --bs-link-hover-color-rgb: 217, 50, 122;
}
[data-bs-theme="dark"] {
  --sd-bg: #0f0c1a;
  --sd-surface: #18142a;
  --sd-surface-2: #221c3a;
  --sd-text: #ece9f7;
  --sd-muted: #a39cbf;
  --sd-line: rgba(255, 255, 255, .09);
  --sd-violet: #9b6bff;
  --sd-pink: #ff5b9e;
  --sd-gold: #ffc14d;
  --sd-grad: linear-gradient(120deg, #9b6bff 0%, #ff5b9e 55%, #ffc14d 100%);
  --sd-glass: rgba(24, 20, 42, .72);
  --sd-shadow: 0 24px 60px -30px rgba(0, 0, 0, .8);
  --bs-body-bg: var(--sd-bg);
  --bs-body-color: var(--sd-text);
  --bs-link-color: #b996ff;
  --bs-link-color-rgb: 185, 150, 255;
  --bs-link-hover-color: #ff8fbd;
  --bs-link-hover-color-rgb: 255, 143, 189;
}
:root { --bs-font-sans-serif: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
body { background: var(--sd-bg); color: var(--sd-text); font-size: 15.5px; line-height: 1.7; transition: background .3s, color .3s; }
h1, h2, h3, h4, h5, .display-t { font-family: "Unbounded", "Plus Jakarta Sans", sans-serif; font-weight: 600; color: var(--sd-text); letter-spacing: -.02em; line-height: 1.12; }
a { color: var(--bs-link-color); }
img { max-width: 100%; }
::selection { background: var(--sd-violet); color: #fff; }
.grad-text { background: var(--sd-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-muted, .text-body-secondary { color: var(--sd-muted) !important; }

/* Ambient background blobs */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient span { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(110px); opacity: .22; }
.ambient span:nth-child(1) { background: var(--sd-violet); top: -160px; left: -120px; }
.ambient span:nth-child(2) { background: var(--sd-pink); top: 30%; right: -200px; }
.ambient span:nth-child(3) { background: var(--sd-gold); bottom: -220px; left: 30%; opacity: .14; }

/* ---------- Floating glass navbar ---------- */
.nav-wrap { position: sticky; top: 12px; z-index: 1030; padding: 0 12px; }
.navbar-glass { max-width: 1240px; margin: 12px auto 0; background: var(--sd-glass); border: 1px solid var(--sd-line); border-radius: 999px; padding: 8px 10px 8px 18px; box-shadow: var(--sd-shadow); isolation: isolate; position: relative; }
.navbar-glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); z-index: -1; }
.navbar-glass .logo-chip { background: #fff; border-radius: 999px; padding: 4px 12px; display: inline-flex; }
.navbar-glass .logo-chip img { height: 40px; width: auto; }
.navbar-glass .nav-link { color: var(--sd-text); font-weight: 600; font-size: 14px; padding: .55rem .9rem !important; border-radius: 999px; transition: background .2s, color .2s; }
.navbar-glass .nav-link:hover { background: var(--sd-surface-2); color: var(--sd-text); }
.navbar-glass .nav-link.active { background: var(--sd-text); color: var(--sd-bg); }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--sd-line); background: var(--sd-surface); color: var(--sd-text); display: inline-grid; place-items: center; font-size: 17px; transition: .2s; }
.icon-btn:hover { background: var(--sd-text); color: var(--sd-bg); }
.offcanvas-sd { background: var(--sd-surface); color: var(--sd-text); }
.offcanvas-sd .nav-link { font-family: "Unbounded", system-ui, sans-serif; font-size: 1.25rem; font-weight: 500; padding: .7rem 0 !important; border-bottom: 1px solid var(--sd-line); border-radius: 0; }
.offcanvas-sd .nav-link.active { background: none; color: var(--sd-violet); }
@media (min-width: 1200px) { .offcanvas-sd { background: transparent; } .offcanvas-sd .nav-link { font-family: inherit; font-size: 14px; font-weight: 600; padding: .55rem .9rem !important; border: 0; border-radius: 999px; } .offcanvas-sd .nav-link.active { background: var(--sd-text); color: var(--sd-bg); } }

/* ---------- Buttons ---------- */
.btn-sg { background: var(--sd-grad); background-size: 160% 100%; color: #fff; border: 0; border-radius: 999px; padding: .75rem 1.5rem; font-weight: 700; transition: background-position .4s, transform .2s; }
.btn-sg:hover { background-position: 100% 0; color: #fff; transform: translateY(-1px); }
.btn-gold { background: var(--sd-gold); color: #1d1830; border: 0; border-radius: 999px; padding: .75rem 1.5rem; font-weight: 700; }
.btn-gold:hover { filter: brightness(1.08); color: #1d1830; }
.btn-ghost, .btn-line { background: var(--sd-surface); color: var(--sd-text); border: 1px solid var(--sd-line); border-radius: 999px; padding: .75rem 1.5rem; font-weight: 700; }
.btn-ghost:hover, .btn-line:hover { background: var(--sd-text); color: var(--sd-bg); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-paper { background: color-mix(in srgb, var(--sd-surface) 55%, transparent); border-top: 1px solid var(--sd-line); border-bottom: 1px solid var(--sd-line); }
.section-dark { background: #120e20; color: #e7e3f5; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.kicker { display: inline-flex; align-items: center; gap: .5rem; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sd-violet); background: color-mix(in srgb, var(--sd-violet) 12%, transparent); padding: .35rem .8rem; border-radius: 999px; }
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin: .9rem 0 .8rem; }
.section-sub { color: var(--sd-muted); max-width: 640px; }

/* ---------- Bento hero ---------- */
.bento-hero { padding: 34px 0 30px; }
.bento-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(120px, auto); gap: 16px; }
.b-tile { background: var(--sd-surface); border: 1px solid var(--sd-line); border-radius: 26px; box-shadow: var(--sd-shadow); overflow: hidden; position: relative; }
.b-slider { grid-column: span 8; grid-row: span 4; background: #0d0a17; min-height: 520px; }
.b-slider .carousel, .b-slider .carousel-inner, .b-slider .carousel-item { height: 100%; }
.b-slider .carousel-item .bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(26px) brightness(.5); transform: scale(1.15); }
.b-slider .carousel-item img.fg { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.b-slider .cap { position: absolute; z-index: 3; left: 18px; bottom: 18px; right: 18px; display: flex; justify-content: space-between; align-items: center; }
.b-slider .cap .chip { background: rgba(255,255,255,.14); backdrop-filter: blur(8px); color: #fff; border-radius: 999px; padding: .4rem .9rem; font-size: 13px; font-weight: 600; }
.b-slider .cap .ctl button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: #1d1830; margin-left: .3rem; }
.b-intro { grid-column: span 4; grid-row: span 2; padding: 28px; background: var(--sd-grad); color: #fff; border: 0; }
.b-intro h1 { color: #fff; font-size: clamp(1.9rem, 2.6vw, 2.5rem); margin: .4rem 0 .7rem; }
.b-intro .eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .16em; opacity: .85; font-weight: 700; }
.b-intro p { opacity: .92; font-size: 14.5px; margin-bottom: 1rem; }
.b-intro .roles { display: flex; flex-wrap: wrap; gap: .35rem; }
.b-intro .roles span { background: rgba(255,255,255,.18); border-radius: 999px; padding: .2rem .65rem; font-size: 12px; font-weight: 600; }
.b-video { grid-column: span 4; grid-row: span 1; display: flex; align-items: center; gap: 14px; padding: 14px; text-decoration: none; color: var(--sd-text); }
.b-video img { width: 96px; height: 72px; object-fit: cover; border-radius: 14px; flex: 0 0 auto; }
.b-video .pl { width: 40px; height: 40px; border-radius: 50%; background: var(--sd-pink); color: #fff; display: grid; place-items: center; flex: 0 0 auto; margin-left: auto; }
.b-video small { color: var(--sd-muted); display: block; font-size: 12px; }
.b-video strong { font-size: 14.5px; line-height: 1.3; display: block; }
.b-video:hover { color: var(--sd-text); background: var(--sd-surface-2); }
.b-stat { grid-column: span 2; grid-row: span 1; padding: 18px; display: flex; flex-direction: column; justify-content: center; }
.b-stat .n { font-family: "Unbounded", system-ui, sans-serif; font-size: 1.6rem; font-weight: 700; }
.b-stat .l { font-size: 12px; color: var(--sd-muted); font-weight: 600; }
@media (max-width: 991.98px) {
  .b-slider { grid-column: span 12; grid-row: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .b-intro { grid-column: span 12; grid-row: auto; }
  .b-video { grid-column: span 12; }
  .b-stat { grid-column: span 6; }
}

/* ---------- Ticker ---------- */
.ticker-sd { overflow: hidden; white-space: nowrap; border-top: 1px solid var(--sd-line); border-bottom: 1px solid var(--sd-line); padding: .85rem 0; background: var(--sd-surface); }
.ticker-sd .track { display: inline-block; animation: tk 60s linear infinite; }
.ticker-sd span { margin: 0 1.6rem; font-weight: 600; font-size: 14px; }
.ticker-sd span i { color: var(--sd-pink); margin-right: .45rem; }
.ticker-sd:hover .track { animation-play-state: paused; }
@keyframes tk { to { transform: translateX(-50%); } }

/* ---------- Filter pills + update cards ---------- */
.filter-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-pills button { border: 1px solid var(--sd-line); background: var(--sd-surface); color: var(--sd-text); border-radius: 999px; padding: .5rem 1.1rem; font-weight: 600; font-size: 14px; transition: .2s; }
.filter-pills button.active, .filter-pills button:hover { background: var(--sd-text); color: var(--sd-bg); border-color: var(--sd-text); }
.card-sg { background: var(--sd-surface); border: 1px solid var(--sd-line); border-radius: 22px; overflow: hidden; height: 100%; transition: transform .3s, box-shadow .3s; }
.card-sg:hover { transform: translateY(-5px); box-shadow: var(--sd-shadow); }
.card-sg .thumb { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #0d0a17; margin: 10px 10px 0; border-radius: 16px; }
.card-sg .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card-sg:hover .thumb img { transform: scale(1.05); }
.card-sg .thumb .badge-date { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.92); color: #1d1830; font-size: 12px; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; }
.card-sg .thumb .new-gif { position: absolute; right: 12px; top: 12px; height: 26px; width: auto; }
.card-sg .thumb .play { position: absolute; inset: 0; display: grid; place-items: center; }
.card-sg .thumb .play i { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--sd-pink); display: grid; place-items: center; font-size: 26px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.card-sg .body { padding: 1.1rem 1.3rem 1.4rem; }
.card-sg .meta { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sd-pink); }
.card-sg h3 { font-size: 1.12rem; margin: .45rem 0 .5rem; }
.card-sg p { color: var(--sd-muted); font-size: 14px; margin-bottom: .8rem; }
.card-sg .more { font-weight: 700; text-decoration: none; font-size: 14px; }

/* ---------- Feature ---------- */
.feature-card { background: var(--sd-surface); border: 1px solid var(--sd-line); border-radius: 28px; padding: 14px; box-shadow: var(--sd-shadow); }
.feature-card .pics { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: 100%; min-height: 420px; }
.feature-card .pics a { border-radius: 18px; overflow: hidden; display: block; background: #0d0a17; }
.feature-card .pics a:first-child { grid-row: span 2; }
.feature-card .pics img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.feature-card .pics a:hover img { transform: scale(1.05); }
.feature-card .copy { padding: 22px 18px; }
@media (max-width: 991.98px) { .feature-card .pics { min-height: 300px; } }
.quote-box { position: relative; background: var(--sd-surface-2); border-radius: 18px; padding: 1.2rem 1.3rem 1.2rem 3.2rem; font-style: italic; margin: 1.3rem 0; }
.quote-box::before { content: "\201C"; position: absolute; left: 16px; top: -2px; font-family: "Unbounded", system-ui, sans-serif; font-size: 3rem; line-height: 1; background: var(--sd-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: normal; }

/* ---------- Tabs (archives / news) ---------- */
.tabs-sd { display: inline-flex; background: var(--sd-surface); border: 1px solid var(--sd-line); border-radius: 999px; padding: 5px; gap: 4px; }
.tabs-sd .nav-link { border-radius: 999px; color: var(--sd-text); font-weight: 700; font-size: 14px; padding: .55rem 1.2rem; }
.tabs-sd .nav-link.active { background: var(--sd-grad); color: #fff; }
.archive-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 1.2rem; align-items: center; background: var(--sd-surface); border: 1px solid var(--sd-line); border-radius: 20px; padding: 1rem 1.2rem; margin-bottom: 12px; transition: transform .2s, box-shadow .2s; }
.archive-item:hover { transform: translateX(4px); box-shadow: var(--sd-shadow); }
.archive-item .date { text-align: center; background: var(--sd-surface-2); border-radius: 14px; padding: .55rem .2rem; }
.archive-item .date .d { display: block; font-family: "Unbounded", system-ui, sans-serif; font-size: 1.4rem; font-weight: 700; line-height: 1; }
.archive-item .date .m { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--sd-muted); text-transform: uppercase; }
.archive-item .org { font-size: 12px; font-weight: 700; color: var(--sd-pink); text-transform: uppercase; letter-spacing: .06em; }
.archive-item h5 { font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 1.05rem; font-weight: 700; letter-spacing: 0; margin: .15rem 0; }
.archive-item p { margin: 0; color: var(--sd-muted); font-size: 14px; }
.archive-item .go { font-size: 13.5px; font-weight: 600; text-align: right; }
@media (max-width: 767.98px) { .archive-item { grid-template-columns: 70px 1fr; } .archive-item .go { grid-column: 1 / -1; text-align: left; } }
.news-card { background: var(--sd-surface); border: 1px solid var(--sd-line); border-radius: 20px; padding: 1.3rem 1.3rem 1.4rem; height: 100%; position: relative; overflow: hidden; }
.news-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--sd-grad); }
.news-card .when { display: inline-block; font-size: 12px; font-weight: 700; background: var(--sd-surface-2); padding: .25rem .65rem; border-radius: 999px; color: var(--sd-violet); }
.news-card h5 { font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-weight: 800; font-size: 1.05rem; letter-spacing: 0; margin: .8rem 0 .45rem; }
.news-card p { color: var(--sd-muted); font-size: 14px; margin: 0; }

/* ---------- Photo wall (every image, linked to source) ---------- */
.photo-wall { columns: 5 180px; column-gap: 12px; }
.photo-wall a { display: block; margin-bottom: 12px; border-radius: 16px; overflow: hidden; break-inside: avoid; background: var(--sd-surface-2); }
.photo-wall img { width: 100%; height: auto; display: block; transition: transform .5s; }
.photo-wall a:hover img { transform: scale(1.04); }

/* ---------- Video ---------- */
.ratio-video { border-radius: 24px; overflow: hidden; box-shadow: var(--sd-shadow); border: 8px solid var(--sd-surface); }

/* ---------- Inner page header ---------- */
.page-card { margin: 26px auto 0; max-width: 1240px; padding: 0 12px; }
.page-card .inner { background: var(--sd-grad); border-radius: 30px; padding: 70px 40px 60px; color: #fff; position: relative; overflow: hidden; text-align: center; }
.page-card .inner::before, .page-card .inner::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.12); }
.page-card .inner::before { width: 340px; height: 340px; left: -120px; top: -160px; }
.page-card .inner::after { width: 260px; height: 260px; right: -80px; bottom: -140px; }
.page-card h1 { color: #fff; font-size: clamp(2.2rem, 5.4vw, 3.8rem); margin: .4rem 0 .7rem; position: relative; }
.page-card .sub { opacity: .92; max-width: 640px; margin: 0 auto 1rem; position: relative; }
.page-card .breadcrumb { justify-content: center; position: relative; --bs-breadcrumb-divider-color: rgba(255,255,255,.7); font-size: 14px; }
.page-card .breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.page-card .breadcrumb .active { color: #fff; font-weight: 700; }
@media (max-width: 575.98px) { .page-card .inner { padding: 50px 20px 40px; } }

/* ---------- Contact / gallery (inner) ---------- */
.contact-card { background: var(--sd-surface); border: 1px solid var(--sd-line); border-radius: 22px; padding: 1.8rem; height: 100%; }
.contact-card .icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--sd-grad); color: #fff; font-size: 22px; margin-bottom: 1rem; }
.contact-card .role { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sd-pink); }
.contact-card h4 { font-size: 1.15rem; margin: .4rem 0 .8rem; }
.contact-card p { color: var(--sd-muted); }
.contact-card a { text-decoration: none; }
.form-control, .form-select { background: var(--sd-surface-2); border: 1px solid transparent; border-radius: 14px; padding: .8rem 1rem; color: var(--sd-text); }
.form-control:focus, .form-select:focus { background: var(--sd-surface); color: var(--sd-text); border-color: var(--sd-violet); box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--sd-violet) 18%, transparent); }
.form-label { font-weight: 600; font-size: 14px; }
.socials a { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--sd-surface-2); color: var(--sd-text); margin-right: .35rem; text-decoration: none; transition: .2s; }
.socials a:hover { background: var(--sd-grad); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gallery-item { display: block; position: relative; border-radius: 20px; overflow: hidden; background: var(--sd-surface-2); cursor: zoom-in; border: 1px solid var(--sd-line); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .6s; }
.gallery-item.contain img { object-fit: contain; background: #fff; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .zoom { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.92); color: #1d1830; display: grid; place-items: center; opacity: 0; transition: .3s; }
.gallery-item:hover .zoom { opacity: 1; }
.g-cap { display: flex; justify-content: space-between; gap: .6rem; font-size: 13px; color: var(--sd-muted); padding: .55rem .3rem 0; }
.g-cap a { font-weight: 600; white-space: nowrap; text-decoration: none; }
#lightbox .modal-content, #videoModal .modal-content { background: transparent; border: 0; }
#lightbox img { max-height: 82vh; width: auto; margin: 0 auto; display: block; border-radius: 14px; }
#lightbox .src { text-align: center; margin-top: .8rem; }
#lightbox .src a { color: #fff; font-size: 13px; }
#lightbox .btn-close, #videoModal .btn-close { position: absolute; top: -40px; right: 0; filter: invert(1); opacity: 1; }
.pager-sg .page-link { border-radius: 999px !important; margin: 0 .2rem; background: var(--sd-surface); border-color: var(--sd-line); color: var(--sd-text); font-weight: 600; }
.pager-sg .active > .page-link { background: var(--sd-grad); border-color: transparent; color: #fff; }

/* ---------- Footer ---------- */
.footer-sd { padding: 30px 12px 20px; }
.footer-sd .inner { max-width: 1240px; margin: 0 auto; background: #120e20; color: rgba(255,255,255,.66); border-radius: 30px; padding: 60px 44px 26px; font-size: 14.5px; position: relative; overflow: hidden; }
.footer-sd .inner::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--sd-grad); }
.footer-sd h6 { color: #fff; font-family: "Unbounded", system-ui, sans-serif; font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.footer-sd a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer-sd a:hover { color: #fff; }
.footer-sd ul { list-style: none; padding: 0; margin: 0; }
.footer-sd ul li { margin-bottom: .5rem; }
.footer-sd .logo-chip { background: #fff; border-radius: 16px; padding: 8px 14px; display: inline-block; }
.footer-sd .logo-chip img { height: 50px; }
.footer-sd .socials a { background: rgba(255,255,255,.08); color: #fff; }
.footer-sd .bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 20px; font-size: 13px; }
@media (max-width: 575.98px) { .footer-sd .inner { padding: 44px 22px 22px; } }

#toTop { position: fixed; right: 20px; bottom: 20px; width: 48px; height: 48px; border-radius: 50%; background: var(--sd-grad); color: #fff; border: 0; display: grid; place-items: center; font-size: 20px; opacity: 0; visibility: hidden; transition: .3s; z-index: 1030; box-shadow: var(--sd-shadow); }
#toTop.show { opacity: 1; visibility: visible; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .ticker-sd .track { animation: none; } }
section, footer { overflow-x: clip; }
@media (max-width: 767.98px) { .row.g-5 { --bs-gutter-x: 1.5rem; } .section { padding: 60px 0; } }

/* ==========================================================
   Animated text logo — "Stageomays.com" (replaces images/logo.png)
   Colours/fonts come from the --tl-* variables set per layout below.
   ========================================================== */
.text-logo { display: inline-flex; align-items: baseline; text-decoration: none; white-space: nowrap; line-height: 1; padding: 4px 0;
  font-family: var(--tl-font); font-weight: var(--tl-weight, 700); font-size: var(--tl-size, 1.5rem); letter-spacing: var(--tl-ls, -.01em); font-style: var(--tl-style, normal); }
.text-logo:hover { text-decoration: none; }
.tl-word { display: inline-flex; align-items: baseline; }
.tl-l { display: inline-block; background: var(--tl-grad); background-size: 400% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: tl-rise .7s cubic-bezier(.2,.8,.2,1.25) both, tl-shine 7s linear infinite; animation-delay: calc(var(--i) * 70ms), calc(var(--i) * -100ms); }
.tl-dom { display: inline-block; overflow: hidden; max-width: 0; color: var(--tl-dom); font-size: .62em; font-weight: var(--tl-dom-weight, 600); letter-spacing: .02em; margin-left: .06em;
  border-right: 2px solid var(--tl-dom); padding-right: 1px;
  animation: tl-type .6s steps(4) .8s forwards, tl-caret .7s step-end .8s 5 forwards; }
.text-logo:hover .tl-l { animation: tl-hop .5s ease both, tl-shine 7s linear infinite; animation-delay: calc(var(--i) * 40ms), calc(var(--i) * -100ms); }
.text-logo.tl-lg { --tl-size: var(--tl-size-lg, 2.1rem); }
.text-logo.tl-xl { --tl-size: var(--tl-size-xl, 3rem); }
@keyframes tl-rise { from { opacity: 0; transform: translateY(.45em) rotate(8deg); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes tl-shine { from { background-position: 0% 50%; } to { background-position: 400% 50%; } }
@keyframes tl-hop { 0%, 100% { transform: none; } 40% { transform: translateY(-.18em); } }
@keyframes tl-type { to { max-width: 3em; } }
@keyframes tl-caret { 0% { border-color: var(--tl-dom); } 50% { border-color: transparent; } 100% { border-color: transparent; } }
@media (prefers-reduced-motion: reduce) { .tl-l { animation: none !important; } .tl-dom { animation: none !important; max-width: 3em; border-color: transparent; } }

:root, [data-bs-theme="light"] { --tl-font: "Unbounded", system-ui, sans-serif; --tl-weight: 700; --tl-size: 1.3rem; --tl-size-lg: 2rem; --tl-ls: -.02em;
  --tl-grad: linear-gradient(100deg, #6a2fd6 0%, #d9327a 25%, #f2a51a 50%, #d9327a 75%, #6a2fd6 100%); --tl-dom: #d9327a; }
[data-bs-theme="dark"], .tl-dark { --tl-grad: linear-gradient(100deg, #b996ff 0%, #ff5b9e 25%, #ffc14d 50%, #ff5b9e 75%, #b996ff 100%); --tl-dom: #ff8fbd; }
@media (max-width: 400px) { :root { --tl-size: 1.1rem; } }

/* ----------------------------------------------------------
   Layout D logo animation — "Stage lights"
   1. letters appear as outlines  2. a spotlight sweep lights each one up
   3. ".com" flips down like a signboard  4. soft neon glow + flowing colour
   ---------------------------------------------------------- */
.text-logo .tl-word { position: relative; animation: sl-glow 4.5s ease-in-out 1.6s infinite; }
.text-logo .tl-l {
  position: relative; background: none; color: transparent;
  -webkit-text-stroke: 1.2px var(--tl-dom); text-stroke: 1.2px var(--tl-dom);
  animation: sl-outline .5s ease-out both; animation-delay: calc(var(--i) * 45ms);
}
.text-logo .tl-l::after {
  content: attr(data-ch); position: absolute; inset: 0;
  background: var(--tl-grad); background-size: 1000% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 0; clip-path: inset(0 100% 0 0);
  animation: sl-light .45s cubic-bezier(.3,.7,.2,1) forwards, sl-flow 9s linear infinite;
  animation-delay: calc(.35s + var(--i) * 85ms), calc(var(--i) * -.9s);
}
.text-logo .tl-l::before {   /* the moving spotlight */
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -40%; width: 60%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.95), rgba(255,240,200,.35) 55%, transparent);
  opacity: 0; pointer-events: none; mix-blend-mode: screen;
  animation: sl-beam .45s ease-out forwards; animation-delay: calc(.35s + var(--i) * 85ms);
}
.text-logo .tl-dom {
  max-width: none; overflow: visible; border-right: 0; padding-right: 0;
  display: inline-block; transform-origin: 50% 0; transform: perspective(300px) rotateX(-95deg); opacity: 0;
  animation: sl-flip .8s cubic-bezier(.2,1.6,.4,1) 1.3s forwards;
}
.text-logo:hover .tl-l { animation: sl-wave .55s ease both; animation-delay: calc(var(--i) * 35ms); }
.text-logo:hover .tl-word { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--tl-dom) 55%, transparent)); }
@keyframes sl-outline { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes sl-light { 0% { clip-path: inset(0 100% 0 0); } 100% { clip-path: inset(0 0 0 0); } }
@keyframes sl-beam { 0% { opacity: 0; left: -40%; } 40% { opacity: .9; } 100% { opacity: 0; left: 90%; } }
@keyframes sl-flow { from { background-position: 0% 50%; } to { background-position: 1000% 50%; } }
@keyframes sl-flip { 0% { opacity: 0; transform: perspective(300px) rotateX(-95deg); } 60% { opacity: 1; } 100% { opacity: 1; transform: perspective(300px) rotateX(0); } }
@keyframes sl-glow { 0%, 100% { filter: drop-shadow(0 0 0 transparent); } 50% { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--tl-dom) 45%, transparent)); } }
@keyframes sl-wave { 0%, 100% { transform: none; } 45% { transform: translateY(-.16em) scale(1.12); } }
@media (prefers-reduced-motion: reduce) {
  .text-logo .tl-word, .text-logo .tl-l, .text-logo .tl-l::after, .text-logo .tl-l::before, .text-logo .tl-dom { animation: none !important; }
  .text-logo .tl-l::after { clip-path: none; }
  .text-logo .tl-dom { transform: none; opacity: 1; }
}
