/*
 * SFUCHAS Alumni Portal — design system (2026-11-22)
 *
 * Plain CSS on purpose (same pattern as public/css/*.css): no Vite/Tailwind build
 * step, so the portal works the moment the files are uploaded. Fonts are local
 * (CSP font-src 'self'). Every animation is switched off for visitors who ask for
 * reduced motion, and the site is fully usable without any of it.
 *
 * Palette = the approved SFUCHAS brand board, plus a warm gold for "celebration"
 * accents and a midnight base for the hero.
 */

@font-face { font-family: "Lora"; src: url("fonts/lora.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/lora-italic.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dmsans.woff") format("woff"); font-weight: 300 800; font-style: normal; font-display: swap; }

:root {
    --navy: #001832;
    --midnight: #000d1f;
    --deep: #003861;
    --ocean: #0B6399;
    --ocean-2: #1781c4;
    --cyan: #5EE1FF;
    --magenta: #C30080;
    --magenta-2: #e0299f;
    --yellow: #F1EA20;
    --gold: #F7C948;
    --mist: #F3F7FB;
    --paper: #F6F8FC;
    --ink: #0F1E33;
    --ink-2: #33445c;
    --muted: #64748b;
    --line: #e3e9f2;
    --white: #fff;
    --success: #0f9d6b;
    --danger: #d23b4b;
    --warning: #c98a07;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-sm: 0 1px 2px rgba(15, 30, 51, .06), 0 1px 1px rgba(15, 30, 51, .04);
    --shadow: 0 10px 30px -12px rgba(0, 24, 50, .25), 0 2px 6px rgba(0, 24, 50, .06);
    --shadow-lg: 0 30px 60px -20px rgba(0, 24, 50, .45);
    --glow: 0 0 0 1px rgba(94, 225, 255, .25), 0 10px 40px -10px rgba(94, 225, 255, .45);

    --font-display: "Lora", Georgia, "Times New Roman", serif;
    --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --wrap: 1200px;
    --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16.5px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--ocean); text-decoration: none; }
a:hover { color: var(--magenta); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
em.accent, .accent-i { font-style: italic; color: var(--magenta); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 820px; }
.stack > * + * { margin-top: 1rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.center { text-align: center; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1 1 auto; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0 !important; } .mb-2 { margin-bottom: 1rem; }

/* ------------------------------------------------------------------ eyebrow */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--magenta);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.on-dark .eyebrow { color: var(--cyan); }

/* ------------------------------------------------------------------ buttons */
.btn {
    --b: var(--ocean);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
    font-weight: 700; font-size: .95rem; cursor: pointer; white-space: nowrap;
    background: var(--b); color: #fff; text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }
.btn-gold {
    background: linear-gradient(135deg, #ffe58a 0%, var(--gold) 40%, #f0a92c 100%);
    color: var(--navy); box-shadow: 0 10px 30px -10px rgba(247, 201, 72, .7);
    position: relative; overflow: hidden;
}
.btn-gold:hover { color: var(--navy); }
.btn-gold::after { /* travelling shine */
    content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent);
    transform: skewX(-20deg); animation: shine 3.8s ease-in-out infinite;
}
.btn-magenta { background: linear-gradient(135deg, var(--magenta-2), var(--magenta)); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-outline { background: #fff; color: var(--ocean); border-color: var(--line); }
.btn-outline:hover { color: var(--magenta); border-color: var(--magenta); }
.btn-soft { background: rgba(11, 99, 153, .09); color: var(--ocean); }
.btn-soft:hover { background: rgba(11, 99, 153, .16); color: var(--ocean); }
.btn-danger { background: var(--danger); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .85rem; }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.link-arrow { font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ------------------------------------------------------------------ nav */
.nav {
    position: sticky; top: 0; z-index: 50; height: var(--nav-h);
    background: rgba(0, 13, 31, .72);
    backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; min-width: 0; }
.brand:hover { color: #fff; }
.brand img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(94, 225, 255, .35)); }
.brand > span { min-width: 0; }
.brand b { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; display: block; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand small { display: block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); opacity: .9; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a, .nav-more > button {
    color: rgba(255, 255, 255, .78); font-weight: 600; font-size: .92rem; padding: 8px 12px; border-radius: 999px;
    background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.nav-links a:hover, .nav-more > button:hover, .nav-links a.active { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-links a.active { box-shadow: inset 0 -2px 0 var(--gold); border-radius: 10px 10px 4px 4px; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-more { position: relative; }
.menu {
    position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; padding: 8px;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
    display: none; z-index: 60;
}
.menu.open { display: block; animation: pop .18s ease-out; }
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: .92rem; background: none; border: 0; cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--mist); color: var(--ocean); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.menu .menu-head { padding: 10px 12px 8px; }
.menu .menu-head b { display: block; }
.avatar-btn { background: none; border: 0; padding: 0; cursor: pointer; border-radius: 999px; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; }
.burger svg { margin: auto; }

.drawer { position: fixed; inset: 0; z-index: 70; display: none; }
.drawer.open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0, 13, 31, .6); backdrop-filter: blur(4px); }
.drawer-panel {
    position: absolute; right: 0; top: 0; bottom: 0; width: min(86vw, 360px); background: var(--navy); color: #fff;
    padding: 22px; overflow-y: auto; animation: slideIn .25s ease-out;
    background-image: radial-gradient(circle at 100% 0, rgba(195, 0, 128, .35), transparent 50%), radial-gradient(circle at 0 100%, rgba(11, 99, 153, .5), transparent 55%);
}
.drawer-panel a { display: block; color: rgba(255, 255, 255, .88); padding: 12px 6px; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.drawer-panel a:hover { color: var(--gold); }
.drawer-close { background: none; border: 0; color: #fff; font-size: 1.8rem; cursor: pointer; float: right; line-height: 1; }

/* Bottom tab bar (members, phones) — app-like navigation */
.tabbar { display: none; }

/* ------------------------------------------------------------------ hero (landing) */
.hero {
    position: relative; overflow: hidden; color: #fff; isolation: isolate;
    background: radial-gradient(1200px 600px at 80% -10%, rgba(195, 0, 128, .45), transparent 60%),
                radial-gradient(900px 600px at -10% 30%, rgba(11, 99, 153, .75), transparent 60%),
                radial-gradient(700px 500px at 50% 120%, rgba(94, 225, 255, .25), transparent 60%),
                linear-gradient(180deg, var(--midnight), var(--navy) 60%, #00213f);
    margin-top: calc(-1 * var(--nav-h)); padding-top: var(--nav-h);
}
/* Star-network canvas: works inside any section that contains <canvas class="constellation"> */
canvas.constellation { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.has-net { position: relative; overflow: hidden; isolation: isolate; }
.has-net > *:not(canvas):not(.sparkles):not(.aurora) { position: relative; z-index: 1; }
.hero canvas.constellation { z-index: -1; }
.hero .aurora { position: absolute; inset: -20%; z-index: -2; filter: blur(60px); opacity: .55; pointer-events: none; }
.hero .aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: drift 22s ease-in-out infinite alternate; }
.hero .aurora span:nth-child(1) { width: 45vw; height: 45vw; left: 5%; top: 10%; background: var(--ocean-2); }
.hero .aurora span:nth-child(2) { width: 35vw; height: 35vw; right: 5%; top: 0; background: var(--magenta); animation-duration: 28s; }
.hero .aurora span:nth-child(3) { width: 30vw; height: 30vw; left: 40%; bottom: -5%; background: #12b5d8; animation-duration: 34s; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 84px 20px 120px; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.4vw, 4.4rem); line-height: 1.04; margin: 18px 0 20px; }
.hero h1 .shimmer {
    font-style: italic; font-weight: 500;
    background: linear-gradient(90deg, #ffe7a3, var(--gold), #fff4cf, var(--cyan), #ffe7a3);
    background-size: 250% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shimmer 7s linear infinite;
}
.hero p.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .82); max-width: 40rem; }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero .trust { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; color: rgba(255, 255, 255, .7); font-size: .9rem; }
.hero .trust span { display: inline-flex; gap: 8px; align-items: center; }
.hero .trust svg { width: 18px; height: 18px; color: var(--gold); }
.badge-live {
    display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-size: .85rem; color: #fff; backdrop-filter: blur(8px);
}
.badge-live i { width: 8px; height: 8px; border-radius: 50%; background: #3ef0a5; box-shadow: 0 0 0 0 rgba(62, 240, 165, .7); animation: pulse 2s infinite; }

/* Real campus photo, faded into the dark hero backgrounds */
span.photo-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center 30%; opacity: .16; mix-blend-mode: luminosity; pointer-events: none; }
.hero span.photo-bg { z-index: -3; opacity: .42; mix-blend-mode: normal; background-position: center 64%;
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.6) 40%, #000 70%); mask-image: linear-gradient(90deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.6) 40%, #000 70%); }
@media (max-width: 860px) { .hero span.photo-bg { opacity: .3; -webkit-mask-image: none; mask-image: none; background-position: center 35%; } }
.page-hero span.photo-bg { opacity: .14; }
.auth-art span.photo-bg { opacity: .22; }

/* Floating glass card stack on the right of the hero */
.hero-visual { position: relative; min-height: 440px; }
.glass {
    background: linear-gradient(150deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
    border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius-lg);
    backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
    box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.float-card { position: absolute; padding: 18px; color: #fff; animation: bob 7s ease-in-out infinite; }
.float-card.a { top: 10px; left: 6%; width: 78%; }
.float-card.b { top: 190px; right: 0; width: 62%; animation-delay: -2.5s; }
.float-card.c { bottom: 0; left: 0; width: 58%; animation-delay: -4.5s; }
.float-card h4 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin: 0 0 10px; }
.faces { display: flex; }
.faces > * { margin-left: -10px; border: 2px solid rgba(0, 24, 50, .9); }
.faces > *:first-child { margin-left: 0; }
.mini-stat { font-family: var(--font-display); font-size: 2.1rem; line-height: 1; }
.mini-stat small { font-family: var(--font-body); font-size: .85rem; color: rgba(255, 255, 255, .75); display: block; margin-top: 6px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: rgba(11, 99, 153, .1); color: var(--ocean); }
.glass .chip { background: rgba(255, 255, 255, .12); color: #fff; }
.chip.gold { background: rgba(247, 201, 72, .18); color: #8a5c00; }
.glass .chip.gold { background: rgba(247, 201, 72, .25); color: #ffe7a3; }
.chip.magenta { background: rgba(195, 0, 128, .1); color: var(--magenta); }
.chip.green { background: rgba(15, 157, 107, .12); color: var(--success); }
.chip.grey { background: #eef2f7; color: var(--ink-2); }

.wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; color: var(--paper); }
.wave svg { width: 100%; height: 100%; }

/* ------------------------------------------------------------------ sections */
.section { padding: 72px 0; position: relative; }
/* Two light sections in a row share one gap instead of two */
.section:not(.section-dark) + .section:not(.section-dark) { padding-top: 8px; }
.sample-tag { margin-top: 8px; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
.quote .sample-tag { position: absolute; right: 18px; top: 16px; margin: 0; }
.section-tight { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { margin: 10px 0 0; }
.section-head p { max-width: 36rem; color: var(--muted); margin: 10px 0 0; }
.section-dark {
    color: #fff;
    background: radial-gradient(800px 400px at 90% 0, rgba(195, 0, 128, .35), transparent 60%),
                radial-gradient(700px 500px at 0 100%, rgba(11, 99, 153, .6), transparent 60%), var(--navy);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .muted, .section-dark .section-head p { color: rgba(255, 255, 255, .72); }

/* Stats band overlapping the hero */
.stats {
    position: relative; z-index: 3; margin-top: -70px;
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.stat { padding: 28px 24px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 24%; height: 52%; width: 1px; background: var(--line); }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 600; line-height: 1;
    background: linear-gradient(135deg, var(--deep), var(--ocean-2) 60%, var(--magenta)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-weight: 600; font-size: .9rem; }

/* Pillars (Connect / Give back / Expand) */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
    position: relative; padding: 34px 30px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line);
    box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .35s ease, box-shadow .35s ease;
}
.pillar::before { /* gradient ring on hover */
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
    background: linear-gradient(135deg, var(--cyan), var(--magenta), var(--gold));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity .35s;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pillar:hover::before { opacity: 1; }
.pillar .num { position: absolute; right: 22px; top: 12px; font-family: var(--font-display); font-style: italic; font-size: 4.5rem; color: rgba(11, 99, 153, .07); line-height: 1; }
.icon-orb {
    width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; color: #fff; margin-bottom: 22px;
    background: linear-gradient(135deg, var(--ocean-2), var(--deep)); box-shadow: 0 12px 24px -10px rgba(11, 99, 153, .8);
}
.icon-orb svg { width: 28px; height: 28px; }
.icon-orb.magenta { background: linear-gradient(135deg, var(--magenta-2), #8d005d); box-shadow: 0 12px 24px -10px rgba(195, 0, 128, .7); }
.icon-orb.gold { background: linear-gradient(135deg, #ffd66b, #e59b14); color: var(--navy); box-shadow: 0 12px 24px -10px rgba(229, 155, 20, .7); }
.icon-orb.sm { width: 42px; height: 42px; border-radius: 13px; margin: 0; }
.icon-orb.sm svg { width: 20px; height: 20px; }
.pillar h3 { font-size: 1.5rem; }
.pillar p { color: var(--muted); }

/* Recently joined marquee */
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: marquee 50s linear infinite; padding: 10px 0 20px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.joiner {
    width: 210px; flex: 0 0 auto; padding: 20px 16px; border-radius: var(--radius); text-align: center;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #fff;
}
.joiner .avatar { margin: 0 auto 12px; }
.joiner b { display: block; font-size: .98rem; }
.joiner small { color: rgba(255, 255, 255, .65); display: block; font-size: .8rem; }

/* ------------------------------------------------------------------ avatar */
.avatar {
    --s: 44px; width: var(--s); height: var(--s); border-radius: 50%; flex: 0 0 auto; overflow: hidden;
    display: grid; place-items: center; color: #fff; font-weight: 700; font-size: calc(var(--s) * .36); letter-spacing: .02em;
    background: linear-gradient(135deg, var(--ocean-2), var(--magenta));
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.ring { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gold); }
.avatar.xs { --s: 30px; } .avatar.sm { --s: 36px; } .avatar.md { --s: 56px; } .avatar.lg { --s: 84px; } .avatar.xl { --s: 132px; }

/* ------------------------------------------------------------------ cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: 26px; }
.card-pad-lg { padding: 34px; }
.card h3 { margin-bottom: .35em; }
.card-hover { transition: transform .3s ease, box-shadow .3s ease, border-color .3s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe0f0; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

.media-card { overflow: hidden; display: flex; flex-direction: column; color: inherit; }
.media-card:hover { color: inherit; }
.media-card .media { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--deep), var(--ocean) 55%, var(--magenta)); position: relative; overflow: hidden; }
.media-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.media-card:hover .media img { transform: scale(1.05); }
.media-card .media .pattern { position: absolute; inset: 0; opacity: .35; background-image: radial-gradient(rgba(255,255,255,.45) 1px, transparent 1.5px); background-size: 18px 18px; }
.media-card .media .tag { position: absolute; left: 14px; top: 14px; }
.media-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.media-card .body h3 { font-size: 1.18rem; margin: 0; }
.media-card .meta { color: var(--muted); font-size: .85rem; display: flex; gap: 12px; flex-wrap: wrap; }

/* Event date tile */
.date-tile { width: 64px; flex: 0 0 auto; text-align: center; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.date-tile span { display: block; background: linear-gradient(135deg, var(--magenta-2), var(--magenta)); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .1em; padding: 4px 0; text-transform: uppercase; }
.date-tile b { display: block; font-family: var(--font-display); font-size: 1.7rem; line-height: 1.25; padding: 4px 0 6px; color: var(--ink); }
.event-row { display: flex; gap: 18px; align-items: flex-start; padding: 18px; border-radius: var(--radius); transition: background .2s; color: inherit; }
.event-row:hover { background: var(--mist); color: inherit; }
.section-dark .event-row:hover { background: rgba(255, 255, 255, .06); }
.event-row h3 { font-size: 1.08rem; margin: 0 0 4px; }

/* Member card (directory) */
.member-card { padding: 24px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; color: inherit; position: relative; }
.member-card:hover { color: inherit; }
.member-card .avatar { margin-bottom: 12px; }
.member-card b { font-size: 1.02rem; }
.member-card .role { color: var(--ink-2); font-size: .88rem; min-height: 2.6em; }
.member-card .where { color: var(--muted); font-size: .82rem; }
.member-card .mentor-flag { position: absolute; right: 14px; top: 14px; }

/* Opportunity card */
.opp { padding: 22px; display: flex; flex-direction: column; gap: 10px; color: inherit; height: 100%; }
.opp:hover { color: inherit; }
.opp h3 { font-size: 1.1rem; margin: 0; }
.opp .org { color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.opp .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font-size: .82rem; padding-top: 10px; border-top: 1px dashed var(--line); }
.type-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote {
    position: relative; padding: 32px 28px 26px; border-radius: var(--radius-lg); color: #fff;
    background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .12);
}
.quote::before { content: "“"; position: absolute; top: -18px; left: 22px; font-family: var(--font-display); font-size: 6rem; line-height: 1; color: var(--gold); opacity: .9; }
.quote blockquote { margin: 18px 0 22px; font-family: var(--font-display); font-size: 1.12rem; line-height: 1.55; font-style: italic; color: rgba(255, 255, 255, .92); }
.quote .who { display: flex; gap: 12px; align-items: center; }
.quote .who small { color: rgba(255, 255, 255, .6); display: block; }
.quote h4 { font-family: var(--font-body); color: var(--cyan); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin: 0; }

/* Campaign / progress */
.progress { height: 12px; border-radius: 999px; background: #e7edf5; overflow: hidden; }
.section-dark .progress, .glass .progress { background: rgba(255, 255, 255, .14); }
.progress > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--magenta-2)); position: relative; width: 0; transition: width 1.6s cubic-bezier(.2, .8, .2, 1); }
.progress > i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: shine-bar 2.4s infinite; }

/* CTA banner */
.cta-band {
    position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: 56px; color: #fff;
    background: radial-gradient(500px 300px at 100% 0, rgba(247, 201, 72, .35), transparent 60%),
                radial-gradient(600px 400px at 0 100%, rgba(195, 0, 128, .55), transparent 60%),
                linear-gradient(135deg, var(--deep), var(--navy));
    display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; align-items: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .8); }
.sparkles { position: absolute; inset: 0; pointer-events: none; }
.sparkles i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px rgba(255, 255, 255, .8); animation: twinkle 3s ease-in-out infinite; }

/* "Moments we share": 3D coverflow, same behaviour as the main site's Campus Gallery */
.moments { overflow: hidden; }
.coverflow { position: relative; }
.cf-stage { position: relative; height: max(520px, 52vh); max-width: 1280px; margin: 0 auto; overflow: hidden; perspective: 1600px; }
.cf-card {
    position: absolute; left: 50%; top: 50%; width: 340px; aspect-ratio: 4 / 5; padding: 0; border: 0; cursor: pointer;
    border-radius: 22px; overflow: hidden; background: var(--mist); box-shadow: 0 30px 60px -24px rgba(0, 24, 50, .55);
    transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .6s ease; will-change: transform;
}
.cf-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cf-card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(transparent, rgba(0, 13, 31, .82)); pointer-events: none; }
.cf-card .cf-cap { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; color: #fff; font-weight: 700; font-size: .95rem; text-align: left; line-height: 1.3; }
.cf-card.is-active { cursor: zoom-in; box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--gold), 0 40px 70px -24px rgba(0, 24, 50, .6); }
.cf-card .cf-zoom { position: absolute; right: 12px; top: 12px; z-index: 1; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: var(--navy); opacity: 0; transition: opacity .3s; }
.cf-card.is-active .cf-zoom { opacity: 1; }
.cf-nav { position: absolute; top: 50%; z-index: 120; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink-2); box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; font-size: 1.5rem; line-height: 1; }
.cf-nav:hover { color: var(--magenta); border-color: var(--magenta); }
.cf-prev { left: max(8px, calc(50% - 640px + 8px)); }
.cf-next { right: max(8px, calc(50% - 640px + 8px)); }
.cf-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; padding: 0 20px; }
.cf-dot { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: #cbd5e1; cursor: pointer; transition: width .3s, background .3s; }
.cf-dot.on { width: 22px; background: linear-gradient(90deg, var(--ocean-2), var(--magenta)); }
@media (max-width: 1024px) { .cf-card { width: 280px; } .cf-stage { height: 460px; } }
@media (max-width: 640px) { .cf-card { width: 210px; } .cf-stage { height: 360px; } }

/* Lightbox (alumni.js) */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0, 13, 31, .92); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 24px; animation: fadeUp .25s ease-out; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lightbox img { max-width: 100%; max-height: 78vh; border-radius: 16px; box-shadow: var(--shadow-lg); margin: 0 auto; }
.lightbox figcaption { color: #fff; font-family: var(--font-display); font-style: italic; font-size: 1.15rem; margin-top: 14px; }
.lightbox .lb-count { color: rgba(255, 255, 255, .6); font-size: .82rem; margin-top: 4px; letter-spacing: .08em; }
.lightbox img { user-select: none; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .25); width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* Gallery */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 14px; grid-auto-flow: dense; }
.mosaic a { border-radius: var(--radius); overflow: hidden; position: relative; }
.mosaic a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.mosaic a:hover img { transform: scale(1.06); }
.mosaic figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; font-size: .85rem; background: linear-gradient(transparent, rgba(0, 13, 31, .8)); }

/* ------------------------------------------------------------------ page hero (inner pages) */
.page-hero {
    position: relative; overflow: hidden; color: #fff; margin-top: calc(-1 * var(--nav-h)); padding: calc(var(--nav-h) + 54px) 0 86px;
    background: radial-gradient(700px 300px at 85% 0, rgba(195, 0, 128, .45), transparent 60%),
                radial-gradient(700px 400px at 0 100%, rgba(11, 99, 153, .8), transparent 60%),
                linear-gradient(180deg, var(--midnight), var(--navy));
}
.page-hero::after { content: ""; position: absolute; inset: 0; opacity: .25; background-image: radial-gradient(rgba(255,255,255,.5) 1px, transparent 1.4px); background-size: 26px 26px; -webkit-mask: linear-gradient(180deg, #000, transparent); mask: linear-gradient(180deg, #000, transparent); pointer-events: none; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin: 12px 0 10px; }
.page-hero p { color: rgba(255, 255, 255, .78); max-width: 44rem; font-size: 1.08rem; margin: 0; }
.page-hero .crumbs { font-size: .85rem; color: rgba(255, 255, 255, .6); }
.page-hero .crumbs a { color: rgba(255, 255, 255, .8); }
.page-body { position: relative; z-index: 2; margin-top: -44px; padding-bottom: 90px; }

/* ------------------------------------------------------------------ dashboard */
.welcome {
    position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: 34px; color: #fff;
    background: radial-gradient(500px 260px at 100% 0, rgba(247, 201, 72, .3), transparent 60%), linear-gradient(135deg, var(--ocean), var(--deep) 55%, #2a0b4a);
    display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center;
}
.welcome h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.welcome p { color: rgba(255, 255, 255, .8); margin: 0; }
.ring-progress { --p: 50; width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center; position: relative;
    background: conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(255, 255, 255, .15) 0); }
.ring-progress::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--deep); }
.ring-progress b { position: relative; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; text-align: center; }
.ring-progress b small { display: block; font-family: var(--font-body); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; opacity: .75; margin-top: 4px; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick a { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 700; transition: all .25s; }
.quick a:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ocean); }
.quick a small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
.dash-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.notice-card { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--radius); background: linear-gradient(135deg, #fff8e1, #fff); border: 1px solid #f6e2a6; }
.notice-card.blue { background: linear-gradient(135deg, #e9f4fd, #fff); border-color: #cde3f5; }

/* ------------------------------------------------------------------ forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label, .label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 7px; color: var(--ink); }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.field .error, .error-text { font-size: .83rem; color: var(--danger); margin-top: 6px; font-weight: 600; }
.input, .select, .textarea {
    width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid #d6dfea; background: #fff;
    transition: border-color .2s, box-shadow .2s; font-size: 1rem;
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ocean); box-shadow: 0 0 0 4px rgba(11, 99, 153, .14); }
.is-invalid { border-color: var(--danger) !important; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 500; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ocean); flex: 0 0 auto; }
.switch { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.switch:last-child { border-bottom: 0; }
.switch b { display: block; font-size: .96rem; }
.switch small { color: var(--muted); display: block; font-size: .84rem; }
.switch input { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 999px; background: #cfd8e3; position: relative; cursor: pointer; transition: background .25s; flex: 0 0 auto; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .25s; }
.switch input:checked { background: linear-gradient(135deg, var(--ocean-2), var(--magenta)); }
.switch input:checked::after { transform: translateX(20px); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.rating { display: flex; gap: 8px; flex-wrap: wrap; }
.rating label { position: relative; }
.rating input { position: absolute; opacity: 0; }
.rating span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; border: 1.5px solid #d6dfea; font-weight: 800; cursor: pointer; transition: all .2s; background: #fff; }
.rating input:checked + span { background: linear-gradient(135deg, var(--ocean-2), var(--magenta)); color: #fff; border-color: transparent; transform: scale(1.06); }
.rating input:focus-visible + span { outline: 3px solid var(--cyan); }

/* Auth split screen */
.auth { min-height: calc(100vh - var(--nav-h)); display: grid; grid-template-columns: 1fr 1fr; margin-top: calc(-1 * var(--nav-h)); }
.auth-art {
    position: relative; overflow: hidden; color: #fff; padding: calc(var(--nav-h) + 60px) 56px 56px; display: flex; flex-direction: column; justify-content: space-between;
    background: radial-gradient(600px 400px at 100% 0, rgba(195, 0, 128, .55), transparent 60%), radial-gradient(600px 500px at 0 100%, rgba(11, 99, 153, .85), transparent 60%), var(--midnight);
}
.auth-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-art > * { position: relative; }
.auth-art h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.auth-art p { color: rgba(255, 255, 255, .78); }
.auth-form { padding: calc(var(--nav-h) + 50px) 56px 60px; display: flex; flex-direction: column; justify-content: center; background: #fff; }
.auth-form .inner { width: 100%; max-width: 520px; margin: 0 auto; }
.steps { gap: 8px; margin: 6px 0 26px; }
.steps button { flex: 1; border: 0; background: none; text-align: left; padding: 0; cursor: pointer; }
.steps button i { display: block; height: 5px; border-radius: 999px; background: #e3e9f2; margin-bottom: 8px; transition: background .3s; }
.steps button.done i, .steps button.on i { background: linear-gradient(90deg, var(--ocean-2), var(--magenta)); }
.steps button span { font-size: .78rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.steps button.on span { color: var(--ink); }
.step + .step { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line); }
.step-nav, .steps { display: none; }
.js .steps { display: flex; }
.js .step-nav { display: flex; }
.js .step { display: none; animation: fadeUp .35s ease-out; }
.js .step + .step { margin-top: 0; padding-top: 0; border-top: 0; }
.js .step.on { display: block; }
.js .final-submit { display: none; }

/* Alerts / flash */
.flash { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; font-weight: 600; margin-bottom: 20px; border: 1px solid; }
.flash.ok { background: #e9faf3; border-color: #b4ebd3; color: #0b6b49; }
.flash.err { background: #fdeef0; border-color: #f6c5cc; color: #a3202f; }
.flash.info { background: #eaf4fc; border-color: #c4def3; color: var(--deep); }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 90; background: var(--navy); color: #fff; padding: 14px 20px; border-radius: 14px; box-shadow: var(--shadow-lg); font-weight: 600; display: flex; gap: 10px; align-items: center; animation: fadeUp .4s ease-out; max-width: calc(100vw - 32px); }
.toast svg { color: #3ef0a5; flex: 0 0 auto; }

/* Celebration confetti (created by alumni.js) */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 95; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall 2.8s cubic-bezier(.25,.6,.5,1) forwards; }

/* Filters bar */
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; padding: 16px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.filters .input, .filters .select { min-height: 46px; flex: 1 1 180px; width: auto; }
.filters .search { flex: 3 1 260px; position: relative; }
.filters .search .input { padding-left: 44px; width: 100%; }
.filters .search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: .86rem; color: var(--ink-2); }
.pill:hover { border-color: var(--ocean); color: var(--ocean); }
.pill.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.pill em { font-style: normal; opacity: .6; margin-left: 4px; }

/* Directory group headings */
.group-head { display: flex; align-items: baseline; gap: 12px; margin: 36px 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.group-head h2 { font-size: 1.45rem; margin: 0; }
.group-head .chip { margin-left: auto; }
.directory-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.directory-tools .label { margin: 0 4px 0 0; font-size: .82rem; color: var(--muted); }

/* Profile page */
.profile-cover { height: 180px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: radial-gradient(400px 200px at 90% 0, rgba(247, 201, 72, .5), transparent 60%), linear-gradient(120deg, var(--deep), var(--ocean-2) 50%, var(--magenta)); position: relative; overflow: hidden; }
.profile-cover::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.45) 1px, transparent 1.5px); background-size: 22px 22px; opacity: .35; }
.profile-head { padding: 0 30px 26px; display: flex; gap: 22px; align-items: flex-end; margin-top: -60px; position: relative; z-index: 1; flex-wrap: wrap; }
.profile-head .avatar { box-shadow: 0 0 0 5px #fff, var(--shadow); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; margin: 0; }
.kv dt { color: var(--muted); font-weight: 600; font-size: .9rem; }
.kv dd { margin: 0; }

/* Alumni card */
.alumni-card {
    width: 100%; max-width: 460px; aspect-ratio: 1.586; border-radius: 22px; padding: 26px; color: #fff; position: relative; overflow: hidden;
    background: radial-gradient(300px 200px at 100% 0, rgba(247, 201, 72, .55), transparent 60%), radial-gradient(300px 260px at 0 100%, rgba(195, 0, 128, .6), transparent 60%), linear-gradient(135deg, var(--deep), var(--navy));
    box-shadow: var(--shadow-lg); display: flex; flex-direction: column; justify-content: space-between;
}
.alumni-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .22) 45%, transparent 60%); transform: translateX(-100%); animation: card-sheen 6s ease-in-out infinite; }
.alumni-card .top { display: flex; justify-content: space-between; align-items: flex-start; }
.alumni-card .chipset { width: 46px; height: 34px; border-radius: 7px; background: linear-gradient(135deg, #ffe7a3, #d59f2b); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.alumni-card .num { font-family: "DM Sans", monospace; letter-spacing: .18em; font-size: 1.05rem; }
.alumni-card.disabled { filter: grayscale(.6); opacity: .85; }

/* Empty state */
.empty { text-align: center; padding: 56px 20px; }
.empty .icon-orb { margin: 0 auto 18px; }
.empty h3 { margin-bottom: 6px; }

/* Pagination (Laravel default markup is restyled) */
.pagination-wrap nav { display: flex; justify-content: center; margin-top: 34px; }
.pagination-wrap nav > div:first-child { display: none; }
.pagination-wrap nav span, .pagination-wrap nav a { border-radius: 12px !important; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-weight: 700; color: var(--ink-2); }
.pager span.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager span.off { opacity: .45; }

/* Prose (stories) */
.prose { font-size: 1.08rem; line-height: 1.8; color: var(--ink-2); }
.prose p:first-of-type::first-letter { font-family: var(--font-display); float: left; font-size: 3.6rem; line-height: .9; padding: 6px 10px 0 0; color: var(--magenta); }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose img { border-radius: var(--radius); }
.prose a { text-decoration: underline; }

/* Footer */
.footer { background: var(--midnight); color: rgba(255, 255, 255, .72); padding: 70px 0 34px; position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--ocean-2), var(--magenta), var(--gold), var(--cyan)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; text-align: center; }
.footer .brand { display: flex; justify-content: center; align-items: center; flex-direction: column; text-align: center; gap: 10px; }
.footer .brand img { width: 56px; height: 56px; margin: 0 auto; }
.footer-about { max-width: 30rem; margin-left: auto; margin-right: auto; }
.footer h4 { font-family: var(--font-body); color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer a { color: rgba(255, 255, 255, .72); display: block; padding: 4px 0; font-size: .94rem; }
.footer a:hover { color: var(--gold); }
.footer .base { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 46px; padding-top: 22px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; font-size: .86rem; }

/* Tables (simple) */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); font-size: .93rem; vertical-align: top; }
.table th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }

/* Reveal on scroll (alumni.js adds .in) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }

/* ------------------------------------------------------------------ keyframes */
@keyframes shimmer { to { background-position: -250% center; } }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@keyframes shine-bar { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes card-sheen { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(6vw, 4vh) scale(1.15); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(62, 240, 165, .7); } 70% { box-shadow: 0 0 0 10px rgba(62, 240, 165, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 240, 165, 0); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1); } }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: .9; } }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
    .nav-links { display: none; }
    .burger { display: grid; }
    .nav-actions .hide-md { display: none; }
    .hero-inner { grid-template-columns: 1fr; padding-bottom: 110px; }
    .hero-visual { min-height: 380px; max-width: 520px; width: 100%; margin: 0 auto; }
    .grid-4, .quick { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .dash-grid { grid-template-columns: 1fr; }
    .cta-band { grid-template-columns: 1fr; padding: 40px 30px; }
}
@media (max-width: 860px) {
    .auth { grid-template-columns: 1fr; }
    .auth-art { padding: calc(var(--nav-h) + 30px) 24px 34px; min-height: 0; }
    .auth-art .hide-sm { display: none; }
    .auth-form { padding: 34px 20px 60px; }
    .pillars, .quotes, .grid-3 { grid-template-columns: 1fr; }
    .grid-2, .form-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3)::before { display: none; }
    .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
    .welcome { grid-template-columns: 1fr; text-align: left; }
    .section { padding: 56px 0; }
    .kv { grid-template-columns: 1fr; gap: 2px; }
    .kv dd { margin-bottom: 10px; }
}
@media (max-width: 760px) {
    body.member { padding-bottom: 78px; }
    .tabbar {
        display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 55;
        background: rgba(0, 13, 31, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 22px; padding: 8px; box-shadow: var(--shadow-lg);
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }
    .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: rgba(255, 255, 255, .62); font-size: .68rem; font-weight: 700; padding: 6px 0; border-radius: 14px; }
    .tabbar a svg { width: 22px; height: 22px; }
    .tabbar a.active { color: #fff; background: rgba(255, 255, 255, .08); }
    .tabbar a.active svg { color: var(--gold); }
    .toast { bottom: 96px; }
}
@media (max-width: 860px) {
    .hero-inner { padding-bottom: 130px; }
    .hero-visual { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .float-card { position: static; width: auto !important; animation: none; padding: 16px; }
    .float-card.a { grid-column: 1 / -1; }
    .float-card .mini-stat { font-size: 1.7rem; }
    .float-card.b .chip-row { display: none; }
    .grid-3:has(> .member-card), .grid-4:has(> .member-card) { grid-template-columns: 1fr 1fr; gap: 12px; }
    .member-card { padding: 18px 10px; }
    .member-card .avatar.lg { --s: 64px; }
    .notice-card { flex-wrap: wrap; }
    .notice-card .grow { flex: 1 1 200px; }
}
@media (max-width: 520px) {
    .wrap { padding: 0 16px; }
    .brand b { font-size: 1rem; }
    .nav .wrap { gap: 10px; }
    .brand small { display: none; }
    .grid-4, .quick { grid-template-columns: 1fr 1fr; gap: 12px; }
    .quick a { flex-direction: column; align-items: flex-start; padding: 14px; }
    .hero .ctas .btn { width: 100%; }
    .float-card.a { width: 92%; left: 4%; } .float-card.b { width: 74%; } .float-card.c { width: 72%; }
    .card-pad, .card-pad-lg { padding: 20px; }
    .stats { margin-top: -54px; }
    .stat { padding: 20px 10px; }
    .profile-head { padding: 0 18px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
    canvas.constellation { display: none; }
}

@media print {
    .nav, .tabbar, .footer, .drawer { display: none !important; }
    .page-hero { color: var(--ink); background: none; margin: 0; padding: 0; }
    .page-hero h1 { color: var(--ink); }
}

/* Password rule hint: one line that runs on under the "Repeat password" box
   (which has no hint), so the two-column row keeps its height. */
@media (min-width: 861px) {
    .form-grid > .field:not(.full):has(#f-password) .hint {
        width: calc(200% + 20px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
}
