/* ============================================================
   AWSITC — MODERN PREMIUM REDESIGN (WHITE / LIGHT THEME)
   Loaded last so it overrides theme styles (template.css etc.)
   Breakpoints: mobile 320–767 / tablet 768–1023 / desktop 1024+
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
    --bg: #f7f9fd;
    --bg-2: #eef2f9;
    --bg-3: #e6ecf6;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-solid: #ffffff;
    --surface-strong: rgba(255, 255, 255, 0.82);
    --border: rgba(16, 24, 43, 0.09);
    --border-bright: rgba(16, 24, 43, 0.18);

    --text: #101a2d;
    --text-dim: #46536e;
    --text-faint: #6b7691;

    --accent: #e6293b;          /* brand red, modernized */
    --accent-hot: #e6293b;
    --accent-deep: #a41a2b;
    --accent-cool: #3564e0;
    --accent-cyan: #0891b2;

    --grad-main: linear-gradient(100deg, #ff512f 0%, #e6293b 45%, #dd2476 100%);
    --grad-cool: linear-gradient(120deg, #3564e0 0%, #0891b2 100%);
    --grad-text: linear-gradient(95deg, #f24d1f 0%, #e6293b 50%, #c026a3 100%);

    --glow-red: rgba(230, 41, 59, 0.16);
    --shadow-card: 0 14px 40px -18px rgba(16, 24, 43, 0.22);
    --shadow-pop: 0 24px 55px -18px rgba(230, 41, 59, 0.30);

    --font-display: "Sora", "Segoe UI", sans-serif;
    --font-body: "Inter", "Segoe UI", sans-serif;

    --r-sm: 12px;
    --r-md: 18px;
    --r-lg: 26px;

    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 40px;
    --space-5: 64px;
    --space-6: 96px;

    --header-h: 78px;
}

/* ---------- 2. Base ---------- */
html {
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body.mdx-body,
body.mdx-body #page_wrapper {
    background:
        radial-gradient(1100px 500px at 85% -5%, rgba(53, 100, 224, 0.07), transparent 60%),
        radial-gradient(900px 520px at -10% 30%, rgba(230, 41, 59, 0.06), transparent 55%),
        var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

::selection {
    background: var(--accent);
    color: #fff;
}

img {
    max-width: 100%;
}

section[id],
[id="home"] {
    scroll-margin-top: calc(var(--header-h) + 20px);
}

/* Focus visibility for a11y */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-hot);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ---------- 3. Typography helpers ---------- */
.grad-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-hot);
    background: rgba(230, 41, 59, 0.08);
    border: 1px solid rgba(230, 41, 59, 0.22);
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: var(--space-3);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text) !important;
    margin: 0 0 var(--space-3);
}

.section-sub {
    color: var(--text-dim);
    max-width: 640px;
    margin: 0 auto;
}

.section-head.center {
    text-align: center;
    max-width: 780px;
    margin: 0 auto var(--space-5);
}

.section {
    position: relative;
    padding: var(--space-6) 0;
}

.section--alt {
    background:
        radial-gradient(800px 400px at 90% 0%, rgba(53, 100, 224, 0.05), transparent 60%),
        var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section--tight {
    padding: calc(var(--space-5)) 0;
}

/* ---------- 4. Glassmorphism ---------- */
.glass {
    background: var(--surface-strong);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-card);
}

/* ---------- 5. Buttons ---------- */
.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 15px 30px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    will-change: transform;
}

.btn-modern--primary {
    background: var(--grad-main);
    color: #fff !important;
    box-shadow: 0 12px 32px -12px rgba(230, 41, 59, 0.45);
}

.btn-modern--primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-pop);
    background: var(--grad-main);
}

.btn-modern--ghost {
    color: var(--text) !important;
    border-color: var(--border-bright);
    background: var(--surface-solid);
}

.btn-modern--ghost:hover {
    transform: translateY(-3px);
    border-color: var(--accent-hot);
    background: rgba(230, 41, 59, 0.05);
    box-shadow: 0 12px 30px -16px rgba(230, 41, 59, 0.35);
}

.btn-modern--sm {
    padding: 11px 22px;
    font-size: 13.5px;
}

/* ---------- 6. Header — floating capsule navbar ---------- */
body.mdx-body #header {
    position: fixed !important;
    top: 16px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(1280px, calc(100% - 28px));
    z-index: 1050;
    background: rgba(255, 255, 255, 0.62) !important;
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border: 1px solid var(--border-bright) !important;
    border-radius: 999px;
    box-shadow: 0 18px 45px -22px rgba(16, 24, 43, 0.35);
    transition: background 0.35s ease, box-shadow 0.35s ease, top 0.35s ease;
}

body.mdx-body #header .kl-header-bg {
    display: none;
}

body.mdx-body #header.is-scrolled {
    top: 10px;
    background: rgba(255, 255, 255, 0.86) !important;
    box-shadow: 0 22px 50px -24px rgba(16, 24, 43, 0.45);
}

/* scroll progress line inside the capsule (width driven by modern.js) */
.nav-progress {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 5px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-main);
    transform: scaleX(0);
    transform-origin: left center;
    opacity: 0.9;
    pointer-events: none;
}

/* hide the old top social strip on the modern page to keep the bar clean */
body.mdx-body .site-header-top-wrapper {
    display: none;
}

body.mdx-body #header .site-header-main-wrapper {
    min-height: calc(var(--header-h) - 14px);
    align-items: center;
    padding: 7px 18px;
}

body.mdx-body #header .site-logo img {
    max-height: 44px;
    width: auto;
    transition: transform 0.25s ease, filter 0.25s ease;
}

/* dark theme: flip the dark logo artwork to white (file is transparent PNG) */
html[data-theme="dark"] body.mdx-body #header .site-logo img {
    filter: brightness(0) invert(1);
}

body.mdx-body #header .site-logo a:hover img {
    transform: scale(1.05);
}

/* --- Menu links: pill hover, gradient active pill --- */
body.mdx-body #main-menu .main-menu > li {
    margin: 0 2px;
}

body.mdx-body #main-menu .main-menu > li > a {
    position: relative;
    display: inline-block;
    padding: 10px 15px !important;
    color: var(--text-dim) !important;
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.25s ease, box-shadow 0.25s ease;
}

body.mdx-body #main-menu .main-menu > li > a:hover {
    color: var(--accent-hot) !important;
    background: rgba(230, 41, 59, 0.07);
}

/* current page = filled gradient pill */
body.mdx-body #main-menu .main-menu > li.is-active > a {
    color: #fff !important;
    background: var(--grad-main);
    box-shadow: 0 10px 24px -12px rgba(230, 41, 59, 0.55);
}

body.mdx-body #main-menu .main-menu > li.is-active > a:hover {
    color: #fff !important;
}

/* --- Neutralize legacy Kallyas menu pseudo-elements ---
   template.css paints a red hover block on a::before and a white
   dash on a::after for every top-level item. Reset them completely,
   then rebuild our own caret on the cleaned ::below. */
body.mdx-body #main-menu .main-menu > li > a::before,
body.mdx-body #main-menu .main-menu > li > a::after {
    content: "";
    position: static;
    display: inline-block;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 0;
    background: none;
    border: none;
    border-radius: 0;
    opacity: 1;
    box-shadow: none;
    transform: none;
    z-index: auto;
}

/* caret for dropdown parents (rebuilt on the cleaned ::before) */
body.mdx-body #main-menu .main-menu > li.menu-item-has-children > a::before {
    margin-right: 7px;
    margin-bottom: 1px;
    vertical-align: middle;
    border: 4px solid transparent;
    border-top-color: currentColor;
    transition: transform 0.25s ease;
}

body.mdx-body #main-menu .main-menu > li.menu-item-has-children:hover > a::before,
body.mdx-body #main-menu .main-menu > li.menu-item-has-children:focus-within > a::before {
    transform: rotate(180deg);
}

/* inner-page links inside dropdowns */
body.mdx-body #main-menu ul li a {
    color: var(--text-dim) !important;
    font-family: var(--font-body);
    transition: color 0.2s ease, background 0.2s ease, padding-left 0.2s ease;
}

body.mdx-body #main-menu ul li a:hover {
    color: var(--accent-hot) !important;
}

/* --- Floating glass dropdown cards --- */
body.mdx-body #main-menu .sub-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    min-width: 240px;
    padding: 10px !important;
    background: var(--surface-strong) !important;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid var(--border) !important;
    border-radius: 20px !important;
    box-shadow: 0 30px 60px -25px rgba(16, 24, 43, 0.35) !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.25s;
}

body.mdx-body #main-menu li:hover > .sub-menu,
body.mdx-body #main-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

body.mdx-body #main-menu .sub-menu li a {
    display: block;
    padding: 10px 14px !important;
    border-radius: 13px;
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 13.5px;
    font-weight: 500;
}

body.mdx-body #main-menu .sub-menu li a:hover {
    background: rgba(230, 41, 59, 0.08);
    padding-left: 19px !important;
}

/* nested fly-out level */
body.mdx-body #main-menu .sub-menu .sub-menu {
    top: -11px;
    left: calc(100% + 8px);
    transform: translateX(8px);
}

body.mdx-body #main-menu .sub-menu li:hover > .sub-menu {
    transform: translateX(0);
}

/* remove legacy dropdown notch triangle, hover bridge and dash arrows */
body.mdx-body #main-menu ul.sub-menu::before,
body.mdx-body #main-menu ul.sub-menu::after,
body.mdx-body #main-menu .sub-menu li a::after {
    content: none !important;
    display: none !important;
}

/* --- Right side actions (theme toggle + register CTA injected by modern.js) --- */
body.mdx-body #header .site-header-main-right {
    gap: 9px;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 999px;
    border: 1px solid var(--border-bright);
    background: var(--surface-solid);
    color: var(--text);
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.theme-toggle:hover {
    transform: translateY(-2px) rotate(-12deg);
    border-color: var(--accent-hot);
    color: var(--accent-hot);
    box-shadow: 0 12px 30px -16px rgba(230, 41, 59, 0.4);
}

.theme-toggle svg {
    width: 17px;
    height: 17px;
}

.theme-toggle .icon-sun {
    display: none;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
    display: inline-block;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

.header-cta {
    white-space: nowrap;
    margin-right: 2px;
}

/* divider between actions and menu side */
body.mdx-body #header .site-header-main-right::before {
    content: "";
    display: block;
    width: 1px;
    height: 26px;
    background: var(--border-bright);
    margin-right: 4px;
}

/* --- Mobile hamburger: clean, theme-aware 3-line button --- */
body.mdx-body #zn-res-menuwrapper .zn-res-trigger {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 40px;
    margin: 5px 8px;
    border: 1px solid var(--border-bright);
    border-radius: 12px;
    background: transparent !important;
    box-sizing: border-box;
    box-shadow: none !important;
    transition: border-color 0.25s ease, background 0.25s ease;
}

body.mdx-body #zn-res-menuwrapper .zn-res-trigger:hover {
    border-color: var(--accent);
    background: rgba(230, 41, 59, 0.06) !important;
}

body.mdx-body #zn-res-menuwrapper .zn-res-trigger::before {
    display: none !important;
}

body.mdx-body #zn-res-menuwrapper .zn-res-trigger::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 2px;
    margin: -1px 0 0 -10px;
    background: var(--text) !important;
    border-radius: 2px;
    box-shadow: 0 -6px 0 0 var(--text), 0 6px 0 0 var(--text) !important;
}

/* --- Mobile slide-in menu (legacy markup, theme-aware restyle) --- */
body.mdx-body #zn-res-menu {
    background: var(--surface-solid) !important;
}

body.mdx-body #zn-res-menu a,
body.mdx-body #zn-res-menu .zn_res_menu_go_back span {
    color: var(--text-dim) !important;
}

body.mdx-body #zn-res-menu li:hover > a,
body.mdx-body #zn-res-menu a:hover {
    color: var(--accent-hot) !important;
}

body.mdx-body .zn-res-menu-overlay {
    background: rgba(9, 13, 24, 0.55) !important;
}

/* ---------- 7. Hero ---------- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 60px) 0 var(--space-6);
    overflow: hidden;
    isolation: isolate;
    overflow-x: hidden;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero__grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(16, 24, 43, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 24, 43, 0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 75%);
    pointer-events: none;
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.45;
    z-index: 0;
    pointer-events: none;
    animation: orb-drift 14s ease-in-out infinite alternate;
}

.hero__orb--1 {
    width: 480px;
    height: 480px;
    top: -160px;
    right: -120px;
    background: radial-gradient(circle, rgba(230, 41, 59, 0.28), transparent 70%);
}

.hero__orb--2 {
    width: 420px;
    height: 420px;
    bottom: -180px;
    left: -140px;
    background: radial-gradient(circle, rgba(53, 100, 224, 0.22), transparent 70%);
    animation-delay: -7s;
}

@keyframes orb-drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(40px, 30px, 0) scale(1.12); }
}

.hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    gap: var(--space-5);
    align-items: center;
    width: 100%;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--border);
    padding: 9px 18px;
    border-radius: 999px;
    backdrop-filter: blur(10px);
    margin-bottom: var(--space-3);
    box-shadow: var(--shadow-card);
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-hot);
    box-shadow: 0 0 0 0 rgba(230, 41, 59, 0.5);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(230, 41, 59, 0.45); }
    70%  { box-shadow: 0 0 0 12px rgba(230, 41, 59, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 41, 59, 0); }
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5.4vw, 68px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.025em;
    color: var(--text) !important;
    margin: 0 0 var(--space-3);
}

.hero__desc {
    color: var(--text-dim);
    font-size: clamp(15.5px, 1.3vw, 18px);
    max-width: 560px;
    margin: 0 0 var(--space-4);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero__chips li {
    font-size: 13px;
    color: var(--text-dim);
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 16px;
    transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.hero__chips li:hover {
    border-color: var(--border-bright);
    color: var(--text);
    box-shadow: var(--shadow-card);
}

.hero__chips strong {
    font-family: var(--font-display);
    color: var(--accent-hot);
    margin-right: 6px;
}

/* Hero visual — large banner slider */
.hero__visual {
    position: relative;
}

.hero-card {
    position: relative;
    overflow: hidden;
    padding: 12px;
    background: var(--surface-strong);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-card);
    animation: float-slow 7s ease-in-out infinite;
    z-index: 2;
}

.hero-card img {
    width: 100%;
    display: block;
    border-radius: calc(var(--r-md) - 6px);
}

.hero-card figcaption {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 6px 4px;
    font-size: 13.5px;
    color: var(--text-dim);
}

.hero-card__tag {
    font-family: var(--font-display);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-hot);
    background: rgba(230, 41, 59, 0.08);
    border: 1px solid rgba(230, 41, 59, 0.25);
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.hero-card--back {
    position: absolute;
    width: 58%;
    left: -24px;
    bottom: -34px;
    z-index: 1;
    opacity: 0.92;
    animation-delay: -3.5s;
    transform: rotate(-3deg);
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}

.hero-card--back {
    animation-name: float-slow-alt;
}

@keyframes float-slow-alt {
    0%, 100% { transform: rotate(-3deg) translateY(0); }
    50%      { transform: rotate(-3deg) translateY(-10px); }
}

/* --- Hero banner slider: one large banner at a time, crossfading --- */
.hero-slider {
    position: relative;
    aspect-ratio: 3 / 2;
}

.hero-banner {
    position: absolute;
    inset: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: var(--surface-strong);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    opacity: 0;
    transform: scale(0.985);
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
    z-index: 1;
}

.hero-banner.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    z-index: 2;
}

.hero-banner picture {
    display: block;
    position: relative;
    flex: 1;
    min-height: 0;
    background: var(--surface-solid);
}

.hero-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--r-lg) - 8px);
}

.hero-banner figcaption {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 4px 2px;
    font-size: 13.5px;
    color: var(--text-dim);
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.hero-dots button {
    width: 26px;
    height: 6px;
    padding: 0;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 1px 5px rgba(16, 24, 43, 0.35);
    transition: background 0.25s ease, width 0.25s ease;
}

.hero-dots button:hover {
    background: rgba(255, 255, 255, 0.7);
}

.hero-dots button.is-active {
    width: 40px;
    background: #ffffff;
}

.hero__scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--text-faint);
    animation: bob 1.8s ease-in-out infinite;
    transition: color 0.25s ease;
}

.hero__scroll-cue:hover {
    color: var(--accent-hot);
}

@keyframes bob {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, 8px); }
}

/* ---------- 8. Features ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-3);
}

.feature-card {
    display: flex;
    flex-direction: column;
    padding: var(--space-4) var(--space-3) var(--space-3);
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(420px 200px at var(--mx, 50%) var(--my, 0%), rgba(230, 41, 59, 0.07), transparent 65%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(230, 41, 59, 0.4);
    box-shadow: var(--shadow-pop);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: var(--grad-main);
    color: #fff;
    margin-bottom: var(--space-3);
    box-shadow: 0 12px 28px -12px rgba(230, 41, 59, 0.45);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover .feature-card__icon {
    transform: scale(1.08) rotate(-4deg);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text) !important;
    margin: 0 0 8px;
}

.feature-card p {
    color: var(--text-dim);
    font-size: 14.5px;
    margin: 0 0 var(--space-3);
    flex-grow: 1;
}

.feature-card__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--accent-hot);
}

.feature-card:hover .feature-card__link svg {
    transform: translateX(4px);
}

.feature-card__link svg {
    transition: transform 0.25s ease;
}

/* ============================================================
   8b. THE BIGGEST SKILL COMPETITION IN INDIA
   ============================================================ */

/* Distinct band: soft tinted background + glows, framed by borders
   so it reads as its own chapter between the neighbouring sections */
.comp-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 420px at 12% 0%, rgba(230, 41, 59, 0.06), transparent 60%),
        radial-gradient(900px 420px at 88% 100%, rgba(53, 100, 224, 0.07), transparent 60%),
        linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* faint oversized watermark text for editorial depth */
.comp-section::before {
    content: "SKILLS";
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: clamp(60px, 11vw, 220px);
    font-weight: 800;
    letter-spacing: 0.08em;
    color: rgba(16, 24, 43, 0.035);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    max-width: calc(100vw - 40px);
    overflow: hidden;
    text-overflow: ellipsis;
}

.comp-section__inner {
    position: relative;
    z-index: 1;
}

/* --- Reusable image wrapper: EVERY image in this section uses this.
       Identical dimensions, aspect-ratio, radius and cropping. --- */
.image-wrapper {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 20px;
    background: var(--bg-3);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Focal point control: any single image can be steered inline,
       e.g. <img style="--fy: 20%"> to keep a face in frame */
    object-position: var(--fx, 50%) var(--fy, 50%);
    display: block;
}

/* --- Competition cards --- */
.comp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
}

.comp-card {
    display: flex;
    flex-direction: column;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    /* NO overflow:hidden on card — the .image-wrapper clips the image */
    padding: 0;
    text-decoration: none !important;
    box-shadow: var(--shadow-card);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
}

/* image wrapper clips the zooming image with its own radius (top only) */
.comp-card .image-wrapper {
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    overflow: hidden;
}

.comp-card:hover {
    transform: translateY(-8px);
    border-color: rgba(230, 41, 59, 0.35);
    box-shadow: var(--shadow-pop);
}

/* image zoom on hover (crop stays inside the same wrapper) */
.comp-card .image-wrapper img {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.comp-card:hover .image-wrapper img {
    transform: scale(1.06);
}

.comp-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-3) var(--space-4) var(--space-4);
    flex: 1;
}

.comp-card__tag {
    font-family: var(--font-display);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.comp-card__tag--national {
    color: var(--accent-hot);
    background: rgba(230, 41, 59, 0.08);
    border: 1px solid rgba(230, 41, 59, 0.25);
}

.comp-card__tag--global {
    color: var(--accent-cool);
    background: rgba(53, 100, 224, 0.08);
    border: 1px solid rgba(53, 100, 224, 0.25);
}

.comp-card__body h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text) !important;
    margin: 0 0 8px;
}

.comp-card__body p {
    color: var(--text-dim);
    font-size: 14.5px;
    line-height: 1.7;
    margin: 0 0 var(--space-3);
}

.comp-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--accent-hot);
}

.comp-card__cta svg {
    transition: transform 0.25s ease;
}

.comp-card:hover .comp-card__cta svg {
    transform: translateX(4px);
}

/* --- Editorial full-copy detail blocks (original text preserved) --- */
.comp-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.comp-detail {
    background: var(--surface-strong);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--space-4);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.comp-detail:hover {
    transform: translateY(-4px);
    border-color: rgba(230, 41, 59, 0.3);
    box-shadow: var(--shadow-pop);
}

.comp-detail h3 {
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--text) !important;
    margin: 0 0 10px;
}

.comp-detail h3::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 3px;
    background: var(--grad-main);
    border-radius: 2px;
    margin-right: 10px;
    vertical-align: middle;
}

.comp-detail p {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.75;
    margin: 0;
    text-align: justify;
}

/* video facade inside this section is centered below the details */
.comp-section .video-facade {
    margin: var(--space-5) auto 0;
}

/* ============================================================
   8c. Legacy video facade (shared)
   ============================================================ */
.video-facade {
    position: relative;
    border-radius: var(--r-md);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border);
    aspect-ratio: 16 / 9;
    max-width: 680px;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-facade:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-pop);
}

.video-facade img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-facade__play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: var(--grad-main);
    box-shadow: 0 0 0 10px rgba(230, 41, 59, 0.18), 0 16px 40px -12px rgba(230, 41, 59, 0.4);
    transition: transform 0.25s ease;
}

.video-facade:hover .video-facade__play {
    transform: scale(1.1);
}

.video-facade__label {
    position: absolute;
    left: 18px;
    bottom: 14px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: rgba(16, 24, 43, 0.75);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 999px;
}

/* ============================================================
   10b. Instagram Reels Carousel
   ============================================================ */
.reels-carousel-wrapper {
    position: relative;
    margin: 0 calc(-1 * var(--space-3));
    padding: 0 var(--space-3) var(--space-3);
}

.reels-carousel .slick-slide {
    padding: 0 var(--space-2);
    transition: opacity 0.3s ease;
}

.reels-carousel .slick-slide.slick-active {
    opacity: 1;
}

.reels-carousel .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-card);
}

.reels-carousel .slick-arrow:hover {
    background: var(--grad-main);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-pop);
}

.reels-carousel .slick-prev {
    left: -24px;
}

.reels-carousel .slick-next {
    right: -24px;
}

.reels-carousel .slick-dots {
    display: flex !important;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin-top: var(--space-3);
    padding: 0;
}

.reels-carousel .slick-dots li button {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    border: none;
    background: rgba(16, 24, 43, 0.18);
    text-indent: -9999px;
    overflow: hidden;
    transition: all 0.25s ease;
    cursor: pointer;
}

.reels-carousel .slick-dots li.slick-active button {
    width: 26px;
    background: var(--grad-main);
}

.reel-slide {
    outline: none;
    height: auto;
}

/* Ensure all slides stretch to same height */
.reels-carousel .slick-track {
    display: flex;
    align-items: stretch;
}

.reels-carousel .slick-slide {
    display: flex;
    height: auto;
    flex: 1;
}

.reels-carousel .slick-slide > div,
.reels-carousel .slick-slide > .reel-slide {
    flex: 1;
    display: flex;
}

.reel-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
    padding: 0;
    color: inherit;
    width: 100%;
    cursor: pointer;
    text-align: left;
    font: inherit;
}

.reel-card:hover {
    transform: translateY(-8px);
    border-color: rgba(230, 41, 59, 0.35);
    box-shadow: var(--shadow-pop);
}

.reel-card:focus-visible {
    outline: 2px solid var(--accent-hot);
    outline-offset: 3px;
}

.reel-card__thumb {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--bg-3);
    flex-shrink: 0;
}

.reel-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reel-card:hover .reel-card__thumb img {
    transform: scale(1.06);
}

.reel-card__play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease, opacity 0.25s ease;
    opacity: 0.85;
}

.reel-card:hover .reel-card__play {
    transform: scale(1.12);
    opacity: 1;
    background: #fff;
}

.reel-card__icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.reel-card__info {
    padding: var(--space-3);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.reel-card__info h3 {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--text) !important;
    margin: 0 0 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.reel-card__info p {
    font-size: 12px;
    color: var(--text-faint);
    margin: 0;
}

.reel-card__thumb--cover {
    background:
        radial-gradient(120% 90% at 18% 0%, rgba(240, 148, 51, 0.22), transparent 55%),
        radial-gradient(120% 95% at 85% 100%, rgba(188, 24, 136, 0.26), transparent 60%),
        var(--bg-3);
}

.reel-card__thumb--cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.35));
}

.reel-card__thumb--cover .reel-card__icon {
    z-index: 1;
}

.reel-card__thumb--cover .reel-card__icon svg {
    width: 20px;
    height: 20px;
}

.reel-card__thumb--cover .reel-card__play {
    z-index: 1;
}

/* Reels Gallery Section - distinct background */
.reels-gallery-section {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.reels-gallery-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    opacity: 0.6;
}

/* Instagram CTA Button */
.reels-gallery__cta {
    margin-top: var(--space-5);
}

.btn-instagram {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border-radius: 999px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff !important;
    text-decoration: none !important;
    font-family: var(--font-display);
    font-weight: 600;
    box-shadow: 0 8px 24px -8px rgba(220, 39, 67, 0.4);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.25s ease;
}

.btn-instagram:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px -8px rgba(220, 39, 67, 0.5);
}

.btn-instagram__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.btn-instagram__icon svg {
    width: 18px;
    height: 18px;
}

.btn-instagram__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.btn-instagram__text strong {
    font-size: 15px;
}

.btn-instagram__text small {
    font-size: 11px;
    opacity: 0.85;
    font-weight: 400;
}

.btn-instagram__arrow {
    margin-left: 4px;
    transition: transform 0.25s ease;
}

.btn-instagram:hover .btn-instagram__arrow {
    transform: translateX(4px);
}

/* Mobile adjustments for reels carousel */
@media (max-width: 1023px) {
    .reels-carousel-wrapper {
        margin: 0 calc(-1 * var(--space-2));
        padding: 0 var(--space-2) var(--space-2);
    }

    .reels-carousel .slick-arrow {
        width: 40px;
        height: 40px;
    }

    .reels-carousel .slick-prev {
        left: -20px;
    }

    .reels-carousel .slick-next {
        right: -20px;
    }
}

@media (max-width: 767px) {
    .reels-carousel .slick-arrow {
        display: none !important;
    }

    .reel-card__play {
        width: 48px;
        height: 48px;
    }

    .btn-instagram {
        padding: 12px 22px;
        gap: 10px;
    }

    .btn-instagram__icon {
        width: 28px;
        height: 28px;
    }

    .btn-instagram__icon svg {
        width: 16px;
        height: 16px;
    }

    .btn-instagram__text strong {
        font-size: 14px;
    }
}

/* Video Modal */
.video-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(7, 11, 20, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.video-modal {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: 0 32px 80px -24px rgba(0, 0, 0, 0.6);
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.video-modal-overlay.is-open .video-modal {
    transform: scale(1);
}

.video-modal__title {
    position: absolute;
    top: -44px;
    left: 0;
    right: 50px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-modal__close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 1;
}

.video-modal__close:hover {
    background: var(--grad-main);
    border-color: transparent;
    color: #fff;
}

.video-modal__close svg {
    width: 20px;
    height: 20px;
}

.video-modal iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Mobile adjustments for video carousel */
@media (max-width: 1023px) {
    .video-carousel-wrapper {
        margin: 0 calc(-1 * var(--space-2));
        padding: 0 var(--space-2) var(--space-2);
    }

    .video-carousel .slick-arrow {
        width: 40px;
        height: 40px;
    }

    .video-carousel .slick-prev {
        left: -20px;
    }

    .video-carousel .slick-next {
        right: -20px;
    }
}

@media (max-width: 767px) {
    .video-carousel .slick-arrow {
        display: none !important;
    }

    .video-modal__title {
        top: -40px;
        right: 48px;
        font-size: 13px;
    }

    .video-modal__close {
        top: -48px;
        right: 4px;
        width: 40px;
        height: 40px;
    }

    .btn-youtube {
        padding: 12px 22px;
        gap: 10px;
    }

    .btn-youtube__icon {
        width: 28px;
        height: 28px;
    }

    .btn-youtube__icon svg {
        width: 16px;
        height: 16px;
    }

    .btn-youtube__text strong {
        font-size: 14px;
    }
}

/* ---------- 10. Split carousels (news gallery / chief experts) ---------- */
.split-carousel {
    display: grid;
    grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
    gap: var(--space-5);
    align-items: center;
}

.split-carousel--reverse {
    grid-template-columns: minmax(0, 0.62fr) minmax(0, 0.38fr);
}

.split-carousel--reverse .split-carousel__side {
    order: 2;
}

.split-carousel--reverse .split-carousel__slider {
    order: 1;
}

.split-carousel__side p {
    color: var(--text-dim);
    font-size: 14.5px;
    margin: 0 0 var(--space-2);
}

.split-carousel__side .btn-modern {
    margin-top: var(--space-2);
}

/* shared media frame used inside slick items */
.mdx-media-frame {
    display: block;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-3);
    aspect-ratio: 4 / 3;
}

/* video frame matches every other frame (same 4/3 ratio) */
.mdx-media-frame--video {
    position: relative;
}

/* 16:9 YouTube stream center-cropped to fill the 4:3 frame
   (same "cover" treatment as images -> no black letterbox bars) */
.mdx-media-frame--video iframe {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 133.34%; /* (16 / 9) x (3 / 4): fills frame height, crops sides */
    height: 100%;
}

.mdx-media-frame iframe,
.mdx-media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.recentwork_carousel__link:hover .mdx-media-frame img,
.news-slide a:hover .mdx-media-frame img {
    transform: scale(1.05);
}

/* slick dots */
.mdx-slick .slick-dots {
    display: flex !important;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin-top: var(--space-3);
    padding: 0;
}

.mdx-slick .slick-dots li button {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    border: none;
    background: rgba(16, 24, 43, 0.18);
    text-indent: -9999px;
    overflow: hidden;
    transition: all 0.25s ease;
    cursor: pointer;
}

.mdx-slick .slick-dots li.slick-active button {
    width: 26px;
    background: var(--grad-main);
}

/* ---------- 11. Stats band ---------- */
.stats-band {
    position: relative;
    padding: var(--space-6) 0;
    background:
        radial-gradient(700px 340px at 50% 0%, rgba(230, 41, 59, 0.07), transparent 65%),
        var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-3);
}

.stat-card {
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-card);
    padding: var(--space-4) var(--space-3);
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(230, 41, 59, 0.4);
    box-shadow: var(--shadow-pop);
}

.stat-card__num {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(38px, 4.4vw, 56px);
    font-weight: 800;
    line-height: 1;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-card__num sup {
    font-size: 0.45em;
}

.stat-card__label {
    display: block;
    margin-top: 10px;
    font-size: 13.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* ---------- 12. Chairman cards ---------- */
.chairs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-3);
}

.chair-card {
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-card);
    padding: var(--space-4);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.chair-card:hover {
    transform: translateY(-6px);
    border-color: rgba(230, 41, 59, 0.35);
    box-shadow: var(--shadow-pop);
}

.chair-card header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border);
}

.chair-card header img {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 2px solid rgba(230, 41, 59, 0.45);
    box-shadow: 0 0 0 4px rgba(230, 41, 59, 0.08);
    flex-shrink: 0;
}

.chair-card header h3 {
    font-family: var(--font-display);
    font-size: 17px;
    color: var(--text) !important;
    margin: 0 0 4px;
}

.chair-card header span {
    font-size: 12.5px;
    color: var(--accent-hot);
}

.chair-card p {
    color: var(--text-dim);
    font-size: 14px;
    margin: 0 0 10px;
}

.chair-card p:last-child {
    margin-bottom: 0;
}

/* collapsed message preview — expand with the Read more button */
.chair-card__msg {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.chair-card.is-open .chair-card__msg {
    display: block;
    -webkit-line-clamp: none;
}

.chair-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-solid);
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    margin-top: 2px;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.chair-more:hover {
    color: #e6293b;
    border-color: rgba(230, 41, 59, 0.45);
    background: rgba(230, 41, 59, 0.05);
    box-shadow: 0 10px 22px -12px rgba(230, 41, 59, 0.45);
}

.chair-more svg {
    width: 14px;
    height: 14px;
    transition: transform 0.25s ease;
}

.chair-card.is-open .chair-more svg {
    transform: rotate(180deg);
}

/* ---------- 13. HALL OF FAME — interactive winners showcase ---------- */
.hof-section {
    position: relative;
    overflow: hidden;
}

/* when two hall-of-fame sections sit back to back, drop the doubled divider */
.hof-section + .hof-section {
    border-top: none;
}

.hof-section > .container {
    position: relative;
    z-index: 1;
}

/* --- Interactive particle net backdrop (2D canvas, JS-driven) --- */
.hof-particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hof-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;}

.hof-orb--1 {
    width: 460px;
    height: 460px;
    top: -160px;
    right: -140px;
    background: radial-gradient(circle at 30% 30%, rgba(230, 41, 59, 0.22), transparent 65%);
}

.hof-orb--2 {
    width: 420px;
    height: 420px;
    bottom: -180px;
    left: -150px;
    background: radial-gradient(circle at 60% 40%, rgba(53, 100, 224, 0.2), transparent 65%);
}

/* --- Year tabs (segmented pill control with sliding indicator) --- */
.hof-tabs-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-3);
}

.hof-tabs {
    position: relative;
    display: inline-flex;
    gap: 4px;
    padding: 6px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-strong);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-card);
}

.hof-tabs__indicator {
    position: absolute;
    top: 6px;
    left: 0;
    height: calc(100% - 12px);
    width: 0;
    border-radius: 999px;
    background: var(--grad-main);
    box-shadow: var(--shadow-pop);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 0;
}

.hof-tab {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 10px 28px;
    border: none;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    font-family: var(--font-display);
    color: var(--text-dim);
    transition: color 0.3s ease;
}

.hof-tab__year {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.15;
}

.hof-tab__count {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.75;
}

.hof-tab:hover {
    color: var(--text);
}

.hof-tab.is-active {
    color: #fff;
}

.hof-tab:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* --- Panels --- */
.hof-panel {
    display: none;
}

.hof-panel.is-active {
    display: block;
    animation: hofPanelIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hofPanelIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Panel toolbar: blurb + counter + arrows --- */
.hof-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    flex-wrap: wrap;
}

.hof-navtools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hof-counter {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    padding-right: 8px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-faint);
}

.hof-counter__now {
    font-size: 17px;
    color: var(--accent-hot);
}

.hof-arrow {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-bright);
    background: var(--surface-strong);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text);
    cursor: pointer;
    transition: background 0.3s ease,
                color 0.3s ease,
                transform 0.3s ease,
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}

.hof-arrow:hover {
    background: var(--grad-main);
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-pop);
}

.hof-arrow:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* --- Winner cards --- */
/* skill-family accent tokens (set via fam-* classes injected by JS) */
.hof-card {
    --hof-accent: #e6293b;
    --hof-accent-soft: rgba(230, 41, 59, 0.1);
    --hof-accent-glow: rgba(230, 41, 59, 0.35);
    position: relative;
    display: block;
    text-decoration: none !important;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transform: translateY(var(--ty, 0)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}

.hof-card.fam-gdt  { --hof-accent: #3564e0; --hof-accent-soft: rgba(53, 100, 224, 0.1);  --hof-accent-glow: rgba(53, 100, 224, 0.32); }
.hof-card.fam-idt  { --hof-accent: #0891b2; --hof-accent-soft: rgba(8, 145, 178, 0.1);   --hof-accent-glow: rgba(8, 145, 178, 0.32); }
.hof-card.fam-dimd { --hof-accent: #c026a3; --hof-accent-soft: rgba(192, 38, 163, 0.1);  --hof-accent-glow: rgba(192, 38, 163, 0.3); }
.hof-card.fam-alt  { --hof-accent: #7048e8; --hof-accent-soft: rgba(112, 72, 232, 0.1);  --hof-accent-glow: rgba(112, 72, 232, 0.3); }

.hof-carousel .recent-work_carousel-item {
    perspective: 1100px;
    /* slide gutter (was provided by the old recentwork wrapper class) */
    padding-right: 20px;
}

.hof-card:hover,
.hof-card:focus-visible {
    --ty: -10px;
    border-color: transparent;
    box-shadow: var(--shadow-card),
                0 30px 60px -22px var(--hof-accent-glow);
}

.hof-card:focus-visible {
    outline: 2px solid var(--hof-accent);
    outline-offset: 3px;
}

/* top accent bar reveal */
.hof-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 4px;
    z-index: 3;
    background: linear-gradient(90deg, var(--hof-accent), transparent 75%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hof-card:hover::before,
.hof-card:focus-visible::before {
    opacity: 1;
}

/* ghost year numeral over the photo */
.hof-card::after {
    content: attr(data-year);
    position: absolute;
    top: 8px;
    right: 14px;
    z-index: 2;
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.03em;
    line-height: 1;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 18px rgba(16, 24, 43, 0.55);
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.4s ease;
}

.hof-card:hover::after {
    transform: translateY(-4px) scale(1.06);
    opacity: 0.95;
}

.hof-card .image-wrapper {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 0;
    margin: 0;
    overflow: hidden;
    background: var(--bg-3);
}

.hof-card .image-wrapper img {
    object-position: 50% 22%;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

/* diagonal sheen sweep on hover */
.hof-card .image-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.32) 50%, transparent 58%);
    transform: translateX(-130%);
    transition: transform 0.85s ease;
    pointer-events: none;
}

.hof-card:hover .image-wrapper img {
    transform: scale(1.08);
}

.hof-card:hover .image-wrapper::after {
    transform: translateX(130%);
}

/* body */
.hof-card .winner-card__content {
    padding: var(--space-3) var(--space-3) var(--space-4);
    position: relative;
}

/* gradient hairline under the media that lights up in the family color */
.hof-card .winner-card__content::before {
    content: "";
    position: absolute;
    top: 0;
    left: var(--space-3);
    right: var(--space-3);
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--hof-accent), transparent);
    opacity: 0.25;
    transition: opacity 0.35s ease;
}

.hof-card:hover .winner-card__content::before {
    opacity: 1;
}

.hof-card .winner-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.hof-card .winner-card__skill-badge {
    font-family: var(--font-display);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
    background: var(--hof-accent-soft);
    color: var(--hof-accent);
    border: 1px solid transparent;
    transition: background 0.3s ease, color 0.3s ease;
}

.hof-card:hover .winner-card__skill-badge {
    background: var(--hof-accent);
    color: #fff;
}

/* state/region chip rendered from data-region when present */
.hof-card[data-region] .winner-card__meta::after {
    content: attr(data-region);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px dashed var(--border-bright);
    color: var(--text-faint);
    white-space: nowrap;
}

.hof-card h4 {
    position: relative;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text) !important;
    margin: 0;
    line-height: 1.3;
    padding-right: 24px;
}

/* arrow slides in beside the name on hover */
.hof-card h4::after {
    content: "";
    position: absolute;
    right: 0;
    top: 3px;
    width: 16px;
    height: 16px;
    background: var(--hof-accent);
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hof-card:hover h4::after,
.hof-card:focus-visible h4::after {
    opacity: 1;
    transform: translateX(0);
}

/* panel footer CTA */
.hof-panel__cta {
    text-align: center;
    margin-top: var(--space-4);
}

/* responsive */
@media (max-width: 767px) {
    .hof-tabs-wrap {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .hof-tabs-wrap::-webkit-scrollbar {
        display: none;
    }

    .hof-tabs {
        flex-shrink: 0;
    }

    .hof-tab {
        padding: 9px 20px;
    }

    .hof-tab__year {
        font-size: 16px;
    }

    .hof-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: var(--space-2);
    }

    .hof-card::after {
        font-size: 42px;
        top: 6px;
        right: 10px;
    }

    .hof-card h4 {
        font-size: 15px;
    }

    .hof-arrow {
        width: 40px;
        height: 40px;
    }
}

/* slick-list vertical padding so hover elevation isn't clipped */
.mdx-slick .slick-list {
    padding-top: 16px;
    padding-bottom: 8px;
    margin-top: -16px;
    margin-bottom: -8px;
}

/* ---------- 13b. WORLD SKILLS — legacy timeline + spotlight ---------- */
.wsl-wrap {
    display: grid;
    grid-template-columns: minmax(0, 7.2fr) minmax(0, 3.4fr);
    gap: var(--space-5);
    align-items: stretch;
}

/* --- spotlight panel --- */
.wsl-spotlight {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
    padding: clamp(20px, 3vw, 36px);
}

.wsl-slide {
    display: none;
    flex: 1;
}

.wsl-slide.is-active {
    display: block;
    animation: wslSlideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes wslSlideIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wsl-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

/* Shanghai 2026 representatives: two cards per view, extras become carousel slides */
.wsl-cards-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 16px;
}

.wsl-cards-carousel .slick-track {
    display: flex;
}

.wsl-cards-carousel .slick-slide {
    float: none;
    height: auto;
    margin: 0 10px;
}

.wsl-cards-carousel .slick-list {
    margin: 0 -10px;
}

/* slick wraps each card in an inner div — stretch it so all cards stay equal height */
.wsl-cards-carousel .slick-slide > div {
    height: 100%;
}

.wsl-cards-carousel a.wsl-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 14px;
    height: 100%;
    grid-template-columns: none;
}

.wsl-cards-carousel .wsl-card__body {
    gap: 6px;
}

.wsl-cards-carousel .wsl-card__media {
    aspect-ratio: 3 / 4;
    width: 100%;
    max-width: none;
    flex: none;
}

/* single-candidate spotlight: give the portrait real presence */
.wsl-slide > .wsl-card {
    grid-template-columns: minmax(210px, 320px) minmax(0, 1fr);
    gap: clamp(20px, 2.6vw, 34px);
    padding: 22px;
}

.wsl-slide > .wsl-card .wsl-card__media {
    aspect-ratio: 3 / 4;
}

.wsl-slide > .wsl-card h3 {
    font-size: 24px;
}

/* feature card: portrait left, story right */
.wsl-card {
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
    gap: clamp(16px, 2vw, 26px);
    align-items: center;
    text-decoration: none !important;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 18px;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
}

.wsl-grid .wsl-card {
    grid-template-columns: 1fr;
    align-items: stretch;
}

.wsl-card:hover,
.wsl-card:focus-visible {
    transform: translateY(-6px);
    border-color: rgba(230, 41, 59, 0.35);
    box-shadow: var(--shadow-pop);
    outline: none;
}

.wsl-card__media {
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: calc(var(--r-md) - 4px);
    background: var(--bg-3);
}

.wsl-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 22%;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.wsl-card:hover .wsl-card__media img {
    transform: scale(1.07);
}

/* ghost year over the photo corner */
.wsl-card__ghost {
    position: absolute;
    right: 8px;
    bottom: 2px;
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 800;
    font-style: italic;
    line-height: 1;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 14px rgba(16, 24, 43, 0.55);
    pointer-events: none;
}

.wsl-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.wsl-chip {
    display: inline-flex;
    align-items: center;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wsl-chip--award {
    background: linear-gradient(135deg, #ffd76a, #eda93c);
    color: #241a00;
    box-shadow: 0 4px 14px -5px rgba(240, 168, 60, 0.6);
}

.wsl-chip--skill {
    background: rgba(53, 100, 224, 0.09);
    color: var(--text-dim);
    border: 1px solid var(--border);
}

.wsl-card h3 {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 800;
    color: var(--text) !important;
    margin: 2px 0 0;
    line-height: 1.2;
}

.wsl-card__meta {
    margin: 0;
    color: var(--text-faint);
    font-size: 13px;
    letter-spacing: 0.02em;
}

.wsl-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 6px;
    font-family: var(--font-display);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-hot);
}

.wsl-card__cta svg {
    transition: transform 0.3s ease;
}

.wsl-card:hover .wsl-card__cta svg {
    transform: translateX(5px);
}

/* toolbar under the slides */
.wsl-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: clamp(18px, 2.4vw, 28px);
    padding-top: 16px;
    border-top: 1px dashed var(--border-bright);
}

/* --- timeline rail --- */
.wtl-rail {
    --wtl-line: var(--border-bright);
    position: relative;
    list-style: none;
    margin: 0;
    padding: 6px 0 6px 30px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wtl-rail::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    border-radius: 2px;
    background: var(--wtl-line);
}

/* travelled portion of the line (set via JS) */
.wtl-rail::after {
    content: "";
    position: absolute;
    left: 11px;
    top: 12px;
    width: 2px;
    height: calc((100% - 24px) * var(--wsl-progress, 0));
    min-height: 0;
    border-radius: 2px;
    background: var(--grad-main);
    transition: height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.wtl-item {
    position: relative;
}

.wtl-node {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: var(--r-sm);
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: background 0.25s ease;
}

.wtl-node:hover {
    background: rgba(230, 41, 59, 0.05);
}

.wtl-node:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.wtl-dot {
    position: absolute;
    left: -24px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--surface-solid);
    border: 2px solid var(--border-bright);
    transition: background 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease,
                transform 0.3s ease;
}

.wtl-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    padding-right: 4px;
}

.wtl-year {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 800;
    color: var(--text-dim);
    line-height: 1.15;
    transition: color 0.25s ease;
}

.wtl-city {
    font-size: 11.5px;
    color: var(--text-faint);
    letter-spacing: 0.02em;
    line-height: 1.45;
}

.wtl-node:hover .wtl-year {
    color: var(--text);
}

.wtl-node.is-active .wtl-dot {
    background: var(--accent-hot);
    border-color: var(--accent-hot);
    box-shadow: 0 0 0 5px rgba(230, 41, 59, 0.15);
    transform: translateY(-50%) scale(1.15);
}

.wtl-node.is-active .wtl-year {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.wsl-foot-cta {
    text-align: center;
    margin-top: var(--space-5);
}

/* responsive */
@media (max-width: 1023px) {
    .wsl-wrap {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    /* tighten the panel and stack single-candidate editions early
       so tablets don't get a cramped two-column card */
    .wsl-spotlight {
        padding: 18px;
    }

    .wsl-slide > .wsl-card {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
    }

    .wsl-toolbar {
        margin-top: 16px;
    }

    /* rail becomes a horizontal chip strip — uniform card heights */
    .wtl-rail {
        flex-direction: row;
        align-items: stretch;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding: 4px 2px 10px;
        scrollbar-width: none;
    }

    .wtl-rail::-webkit-scrollbar {
        display: none;
    }

    .wtl-rail::before,
    .wtl-rail::after {
        display: none;
    }

    .wtl-item {
        display: flex;
        flex-shrink: 0;
    }

    .wtl-node {
        flex: 1 0 auto;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        width: auto;
        min-width: 96px;
        max-width: 200px;
        padding: 10px 16px;
        border: 1px solid var(--border);
        border-radius: 16px;
        background: var(--surface-solid);
        text-align: center;
    }

    .wtl-node.is-active {
        border-color: var(--accent);
        background: rgba(230, 41, 59, 0.06);
    }

    .wtl-dot {
        display: none;
    }

    .wtl-text {
        align-items: center;
    }

    .wtl-year {
        font-size: 15.5px;
    }

    .wtl-city {
        font-size: 10.5px;
        line-height: 1.35;
        white-space: normal;
    }
}

@media (max-width: 767px) {
    .wsl-grid {
        grid-template-columns: 1fr;
    }

    .wsl-card,
    .wsl-slide > .wsl-card {
        grid-template-columns: 1fr;
    }

    .wsl-slide > .wsl-card .wsl-card__media {
        aspect-ratio: 16 / 10;
    }

    .wsl-card__media {
        aspect-ratio: 16 / 10;
    }

    .wsl-grid {
        gap: 14px;
    }

    .wsl-card h3 {
        font-size: 19px;
    }

    .wsl-card__ghost {
        font-size: 32px;
        right: 6px;
    }

    /* long skill names wrap instead of truncating on small screens */
    .wsl-chip {
        white-space: normal;
        line-height: 1.4;
    }

    .wsl-card__meta {
        font-size: 12px;
    }

    .wsl-cards-toolbar .hof-arrow {
        width: 38px;
        height: 38px;
    }

    /* center the representatives carousel arrows like the edition toolbar */
    .wsl-cards-toolbar {
        justify-content: center;
    }

    .wsl-toolbar {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wsl-slide.is-active {
        animation: none;
    }
}

/* ---------- 14. Testimonials ---------- */
.testimonial-wrap {
    max-width: 860px;
    margin: 0 auto;
}

.mdx-testimonial {
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-card);
    padding: var(--space-4);
    text-align: left;
}

.mdx-testimonial p {
    color: var(--text-dim);
    font-size: 15.5px;
    line-height: 1.8;
    margin: 0 0 var(--space-3);
    position: relative;
    padding-left: 34px;
}

.mdx-testimonial p::before {
    content: "\201C";
    position: absolute;
    left: 0;
    top: -8px;
    font-family: var(--font-display);
    font-size: 56px;
    line-height: 1;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mdx-testimonial footer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-left: 34px;
}

.mdx-testimonial footer img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(230, 41, 59, 0.45);
}

.mdx-testimonial footer span {
    font-size: 13.5px;
    color: var(--text-faint);
}

.mdx-testimonial footer strong {
    display: block;
    font-family: var(--font-display);
    color: var(--text);
    font-size: 14.5px;
}

/* ---------- 15. Important links ---------- */
.links-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-3);
}

.link-card {
    display: block;
    text-decoration: none !important;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.link-card:hover {
    transform: translateY(-8px);
    border-color: rgba(230, 41, 59, 0.4);
    box-shadow: var(--shadow-pop);
}

.link-card .mdx-media-frame {
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border);
}

.link-card > div {
    padding: var(--space-3);
}

.link-card h3 {
    font-family: var(--font-display);
    font-size: 17px;
    color: var(--text) !important;
    margin: 0 0 4px;
    transition: color 0.25s ease;
}

.link-card:hover h3 {
    color: var(--accent-hot) !important;
}

.link-card em {
    font-style: normal;
    font-size: 11.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
}

/* ---------- 16. About AWSITC ---------- */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: var(--space-5);
    align-items: start;
}

.about-banner {
    margin: 0 0 var(--space-4);
    padding: 0;
    overflow: hidden;
}

.about-banner img {
    display: block;
    width: 100%;
}

.about-text {
    color: var(--text-dim);
    font-size: 15px;
    text-align: justify;
    margin: 0 0 var(--space-3);
}

.about-subtitle {
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--accent-hot) !important;
    margin: 0 0 var(--space-2);
}

.program-list {
    list-style: none;
    margin: 0 0 var(--space-4);
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.program-list li {
    position: relative;
    padding: 12px 16px 12px 42px;
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text);
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-card);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.program-list li::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--grad-main);
    box-shadow: 0 0 8px rgba(230, 41, 59, 0.4);
}

.program-list li:hover {
    border-color: rgba(230, 41, 59, 0.4);
    transform: translateX(4px);
}

.event-card {
    position: sticky;
    top: calc(var(--header-h) + 30px);
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-card);
    padding: var(--space-4);
    text-align: center;
}

.event-card h3 {
    font-family: var(--font-display);
    font-size: 19px;
    line-height: 1.4;
    color: var(--text) !important;
    margin: 0 0 10px;
}

.event-card > span {
    display: block;
    font-size: 11.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-hot);
    margin-bottom: var(--space-3);
}

.event-card figure {
    margin: 0 0 var(--space-3);
    border-radius: var(--r-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.event-card figure img {
    display: block;
    width: 100%;
}

/* ---------- 17. Final CTA ---------- */
.cta-final {
    position: relative;
    padding: var(--space-6) 0;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(900px 480px at 50% 120%, rgba(230, 41, 59, 0.08), transparent 60%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
    border-top: 1px solid var(--border);
}

#cta-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
    pointer-events: none;
}

.cta-final__glow {
    position: absolute;
    width: 640px;
    height: 640px;
    left: 50%;
    top: -320px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(53, 100, 224, 0.10), transparent 65%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

.cta-final__inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-final__title {
    font-family: var(--font-display);
    font-size: clamp(30px, 4.6vw, 52px);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.02em;
    color: var(--text) !important;
    margin: 0 0 var(--space-4);
}

.cta-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.cta-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-card);
    padding: var(--space-4) var(--space-3);
    text-decoration: none !important;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cta-card:hover {
    transform: translateY(-8px);
    border-color: rgba(230, 41, 59, 0.4);
    box-shadow: var(--shadow-pop);
}

.cta-card h3 {
    font-family: var(--font-display);
    font-size: 17px;
    color: var(--text) !important;
    margin: 0 0 8px;
}

.cta-card p {
    color: var(--text-dim);
    font-size: 14px;
    margin: 0 0 var(--space-3);
    flex-grow: 1;
}

.cta-card span {
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--accent-hot);
}

.cta-mesc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    text-align: left;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-card);
    padding: var(--space-4);
}

.cta-mesc h3 {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--text) !important;
    margin: 0 0 8px;
}

.cta-mesc p {
    color: var(--text-dim);
    font-size: 14.5px;
    margin: 0;
}

.cta-mesc__buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* ---------- 18. Footer ----------
   Legacy light override retired: footer.php is now fully self-contained
   (ftv2) and handles light/dark themes through its own scoped tokens. */

/* ---------- 19. ToTop ---------- */
body.mdx-body #totop {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 1040;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--grad-main);
    color: #fff !important;
    font-family: var(--font-display);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-indent: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: all 0.3s ease;
    box-shadow: 0 12px 30px -12px rgba(230, 41, 59, 0.5);
    text-decoration: none !important;
}

body.mdx-body #totop.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

body.mdx-body #totop:hover {
    transform: translateY(-4px);
}

/* ---------- 20. Scroll reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* hero entrance */
.hero .reveal {
    transition-duration: 0.9s;
}

/* Ensure hero content/visual are visible even if JS intersection observer fails */
.hero__content.reveal,
.hero__visual.reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

/* ---------- 21. Registration popup (header.php form kept functional) ---------- */
body.mdx-body .mfp-hide.contact-popup {
    background: var(--surface-solid);
    color: var(--text);
}

body.mdx-body .pop-up-form label.control-label {
    color: var(--text-faint) !important;
}

body.mdx-body .pop-up-form .form-control {
    background: var(--surface-solid);
    border: 1px solid var(--border-bright);
    color: var(--text);
}

body.mdx-body .mfp-bg {
    background: rgba(16, 24, 43, 0.55) !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet: 768–1023 */
@media (max-width: 1023px) {
    :root {
        --space-6: 72px;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .hero__visual {
        max-width: 680px;
        margin: var(--space-2) auto 0;
        min-height: 0;
    }

    .hero__orb--1 {
        width: 340px;
        height: 340px;
    }

    .hero__orb--2 {
        width: 300px;
        height: 300px;
    }

    .hero-card--back {
        left: auto;
        right: -10px;
        bottom: -30px;
    }

    .features-grid,
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Competition section: 2-col cards, stacked details */
    .comp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-3);
    }

    .comp-details {
        grid-template-columns: 1fr;
    }

    .showcase,
    .split-carousel,
    .split-carousel--reverse,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .showcase__media,
    .event-card {
        position: static;
    }

    .split-carousel--reverse .split-carousel__side { order: 1; }
    .split-carousel--reverse .split-carousel__slider { order: 2; }

    .links-grid,
    .cta-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .program-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile: 320–767 */
@media (max-width: 767px) {
    :root {
        --header-h: 66px;
        --space-6: 56px;
    }

    body.mdx-body #header .site-logo img {
        max-height: 38px;
    }

    .hero {
        min-height: auto;
        padding-top: calc(var(--header-h) + 44px);
    }

    .hero__visual {
        min-height: 0;
    }

    .hero-slider {
        aspect-ratio: 3 / 2;
        min-height: 220px;
    }

    .hero__orb--1,
    .hero__orb--2 {
        width: 260px;
        height: 260px;
        filter: blur(60px);
        opacity: 0.35;
    }

    .hero-card--back {
        display: none;
    }

    .hero__scroll-cue {
        display: none;
    }

    .features-grid,
    .stats-grid,
    .links-grid,
    .cta-cards,
    .program-list {
        grid-template-columns: 1fr;
    }

    /* Competition section: stack vertically on phone, identical image ratio kept */
    .comp-grid,
    .comp-details {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    /* Phone: full-width cards, no horizontal overflow */
    .comp-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .comp-card .image-wrapper {
        width: 100%;
        max-width: 100%;
        border-radius: var(--r-lg) var(--r-lg) 0 0;
    }

    .comp-card__body {
        padding: var(--space-3) var(--space-3) var(--space-3);
        box-sizing: border-box;
    }

    .comp-card__body h3 {
        font-size: 19px;
    }

    .comp-section::before {
        font-size: 72px;
        top: 14px;
        white-space: nowrap;
        overflow: hidden;
        max-width: 100%;
    }

    /* hall-of-fame responsive tweaks live in section 13 */

    .video-facade__play {
        width: 56px;
        height: 56px;
    }

    .cta-mesc {
        flex-direction: column;
        text-align: center;
    }

    .cta-mesc__buttons {
        justify-content: center;
    }

    body.mdx-body #totop {
        right: 16px;
        bottom: 16px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .links-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    #hero-canvas,
    #cta-canvas {
        display: none;
    }
}

/* ============================================================
   22. CHIEF EXPERTS SPOTLIGHT (light theme)
   ============================================================ */
.experts-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: var(--space-6) 0 0;
    background:
        radial-gradient(1000px 520px at 85% -10%, rgba(230, 41, 59, 0.07), transparent 60%),
        radial-gradient(900px 540px at 0% 110%, rgba(53, 100, 224, 0.06), transparent 60%),
        linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.experts-section__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.45;
    z-index: 0;
    pointer-events: none;
    animation: orb-drift 14s ease-in-out infinite alternate;
}

.experts-section__orb--1 {
    width: 460px;
    height: 460px;
    top: -180px;
    right: -120px;
    background: radial-gradient(circle, rgba(230, 41, 59, 0.26), transparent 70%);
}

.experts-section__orb--2 {
    width: 420px;
    height: 420px;
    bottom: -160px;
    left: -140px;
    background: radial-gradient(circle, rgba(53, 100, 224, 0.2), transparent 70%);
    animation-delay: -7s;
}

.experts-section__grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(16, 24, 43, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 24, 43, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, black 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, black 20%, transparent 75%);
    pointer-events: none;
}

.experts-section__inner {
    position: relative;
    z-index: 2;
}

/* On-light helpers */
.eyebrow--invert {
    color: var(--accent-hot);
    background: rgba(230, 41, 59, 0.08);
    border-color: rgba(230, 41, 59, 0.22);
}

.experts-section .section-title {
    color: var(--text) !important;
}

.experts-section .section-sub {
    color: var(--text-dim);
}

.experts-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-3);
}

/* --- Expert card --- */
.expert-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.35s ease,
                box-shadow 0.35s ease;
}

/* gradient hairline across the top edge */
.expert-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad-main);
    opacity: 0.85;
    z-index: 3;
}

/* shine sweep on hover */
.expert-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 32%, rgba(230, 41, 59, 0.05) 47%, transparent 62%);
    transform: translateX(-130%);
    transition: transform 0.8s ease;
    pointer-events: none;
    z-index: 2;
}

.expert-card:hover {
    transform: translateY(-8px);
    border-color: rgba(230, 41, 59, 0.4);
    box-shadow: var(--shadow-pop);
}

.expert-card:hover::after {
    transform: translateX(130%);
}

.expert-card__media {
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--bg-3);
}

.expert-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--fx, 50%) var(--fy, 50%);
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.expert-card:hover .expert-card__media img {
    transform: scale(1.06);
}

.expert-card__flag {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--accent-hot);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(230, 41, 59, 0.28);
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: var(--shadow-card);
}

.expert-card__body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    padding: var(--space-3) var(--space-3) var(--space-4);
}

.expert-card__skill {
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-hot);
    background: rgba(230, 41, 59, 0.08);
    border: 1px solid rgba(230, 41, 59, 0.25);
    padding: 4px 12px;
    border-radius: 999px;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.expert-card__body h3 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--text) !important;
    line-height: 1.3;
    margin: 4px 0 0;
}

.expert-card__role {
    font-size: 11.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.experts-cta {
    text-align: center;
    margin-top: var(--space-5);
    position: relative;
    z-index: 2;
    padding-bottom: var(--space-6);
}

/* --- Responsive --- */
@media (max-width: 1023px) {
    .experts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .experts-grid {
        grid-template-columns: 1fr;
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ============================================================
   23. NEWS GALLERY SPLIT SHOWCASE
   ============================================================ */
.news-split {
    display: grid;
    grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
    gap: var(--space-5);
    align-items: center;
}

.news-split__side .section-title {
    margin-bottom: var(--space-3);
}

/* styled pull-quote instead of a plain paragraph */
.news-quote {
    position: relative;
    margin: 0 0 var(--space-3);
    padding: 6px 0 6px 22px;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text);
}

.news-quote::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 2px;
    background: var(--grad-main);
}

.news-split__text {
    color: var(--text-dim);
    font-size: 14.5px;
    line-height: 1.75;
    margin: 0 0 var(--space-3);
}

.news-split__side .btn-modern {
    margin-top: var(--space-2);
}

/* --- Slides: identical frames + real gutters between slides --- */
.news-slide {
    position: relative;
    padding: 0 12px 6px; /* 24px gutters + room for the slick-list hover padding trick */
}

/* bleed the track so the outer frames stay flush with the column edges
   (single-slide view stays perfectly flush too) */
.news-carousel .slick-list {
    margin-left: -12px;
    margin-right: -12px;
}

/* equal-height slides so dots and frames never jump while sliding
   (slick marks the slides themselves, flex stretch evens them out) */
.news-carousel .slick-track {
    display: flex;
}

.news-carousel .slick-slide {
    height: auto;
}

.news-slide .mdx-media-frame {
    box-shadow: var(--shadow-card);
    height: 100%;
}

.news-slide__tag {
    position: absolute;
    left: 26px; /* slide padding (12px) + 14px inset from the frame edge */
    bottom: 20px;
    z-index: 2;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(16, 24, 43, 0.62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 5px 12px;
    border-radius: 999px;
    pointer-events: none;
}

.news-slide__tag--video {
    color: #fff;
    background: var(--grad-main);
    border-color: transparent;
    box-shadow: 0 8px 20px -8px rgba(230, 41, 59, 0.6);
}

@media (max-width: 1023px) {
    .news-split {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    /* keep the media column from stretching absurdly tall when stacked */
    .news-split__slider {
        max-width: 640px;
    }
}

@media (max-width: 767px) {
    .news-quote {
        font-size: 15.5px;
    }

    .news-slide__tag {
        left: 22px;
        bottom: 18px;
        font-size: 9px;
        padding: 4px 10px;
    }
}

/* ============================================================
   24. DAY / NIGHT THEME
   Light is the default; html[data-theme="dark"] swaps tokens.
   ============================================================ */
html[data-theme="dark"] {
    --bg: #0b1120;
    --bg-2: #101a30;
    --bg-3: #1b2742;
    --surface: rgba(15, 22, 40, 0.72);
    --surface-solid: #111b31;
    --surface-strong: rgba(16, 24, 43, 0.88);
    --border: rgba(255, 255, 255, 0.09);
    --border-bright: rgba(255, 255, 255, 0.2);

    --text: #eaf0fb;
    --text-dim: #a6b1c9;
    --text-faint: #7d88a3;

    --shadow-card: 0 14px 40px -18px rgba(0, 0, 0, 0.55);
    --shadow-pop: 0 24px 55px -18px rgba(230, 41, 59, 0.35);
}

html[data-theme="dark"] body.mdx-body,
html[data-theme="dark"] body.mdx-body #page_wrapper {
    background:
        radial-gradient(1100px 500px at 85% -5%, rgba(53, 100, 224, 0.14), transparent 60%),
        radial-gradient(900px 520px at -10% 30%, rgba(230, 41, 59, 0.12), transparent 55%),
        var(--bg);
}

body.mdx-body,
body.mdx-body #header {
    transition-property: background, box-shadow, border-color;
}

/* --- Header --- */
html[data-theme="dark"] body.mdx-body #header {
    background: rgba(10, 16, 32, 0.72) !important;
}

html[data-theme="dark"] body.mdx-body #header.is-scrolled {
    background: rgba(10, 16, 32, 0.9) !important;
}

html[data-theme="dark"] body.mdx-body #main-menu .sub-menu {
    background: rgba(13, 20, 38, 0.96) !important;
}

/* --- Hero --- */
html[data-theme="dark"] .hero__badge {
    background: rgba(17, 27, 49, 0.75);
    color: var(--text);
}

html[data-theme="dark"] .hero__grid-overlay {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

html[data-theme="dark"] .hero__scroll-cue {
    color: var(--text-faint);
}

/* --- Sections / decorations --- */
html[data-theme="dark"] .comp-section::before {
    color: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .experts-section__grid-overlay {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

html[data-theme="dark"] .expert-card__flag {
    background: rgba(11, 17, 32, 0.8);
    border-color: rgba(230, 41, 59, 0.45);
}

/* --- Slick dots --- */
html[data-theme="dark"] .mdx-slick .slick-dots li button {
    background: rgba(255, 255, 255, 0.28);
}

/* --- Footer: legacy dark override retired — footer.php handles both themes --- */

/* --- Mobile menu overlay already theme-aware via tokens --- */

@media (max-width: 767px) {
    .theme-toggle {
        width: 36px;
        height: 36px;
    }

    .header-cta {
        display: none; /* keep the phone navbar clean */
    }

    :root {
        --header-h: 66px;
    }

    /* compact floating capsule on phones */
    body.mdx-body #header {
        top: 8px;
        width: calc(100% - 16px);
    }

    body.mdx-body #header.is-scrolled {
        top: 6px;
    }

    body.mdx-body #header .site-header-main-wrapper {
        padding: 4px 12px;
    }

    body.mdx-body #header .site-logo img {
        max-height: 34px;
    }

    .nav-progress {
        left: 18px;
        right: 18px;
        bottom: 3px;
    }
}

/* ============================================================
   26. SMALL-PHONE SAFETY PASS (≤480px)
   Keeps every homepage section comfortable on narrow devices.
   ============================================================ */
@media (max-width: 480px) {
    :root {
        --space-6: 56px;
    }

    .section-head .section-title {
        font-size: clamp(22px, 7vw, 28px);
    }

    .section-sub {
        font-size: 14px;
    }

    /* hero */
    .hero__title {
        font-size: clamp(25px, 8vw, 32px);
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__actions .btn-modern {
        justify-content: center;
    }

    /* chairman + testimonial cards breathe on tiny screens */
    .chairs-grid {
        grid-template-columns: 1fr;
    }

    .chair-card {
        padding: var(--space-3);
    }

    .chair-card header {
        gap: 12px;
    }

    .chair-card header img {
        width: 60px;
        height: 60px;
    }

    .chair-card header span {
        font-size: 11.5px;
    }

    .mdx-testimonial p {
        font-size: 14.5px;
        padding-left: 26px;
    }

    /* stats band tighter */
    .stats-grid {
        gap: 10px;
    }

    .stat-card {
        padding: 16px;
    }

    /* experts */
    .expert-card__body h3 {
        font-size: 17px;
    }

    /* hall-of-fame year tabs slim down */
    .hof-tab {
        padding: 8px 12px;
    }

    .hof-tab__count {
        display: none;
    }
}

/* ============================================================
   27. MOBILE OVERFLOW GUARDS
   Nothing on the page may widen the layout past the device
   width; grid/flex children must always be allowed to shrink.
   ============================================================ */
html {
    overflow-x: hidden;
}

body.mdx-body #page_wrapper {
    overflow-x: clip;
}

/* media elements can never push a column wider than the screen */
img,
iframe,
video {
    max-width: 100%;
}

/* grid & flex children shrink below their content size */
.news-split > *,
.wsl-wrap > *,
.wsl-spotlight,
.wsl-slides,
.wsl-cards-carousel,
.chairs-grid > *,
.features-grid > *,
.comp-grid > *,
.stats-grid > *,
.experts-grid > *,
.links-grid > *,
.cta-cards > *,
.program-list > *,
.showcase > *,
.split-carousel > *,
.split-carousel--reverse > *,
.about-grid > *,
.hof-panel .recent-work_carousel-item {
    min-width: 0;
}

@media (max-width: 767px) {
    .section,
    .stats-band,
    .experts-section {
        overflow-x: clip;
    }
}
