/* ============================================================
   Department Personnel Pages — AHS · NU
   Glassmorphism + per-department theme color
   ============================================================ */

:root {
    --color-ahs: #2563eb;
    --color-mt:  #dc2626;
    --color-ctt: #16a34a;
    --color-rt:  #eab308;
    --color-pt:  #f472b6;
    --color-od:  #0ea5e9;

    --bg-base-1: #050b1f;
    --bg-base-2: #0a1842;
    --bg-base-3: #112b63;
    --text-strong: #eaf2ff;
    --text-muted: #b6c5e3;
    --glass-border: rgba(168, 197, 255, 0.30);
    --glass-shadow: 0 24px 45px -28px rgba(0, 0, 0, 0.72);
    --radius-lg: 24px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

/* ---- Theme vars per department (incl. pre-computed color-mix fallbacks) ---- */
.theme-mt {
    --theme:              #dc2626;
    --theme-soft:         rgba(220, 38, 38, 0.20);
    --theme-glow:         rgba(220, 38, 38, 0.45);
    --theme-dark:         #9a1b1b;
    --theme-border-40:    rgba(220, 38, 38, 0.40);
    --theme-border-50:    rgba(220, 38, 38, 0.50);
    --theme-photo-border: rgba(220,  80,  80, 0.65);
    --theme-role-line:    rgba(220, 38, 38, 0.60);
    --theme-dept-color:   #e09898;
    --theme-title-end:    #ea7d7d;
}
.theme-ctt {
    --theme:              #16a34a;
    --theme-soft:         rgba(22, 163, 74, 0.20);
    --theme-glow:         rgba(22, 163, 74, 0.45);
    --theme-dark:         #0f7234;
    --theme-border-40:    rgba(22, 163, 74, 0.40);
    --theme-border-50:    rgba(22, 163, 74, 0.50);
    --theme-photo-border: rgba(22, 163, 74, 0.65);
    --theme-role-line:    rgba(22, 163, 74, 0.60);
    --theme-dept-color:   #8bcdb7;
    --theme-title-end:    #73c892;
}
.theme-rt {
    --theme:              #eab308;
    --theme-soft:         rgba(234, 179, 8, 0.20);
    --theme-glow:         rgba(234, 179, 8, 0.45);
    --theme-dark:         #a47d06;
    --theme-border-40:    rgba(234, 179, 8, 0.40);
    --theme-border-50:    rgba(234, 179, 8, 0.50);
    --theme-photo-border: rgba(234, 179, 8, 0.65);
    --theme-role-line:    rgba(234, 179, 8, 0.60);
    --theme-dept-color:   #e0d39c;
    --theme-title-end:    #f2d16b;
}
.theme-pt {
    --theme:              #f472b6;
    --theme-soft:         rgba(244, 114, 182, 0.22);
    --theme-glow:         rgba(244, 114, 182, 0.45);
    --theme-dark:         #ab507f;
    --theme-border-40:    rgba(244, 114, 182, 0.40);
    --theme-border-50:    rgba(244, 114, 182, 0.50);
    --theme-photo-border: rgba(244, 114, 182, 0.65);
    --theme-role-line:    rgba(244, 114, 182, 0.60);
    --theme-dept-color:   #e4b9e2;
    --theme-title-end:    #f8abd3;
}
.theme-od {
    --theme:              #0ea5e9;
    --theme-soft:         rgba(14, 165, 233, 0.22);
    --theme-glow:         rgba(14, 165, 233, 0.45);
    --theme-dark:         #0a74a3;
    --theme-border-40:    rgba(14, 165, 233, 0.40);
    --theme-border-50:    rgba(14, 165, 233, 0.50);
    --theme-photo-border: rgba(14, 165, 233, 0.65);
    --theme-role-line:    rgba(14, 165, 233, 0.60);
    --theme-dept-color:   #88cdf6;
    --theme-title-end:    #6ec9f2;
}
.theme-ahs {
    --theme:              #2563eb;
    --theme-soft:         rgba(37, 99, 235, 0.22);
    --theme-glow:         rgba(37, 99, 235, 0.45);
    --theme-dark:         #1a45a5;
    --theme-border-40:    rgba(37, 99, 235, 0.40);
    --theme-border-50:    rgba(37, 99, 235, 0.50);
    --theme-photo-border: rgba(37, 99, 235, 0.65);
    --theme-role-line:    rgba(37, 99, 235, 0.60);
    --theme-dept-color:   #91b3f7;
    --theme-title-end:    #7aa8f2;
}
.theme-sec {
    --theme:              #64748b;   /* slate-500 (เทา-เงิน, neutral office) */
    --theme-soft:         rgba(100, 116, 139, 0.20);
    --theme-glow:         rgba(100, 116, 139, 0.45);
    --theme-dark:         #475569;
    --theme-border-40:    rgba(100, 116, 139, 0.40);
    --theme-border-50:    rgba(100, 116, 139, 0.50);
    --theme-photo-border: rgba(148, 163, 184, 0.65);
    --theme-role-line:    rgba(100, 116, 139, 0.60);
    --theme-dept-color:   #cbd5e1;
    --theme-title-end:    #cbd5e1;
}

/* ---- dept-tab colors (incl. pre-computed hover/active fallbacks) ---- */
.dept-tab-mt {
    --tab:              var(--color-mt);
    --tab-dark:         #9a1b1b;
    --tab-border:       rgba(220, 38, 38, 0.55);
    --tab-before:       rgba(220, 38, 38, 0.35);
    --tab-hover-border: rgba(220, 38, 38, 0.50);
    --tab-hover-shadow: rgba(220, 38, 38, 0.60);
}
.dept-tab-ctt {
    --tab:              var(--color-ctt);
    --tab-dark:         #0f7234;
    --tab-border:       rgba(22, 163, 74, 0.55);
    --tab-before:       rgba(22, 163, 74, 0.35);
    --tab-hover-border: rgba(22, 163, 74, 0.50);
    --tab-hover-shadow: rgba(22, 163, 74, 0.60);
}
.dept-tab-rt {
    --tab:              var(--color-rt);
    --tab-dark:         #a47d06;
    --tab-border:       rgba(234, 179, 8, 0.55);
    --tab-before:       rgba(234, 179, 8, 0.35);
    --tab-hover-border: rgba(234, 179, 8, 0.50);
    --tab-hover-shadow: rgba(234, 179, 8, 0.60);
}
.dept-tab-pt {
    --tab:              var(--color-pt);
    --tab-dark:         #ab507f;
    --tab-border:       rgba(244, 114, 182, 0.55);
    --tab-before:       rgba(244, 114, 182, 0.35);
    --tab-hover-border: rgba(244, 114, 182, 0.50);
    --tab-hover-shadow: rgba(244, 114, 182, 0.60);
}
.dept-tab-od {
    --tab:              var(--color-od);
    --tab-dark:         #0a74a3;
    --tab-border:       rgba(14, 165, 233, 0.55);
    --tab-before:       rgba(14, 165, 233, 0.35);
    --tab-hover-border: rgba(14, 165, 233, 0.50);
    --tab-hover-shadow: rgba(14, 165, 233, 0.60);
}
.dept-tab-sec {
    --tab:              #64748b;
    --tab-dark:         #475569;
    --tab-border:       rgba(100, 116, 139, 0.55);
    --tab-before:       rgba(100, 116, 139, 0.35);
    --tab-hover-border: rgba(100, 116, 139, 0.50);
    --tab-hover-shadow: rgba(100, 116, 139, 0.60);
}

/* ---- hub-card colors ---- */
.hub-card-mt  {
    --tab: var(--color-mt);
    --tab-before: rgba(220, 38, 38, 0.35);
    --tab-hover-border: rgba(220, 38, 38, 0.50);
    --tab-hover-shadow: rgba(220, 38, 38, 0.60);
}
.hub-card-ctt {
    --tab: var(--color-ctt);
    --tab-before: rgba(22, 163, 74, 0.35);
    --tab-hover-border: rgba(22, 163, 74, 0.50);
    --tab-hover-shadow: rgba(22, 163, 74, 0.60);
}
.hub-card-rt {
    --tab: var(--color-rt);
    --tab-before: rgba(234, 179, 8, 0.35);
    --tab-hover-border: rgba(234, 179, 8, 0.50);
    --tab-hover-shadow: rgba(234, 179, 8, 0.60);
}
.hub-card-pt {
    --tab: var(--color-pt);
    --tab-before: rgba(244, 114, 182, 0.35);
    --tab-hover-border: rgba(244, 114, 182, 0.50);
    --tab-hover-shadow: rgba(244, 114, 182, 0.60);
}
.hub-card-od {
    --tab: var(--color-od);
    --tab-before: rgba(14, 165, 233, 0.35);
    --tab-hover-border: rgba(14, 165, 233, 0.50);
    --tab-hover-shadow: rgba(14, 165, 233, 0.60);
}
.hub-card-sec {
    --tab: #64748b;
    --tab-before: rgba(100, 116, 139, 0.35);
    --tab-hover-border: rgba(100, 116, 139, 0.50);
    --tab-hover-shadow: rgba(100, 116, 139, 0.60);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    min-height: 100vh;
    font-family: 'Prompt', 'Sarabun', sans-serif;
    color: var(--text-strong);
    background:
        radial-gradient(circle at 14% 12%, var(--theme-soft) 0%, transparent 42%),
        radial-gradient(circle at 88% 16%, #1a2d60 0%, transparent 40%),
        radial-gradient(circle at 80% 84%, var(--theme-soft) 0%, transparent 42%),
        linear-gradient(145deg, var(--bg-base-1) 0%, var(--bg-base-2) 45%, var(--bg-base-3) 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    line-height: 1.55;
}

a { color: inherit; }

.skip-link {
    position: absolute; top: -100px; left: 1rem;
    background: var(--theme); color: #fff; padding: 0.5rem 1rem;
    border-radius: 6px; z-index: 999;
}
.skip-link:focus { top: 1rem; }

/* ----------------------------- NAV ----------------------------- */
.site-nav {
    position: sticky; top: 0; z-index: 50;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    background: rgba(8, 16, 40, 0.65);
    border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
    max-width: 1280px; margin: 0 auto;
    padding: 0.85rem 1.25rem;
    display: flex; align-items: center; gap: 1.25rem;
    flex-wrap: wrap;
}

.brand {
    display: flex; align-items: center; gap: 0.7rem;
    text-decoration: none; color: var(--text-strong);
}

.brand img { border-radius: 8px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1rem; letter-spacing: 0.5px; }
.brand-text small  { font-size: 0.78rem; color: var(--text-muted); }

.dept-tabs {
    display: flex; gap: 0.4rem; flex-wrap: wrap;
    margin-left: auto;
}

.dept-tab {
    --tab: var(--theme);
    text-decoration: none;
    display: inline-flex; flex-direction: column; align-items: center;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    background: rgba(255,255,255,0.03);
    color: var(--text-muted);
    transition: all 0.2s ease;
    line-height: 1.05;
    min-width: 96px;
}
.dept-tab:hover {
    color: var(--text-strong);
    border-color: rgba(255,255,255,0.30);
    background: rgba(255,255,255,0.06);
    transform: translateY(-1px);
}
.dept-tab .tab-code { font-weight: 700; font-size: 0.75rem; letter-spacing: 1px; }
.dept-tab .tab-name { font-size: 0.78rem; }

.dept-tab.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--tab) 0%, var(--tab-dark) 100%);
    border-color: var(--tab-border);
    box-shadow: 0 8px 22px -8px var(--tab);
}

/* ----------------------------- HERO ---------------------------- */
.hero {
    position: relative;
    padding: 3.5rem 1.25rem 2.5rem;
    overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-blob {
    position: absolute; border-radius: 50%;
    filter: blur(60px); opacity: 0.55;
}
.hero-blob-1 {
    width: 28rem; height: 28rem;
    top: -8rem; right: -6rem;
    background: var(--theme-glow);
}
.hero-blob-2 {
    width: 22rem; height: 22rem;
    bottom: -10rem; left: -5rem;
    background: rgba(122, 168, 255, 0.35);
}

.hero-inner {
    position: relative;
    max-width: 1100px; margin: 0 auto;
    text-align: center;
}

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(0,0,0,0.25);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-size: 0.85rem; color: var(--text-muted);
}

.dept-badge {
    background: var(--theme);
    color: #fff;
    padding: 0.15rem 0.55rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 1px;
}

.hero-title {
    margin: 1.2rem 0 0.4rem;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, var(--theme-title-end) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    margin: 0 0 2rem;
    color: var(--text-muted);
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    font-style: italic;
}

.hero-stats {
    display: flex; flex-wrap: wrap; gap: 0.8rem;
    justify-content: center;
}

.stat {
    flex: 1 1 130px; max-width: 200px;
    padding: 0.95rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.04);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    text-align: center;
}
.stat-value {
    display: block;
    font-size: 1.8rem; font-weight: 700;
    color: var(--theme);
    line-height: 1;
}
.stat-label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}
.stat-total .stat-value { color: #fff; }
.stat-total {
    background: linear-gradient(135deg, var(--theme-soft) 0%, rgba(255,255,255,0.04) 100%);
    border-color: var(--theme-border-40);
}

/* --------------------------- CONTENT --------------------------- */
.content-wrap {
    max-width: 1280px; margin: 0 auto;
    padding: 1.5rem 1.25rem 4rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.group-section { margin-top: 2.5rem; }
.group-section:first-child { margin-top: 0.5rem; }

.group-title {
    display: flex; align-items: center; gap: 0.85rem;
    margin-bottom: 1.4rem;
}
.group-title h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-strong);
    white-space: nowrap;
}
.group-title-count {
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: var(--theme-soft);
    border: 1px solid var(--theme-border-40);
    color: var(--text-strong);
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
}
.group-title-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

/* --------------------------- CARDS ----------------------------- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.1rem;
}

.cards-grid--center {
    grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
    justify-content: center;
}

.person-card {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.32);
    -webkit-backdrop-filter: blur(13px);
    backdrop-filter: blur(13px);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex; flex-direction: column;
}

.person-card::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, var(--theme-soft) 0%, transparent 35%);
    pointer-events: none;
    opacity: 0.55;
}

.person-card:hover {
    transform: translateY(-4px);
    border-color: var(--theme-border-50);
    box-shadow: 0 28px 50px -25px var(--theme-glow);
}

.person-card--linked { cursor: pointer; }

.card-stretched-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    text-decoration: none;
}
.card-stretched-link:focus-visible {
    outline: 2px solid var(--theme, #64748b);
    outline-offset: 2px;
}

/* Inner interactive elements stay above the stretched link */
.person-card .card-contact { position: relative; z-index: 2; }

.card-name-link {
    color: inherit;
    text-decoration: none;
    position: relative;
    z-index: 2;
    transition: color 0.18s;
}
.card-name-link:hover { color: var(--theme, #64748b); }

.card-photo {
    position: relative;
    padding: 1.6rem 1rem 0.6rem;
    text-align: center;
}
.card-photo img {
    width: 9rem; height: 9rem;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--theme-photo-border);
    box-shadow: 0 10px 24px -10px rgba(0,0,0,0.7), 0 0 0 6px rgba(255,255,255,0.04);
    background: #1a2647;
}

.card-body {
    position: relative;
    padding: 0.4rem 1rem 1.3rem;
    text-align: center;
    z-index: 1;
}

.card-name {
    margin: 0.7rem 0 0.6rem;
    font-size: 1.02rem;
    font-weight: 600;
    color: #f3f8ff;
    padding: 0.55rem 0.6rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(33, 56, 112, 0.55) 0%, rgba(15, 30, 69, 0.45) 100%);
    border: 1px solid rgba(190, 214, 255, 0.30);
    line-height: 1.3;
    min-height: 2.6rem;
    display: flex; align-items: center; justify-content: center;
}

.card-role-primary {
    margin-top: 0.7rem;
    font-weight: 600;
    color: var(--text-strong);
    font-size: 0.95rem;
    border-bottom: 2px solid var(--theme-role-line);
    padding-bottom: 0.45rem;
    line-height: 1.35;
}

.card-role-secondary {
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.card-dept {
    margin-top: 1rem;
    color: var(--theme-dept-color);
    font-size: 0.92rem;
    font-weight: 500;
}

.card-contact {
    display: flex; justify-content: center; gap: 0.85rem;
    margin-top: 0.8rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    align-items: center;
}
.card-contact a, .card-contact span {
    display: inline-flex; align-items: center; gap: 0.3rem;
    color: inherit; text-decoration: none;
}
.card-contact svg {
    width: 16px; height: 16px;
    color: var(--theme);
}
.card-contact a:hover { color: var(--theme); }

/* --------------------------- FOOTER ---------------------------- */
.site-footer {
    border-top: 1px solid var(--glass-border);
    background: rgba(5, 11, 31, 0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.footer-inner {
    max-width: 1280px; margin: 0 auto;
    padding: 1.4rem 1.25rem;
    display: flex; flex-wrap: wrap; gap: 0.6rem;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ------------------------- RESPONSIVE -------------------------- */
@media (max-width: 768px) {
    .nav-inner { padding: 0.7rem 1rem; }
    .dept-tabs { width: 100%; justify-content: center; }
    .dept-tab { min-width: auto; padding: 0.4rem 0.7rem; }
    .dept-tab .tab-name { display: none; }
    .hero { padding: 2.5rem 1rem 1.8rem; }
    .cards-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.85rem; }
    .card-photo img { width: 7.5rem; height: 7.5rem; }
}

@media (max-width: 480px) {
    .stat { flex-basis: 45%; padding: 0.7rem; }
    .stat-value { font-size: 1.4rem; }
}

/* ============== INDEX (HUB) PAGE ============== */
.hub-grid {
    max-width: 1200px; margin: 0 auto;
    padding: 1rem 1.25rem 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
}

.hub-card {
    --tab: var(--color-ahs);
    --tab-before: rgba(37, 99, 235, 0.35);
    --tab-hover-border: rgba(37, 99, 235, 0.50);
    --tab-hover-shadow: rgba(37, 99, 235, 0.60);
    position: relative;
    text-decoration: none; color: var(--text-strong);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.32);
    -webkit-backdrop-filter: blur(13px);
    backdrop-filter: blur(13px);
    transition: all 0.25s ease;
    overflow: hidden;
    display: flex; flex-direction: column; gap: 0.6rem;
}
.hub-card::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 0%, var(--tab-before) 0%, transparent 60%);
    opacity: 0.7;
}
.hub-card:hover {
    transform: translateY(-4px);
    border-color: var(--tab-hover-border);
    box-shadow: 0 28px 50px -25px var(--tab-hover-shadow);
}

.hub-code {
    position: relative;
    font-size: 2.2rem; font-weight: 700; letter-spacing: 2px;
    color: var(--tab);
    line-height: 1;
}
.hub-name { position: relative; font-size: 1.1rem; font-weight: 600; }
.hub-name-en { position: relative; color: var(--text-muted); font-size: 0.85rem; font-style: italic; }
.hub-cta {
    position: relative;
    margin-top: auto;
    padding-top: 1rem;
    color: var(--tab);
    font-size: 0.9rem; font-weight: 500;
    display: inline-flex; align-items: center; gap: 0.3rem;
}
.hub-cta::after { content: "→"; transition: transform 0.2s ease; }
.hub-card:hover .hub-cta::after { transform: translateX(4px); }

/* ============================================================
   Motion & Animation
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {

    /* Keyframes */
    @keyframes ahsFadeUp {
        from { opacity: 0; transform: translate3d(0, 14px, 0); }
        to   { opacity: 1; transform: translate3d(0, 0, 0); }
    }
    @keyframes ahsFadeIn {
        from { opacity: 0; }
        to   { opacity: 1; }
    }
    @keyframes ahsZoomIn {
        from { opacity: 0; transform: scale(0.92); }
        to   { opacity: 1; transform: scale(1); }
    }
    @keyframes ahsBlobFloat1 {
        0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
        50%      { transform: translate3d(-12px, 18px, 0) scale(1.06); }
    }
    @keyframes ahsBlobFloat2 {
        0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
        50%      { transform: translate3d(15px, -14px, 0) scale(0.95); }
    }
    @keyframes ahsShimmer {
        0%, 100% { opacity: 0.55; }
        50%      { opacity: 0.78; }
    }

    /* Hero blobs floating */
    .hero-blob-1 {
        animation: ahsBlobFloat1 14s ease-in-out infinite,
                   ahsShimmer    9s ease-in-out infinite;
        will-change: transform, opacity;
    }
    .hero-blob-2 {
        animation: ahsBlobFloat2 18s ease-in-out infinite,
                   ahsShimmer   11s ease-in-out infinite reverse;
        will-change: transform, opacity;
    }

    /* Hero entrance */
    .hero-eyebrow { animation: ahsFadeUp 0.55s ease-out 0.05s both; }
    .hero-title   { animation: ahsFadeUp 0.65s ease-out 0.15s both; }
    .hero-subtitle{ animation: ahsFadeUp 0.65s ease-out 0.25s both; }
    .hero-stats   { animation: ahsFadeUp 0.65s ease-out 0.35s both; }

    /* Nav entrance */
    .site-nav { animation: ahsFadeIn 0.4s ease-out both; }
    .dept-tab { animation: ahsFadeUp 0.4s ease-out both; }
    .dept-tab:nth-child(1) { animation-delay: 0.05s; }
    .dept-tab:nth-child(2) { animation-delay: 0.10s; }
    .dept-tab:nth-child(3) { animation-delay: 0.15s; }
    .dept-tab:nth-child(4) { animation-delay: 0.20s; }
    .dept-tab:nth-child(5) { animation-delay: 0.25s; }
    .dept-tab:nth-child(6) { animation-delay: 0.30s; }

    /* Group sections fade in (one after another) */
    .group-section {
        animation: ahsFadeUp 0.6s ease-out both;
        animation-delay: 0.2s;
    }
    .group-section + .group-section { animation-delay: 0.35s; }
    .group-section + .group-section + .group-section { animation-delay: 0.50s; }

    /* Person cards stagger inside each grid */
    .cards-grid .person-card {
        animation: ahsZoomIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    }
    .cards-grid .person-card:nth-child(1)  { animation-delay: 0.05s; }
    .cards-grid .person-card:nth-child(2)  { animation-delay: 0.09s; }
    .cards-grid .person-card:nth-child(3)  { animation-delay: 0.13s; }
    .cards-grid .person-card:nth-child(4)  { animation-delay: 0.17s; }
    .cards-grid .person-card:nth-child(5)  { animation-delay: 0.21s; }
    .cards-grid .person-card:nth-child(6)  { animation-delay: 0.25s; }
    .cards-grid .person-card:nth-child(7)  { animation-delay: 0.29s; }
    .cards-grid .person-card:nth-child(8)  { animation-delay: 0.33s; }
    .cards-grid .person-card:nth-child(n+9) { animation-delay: 0.37s; }

    /* Card photo subtle zoom on hover */
    .person-card .card-photo img {
        transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
    }
    .person-card--linked:hover .card-photo img {
        transform: scale(1.05);
    }

    /* Card press feedback */
    .person-card--linked:active {
        transform: translateY(-2px) scale(0.985);
        transition: transform 0.08s ease;
    }

    /* Hub cards (index page) stagger */
    .hub-grid .hub-card {
        animation: ahsFadeUp 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    }
    .hub-grid .hub-card:nth-child(1) { animation-delay: 0.10s; }
    .hub-grid .hub-card:nth-child(2) { animation-delay: 0.18s; }
    .hub-grid .hub-card:nth-child(3) { animation-delay: 0.26s; }
    .hub-grid .hub-card:nth-child(4) { animation-delay: 0.34s; }
    .hub-grid .hub-card:nth-child(5) { animation-delay: 0.42s; }
    .hub-grid .hub-card:nth-child(6) { animation-delay: 0.50s; }
}
