/* ============================================
   Equivox – Care Reimagined
   ProjektioCMS Theme
   ============================================ */

:root {
    --med-black: #ffffff;
    --med-dark: #f5f8fc;
    --med-charcoal: #edf1f7;
    --med-surface: #e4eaf3;
    --med-card: #ffffff;
    --med-border: rgba(26,48,92,0.09);
    --med-text: #2a3a4e;
    --med-muted: #6b7a8d;
    --med-dim: #a0aebb;
    --med-white: #1a3055;
    --med-cream: #1a3055;
    --med-accent: #0dcfc0;
    --med-accent-dark: #0ab3a3;
    --font-display: 'Poppins', -apple-system, sans-serif;
    --font-body: 'Poppins', -apple-system, sans-serif;
    --container: 1420px;
    --gap: clamp(1.5rem, 4vw, 3rem);
    --section-pad: clamp(5rem, 10vw, 9rem);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light theme is now the default */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); font-weight: 300; color: var(--med-text); background: var(--med-black); line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gap); }
/* ============================================
   PAGE TRANSITION
   ============================================ */
body {
    animation: pageEnter 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
body.page-leaving {
    animation: pageLeave 0.28s ease forwards;
    pointer-events: none;
}
@keyframes pageLeave {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-8px); }
}


/* ---- Utilities ---- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }


/* ============================================
   HEADER — Glass Effect
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid rgba(26, 48, 92, 0.08);
    box-shadow: 0 1px 0 rgba(26, 48, 92, 0.06);
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s var(--ease-out), backdrop-filter 0.4s ease;
}
.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(24px) saturate(200%) brightness(1.02);
    -webkit-backdrop-filter: blur(24px) saturate(200%) brightness(1.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 32px rgba(26, 48, 92, 0.08), inset 0 -1px 0 rgba(255,255,255,0.6);
    padding: 0.75rem 0;
}
.header__inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--gap); display: flex; align-items: center; gap: 2rem; }
.header__logo { display: flex; align-items: center; flex: 1; }
.header__logo img { height: 40px; width: auto; }
/* Dark logo always shown — header is always on white/light bg */
.logo-dark { display: block; }
.logo-light { display: none; }
.logo-text { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--med-white); }
.header__nav { display: none; gap: 0.5rem; }
@media (min-width: 1024px) { .header__nav { display: flex; } }
.header__nav a { padding: 0.4rem 1rem; font-size: 0.8rem; font-weight: 600; color: rgba(26,48,92,0.6); transition: color 0.4s, border-color 0.4s; letter-spacing: 0.01em; }
.header__nav a:hover, .header__nav a.is-active { color: var(--med-white); }

/* ---- Reactive Header: Light Mode ---- */
.site-header {
    transition: background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease, padding 0.4s var(--ease-out);
}
/* header--light: inherits solid white default, glass on scroll */
.header--light {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid rgba(26, 48, 92, 0.08);
    box-shadow: 0 1px 0 rgba(26, 48, 92, 0.06);
}
.header--light.is-scrolled {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(24px) saturate(200%) brightness(1.02) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%) brightness(1.02) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 4px 32px rgba(26, 48, 92, 0.08), inset 0 -1px 0 rgba(255,255,255,0.6) !important;
}
.header--light .header__nav a { color: rgba(0,0,0,0.5); }
.header--light .header__nav a:hover,
.header--light .header__nav a.is-active { color: #111; }
.header--light .btn--sm,
.header--light .site-header .btn {
    border-color: rgba(0,0,0,0.2) !important;
    color: #333 !important;
    background: transparent !important;
}
.header--light .btn--sm:hover {
    border-color: rgba(0,0,0,0.4) !important;
    background: rgba(0,0,0,0.05) !important;
}
.header--light .header__login {
    color: #555;
    border-color: rgba(0,0,0,0.2);
}
.header--light .header__login:hover {
    color: #111;
    border-color: rgba(0,0,0,0.4);
}
.header--light .header__burger span { background: #333; }
.header--light .logo-text { color: #111; }
.header__actions { display: flex; align-items: center; gap: 0.75rem; margin-left: 0; flex: 1; justify-content: flex-end; }
@media (min-width: 1024px) { .header__actions { justify-content: flex-end; } }
.header__link { font-size: 0.8rem; color: rgba(26,48,92,0.6); transition: color 0.3s; display: none; }
@media (min-width: 900px) { .header__link { display: inline; } }
.header__link:hover { color: var(--med-white); }
.header__login { font-size: 0.8rem; color: rgba(26,48,92,0.6); transition: color 0.3s; display: none; border: 1px solid rgba(26,48,92,0.2); border-radius: 50px; padding: 0.45em 1.2em; }
@media (min-width: 768px) { .header__login { display: inline-block; } }
.header__login:hover { color: var(--med-white); border-color: rgba(26,48,92,0.4); background: rgba(26,48,92,0.05); }

/* ---- Burger ---- */
.header__burger { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
@media (min-width: 1024px) { .header__burger { display: none; } }
.header__burger span { width: 22px; height: 1.5px; background: var(--med-white); transition: all 0.3s; transform-origin: center; }
.header__burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.header__burger.is-open span:nth-child(2) { opacity: 0; }
.header__burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---- Mobile Nav ---- */
.mobile-nav { position: fixed; inset: 0; z-index: 999; background: var(--med-black); opacity: 0; visibility: hidden; transition: all 0.4s var(--ease-out); display: flex; align-items: center; justify-content: center; }
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav__inner { text-align: center; display: flex; flex-direction: column; gap: 1rem; }
.mobile-nav__inner a { font-family: var(--font-display); font-size: 1.8rem; color: var(--med-text); transition: color 0.3s; }
.mobile-nav__inner a:hover { color: var(--med-accent); }
.mobile-nav__inner hr { border: none; border-top: 1px solid var(--med-border); margin: 1rem 0; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.65em 1.6em; font-family: var(--font-body); font-size: 0.82rem; font-weight: 500; color: var(--med-black); background: var(--med-cream); border: none; border-radius: 6px; cursor: pointer; transition: all 0.3s var(--ease-out); text-decoration: none; letter-spacing: 0.01em; }
.btn:hover { background: var(--med-white); transform: translateY(-1px); }
.btn--sm, .site-header .btn { padding: 0.5em 1.4em; font-size: 0.78rem; border: 1px solid rgba(26,48,92,0.2); background: transparent; color: rgba(26,48,92,0.8); border-radius: 50px; }
.btn--sm:hover, .site-header .btn:hover { border-color: rgba(26,48,92,0.4); background: rgba(26,48,92,0.06); color: var(--med-white); transform: none; }
.btn--outline { background: transparent; color: var(--med-white); border: 1px solid rgba(26,48,92,0.2); }
.btn--outline:hover { border-color: var(--med-white); background: var(--med-white); color: #fff; }
.btn--accent { background: var(--med-accent); color: var(--med-black); }
.btn--accent:hover { background: var(--med-accent-dark); }
.btn--lg { padding: 0.85em 2.2em; font-size: 0.9rem; }

/* ============================================
   HERO — Video Background
   ============================================ */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; background: var(--med-black); }
.hero__video { position: absolute; inset: 0; z-index: 0; }
.hero__video video { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: rgba(8,12,25,0.7); z-index: 1; }
.hero__content { position: relative; z-index: 2; max-width: var(--container); margin: 0 auto; padding: 8rem var(--gap) 16rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__subtitle { font-size: 0.85rem; font-weight: 400; letter-spacing: 0.08em; color: rgba(255,255,255,0.7); margin-bottom: 1.5rem; }
.hero__title { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; line-height: 1.15; color: #ffffff; margin-bottom: 1.5rem; max-width: 900px; white-space: nowrap; }
.hero__title-light { font-weight: 300; color: #ffffff; }
.dtext {
    background: linear-gradient(135deg, #0dcfc0 0%, #4d7fff 25%, #0dcfc0 45%, #6b9fff 65%, #0ab3a3 85%, #4d7fff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: apple-titanium 4s linear infinite;
}
@keyframes apple-titanium {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
.hero__desc { font-size: 1rem; color: rgba(255,255,255,0.75); max-width: 560px; margin-bottom: 2.5rem; line-height: 1.8; }
.hero__desc strong { color: #ffffff; font-weight: 500; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero__stat { display: flex; align-items: baseline; gap: 0.75rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--med-border); }
.hero__stat-number { font-family: var(--font-display); font-size: 2.5rem; font-weight: 400; color: var(--med-accent); }
.hero__stat-label { font-size: 0.85rem; color: var(--med-muted); max-width: 220px; }

/* ---- Sections ---- */
.section { padding: var(--section-pad) 0; }
.section--dark { background: #f8fafd; }
.section--surface { background: var(--med-surface); }
.section__label { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--med-accent); margin-bottom: 1rem; display: block; }
.section__title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; line-height: 1.2; color: var(--med-white); margin-bottom: 1rem; }
.section__subtitle { font-size: 0.85rem; font-weight: 400; letter-spacing: 0.05em; color: var(--med-muted); margin-bottom: 0.5rem; }
.section__desc { font-size: 1rem; color: var(--med-muted); max-width: 600px; line-height: 1.8; }

/* ---- Steps (How it works) ---- */
.steps { counter-reset: step; }
.step { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; padding: 3rem 0; border-bottom: 1px solid var(--med-border); }
@media (min-width: 768px) { .step { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.step:nth-child(even) .step__image { order: -1; }
@media (max-width: 767px) { .step:nth-child(even) .step__image { order: 0; } }
.step__image { overflow: hidden; border-radius: 12px; min-width: 0; }
.step__image img { border-radius: 12px; width: 100%; height: auto; max-height: 400px; object-fit: cover; display: block; }
.step__content { counter-increment: step; min-width: 0; }
.step__number { font-family: var(--font-display); font-size: 3.5rem; font-weight: 400; color: var(--med-accent); line-height: 1; margin-bottom: 1rem; opacity: 0.4; }
.step__number::before { content: counter(step) "."; }
.step__title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; color: var(--med-white); margin-bottom: 0.75rem; }
.step__desc { font-size: 0.95rem; color: var(--med-muted); line-height: 1.8; }

/* ---- Philosophy ---- */
.philosophy { text-align: left; }
.philosophy .section__title { max-width: 100%; margin-bottom: 1rem; font-weight: 300; white-space: nowrap; }
.philosophy .section__title strong { font-weight: 800; }
.philosophy .section__desc { max-width: 850px; }

/* ---- CTA ---- */
.cta { text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(13,207,192,0.06) 0%, transparent 70%); }
.cta__inner { position: relative; z-index: 2; }
.cta .section__desc { margin: 0 auto 2rem; }

/* ---- Pillars ---- */
.pillars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.pillar-card { background: var(--med-card); border: 1px solid var(--med-border); border-radius: 12px; padding: 2rem; transition: all 0.4s var(--ease-out); }
.pillar-card:hover { border-color: rgba(196,168,130,0.2); transform: translateY(-3px); }
.pillar-card__image { width: 48px; height: 48px; margin-bottom: 1.5rem; opacity: 0.7; }
.pillar-card__image img { width: 100%; height: 100%; object-fit: contain; }
.pillar-card__title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; color: var(--med-white); margin-bottom: 0.5rem; }
.pillar-card__desc { font-size: 0.85rem; color: var(--med-muted); line-height: 1.7; }

/* ---- Partners ---- */
.partners { text-align: center; }
.partners-logos { display: flex; gap: 3rem; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 2rem; opacity: 0.5; }
.partners-logos img { height: 40px; width: auto; filter: brightness(0) invert(1); }

/* ---- Gallery ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0.5rem; }
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; transition: opacity 0.3s; }
.gallery-grid img:hover { opacity: 0.8; }

/* ---- Page Header (inner pages) ---- */
.page-header { padding: 10rem 0 4rem; text-align: center; position: relative; }
.page-header::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(13,207,192,0.06) 0%, transparent 70%); }
.page-header__inner { position: relative; z-index: 2; }
.page-header__title { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 400; color: var(--med-white); margin-bottom: 0.5rem; }
.page-header__sub { font-size: 0.95rem; color: var(--med-muted); }

/* ---- Team Grid ---- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 3rem; }
.team-card { background: var(--med-card); border: 1px solid var(--med-border); border-radius: 12px; overflow: hidden; transition: all 0.4s var(--ease-out); }
.team-card:hover { border-color: rgba(196,168,130,0.2); transform: translateY(-3px); }
.team-card__photo { aspect-ratio: 3/4; overflow: hidden; }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.team-card:hover .team-card__photo img { transform: scale(1.03); }
.team-card__info { padding: 1.5rem; }
.team-card__name { font-family: var(--font-display); font-size: 1.2rem; color: var(--med-white); margin-bottom: 0.15rem; }
.team-card__role { font-size: 0.8rem; color: var(--med-accent); letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.team-card__bio { font-size: 0.85rem; color: var(--med-muted); line-height: 1.7; }

/* ---- Services Grid ---- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.service-card { background: var(--med-card); border: 1px solid var(--med-border); border-radius: 12px; padding: 2.5rem 2rem; transition: all 0.4s var(--ease-out); }
.service-card:hover { border-color: rgba(196,168,130,0.2); transform: translateY(-3px); }
.service-card__title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; color: var(--med-white); margin-bottom: 0.75rem; }
.service-card__desc { font-size: 0.85rem; color: var(--med-muted); line-height: 1.7; }

/* ---- Divider ---- */
.divider { width: 40px; height: 1px; background: var(--med-accent); margin: 1.5rem 0; opacity: 0.5; }
.divider--center { margin: 1.5rem auto; }

/* ---- Footer ---- */
.site-footer {
    background: #323335;
    border-radius: 40px 40px 0 0;
    margin-top: 0;
    position: relative;
    z-index: 10;
}
.footer__top {
    padding: 5rem 0 4rem;
}
.footer__top-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gap);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}
@media (max-width: 768px) { .footer__top-inner { grid-template-columns: 1fr; gap: 2rem; } }
.footer__brand h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
}
.footer__tagline {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1rem;
    font-weight: 400;
}
.footer__desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    max-width: 400px;
    margin-bottom: 1.5rem;
}
.footer__social {
    display: flex;
    gap: 12px;
}
.footer__social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: all 0.3s;
}
.footer__social a:hover {
    border-color: rgba(255,255,255,0.5);
    color: #ffffff;
}
.footer__col h5 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: 0.6rem; }
.footer__col a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    transition: color 0.3s;
}
.footer__col a:hover { color: #ffffff; }
.footer__bottom {
    text-align: center;
    padding: 3rem 0 2.5rem;
    border-top: none;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--gap);
    padding-right: var(--gap);
}
.footer__logo-img {
    height: 50px;
    width: auto;
    margin: 0 auto 1rem;
    filter: brightness(0) invert(1);
}
.footer__address {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.5rem;
}
.footer__copy {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
}

/* ---- Scroll Animations ---- */
.fade-in { opacity: 0; transform: translateY(25px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }
.stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.stagger.is-visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger.is-visible > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.stagger.is-visible > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger.is-visible > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.stagger.is-visible > *:nth-child(6) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }

/* ---- Contact Form ---- */
.contact-form { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 500; color: var(--med-white); margin-bottom: 0.5rem; letter-spacing: 0.03em; }
.form-group input,
.form-group textarea,
.form-group select { width: 100%; padding: 0.85rem 1rem; background: var(--med-card); border: 1px solid var(--med-border); border-radius: 8px; color: var(--med-text); font-family: var(--font-body); font-size: 0.9rem; transition: border-color 0.3s; }
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--med-accent); }
.form-group textarea { min-height: 140px; resize: vertical; }

/* ============================================
   VITA PANELS — How It Works Cards
   ============================================ */
.vp-section {
    --vp-bg: #f8fafd;
    --vp-text-primary: #111110;
    --vp-text-muted: #6b6b67;
    --vp-radius-img: 14px;
    --vp-font-display: var(--font-display);
    --vp-font-body: var(--font-body);
    --vp-gap: 20px;
    --vp-section-py: 80px;
    --vp-img-height: auto;
    --vp-duration: 1.1s;
    --vp-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --vp-stagger: 200ms;
    padding: 0;
    background: var(--vp-bg);
    border-radius: 40px 40px 0 0;
    margin-top: -200px;
    position: relative;
    z-index: 3;
}
.vp-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 60px 50px 190px;
    background: transparent;
}
.vp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--vp-gap); align-items: start; }
@media (max-width: 900px) { .vp-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.vita-panel { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 0; opacity: 0; transform: translateY(32px); transition: opacity var(--vp-duration) var(--vp-ease), transform var(--vp-duration) var(--vp-ease); position: relative; z-index: 2; }
.vita-panel.vp-revealed { opacity: 1; transform: translateY(0); }
.vita-panel[data-step="1"] { transition-delay: 0ms; }
.vita-panel[data-step="2"] { transition-delay: var(--vp-stagger); }
.vita-panel[data-step="3"] { transition-delay: calc(var(--vp-stagger) * 2); }
.vita-panel__visual { position: relative; border-radius: var(--vp-radius-img); overflow: hidden; background: #1a1624; margin: 0; padding: 0; }
.vita-panel__image { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: center top; border-radius: var(--vp-radius-img); max-width: none; transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
.vita-panel:hover .vita-panel__image { transform: scale(1.03); }
.vita-panel__badge { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #ffffff; text-align: center; pointer-events: none; }
.vita-panel__stat { font-family: var(--vp-font-display); font-size: clamp(52px, 6vw, 72px); font-weight: 300; line-height: 1; letter-spacing: -0.02em; margin: 0; padding: 0; }
.vita-panel__stat-label { font-family: var(--vp-font-body); font-size: 13px; font-weight: 400; line-height: 1.5; color: rgba(255, 255, 255, 0.85); margin-top: 8px; }
.vita-panel__body { padding: 4px 2px 0; display: flex; flex-direction: column; gap: 6px; }
.vita-panel__number { font-family: var(--vp-font-body); font-size: 14px; font-weight: 500; color: var(--vp-text-primary); letter-spacing: 0.01em; margin: 0; padding: 0; }
.vita-panel__title { font-family: var(--vp-font-body); font-size: clamp(15px, 1.4vw, 16px); font-weight: 500; color: var(--vp-text-primary); line-height: 1.35; margin: 0; padding: 0; }
.vita-panel__desc { font-family: var(--vp-font-body); font-size: 14px; font-weight: 300; color: var(--vp-text-muted); line-height: 1.65; max-width: 36ch; margin: 0; padding: 0; }
@media (prefers-reduced-motion: reduce) { .vita-panel { opacity: 1; transform: none; transition: none; } }

/* ============================================
   WAVES TRANSITION
   ============================================ */
.waves-wrap {
    position: relative;
    width: 100%;
    background: #f8fafd;
    margin-top: -170px;
    margin-bottom: -2px;
    z-index: 4;
}
.waves-wrap::after {
    content: '';
    display: block;
    height: 80px;
    background: #f8fafd;
    margin-top: -2px;
}
.waves {
    position: relative;
    width: 100%;
    height: 16vh;
    margin-bottom: 0;
    min-height: 100px;
    max-height: 150px;
    display: block;
}
.waves.no-animation .moving-waves > use { animation: none; }
.moving-waves > use { animation: wave-move 40s cubic-bezier(.55,.5,.45,.5) infinite; }
.moving-waves > use:first-child { animation-delay: -2s; animation-duration: 11s; }
.moving-waves > use:nth-child(2) { animation-delay: -4s; animation-duration: 13s; }
.moving-waves > use:nth-child(3) { animation-delay: -3s; animation-duration: 15s; }
.moving-waves > use:nth-child(4) { animation-delay: -4s; animation-duration: 20s; }
.moving-waves > use:nth-child(5) { animation-delay: -4s; animation-duration: 25s; }
.moving-waves > use:nth-child(6) { animation-delay: -3s; animation-duration: 30s; }
@keyframes wave-move {
    0% { transform: translate3d(-90px, 0, 0); }
    100% { transform: translate3d(85px, 0, 0); }
}

/* ============================================
   PHILOSOPHY VIDEO SECTION
   ============================================ */
#fe-membership-footer-video-wrap {
    position: relative;
    display: block;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
}
#fe-membership-footer-video {
    border-radius: 20px;
    display: block;
    width: 100%;
    height: auto;
    min-height: 500px;
    object-fit: cover;
}
#fe-membership-footer-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 20px;
    pointer-events: none;
}
#fe-membership-footer-video-text {
    position: absolute;
    bottom: 60px;
    left: 33%;
    right: 30px;
    text-align: left;
    color: #ffffff;
}
#fe-membership-footer-video-text h2 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 300;
    color: #ffffff;
    margin: 0 0 20px;
    line-height: 1.15;
}
#fe-membership-footer-video-text h2 strong {
    font-weight: 800;
}
#fe-membership-footer-video-text p {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 10px;
    max-width: none;
    padding-right: 20px;
}
#fe-membership-footer-video-text p:last-child {
    margin-bottom: 0;
}

/* Section Heading with lines */
.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: #0dcfc0;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.section-heading .line {
    display: block;
    flex: 0 1 100px;
    height: 1px;
    background-color: #0dcfc0;
}

@media (max-width: 768px) {
    #fe-membership-footer-video-text {
        left: 20px;
        right: 20px;
        bottom: 30px;
    }
}

/* ============================================
   FOUR PILLARS INTRO
   ============================================ */
.pillars-intro { text-align: center; padding: var(--section-pad) 0; }
.pillars-intro__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--med-white);
    margin-bottom: 1.5rem;
}
.pillars-intro__title strong {
    font-weight: 800;
}
.pillars-intro__desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--med-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   PILLARS CAROUSEL
   ============================================ */
.pillars-carousel-section { overflow: visible; }
.pillars-carousel-wrap {
    position: relative;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gap);
    overflow: visible;
}
.pillars-carousel {
    overflow: hidden;
}
.pillars-carousel__track {
    display: flex;
    gap: 20px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.pillars-carousel__card {
    position: relative;
    z-index: 2;
    min-width: calc(50% - 10px);
    aspect-ratio: 3 / 2.5;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
}
.pillars-carousel__card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.pillars-carousel__card:hover img {
    transform: scale(1.04);
}
.pillars-carousel__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.65) 100%);
    pointer-events: none;
}
.pillars-carousel__text {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    color: #fff;
}
.pillars-carousel__text h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #fff;
}
.pillars-carousel__text p {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    margin: 0;
}

/* Glass nav button */
.pillars-carousel__btn {
    position: absolute;
    right: -32px;
    top: 50%;
    transform: translateY(-50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
    background: rgba(150, 160, 180, 0.35);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.35),
        inset 0 -1px 0 rgba(0,0,0,0.08),
        0 4px 24px rgba(0,0,0,0.2);
    transition: all 0.25s ease;
    z-index: 10;
}
.pillars-carousel__btn:hover {
    background: rgba(150, 160, 180, 0.5);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.5),
        inset 0 -1px 0 rgba(0,0,0,0.06),
        0 6px 32px rgba(0,0,0,0.25);
    color: #fff;
}

@media (max-width: 900px) {
    .pillars-carousel__card {
        min-width: calc(80% - 10px);
    }
}

/* ============================================
   PARTNERS SECTION
   ============================================ */
.partners-section { padding: var(--section-pad) 0; }
.partners-arrow {
    margin-bottom: 30px;
}
.partners-section__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    color: var(--med-white);
    margin-bottom: 1rem;
}
.partners-section__desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--med-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
}
.partners-logos-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    flex-wrap: wrap;
}
.partners-logos-row img {
    height: 40px;
    width: auto;
    filter: brightness(0) saturate(0);
    opacity: 0.9;
    transition: opacity 0.3s;
}
.partners-logos-row img:hover {
    opacity: 1;
}
.partner-text {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--med-white);
    letter-spacing: -0.01em;
}

/* ============================================
   SOCIAL GALLERY STRIP
   ============================================ */
.gallery-strip-section { padding: 0 0 var(--section-pad); }
.gallery-strip {
    display: grid;
    grid-template-columns: 1fr 1fr 1.8fr 1fr 1fr;
    gap: 12px;
    align-items: center;
}
.gallery-strip__item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1;
}
.gallery-strip__item--cta {
    aspect-ratio: auto;
    height: auto;
    margin-top: 20px;
    margin-bottom: 20px;
}
.gallery-strip__item--cta img {
    aspect-ratio: 16 / 10;
}
.gallery-strip__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-strip__item:hover img {
    transform: scale(1.05);
}
.gallery-strip__item--cta .gallery-strip__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    pointer-events: none;
}
.gallery-strip__text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    width: 80%;
}
.gallery-strip__social {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
    letter-spacing: 0.05em;
}
.gallery-strip__connect {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

@media (max-width: 768px) {
    .gallery-strip {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 500px) {
    .gallery-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   THEME TOGGLE
   ============================================ */
.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.theme-toggle:hover {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.08);
}
.theme-toggle__icon { position: absolute; transition: opacity 0.3s, transform 0.4s var(--ease-out); }
.theme-toggle__sun { opacity: 1; transform: rotate(0deg); }
.theme-toggle__moon { opacity: 0; transform: rotate(-90deg) scale(0.5); }
[data-theme="light"] .theme-toggle { border-color: rgba(0,0,0,0.2); color: #333; }
[data-theme="light"] .theme-toggle:hover { border-color: rgba(0,0,0,0.4); background: rgba(0,0,0,0.05); }
[data-theme="light"] .theme-toggle__sun { opacity: 0; transform: rotate(90deg) scale(0.5); }
[data-theme="light"] .theme-toggle__moon { opacity: 1; transform: rotate(0deg) scale(1); }

/* ============================================
   LIGHT THEME OVERRIDES
   ============================================ */
[data-theme="light"] body { background: #ffffff; }
[data-theme="light"] .section--dark { background: #f5f5f3; }
[data-theme="light"] /* data-theme light: use same solid-white + scroll-glass pattern */
[data-theme="light"] .site-header {
    background: #ffffff;
}
[data-theme="light"] .site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.72);
}
[data-theme="light"] .header__nav a { color: rgba(0,0,0,0.6); }
[data-theme="light"] .header__nav a:hover,
[data-theme="light"] .header__nav a.is-active { color: #111; }
[data-theme="light"] .btn--sm,
[data-theme="light"] .site-header .btn {
    border-color: rgba(0,0,0,0.2) !important;
    color: #333 !important;
}
[data-theme="light"] .btn--sm:hover,
[data-theme="light"] .site-header .btn:hover {
    border-color: rgba(0,0,0,0.4) !important;
    background: rgba(0,0,0,0.05) !important;
    color: #111 !important;
}
[data-theme="light"] .header__login {
    color: #555;
    border-color: rgba(0,0,0,0.2);
}
[data-theme="light"] .header__login:hover {
    color: #111;
    border-color: rgba(0,0,0,0.4);
}
[data-theme="light"] .header__burger span { background: #333; }
[data-theme="light"] .mobile-nav { background: #ffffff; }
[data-theme="light"] .mobile-nav__inner a { color: #333; }
[data-theme="light"] .hero__overlay {
    background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.2) 40%, rgba(255,255,255,0.7) 100%);
}
[data-theme="light"] .hero__title,
[data-theme="light"] .hero__title-light { color: #111; }
[data-theme="light"] .hero__desc,
[data-theme="light"] .hero__desc strong { color: #444; }
[data-theme="light"] .hero__subtitle { color: #888; }
[data-theme="light"] .btn--outline { border-color: rgba(0,0,0,0.2); color: #333; }
[data-theme="light"] .btn--outline:hover { border-color: rgba(0,0,0,0.5); }
[data-theme="light"] .btn--lg:not(.btn--outline) { background: #111; color: #fff; }
[data-theme="light"] .btn--lg:not(.btn--outline):hover { background: #333; }
[data-theme="light"] .vp-section { background: var(--vp-bg); }
[data-theme="light"] .vp-container { background: transparent; }
[data-theme="light"] .philosophy .section__title,
[data-theme="light"] .philosophy .section__title strong { color: #111; }
[data-theme="light"] .philosophy .section__desc { color: #666; }
[data-theme="light"] .pillars-intro__title { color: #111; }
[data-theme="light"] .pillars-intro__desc { color: #666; }
[data-theme="light"] .partners-section__title { color: #111; }
[data-theme="light"] .partners-section__desc { color: #666; }
[data-theme="light"] .partner-text { color: #111; }
[data-theme="light"] .partners-logos-row img { filter: none; opacity: 0.7; }
[data-theme="light"] .gallery-strip-section { background: #f5f5f3; }
[data-theme="light"] .pillars-carousel__btn {
    background: rgba(0,0,0,0.08);
    border-color: rgba(0,0,0,0.12);
    color: #333;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
[data-theme="light"] .pillars-carousel__btn:hover {
    background: rgba(0,0,0,0.15);
}
[data-theme="light"] .section-heading { color: #9a7e5a; }
[data-theme="light"] .section-heading .line { background-color: #9a7e5a; }
[data-theme="light"] .partners-arrow svg { stroke: #9a7e5a; }
[data-theme="light"] .waves-wrap { background: #eeeee9; }

/* Smooth transition for theme change */
body, .site-header, .section--dark, .hero__overlay,
.header__nav a, .btn, .mobile-nav {
    transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero__title {
        white-space: normal;
        font-size: clamp(2rem, 5vw, 3.2rem);
        max-width: 100%;
    }
    .hero__content {
        padding: 7rem var(--gap) 14rem;
        text-align: center;
        align-items: center;
    }
    .hero__desc {
        max-width: 100%;
        font-size: 0.95rem;
    }
    .pillars-carousel__card {
        min-width: calc(50% - 10px);
    }
    #fe-membership-footer-video-text {
        left: 20%;
    }
}

@media (max-width: 768px) {
    .hero__title {
        font-size: clamp(1.9rem, 8vw, 2.6rem);
        white-space: normal;
        text-align: center;
    }
    .hero__content {
        padding: 6rem 1.25rem 12rem;
        text-align: center;
        align-items: center;
    }
    .hero__subtitle {
        font-size: 0.75rem;
    }
    .hero__desc {
        font-size: 0.88rem;
        max-width: 100%;
        text-align: center;
    }
    .hero__actions {
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 0.75rem;
    }
    .hero__actions .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        text-align: center;
    }
    .vp-section {
        border-radius: 30px 30px 0 0;
    }
@media (max-width: 480px) {
    .hero__title {
        font-size: clamp(1.6rem, 9vw, 2.2rem);
        line-height: 1.2;
    }
    .hero__content {
        padding: 5.5rem 1rem 10rem;
    }
    .hero__subtitle {
        font-size: 0.7rem;
        letter-spacing: 0.05em;
    }
    .hero__desc {
        font-size: 0.85rem;
        line-height: 1.7;
    }
    .hero__actions .btn {
        max-width: 100%;
        font-size: 0.82rem;
        padding: 0.75em 1.5em;
    }
}

    .vp-container {
        padding: 40px 20px 100px;
    }
    .vp-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    .philosophy .section__title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        white-space: normal;
    }
    .philosophy .section__desc {
        max-width: 100%;
        font-size: 0.9rem;
    }
    #fe-membership-footer-video {
        min-height: 400px;
    }
    #fe-membership-footer-video-text {
        left: 20px;
        right: 20px;
        bottom: 30px;
    }
    #fe-membership-footer-video-text h2 {
        font-size: 1.5rem;
    }
    .pillars-intro__title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .pillars-intro__desc {
        font-size: 0.85rem;
        max-width: 100%;
    }
    .pillars-carousel__card {
        min-width: calc(85% - 10px);
    }
    .pillars-carousel-section { padding-top: 1.5rem !important; }
    .partners-section__title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    .partners-logos-row {
        gap: 2rem;
    }
    .partner-text {
        font-size: 1.3rem;
    }
    .gallery-strip {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .gallery-strip__item--cta {
        grid-column: 1 / -1;
    }
    .footer__top-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    /* Undo negative margins on mobile */
    .pillars-intro.fade-in { margin-top: 0 !important; }
    .partners-section { margin-top: 0 !important; }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 1.6rem;
    }
    .hero__subtitle {
        font-size: 0.75rem;
    }
    .site-header { padding: 0.75rem 0; }
    .header__logo img { height: 32px; }
    .vp-section {
        border-radius: 24px 24px 0 0;
    }
    .vp-container {
        padding: 30px 16px 80px;
    }
    #fe-membership-footer-video-text h2 {
        font-size: 1.2rem;
    }
    #fe-membership-footer-video-text p {
        font-size: 13px;
    }
    .section-heading { font-size: 9px; }
    .pillars-carousel__btn { width: 48px; height: 48px; }
}

/* ============================================
   LIGHT PAGE (Contact, etc.)
   ============================================ */
.page-light { background: #f5f5f3; }
.page-light .site-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(26,48,92,0.08);
    box-shadow: 0 1px 0 rgba(26,48,92,0.06);
}
.page-light .site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(24px) saturate(200%) brightness(1.02);
    -webkit-backdrop-filter: blur(24px) saturate(200%) brightness(1.02);
    border-bottom: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 4px 32px rgba(26,48,92,0.08);
}
.page-light .header__nav a { color: rgba(0,0,0,0.55); }
.page-light .header__nav a:hover,
.page-light .header__nav a.is-active { color: #111; }
.page-light .btn--sm,
.page-light .site-header .btn {
    border-color: rgba(0,0,0,0.2) !important;
    color: #333 !important;
}
.page-light .btn--sm:hover,
.page-light .site-header .btn:hover {
    border-color: rgba(0,0,0,0.4) !important;
    background: rgba(0,0,0,0.05) !important;
}
.page-light .header__login {
    color: #555;
    border-color: rgba(0,0,0,0.2);
}
.page-light .header__login:hover {
    color: #111;
    border-color: rgba(0,0,0,0.4);
}
.page-light .header__burger span { background: #333; }
.page-light .mobile-nav { background: #f5f5f3; }
.page-light .mobile-nav__inner a { color: #333; }

/* ---- Contact Hero ---- */
.contact-hero {
    padding: 10rem 0 3rem;
    background: #f5f5f3;
}
.contact-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    color: #111;
    margin-bottom: 1rem;
}
.contact-hero__desc {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    color: #666;
}

/* ---- Contact Cards Grid ---- */
.contact-cards-section {
    padding: 2rem 0 4rem;
    background: #f5f5f3;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
}

/* ---- Contact Card ---- */
.contact-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    position: relative;
    z-index: 2;
    overflow: hidden;
    transition: border-color 0.3s;
}
.contact-card:hover {
    border-color: rgba(0,0,0,0.14);
}
.contact-card__icon {
    margin-bottom: 0;
}
/* Larger avatar images */
.contact-card__avatar {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    object-fit: cover;
}
.contact-card__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: transparent;
    border: none;
    overflow: hidden;
}
.contact-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.contact-card__body {
    margin-top: 1.25rem;
}
.contact-card__title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 0.4rem;
}
.contact-card__desc {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1.25rem;
    max-width: 340px;
}
.contact-card__btn {
    display: inline-block;
    padding: 0.6em 1.5em;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    color: #111;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.25s;
    width: fit-content;
}
.contact-card__btn:hover {
    border-color: rgba(0,0,0,0.4);
    background: rgba(0,0,0,0.03);
}

/* Already a member card — hand.avif background with dashed border */
.contact-card--dark {
    background: #ffffff;
    border: 1.5px dashed rgba(0,0,0,0.18);
    overflow: hidden;
}
.contact-card--dark:hover {
    border-color: rgba(0,0,0,0.3);
}
/* Background image fills the card */
.contact-card--dark .contact-card__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.contact-card--dark .contact-card__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    display: block;
}
/* No overlay — hand image shown clean */
.contact-card--dark .contact-card__bg::after {
    display: none;
}
/* All content above the bg */
.contact-card--dark .contact-card__icon,
.contact-card--dark .contact-card__body,
.contact-card--dark .contact-card__btn--filled {
    position: relative;
    z-index: 1;
}
.contact-card--dark .contact-card__logo {
    background: transparent;
    border: none;
}
.contact-card__btn--filled {
    background: #111;
    color: #fff;
    border-color: #111;
    border-radius: 10px;
    padding: 0.75em 1.8em;
    font-size: 0.88rem;
}
.contact-card__btn--filled:hover {
    background: #333;
    border-color: #333;
    color: #fff;
}

/* ---- Contact Location ---- */
.contact-location {
    padding: 2rem 0 4rem;
    background: #f5f5f3;
}
.contact-location__address {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.3rem;
}
.contact-location__phone {
    font-size: 0.85rem;
    color: #888;
}
.contact-location__phone a {
    color: #555;
    transition: color 0.3s;
}
.contact-location__phone a:hover {
    color: #111;
}

/* Footer always dark */
.page-light .site-footer {
    background: #323335;
}
.page-light .footer__bottom {
    border-top-color: rgba(255,255,255,0.08);
}

/* ============================================
   HOW IT WORKS PAGE
   ============================================ */
.page-how { background: #f5f5f3; }

/* Hero */
.how-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.how-hero__image {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.how-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.how-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}
.how-hero__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 8rem 1.5rem 4rem;
}
.how-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    color: #fff;
    margin-bottom: 1rem;
}
.how-hero__desc {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    color: #444444;
}

/* Steps */
.how-step {
    padding: 5rem 0;
    background: #f5f5f3;
}
.how-step--dark {
    background: #2e3032;
    padding: 5rem 3rem;
    border-radius: 40px;
    margin: 2rem 5%;
    opacity: 0;
    transform: translateY(60px) scale(0.97);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.how-step--dark.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.how-step__header {
    max-width: 650px;
    margin: 0 auto 3rem;
    text-align: center;
}
.how-step__label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #878787;
    margin-bottom: 1rem;
    padding: 0.4em 1em;
}
.how-step__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 300;
    color: #111;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.how-step__desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.7;
    color: #666;
}
.how-step--dark .how-step__title { color: #fff; }
.how-step--dark .how-step__desc { color: rgba(255,255,255,0.6); }

/* Cards grid */
.how-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 900px) {
    .how-cards { grid-template-columns: 1fr; max-width: 500px; }
}
.how-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 2;
}
.how-card__image {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #e0e0dd;
}
.how-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.how-card:hover .how-card__image img {
    transform: scale(1.04);
}
.how-card__title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
}
.how-card__desc {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.7;
    color: #666;
}
.how-step--dark .how-card__title { color: #fff; }
.how-step--dark .how-card__desc { color: rgba(255,255,255,0.55); }
.how-step--dark .how-card__image { background: #222; }

/* Testimonials */
.how-testimonials {
    padding: 5rem 0;
    background: #f5f5f3;
}
.how-testimonials .how-hero__title,
.how-faq .how-hero__title {
    color: #111 !important;
}
.how-testimonials .how-step__label,
.how-faq .how-step__label {
    color: #878787;
}
.testimonials-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: start;
}
@media (max-width: 900px) { .testimonials-masonry { grid-template-columns: 1fr; } }
.testimonials-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.testimonial-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}
.testimonial-card--featured {
    background: #f0efed;
}
.testimonial-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}
.testimonial-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.testimonial-card__name {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: #111;
    margin: 0;
}
.testimonial-card__role {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 300;
    color: #888;
    margin: 0;
}
.testimonial-card__text {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.7;
    color: #444;
    margin: 0;
}

/* FAQ */
.how-faq {
    padding: 5rem 0;
    background: #ededea;
}
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-top: 1px dashed rgba(0,0,0,0.15);
    position: relative;
    z-index: 2;
}
.faq-item:last-child {
    border-bottom: 1px dashed rgba(0,0,0,0.15);
}
.faq-item__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    color: #111;
    text-align: left;
    gap: 1rem;
}
.faq-item__question:hover { color: #555; }
.faq-item__icon {
    font-size: 1.3rem;
    font-weight: 300;
    color: #999;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.faq-item.is-open .faq-item__icon {
    transform: rotate(45deg);
}
.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.is-open .faq-item__answer {
    max-height: 300px;
    padding-bottom: 1.5rem;
}
.faq-item__answer p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

/* Video CTA */
.how-video-cta {
    padding: 0;
    background: #f5f5f3;
    margin-bottom: -40px;
    position: relative;
    z-index: 0;
}
#how-video-wrap {
    position: relative;
    overflow: hidden;
}
#how-video {
    display: block;
    width: 100%;
    height: 650px;
    object-fit: cover;
}
#how-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}
#how-video-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    width: 90%;
    max-width: 700px;
}
#how-video-text h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.15;
}
#how-video-text p {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
}
.how-video-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .how-hero { padding: 8rem 0 0; }
    .how-hero__image img { height: 250px; }
    .how-step { padding: 3rem 0; }
    .how-step--dark { border-radius: 24px; margin: 1rem 0; padding: 3rem 1.5rem; }
    .how-cards { grid-template-columns: 1fr; }
    #how-video { min-height: 400px; }
    #how-video-text { left: 24px; right: 24px; bottom: 30px; }
    #how-video-text h2 { font-size: 1.5rem; }
    .how-video-actions { flex-direction: column; }
    .how-video-actions .btn { width: 100%; justify-content: center; }
}
/* ============================================
   TEAM PAGE
   ============================================ */
.page-team { background: #f5f5f3; }

/* Hero */
.team-hero {
    padding: 10rem 0 8rem;
    background: #131317;
}

/* Team Content - light area with border radius over dark hero */
.team-content {
    background: #f5f5f3;
    border-radius: 40px 40px 0 0;
    margin-top: -3rem;
    position: relative;
    z-index: 2;
    padding: 4rem 0 6rem;
}

.team-hero__label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 1.25rem;
}
.team-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 300;
    color: #111;
    margin-bottom: 1rem;
    line-height: 1.15;
}
.team-hero__desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.7;
    color: #666;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}
.team-hero__btn {
    display: inline-block;
    padding: 0.65em 1.8em;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    color: #111;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.25s;
}
.team-hero__btn:hover {
    border-color: rgba(0,0,0,0.4);
    background: rgba(0,0,0,0.03);
}

/* Team hero button hover for dark bg */
.team-hero__btn:hover {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.08);
}

/* Team Grid */
.team-grid-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 900px) {
    .team-grid-cards { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
}

/* Team Member Card */
.team-member {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.team-member__photo {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #e0e0dd;
}
.team-member__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.team-member:hover .team-member__photo img {
    transform: scale(1.03);
}
.team-member__name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
    margin: 0;
}
.team-member__role {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 400;
    color: #888;
    margin: 0;
}
.team-member__bio {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.7;
    color: #666;
    margin: 0;
    padding-top: 4px;
}

@media (max-width: 768px) {
    .team-hero { padding: 8rem 0 3rem; }
}

/* ============================================
   COMPREHENSIVE CARE TEAM — Alternating Rows
   ============================================ */
.care-team-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 2rem;
}
.care-team-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.care-team-row--reverse {
    direction: rtl;
}
.care-team-row--reverse > * {
    direction: ltr;
}
.care-team-row__photo {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #e0e0dd;
}
.care-team-row__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.care-team-row:hover .care-team-row__photo img {
    transform: scale(1.03);
}
.care-team-row__info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.care-team-row__label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--med-accent);
}
.care-team-row__name {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: #111;
    margin: 0;
}
.care-team-row__org {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 400;
    color: #999;
    font-style: italic;
    margin: 0;
}
.care-team-row__bio {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.7;
    color: #666;
    margin: 0;
    padding-top: 6px;
}

@media (max-width: 768px) {
    .care-team-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .care-team-row--reverse {
        direction: ltr;
    }
}

/* ============================================
   CARE TEAM CARD GRID
   ============================================ */
.care-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 1100px) { .care-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .care-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .care-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; } }

.care-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.care-card:hover {
    border-color: rgba(0,0,0,0.12);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.care-card__photo {
    aspect-ratio: 1;
    overflow: hidden;
    background: #e8e8e5;
}
.care-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.care-card:hover .care-card__photo img {
    transform: scale(1.05);
}
.care-card__name {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: #111;
    margin: 0;
    padding: 1rem 1rem 0.2rem;
}
.care-card__role {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--med-accent);
    margin: 0;
    padding: 0 1rem 1rem;
    letter-spacing: 0.02em;
}

/* ============================================
   TEAM SLIDEOUT MODAL
   ============================================ */
.team-slideout {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
    visibility: hidden;
}
.team-slideout.is-open {
    pointer-events: all;
    visibility: visible;
}
.team-slideout__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.4s ease;
}
.team-slideout.is-open .team-slideout__backdrop {
    background: rgba(0,0,0,0.5);
}
.team-slideout__panel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 520px;
    max-width: 90vw;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    box-shadow: -10px 0 60px rgba(0,0,0,0.15);
}
.team-slideout.is-open .team-slideout__panel {
    transform: translateX(0);
}
.team-slideout__close {
    position: sticky;
    top: 1rem;
    float: right;
    margin: 1rem 1rem 0 0;
    margin-bottom: -56px;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    z-index: 10;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.team-slideout__close:hover {
    background: #fff;
    color: #111;
}
.team-slideout__photo {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #e8e8e5;
}
.team-slideout__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.team-slideout__body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.team-slideout__role {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--med-accent);
}
.team-slideout__name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    margin: 0;
}
.team-slideout__org {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    color: #999;
    font-style: italic;
    margin: 0;
}
.team-slideout__bio {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.8;
    color: #555;
    margin: 0;
    padding-top: 8px;
}

/* ============================================
   TEAM BOTTOM DARK SECTION
   ============================================ */
.team-bottom {
    position: relative;
    background: #131317;
    border-radius: 40px 40px 0 0;
    overflow: hidden;
    margin-bottom: -40px;
    z-index: 0;
}
.team-bottom__hero {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
}
.team-bottom__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.team-bottom__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(19,19,23,0.3) 0%, rgba(19,19,23,0.95) 85%, #131317 100%);
}
.team-bottom__content {
    position: relative;
    z-index: 2;
    margin-top: -12rem;
    padding-bottom: 5rem;
}
.team-bottom__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.team-bottom__desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255,255,255,0.55);
    max-width: 550px;
    margin: 0 auto 3rem;
}

/* Two cards */
.team-bottom__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}
@media (max-width: 600px) { .team-bottom__cards { grid-template-columns: 1fr; } }
.team-bottom__card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    display: block;
    text-decoration: none;
}
.team-bottom__card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.team-bottom__card:hover img {
    transform: scale(1.04);
}
.team-bottom__card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
}
.team-bottom__card-text {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: #fff;
}
.team-bottom__card-text h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}
.team-bottom__card-text p {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 300;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

@media (max-width: 768px) {
    .team-bottom__hero { height: 50vh; min-height: 350px; }
    .team-bottom__content { margin-top: -8rem; }
    .team-bottom__card { aspect-ratio: 3 / 4; }
}

/* ============================================
   TEAM CARE LABEL — Gold style
   ============================================ */
.team-care-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--med-accent);
    margin-bottom: 1.25rem;
}

/* Clickable top team cards */
.care-card-clickable {
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.care-card-clickable:hover {
    transform: translateY(-4px);
}

/* Team bottom fade-in animation */
.team-bottom {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.team-bottom.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   PROACTIVE CARE PAGE
   ============================================ */
.page-proactive { background: #f5f5f3; }

.pc-hero {
    padding: 10rem 0 4rem;
    background: #f5f5f3;
}
.pc-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 1.25rem;
}
.pc-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 300;
    color: #111;
    line-height: 1.15;
}

/* Split sections */
.pc-split {
    padding: 3rem 0;
    background: #f5f5f3;
}
.pc-split__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.pc-split__grid--reverse {
    direction: rtl;
}
.pc-split__grid--reverse > * {
    direction: ltr;
}
.pc-split__image {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #e0e0dd;
}
.pc-split__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pc-split__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.pc-split__title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 600;
    color: #111;
    line-height: 1.25;
}
.pc-split__desc {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.8;
    color: #666;
}

/* Checklist */
.pc-checklist {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.pc-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    color: #222;
}
.pc-checklist svg {
    flex-shrink: 0;
    color: #888;
}

/* Button */
.pc-btn {
    display: inline-block;
    padding: 0.7em 1.8em;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    color: #111;
    background: rgba(0,0,0,0.05);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.25s;
    width: fit-content;
    margin-top: 0.5rem;
}
.pc-btn:hover {
    background: rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .pc-hero { padding: 8rem 0 3rem; }
    .pc-split__grid,
    .pc-split__grid--reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 2rem;
    }
    .pc-split__image { aspect-ratio: 4 / 3; }
}

/* ============================================
   PROACTIVE CARE — Split Section Animations
   ============================================ */
.pc-animate .pc-animate__image {
    opacity: 0;
    transform: translateX(-80px) scale(0.95);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.pc-animate .pc-animate__content {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}
/* Reverse direction: image slides from right */
.pc-animate[data-pc-dir="right"] .pc-animate__image {
    transform: translateX(80px) scale(0.95);
}
/* Revealed states */
.pc-animate.is-visible .pc-animate__image {
    opacity: 1;
    transform: translateX(0) scale(1);
}
.pc-animate.is-visible .pc-animate__content {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger checklist items */
.pc-animate .pc-checklist li {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.pc-animate.is-visible .pc-checklist li:nth-child(1) { opacity: 1; transform: translateX(0); transition-delay: 0.5s; }
.pc-animate.is-visible .pc-checklist li:nth-child(2) { opacity: 1; transform: translateX(0); transition-delay: 0.65s; }
.pc-animate.is-visible .pc-checklist li:nth-child(3) { opacity: 1; transform: translateX(0); transition-delay: 0.8s; }
/* Button fade in */
.pc-animate .pc-btn {
    opacity: 0;
    transition: opacity 0.6s ease 0.9s;
}
.pc-animate.is-visible .pc-btn {
    opacity: 1;
}

/* ============================================
   PARTNERSHIPS PAGE
   ============================================ */
.page-partnerships { background: #f5f5f3; }

.partnership-form-section {
    background: #f5f5f3;
    border-radius: 40px 40px 0 0;
    margin-top: -3rem;
    position: relative;
    z-index: 2;
    padding: 4rem 0 3rem;
}
.partnership-form-wrap {
    max-width: 700px;
    margin: 0 auto;
}
.partnership-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.partnership-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
@media (max-width: 600px) { .partnership-form__row { grid-template-columns: 1fr; } }
.partnership-form__group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.partnership-form__group--full {
    grid-column: 1 / -1;
}
.partnership-form__group label {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    color: #333;
}
.partnership-form__group input,
.partnership-form__group select,
.partnership-form__group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    color: #111;
    background: #eeeee9;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 10px;
    transition: border-color 0.3s;
    outline: none;
    -webkit-appearance: none;
}
.partnership-form__group input::placeholder,
.partnership-form__group textarea::placeholder {
    color: #aaa;
}
.partnership-form__group input:focus,
.partnership-form__group select:focus,
.partnership-form__group textarea:focus {
    border-color: rgba(0,0,0,0.2);
}
.partnership-form__group textarea {
    resize: vertical;
    min-height: 120px;
}
.partnership-form__group select {
    color: #aaa;
}
.partnership-form__group select:valid {
    color: #111;
}
.partnership-form__submit {
    width: 100%;
    padding: 1.1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: #111;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 0.5rem;
}
.partnership-form__submit:hover {
    background: #333;
}

/* Quote / Testimonial */
.partnership-quote-section {
    padding: 2rem 0 5rem;
    background: #f5f5f3;
}
.partnership-quote {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 2.5rem;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 20px;
    background: #fff;
}
.partnership-quote__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 2px solid rgba(0,0,0,0.06);
}
.partnership-quote__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.partnership-quote__text {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 300;
    line-height: 1.6;
    color: #222;
    margin: 0 0 1.5rem;
    font-style: normal;
}
.partnership-quote__name {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 0.2rem;
}
.partnership-quote__role {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 300;
    color: #888;
    margin: 0;
}

/* ============================================
   WHO IS 1MED FOR — Page
   ============================================ */
.who-intro {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: #666;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

/* Top 2 feature cards — side by side */
.who-top-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 768px) { .who-top-cards { grid-template-columns: 1fr; } }

.who-feature-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.who-feature-card:hover {
    border-color: rgba(0,0,0,0.12);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.06);
}
.who-feature-card__icon {
    color: var(--med-accent);
    margin-bottom: 1.25rem;
}
.who-feature-card__title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: #111;
    margin: 0 0 0.75rem;
}
.who-feature-card__desc {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.7;
    color: #666;
    margin: 0 0 1.25rem;
}
.who-feature-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.who-feature-card__list li {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    color: #333;
    padding-left: 1.5rem;
    position: relative;
}
.who-feature-card__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--med-accent);
    font-weight: 600;
}

/* Wide cards — image + content side by side */
.who-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 900px) { .who-cards-grid { grid-template-columns: 1fr; } }

.who-wide-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.who-wide-card:hover {
    border-color: rgba(0,0,0,0.12);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.06);
}
.who-wide-card__image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e0e0dd;
}
.who-wide-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.who-wide-card:hover .who-wide-card__image img {
    transform: scale(1.04);
}
.who-wide-card__content {
    padding: 2rem;
}
.who-wide-card__content h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 0.5rem;
}
.who-wide-card__content p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

/* ============================================
   WHO — Sticky Scroll Section
   ============================================ */
.who-sticky-section {
    padding: 4rem 0 5rem;
    background: #f5f5f3;
}
.who-sticky-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
@media (max-width: 900px) {
    .who-sticky-wrap { grid-template-columns: 1fr; gap: 2rem; }
    .who-sticky-left { position: relative !important; top: auto !important; }
}

/* Left sticky card */
.who-sticky-left {
    position: sticky;
    top: 120px;
}
.who-sticky-card {
    background: #131317;
    border-radius: 24px;
    padding: 3rem 2.5rem;
    color: #fff;
}
.who-sticky-card .team-care-label {
    color: var(--med-accent);
}
.who-sticky-card__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 300;
    color: #fff;
    line-height: 1.25;
    margin: 0.5rem 0 2rem;
}
.who-sticky-card__stats {
    display: flex;
    gap: 3rem;
}
.who-sticky-card__stat {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.who-sticky-card__stat-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 300;
    color: rgba(255,255,255,0.5);
    margin-top: 0.3rem;
}

/* Right scrolling blocks */
.who-sticky-right {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}
.who-scroll-block h3 {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 500;
    color: #111;
    line-height: 1.5;
    margin: 0 0 1rem;
}
.who-scroll-block p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.8;
    color: #666;
    margin: 0;
}
.who-scroll-block h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: #111;
    margin: 0 0 1rem;
}

/* Checklist */
.who-scroll-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.who-scroll-checklist li {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    color: #333;
    padding-left: 1.75rem;
    position: relative;
}
.who-scroll-checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--med-accent);
    font-weight: 600;
}

/* What's included items */
.who-scroll-includes {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.who-scroll-include {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    transition: all 0.3s;
}
.who-scroll-include:hover {
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.who-scroll-include__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(196, 168, 130, 0.1);
    color: var(--med-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.who-scroll-include strong {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: #111;
    display: block;
    margin-bottom: 0.25rem;
}
.who-scroll-include p {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 300;
    line-height: 1.6;
    color: #888;
    margin: 0;
}

/* ============================================
   WHO PAGE — Animations
   ============================================ */
.who-animate {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.who-animate--left {
    transform: translateX(-60px);
}
.who-animate--right {
    transform: translateX(60px);
}
.who-animate--up {
    transform: translateY(50px);
}
.who-animate--scale {
    transform: scale(0.92) translateY(30px);
}

/* Revealed */
.who-animate.is-visible {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
}

/* Stagger wide cards */
.who-wide-card.who-animate:nth-child(1) { transition-delay: 0s; }
.who-wide-card.who-animate:nth-child(2) { transition-delay: 0.12s; }
.who-wide-card.who-animate:nth-child(3) { transition-delay: 0.24s; }
.who-wide-card.who-animate:nth-child(4) { transition-delay: 0.36s; }

/* Stagger scroll includes */
.who-scroll-include.who-animate:nth-child(1) { transition-delay: 0s; }
.who-scroll-include.who-animate:nth-child(2) { transition-delay: 0.1s; }
.who-scroll-include.who-animate:nth-child(3) { transition-delay: 0.2s; }
.who-scroll-include.who-animate:nth-child(4) { transition-delay: 0.3s; }
.who-scroll-include.who-animate:nth-child(5) { transition-delay: 0.4s; }
.who-scroll-include.who-animate:nth-child(6) { transition-delay: 0.5s; }

/* Top cards stagger */
.who-feature-card.who-animate--left { transition-delay: 0.1s; }
.who-feature-card.who-animate--right { transition-delay: 0.3s; }

/* ============================================
   LONGEVITY PAGE — Hero & Intro Animations
   ============================================ */
.team-hero .who-animate--up:nth-child(1) { transition-delay: 0.1s; }
.team-hero .who-animate--up:nth-child(2) { transition-delay: 0.3s; }
.team-hero .who-animate--up:nth-child(3) { transition-delay: 0.5s; }

/* Intro title scale pop */
.pc-hero__title.who-animate--scale {
    transform: scale(0.88) translateY(20px);
    transition-delay: 0.15s;
}
.pc-hero__title.who-animate--scale.is-visible {
    transform: scale(1) translateY(0);
}

/* ============================================
   HOMEPAGE — Extra Animations
   ============================================ */
/* Partners logos fade in individually */
.partners-logos-row img,
.partners-logos-row .partner-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.partners-logos-row.is-visible img:nth-child(1),
.partners-logos-row.is-visible .partner-text:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.partners-logos-row.is-visible img:nth-child(2),
.partners-logos-row.is-visible .partner-text:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.partners-logos-row.is-visible img:nth-child(3),
.partners-logos-row.is-visible .partner-text:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }

/* Pillars cards stagger reveal */
.pillars-carousel__card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.pillars-carousel-section.is-visible .pillars-carousel__card:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0s; }
.pillars-carousel-section.is-visible .pillars-carousel__card:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.pillars-carousel-section.is-visible .pillars-carousel__card:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.pillars-carousel-section.is-visible .pillars-carousel__card:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.45s; }

/* Gallery strip scale effect on center item */
.gallery-strip__item--cta.who-animate--scale {
    transform: scale(0.9) translateY(20px);
}
.gallery-strip__item--cta.who-animate--scale.is-visible {
    transform: scale(1) translateY(0);
}
/* Cloned carousel cards (for infinite loop) should be visible */
.pillars-carousel-section.is-visible .pillars-carousel__card:nth-child(n+5) { opacity: 1; transform: translateY(0); }

/* ============================================
   BLUR TO SHARP — Global H1/H2 Animation
   ============================================ */
h1, h2 {
    opacity: 0;
    filter: blur(12px);
    transform: scale(0.96) translateY(10px);
    transition: opacity 2s cubic-bezier(0.16, 1, 0.3, 1), filter 2.4s cubic-bezier(0.16, 1, 0.3, 1), transform 2s cubic-bezier(0.16, 1, 0.3, 1);
}
h1.is-visible, h2.is-visible {
    opacity: 1;
    filter: blur(0);
    transform: scale(1) translateY(0);
}
/* Slideout modal headings should not be hidden */
.team-slideout h1, .team-slideout h2, .team-slideout h3 { opacity: 1; filter: none; transform: none; }

/* ============================================
   CINEMATIC QUOTE
   ============================================ */
.cinematic-quote {
    padding: 5rem 0 !important;
    overflow: hidden;
    position: relative;
}
.cinematic-quote__wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

/* Animated gold accent lines */
.cinematic-quote__line {
    position: absolute;
    top: 50%;
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--med-accent), transparent);
    opacity: 0;
    transition: opacity 2s ease 1s, transform 2s cubic-bezier(0.16, 1, 0.3, 1) 1s;
}
.cinematic-quote__line--left {
    right: calc(50% + 420px);
    transform: translateX(-60px);
}
.cinematic-quote__line--right {
    left: calc(50% + 420px);
    transform: translateX(60px);
}
.cinematic-quote.is-visible .cinematic-quote__line {
    opacity: 0.4;
    transform: translateX(0);
}

/* Content */
.cinematic-quote__content {
    text-align: center;
    max-width: 1000px;
    position: relative;
}

/* Confucius avatar */
.cinematic-quote__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    opacity: 0;
    filter: blur(20px);
    transform: scale(0.6);
    transition: opacity 2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
                filter 2.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
                transform 2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}
.cinematic-quote__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cinematic-quote.is-visible .cinematic-quote__avatar {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}

/* Override the global h2 blur for this specific one - we handle it custom */
.cinematic-quote__text {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.8vw, 2.1rem) !important;
    font-weight: 300 !important;
    color: #1a3055;
    line-height: 1.6;
    letter-spacing: 0.01em;
    margin: 0 0 2rem;
    /* Override global blur - use custom slower one */
    opacity: 0 !important;
    filter: blur(16px) !important;
    transform: scale(0.94) translateY(15px) !important;
    transition: opacity 3s cubic-bezier(0.16, 1, 0.3, 1) 0.5s, 
                filter 3.5s cubic-bezier(0.16, 1, 0.3, 1) 0.5s, 
                transform 3s cubic-bezier(0.16, 1, 0.3, 1) 0.5s !important;
}
.cinematic-quote.is-visible .cinematic-quote__text {
    opacity: 1 !important;
    filter: blur(0) !important;
    transform: scale(1) translateY(0) !important;
}
.cinematic-quote__text em {
    font-style: normal;
    color: #1a3055;
    font-weight: 500;
}

/* Attribution */
.cinematic-quote__attr {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(26,48,92,0.45);
    letter-spacing: 0.06em;
    margin: 0;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 1.5s ease 2s, transform 1.5s ease 2s;
}
.cinematic-quote__attr strong {
    color: var(--med-accent);
    font-weight: 500;
}
.cinematic-quote.is-visible .cinematic-quote__attr {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .cinematic-quote { padding: 4rem 0 !important; }
    .cinematic-quote__avatar { width: 60px; height: 60px; }
    .cinematic-quote__line { display: none; }
}
/* ============================================
   EQUIVOX — HERO BUTTON OVERRIDES
   (Hero always has dark video bg regardless of theme)
   ============================================ */
.hero .btn--outline {
    color: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.3);
    background: transparent;
}
.hero .btn--outline:hover {
    border-color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.hero .btn--lg:not(.btn--outline) {
    background: #0dcfc0;
    color: #fff;
}
.hero .btn--lg:not(.btn--outline):hover {
    background: #0ab3a3;
    transform: translateY(-1px);
}

/* ============================================
   FOUNDER GRID — Dr. Lia Section
   ============================================ */
.founder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
@media (max-width: 900px) {
    .founder-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}
.founder-grid__image {
    position: relative;
}
.founder-grid__image img {
    width: 100%;
    border-radius: 20px;
    display: block;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top;
}
.founder-grid__badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(13, 207, 192, 0.2);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}
.founder-grid__badge-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #0dcfc0;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.founder-grid__badge-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1a3055;
    margin: 0;
}
.founder-grid__content {}
.founder-grid__desc {
    font-size: 0.95rem;
    color: var(--med-muted);
    line-height: 1.85;
    margin-bottom: 1.25rem;
}
.founder-grid__stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--med-border);
}
.founder-grid__stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #0dcfc0;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.founder-grid__stat-value {
    font-size: 0.85rem;
    color: var(--med-white);
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}

/* ============================================
   LANGUAGE TOGGLE — Sliding pill style
   ============================================ */
.lang-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 80px;
    height: 32px;
    background: #0dcfc0;
    border-radius: 50px;
    cursor: pointer;
    flex-shrink: 0;
    overflow: visible;
    margin-right: 0.25rem;
    user-select: none;
    transition: background 0.3s ease;
}
/* Knob — large circle, slightly overflows pill height */
.lang-toggle__knob {
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.18), 0 1px 4px rgba(0,0,0,0.12);
    transition: left 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
    z-index: 2;
    pointer-events: none;
}
/* ES state: knob slides to right */
.lang-toggle.is-es .lang-toggle__knob {
    left: calc(100% - 34px);
}
/* Text label — shows active language */
.lang-toggle__label {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #ffffff;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.35s ease;
}
/* EN label: visible by default, shifted right of knob */
.lang-toggle__label--en {
    opacity: 1;
    padding-left: 32px;
}
/* ES label: hidden by default */
.lang-toggle__label--es {
    opacity: 0;
    padding-right: 32px;
}
/* ES state: flip labels */
.lang-toggle.is-es .lang-toggle__label--en {
    opacity: 0;
}
.lang-toggle.is-es .lang-toggle__label--es {
    opacity: 1;
}

/* Mobile variant */
.lang-toggle--mobile {
    width: 90px;
    height: 38px;
    margin: 0.75rem auto;
    display: flex;
}
.lang-toggle--mobile .lang-toggle__knob {
    width: 42px;
    height: 42px;
}
.lang-toggle--mobile.is-es .lang-toggle__knob {
    left: calc(100% - 40px);
}
.lang-toggle--mobile .lang-toggle__label {
    font-size: 0.75rem;
}
.lang-toggle--mobile .lang-toggle__label--en {
    padding-left: 40px;
}
.lang-toggle--mobile .lang-toggle__label--es {
    padding-right: 40px;
}


/* ============================================
   HIDE GOOGLE TRANSLATE UI CHROME
   ============================================ */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate { display: none !important; }
body { top: 0 !important; }
#google_translate_element,
.goog-te-gadget,
.goog-te-gadget-simple { display: none !important; visibility: hidden !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
.goog-tooltip,
.goog-tooltip:hover { display: none !important; }
.skiptranslate { display: none !important; }
font[face] { font-family: inherit !important; }

/* ============================================
   AURORA GRADIENT — Dia-style ambient background
   ============================================ */
.aurora {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.aurora__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    will-change: transform;
    /* multiply: shows on white, blends away on dark */
    mix-blend-mode: multiply;
}
/* Blue blob — top left, drifts slowly */
.aurora__blob--1 {
    width: 55vw;
    height: 55vw;
    background: #0083fe;
    opacity: 0.18;
    top: -15%;
    left: -10%;
    animation: auroraDrift1 35s ease-in-out infinite;
}
/* Teal blob — bottom right, counter-drifts */
.aurora__blob--2 {
    width: 50vw;
    height: 50vw;
    background: #00fff0;
    opacity: 0.15;
    bottom: -15%;
    right: -10%;
    animation: auroraDrift2 40s ease-in-out infinite;
}
/* Mid blob — centre, subtle pulse */
.aurora__blob--3 {
    width: 35vw;
    height: 35vw;
    background: linear-gradient(135deg, #0083fe, #00fff0);
    opacity: 0.12;
    top: 35%;
    left: 35%;
    animation: auroraDrift3 50s ease-in-out infinite;
}

@keyframes auroraDrift1 {
    0%,100% { transform: translate(0, 0) scale(1); }
    25%      { transform: translate(4%, 6%) scale(1.06); }
    50%      { transform: translate(8%, 2%) scale(0.97); }
    75%      { transform: translate(3%, 8%) scale(1.03); }
}
@keyframes auroraDrift2 {
    0%,100% { transform: translate(0, 0) scale(1); }
    25%      { transform: translate(-5%, -4%) scale(1.04); }
    50%      { transform: translate(-8%, -2%) scale(0.96); }
    75%      { transform: translate(-3%, -7%) scale(1.02); }
}
@keyframes auroraDrift3 {
    0%,100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(-6%, 4%) scale(1.08); }
    66%      { transform: translate(5%, -5%) scale(0.94); }
}

/* Section-scoped aurora (absolute, not fixed) */
.aurora--section {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
/* Ensure section content sits above aurora */
.aurora--section ~ * { position: relative; z-index: 1; }
/* Much lower opacity for section-scoped aurora on homepage */
.aurora--section .aurora__blob--1 { opacity: 0.04; }
.aurora--section .aurora__blob--2 { opacity: 0.035; }
.aurora--section .aurora__blob--3 { opacity: 0.025; }

/* Aurora section overrides consolidated above */

/* Aurora only shows on contact page */
.aurora--global { display: none; }
.page-contact .aurora--global { display: block; }

/* ============================================
   NAV DROPDOWN
   ============================================ */
.nav-item {
    position: relative;
}
.nav-item--dropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.nav-item--dropdown > a svg {
    transition: transform 0.25s ease;
    flex-shrink: 0;
}
.nav-item--dropdown:hover > a svg,
.nav-item--dropdown.is-open > a svg {
    transform: rotate(180deg);
}
.nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    min-width: 180px;
    background: #ffffff;
    border: 1px solid rgba(26,48,92,0.08);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(10,15,30,0.12);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1001;
}
.nav-item--dropdown:hover .nav-dropdown,
.nav-item--dropdown.is-open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
    display: block;
    padding: 0.55rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(26,48,92,0.7) !important;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.nav-dropdown a:hover {
    background: rgba(26,48,92,0.05);
    color: #1a3055 !important;
}
/* Arrow pointer */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-left: 1px solid rgba(26,48,92,0.08);
    border-top: 1px solid rgba(26,48,92,0.08);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    rotate: 135deg;
}

/* ============================================
   MEGA MENU
   ============================================ */
.mega-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    width: 1020px;
    z-index: 999;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(26,48,92,0.08);
    box-shadow: 0 20px 60px rgba(10,15,30,0.16), 0 4px 16px rgba(10,15,30,0.06);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* Animation */
    transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16,1,0.3,1), visibility 0.22s;
}
.mega-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}
/* Invisible hover bridge — prevents gap between trigger and panel */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
}
.mega-menu__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 2rem;
    align-items: stretch;
}
/* Image column */
.mega-menu__image-col {
    padding-right: 2rem;
    border-right: 1px solid rgba(26,48,92,0.06);
    display: flex;
    flex-direction: column;
}
.mega-menu__image-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}
.mega-menu__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: 12px;
    position: absolute;
    inset: 0;
}
.mega-menu__image-logo {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 10px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
}
.mega-menu__image-logo img {
    height: 22px;
    width: auto;
    display: block;
    border-radius: 0;
}
/* Links column */
.mega-menu__links-col {
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.mega-menu__link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(26,48,92,0.06);
    text-decoration: none;
    transition: padding-left 0.2s ease;
}
.mega-menu__link:last-child { border-bottom: none; }
.mega-menu__link:first-child { padding-top: 0; }
.mega-menu__link:hover { padding-left: 5px; }
.mega-menu__link-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a3055;
    transition: color 0.2s;
}
.mega-menu__link:hover .mega-menu__link-title { color: #0dcfc0; }
.mega-menu__link-desc {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 300;
    color: #999;
    line-height: 1.4;
}
/* + icon rotation */
.mega-trigger {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}
.mega-trigger .mega-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 1rem;
    font-weight: 400;
    color: rgba(26,48,92,0.5);
    transition: transform 0.25s ease, color 0.2s;
    line-height: 1;
    margin-top: 1px;
}
.nav-item--mega.is-open .mega-icon {
    transform: rotate(45deg);
    color: #0dcfc0;
}
/* Position mega relative to nav-item */
.nav-item--mega {
    position: relative;
}
/* No backdrop needed — contained panel */
.mega-menu__backdrop { display: none; }
/* Hide on mobile */
@media (max-width: 1023px) {
    .mega-menu { display: none; }
}

/* CTA teal background bleeds behind footer border-radius */
.site-footer { position: relative; z-index: 10; margin-top: -44px; }

/* Keep eyebrows teal on dark sections */
.how-step--dark .how-step__label { color: #878787; }
.section--dark .how-step__label { color: #878787; }
.section--dark .section-heading span:not(.line) { color: var(--med-accent); }

/* ============================================
   PAGE TRANSITION LOADER OVERLAY
   ============================================ */
#pageLoader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s;
    pointer-events: none;
}
#pageLoader.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}
#pageLoader img {
    width: 72px;
    height: 72px;
    animation: loaderPulse 1.2s ease-in-out infinite;
    filter: brightness(0) invert(0.17);
}
@keyframes loaderPulse {
    0%   { transform: scale(1);    opacity: 1; }
    40%  { transform: scale(1.12); opacity: 0.85; }
    100% { transform: scale(1);    opacity: 1; }
}
/* On page enter, fade the loader out */
body.page-loaded #pageLoader {
    opacity: 0;
    visibility: hidden;
}

/* Founder & cinematic label colours → grey */
.founder-grid__badge-label { color: #878787 !important; }
.founder-grid__stat-label  { color: #878787 !important; }
.cinematic-quote__attr,
.cinematic-quote__attr strong { color: #878787 !important; }
