/* ==========================================================================
   Training Heights — Design System & Interface Layer
   --------------------------------------------------------------------------
   Plain CSS loaded after the Vite/Tailwind bundle (see layouts/public.blade.php),
   so it works without rebuilding assets. Tailwind v4 puts its utilities in
   cascade layers; these unlayered rules therefore take precedence where they
   intentionally refine existing markup.

   Contents
     1.  Tokens
     2.  Base & typography
     3.  Layout primitives (container, sections, section heading)
     4.  Buttons
     5.  Cards, badges, links
     6.  Motion: scroll reveal
     7.  Header & navigation
     8.  Hero carousel
     9.  Homepage sections
    10.  Refinements to existing markup (all pages)
    11.  Footer
    12.  Reduced motion & print
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
    --th-primary: #aa538c;
    --th-primary-600: #95447a;
    --th-primary-700: #7c3765;
    --th-primary-50: #fbf4f8;
    --th-primary-100: #f4e3ee;
    --th-accent: #aed254;
    --th-accent-600: #9cc23e;
    --th-accent-ink: #4d650e;      /* lime-family text that passes AA on white */
    --th-navy: #0b2545;
    --th-navy-900: #071a33;
    --th-ink: #0f172a;
    --th-body: #334155;
    --th-muted: #64748b;
    --th-line: #e2e8f0;
    --th-surface: #ffffff;
    --th-surface-2: #f6f7fb;

    --th-font-head: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --th-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --th-r-sm: 10px;
    --th-r-md: 14px;
    --th-r-lg: 20px;
    --th-r-xl: 28px;

    --th-shadow-xs: 0 1px 2px rgba(15, 23, 42, .06);
    --th-shadow-sm: 0 2px 6px -1px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
    --th-shadow-md: 0 12px 28px -12px rgba(15, 23, 42, .18), 0 4px 10px -4px rgba(15, 23, 42, .06);
    --th-shadow-lg: 0 28px 60px -24px rgba(15, 23, 42, .28), 0 10px 24px -12px rgba(15, 23, 42, .10);
    --th-shadow-brand: 0 18px 40px -16px rgba(170, 83, 140, .45);

    --th-ease: cubic-bezier(.16, 1, .3, 1);          /* expo-out: settles softly */
    --th-ease-inout: cubic-bezier(.77, 0, .18, 1);   /* used for the hero hand-off */
    --th-gutter: clamp(1rem, 3vw, 2rem);
    --th-max: 1280px;
    --th-header-h: 0px;                              /* measured by th-modern.js */
}

/* 2. Base & typography ----------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body.th-site {
    font-family: var(--th-font-body);
    color: var(--th-body);
    background: var(--th-surface-2) !important; /* replaces the fixed mesh image (costly repaint on scroll) */
    text-rendering: optimizeLegibility;
    font-feature-settings: "cv11", "ss01";
}
.th-site h1, .th-site h2, .th-site h3, .th-site h4,
.th-site .font-black, .th-site .font-extrabold {
    font-family: var(--th-font-head);
    letter-spacing: -0.02em;
}
.th-site :focus-visible {
    outline: 3px solid var(--th-accent);
    outline-offset: 2px;
    border-radius: 6px;
}
.th-site img { image-rendering: auto; }
.th-skip-link {
    position: fixed; left: 1rem; top: -100px; z-index: 100;
    background: var(--th-ink); color: #fff; padding: .7rem 1rem; border-radius: var(--th-r-sm);
    font-weight: 600; font-size: .875rem; transition: top .2s var(--th-ease);
}
.th-skip-link:focus { top: 1rem; }
#main-content:focus { outline: none; }

/* 3. Layout primitives ----------------------------------------------------- */
.th-container {
    width: 100%;
    max-width: var(--th-max);
    margin-inline: auto;
    padding-inline: var(--th-gutter);
}
.th-section { padding-block: clamp(4rem, 8vw, 6.5rem); position: relative; }
.th-section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.th-section--white { background: #fff; }
.th-section--muted { background: var(--th-surface-2); }
.th-section--navy {
    background:
        radial-gradient(900px 400px at 85% -10%, rgba(170, 83, 140, .35), transparent 60%),
        radial-gradient(700px 360px at -5% 110%, rgba(174, 210, 84, .14), transparent 60%),
        var(--th-navy-900);
    color: #cbd5e1;
}
.th-section + .th-section--white, .th-section--white + .th-section--muted { border-top: 1px solid rgba(226, 232, 240, .7); }

.th-section-head {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
    gap: 1.25rem 2rem; margin-bottom: clamp(2rem, 4vw, 3rem);
}
.th-section-head__text { max-width: 46rem; }
.th-section-head--center { justify-content: center; text-align: center; }
.th-section-head--center .th-section-head__text { margin-inline: auto; }
.th-section-head--center .th-section-head__aside { width: 100%; display: flex; justify-content: center; }
.th-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font: 700 .75rem/1 var(--th-font-body); letter-spacing: .12em; text-transform: uppercase;
    color: var(--th-primary); margin-bottom: 1rem;
}
.th-eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; opacity: .8; }
.th-section-head--center .th-eyebrow::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; opacity: .8; }
.th-eyebrow--on-dark, .th-section-head--dark .th-eyebrow { color: var(--th-accent); }
.th-title {
    font: 800 clamp(1.875rem, 1.2rem + 2.4vw, 3rem)/1.12 var(--th-font-head);
    letter-spacing: -0.03em; color: var(--th-ink); margin: 0;
    text-wrap: balance;
}
.th-section-head--dark .th-title { color: #fff; }
.th-highlight {
    background: linear-gradient(100deg, var(--th-primary) 10%, #c95fa3 60%, var(--th-primary-700));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.th-section-head--dark .th-highlight { background: linear-gradient(100deg, var(--th-accent), #d6ef8f); -webkit-background-clip: text; background-clip: text; }
.th-lead {
    margin-top: 1rem; font-size: clamp(1rem, .95rem + .25vw, 1.125rem); line-height: 1.7;
    color: var(--th-muted); text-wrap: pretty;
}
.th-section-head--dark .th-lead { color: #a9b6c8; }
.th-empty { grid-column: 1 / -1; text-align: center; color: var(--th-muted); padding: 2rem; }

/* 4. Buttons --------------------------------------------------------------- */
.th-btn {
    --btn-bg: var(--th-primary); --btn-fg: #fff; --btn-bd: transparent; --btn-shadow: var(--th-shadow-brand);
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 44px; padding: .7rem 1.25rem;
    font: 600 .9rem/1.1 var(--th-font-body); letter-spacing: -.005em; white-space: nowrap;
    color: var(--btn-fg); background: var(--btn-bg); border: 1px solid var(--btn-bd);
    border-radius: 12px; cursor: pointer; text-decoration: none;
    box-shadow: 0 0 0 rgba(0,0,0,0);
    transition: transform .35s var(--th-ease), box-shadow .35s var(--th-ease), background-color .25s, color .25s, border-color .25s;
    -webkit-tap-highlight-color: transparent;
}
.th-btn .th-icon { transition: transform .35s var(--th-ease); flex-shrink: 0; }
.th-btn:hover { transform: translateY(-2px); box-shadow: var(--btn-shadow); }
.th-btn:hover .th-icon:last-child { transform: translateX(3px); }
.th-btn:active { transform: translateY(0) scale(.98); }
.th-btn--lg { min-height: 52px; padding: .9rem 1.6rem; font-size: .95rem; }
.th-btn--pill { border-radius: 999px; }
.th-btn--square { border-radius: 8px; }
.th-btn--block { width: 100%; }
.th-btn--primary { --btn-bg: linear-gradient(135deg, #b75b97, var(--th-primary) 45%, var(--th-primary-700)); background: var(--btn-bg); }
.th-btn--primary:hover { --btn-shadow: 0 18px 36px -14px rgba(170, 83, 140, .65); }
.th-btn--lime { --btn-bg: var(--th-accent); --btn-fg: #14210a; --btn-shadow: 0 18px 36px -16px rgba(174, 210, 84, .7); }
.th-btn--lime:hover { --btn-bg: #bde062; }
.th-btn--dark { --btn-bg: var(--th-navy); --btn-shadow: 0 16px 32px -16px rgba(11, 37, 69, .6); }
.th-btn--dark:hover { --btn-bg: #12355f; }
.th-btn--glass {
    --btn-bg: rgba(255, 255, 255, .1); --btn-bd: rgba(255, 255, 255, .28); --btn-shadow: 0 12px 30px -14px rgba(0, 0, 0, .5);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.th-btn--glass:hover { --btn-bg: rgba(255, 255, 255, .18); --btn-bd: rgba(255, 255, 255, .5); }
.th-btn--outline { --btn-bg: #fff; --btn-fg: var(--th-ink); --btn-bd: var(--th-line); --btn-shadow: var(--th-shadow-md); }
.th-btn--outline .th-icon { color: var(--th-primary); }
.th-btn--outline:hover { --btn-bd: rgba(170, 83, 140, .45); --btn-fg: var(--th-primary); }
.th-btn--link-light { --btn-bg: transparent; --btn-fg: #fff; padding-inline: .25rem; box-shadow: none !important; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 6px; }
.th-btn--link-light:hover { text-decoration-color: var(--th-accent); }
.th-btn[disabled], .th-btn.is-loading { pointer-events: none; opacity: .75; }

/* Ripple (spawned by th-modern.js on .th-btn and existing CTA buttons) */
.th-ripple {
    position: absolute; border-radius: 50%; pointer-events: none; z-index: -1;
    background: currentColor; opacity: .25; transform: scale(0);
    animation: th-ripple .6s var(--th-ease) forwards;
}
@keyframes th-ripple { to { transform: scale(2.6); opacity: 0; } }

/* Loading state for submit buttons (form[data-loading] or any submit in .th-site forms) */
.is-loading { position: relative; color: transparent !important; }
.is-loading > * { visibility: hidden; }
.is-loading::after {
    content: ""; position: absolute; inset: 0; margin: auto; width: 1.1rem; height: 1.1rem;
    border: 2px solid rgba(255, 255, 255, .55); border-top-color: #fff; border-radius: 50%;
    animation: th-spin .7s linear infinite;
}
@keyframes th-spin { to { transform: rotate(360deg); } }

/* 5. Cards, badges, links -------------------------------------------------- */
.th-card {
    position: relative; background: #fff; border: 1px solid rgba(226, 232, 240, .9);
    border-radius: var(--th-r-lg); box-shadow: var(--th-shadow-sm);
    transition: transform .45s var(--th-ease), box-shadow .45s var(--th-ease), border-color .3s;
}
.th-card--link { display: block; color: inherit; text-decoration: none; }
.th-card--link:hover, .th-feature:hover, .th-testimonial:hover {
    transform: translateY(-6px); box-shadow: var(--th-shadow-lg); border-color: rgba(170, 83, 140, .28);
}
.th-badge {
    display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .6rem; border-radius: 999px;
    font: 600 .72rem/1 var(--th-font-body);
}
.th-badge--success { color: #047857; background: #ecfdf5; }
.th-link {
    display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .9rem;
    color: var(--th-primary); text-decoration: none;
}
.th-link .th-icon { transition: transform .3s var(--th-ease); }
.th-link:hover .th-icon { transform: translateX(4px); }
.th-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--th-accent); display: inline-block; flex-shrink: 0; }
.th-dot--pulse { box-shadow: 0 0 0 0 rgba(174, 210, 84, .7); animation: th-pulse 2.2s infinite; }
@keyframes th-pulse { 70% { box-shadow: 0 0 0 10px rgba(174, 210, 84, 0); } 100% { box-shadow: 0 0 0 0 rgba(174, 210, 84, 0); } }

/* 6. Motion: scroll reveal ------------------------------------------------- */
/* Hidden only when JS is running (html.th-js), so content is never lost without JS. */
.th-js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity .8s var(--th-ease), transform .9s var(--th-ease);
    transition-delay: var(--d, 0ms);
}
.th-js [data-reveal="left"] { transform: translate3d(-36px, 0, 0); }
.th-js [data-reveal="right"] { transform: translate3d(36px, 0, 0); }
.th-js [data-reveal="scale"] { transform: scale(.96); }
.th-js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* 7. Header & navigation --------------------------------------------------- */
.th-header {
    transition: background-color .4s var(--th-ease), box-shadow .4s var(--th-ease), border-color .4s;
    border-bottom-color: transparent !important;
}
.th-header .th-header__top { transition: padding .4s var(--th-ease); }
.th-header__logo { transition: transform .4s var(--th-ease) !important; transform-origin: left center; }
.th-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(15, 23, 42, .35); }
.th-header.is-scrolled .th-header__logo { transform: scale(.88); }
.th-header__search { border-radius: 999px !important; }
.th-header__cta { border-radius: 10px !important; padding-inline: 1.15rem !important; font-size: .8rem !important; }

/* Main nav items: lighter weight, rounded hover, lime underline as the active indicator */
.th-mainnav { gap: .15rem; }
.th-mainnav > a, .th-mainnav > div > button, .th-mainnav > div > a {
    position: relative; font-size: .8rem; font-weight: 600; letter-spacing: .005em;
    padding-block: .95rem !important; border-radius: 0;
    transition: background-color .25s, color .25s;
}
.th-mainnav > a::after, .th-mainnav > div > button::after, .th-mainnav > div > a::after {
    content: ""; position: absolute; left: .9rem; right: .9rem; bottom: 0; height: 3px; border-radius: 3px 3px 0 0;
    background: var(--th-accent); transform: scaleX(0); transform-origin: center;
    transition: transform .35s var(--th-ease);
}
.th-mainnav .bg-\[\#aa538c\] { background-color: var(--th-primary) !important; color: #fff !important; }
.th-mainnav .bg-\[\#aa538c\] svg { color: #fff !important; opacity: 1; }
.th-mainnav .bg-\[\#aa538c\]::after { transform: scaleX(1); }
.th-mainnav > a:hover::after, .th-mainnav > div:hover > button::after, .th-mainnav > div:hover > a::after { transform: scaleX(.6); }
.th-mainnav svg.text-slate-300 { opacity: .75; }

/* Dropdowns: floating cards with a hover bridge so the pointer can travel into them */
.th-dropdown {
    margin-top: 8px; border-radius: 16px !important; border: 1px solid rgba(15, 23, 42, .08) !important;
    border-top-width: 1px !important; box-shadow: var(--th-shadow-lg) !important;
    padding: .75rem !important;
}
.th-dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.th-dropdown::after {
    content: ""; position: absolute; top: 0; left: 1.25rem; width: 40px; height: 3px; border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, var(--th-primary), var(--th-accent));
}
.th-dropdown a { border-radius: 10px !important; transition: background-color .2s, transform .25s var(--th-ease) !important; }
.th-dropdown a:hover { background: var(--th-primary-50) !important; transform: translateX(2px); }

/* Mobile drawer */
.th-mobile-nav { box-shadow: 0 30px 50px -30px rgba(15, 23, 42, .45); max-height: calc(100svh - 80px); overflow-y: auto; }
.th-mobile-nav a { border-radius: 10px !important; padding: .7rem .8rem !important; transition: background-color .2s; }
.th-mobile-nav button { border-radius: 12px !important; min-height: 44px; }

/* 8. Hero carousel ---------------------------------------------------------- */
.th-hero {
    /* About 600px on a laptop, never more than 640px (agreed with the client) */
    --hero-min: clamp(540px, 42vw, 640px);
    position: relative; overflow: hidden; color: #fff; background: #0b0614;
    min-height: var(--hero-min);
}
.th-hero__track { display: grid; min-height: inherit; }
.th-hero__slide {
    grid-area: 1 / 1; position: relative; min-height: var(--hero-min);
    display: flex; flex-direction: column; justify-content: flex-start;
    padding-top: clamp(2rem, 3vw, 2.75rem); padding-bottom: 5.75rem;
    visibility: hidden; z-index: 0;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}
.th-hero__slide.is-active { visibility: visible; z-index: 2; }
.th-hero__slide.is-leaving { visibility: visible; z-index: 1; }
.th-hero__slide.is-entering { visibility: visible; z-index: 3; }

.th-hero__media { position: absolute; inset: 0; overflow: hidden; will-change: transform; }
.th-hero__media picture, .th-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Photos fill the full width (no zoom animation); position keeps the main subject in view */
.th-hero__img { object-fit: cover; object-position: center 45%; transform: none; }
.th-hero__slide--spotlight .th-hero__img { object-position: 40% 42%; }
.th-hero__slide--editorial .th-hero__img { object-position: center 52%; }


.th-hero__scrim { position: absolute; inset: 0; pointer-events: none; }
.th-hero__slide--split .th-hero__scrim {
    background:
        linear-gradient(90deg, rgba(10, 6, 20, .86) 0%, rgba(10, 6, 20, .62) 42%, rgba(10, 6, 20, .25) 70%, rgba(10, 6, 20, .45) 100%),
        linear-gradient(0deg, rgba(10, 6, 20, .75) 0%, rgba(10, 6, 20, 0) 35%);
}
.th-hero__slide--spotlight .th-hero__scrim {
    background:
        linear-gradient(270deg, rgba(7, 12, 28, .82) 0%, rgba(7, 12, 28, .38) 42%, rgba(7, 12, 28, 0) 70%),
        linear-gradient(0deg, rgba(7, 12, 28, .7) 0%, rgba(7, 12, 28, 0) 32%);
}
.th-hero__slide--editorial .th-hero__scrim {
    background:
        linear-gradient(90deg, rgba(24, 8, 22, .78) 0%, rgba(24, 8, 22, .5) 40%, rgba(24, 8, 22, 0) 68%),
        linear-gradient(0deg, rgba(24, 8, 22, .85) 0%, rgba(24, 8, 22, .45) 32%, rgba(24, 8, 22, .05) 62%, rgba(24, 8, 22, .3) 100%),
        radial-gradient(60% 50% at 10% 100%, rgba(170, 83, 140, .38), transparent 70%);
}
.th-hero__inner { position: relative; z-index: 2; width: 100%; }

/* Slide hand-off: incoming slides in from the right (left when going back), outgoing
   drifts the other way and dims. Transform/opacity only = GPU-composited, no layout. */
.th-hero__slide.is-entering { animation: th-slide-in 1.15s var(--th-ease-inout) both; }
.th-hero__slide.is-entering .th-hero__media { animation: th-media-in 1.15s var(--th-ease-inout) both; }
.th-hero__slide.is-leaving { animation: th-slide-out 1.15s var(--th-ease-inout) both; }
.th-hero.is-reverse .th-hero__slide.is-entering { animation-name: th-slide-in-rev; }
.th-hero.is-reverse .th-hero__slide.is-entering .th-hero__media { animation-name: th-media-in-rev; }
.th-hero.is-reverse .th-hero__slide.is-leaving { animation-name: th-slide-out-rev; }
@keyframes th-slide-in { from { transform: translate3d(100%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes th-media-in { from { transform: translate3d(-35%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes th-slide-out { from { transform: translate3d(0, 0, 0); filter: brightness(1); } to { transform: translate3d(-28%, 0, 0); filter: brightness(.45); } }
@keyframes th-slide-in-rev { from { transform: translate3d(-100%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes th-media-in-rev { from { transform: translate3d(35%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes th-slide-out-rev { from { transform: translate3d(0, 0, 0); filter: brightness(1); } to { transform: translate3d(28%, 0, 0); filter: brightness(.45); } }

/* Content choreography: each layout animates differently once its slide is active */
.th-hero [data-anim] { opacity: 0; }
.th-hero .is-active [data-anim] { animation: th-up .9s var(--th-ease) both; animation-delay: calc(var(--d, 0ms) + var(--hero-content-delay, 0ms)); }
.th-hero .is-active [data-anim="rise"] { animation-name: th-rise; animation-duration: 1.1s; }
.th-hero .is-active [data-anim="pop"] { animation-name: th-pop; animation-duration: .6s; }
.th-hero .th-hero__slide--spotlight.is-active .th-hero__panel { animation-name: th-from-right; animation-duration: 1.1s; }
.th-hero .is-active [data-anim="reveal"] { animation-name: th-reveal; animation-duration: 1.05s; }
.th-hero__line { display: block; overflow: hidden; padding-bottom: .08em; }
.th-hero__line > span { display: inline-block; }
@keyframes th-up { from { opacity: 0; transform: translate3d(0, 26px, 0); } to { opacity: 1; transform: none; } }
@keyframes th-rise { from { opacity: 0; transform: translate3d(0, 48px, 0) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes th-pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes th-from-right { from { opacity: 0; transform: translate3d(60px, 0, 0); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes th-reveal { from { opacity: 1; clip-path: inset(0 0 100% 0); transform: translate3d(0, 40%, 0); } to { opacity: 1; clip-path: inset(0 0 0 0); transform: none; } }
.th-hero.is-animating { --hero-content-delay: 550ms; }

/* Shared hero typography */
.th-hero__eyebrow {
    display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.25rem;
    font: 600 .8rem/1 var(--th-font-body); letter-spacing: .14em; text-transform: uppercase; color: #e9d5ff;
}
.th-hero__eyebrow--pill {
    padding: .55rem .95rem; border-radius: 999px; letter-spacing: .08em;
    background: rgba(174, 210, 84, .14); border: 1px solid rgba(174, 210, 84, .35); color: var(--th-accent);
}
.th-hero__eyebrow--line { color: var(--th-accent); }
.th-hero__eyebrow--line::before { content: ""; width: 36px; height: 2px; background: currentColor; border-radius: 2px; }
.th-hero__title {
    margin: 0; color: #fff; font: 800 clamp(2.25rem, 1.2rem + 4.2vw, 4.25rem)/1.04 var(--th-font-head);
    letter-spacing: -0.035em; text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.th-hero__title--md { font-size: clamp(2.1rem, 1.2rem + 3.4vw, 3.6rem); }
.th-hero__title--xl { font-size: clamp(2.5rem, 1.1rem + 5.4vw, 5.5rem); line-height: 1; letter-spacing: -0.045em; }
.th-hero__highlight { display: inline; }
.th-hero__highlight--lime { background: linear-gradient(95deg, var(--th-accent) 0%, #d8f08d 60%, #9fd15a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.th-hero__highlight--brand { background: linear-gradient(95deg, #f0a6d4 0%, #d77bb7 45%, var(--th-accent) 110%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.th-hero__text { margin-top: 1.25rem; max-width: 36rem; font-size: clamp(1rem, .95rem + .3vw, 1.18rem); line-height: 1.7; color: rgba(241, 245, 249, .86); }
.th-hero__kicker { margin-top: 1.1rem; font-weight: 600; font-size: clamp(.95rem, .9rem + .25vw, 1.1rem); letter-spacing: .02em; color: #e9d5ff; }
.th-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; margin-top: 2rem; }

/* HERO 1 — split */
.th-hero__split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.th-hero__copy { max-width: 44rem; }
.th-hero__pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.th-hero__pillars li {
    display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border-radius: var(--th-r-md);
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    transition: border-color .3s, background-color .3s, transform .4s var(--th-ease);
}
.th-hero__pillars li:hover { border-color: rgba(174, 210, 84, .5); background: rgba(255, 255, 255, .11); transform: translateY(-2px); }
.th-hero__pillars strong { display: block; font: 700 .92rem/1.2 var(--th-font-head); color: #fff; }
.th-hero__pillars small { display: block; font-size: .75rem; color: #cbd5e1; margin-top: .15rem; line-height: 1.3; }
.th-hero__pillar-icon { width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(135deg, rgba(170, 83, 140, .9), rgba(124, 55, 101, .9)); color: #fff; }
.th-hero__hubs {
    justify-self: end; width: 100%; max-width: 400px; padding: 1.75rem; border-radius: var(--th-r-xl);
    background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05));
    border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
    -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
}
.th-hero__hubs-badge { display: inline-flex; align-items: center; gap: .5rem; font: 600 .72rem/1 var(--th-font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--th-accent); }
.th-hero__hubs-title { margin: .9rem 0 0; font: 800 1.75rem/1.1 var(--th-font-head); letter-spacing: -.03em; color: #fff; }
.th-hero__hubs-title span { color: var(--th-accent); }
.th-hero__hubs-text { margin: .6rem 0 1.25rem; font-size: .9rem; line-height: 1.6; color: #cbd5e1; }
.th-hero__hub-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; min-height: 2.25rem; }
.th-hero__hub {
    display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .75rem; border-radius: 999px; cursor: pointer;
    font: 600 .78rem/1 var(--th-font-body); color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
    transition: background-color .25s, border-color .25s, transform .3s var(--th-ease);
}
.th-hero__hub:hover { background: rgba(170, 83, 140, .55); border-color: rgba(255, 255, 255, .35); transform: translateY(-1px); }

/* HERO 2 — spotlight */
.th-hero__slide--spotlight .th-hero__inner { display: flex; justify-content: flex-end; }
.th-hero__panel {
    width: min(100%, 600px); padding: clamp(1.75rem, 3vw, 2.75rem); border-radius: var(--th-r-xl);
    background: linear-gradient(150deg, rgba(11, 37, 69, .72), rgba(7, 12, 28, .55));
    border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .8);
    -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
}
.th-hero__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.th-hero__chips li { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: #e2e8f0; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.th-hero__chips .th-icon { color: var(--th-accent); }

/* HERO 3 — editorial */
.th-hero__slide--editorial { justify-content: flex-end; }
.th-hero__editorial { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.th-hero__editorial .th-hero__text { max-width: 40rem; }
.th-hero__intakes {
    border-radius: var(--th-r-lg); overflow: hidden; background: rgba(255, 255, 255, .96); color: var(--th-ink);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
}
.th-hero__intakes-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; background: var(--th-navy); color: #fff; font-size: .8rem; font-weight: 600; }
.th-hero__intakes-head > span { display: inline-flex; align-items: center; gap: .45rem; letter-spacing: .06em; text-transform: uppercase; }
.th-hero__intakes-head .th-icon { color: var(--th-accent); }
.th-hero__intakes-head a { display: inline-flex; align-items: center; gap: .3rem; color: var(--th-accent); text-decoration: none; }
.th-hero__intakes ol { margin: 0; padding: .35rem 0; list-style: none; }
.th-hero__intakes li + li { border-top: 1px solid var(--th-line); }
.th-hero__intakes li a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem; padding: .85rem 1.25rem; color: inherit; text-decoration: none; transition: background-color .2s; }
.th-hero__intakes li a:hover { background: var(--th-primary-50); }
.th-hero__intake-date { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--th-primary-50); color: var(--th-primary); font-size: .68rem; font-weight: 700; text-transform: uppercase; line-height: 1; }
.th-hero__intake-date b { font: 800 1.15rem/1 var(--th-font-head); color: var(--th-primary-700); }
.th-hero__intake-title { font-size: .88rem; font-weight: 600; line-height: 1.35; color: var(--th-ink); }
.th-hero__intake-go { color: var(--th-muted); transition: transform .3s var(--th-ease), color .2s; }
.th-hero__intakes li a:hover .th-hero__intake-go { transform: translateX(3px); color: var(--th-primary); }

/* Controls */
.th-hero__controls {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
    padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.th-hero__tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 220px); gap: 1rem; flex: 1; }
.th-hero__tab {
    display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: .1rem .6rem; text-align: left;
    padding: .25rem 0 0; background: none; border: 0; color: rgba(255, 255, 255, .62); cursor: pointer;
    transition: color .3s;
}
.th-hero__tab:hover, .th-hero__tab.is-active { color: #fff; }
.th-hero__tab-num { font: 700 .78rem/1 var(--th-font-head); letter-spacing: .06em; }
.th-hero__tab-label { font-size: .78rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-hero__tab-bar { grid-column: 1 / -1; position: relative; display: block; height: 3px; margin-top: .7rem; border-radius: 3px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.th-hero__tab-bar > span { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--th-accent), #e2f5a8); border-radius: inherit; }
.th-hero__tab.is-active .th-hero__tab-bar > span { animation: th-progress var(--hero-interval, 7000ms) linear forwards; }
.th-hero.is-paused .th-hero__tab.is-active .th-hero__tab-bar > span,
.th-hero.is-stopped .th-hero__tab.is-active .th-hero__tab-bar > span { animation-play-state: paused; }
.th-hero.is-stopped .th-hero__tab.is-active .th-hero__tab-bar > span { animation: none; transform: scaleX(1); opacity: .6; }
@keyframes th-progress { to { transform: scaleX(1); } }
.th-hero__nav { display: flex; gap: .5rem; }
.th-hero__btn {
    width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; color: #fff;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transition: background-color .25s, border-color .25s, transform .3s var(--th-ease);
}
.th-hero__btn:hover { background: var(--th-primary); border-color: var(--th-primary); transform: scale(1.06); }
.th-hero__icon-play { display: none; }
.th-hero.is-stopped .th-hero__icon-play { display: block; }
.th-hero.is-stopped .th-hero__icon-pause { display: none; }

/* Hero responsive */
@media (max-width: 1100px) {
    .th-hero__split { grid-template-columns: 1fr; }
    .th-hero__hubs { justify-self: start; max-width: 560px; }
    .th-hero__editorial { grid-template-columns: 1fr; }
    .th-hero__intakes { max-width: 560px; }
}
/* Tablet and mobile: the full photo sits on top, the slide's text follows below it,
   so the picture is never cropped or covered */
@media (max-width: 1100px) {
    .th-hero { --hero-min: 0px; }
    .th-hero__slide { padding-top: 0; padding-bottom: 6.5rem; justify-content: flex-start; background: #0b0614; }
    .th-hero__media { position: relative; inset: auto; flex: none; width: 100%; aspect-ratio: 4 / 3; margin-bottom: 1.75rem; }
    .th-hero__media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 8%; background: linear-gradient(0deg, #0b0614, rgba(11, 6, 20, 0)); }
    .th-hero__slide .th-hero__scrim { display: none; }
    .th-hero__intakes, .th-hero__hubs { display: none; }   /* keeps the slides an even height; dates and offices stay on the calendar and contact pages */
}
@media (max-width: 767px) {
    .th-hero__slide { padding-bottom: 6.5rem; }
    .th-hero__title { font-size: clamp(2rem, 1.3rem + 3.6vw, 2.6rem); }
    .th-hero__title--xl { font-size: clamp(2.3rem, 1.4rem + 4.5vw, 3rem); }
    .th-hero__eyebrow { letter-spacing: .08em; font-size: .72rem; }
    .th-hero__text { font-size: .98rem; margin-top: 1rem; }
    .th-hero__actions { margin-top: 1.5rem; }
    .th-hero__pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-top: 1.5rem; }
    .th-hero__pillars li { flex-direction: column; align-items: flex-start; gap: .5rem; padding: .7rem; }
    .th-hero__pillars small { display: none; }
    .th-hero__pillar-icon { width: 32px; height: 32px; border-radius: 9px; }
    .th-hero__hubs { display: none; }               /* hub chips stay reachable from the footer & contact page */
    .th-hero__intakes { display: none; }
    .th-hero__actions .th-btn { flex: 1 1 auto; }
    .th-hero__tab-label { display: none; }
    .th-hero__tabs { grid-auto-columns: minmax(0, 64px); gap: .6rem; }
    .th-hero__btn { width: 42px; height: 42px; }
    .th-hero__btn[data-prev], .th-hero__btn[data-next] { display: none; }  /* swipe instead */
    .th-hero__slide--spotlight .th-hero__inner { justify-content: flex-start; }
    .th-hero__panel { padding: 1.5rem; background: rgba(7, 12, 28, .55); }
    .th-hero__slide--split .th-hero__scrim { background: linear-gradient(180deg, rgba(10, 6, 20, .55), rgba(10, 6, 20, .88) 70%); }
    .th-hero__slide--spotlight .th-hero__scrim { background: linear-gradient(180deg, rgba(7, 12, 28, .5), rgba(7, 12, 28, .9) 75%); }
}

/* 9. Homepage sections ------------------------------------------------------ */
/* Stats band */
.th-stats { position: relative; z-index: 3; background: #fff; border-bottom: 1px solid var(--th-line); }
.th-stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.th-stats__item { display: flex; flex-direction: column-reverse; gap: .35rem; padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1rem, 2vw, 1.75rem); }
.th-stats__item + .th-stats__item { border-left: 1px solid var(--th-line); }
.th-stats__value { margin: 0; font: 800 clamp(1.9rem, 1.4rem + 1.6vw, 2.75rem)/1 var(--th-font-head); letter-spacing: -.04em; color: var(--th-ink); font-variant-numeric: tabular-nums; }
.th-stats__item:first-child .th-stats__value { color: var(--th-primary); }
.th-stats__label { font-size: .9rem; color: var(--th-muted); font-weight: 500; }
@media (max-width: 767px) {
    .th-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .th-stats__item:nth-child(3) { border-left: 0; }
    .th-stats__item:nth-child(n+3) { border-top: 1px solid var(--th-line); }
}

/* Categories marquee */
.th-categories { background: #fff; padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(2rem, 4vw, 3rem); overflow: hidden; border-bottom: 1px solid var(--th-line); }
.th-categories__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.th-categories__title { margin: 0; font: 700 1.05rem/1.2 var(--th-font-head) !important; letter-spacing: -.01em; color: var(--th-ink); }
.th-cat-card {
    width: 168px !important; min-width: 168px !important; max-width: 168px !important; height: 96px !important;
    border-radius: 16px !important; border-color: var(--th-line) !important; gap: .35rem;
    transition: transform .4s var(--th-ease), box-shadow .4s var(--th-ease), border-color .3s !important;
}
.th-cat-card:hover { transform: translateY(-4px); box-shadow: var(--th-shadow-md) !important; border-color: rgba(170, 83, 140, .4) !important; background: #fff !important; }
.th-cat-card img { max-height: 32px !important; max-width: 96px !important; }
.th-cat-card span { font-size: 11.5px !important; font-weight: 600 !important; max-width: 148px !important; }
.th-categories .animate-marquee-track { gap: 1rem; animation-duration: 48s; }

/* Feature grid (Why choose us) */
.th-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.th-feature { padding: 2rem; }
.th-feature::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; border-radius: var(--th-r-lg) var(--th-r-lg) 0 0;
    background: linear-gradient(90deg, var(--th-primary), var(--th-accent)); opacity: 0; transition: opacity .3s;
}
.th-feature:hover::before { opacity: 1; }
.th-feature__icon, .th-service__icon {
    width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 1.25rem;
    color: var(--th-primary); background: linear-gradient(135deg, var(--th-primary-50), var(--th-primary-100));
    transition: transform .45s var(--th-ease), background .3s, color .3s;
}
.th-feature:hover .th-feature__icon, .th-service:hover .th-service__icon { transform: rotate(-6deg) scale(1.06); background: var(--th-primary); color: #fff; }
.th-feature__title, .th-service__title { margin: 0 0 .5rem; font: 700 1.125rem/1.3 var(--th-font-head); color: var(--th-ink); }
.th-feature__text, .th-service__text { margin: 0; font-size: .95rem; line-height: 1.65; color: var(--th-muted); }

/* Services */
.th-service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.th-service { padding: 1.75rem; display: flex; flex-direction: column; }
.th-service__text { flex: 1; }
.th-service__cta { margin-top: 1.25rem; display: inline-flex; align-items: center; gap: .4rem; font-size: .875rem; font-weight: 600; color: var(--th-primary); }
.th-service__cta .th-icon { transition: transform .3s var(--th-ease); }
.th-service:hover .th-service__cta .th-icon { transform: translateX(4px); }

/* Accreditations */
.th-accred-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.th-accred {
    display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: var(--th-r-md);
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
    transition: background-color .3s, border-color .3s, transform .4s var(--th-ease);
}
.th-accred:hover { background: rgba(255, 255, 255, .09); border-color: rgba(174, 210, 84, .4); transform: translateY(-3px); }
.th-accred__logo { width: 64px; height: 48px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: #fff; padding: .4rem; }
.th-accred__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.th-accred__meta strong { display: block; color: #fff; font: 700 .92rem/1.25 var(--th-font-head); }
.th-accred__meta small { display: block; margin-top: .2rem; font-size: .78rem; line-height: 1.35; color: #94a3b8; }

/* Testimonials */
.th-testimonial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.th-testimonial { margin: 0; padding: 1.75rem; display: flex; flex-direction: column; }
.th-testimonial__top { display: flex; align-items: center; justify-content: space-between; }
.th-stars { display: inline-flex; gap: 2px; color: #e2e8f0; }
.th-stars .is-on { color: #f59e0b; fill: #f59e0b; }
.th-testimonial__mark { width: 34px; height: 34px; margin: 1.25rem 0 .5rem; color: var(--th-primary-100); fill: var(--th-primary-50); }
.th-testimonial__quote { margin: 0; flex: 1; font-size: 1rem; line-height: 1.7; color: var(--th-body); }
.th-testimonial__author { display: flex; align-items: center; gap: .8rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--th-line); }
.th-testimonial__author strong { display: block; font-size: .92rem; color: var(--th-ink); }
.th-testimonial__author small { display: block; font-size: .8rem; color: var(--th-muted); }
.th-avatar { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; object-fit: cover; color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--th-primary), var(--th-primary-700)); }

/* Clients marquee */
.th-clients { background: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--th-line); overflow: hidden; }
.th-clients__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.th-clients__title { margin: 0; font: 600 1rem/1.4 var(--th-font-body) !important; letter-spacing: 0 !important; color: var(--th-muted); }
.th-marquee { mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.th-marquee__track { display: flex; width: max-content; gap: clamp(2.5rem, 5vw, 4.5rem); margin: 0; padding: 0; list-style: none; align-items: center; animation: th-marquee 55s linear infinite; }
.th-marquee:hover .th-marquee__track { animation-play-state: paused; }
.th-marquee__track li { flex-shrink: 0; }
.th-marquee__track img { height: 40px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1) contrast(.9); opacity: .65; transition: filter .3s, opacity .3s, transform .3s var(--th-ease); }
.th-marquee__track img:hover { filter: none; opacity: 1; transform: scale(1.05); }
@keyframes th-marquee { to { transform: translate3d(-50%, 0, 0); } }

/* FAQ */
.th-faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.th-faq-layout .th-section-head { flex-direction: column; align-items: flex-start; position: sticky; top: 140px; }
.th-faq { display: grid; gap: .75rem; }
.th-faq__item { background: #fff; border: 1px solid var(--th-line); border-radius: var(--th-r-md); transition: border-color .3s, box-shadow .3s; }
.th-faq__item.is-open { border-color: rgba(170, 83, 140, .35); box-shadow: var(--th-shadow-md); }
.th-faq__item h3 { margin: 0; font-size: inherit; letter-spacing: 0; }
.th-faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.35rem; background: none; border: 0; cursor: pointer; text-align: left; font: 600 1rem/1.45 var(--th-font-body); color: var(--th-ink); }
.th-faq__q:hover { color: var(--th-primary); }
.th-faq__icon { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--th-surface-2); color: var(--th-primary); transition: transform .4s var(--th-ease), background-color .3s, color .3s; }
.th-faq__item.is-open .th-faq__icon { transform: rotate(45deg); background: var(--th-primary); color: #fff; }
.th-faq__a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .4s var(--th-ease), visibility 0s linear .4s; }
.th-faq__item.is-open .th-faq__a { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .4s var(--th-ease), visibility 0s; }
.th-faq__a > div { overflow: hidden; }
.th-faq__a-inner { padding: 0 1.35rem 1.25rem; font-size: .95rem; line-height: 1.7; color: var(--th-muted); }
.th-faq__a-inner a { color: var(--th-primary); text-decoration: underline; }

/* CTA band */
.th-cta {
    position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem;
    padding: clamp(2rem, 5vw, 3.75rem); border-radius: var(--th-r-xl); color: #fff;
    background: linear-gradient(120deg, var(--th-primary-700) 0%, var(--th-primary) 45%, #6a2c79 100%);
    box-shadow: 0 40px 80px -40px rgba(124, 55, 101, .75);
}
.th-cta__glow { position: absolute; inset: -40% -10% auto auto; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(174, 210, 84, .45), transparent 65%); pointer-events: none; animation: th-float 12s ease-in-out infinite alternate; }
@keyframes th-float { to { transform: translate3d(-60px, 40px, 0); } }
.th-cta__copy { position: relative; max-width: 42rem; }
.th-cta__title { margin: 0; font: 800 clamp(1.75rem, 1.2rem + 2vw, 2.6rem)/1.15 var(--th-font-head); letter-spacing: -.03em; color: #fff; }
.th-cta__text { margin: .9rem 0 0; font-size: 1.05rem; line-height: 1.65; color: rgba(255, 255, 255, .85); }
.th-cta__actions { position: relative; display: flex; flex-wrap: wrap; gap: .85rem; }

/* Existing homepage blocks: refinements */
.th-sessions .th-session-card, .th-diploma-card { border-radius: var(--th-r-lg) !important; transition: transform .45s var(--th-ease), box-shadow .45s var(--th-ease), border-color .3s !important; }
.th-sessions .th-session-card:hover, .th-diploma-card:hover { transform: translateY(-6px); box-shadow: var(--th-shadow-lg) !important; }
.th-enrol-banner { border-radius: var(--th-r-xl) !important; padding: clamp(1.75rem, 4vw, 2.75rem) !important; }
.th-diploma-benefits > div { border-radius: var(--th-r-lg) !important; background: #fff !important; border-color: var(--th-line) !important; transition: transform .4s var(--th-ease), box-shadow .4s var(--th-ease) !important; }
.th-diploma-benefits > div:hover { transform: translateY(-4px); box-shadow: var(--th-shadow-md) !important; }

@media (max-width: 1100px) {
    .th-feature-grid, .th-testimonial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .th-service-grid, .th-accred-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .th-faq-layout { grid-template-columns: 1fr; }
    .th-faq-layout .th-section-head { position: static; }
}
@media (max-width: 640px) {
    .th-feature-grid, .th-testimonial-grid, .th-service-grid, .th-accred-grid { grid-template-columns: 1fr; }
    .th-feature, .th-service, .th-testimonial { padding: 1.5rem; }
    .th-cta__actions, .th-cta__actions .th-btn { width: 100%; }
    .th-section-head__aside { width: 100%; }
}

/* 10. Refinements to existing markup on all public pages -------------------- */
/* Readability: the original design leaned on 10–12px body text. */
.th-site main p.text-xs { font-size: .8125rem; line-height: 1.65; }
.th-site main p.text-\[11px\] { font-size: .78rem; line-height: 1.55; }
.th-site main p.text-sm { line-height: 1.7; }
/* Consistent soft cards & hover lift for the many existing white rounded panels */
.th-site main .rounded-2xl.bg-white.border,
.th-site main .bg-white.rounded-2xl.border { border-color: rgba(226, 232, 240, .9); }
.th-site main a.rounded-2xl.bg-white, .th-site main a.bg-white.rounded-2xl,
.th-site main a.rounded-xl.bg-white, .th-site main a.bg-white.rounded-xl {
    transition: transform .45s var(--th-ease), box-shadow .45s var(--th-ease), border-color .3s;
}
.th-site main a.rounded-2xl.bg-white:hover, .th-site main a.bg-white.rounded-2xl:hover,
.th-site main a.rounded-xl.bg-white:hover, .th-site main a.bg-white.rounded-xl:hover { transform: translateY(-4px); box-shadow: var(--th-shadow-md); }
/* Images inside cards zoom gently on hover */
.th-site main .group:hover img.object-cover { transform: scale(1.05); }
.th-site main img.object-cover { transition: transform .8s var(--th-ease); }
/* Forms: modern fields */
.th-site main input[type="text"], .th-site main input[type="email"], .th-site main input[type="tel"],
.th-site main input[type="number"], .th-site main input[type="date"], .th-site main input[type="url"],
.th-site main select, .th-site main textarea {
    border-radius: 12px; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.th-site input:focus, .th-site select:focus, .th-site textarea:focus {
    outline: none; border-color: var(--th-primary) !important; box-shadow: 0 0 0 4px rgba(170, 83, 140, .15) !important;
}
.th-site main input[type="checkbox"], .th-site main input[type="radio"] { accent-color: var(--th-primary); }
/* Modals (fee / register): rounder, softer */
.th-site [x-show="showFeeModal"] > div, .th-site [x-show="showRegisterModal"] > div { border-radius: 24px !important; box-shadow: 0 50px 100px -30px rgba(15, 23, 42, .55) !important; }

/* 10b. Inner-page hero (shared by every page except home) ------------------- */
.th-page-hero {
    isolation: isolate;
    min-height: clamp(300px, 46vh, 480px) !important;
    padding-top: clamp(3.5rem, 7vw, 6rem) !important;
    padding-bottom: clamp(4rem, 8vw, 6.5rem) !important;
    border-bottom: 0 !important;
    background: var(--th-navy-900);
}
.th-page-hero__img { filter: saturate(1.06) contrast(1.03) brightness(1.04); }
.th-page-hero__scrim {
    background:
        radial-gradient(640px 340px at 92% 108%, rgba(174, 210, 84, .16), transparent 60%),
        radial-gradient(840px 460px at 100% -10%, rgba(170, 83, 140, .24), transparent 60%),
        linear-gradient(100deg, rgba(7, 26, 51, .86) 0%, rgba(7, 26, 51, .68) 38%, rgba(7, 26, 51, .24) 68%, rgba(7, 26, 51, .10) 100%);
}
/* fine grid texture + brand rule along the bottom edge */
.th-page-hero::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 65%); mask-image: linear-gradient(90deg, #000 0%, transparent 65%);
}
.th-page-hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 2;
    background: linear-gradient(90deg, var(--th-primary) 0%, var(--th-primary) 40%, var(--th-accent) 100%);
}
.th-page-hero h1 {
    font-weight: 800 !important; letter-spacing: -.035em !important; line-height: 1.06 !important;
    text-wrap: balance; filter: none !important; text-shadow: 0 2px 24px rgba(7, 26, 51, .35);
    max-width: 22ch;
}
.th-page-hero .text-center h1, .th-page-hero h1.mx-auto { margin-inline: auto; }
.th-page-hero p { text-shadow: none; filter: none !important; color: rgba(226, 232, 240, .92); line-height: 1.7; }
/* lime "eyebrow" pills inside page heroes → refined label */
.th-page-hero span.bg-\[\#AED254\], .th-page-hero span.bg-\[\#aed254\] {
    letter-spacing: .1em; font-weight: 700 !important; font-size: .7rem !important;
    padding: .4rem .85rem !important; box-shadow: 0 8px 24px -10px rgba(174, 210, 84, .7) !important;
}
/* breadcrumb → glass pill */
.th-page-hero__crumbs, .th-page-hero .text-purple-300.space-x-2:first-child {
    display: flex !important; flex-wrap: wrap; gap: .1rem .15rem; width: fit-content; max-width: 100%;
    padding: .4rem .9rem; border-radius: 999px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    color: rgba(226, 232, 240, .85) !important; font-size: .75rem !important;
}
.th-page-hero__crumbs a, .th-page-hero .text-purple-300.space-x-2:first-child a { color: rgba(226, 232, 240, .85); text-decoration: none !important; transition: color .2s; }
.th-page-hero__crumbs a:hover, .th-page-hero .text-purple-300.space-x-2:first-child a:hover { color: var(--th-accent); }
.th-page-hero__crumbs > span:not(:last-child), .th-page-hero .text-purple-300.space-x-2:first-child > span:not(:last-child) { opacity: .45; }
.th-page-hero .text-center .th-page-hero__crumbs, .th-page-hero .justify-center.th-page-hero__crumbs { margin-inline: auto; }
/* entrance: stagger the hero copy on load */
.th-js .th-page-hero > .relative.z-10 > *,
.th-js .th-page-hero > .relative.z-10 > .grid > div > *,
.th-js .th-page-hero > .relative.z-10 > .flex > div > * { animation: th-up .85s var(--th-ease) both; }
.th-js .th-page-hero > .relative.z-10 > :nth-child(2), .th-js .th-page-hero .grid > div > :nth-child(1) { animation-delay: 80ms; }
.th-js .th-page-hero > .relative.z-10 > :nth-child(3), .th-js .th-page-hero .grid > div > :nth-child(2) { animation-delay: 160ms; }
.th-js .th-page-hero > .relative.z-10 > :nth-child(4), .th-js .th-page-hero .grid > div > :nth-child(3) { animation-delay: 240ms; }
.th-js .th-page-hero > .relative.z-10 > :nth-child(n+5), .th-js .th-page-hero .grid > div > :nth-child(n+4) { animation-delay: 320ms; }
/* glass panels that some heroes place on the right */
.th-page-hero .backdrop-blur-md, .th-page-hero .backdrop-blur-sm, .th-page-hero .backdrop-blur-xl {
    border-radius: var(--th-r-lg) !important; border-color: rgba(255,255,255,.16) !important;
    box-shadow: 0 30px 60px -30px rgba(0,0,0,.6) !important;
}
@media (max-width: 640px) {
    .th-page-hero { min-height: 0 !important; padding-top: 2.75rem !important; padding-bottom: 3.25rem !important; }
    .th-page-hero h1 { font-size: clamp(1.85rem, 8vw, 2.4rem) !important; }
    .th-page-hero__scrim { background: linear-gradient(180deg, rgba(7, 26, 51, .70) 0%, rgba(7, 26, 51, .88) 100%); }
}

/* 10c. Inner-page sections -------------------------------------------------- */
/* Section titles in existing page markup pick up the heading scale */
.th-site main section h2.font-black, .th-site main section h2.font-extrabold, .th-site main section h2.font-bold {
    letter-spacing: -.03em; line-height: 1.15; text-wrap: balance; color: var(--th-ink);
}
.th-site main section.bg-slate-900 h2, .th-site main section.bg-\[\#0b2545\] h2, .th-site main section.text-white h2 { color: inherit; }
/* Keep a heading's own colour class, and keep headings light inside dark panels
   (e.g. About "Learn • Apply • Transform", Sector "How We Partner With ...") */
.th-site main section h2.text-white { color: #fff; }
.th-site main section h2.text-\[\#aa538c\], .th-site main section h2.text-\[\#AA538C\] { color: #aa538c; }
.th-site main section .text-white h2:not([class*="text-slate"]):not([class*="text-gray"]):not([class*="text-["]) { color: inherit; }
/* Rounder, softer generic panels */
.th-site main section .rounded-xl.border.bg-white, .th-site main section .bg-white.border.rounded-xl,
.th-site main section .rounded-2xl.shadow-sm, .th-site main section .rounded-xl.shadow-sm {
    border-radius: var(--th-r-lg); box-shadow: var(--th-shadow-sm);
}
/* Primary-coloured buttons/links that are actual buttons in existing markup */
.th-site main a.bg-\[\#aa538c\], .th-site main button.bg-\[\#aa538c\],
.th-site main a.bg-\[\#AA538C\], .th-site main button.bg-\[\#AA538C\] {
    transition: transform .3s var(--th-ease), box-shadow .3s var(--th-ease), background-color .2s !important;
}
.th-site main a.bg-\[\#aa538c\]:hover, .th-site main button.bg-\[\#aa538c\]:hover,
.th-site main a.bg-\[\#AA538C\]:hover, .th-site main button.bg-\[\#AA538C\]:hover {
    transform: translateY(-2px); box-shadow: var(--th-shadow-brand);
}
/* Tables (calendar, verification results) */
.th-site main table { border-collapse: separate; border-spacing: 0; }
.th-site main thead th { font-family: var(--th-font-head); letter-spacing: .02em; }
.th-site main tbody tr { transition: background-color .2s; }
.th-site main tbody tr:hover { background-color: var(--th-primary-50); }
/* Long-form copy (articles, legal pages) */
.th-site main .prose, .th-prose { font-size: 1.02rem; line-height: 1.8; color: var(--th-body); }
.th-site main .prose h2, .th-prose h2 { margin-top: 2.2em; }
.th-site main .prose a, .th-prose a { color: var(--th-primary); text-underline-offset: 3px; }

/* 11. Footer ------------------------------------------------------------------ */
.th-footer { margin-top: clamp(3rem, 6vw, 5rem); }
.th-page-home .th-footer { margin-top: 0; }
.th-footer a { transition: color .2s, transform .3s var(--th-ease); }
.th-footer ul a:hover { color: #fff; }

/* 12. Reduced motion & print ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .th-js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
    .th-hero [data-anim] { opacity: 1 !important; animation: none !important; }
    .th-page-hero * { animation: none !important; }
    .th-hero__slide.is-entering, .th-hero__slide.is-leaving, .th-hero__slide.is-entering .th-hero__media { animation: th-fade .45s ease both !important; }
    .th-hero__slide.is-leaving { animation-name: th-fade-out !important; }
    .th-hero__slide.is-active .th-hero__img { animation: none !important; transform: none; }
    .th-marquee__track, .animate-marquee-track, .th-cta__glow, .th-dot--pulse { animation: none !important; }
    .th-btn:hover, .th-card--link:hover, .th-feature:hover { transform: none; }
}
@keyframes th-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes th-fade-out { from { opacity: 1; } to { opacity: 0; } }
@media print {
    .th-header, .th-hero__controls, .th-utility, .th-cta { display: none !important; }
    .th-js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* 13. Dark / light mode switch ----------------------------------------------- */
.th-theme-toggle {
    display: inline-flex; align-items: center; gap: .45rem; flex-shrink: 0; cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: #fff;
    border-radius: 999px; padding: .42rem .8rem; font: 600 .75rem/1 var(--th-font-body);
    transition: background-color .25s, border-color .25s, transform .3s var(--th-ease);
}
.th-theme-toggle:hover { background: rgba(255, 255, 255, .14); border-color: var(--th-accent); }
.th-theme-toggle:active { transform: scale(.95); }
.th-theme-toggle--nav { margin-left: auto; align-self: center; padding: .45rem; }
.th-theme-toggle--nav .th-theme-toggle__label { display: none; }
.th-mainnav > a, .th-mainnav > div > button, .th-mainnav > div > a { white-space: nowrap; }
@media (min-width: 1024px) { .th-theme-toggle--compact { display: none !important; } }
.th-theme-toggle--compact { padding: .5rem; color: var(--th-ink); border-color: var(--th-line); background: #fff; }
.th-theme-toggle--compact .th-theme-toggle__label { display: none; }
.th-theme-toggle svg { transition: transform .25s ease; }
.th-theme-toggle { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.th-theme-toggle__sun { display: none; }
.th-dark .th-theme-toggle__sun { display: block; color: var(--th-accent); }
.th-dark .th-theme-toggle__moon { display: none; }
.th-theme-toggle:hover svg { transform: rotate(-20deg); }


/* Dark palette: remaps the light surfaces/text used by the Tailwind markup and the th-* components */
html.th-dark {
    color-scheme: dark;
    --th-ink: #f1f5f9;
    --th-body: #cbd5e1;
    --th-muted: #94a3b8;
    --th-line: #1f2a3d;
    --th-surface: #111a2b;
    --th-surface-2: #0b1220;
    --th-primary-50: rgba(170, 83, 140, .14);
    --th-primary-100: rgba(170, 83, 140, .22);
    --th-accent-ink: #c5e27a;
    --th-shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, .5);
    --th-shadow-md: 0 16px 32px -14px rgba(0, 0, 0, .7);
    --th-shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, .8);
}
.th-dark body.th-site { background: var(--th-surface-2) !important; color: var(--th-body); }

/* surfaces */
.th-dark .th-site .bg-white, .th-dark .th-site .bg-white\/90, .th-dark .th-site .bg-white\/95, .th-dark .th-site .bg-white\/80,
.th-dark .th-section--white, .th-dark .th-stats, .th-dark .th-categories, .th-dark .th-clients,
.th-dark .th-faq__item, .th-dark .th-diploma-benefits > div, .th-dark .th-card, .th-dark .th-feature, .th-dark .th-service,
.th-dark .th-testimonial, .th-dark .th-cat-card, .th-dark .th-dropdown { background-color: var(--th-surface) !important; }
.th-dark .th-site .bg-slate-50, .th-dark .th-site .bg-gray-50, .th-dark .th-site .bg-slate-100, .th-dark .th-site .bg-gray-100,
.th-dark .th-site .bg-slate-50\/50, .th-dark .th-site .bg-slate-50\/80, .th-dark .th-site .bg-purple-50, .th-dark .th-site .bg-\[\#f8fafc\],
.th-dark .th-section--muted { background-color: var(--th-surface-2) !important; }
.th-dark .th-site .bg-slate-200, .th-dark .th-site .bg-gray-200 { background-color: #1e293b !important; }
.th-dark .th-site .from-white, .th-dark .th-site .from-slate-50 { --tw-gradient-from: var(--th-surface) !important; }
.th-dark .th-site .to-white, .th-dark .th-site .to-slate-50 { --tw-gradient-to: var(--th-surface-2) !important; }
.th-dark .th-site .via-white { --tw-gradient-via: var(--th-surface) !important; }

/* text */
.th-dark .th-site .text-slate-900, .th-dark .th-site .text-gray-900, .th-dark .th-site .text-slate-800, .th-dark .th-site .text-gray-800,
.th-dark .th-site .text-black, .th-dark .th-site .text-\[\#0b2545\], .th-dark .th-site .text-\[\#0B2545\] { color: #f1f5f9 !important; }
.th-dark .th-site .text-slate-700, .th-dark .th-site .text-gray-700, .th-dark .th-site .text-slate-600, .th-dark .th-site .text-gray-600 { color: #cbd5e1 !important; }
.th-dark .th-site .text-slate-500, .th-dark .th-site .text-gray-500, .th-dark .th-site .text-slate-400 { color: #94a3b8 !important; }
.th-dark .th-site .text-\[\#aa538c\], .th-dark .th-site .text-\[\#AA538C\], .th-dark .th-site .text-maroon { color: #d98bbd !important; }
.th-dark .th-site .text-lime-brand, .th-dark .th-site .text-\[\#638012\] { color: #c5e27a !important; }
.th-dark .th-site h1, .th-dark .th-site h2, .th-dark .th-site h3, .th-dark .th-site h4 { color: inherit; }
.th-dark .th-eyebrow { color: #d98bbd; }
/* keep text on brand-coloured / dark panels as designed */
.th-dark .th-site .bg-\[\#aa538c\] .text-white, .th-dark .th-site .text-white { color: #fff !important; }
.th-dark .th-site .bg-\[\#AED254\], .th-dark .th-site .bg-\[\#aed254\], .th-dark .th-site .bg-lime-brand { color: #1a2e05 !important; }
.th-dark .th-site .bg-\[\#AED254\] *, .th-dark .th-site .bg-\[\#aed254\] *, .th-dark .th-btn--lime { color: #1a2e05 !important; }

/* borders & dividers */
.th-dark .th-site .border-slate-100, .th-dark .th-site .border-slate-200, .th-dark .th-site .border-slate-300,
.th-dark .th-site .border-gray-100, .th-dark .th-site .border-gray-200, .th-dark .th-site .border-gray-300,
.th-dark .th-site .border-purple-100, .th-dark .th-site .divide-slate-100 > * + *, .th-dark .th-site .divide-slate-200 > * + * { border-color: var(--th-line) !important; }
.th-dark .th-site main .rounded-2xl.bg-white.border, .th-dark .th-site main .bg-white.rounded-2xl.border { border-color: var(--th-line); }

/* header */
.th-dark .th-header { background-color: #0d1526 !important; border-color: var(--th-line) !important; }
.th-dark .th-header__search { background: #111a2b !important; border-color: var(--th-line) !important; color: #e2e8f0; }
.th-dark .th-header__social, .th-dark .th-header__social a, .th-dark .th-header__burger { color: #e2e8f0 !important; }
.th-dark .th-header__burger:hover { background: rgba(255,255,255,.08) !important; }
.th-dark .th-header__logo { filter: drop-shadow(0 0 1px rgba(255,255,255,.9)) drop-shadow(0 0 10px rgba(255,255,255,.18)); }
.th-dark .th-header__nav { background-color: #071a33 !important; }
.th-dark .th-theme-toggle--compact { background: #111a2b; color: #e2e8f0; border-color: var(--th-line); }
.th-dark .th-mobile-nav { background: #0d1526 !important; }
.th-dark .th-dropdown a:hover, .th-dark .th-mobile-nav a:hover { background-color: rgba(255,255,255,.05) !important; }

/* forms */
.th-dark .th-site input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
.th-dark .th-site select, .th-dark .th-site textarea { background-color: #0b1220 !important; color: #e2e8f0 !important; border-color: #2a3650 !important; }
.th-dark .th-site ::placeholder { color: #64748b !important; }

/* homepage pieces */
.th-dark .th-hero__panel, .th-dark .th-hero__intakes { background: rgba(17, 26, 43, .94) !important; color: var(--th-ink); }
.th-dark .th-accred__logo, .th-dark .th-cat-card img, .th-dark .th-clients img { background-color: #fff; border-radius: 10px; }
.th-dark .th-clients img { padding: .35rem .6rem; }
.th-dark .th-site main tbody tr:hover { background-color: rgba(170, 83, 140, .1); }
.th-dark .th-site .shadow-sm, .th-dark .th-site .shadow-xs, .th-dark .th-site .shadow-md { --tw-shadow-color: rgba(0,0,0,.5); }
/* logos and certificate images on white tiles stay readable */
.th-dark .th-site main img[src*="accreditations/"], .th-dark .th-site main img[src*="clients/"] { background-color: #fff; border-radius: 8px; }

/* Laptop widths: keep the full menu and the theme switch on one line */
@media (min-width: 1024px) and (max-width: 1279px) {
    .th-mainnav > a, .th-mainnav > div > button, .th-mainnav > div > a { padding-inline: .6rem !important; font-size: .76rem; }
    .th-mainnav > a > svg:first-child, .th-mainnav > div > button > svg:first-child, .th-mainnav > div > a > svg:first-child { display: none; }
    .th-mainnav > a::after, .th-mainnav > div > button::after, .th-mainnav > div > a::after { left: .5rem; right: .5rem; }
}

/* 14. Footer (enterprise layout) --------------------------------------------- */
.th-foot {
    position: relative; overflow: hidden; color: #94a3b8; font-size: .875rem;
    padding-top: clamp(3rem, 6vw, 4.5rem);
    background:
        radial-gradient(900px 420px at 100% 0%, rgba(170, 83, 140, .22), transparent 60%),
        radial-gradient(700px 380px at 0% 100%, rgba(174, 210, 84, .08), transparent 60%),
        #070f1f;
    border-top: 1px solid rgba(255, 255, 255, .06);
}
.th-foot::before { /* fine brand rule along the top */
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--th-primary), var(--th-primary) 40%, var(--th-accent));
}
.th-foot h3 { font: 700 .78rem/1.2 var(--th-font-head); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 0 0 1.15rem; }

/* newsletter band */
.th-foot__news {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: center;
    padding: clamp(1.5rem, 3.5vw, 2.5rem); border-radius: var(--th-r-xl);
    background: linear-gradient(120deg, rgba(170, 83, 140, .28), rgba(11, 37, 69, .65) 60%), rgba(255, 255, 255, .02);
    border: 1px solid rgba(255, 255, 255, .09);
    box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .8);
}
.th-foot__kicker { display: inline-flex; align-items: center; gap: .5rem; color: var(--th-accent); font: 700 .72rem/1 var(--th-font-body); letter-spacing: .14em; text-transform: uppercase; }
.th-foot__kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.th-foot__news-title { margin: .7rem 0 .5rem; font: 800 clamp(1.3rem, 1rem + 1vw, 1.75rem)/1.2 var(--th-font-head); letter-spacing: -.025em; color: #fff; text-transform: none; }
.th-foot__news p { margin: 0; color: #cbd5e1; line-height: 1.65; font-size: .9rem; }
.th-foot__news-field {
    display: flex; align-items: center; gap: .6rem; padding: .4rem .4rem .4rem 1rem; border-radius: 999px;
    background: rgba(255, 255, 255, .96); color: #64748b; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
    transition: box-shadow .25s;
}
.th-foot__news-field:focus-within { box-shadow: 0 0 0 4px rgba(174, 210, 84, .35), 0 10px 30px -12px rgba(0, 0, 0, .6); }
.th-foot__news-field input[type="email"] { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: .65rem 0; font-size: .92rem; color: #0f172a !important; outline: none; }
.th-foot__news-field .th-btn { border-radius: 999px; white-space: nowrap; }
.th-foot__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.th-foot__news-msg { margin-top: .7rem !important; font-size: .85rem !important; font-weight: 600; }
.th-foot__news-msg.is-ok { color: var(--th-accent) !important; }
.th-foot__news-msg.is-error { color: #fda4af !important; }

/* columns */
.th-foot__grid {
    display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.25fr);
    gap: 2.5rem 2rem; padding: clamp(2.75rem, 5vw, 4rem) 0 clamp(2.25rem, 4vw, 3rem);
}
.th-foot__brand p { margin: 1.1rem 0 0; line-height: 1.7; max-width: 26rem; }
.th-foot__social { display: flex; gap: .55rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.th-foot__social a {
    width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: #e2e8f0;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
    transition: transform .35s var(--th-ease), background-color .25s, color .25s, border-color .25s;
}
.th-foot__social a:hover { transform: translateY(-3px); background: var(--th-primary); border-color: var(--th-primary); color: #fff; }

.th-foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.th-foot__col a, .th-foot__col button {
    position: relative; display: inline-flex; align-items: center; gap: .4rem; color: #94a3b8; background: none; border: 0; padding: 0;
    font: inherit; cursor: pointer; text-align: left; transition: color .2s, transform .3s var(--th-ease);
}
.th-foot__col ul a::after, .th-foot__col ul button::after {
    content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 100%; background: currentColor;
    transform: scaleX(0); transform-origin: left; transition: transform .35s var(--th-ease);
}
.th-foot__col ul a:hover, .th-foot__col ul button:hover { color: #fff; transform: translateX(3px); }
.th-foot__col ul a:hover::after, .th-foot__col ul button:hover::after { transform: scaleX(1); }
.th-foot__col .is-highlight { color: var(--th-accent); font-weight: 600; }
.th-foot__col .is-more { color: var(--th-accent); font-weight: 600; }
.th-foot__col .is-more svg { transition: transform .3s var(--th-ease); }
.th-foot__col .is-more:hover svg { transform: translateX(3px); }

.th-foot__contact-line { display: flex !important; align-items: center; gap: .6rem; color: #e2e8f0 !important; font-weight: 500; margin-bottom: .75rem; }
.th-foot__contact-line svg { color: var(--th-accent); flex-shrink: 0; }
a.th-foot__contact-line:hover { color: var(--th-accent) !important; }
.th-foot__hubs { margin: 1rem 0 1.35rem !important; padding: .35rem 0 !important; gap: 0 !important; border-top: 1px solid rgba(255,255,255,.07); }
.th-foot__hubs li { display: flex; justify-content: space-between; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: .8rem; }
.th-foot__hub-city { color: #e2e8f0; font-weight: 600; white-space: nowrap; }
.th-foot__hubs a { color: #94a3b8; white-space: nowrap; }
.th-foot__hubs a:hover { color: #fff; }
.th-foot__hubs a::after { display: none; }
.th-foot__contact-btn { color: #fff !important; border-color: rgba(255,255,255,.25) !important; }
.th-foot__contact-btn:hover { border-color: var(--th-accent) !important; color: var(--th-accent) !important; }

/* legal bar */
.th-foot__bar { border-top: 1px solid rgba(255,255,255,.07); background: rgba(0,0,0,.25); }
.th-foot__bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-block: 1.25rem; font-size: .8rem; }
.th-foot__bar p { margin: 0; color: #64748b; }
.th-foot__bar ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0 auto 0 0; padding: 0; list-style: none; }
.th-foot__bar ul a { color: #94a3b8; }
.th-foot__bar ul a:hover { color: #fff; }
.th-foot__top { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); transition: transform .35s var(--th-ease), background-color .25s; }
.th-foot__top svg { transform: rotate(-45deg); }
.th-foot__top:hover { background: var(--th-primary); transform: translateY(-3px); }

@media (max-width: 1100px) {
    .th-foot__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .th-foot__brand { grid-column: 1 / -1; }
    .th-foot__brand p { max-width: 40rem; }
    .th-foot__contact { grid-column: span 3; }
    .th-foot__hubs { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); column-gap: 1.5rem !important; }
}
@media (max-width: 760px) {
    .th-foot__news { grid-template-columns: 1fr; }
    .th-foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 1.5rem; }
    .th-foot__contact { grid-column: 1 / -1; }
    .th-foot__bar-inner { flex-direction: column; align-items: flex-start; }
    .th-foot__bar ul { margin: 0; }
    .th-foot__top { position: absolute; right: var(--th-gutter); margin-top: -.25rem; }
    .th-foot__bar-inner { position: relative; }
}
@media (max-width: 420px) {
    .th-foot__news-field { flex-wrap: wrap; border-radius: 18px; padding: .6rem; }
    .th-foot__news-field input[type="email"] { flex-basis: calc(100% - 2rem); }
    .th-foot__news-field .th-btn { width: 100%; justify-content: center; }
}
/* the footer is already dark: keep it identical in dark mode */
.th-dark .th-foot { background-color: #050b17; }
.th-foot .th-foot__news-title { font: 800 clamp(1.3rem, 1rem + 1vw, 1.75rem)/1.2 var(--th-font-head); letter-spacing: -.025em; text-transform: none; color: #fff; margin: .7rem 0 .5rem; }
.th-site .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.th-foot__contact-btn { border: 1px solid rgba(255,255,255,.25); padding: .7rem 1.1rem; border-radius: 12px; }
@media (max-width: 1023px) { .th-foot__bar { padding-bottom: 64px; } } /* room for the fixed WhatsApp / fees bar */
@media (max-width: 760px) { .th-foot__bar p { padding-right: 3.5rem; } }
/* Universal internal banner: keep the whole scene in view, only a slow, subtle drift */
.th-page-hero .th-page-hero__img { animation: th-page-drift 28s ease-in-out infinite alternate !important; transform-origin: 60% 55%; }
@keyframes th-page-drift { from { transform: scale(1); } to { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .th-page-hero .th-page-hero__img { animation: none !important; } }
/* footer newsletter keeps its light pill and white headline in dark mode */
.th-dark .th-foot .th-foot__news-field input, .th-dark #th-news-email { background: transparent !important; color: #0f172a !important; border: 0 !important; box-shadow: none !important; }
.th-dark .th-foot .th-foot__news-title { color: #fff !important; }
/* Compact hero (about 600px tall on a laptop): tighter type and spacing so every slide fits */
@media (min-width: 1101px) {
    .th-hero__title { font-size: clamp(2.2rem, 1rem + 2.6vw, 3.4rem); }
    .th-hero__title--xl { font-size: clamp(2.4rem, 1rem + 3vw, 3.8rem); }
    .th-hero__text { margin-top: .9rem; font-size: 1.02rem; line-height: 1.6; }
    .th-hero__kicker { margin-top: .8rem; }
    .th-hero__actions { margin-top: 1.4rem; }
    .th-hero__pillars { margin-top: 1.3rem; }
    .th-hero__pillars li { padding-block: .6rem; }
    .th-hero__controls { padding-bottom: 1.25rem; }
    .th-hero__intakes-head { padding-block: .7rem; }
}
/* Compact spotlight panel so the hero fits one screen below the menu bar */
@media (min-width: 1101px) {
    .th-hero__panel { max-width: 34rem; padding: clamp(1.25rem, 1.8vw, 1.75rem); }
    .th-hero__panel .th-hero__title--md { font-size: clamp(1.9rem, 1rem + 1.9vw, 2.6rem); }
    .th-hero__panel .th-hero__text { margin-top: .9rem; font-size: 1.02rem; line-height: 1.6; }
    .th-hero__panel .th-hero__chips { margin-top: 1.1rem; }
    .th-hero__panel .th-hero__actions { margin-top: 1.4rem; flex-wrap: nowrap; }
    .th-hero__panel .th-btn--lg { padding-inline: 1.3rem; }
}

/* ==========================================================================
   15. Round I: cohesive hero, faster left-entry transitions, button motion
   ========================================================================== */
:root { --th-ease-premium: cubic-bezier(.65, .05, .25, 1); }

/* 15a. Slide hand-off: every new slide slides in from the LEFT with a soft fade
   (from the right when going back). 850ms, transform/opacity only. */
.th-hero__slide.is-entering { animation: th-in-left .85s var(--th-ease-premium) both; }
.th-hero__slide.is-entering .th-hero__media { animation: th-media-in-left .85s var(--th-ease-premium) both; }
.th-hero__slide.is-leaving { animation: th-out-right .85s var(--th-ease-premium) both; }
.th-hero.is-reverse .th-hero__slide.is-entering { animation-name: th-in-right; }
.th-hero.is-reverse .th-hero__slide.is-entering .th-hero__media { animation-name: th-media-in-right; }
.th-hero.is-reverse .th-hero__slide.is-leaving { animation-name: th-out-left; }
@keyframes th-in-left { from { transform: translate3d(-100%, 0, 0); opacity: .35; } to { transform: translate3d(0, 0, 0); opacity: 1; } }
@keyframes th-media-in-left { from { transform: translate3d(30%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes th-out-right { from { transform: translate3d(0, 0, 0); opacity: 1; } to { transform: translate3d(22%, 0, 0); opacity: .25; } }
@keyframes th-in-right { from { transform: translate3d(100%, 0, 0); opacity: .35; } to { transform: translate3d(0, 0, 0); opacity: 1; } }
@keyframes th-media-in-right { from { transform: translate3d(-30%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes th-out-left { from { transform: translate3d(0, 0, 0); opacity: 1; } to { transform: translate3d(-22%, 0, 0); opacity: .25; } }
.th-hero .th-hero__slide--spotlight.is-active .th-hero__panel { animation-name: th-up; animation-duration: .9s; }
.th-hero [data-anim] { animation-timing-function: var(--th-ease-premium) !important; }

/* 15b. One visual language for all three slides: same eyebrow, type scale,
   highlight colour, buttons, overlay family and glass card */
.th-hero__eyebrow { color: #f1e4f7; }
.th-hero__slide--split .th-hero__scrim,
.th-hero__slide--editorial .th-hero__scrim {
    background:
        linear-gradient(90deg, rgba(9, 12, 28, .88) 0%, rgba(9, 12, 28, .7) 38%, rgba(9, 12, 28, .32) 66%, rgba(9, 12, 28, .45) 100%),
        linear-gradient(0deg, rgba(9, 12, 28, .7) 0%, rgba(9, 12, 28, 0) 38%),
        radial-gradient(55% 60% at 0% 100%, rgba(170, 83, 140, .28), transparent 70%);
}
.th-hero__slide--spotlight .th-hero__scrim {
    background:
        linear-gradient(270deg, rgba(9, 12, 28, .86) 0%, rgba(9, 12, 28, .55) 40%, rgba(9, 12, 28, .12) 70%),
        linear-gradient(0deg, rgba(9, 12, 28, .7) 0%, rgba(9, 12, 28, 0) 38%),
        radial-gradient(55% 60% at 100% 100%, rgba(170, 83, 140, .24), transparent 70%);
}
/* Slide 3 now mirrors slide 1: copy left, glass card right, both vertically centred */
.th-hero__editorial { grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); align-items: center; }
.th-hero__editorial .th-hero__text { max-width: 36rem; }
.th-hero__intakes {
    color: #fff; border-radius: var(--th-r-xl); overflow: hidden;
    background: linear-gradient(150deg, rgba(20, 26, 52, .72), rgba(9, 12, 28, .66)) !important;
    border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .18);
    -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
}
.th-hero__intakes-head { background: transparent; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.th-hero__intakes li + li { border-top-color: rgba(255, 255, 255, .1); }
.th-hero__intakes li a:hover { background: rgba(255, 255, 255, .08); }
.th-hero__intake-date { background: rgba(170, 83, 140, .28); color: #f5d7ea; }
.th-hero__intake-date b { color: #fff; }
.th-hero__intake-title { color: #f1f5f9; }
.th-hero__intake-go { color: rgba(255, 255, 255, .6); }
.th-hero__intakes li a:hover .th-hero__intake-go { color: var(--th-accent); }
.th-dark .th-hero__intakes { color: #fff; }
.th-hero__panel { background: linear-gradient(150deg, rgba(20, 26, 52, .7), rgba(9, 12, 28, .6)); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .18); }
.th-dark .th-hero__panel { background: linear-gradient(150deg, rgba(20, 26, 52, .7), rgba(9, 12, 28, .6)) !important; color: #fff; }

/* 15c. Button micro-interactions (site-wide .th-btn) */
.th-btn { transition: transform .4s var(--th-ease-premium), box-shadow .4s var(--th-ease-premium), background-color .3s, color .3s, border-color .3s, filter .3s; }
.th-btn::before {                        /* light sweep on hover */
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .28) 48%, transparent 66%);
    transform: translateX(-130%); transition: transform .8s var(--th-ease-premium);
}
.th-btn:hover::before, .th-btn:focus-visible::before { transform: translateX(130%); }
.th-btn:hover { transform: translateY(-2px) scale(1.015); }
.th-btn:hover .th-icon:first-child:not(:last-child) { transform: scale(1.12) rotate(-6deg); }
.th-btn:focus-visible { outline: 3px solid rgba(174, 210, 84, .7); outline-offset: 3px; }
.th-btn--primary:hover { box-shadow: 0 18px 38px -14px rgba(170, 83, 140, .7), 0 0 0 4px rgba(170, 83, 140, .14); }
.th-btn--lime:hover { box-shadow: 0 18px 38px -16px rgba(174, 210, 84, .75), 0 0 0 4px rgba(174, 210, 84, .16); }
.th-btn--outline:hover { box-shadow: 0 14px 30px -16px rgba(15, 23, 42, .35), 0 0 0 4px rgba(170, 83, 140, .08); }

/* Glass CTA (used selectively: hero + promotional bands) */
.th-btn--glass {
    --btn-fg: #fff; --btn-bd: transparent;
    background: linear-gradient(135deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .06));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 30px -14px rgba(0, 0, 0, .55);
    -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.th-btn--glass::after {                   /* hairline gradient border that lights up on hover */
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .12) 50%, rgba(255, 255, 255, .3));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    transition: opacity .4s;
}
.th-btn--glass:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .1));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 18px 38px -14px rgba(0, 0, 0, .6), 0 0 26px -8px rgba(174, 210, 84, .5);
}
.th-btn--glass:hover::after { background: linear-gradient(135deg, var(--th-accent), rgba(255, 255, 255, .3) 50%, #d77bb7); }

/* Legacy (Tailwind-styled) buttons and button-like links on inner pages get the same motion */
.th-site main a[class*="rounded"][class*="bg-["],
.th-site main button[class*="rounded"][class*="bg-["],
.th-site main a[class*="rounded"][class*="border-"][class*="px-"],
.th-site main button[type="submit"] {
    transition: transform .4s var(--th-ease-premium), box-shadow .4s var(--th-ease-premium), background-color .3s, color .3s, border-color .3s, filter .3s;
}
.th-site main a[class*="rounded"][class*="bg-["]:hover,
.th-site main button[class*="rounded"][class*="bg-["]:hover,
.th-site main button[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(15, 23, 42, .45); filter: saturate(1.08); }
.th-site main a[class*="rounded"][class*="bg-["]:hover svg:last-child,
.th-site main button[class*="rounded"][class*="bg-["]:hover svg:last-child { transform: translateX(3px); transition: transform .35s var(--th-ease-premium); }
.th-site main a[class*="rounded"][class*="bg-["]:active,
.th-site main button[class*="rounded"]:active { transform: translateY(0) scale(.98); }
@media (prefers-reduced-motion: reduce) {
    .th-btn::before { display: none; }
    .th-btn:hover, .th-site main a[class*="rounded"]:hover, .th-site main button:hover { transform: none !important; }
}
/* Same vertical rhythm and glass card on every slide */
@media (min-width: 1101px) {
    .th-hero__slide, .th-hero__slide--editorial { justify-content: center; }
}
.th-hero__hubs {
    background: linear-gradient(150deg, rgba(20, 26, 52, .7), rgba(9, 12, 28, .6));
    border-color: rgba(255, 255, 255, .16);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .18);
}

/* ==========================================================================
   16. Course details page (.th-cd-*), resources/views/public/courses/show.blade.php
   ========================================================================== */
.th-cd-hero { padding-block: clamp(2.5rem, 5vw, 4rem); min-height: 0; }
.th-cd-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1.25rem; font-size: .8rem; font-weight: 500; color: #e9d5ff; }
.th-cd-crumbs a { color: inherit; text-decoration: none; }
.th-cd-crumbs a:hover { color: #fff; text-decoration: underline; }
.th-cd-crumbs [aria-current] { color: #fff; font-weight: 700; }
.th-cd-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.th-cd-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.th-cd-tag { display: inline-flex; align-items: center; padding: .35rem .75rem; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: #e2e8f0; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.th-cd-tag--brand { background: var(--th-primary); border-color: transparent; color: #fff; text-transform: uppercase; letter-spacing: .08em; }
.th-cd-tag--mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #f5d7ea; }
.th-cd-hero__title { margin: 0; font: 800 clamp(1.9rem, 1.1rem + 2.6vw, 3.1rem)/1.1 var(--th-font-head); letter-spacing: -.03em; color: #fff; text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 0, 0, .3); }
.th-cd-hero__lead { margin: 1rem 0 0; max-width: 44rem; font-size: clamp(.98rem, .9rem + .3vw, 1.1rem); line-height: 1.65; color: rgba(241, 245, 249, .9); }
.th-cd-hero__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1.25rem 0 0; padding: 1rem 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .88rem; font-weight: 600; color: #e2e8f0; }
.th-cd-hero__meta li { display: inline-flex; align-items: center; gap: .45rem; }
.th-cd-hero__meta .th-icon { color: var(--th-accent); }
.th-cd-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.th-cd-hero__card {
    border-radius: var(--th-r-xl); overflow: hidden; color: #fff;
    background: linear-gradient(150deg, rgba(20, 26, 52, .72), rgba(9, 12, 28, .62));
    border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .16);
    -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
}
.th-cd-hero__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.th-cd-hero__media > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--th-ease-premium); }
.th-cd-hero__card:hover .th-cd-hero__media > img { transform: scale(1.04); }
.th-cd-hero__logo { position: absolute; left: .85rem; bottom: .85rem; display: grid; place-items: center; height: 40px; padding: .35rem .65rem; border-radius: 10px; background: rgba(255, 255, 255, .96); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5); }
.th-cd-hero__logo img { max-height: 26px; max-width: 90px; object-fit: contain; }
.th-cd-hero__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: rgba(255, 255, 255, .1); }
.th-cd-hero__facts div { padding: .85rem 1.1rem; background: rgba(9, 12, 28, .55); }
.th-cd-hero__facts dt { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--th-accent); }
.th-cd-hero__facts dd { margin: .25rem 0 0; font-size: .88rem; font-weight: 600; line-height: 1.35; color: #fff; }
.th-cd-hero__link { display: flex; align-items: center; justify-content: space-between; padding: .95rem 1.1rem; font-size: .88rem; font-weight: 700; color: #fff; text-decoration: none; border-top: 1px solid rgba(255, 255, 255, .1); transition: background-color .25s, color .25s; }
.th-cd-hero__link:hover { background: rgba(255, 255, 255, .06); color: var(--th-accent); }
.th-cd-hero__link .th-icon { transition: transform .35s var(--th-ease-premium); }
.th-cd-hero__link:hover .th-icon { transform: translateX(4px); }

/* in-page tabs */
.th-cd-tabs { position: sticky; top: var(--th-header-h, 0px); z-index: 30; background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--th-line); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); }
.th-cd-tabs ul { display: flex; gap: .25rem; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.th-cd-tabs ul::-webkit-scrollbar { display: none; }
.th-cd-tabs a { position: relative; display: block; padding: 1rem .9rem; font-size: .88rem; font-weight: 600; color: var(--th-muted); text-decoration: none; white-space: nowrap; transition: color .2s; }
.th-cd-tabs a::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--th-primary); transform: scaleX(0); transition: transform .35s var(--th-ease-premium); }
.th-cd-tabs a:hover, .th-cd-tabs a.is-active { color: var(--th-ink); }
.th-cd-tabs a:hover::after, .th-cd-tabs a.is-active::after { transform: scaleX(1); }

/* layout */
.th-cd { padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(4rem, 7vw, 6rem); background: var(--th-surface-2); }
.th-cd__layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.th-cd__main { display: grid; gap: 1.5rem; min-width: 0; }
.th-cd-side-sticky { position: sticky; top: calc(var(--th-header-h, 0px) + 72px); display: grid; gap: 1.25rem; }
.th-cd-card { scroll-margin-top: calc(var(--th-header-h, 0px) + 80px); padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--th-r-lg); background: #fff; border: 1px solid var(--th-line); box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.th-cd-card__head { margin-bottom: 1.5rem; }
.th-cd-card__head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.th-cd-card__kicker { display: inline-block; margin-bottom: .4rem; font: 800 .75rem/1 var(--th-font-head); letter-spacing: .12em; color: var(--th-primary); }
.th-cd-card__head h2 { margin: 0; font: 800 clamp(1.35rem, 1.1rem + .9vw, 1.75rem)/1.2 var(--th-font-head); letter-spacing: -.02em; color: var(--th-ink); text-transform: none; }
.th-cd-card__head p { margin: .4rem 0 0; font-size: .95rem; line-height: 1.55; color: var(--th-muted); }

/* at a glance */
.th-cd-glance { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.th-cd-glance__item { display: flex; align-items: flex-start; gap: .75rem; padding: 1rem; border-radius: var(--th-r-md); background: #fff; border: 1px solid var(--th-line); transition: border-color .25s, box-shadow .35s var(--th-ease-premium), transform .35s var(--th-ease-premium); }
.th-cd-glance__item:hover { border-color: rgba(170, 83, 140, .35); box-shadow: var(--th-shadow-md); transform: translateY(-2px); }
.th-cd-glance__icon { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 11px; background: var(--th-primary-50); color: var(--th-primary); }
.th-cd-glance__item strong { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--th-ink); }
.th-cd-glance__item strong + span { display: block; margin-top: .2rem; font-size: .9rem; font-weight: 500; line-height: 1.4; color: #334155; }

/* overview typography: left-aligned, normal letter spacing, comfortable line height */
.th-cd-prose { max-width: 70ch; }
.th-cd-prose p { margin: 0 0 1.05em; font-size: 1rem; line-height: 1.7; letter-spacing: normal; word-spacing: normal; text-align: left; color: #334155; hyphens: none; }
.th-cd-prose p:last-child { margin-bottom: 0; }
.th-cd-prose strong { font-weight: 700; color: var(--th-ink); }
.th-cd-benefit, .th-cd-cert { display: flex; gap: 1rem; align-items: flex-start; margin-top: 1.5rem; padding: 1.1rem 1.25rem; border-radius: var(--th-r-md); background: linear-gradient(120deg, var(--th-primary-50), #f8fafc); border: 1px solid rgba(170, 83, 140, .16); }
.th-cd-benefit__icon, .th-cd-cert__icon { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--th-primary); color: #fff; }
.th-cd-cert__icon { background: var(--th-navy); color: var(--th-accent); }
.th-cd-benefit > div > strong, .th-cd-cert > div > strong { display: block; font: 800 1rem/1.3 var(--th-font-head); color: var(--th-ink); }
.th-cd-benefit p, .th-cd-cert p { margin: .3rem 0 0; font-size: .93rem; line-height: 1.6; color: #475569; }
.th-cd-benefit p strong, .th-cd-cert p strong { color: var(--th-ink); }
.th-cd-sub { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--th-line); }
.th-cd-sub h3, .th-cd-label { display: block; margin: 0 0 .85rem; font: 800 1rem/1.3 var(--th-font-head); color: var(--th-ink); text-transform: none; letter-spacing: -.01em; }
.th-cd-label { font-size: .85rem; margin-top: 1rem; }
.th-cd-checks { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.th-cd-checks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 1.25rem; }
.th-cd-checks li { display: flex; align-items: flex-start; gap: .6rem; font-size: .93rem; line-height: 1.5; color: #334155; }
.th-cd-checks .th-icon { flex-shrink: 0; margin-top: .2rem; color: #6b8f1c; }

/* modules */
.th-cd-modules { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.th-cd-module { border-radius: var(--th-r-md); border: 1px solid var(--th-line); background: #fff; transition: border-color .25s, box-shadow .35s var(--th-ease-premium); }
.th-cd-module:hover { border-color: rgba(170, 83, 140, .3); }
.th-cd-module.is-open { border-color: rgba(170, 83, 140, .4); box-shadow: 0 16px 36px -22px rgba(170, 83, 140, .45); }
.th-cd-module__head { display: flex; align-items: center; gap: 1rem; width: 100%; padding: 1rem 1.15rem; text-align: left; background: none; border: 0; cursor: pointer; color: inherit; }
.th-cd-module__num { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; font: 800 .95rem/1 var(--th-font-head); color: var(--th-primary); background: var(--th-primary-50); transition: background-color .3s, color .3s; }
.th-cd-module.is-open .th-cd-module__num { background: var(--th-primary); color: #fff; }
.th-cd-module__title { flex: 1; min-width: 0; }
.th-cd-module__title small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--th-muted); }
.th-cd-module__title strong { display: block; margin-top: .15rem; font: 700 1.02rem/1.35 var(--th-font-head); color: var(--th-ink); }
.th-cd-module__chev { flex-shrink: 0; color: var(--th-muted); transition: transform .35s var(--th-ease-premium), color .25s; }
.th-cd-module.is-open .th-cd-module__chev { transform: rotate(180deg); color: var(--th-primary); }
.th-cd-module__body { padding: 0 1.15rem 1.25rem calc(1.15rem + 44px + 1rem); }
.th-cd-module__body > p { margin: 0; font-size: .95rem; line-height: 1.65; color: #475569; }

/* objectives / audience / prerequisites */
.th-cd-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.th-cd-tiles li { display: flex; align-items: flex-start; gap: .75rem; padding: 1rem; border-radius: var(--th-r-md); background: #f8fafc; border: 1px solid var(--th-line); font-size: .93rem; line-height: 1.5; color: #1e293b; transition: border-color .25s, background-color .25s, transform .35s var(--th-ease-premium); }
.th-cd-tiles li:hover { border-color: rgba(170, 83, 140, .35); background: var(--th-primary-50); transform: translateY(-2px); }
.th-cd-tiles__icon { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; background: #fff; color: var(--th-primary); border: 1px solid rgba(170, 83, 140, .2); }
.th-cd-people { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.th-cd-people li { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 999px; font-size: .9rem; font-weight: 600; color: #1e293b; background: #f7fbe9; border: 1px solid rgba(174, 210, 84, .55); }
.th-cd-people .th-icon { color: #5b7d12; }
.th-cd-list { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.th-cd-list li { position: relative; padding-left: 1.4rem; font-size: .95rem; line-height: 1.6; color: #334155; }
.th-cd-list li::before { content: ""; position: absolute; left: .2rem; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--th-primary); }

/* sessions */
.th-cd-sessions { display: grid; gap: .75rem; }
.th-cd-session { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-radius: var(--th-r-md); border: 1px solid var(--th-line); background: #fff; transition: border-color .25s, box-shadow .35s var(--th-ease-premium); }
.th-cd-session:hover { border-color: rgba(170, 83, 140, .35); box-shadow: var(--th-shadow-md); }
.th-cd-session__date { display: grid; place-items: center; flex-shrink: 0; width: 64px; height: 64px; border-radius: 14px; background: var(--th-navy); color: #cbd5e1; font-size: .66rem; font-weight: 700; text-transform: uppercase; line-height: 1.1; text-align: center; }
.th-cd-session__date b { display: block; font: 800 1.4rem/1 var(--th-font-head); color: #fff; }
.th-cd-session__info { flex: 1; min-width: 0; }
.th-cd-session__top { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.th-cd-session__top strong { font-size: .98rem; color: var(--th-ink); }
.th-cd-session__meta { display: block; margin-top: .25rem; font-size: .82rem; color: var(--th-muted); }
.th-cd-session__seats { color: #047857; font-weight: 600; }
.th-cd-session__actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.th-cd-pill { padding: .2rem .55rem; border-radius: 999px; font-size: .7rem; font-weight: 700; }
.th-cd-pill--ok { background: #ecf6d4; color: #3f5c0b; }
.th-cd-pill--warn { background: #ffedd5; color: #9a3412; }
.th-cd-iconbtn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--th-line); color: var(--th-muted); transition: border-color .2s, color .2s, transform .3s var(--th-ease-premium); }
.th-cd-iconbtn:hover { border-color: var(--th-primary); color: var(--th-primary); transform: translateY(-2px); }
.th-cd-empty { padding: 1.5rem; border-radius: var(--th-r-md); border: 1px dashed #cbd5e1; background: #f8fafc; text-align: center; font-size: .93rem; line-height: 1.6; color: var(--th-muted); list-style: none; }
.th-cd-textlink { display: inline-flex; align-items: center; gap: .35rem; padding: 0; background: none; border: 0; cursor: pointer; font-size: .9rem; font-weight: 700; color: var(--th-primary); text-decoration: none; }
.th-cd-textlink:hover { text-decoration: underline; text-underline-offset: 4px; }
.th-cd-textlink .th-icon { transition: transform .3s var(--th-ease-premium); }
.th-cd-textlink:hover .th-icon { transform: translateX(3px); }

/* faqs */
.th-cd-faqs { display: grid; gap: .6rem; }
.th-cd-faq { border-radius: var(--th-r-md); border: 1px solid var(--th-line); overflow: hidden; transition: border-color .25s; }
.th-cd-faq.is-open { border-color: rgba(170, 83, 140, .4); }
.th-cd-faq button { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: 1rem 1.15rem; text-align: left; background: #f8fafc; border: 0; cursor: pointer; font-size: .95rem; color: var(--th-ink); }
.th-cd-faq button .th-icon { flex-shrink: 0; color: var(--th-primary); transition: transform .35s var(--th-ease-premium); }
.th-cd-faq.is-open button .th-icon { transform: rotate(45deg); }
.th-cd-faq__a { padding: 1rem 1.15rem 1.15rem; font-size: .93rem; line-height: 1.65; color: #475569; }

/* sidebar */
.th-cd-enrol { display: grid; gap: .75rem; padding: 1.5rem; border-radius: var(--th-r-lg); color: #fff; background: radial-gradient(120% 80% at 100% 0%, rgba(170, 83, 140, .45), transparent 60%), linear-gradient(160deg, #0f2a4d, #0b1730); box-shadow: 0 30px 60px -30px rgba(11, 37, 69, .65); }
.th-cd-enrol__kicker { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--th-accent); }
.th-cd-enrol__title { font: 800 1.25rem/1.25 var(--th-font-head); color: #fff; }
.th-cd-enrol p { margin: 0 0 .25rem; font-size: .88rem; line-height: 1.55; color: #cbd5e1; }
.th-cd-enrol__link { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .35rem; font-size: .85rem; font-weight: 700; color: #fff; text-decoration: none; }
.th-cd-enrol__link:hover { color: var(--th-accent); }
.th-cd-enrol small { text-align: center; font-size: .75rem; color: #94a3b8; }
.th-cd-sidecard { padding: 1.35rem; border-radius: var(--th-r-lg); background: #fff; border: 1px solid var(--th-line); }
.th-cd-sidecard h3 { margin: 0 0 .25rem; font: 800 1rem/1.3 var(--th-font-head); color: var(--th-ink); text-transform: none; letter-spacing: -.01em; }
.th-cd-sidecard > p { margin: 0 0 .9rem; font-size: .85rem; line-height: 1.55; color: var(--th-muted); }
.th-cd-contact { display: flex; align-items: center; gap: .75rem; padding: .7rem; margin-top: .5rem; border-radius: 12px; border: 1px solid var(--th-line); text-decoration: none; transition: border-color .2s, background-color .2s, transform .3s var(--th-ease-premium); }
.th-cd-contact:hover { border-color: rgba(170, 83, 140, .4); background: var(--th-primary-50); transform: translateX(3px); }
.th-cd-contact__icon { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; background: var(--th-primary); color: #fff; }
.th-cd-contact small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--th-muted); }
.th-cd-contact strong { display: block; font-size: .92rem; color: var(--th-ink); }
.th-cd-contact--wa .th-cd-contact__icon { background: #16a34a; }
.th-cd-contact--wa:hover { border-color: rgba(22, 163, 74, .4); background: #f0fdf4; }
.th-cd-body { display: flex; align-items: center; gap: .75rem; margin: .5rem 0 .6rem; }
.th-cd-body__logo { display: grid; place-items: center; height: 44px; padding: .35rem .6rem; border-radius: 10px; border: 1px solid var(--th-line); background: #fff; }
.th-cd-body__logo img { max-height: 30px; max-width: 90px; object-fit: contain; }
.th-cd-body strong { font-size: .95rem; color: var(--th-ink); }
.th-cd-sidecard p { font-size: .85rem; line-height: 1.55; color: #475569; }
.th-cd-body__id { display: block; padding-top: .7rem; border-top: 1px solid var(--th-line); font-size: .78rem; color: var(--th-muted); }
.th-cd-links { margin: .5rem 0 0; padding: 0; list-style: none; }
.th-cd-links a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .6rem .5rem; border-radius: 10px; font-size: .88rem; font-weight: 600; color: #334155; text-decoration: none; transition: background-color .2s, color .2s; }
.th-cd-links a:hover { background: var(--th-primary-50); color: var(--th-primary); }
.th-cd-links .th-icon { color: #94a3b8; transition: transform .3s var(--th-ease-premium), color .2s; }
.th-cd-links a:hover .th-icon { transform: translateX(3px); color: var(--th-primary); }

/* sticky bottom bar */
.th-cd-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: .7rem 0; background: rgba(255, 255, 255, .92); border-top: 1px solid var(--th-line); box-shadow: 0 -12px 30px -18px rgba(15, 23, 42, .35); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.th-cd-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.th-cd-bar__title strong { display: block; font-size: .9rem; color: var(--th-ink); }
.th-cd-bar__title small { font-size: .75rem; color: var(--th-muted); }
.th-cd-bar__actions { display: flex; gap: .5rem; }

@media (max-width: 1023px) {
    .th-cd-hero__grid, .th-cd__layout { grid-template-columns: 1fr; }
    .th-cd-hero__card { max-width: 560px; }
    .th-cd-side-sticky { position: static; }
    .th-cd-bar { display: none !important; } /* the site-wide WhatsApp / fees bar already covers mobile */
}
@media (max-width: 640px) {
    .th-cd-tiles, .th-cd-checks--2 { grid-template-columns: 1fr; }
    .th-cd-module__body { padding-left: 1.15rem; }
    .th-cd-session { flex-wrap: wrap; }
    .th-cd-session__actions { width: 100%; }
    .th-cd-session__actions .th-btn { flex: 1; }
    .th-cd-bar__title, .th-cd-bar__actions .th-btn--outline { display: none; }
    .th-cd-bar__actions { width: 100%; }
    .th-cd-bar__actions .th-btn { flex: 1; padding-inline: .75rem; }
    .th-cd-hero__actions .th-btn { flex: 1 1 auto; }
}

/* dark mode */
.th-dark .th-cd { background: #0b1220; }
.th-dark .th-cd-card, .th-dark .th-cd-glance__item, .th-dark .th-cd-sidecard, .th-dark .th-cd-module, .th-dark .th-cd-session { background: #111a2b; border-color: #22304a; }
.th-dark .th-cd-card__head h2, .th-dark .th-cd-sub h3, .th-dark .th-cd-label, .th-dark .th-cd-glance__item strong, .th-dark .th-cd-module__title strong,
.th-dark .th-cd-benefit > div > strong, .th-dark .th-cd-cert > div > strong, .th-dark .th-cd-prose strong, .th-dark .th-cd-sidecard h3,
.th-dark .th-cd-contact strong, .th-dark .th-cd-body strong, .th-dark .th-cd-session__top strong, .th-dark .th-cd-faq button, .th-dark .th-cd-bar__title strong { color: #f1f5f9; }
.th-dark .th-cd-prose p, .th-dark .th-cd-glance__item strong + span, .th-dark .th-cd-checks li, .th-dark .th-cd-list li, .th-dark .th-cd-module__body > p,
.th-dark .th-cd-benefit p, .th-dark .th-cd-cert p, .th-dark .th-cd-faq__a, .th-dark .th-cd-sidecard p, .th-dark .th-cd-links a { color: #cbd5e1; }
.th-dark .th-cd-benefit, .th-dark .th-cd-cert { background: linear-gradient(120deg, rgba(170, 83, 140, .14), rgba(255, 255, 255, .02)); border-color: rgba(170, 83, 140, .3); }
.th-dark .th-cd-tiles li, .th-dark .th-cd-faq button, .th-dark .th-cd-empty { background: #0f1828; border-color: #22304a; color: #e2e8f0; }
.th-dark .th-cd-tiles__icon, .th-dark .th-cd-body__logo { background: #0b1220; border-color: #22304a; }
.th-dark .th-cd-people li { background: rgba(174, 210, 84, .1); color: #e2e8f0; border-color: rgba(174, 210, 84, .35); }
.th-dark .th-cd-people .th-icon, .th-dark .th-cd-checks .th-icon { color: var(--th-accent); }
.th-dark .th-cd-glance__icon, .th-dark .th-cd-module__num { background: rgba(170, 83, 140, .18); color: #f0a6d4; }
.th-dark .th-cd-tabs, .th-dark .th-cd-bar { background: rgba(11, 18, 32, .9); border-color: #22304a; }
.th-dark .th-cd-tabs a:hover, .th-dark .th-cd-tabs a.is-active { color: #fff; }
.th-dark .th-cd-sub, .th-dark .th-cd-body__id { border-color: #22304a; }
.th-dark .th-cd-contact, .th-dark .th-cd-faq, .th-dark .th-cd-iconbtn { border-color: #22304a; }
.th-dark .th-cd-contact:hover, .th-dark .th-cd-links a:hover, .th-dark .th-cd-tiles li:hover { background: rgba(170, 83, 140, .12); }
.th-cd__side { align-self: stretch; }
.th-cd-more { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.th-cd-more .th-cd-links { columns: 1; }
@media (max-width: 640px) { .th-cd-more { grid-template-columns: 1fr; } }
.th-cd-enrol { padding: 1.3rem; gap: .65rem; }
.th-cd-side-sticky .th-cd-sidecard { padding: 1.15rem; }
.th-cd-side-sticky .th-cd-contact { padding: .55rem .65rem; margin-top: .4rem; }
.th-dark .th-btn--outline { --btn-bg: #111a2b; --btn-fg: #e2e8f0; --btn-bd: #2b3a55; }
.th-dark .th-btn--outline:hover { --btn-bd: rgba(240, 166, 212, .55); --btn-fg: #f0a6d4; }
/* Course page, round J: plain (non-sticky) sidebar, collapsible portfolios, calmer mobile */
.th-cd-side-sticky { position: static; }
.th-cd-portfolios__toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0; background: none; border: 0; cursor: pointer; color: inherit; text-align: left; }
.th-cd-portfolios__toggle h3 { margin: 0; }
.th-cd-portfolios__toggle .th-icon { color: var(--th-muted); transition: transform .35s var(--th-ease-premium); }
.th-cd-portfolios__toggle[aria-expanded="true"] .th-icon { transform: rotate(180deg); }
@media (min-width: 1024px) {
    .th-cd-portfolios__toggle { pointer-events: none; }
    .th-cd-portfolios__toggle .th-icon { display: none; }
    .th-cd-portfolios .th-cd-links { display: block !important; }
}
@media (max-width: 767px) {
    .th-cd-hero { padding-block: 1.75rem 2rem; }
    .th-cd-hero__card { display: none; }              /* same facts are in the hero line and page */
    .th-cd-crumbs { margin-bottom: .9rem; font-size: .75rem; }
    .th-cd-tags { gap: .35rem; margin-bottom: .75rem; }
    .th-cd-tag { padding: .28rem .6rem; font-size: .66rem; }
    .th-cd-hero__title { font-size: 1.75rem; }
    .th-cd-hero__lead { font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .th-cd-hero__meta { gap: .4rem 1rem; font-size: .8rem; margin-top: 1rem; padding-top: .85rem; }
    .th-cd-hero__actions { gap: .5rem; margin-top: 1.1rem; }
    .th-cd-hero__actions .th-btn { flex: 1 1 100%; min-height: 48px; }
    .th-cd-tabs a { padding: .8rem .7rem; font-size: .82rem; }
    .th-cd { padding-top: 1.25rem; }
    .th-cd__main, .th-cd-side-sticky { gap: 1rem; }
    .th-cd__layout { gap: 1rem; }
    .th-cd-card { padding: 1.25rem; border-radius: var(--th-r-md); }
    .th-cd-card__head { margin-bottom: 1.1rem; }
    .th-cd-card__head h2 { font-size: 1.3rem; }
    .th-cd-card__head p { font-size: .88rem; }
    .th-cd-card__head--split .th-btn { width: 100%; }
    .th-cd-prose p { font-size: .95rem; line-height: 1.65; }
    .th-cd-benefit, .th-cd-cert { padding: .9rem 1rem; gap: .75rem; }
    .th-cd-benefit__icon, .th-cd-cert__icon { width: 34px; height: 34px; border-radius: 10px; }
    .th-cd-module__head { gap: .75rem; padding: .85rem; }
    .th-cd-module__num { width: 36px; height: 36px; border-radius: 10px; font-size: .85rem; }
    .th-cd-module__title strong { font-size: .95rem; }
    .th-cd-module__body { padding: 0 .85rem 1rem; }
    .th-cd-tiles li { padding: .8rem; font-size: .9rem; }
    .th-cd-people li { padding: .5rem .85rem; font-size: .85rem; }
    .th-cd-session__date { width: 52px; height: 52px; }
    .th-cd-enrol, .th-cd-sidecard { padding: 1.15rem; border-radius: var(--th-r-md); }
}

/* ==========================================================================
   17. Privacy policy (.th-pp-*)
   ========================================================================== */
.th-btn--sm { padding: .6rem 1.05rem; font-size: .875rem; }
.th-pp-eyebrow { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: .9rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(174, 210, 84, .16); border: 1px solid rgba(174, 210, 84, .45); color: #d9f09a; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.th-pp-lead { max-width: 46rem; margin-top: .9rem; color: rgba(255, 255, 255, .88); font-size: clamp(1rem, 1.4vw, 1.125rem); line-height: 1.65; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.th-pp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; margin-top: 1.5rem; font-size: .875rem; color: rgba(255, 255, 255, .82); }
.th-pp-meta > span { display: inline-flex; align-items: center; gap: .4rem; }

.th-pp { padding: clamp(2.5rem, 5vw, 4.5rem) var(--th-gutter); background: var(--th-surface-2); }
.th-pp__grid { max-width: 1180px; margin: 0 auto; display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
    .th-pp__grid { grid-template-columns: 270px minmax(0, 1fr); gap: 2.75rem; align-items: start; }
    .th-pp__aside { position: sticky; top: calc(var(--th-header-h, 0px) + 1.5rem); }
}
.th-pp__aside { display: grid; gap: 1.25rem; }

.th-pp-toc { padding: 1.25rem; border-radius: var(--th-r-lg); background: #fff; border: 1px solid var(--th-line); }
.th-pp-toc__title { margin-bottom: .6rem; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #64748b; }
.th-pp-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.th-pp-toc a { display: block; padding: .45rem .7rem; border-left: 2px solid transparent; border-radius: 0 8px 8px 0; color: #475569; font-size: .9rem; line-height: 1.35; transition: color .2s, background .2s, border-color .2s; }
.th-pp-toc a:hover { color: #aa538c; background: rgba(170, 83, 140, .06); }
.th-pp-toc a.is-active { color: #aa538c; font-weight: 600; background: rgba(170, 83, 140, .08); border-left-color: #aa538c; }

.th-pp-help { padding: 1.25rem; border-radius: var(--th-r-lg); background: linear-gradient(145deg, #2a1830, #1b2240); color: rgba(255, 255, 255, .8); font-size: .9rem; line-height: 1.55; }
.th-pp-help__title { margin-bottom: .35rem; color: #fff; font-weight: 700; font-family: var(--th-font-head); }
.th-pp-help .th-btn { margin-top: 1rem; }

.th-pp__body { display: grid; gap: 1.25rem; min-width: 0; }
.th-pp-intro { padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--th-r-lg); background: linear-gradient(135deg, rgba(170, 83, 140, .09), rgba(174, 210, 84, .10)); border: 1px solid rgba(170, 83, 140, .18); color: #334155; font-size: 1.05rem; line-height: 1.7; }
.th-pp-sec { scroll-margin-top: calc(var(--th-header-h, 0px) + 24px); padding: clamp(1.4rem, 3vw, 2.1rem); border-radius: var(--th-r-lg); background: #fff; border: 1px solid var(--th-line); box-shadow: 0 1px 2px rgba(15, 23, 42, .04); color: #334155; font-size: 1rem; line-height: 1.7; }
.th-pp-sec > * + * { margin-top: .85rem; }
.th-pp-sec h2 { display: flex; align-items: center; gap: .75rem; margin: 0 0 1rem; color: #0f172a; font-size: clamp(1.2rem, 2vw, 1.4rem); font-weight: 800; line-height: 1.3; }
.th-pp-sec__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(170, 83, 140, .1); color: #aa538c; }
.th-pp-sec strong { color: #0f172a; }

.th-pp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.th-pp-list li { position: relative; padding-left: 1.6rem; }
.th-pp-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1rem; height: 1rem; border-radius: 50%; background: rgba(174, 210, 84, .3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234d6b12' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / .6rem no-repeat; }
@media (min-width: 640px) { .th-pp-list--cols { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; } }

.th-pp-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.th-pp-chips span { padding: .4rem .85rem; border-radius: 999px; background: var(--th-surface-2); border: 1px solid var(--th-line); color: #334155; font-size: .875rem; font-weight: 500; }

.th-pp-tiles { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .th-pp-tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .th-pp-tiles--3 { grid-template-columns: repeat(3, 1fr); } }
.th-pp-tiles > div { display: grid; align-content: start; gap: .2rem; padding: 1rem 1.1rem; border-radius: var(--th-r-md); background: var(--th-surface-2); border: 1px solid var(--th-line); border-left: 3px solid #aa538c; }
.th-pp-tiles strong { font-size: .95rem; }
.th-pp-tiles span { color: #64748b; font-size: .9rem; line-height: 1.5; }

.th-pp-note { padding: .85rem 1.1rem; border-radius: var(--th-r-md); background: rgba(174, 210, 84, .14); border: 1px solid rgba(174, 210, 84, .45); color: #334155; }

.th-pp-contact { padding: 1.25rem 1.4rem; border-radius: var(--th-r-md); background: var(--th-surface-2); border: 1px solid var(--th-line); }
.th-pp-contact__name { font-weight: 800; color: #0f172a; font-family: var(--th-font-head); }
.th-pp-contact ul { list-style: none; margin: .6rem 0 1.1rem; padding: 0; display: grid; gap: .45rem; }
.th-pp-contact li { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.th-pp-contact li svg { color: #aa538c; flex: none; }
.th-pp-contact li > span { color: #64748b; }
.th-pp-contact a:not(.th-btn) { color: #aa538c; font-weight: 600; }
.th-pp-contact a:not(.th-btn):hover { text-decoration: underline; }

.th-pp-docinfo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: .5rem 0 0; border-radius: var(--th-r-md); overflow: hidden; background: var(--th-line); border: 1px solid var(--th-line); }
@media (min-width: 768px) { .th-pp-docinfo { grid-template-columns: repeat(4, 1fr); } }
.th-pp-docinfo > div { padding: .85rem 1rem; background: #fff; }
.th-pp-docinfo dt { font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #94a3b8; }
.th-pp-docinfo dd { margin: .2rem 0 0; color: #0f172a; font-size: .875rem; font-weight: 600; word-break: break-word; }

/* Mobile: contents become a horizontal strip, help card moves out of the way */
@media (max-width: 1023px) {
    .th-pp-toc { position: sticky; top: var(--th-header-h, 0px); z-index: 20; padding: .5rem; border-radius: var(--th-r-md); background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
    .th-pp__aside { position: static; display: contents; }
    .th-pp-toc__title { display: none; }
    .th-pp-toc ol { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; }
    .th-pp-toc ol::-webkit-scrollbar { display: none; }
    .th-pp-toc a { white-space: nowrap; border-left: 0; border-radius: 999px; padding: .45rem .85rem; font-size: .85rem; }
    .th-pp-toc a.is-active { color: #fff; background: #aa538c; }
    .th-pp__body { order: 2; }
    .th-pp-help { order: 3; }
}
@media (max-width: 767px) {
    .th-pp-meta { gap: .5rem 1rem; }
    .th-pp-sec { font-size: .975rem; }
    .th-pp-sec h2 { gap: .6rem; }
    .th-pp-sec__icon { width: 34px; height: 34px; border-radius: 10px; }
}

/* Dark mode */
.th-dark .th-pp-toc, .th-dark .th-pp-sec, .th-dark .th-pp-docinfo > div { background: #111a2b; border-color: #22304a; }
.th-dark .th-pp-sec, .th-dark .th-pp-intro, .th-dark .th-pp-note, .th-dark .th-pp-chips span { color: #cbd5e1; }
.th-dark .th-pp-sec h2, .th-dark .th-pp-sec strong, .th-dark .th-pp-contact__name, .th-dark .th-pp-docinfo dd { color: #f1f5f9; }
.th-dark .th-pp-toc a { color: #94a3b8; }
.th-dark .th-pp-toc a:hover, .th-dark .th-pp-toc a.is-active { color: #e7a8d2; background: rgba(170, 83, 140, .16); }
.th-dark .th-pp-intro { background: linear-gradient(135deg, rgba(170, 83, 140, .16), rgba(174, 210, 84, .08)); border-color: rgba(170, 83, 140, .3); }
.th-dark .th-pp-chips span, .th-dark .th-pp-tiles > div, .th-dark .th-pp-contact { background: #0b1220; border-color: #22304a; }
.th-dark .th-pp-docinfo { background: #22304a; border-color: #22304a; }
.th-dark .th-pp-sec__icon { background: rgba(170, 83, 140, .2); color: #e7a8d2; }
@media (max-width: 1023px) { .th-dark .th-pp-toc { background: rgba(17, 26, 43, .94); } .th-dark .th-pp-toc a.is-active { color: #fff; background: #aa538c; } }

/* ==========================================================================
   18. Footer trust strip (.th-foot__trust)
   ========================================================================== */
.th-foot__trust { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.th-foot__trust-item {
    position: relative; display: flex; align-items: center; gap: .85rem; height: 100%;
    padding: 1rem 2.4rem 1rem 1.1rem; border-radius: var(--th-r-lg);
    background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08);
    color: #cbd5e1; text-decoration: none;
    transition: transform .35s var(--th-ease), background .3s, border-color .3s, box-shadow .35s var(--th-ease);
}
.th-foot__trust-item:hover, .th-foot__trust-item:focus-visible {
    transform: translateY(-3px); background: rgba(170, 83, 140, .14); border-color: rgba(170, 83, 140, .45);
    box-shadow: 0 18px 36px -22px rgba(170, 83, 140, .7);
}
.th-foot__trust-icon {
    flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(170, 83, 140, .35), rgba(170, 83, 140, .12)); color: #f0c6e2;
    border: 1px solid rgba(255, 255, 255, .08); transition: background .3s, color .3s;
}
.th-foot__trust-item:hover .th-foot__trust-icon { background: var(--th-accent); color: #0b1530; }
.th-foot__trust-text { display: grid; gap: .15rem; min-width: 0; line-height: 1.3; }
.th-foot__trust-text strong { color: #fff; font: 700 .95rem/1.25 var(--th-font-head); }
.th-foot__trust li:first-child .th-foot__trust-text strong { color: var(--th-accent); font-size: 1.15rem; letter-spacing: -.01em; }
.th-foot__trust-text span { color: #94a3b8; font-size: .8rem; }
.th-foot__trust-go { position: absolute; top: .8rem; right: .8rem; color: rgba(255, 255, 255, .35); transition: color .3s, transform .3s var(--th-ease); }
.th-foot__trust-item:hover .th-foot__trust-go { color: var(--th-accent); transform: translate(2px, -2px); }
@media (max-width: 1100px) { .th-foot__trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
    .th-foot__trust { grid-template-columns: 1fr; gap: .5rem; }
    .th-foot__trust-item { padding: .8rem 2.2rem .8rem .9rem; }
    .th-foot__trust-icon { width: 38px; height: 38px; border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) { .th-foot__trust-item, .th-foot__trust-go { transition: none; } .th-foot__trust-item:hover { transform: none; } }

/* ==========================================================================
   19. Our Team (.th-team, .th-tm): glass frames with a light line that
       travels around the edge, staggered reveal, pointer-follow glow
   ========================================================================== */
@property --th-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes th-orbit { to { --th-angle: 360deg; } }
@keyframes th-drift { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(30px, -24px, 0) scale(1.08); } }

.th-team { position: relative; overflow: hidden; padding: clamp(2.5rem, 5vw, 4.5rem) var(--th-gutter) clamp(3rem, 6vw, 5rem);
    background: linear-gradient(180deg, #f6f7fb 0%, #eef0f8 50%, #f6f7fb 100%); }
.th-team__glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(90px); opacity: .5; pointer-events: none; animation: th-drift 18s ease-in-out infinite; }
.th-team__glow--a { top: 6%; left: -160px; background: rgba(170, 83, 140, .35); }
.th-team__glow--b { top: 45%; right: -180px; background: rgba(174, 210, 84, .32); animation-delay: -9s; }
.th-team__inner { position: relative; max-width: var(--th-max); margin: 0 auto; display: grid; gap: clamp(3rem, 6vw, 4.5rem); }

.th-team__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: var(--th-r-lg); overflow: hidden;
    background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .8); box-shadow: var(--th-shadow-md);
    -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.th-team__stats > div { display: grid; gap: .15rem; padding: 1.15rem 1.4rem; text-align: center; }
.th-team__stats > div + div { border-left: 1px solid rgba(15, 23, 42, .07); }
.th-team__stats strong { font: 800 clamp(1.5rem, 2.5vw, 2rem)/1 var(--th-font-head); color: #aa538c; letter-spacing: -.02em; }
.th-team__stats span { font-size: .8rem; color: #64748b; font-weight: 500; }

.th-team__tier { display: grid; gap: 1.75rem; }
.th-team__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 2rem; }
.th-team__head p { max-width: 30rem; margin: 0; color: #64748b; font-size: .95rem; line-height: 1.6; }
.th-team__eyebrow { display: inline-flex; align-items: center; gap: .5rem; color: #aa538c; font: 700 .72rem/1 var(--th-font-body); letter-spacing: .14em; text-transform: uppercase; }
.th-team__eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(170, 83, 140, .15); }
.th-team__eyebrow--lime { color: var(--th-accent); }
.th-team__eyebrow--lime::before { box-shadow: 0 0 0 4px rgba(174, 210, 84, .2); }
.th-site main .th-team__title { margin: .55rem 0 0; font: 800 clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem)/1.15 var(--th-font-head); letter-spacing: -.03em; color: var(--th-ink); }

.th-team__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.2vw, 2rem); }

/* Member card */
.th-tm { position: relative; isolation: isolate; display: flex; flex-direction: column; padding: .7rem; border-radius: 24px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .5));
    border: 1px solid rgba(170, 83, 140, .12);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 20px 40px -28px rgba(15, 23, 42, .35);
    -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
    transition: transform .5s var(--th-ease), box-shadow .5s var(--th-ease); }
/* the moving light line */
.th-tm::before { content: ""; position: absolute; inset: -1px; z-index: 3; border-radius: inherit; padding: 2px; pointer-events: none;
    background: conic-gradient(from var(--th-angle), transparent 0deg 220deg, rgba(170, 83, 140, .9) 290deg, #f6c9e6 322deg, rgba(174, 210, 84, 1) 345deg, transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: .9; filter: drop-shadow(0 0 4px rgba(170, 83, 140, .45)); animation: th-orbit 6s linear infinite; animation-delay: var(--spin-delay, 0s); animation-play-state: paused; transition: opacity .4s; }
.th-tm.is-inview::before { animation-play-state: running; }
/* soft glow that follows the pointer */
.th-tm::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(170, 83, 140, .16), transparent 60%); }
.th-tm:hover { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 34px 60px -30px rgba(170, 83, 140, .55); }
.th-tm:hover::before { opacity: 1; animation-duration: 3s; }
.th-tm:hover::after { opacity: 1; }

.th-tm__photo { position: relative; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, #0b2545, #173d6c 55%, #aa538c); }
.th-tm__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .9s var(--th-ease), filter .6s; filter: saturate(.95); }
.th-tm:hover .th-tm__photo img { transform: scale(1.05); filter: saturate(1.05); }
.th-tm__photo::after { content: ""; position: absolute; inset: auto 0 0; height: 35%; background: linear-gradient(0deg, rgba(7, 15, 31, .45), transparent); pointer-events: none; }
.th-tm__shine { position: absolute; inset: 0; z-index: 1; pointer-events: none; transform: translateX(-120%) skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); width: 45%; }
.th-tm:hover .th-tm__shine { transform: translateX(320%) skewX(-18deg); transition: transform 1.1s var(--th-ease); }
.th-tm__initials { width: 100%; height: 100%; display: grid; place-items: center; }
.th-tm__initials span { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; color: #fff; font: 800 1.6rem/1 var(--th-font-head); letter-spacing: .05em;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.th-tm__in { position: absolute; top: .75rem; right: .75rem; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff;
    background: rgba(15, 23, 42, .35); border: 1px solid rgba(255, 255, 255, .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transition: background .3s, transform .3s var(--th-ease); }
.th-tm__in:hover, .th-tm__in:focus-visible { background: #0a66c2; transform: scale(1.08); }

.th-tm__body { display: grid; gap: .3rem; padding: 1rem .6rem .55rem; }
.th-tm__dept { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #94a3b8; }
.th-site main .th-tm__name { margin: 0; font: 800 1.15rem/1.25 var(--th-font-head); letter-spacing: -.01em; color: var(--th-ink); transition: color .3s; }
.th-tm:hover .th-tm__name { color: #aa538c; }
.th-tm__role { margin: 0; display: inline-flex; width: fit-content; padding: .25rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 700; color: #3f5a0e; background: rgba(174, 210, 84, .3); }
.th-tm__bio { margin: .35rem 0 0; color: #64748b; font-size: .875rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.th-tm--empty { text-align: center; }

/* CTA */
.th-team__cta { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem;
    padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: var(--th-r-xl); color: #cbd5e1;
    background: radial-gradient(600px 300px at 100% 0%, rgba(170, 83, 140, .35), transparent 60%), linear-gradient(135deg, #0b2545, #133e6d); box-shadow: var(--th-shadow-lg); }
.th-team__cta > div:first-child { max-width: 40rem; display: grid; gap: .6rem; }
.th-team__cta p { margin: 0; line-height: 1.65; font-size: .95rem; }
.th-team__cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

@media (max-width: 1023px) { .th-team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
    .th-team__glow { display: none; }
    .th-team__stats { grid-template-columns: repeat(2, 1fr); }
    .th-team__stats > div:nth-child(3) { border-left: 0; }
    .th-team__stats > div:nth-child(n+3) { border-top: 1px solid rgba(15, 23, 42, .07); }
    .th-team__stats > div { padding: .9rem; }
    .th-team__head p { font-size: .9rem; }
    .th-tm { padding: .55rem; border-radius: 20px; }
    .th-tm::before { opacity: .55; animation-duration: 9s; }
    .th-tm__bio { -webkit-line-clamp: 2; }
    .th-team__cta-actions, .th-team__cta-actions .th-btn { width: 100%; justify-content: center; }
}
@media (max-width: 520px) { .th-team__grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
    .th-tm::before { animation: none; --th-angle: 300deg; }
    .th-team__glow { animation: none; }
    .th-tm, .th-tm__photo img, .th-tm__shine { transition: none; }
    .th-tm:hover { transform: none; }
}

/* Dark mode */
.th-dark .th-team { background: linear-gradient(180deg, #0b1220, #0e1628 50%, #0b1220); }
.th-dark .th-team__glow { opacity: .3; }
.th-dark .th-team__stats { background: rgba(17, 26, 43, .6); border-color: rgba(255, 255, 255, .08); }
.th-dark .th-team__stats > div + div, .th-dark .th-team__stats > div:nth-child(n+3) { border-color: rgba(255, 255, 255, .07); }
.th-dark .th-team__stats strong { color: #e7a8d2; }
.th-dark .th-site main .th-team__title, .th-dark .th-site main .th-tm__name { color: #f1f5f9; }
.th-dark .th-tm { background: linear-gradient(160deg, rgba(23, 33, 55, .75), rgba(17, 26, 43, .5)); border-color: rgba(255, 255, 255, .08); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 20px 40px -28px rgba(0, 0, 0, .8); }
.th-dark .th-tm:hover .th-tm__name { color: #e7a8d2; }
.th-dark .th-tm__role { color: #d9f09a; background: rgba(174, 210, 84, .14); }
.th-dark .th-tm__bio, .th-dark .th-team__head p { color: #94a3b8; }

/* ==========================================================================
   20. Gallery (.th-gal): reuses the glass frame + light line from section 19
   ========================================================================== */
.th-gal { position: relative; overflow: hidden; padding: clamp(2.5rem, 5vw, 4.5rem) var(--th-gutter) clamp(3rem, 6vw, 5rem);
    background: linear-gradient(180deg, #f6f7fb 0%, #eef0f8 50%, #f6f7fb 100%); }
.th-gal__inner { position: relative; max-width: var(--th-max); margin: 0 auto; display: grid; gap: clamp(1.75rem, 4vw, 3rem); }
.th-gal__filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.th-gal__filters button { padding: .5rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 600; color: #475569;
    background: rgba(255, 255, 255, .7); border: 1px solid var(--th-line); transition: color .2s, background .2s, border-color .2s; }
.th-gal__filters button:hover { color: #aa538c; border-color: rgba(170, 83, 140, .4); }
.th-gal__filters button.is-active { color: #fff; background: #aa538c; border-color: #aa538c; }

.th-gal__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.2vw, 2rem); }
.th-gal__grid--duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.th-gal__item { margin: 0; }
.th-gal__open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 18px; }
.th-gal__open:focus-visible { outline: 3px solid var(--th-accent); outline-offset: 3px; }
.th-gal__photo { display: block; aspect-ratio: 4 / 3; }
.th-gal__photo picture, .th-gal__photo img { display: block; width: 100%; height: 100%; }
.th-gal__photo img { object-position: center; }
.th-gal__zoom { position: absolute; right: .9rem; bottom: .9rem; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #fff;
    background: rgba(15, 23, 42, .35); border: 1px solid rgba(255, 255, 255, .4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    opacity: 0; transform: translateY(8px) scale(.9); transition: opacity .35s, transform .45s var(--th-ease), background .3s; }
.th-gal__item:hover .th-gal__zoom, .th-gal__open:focus-visible .th-gal__zoom { opacity: 1; transform: none; background: #aa538c; }
.th-gal__item .th-tm__bio { -webkit-line-clamp: 2; }
.th-gal__empty { padding: 3rem 1rem; text-align: center; color: #64748b; border-radius: var(--th-r-lg); background: rgba(255, 255, 255, .7); border: 1px dashed var(--th-line); }

/* Lightbox */
.th-gal__lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 4.5rem clamp(.75rem, 3vw, 2rem) 2rem;
    background: rgba(5, 10, 22, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.th-gal__lb-figure { margin: 0; max-width: min(1200px, 100%); display: grid; gap: .9rem; }
.th-gal__lb-figure img { max-height: calc(100vh - 11rem); width: auto; max-width: 100%; margin: 0 auto; border-radius: 16px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); }
.th-gal__lb-figure figcaption { display: grid; gap: .2rem; text-align: center; color: #cbd5e1; font-size: .9rem; }
.th-gal__lb-figure strong { color: #fff; font: 700 1.05rem/1.3 var(--th-font-head); }
.th-gal__lb-btn { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #fff;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); transition: background .25s, transform .3s var(--th-ease); }
.th-gal__lb-btn:hover, .th-gal__lb-btn:focus-visible { background: #aa538c; transform: scale(1.06); }
.th-gal__lb-close { position: absolute; top: 1rem; right: 1rem; }

@media (max-width: 1023px) { .th-gal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .th-gal { padding-top: 2rem; }
    .th-gal .th-team__glow { display: none; }
    .th-gal__grid, .th-gal__grid--duo { grid-template-columns: 1fr; }
    .th-gal__zoom { opacity: 1; transform: none; width: 38px; height: 38px; }
    .th-gal__lightbox { padding: 4rem .5rem 1.5rem; }
    .th-gal__lb-prev, .th-gal__lb-next { position: absolute; bottom: 1rem; }
    .th-gal__lb-prev { left: calc(50% - 56px); } .th-gal__lb-next { right: calc(50% - 56px); }
    .th-gal__lb-figure img { max-height: calc(100vh - 13rem); }
}

.th-dark .th-gal { background: linear-gradient(180deg, #0b1220, #0e1628 50%, #0b1220); }
.th-dark .th-gal__filters button { color: #cbd5e1; background: rgba(17, 26, 43, .7); border-color: #22304a; }
.th-dark .th-gal__filters button.is-active { color: #fff; background: #aa538c; border-color: #aa538c; }
.th-dark .th-gal__empty { background: rgba(17, 26, 43, .7); border-color: #22304a; color: #94a3b8; }

/* ==========================================================================
   21. Site Popups (.th-popup-*) — centered above all page layers
   ========================================================================== */
.th-popup-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(.75rem, 3vw, 1.5rem);
    background: rgba(7, 12, 28, .80);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.th-popup-toast {
    position: fixed !important;
    right: clamp(.75rem, 3vw, 1.5rem);
    bottom: clamp(.75rem, 3vw, 1.5rem);
    z-index: 99999 !important;
    width: min(calc(100vw - 1.5rem), 24rem);
}
.th-popup-dialog {
    position: relative;
    width: 100%;
    max-height: calc(100dvh - 1.5rem);
    overflow-y: auto;
    margin: auto;
    border-radius: 24px;
    box-shadow: 0 36px 90px -20px rgba(0, 0, 0, .75);
}
.th-popup-poster-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.th-popup-dialog--poster {
    width: 100%;
    max-width: min(94vw, 700px);
}
.th-popup-close {
    position: absolute;
    top: .85rem;
    right: .85rem;
    z-index: 25;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    font-weight: 800;
    cursor: pointer;
    transition: background-color .2s, transform .2s, color .2s;
}
.th-popup-close:hover { transform: scale(1.06); }
.th-dark .th-popup-light-card {
    background-color: var(--th-surface) !important;
    border-color: var(--th-line) !important;
}
@media (max-width: 640px) {
    .th-popup-dialog { border-radius: 18px; }
}

/* ==========================================================================
   22. Contact page (.th-ct)
   ========================================================================== */
.th-ct { position: relative; overflow: hidden; padding: clamp(2.5rem, 5vw, 4rem) var(--th-gutter) clamp(3rem, 6vw, 5rem);
    background: linear-gradient(180deg, #f6f7fb 0%, #eef0f8 50%, #f6f7fb 100%); }
.th-ct__inner { position: relative; max-width: var(--th-max); margin: 0 auto; display: grid; gap: clamp(2.5rem, 5vw, 4rem); }

.th-ct__quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.th-ct-quick { position: relative; display: flex; align-items: center; gap: .9rem; padding: 1.1rem 2.5rem 1.1rem 1.1rem; border-radius: var(--th-r-lg);
    background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--th-shadow-sm); color: var(--th-ink); text-decoration: none;
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: transform .4s var(--th-ease), box-shadow .4s var(--th-ease), border-color .3s; }
.th-ct-quick:hover, .th-ct-quick:focus-visible { transform: translateY(-4px); box-shadow: var(--th-shadow-md); border-color: rgba(170, 83, 140, .35); }
.th-ct-quick__icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: #aa538c; background: rgba(170, 83, 140, .1); transition: background .3s, color .3s; }
.th-ct-quick:hover .th-ct-quick__icon { background: #aa538c; color: #fff; }
.th-ct-quick--wa .th-ct-quick__icon { color: #128c4b; background: rgba(37, 211, 102, .14); }
.th-ct-quick--wa:hover .th-ct-quick__icon { background: #25d366; color: #fff; }
.th-ct-quick__text { display: grid; gap: .15rem; min-width: 0; }
.th-ct-quick__text strong { font: 700 .98rem/1.25 var(--th-font-head); overflow-wrap: anywhere; }
.th-ct-quick__text span { font-size: .82rem; color: #64748b; }
.th-ct-quick__go { position: absolute; top: .85rem; right: .85rem; color: #94a3b8; transition: color .3s, transform .3s var(--th-ease); }
.th-ct-quick:hover .th-ct-quick__go { color: #aa538c; transform: translate(2px, -2px); }

.th-ct__main { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2rem); align-items: start; }
.th-ct-form.th-tm { padding: clamp(1.5rem, 3.5vw, 2.5rem); display: grid; gap: 1.5rem; }
.th-ct-form.th-tm:hover { transform: none; }
.th-ct-form__head { display: grid; gap: .25rem; }
.th-ct-form__head p { margin: .5rem 0 0; color: #64748b; font-size: .95rem; line-height: 1.6; }
.th-ct-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.1rem; }
.th-ct-field { display: grid; gap: .4rem; }
.th-ct-field--full { grid-column: 1 / -1; }
.th-ct-field label { font-size: .85rem; font-weight: 600; color: #334155; }
.th-ct-field label span[aria-hidden] { color: #aa538c; }
.th-ct-opt { color: #94a3b8; font-weight: 400; }
.th-site .th-ct-input { width: 100%; padding: .8rem 1rem; border-radius: 12px; font-size: .95rem; color: var(--th-ink);
    background: rgba(248, 250, 252, .9); border: 1px solid #dbe1ea; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.th-site .th-ct-input::placeholder { color: #94a3b8; }
.th-site .th-ct-input:focus { background: #fff; border-color: #aa538c; box-shadow: 0 0 0 4px rgba(170, 83, 140, .14); }
.th-site textarea.th-ct-input { resize: vertical; min-height: 140px; line-height: 1.6; }
.th-ct-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; padding-top: .25rem; }
.th-ct-form__foot p { margin: 0; font-size: .82rem; color: #64748b; }
.th-ct-form__foot a { color: #aa538c; font-weight: 600; }
.th-ct-alert { padding: .9rem 1.1rem; border-radius: 12px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-size: .9rem; }
.th-ct-alert ul { margin: .35rem 0 0 1.1rem; list-style: disc; }

.th-ct__aside { display: grid; gap: 1.25rem; }
.th-ct-wa { display: grid; gap: .6rem; padding: 1.6rem; border-radius: var(--th-r-lg); color: #cbd5e1;
    background: radial-gradient(400px 220px at 100% 0%, rgba(37, 211, 102, .25), transparent 60%), linear-gradient(140deg, #0b2545, #133e6d); box-shadow: var(--th-shadow-md); }
.th-site .th-ct-wa h3 { margin: 0; color: #fff; font: 800 1.35rem/1.2 var(--th-font-head); }
.th-ct-wa p { margin: 0 0 .4rem; font-size: .92rem; line-height: 1.6; }
.th-ct-wa .th-btn { justify-self: start; }
.th-ct-card { padding: 1.5rem; border-radius: var(--th-r-lg); background: rgba(255, 255, 255, .75); border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--th-shadow-sm);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.th-site .th-ct-card h3 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .9rem; font: 700 1rem/1.2 var(--th-font-head); color: var(--th-ink); }
.th-ct-card h3 svg { color: #aa538c; }
.th-ct-hours { margin: 0; display: grid; }
.th-ct-hours > div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed #e2e8f0; font-size: .9rem; }
.th-ct-hours > div:last-child { border-bottom: 0; }
.th-ct-hours dt { color: #64748b; }
.th-ct-hours dd { margin: 0; font-weight: 600; color: var(--th-ink); text-align: right; }
.th-ct-hours small { display: block; font-weight: 400; color: #94a3b8; font-size: .75rem; }
.th-ct-note { margin: .6rem 0 0; font-size: .8rem; color: #94a3b8; }

.th-ct__offices { display: grid; gap: 1.75rem; scroll-margin-top: calc(var(--th-header-h, 0px) + 24px); }
.th-ct__office-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.th-ct-office { display: flex; flex-direction: column; gap: .35rem; padding: 1.25rem 1.1rem; border-radius: var(--th-r-lg);
    background: rgba(255, 255, 255, .75); border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--th-shadow-sm);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: transform .4s var(--th-ease), box-shadow .4s var(--th-ease), border-color .3s; }
.th-ct-office:hover { transform: translateY(-4px); box-shadow: var(--th-shadow-md); border-color: rgba(170, 83, 140, .35); }
.th-ct-office__top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .25rem; }
.th-ct-office__flag { font-size: 1.6rem; line-height: 1; }
.th-ct-office__time { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 600; color: #3f5a0e; background: rgba(174, 210, 84, .28); }
.th-site .th-ct-office h3 { margin: 0; font: 800 1.15rem/1.2 var(--th-font-head); color: var(--th-ink); }
.th-ct-office__name { margin: 0; font-size: .78rem; font-weight: 600; color: #aa538c; }
.th-ct-office__addr { margin: 0; font-size: .85rem; line-height: 1.5; color: #64748b; flex: 1; }
.th-ct-office__links { display: grid; gap: .35rem; margin-top: .6rem; padding-top: .75rem; border-top: 1px solid rgba(15, 23, 42, .07); }
.th-ct-office__links a { display: flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; color: #334155; transition: color .2s; min-width: 0; }
.th-ct-office__links a[href^="mailto"] { font-size: .74rem; letter-spacing: -.01em; overflow-wrap: anywhere; }
.th-ct-office__links a svg { flex: none; color: #aa538c; }
.th-ct-office__links a:hover { color: #aa538c; }

@media (max-width: 1200px) { .th-ct__office-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1023px) {
    .th-ct__main { grid-template-columns: 1fr; }
    .th-ct__quick { grid-template-columns: 1fr; gap: .6rem; }
    .th-ct__office-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .th-ct { padding-top: 1.75rem; }
    .th-ct .th-team__glow { display: none; }
    .th-ct-quick { padding: .85rem 2.2rem .85rem .9rem; }
    .th-ct-quick__icon { width: 40px; height: 40px; border-radius: 12px; }
    .th-ct-form__grid { grid-template-columns: 1fr; }
    .th-ct-form__foot .th-btn { width: 100%; justify-content: center; }
    .th-ct__office-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .th-ct-quick, .th-ct-office { transition: none; } .th-ct-quick:hover, .th-ct-office:hover { transform: none; } }

.th-dark .th-ct { background: linear-gradient(180deg, #0b1220, #0e1628 50%, #0b1220); }
.th-dark .th-ct-quick, .th-dark .th-ct-card, .th-dark .th-ct-office { background: rgba(17, 26, 43, .7); border-color: rgba(255, 255, 255, .08); color: #e2e8f0; }
.th-dark .th-site .th-ct-card h3, .th-dark .th-site .th-ct-office h3, .th-dark .th-ct-hours dd { color: #f1f5f9; }
.th-dark .th-ct-field label { color: #cbd5e1; }
.th-dark .th-ct-hours > div { border-color: #22304a; }
.th-dark .th-ct-office__links { border-color: rgba(255, 255, 255, .08); }
.th-dark .th-ct-office__links a { color: #cbd5e1; }
.th-dark .th-ct-office__time { color: #d9f09a; background: rgba(174, 210, 84, .14); }
.th-dark .th-ct-office__name { color: #e7a8d2; }
.th-dark .th-ct-alert { background: rgba(153, 27, 27, .2); border-color: rgba(248, 113, 113, .4); color: #fecaca; }

/* ==========================================================================
   23. Blog & articles (.th-blog, .th-art, .th-post, .th-prose)
   ========================================================================== */
.th-gal__filters a { padding: .5rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 600; color: #475569; text-decoration: none;
    background: rgba(255, 255, 255, .7); border: 1px solid var(--th-line); transition: color .2s, background .2s, border-color .2s; }
.th-gal__filters a:hover { color: #aa538c; border-color: rgba(170, 83, 140, .4); }
.th-gal__filters a.is-active { color: #fff; background: #aa538c; border-color: #aa538c; }

.th-blog { position: relative; overflow: hidden; padding: clamp(2.5rem, 5vw, 4rem) var(--th-gutter) clamp(3rem, 6vw, 5rem);
    background: linear-gradient(180deg, #f6f7fb 0%, #eef0f8 50%, #f6f7fb 100%); }
.th-blog__inner { position: relative; max-width: var(--th-max); margin: 0 auto; display: grid; gap: clamp(1.75rem, 4vw, 3rem); }
.th-blog__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.2vw, 2rem); }

/* Article card */
.th-art { position: relative; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
    background: rgba(255, 255, 255, .8); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 20px 40px -30px rgba(15, 23, 42, .35);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: transform .5s var(--th-ease), box-shadow .5s var(--th-ease), border-color .3s; }
.th-art:hover { transform: translateY(-6px); border-color: rgba(170, 83, 140, .3); box-shadow: 0 34px 60px -30px rgba(170, 83, 140, .5); }
.th-art__cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0b2545; }
.th-art__cover picture, .th-art__cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--th-ease); }
.th-art:hover .th-art__cover img { transform: scale(1.05); }
.th-art:hover .th-tm__shine { transform: translateX(320%) skewX(-18deg); transition: transform 1.1s var(--th-ease); }
.th-art__art { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: .6rem; padding: 1.25rem; color: #fff;
    background: radial-gradient(420px 220px at 85% 10%, rgba(174, 210, 84, .35), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(170, 83, 140, .6), transparent 60%), linear-gradient(135deg, #0b2545, #173d6c);
    transition: transform .9s var(--th-ease); }
.th-art__art::before { content: ""; position: absolute; inset: 0; opacity: .18;
    background-image: linear-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .5) 1px, transparent 1px); background-size: 28px 28px;
    -webkit-mask: linear-gradient(200deg, #000, transparent 70%); mask: linear-gradient(200deg, #000, transparent 70%); }
.th-art:hover .th-art__art { transform: scale(1.04); }
.th-art__art-icon { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.th-art__art-cat { position: relative; font: 700 .78rem/1 var(--th-font-body); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.th-art__body { display: flex; flex-direction: column; gap: .55rem; flex: 1; padding: 1.25rem 1.35rem 1.35rem; }
.th-art__meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.th-art__cat, .th-art__type { padding: .25rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.th-art__cat { color: #aa538c; background: rgba(170, 83, 140, .1); }
.th-art__type { color: #3f5a0e; background: rgba(174, 210, 84, .3); }
.th-site main .th-art__title { margin: 0; font: 800 1.15rem/1.3 var(--th-font-head); letter-spacing: -.01em; color: var(--th-ink); }
.th-art__title a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .4s var(--th-ease), color .3s; }
.th-art:hover .th-art__title a { color: #aa538c; background-size: 100% 1.5px; }
.th-art__title a::after { content: ""; position: absolute; inset: 0; } /* whole card is clickable */
.th-art__excerpt { margin: 0; color: #64748b; font-size: .9rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.th-art__foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: .9rem; border-top: 1px solid rgba(15, 23, 42, .07); font-size: .8rem; color: #94a3b8; }
.th-art__more { display: inline-flex; align-items: center; gap: .3rem; color: #aa538c; font-weight: 700; transition: gap .3s var(--th-ease); }
.th-art:hover .th-art__more { gap: .55rem; }

/* Featured (first) article */
.th-art--featured { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.th-art--featured .th-art__cover { aspect-ratio: auto; min-height: 340px; }
.th-art--featured .th-art__body { padding: clamp(1.5rem, 3vw, 2.5rem); justify-content: center; gap: .8rem; }
.th-site main .th-art--featured .th-art__title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); line-height: 1.2; }
.th-art--featured .th-art__excerpt { font-size: 1rem; -webkit-line-clamp: 4; }
.th-art--featured .th-art__art-icon { width: 72px; height: 72px; }
.th-art--featured .th-art__foot { margin-top: .5rem; }

.th-blog__pager nav { display: flex; justify-content: center; }

/* Article page */
.th-read-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 120; height: 3px; pointer-events: none; }
.th-read-progress span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, #aa538c, var(--th-accent)); }
.th-post { position: relative; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(1.5rem, 3vw, 2.75rem); align-items: start; }
.th-post__main { padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--th-r-xl); background: rgba(255, 255, 255, .85); border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--th-shadow-md); }
.th-post__cover { margin: 0 0 1.75rem; border-radius: 18px; overflow: hidden; }
.th-post__cover img { display: block; width: 100%; height: auto; }
.th-post__lead { margin: 0 0 1.5rem; padding-left: 1rem; border-left: 3px solid #aa538c; font-size: 1.15rem; line-height: 1.65; color: #334155; font-weight: 500; }
.th-post__end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid rgba(15, 23, 42, .08); }
.th-post__views { font-size: .85rem; color: #94a3b8; }
.th-post__sticky { position: sticky; top: calc(var(--th-header-h, 0px) + 1.5rem); display: grid; gap: 1.25rem; }
.th-post__share-links { position: relative; display: flex; flex-wrap: wrap; gap: .5rem; }
.th-post__share-links a, .th-post__share-links button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #475569;
    background: rgba(248, 250, 252, .9); border: 1px solid var(--th-line); transition: color .2s, background .2s, transform .3s var(--th-ease), border-color .2s; }
.th-post__share-links a:hover, .th-post__share-links button:hover { color: #fff; background: #aa538c; border-color: #aa538c; transform: translateY(-2px); }
.th-post__copied { flex-basis: 100%; font-size: .8rem; font-weight: 600; color: #3f8a1c; }
.th-post__related { margin-top: clamp(3rem, 6vw, 4.5rem); }

/* Readable article typography */
.th-prose { color: #334155; font-size: 1.0625rem; line-height: 1.8; max-width: 72ch; }
.th-prose > * + * { margin-top: 1.15em; }
.th-site .th-prose h2 { margin-top: 2em; font: 800 1.55rem/1.25 var(--th-font-head); letter-spacing: -.02em; color: var(--th-ink); }
.th-site .th-prose h3 { margin-top: 1.7em; font: 700 1.25rem/1.3 var(--th-font-head); color: var(--th-ink); }
.th-site .th-prose h4 { margin-top: 1.5em; font: 700 1.05rem/1.35 var(--th-font-head); color: var(--th-ink); }
.th-prose strong, .th-prose b { color: var(--th-ink); }
.th-prose a { color: #aa538c; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.th-prose ul, .th-prose ol { padding-left: 1.4em; }
.th-prose ul { list-style: disc; } .th-prose ol { list-style: decimal; }
.th-prose li + li { margin-top: .45em; }
.th-prose li::marker { color: #aa538c; }
.th-prose blockquote { margin-left: 0; padding: 1rem 1.25rem; border-left: 4px solid var(--th-accent); border-radius: 0 12px 12px 0; background: rgba(174, 210, 84, .12); font-style: italic; color: #1e293b; }
.th-prose img { border-radius: 14px; max-width: 100%; height: auto; }
.th-prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.th-prose th, .th-prose td { padding: .6rem .8rem; border: 1px solid var(--th-line); text-align: left; }
.th-prose th { background: var(--th-surface-2); color: var(--th-ink); }
.th-prose hr { border: 0; height: 1px; background: var(--th-line); margin: 2em 0; }
.th-prose code { padding: .1em .35em; border-radius: 6px; background: var(--th-surface-2); font-size: .9em; }

@media (max-width: 1023px) {
    .th-blog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .th-art--featured { grid-template-columns: 1fr; }
    .th-art--featured .th-art__cover { min-height: 0; aspect-ratio: 16 / 9; }
    .th-post { grid-template-columns: 1fr; }
    .th-post__sticky { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .th-blog { padding-top: 1.75rem; }
    .th-blog .th-team__glow { display: none; }
    .th-blog__grid { grid-template-columns: 1fr; }
    .th-art__excerpt { -webkit-line-clamp: 2; }
    .th-art--featured .th-art__excerpt { -webkit-line-clamp: 3; }
    .th-post__main { padding: 1.25rem; border-radius: var(--th-r-lg); }
    .th-post__sticky { grid-template-columns: 1fr; }
    .th-prose { font-size: 1rem; line-height: 1.75; }
    .th-site .th-prose h2 { font-size: 1.3rem; }
    .th-post__lead { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
    .th-art, .th-art__cover img, .th-art__art { transition: none; }
    .th-art:hover { transform: none; }
}

.th-dark .th-blog { background: linear-gradient(180deg, #0b1220, #0e1628 50%, #0b1220); }
.th-dark .th-art, .th-dark .th-post__main { background: rgba(17, 26, 43, .75); border-color: rgba(255, 255, 255, .08); }
.th-dark .th-site main .th-art__title, .th-dark .th-site .th-prose h2, .th-dark .th-site .th-prose h3, .th-dark .th-site .th-prose h4,
.th-dark .th-prose strong, .th-dark .th-prose b, .th-dark .th-prose th { color: #f1f5f9; }
.th-dark .th-art:hover .th-art__title a { color: #e7a8d2; }
.th-dark .th-art__excerpt, .th-dark .th-post__views { color: #94a3b8; }
.th-dark .th-art__foot, .th-dark .th-post__end { border-color: rgba(255, 255, 255, .08); }
.th-dark .th-art__cat { color: #e7a8d2; background: rgba(170, 83, 140, .2); }
.th-dark .th-art__type { color: #d9f09a; background: rgba(174, 210, 84, .14); }
.th-dark .th-prose, .th-dark .th-post__lead { color: #cbd5e1; }
.th-dark .th-prose blockquote { color: #e2e8f0; }
.th-dark .th-prose th { background: #0b1220; }
.th-dark .th-prose th, .th-dark .th-prose td { border-color: #22304a; }
.th-dark .th-post__share-links a, .th-dark .th-post__share-links button { color: #cbd5e1; background: #0b1220; border-color: #22304a; }
.th-dark .th-gal__filters a { color: #cbd5e1; background: rgba(17, 26, 43, .7); border-color: #22304a; }
.th-dark .th-gal__filters a.is-active { color: #fff; background: #aa538c; border-color: #aa538c; }
.th-blog__inner.th-post__related { max-width: 1180px; }

/* ==========================================================================
   24. Top utility bar on phones: one compact row (region | Verify · Portal)
   ========================================================================== */
.th-utility__short { display: none; }
@media (max-width: 639px) {
    .th-utility { padding-top: .4rem !important; padding-bottom: .4rem !important; font-size: .72rem !important; }
    .th-utility .th-utility__row { flex-wrap: nowrap; gap: .5rem; }
    .th-utility__row > div:first-child { min-width: 0; }
    .th-utility__row > div:first-child button { max-width: 100%; white-space: nowrap; }
    .th-utility__right { flex: none; gap: .5rem; }
    .th-utility__right > * + * { margin-left: 0 !important; }
    .th-utility__long, .th-utility__sep { display: none; }
    .th-utility__short { display: inline; }
    .th-utility__right a { padding: .2rem .55rem; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
}

/* ==========================================================================
   25. Hero on tablet & phone: the photo is the slide background and the text
       sits on top of it (replaces the earlier "photo above text" layout)
   ========================================================================== */
@media (max-width: 1100px) {
    .th-hero { --hero-min: clamp(560px, 92vw, 720px); }
    .th-hero__slide { padding-top: clamp(2.25rem, 6vw, 3.5rem); padding-bottom: 6.5rem; justify-content: center; background: #0b0614; }
    .th-hero__media { position: absolute; inset: 0; width: auto; aspect-ratio: auto; margin: 0; }
    .th-hero__media::after { content: none; }
    .th-hero__slide .th-hero__scrim { display: block; }
    .th-hero__slide--split .th-hero__scrim,
    .th-hero__slide--editorial .th-hero__scrim,
    .th-hero__slide--spotlight .th-hero__scrim {
        background:
            linear-gradient(180deg, rgba(9, 12, 28, .55) 0%, rgba(9, 12, 28, .62) 35%, rgba(9, 12, 28, .86) 72%, rgba(9, 12, 28, .94) 100%),
            radial-gradient(70% 45% at 0% 100%, rgba(170, 83, 140, .32), transparent 70%);
    }
    .th-hero__title, .th-hero__text, .th-hero__eyebrow { text-shadow: 0 2px 14px rgba(0, 0, 0, .45); }
    .th-hero__editorial { grid-template-columns: 1fr; }   /* slide 3 copy uses the full width */
}
@media (max-width: 767px) {
    .th-hero { --hero-min: 600px; }
    .th-hero__slide { justify-content: flex-end; padding-top: 2.5rem; }
    .th-hero__img { object-position: center 40%; }
    .th-hero__slide--spotlight .th-hero__img { object-position: 45% 40%; }
    .th-hero__pillars li { background: rgba(9, 12, 28, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
