:root{
  --bg: #07090A;
  --panel: rgba(255,255,255,.035);
  --line: rgba(255,255,255,.10);
  --ink: #EEF3F1;
  --ink-dim: #8B98A0;
  --blue: #4C8DFF;
  --circuit: #4CFFB2;
  --amber: #FFB238;
  --display: 'Sora', sans-serif;
  --body: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}
*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  background:var(--bg); color:var(--ink); font-family:var(--body); line-height:1.6;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
/* NOTE: `perspective` used to live on body, but a `perspective` (or
   `transform`/`filter`) on any ancestor turns it into the containing
   block for every `position:fixed` descendant — header, loader, custom
   cursor, back-to-top button, all of it. That pinned them to the top of
   the *document* instead of the *viewport*, so they scrolled out of
   sight instead of staying put. Perspective now lives on `section`
   below, which still gives .reveal3d its 3D depth without touching the
   fixed UI (header/cursor/etc. are siblings of sections, not descendants). */
::selection{ background:var(--blue); color:#07090A; }
a{ color:inherit; text-decoration:none; }

/* ---------- page loader ---------- */
#loader{
  position:fixed; inset:0; z-index:999; background:var(--bg);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:22px;
  transition:opacity .6s cubic-bezier(.16,.8,.28,1), visibility .6s;
}
#loader.done{ opacity:0; visibility:hidden; pointer-events:none; }
.loader-mark{ font-family:var(--display); font-weight:800; font-size:34px; letter-spacing:.02em; color:var(--ink); opacity:.92; }
.loader-mark span{ color:var(--circuit); }
.loader-bar{ width:200px; height:2px; background:var(--line); border-radius:2px; overflow:hidden; }
.loader-bar span{ display:block; height:100%; width:0%; background:linear-gradient(90deg,var(--blue),var(--circuit)); transition:width .25s ease-out; }
@media (prefers-reduced-motion:reduce){ #loader{ display:none; } }

/* ---------- custom cursor ---------- */
.cursor-dot, .cursor-ring{ position:fixed; top:0; left:0; z-index:998; pointer-events:none; border-radius:50%; will-change:transform; }
.cursor-dot{ width:6px; height:6px; background:var(--circuit); box-shadow:0 0 8px var(--circuit); transform:translate(-50%,-50%); }
.cursor-ring{ width:34px; height:34px; border:1px solid rgba(238,243,241,.35); transition:width .25s cubic-bezier(.16,.8,.28,1), height .25s cubic-bezier(.16,.8,.28,1), border-color .25s ease, background .25s ease; transform:translate(-50%,-50%); }
.cursor-ring.active{ width:54px; height:54px; border-color:var(--blue); background:rgba(76,141,255,.08); }
.cursor-ring.pressed{ width:26px; height:26px; border-color:var(--circuit); background:rgba(76,255,178,.14); }
.cursor-ring.text{ width:3px; height:26px; border-radius:2px; border-color:var(--circuit); background:var(--circuit); opacity:.8; }
@media (hover:none), (pointer:coarse), (max-width:900px){ .cursor-dot,.cursor-ring{ display:none; } }
@media (prefers-reduced-motion:reduce){ .cursor-dot,.cursor-ring{ display:none; } }

/* ---------- scroll progress ---------- */
.scroll-progress{ position:fixed; top:0; left:0; right:0; height:2px; z-index:60; background:transparent; }
.scroll-progress span{ display:block; height:100%; width:0%; background:linear-gradient(90deg,var(--blue),var(--circuit),var(--amber)); box-shadow:0 0 12px rgba(76,255,178,.5); }

/* ---------- circuit-trace background pattern ---------- */
#circuitPattern{
  position:fixed; inset:0; z-index:0; pointer-events:none; opacity:.16;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size:56px 56px;
  -webkit-mask-image:radial-gradient(ellipse 80% 60% at 50% 20%, black 20%, transparent 75%);
  mask-image:radial-gradient(ellipse 80% 60% at 50% 20%, black 20%, transparent 75%);
}
.circuit-node{
  position:fixed; width:5px; height:5px; border-radius:50%; background:var(--circuit);
  box-shadow:0 0 10px var(--circuit); z-index:0; pointer-events:none; opacity:.7;
}

/* ---------- ambient cursor glow ---------- */
#cursorGlow{
  position:fixed; width:520px; height:520px; border-radius:50%; pointer-events:none; z-index:1;
  background:radial-gradient(circle, rgba(76,141,255,.14), transparent 70%);
  transform:translate(-50%,-50%); left:50%; top:30%;
  transition:left .5s cubic-bezier(.16,.8,.28,1), top .5s cubic-bezier(.16,.8,.28,1);
  will-change:left, top;
}

/* ---------- floating depth orbs (parallax layers) ---------- */
.orb{ position:fixed; border-radius:50%; filter:blur(60px); pointer-events:none; z-index:0; opacity:.45; }
.orb-1{ width:340px; height:340px; background:var(--blue); top:6%; left:8%; }
.orb-2{ width:260px; height:260px; background:var(--circuit); top:38%; right:6%; opacity:.24; }
.orb-3{ width:300px; height:300px; background:var(--amber); bottom:4%; left:20%; opacity:.16; }
@keyframes drift{ 0%,100%{ transform:translateY(0) translateX(0); } 50%{ transform:translateY(-26px) translateX(14px); } }
.orb-1{ animation:drift 12s ease-in-out infinite; }
.orb-2{ animation:drift 15s ease-in-out infinite 1s; }
.orb-3{ animation:drift 18s ease-in-out infinite 2s; }

/* ---------- top nav ---------- */
header.top{
  position:fixed; top:0; left:0; right:0; z-index:50;
  background:rgba(7,9,10,.6); backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.top-inner{ max-width:1180px; margin:0 auto; padding:18px 28px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand{ font-family:var(--display); font-weight:700; font-size:19px; letter-spacing:-.01em; }
.brand .glow{ color:var(--circuit); }
nav.links{ display:flex; gap:26px; position:relative; }
.nav-link{ font-family:var(--mono); font-size:12px; color:var(--ink-dim); letter-spacing:.02em; transition:color .25s ease; position:relative; z-index:2; padding:6px 0; }
.nav-link:hover, .nav-link.active{ color:var(--ink); }
.nav-pill{
  position:absolute; left:0; top:calc(50% + 11px); width:0; height:1px; background:var(--circuit);
  box-shadow:0 0 8px rgba(76,255,178,.6); transition:transform .45s cubic-bezier(.16,.8,.28,1), width .45s cubic-bezier(.16,.8,.28,1), opacity .3s ease;
  opacity:0; pointer-events:none;
}
.nav-pill.show{ opacity:1; }
@media (max-width:900px){ nav.links{ display:none; } }

/* ---------- section shell ---------- */
section{ position:relative; z-index:2; padding:120px 28px 100px; perspective:1400px; }
@media (max-width:640px){ section{ padding:88px 20px 64px; } }
.wrap{ max-width:1100px; margin:0 auto; }

.eyebrow{
  font-family:var(--mono); font-size:12px; color:var(--circuit); letter-spacing:.14em;
  text-transform:uppercase; margin-bottom:16px; display:flex; align-items:center; gap:8px;
}
.eyebrow::before{ content:''; width:16px; height:1px; background:var(--circuit); }

h1,h2,h3{ font-family:var(--display); color:var(--ink); font-weight:700; letter-spacing:-.01em; }
h2{ font-size:clamp(30px,4vw,46px); line-height:1.08; margin-bottom:22px; position:relative; }

/* ---------- scan-reveal headings (tech "decode" entrance) ---------- */
.scan-wrap{ position:relative; display:inline-block; overflow:hidden; }
.scan-wrap .scan-bar{
  position:absolute; inset:0; background:linear-gradient(90deg,var(--circuit),var(--blue));
  transform:scaleX(1); transform-origin:left; z-index:2; pointer-events:none;
}
.in-view .scan-wrap .scan-bar{ animation:scanWipe .9s cubic-bezier(.76,0,.24,1) forwards; animation-delay:var(--rd,0ms); }
@keyframes scanWipe{ 0%{ transform:scaleX(0); transform-origin:left; } 50%{ transform:scaleX(1); transform-origin:left; } 50.001%{ transform-origin:right; } 100%{ transform:scaleX(0); transform-origin:right; } }
@media (prefers-reduced-motion:reduce){ .scan-wrap .scan-bar{ display:none; } }

/* ---------- scramble / decode text (eyebrows) ---------- */
.eyebrow.scramble{ font-variant-numeric:tabular-nums; }

/* ---------- tabular numerals for counting stats ---------- */
.num, .stat-cell .num{ font-variant-numeric:tabular-nums; }

/* ---------- Hero: layered 3D circuit floor ---------- */
.hero{ min-height:100svh; display:flex; align-items:center; padding-top:80px; }
.hero-stage{ width:100%; position:relative; touch-action:pan-y; }

#heroCanvas{
  position:absolute; inset:0; width:100%; height:100%; z-index:1;
  pointer-events:none; touch-action:pan-y;
}
.drag-hint{
  position:absolute; bottom:-64px; left:50%; transform:translateX(-50%); z-index:2;
  font-family:var(--mono); font-size:10.5px; color:var(--ink-dim); letter-spacing:.1em;
  text-transform:uppercase; display:flex; align-items:center; gap:8px; opacity:.75;
  pointer-events:none; white-space:nowrap;
}
.drag-hint svg{ width:14px; height:14px; }
@media (max-width:640px){ .drag-hint{ display:none; } }

.floor{
  position:absolute; left:50%; bottom:-260px; width:1600px; height:900px;
  transform:translateX(-50%) rotateX(72deg);
  background-image:
    repeating-linear-gradient(0deg, rgba(76,141,255,.18) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(76,255,178,.14) 0 1px, transparent 1px 64px);
  -webkit-mask-image:radial-gradient(ellipse 700px 500px at center, black 40%, transparent 78%);
  mask-image:radial-gradient(ellipse 700px 500px at center, black 40%, transparent 78%);
  pointer-events:none; z-index:0;
}

.hero-scanlines{
  position:absolute; inset:0; z-index:2; pointer-events:none; overflow:hidden;
  -webkit-mask-image:radial-gradient(ellipse 60% 55% at 50% 45%, black 30%, transparent 75%);
  mask-image:radial-gradient(ellipse 60% 55% at 50% 45%, black 30%, transparent 75%);
}
.hero-scanlines::before{
  content:''; position:absolute; left:0; right:0; height:120px; top:-120px;
  background:linear-gradient(180deg, transparent, rgba(76,255,178,.10) 45%, rgba(76,141,255,.14) 55%, transparent);
  animation:scanSweep 6.5s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes scanSweep{ 0%{ top:-120px; } 55%,100%{ top:105%; } }

.hero-content{ position:relative; z-index:3; text-align:center; pointer-events:none; }
.hero-content .cta-row{ pointer-events:auto; }
.hero-content .wordmark, .hero-content .hero-sub, .hero-content .lead{ text-shadow:0 4px 30px rgba(0,0,0,.6); }
.wordmark{
  font-family:var(--display); font-weight:800; letter-spacing:-.03em;
  font-size:clamp(56px,11vw,132px); line-height:.95; color:var(--ink);
  text-shadow:0 0 60px rgba(76,141,255,.3);
  text-align:center;
}
.wordmark .lt{ display:inline-block; opacity:0; transform:translateY(.5em) rotateX(-60deg); animation:letterIn .8s cubic-bezier(.16,.8,.28,1) forwards; animation-delay:calc(var(--i) * 55ms + .15s); transform-origin:bottom center; }
@keyframes letterIn{ to{ opacity:1; transform:translateY(0) rotateX(0); } }
.wordmark .g{ background:linear-gradient(135deg,var(--blue),var(--circuit)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero-sub{ font-family:var(--mono); font-size:13px; color:var(--ink-dim); letter-spacing:.14em; text-transform:uppercase; margin:18px 0 30px;
  opacity:0; animation:fadeUp .8s cubic-bezier(.16,.8,.28,1) forwards; animation-delay:.75s; }
.hero p.lead{ font-size:17px; color:var(--ink); max-width:52ch; margin:0 auto 34px; opacity:0; animation:fadeUp .8s cubic-bezier(.16,.8,.28,1) forwards; animation-delay:.9s; }
.cta-row{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; opacity:0; animation:fadeUp .8s cubic-bezier(.16,.8,.28,1) forwards; animation-delay:1.05s; }
@keyframes fadeUp{ from{ opacity:0; transform:translateY(16px); } to{ opacity:1; transform:translateY(0); } }
@media (prefers-reduced-motion:reduce){ .wordmark .lt{ animation:none; opacity:1; transform:none; } .hero-sub,.hero p.lead,.cta-row{ animation:none; opacity:1; } }

.btn{ font-family:var(--mono); font-weight:600; font-size:13.5px; letter-spacing:.02em; padding:14px 26px; border-radius:40px; display:inline-flex; align-items:center; gap:8px; cursor:pointer; transition:transform .35s cubic-bezier(.16,.8,.28,1), box-shadow .3s ease; position:relative; }
.btn-solid{ background:linear-gradient(135deg,var(--blue),#3E6FD9); color:#fff; box-shadow:0 8px 30px rgba(76,141,255,.35); }
.btn-solid:hover{ box-shadow:0 14px 40px rgba(76,141,255,.5); }
.btn-ghost{ border:1px solid var(--line); color:var(--ink); }
.btn-ghost:hover{ border-color:var(--circuit); color:var(--circuit); }
.magnetic{ will-change:transform; }

/* floating spec chips around hero (parallax + tilt) */
.chip-float{
  position:absolute; z-index:4; background:var(--panel); border:1px solid var(--line);
  border-radius:14px; padding:14px 18px; backdrop-filter:blur(10px);
  font-family:var(--mono); font-size:12px; color:var(--ink-dim);
  transition:transform .2s ease-out;
}
.chip-float .n{ color:var(--circuit); font-family:var(--display); font-weight:700; font-size:20px; display:block; }
.chip-a{ top:6%; left:2%; } .chip-b{ top:14%; right:0%; } .chip-c{ bottom:10%; left:8%; }
@media (max-width:900px){ .chip-float{ display:none; } }

/* ---------- 3D reveal on scroll ---------- */
.reveal3d{
  opacity:0; transform:translateY(50px) rotateX(14deg) scale(.97); transform-origin:center bottom;
  filter:blur(6px);
  transition:opacity .9s cubic-bezier(.16,.8,.28,1), transform .9s cubic-bezier(.16,.8,.28,1), filter .9s cubic-bezier(.16,.8,.28,1);
  transition-delay:var(--rd,0ms);
}
.reveal3d.in-view{ opacity:1; transform:translateY(0) rotateX(0) scale(1); filter:blur(0); }
@media (prefers-reduced-motion:reduce){ .reveal3d{ opacity:1; transform:none; filter:none; transition:none; } }

/* ---------- glass tilt + spotlight card ---------- */
.gcard{
  background:var(--panel); border:1px solid var(--line); border-radius:16px; padding:26px;
  backdrop-filter:blur(10px); transform-style:preserve-3d; transition:transform .15s ease-out, border-color .3s ease, box-shadow .3s ease;
  position:relative; overflow:hidden;
}
.gcard:hover{ border-color:rgba(76,141,255,.5); box-shadow:0 20px 50px -20px rgba(0,0,0,.6); }
.gcard::before{
  content:''; position:absolute; inset:0; border-radius:16px; padding:1px;
  background:linear-gradient(135deg, rgba(76,255,178,.5), transparent 50%);
  -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude; opacity:0; transition:opacity .3s ease;
  z-index:1;
}
.gcard:hover::before{ opacity:1; }
.gcard::after{
  content:''; position:absolute; inset:0; z-index:0; opacity:0; transition:opacity .35s ease;
  background:radial-gradient(280px circle at var(--mx,50%) var(--my,50%), rgba(76,141,255,.16), transparent 70%);
}
.gcard:hover::after{ opacity:1; }
.gcard > *{ position:relative; z-index:2; }

/* ---------- About ---------- */
.about-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:48px; align-items:start; }
@media (max-width:820px){ .about-grid{ grid-template-columns:1fr; } }
.about-grid p{ color:var(--ink); opacity:.85; margin-bottom:16px; max-width:58ch; font-size:15px; }

.stat-strip{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-top:40px; }
@media (max-width:640px){ .stat-strip{ grid-template-columns:1fr 1fr; } }
.stat-cell .num{ font-family:var(--display); font-size:36px; font-weight:800; background:linear-gradient(135deg,var(--blue),var(--circuit)); -webkit-background-clip:text; background-clip:text; color:transparent; line-height:1; }
.stat-cell .lbl{ font-family:var(--mono); font-size:10.5px; color:var(--ink-dim); text-transform:uppercase; letter-spacing:.08em; margin-top:10px; }

.pillars{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:20px; }
@media (max-width:760px){ .pillars{ grid-template-columns:1fr; } }
.pillars h3{ font-size:16px; margin-bottom:8px; }
.pillars p{ font-family:var(--body); font-size:13.5px; color:var(--ink-dim); }

/* ---------- Benefits ---------- */
.benefit-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:28px; }
@media (max-width:760px){ .benefit-grid{ grid-template-columns:1fr; } }
.benefit .tag{ font-family:var(--mono); font-size:10.5px; color:var(--circuit); margin-bottom:10px; display:block; }
.benefit h3{ font-size:17px; margin-bottom:8px; }
.benefit p{ font-family:var(--body); font-size:13.5px; color:var(--ink-dim); }

/* ---------- Events ---------- */
.measure-list{ margin-top:32px; }
.measure-row{
  display:grid; grid-template-columns:100px 1fr auto; gap:18px; align-items:center;
  padding:18px 20px; border-radius:12px; margin-bottom:10px; font-family:var(--mono); font-size:12.5px;
  background:var(--panel); border:1px solid var(--line); transition:transform .3s cubic-bezier(.16,.8,.28,1), border-color .3s ease;
}
.measure-row:hover{ transform:translateX(8px); border-color:rgba(76,255,178,.4); }
.measure-row .tick{ color:var(--ink-dim); }
.measure-row .desc{ color:var(--ink); font-family:var(--body); font-size:15px; }
.status{ font-size:10.5px; padding:5px 12px; border-radius:20px; border:1px solid; text-transform:uppercase; letter-spacing:.05em; }
.status-up{ color:var(--circuit); border-color:var(--circuit); }
.status-past{ color:var(--ink-dim); border-color:var(--line); }

/* ---------- Members ---------- */
.profile-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:16px; margin-top:30px; }
.profile-card{ padding:28px 22px; text-align:center; }
.profile-avatar{
  width:64px; height:64px; margin:0 auto 16px; border-radius:50%;
  background:linear-gradient(135deg,var(--blue),var(--circuit));
  display:flex; align-items:center; justify-content:center; font-family:var(--display); font-weight:700; color:#07090A; font-size:20px;
  transition:transform .3s cubic-bezier(.16,.8,.28,1);
}
.profile-card:hover .profile-avatar{ transform:scale(1.1) translateZ(20px); }
.profile-name{ font-family:var(--body); font-weight:600; font-size:15px; color:var(--ink); margin-bottom:4px; }
.profile-position{ font-family:var(--mono); font-size:10.5px; color:var(--circuit); text-transform:uppercase; letter-spacing:.06em; margin-bottom:16px; }
.plink{ font-family:var(--mono); font-size:11px; color:var(--ink-dim); border:1px solid var(--line); padding:7px 16px; border-radius:20px; display:inline-block; transition:.25s ease; }
.plink:hover{ color:var(--ink); border-color:var(--blue); background:rgba(76,141,255,.12); }

/* ---------- Join ---------- */
.join-panel{ text-align:center; padding:56px 40px; position:relative; overflow:hidden; }
.join-panel h2{ margin-bottom:14px; }
.join-panel p{ color:var(--ink-dim); max-width:48ch; margin:0 auto 30px; font-size:14.5px; }

/* ---------- Contact ---------- */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:48px; margin-top:32px; }
@media (max-width:760px){ .contact-grid{ grid-template-columns:1fr; } }
.contact-item{ margin-bottom:24px; font-family:var(--mono); }
.contact-item .lbl{ font-size:10.5px; color:var(--blue); text-transform:uppercase; letter-spacing:.08em; margin-bottom:6px; }
.contact-item .val{ font-family:var(--body); font-size:14.5px; color:var(--ink); }
.social-row{ display:flex; gap:10px; margin-top:18px; flex-wrap:wrap; }
.social-row a{ font-family:var(--mono); font-size:11.5px; color:var(--ink-dim); border:1px solid var(--line); padding:8px 16px; border-radius:20px; transition:.25s ease; }
.social-row a:hover{ color:var(--ink); border-color:var(--circuit); }

form{ display:flex; flex-direction:column; gap:14px; }
.field label{ font-family:var(--mono); font-size:10.5px; color:var(--ink-dim); display:block; margin-bottom:6px; text-transform:uppercase; letter-spacing:.06em; }
.field input, .field textarea{
  width:100%; background:var(--panel); border:1px solid var(--line); color:var(--ink);
  padding:13px 16px; font-family:var(--body); font-size:14px; border-radius:10px;
}
.field input:focus, .field textarea:focus{ outline:none; border-color:var(--blue); }
.field textarea{ resize:vertical; min-height:96px; }

footer{
  position:relative; z-index:2; max-width:1180px; margin:0 auto; padding:32px 28px;
  font-family:var(--mono); font-size:11px; color:var(--ink-dim);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; border-top:1px solid var(--line);
}

a:focus-visible, button:focus-visible, .btn:focus-visible{ outline:2px solid var(--blue); outline-offset:2px; }
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  .orb{ animation:none; }
  #cursorGlow{ display:none; }
  .gcard{ transition:none; }
  .hero-scanlines{ display:none; }
}

/* ============================================================
   MULTI-PAGE ADDITIONS
   Everything below supports the About / Events / Gallery /
   Members / Contact pages: mobile nav drawer, compact page
   headers, filters, timeline, gallery + lightbox, flip cards,
   accordion, ticker, carousel, sponsor strip, footer sitemap.
============================================================ */

/* ---------- mobile nav drawer ---------- */
.nav-toggle{
  display:none; width:34px; height:26px; position:relative; background:none; border:none; cursor:pointer; z-index:60;
}
.nav-toggle span{ position:absolute; left:0; right:0; height:2px; background:var(--ink); border-radius:2px; transition:transform .3s cubic-bezier(.16,.8,.28,1), opacity .3s ease; }
.nav-toggle span:nth-child(1){ top:4px; } .nav-toggle span:nth-child(2){ top:12px; } .nav-toggle span:nth-child(3){ top:20px; }
.nav-toggle.open span:nth-child(1){ transform:translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform:translateY(-8px) rotate(-45deg); }
@media (max-width:900px){ .nav-toggle{ display:block; } }

.nav-drawer{
  position:fixed; inset:0 0 0 auto; width:min(320px,84vw); background:#0a0d0f; border-left:1px solid var(--line);
  z-index:55; transform:translateX(100%); transition:transform .4s cubic-bezier(.16,.8,.28,1);
  padding:100px 32px 32px; display:flex; flex-direction:column; gap:22px;
}
.nav-drawer.open{ transform:translateX(0); }
.nav-drawer a{ font-family:var(--mono); font-size:15px; color:var(--ink-dim); letter-spacing:.02em; }
.nav-drawer a.active, .nav-drawer a:hover{ color:var(--circuit); }
body.menu-open{ overflow:hidden; }
.drawer-scrim{ position:fixed; inset:0; z-index:54; background:rgba(0,0,0,.5); opacity:0; pointer-events:none; transition:opacity .4s ease; }
body.menu-open .drawer-scrim{ opacity:1; pointer-events:auto; }

/* ---------- compact page-header hero (About / Events / Gallery / Members / Contact) ---------- */
.page-header{
  position:relative; min-height:56svh; display:flex; align-items:center; padding-top:80px; overflow:hidden;
  border-bottom:1px solid var(--line);
}
.page-header-canvas{ position:absolute; inset:0; width:100%; height:100%; z-index:0; opacity:.85; }
.page-header-content{ position:relative; z-index:2; max-width:720px; margin:0 auto; text-align:center; padding:40px 28px; }
.page-header .eyebrow{ justify-content:center; }
.page-header h1{ font-size:clamp(34px,6vw,58px); line-height:1.05; margin-bottom:16px; }
.page-header p{ color:var(--ink-dim); font-size:15.5px; max-width:52ch; margin:0 auto; }
.page-header-stats{ display:flex; gap:28px; justify-content:center; margin-top:30px; flex-wrap:wrap; }
.page-header-stats .n{ font-family:var(--display); font-weight:800; font-size:24px; color:var(--circuit); }
.page-header-stats .l{ font-family:var(--mono); font-size:10px; color:var(--ink-dim); text-transform:uppercase; letter-spacing:.08em; }

/* ---------- filter chips / tabs ---------- */
.filter-row{ display:flex; gap:10px; flex-wrap:wrap; margin:30px 0 8px; }
.chip{
  font-family:var(--mono); font-size:12px; letter-spacing:.02em; color:var(--ink-dim);
  border:1px solid var(--line); background:var(--panel); padding:9px 18px; border-radius:20px;
  cursor:pointer; transition:.25s ease; user-select:none;
}
.chip:hover{ color:var(--ink); border-color:rgba(76,141,255,.5); }
.chip.active{ color:#07090A; background:var(--circuit); border-color:var(--circuit); font-weight:600; }

/* ---------- search input ---------- */
.search-row{ display:flex; gap:12px; margin:30px 0 8px; flex-wrap:wrap; align-items:center; }
.search-input{
  flex:1; min-width:220px; background:var(--panel); border:1px solid var(--line); color:var(--ink);
  padding:12px 18px; font-family:var(--body); font-size:14px; border-radius:24px;
}
.search-input:focus{ outline:none; border-color:var(--blue); }
.search-input::placeholder{ color:var(--ink-dim); }
.result-count{ font-family:var(--mono); font-size:11px; color:var(--ink-dim); white-space:nowrap; }

/* ---------- vertical timeline (About / history) ---------- */
.timeline{ position:relative; margin-top:40px; padding-left:26px; }
.timeline::before{ content:''; position:absolute; left:4px; top:6px; bottom:6px; width:1px; background:linear-gradient(var(--blue),var(--circuit)); opacity:.4; }
.timeline-item{ position:relative; padding-bottom:36px; }
.timeline-item:last-child{ padding-bottom:0; }
.timeline-item::before{
  content:''; position:absolute; left:-26px; top:4px; width:9px; height:9px; border-radius:50%;
  background:var(--circuit); box-shadow:0 0 12px rgba(76,255,178,.7);
}
.timeline-item .yr{ font-family:var(--mono); font-size:12px; color:var(--circuit); letter-spacing:.06em; }
.timeline-item h3{ font-size:17px; margin:6px 0 6px; }
.timeline-item p{ font-family:var(--body); font-size:13.5px; color:var(--ink-dim); max-width:56ch; }

/* ---------- achievements strip (reuses stat-cell look) ---------- */
.achieve-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-top:24px; }
@media (max-width:640px){ .achieve-grid{ grid-template-columns:1fr 1fr; } }

/* ---------- sponsor / partner strip ---------- */
.partner-row{ display:flex; flex-wrap:wrap; gap:14px; margin-top:26px; }
.partner-chip{
  font-family:var(--mono); font-size:12px; color:var(--ink-dim); border:1px dashed var(--line);
  padding:12px 20px; border-radius:10px; opacity:.8; transition:.25s ease;
}
.partner-chip:hover{ opacity:1; border-color:var(--blue); color:var(--ink); }

/* ---------- news / announcement ticker ---------- */
.ticker{
  position:relative; overflow:hidden; border-top:1px solid var(--line); border-bottom:1px solid var(--line);
  background:var(--panel); padding:14px 0;
}
.ticker-track{ display:flex; gap:56px; white-space:nowrap; animation:tickerScroll 32s linear infinite; width:max-content; }
.ticker-track span{ font-family:var(--mono); font-size:12.5px; color:var(--ink-dim); display:flex; align-items:center; gap:10px; }
.ticker-track span::before{ content:'●'; color:var(--circuit); font-size:8px; }
@keyframes tickerScroll{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
@media (prefers-reduced-motion:reduce){ .ticker-track{ animation:none; } }

/* ---------- testimonial carousel ---------- */
.tcarousel{ position:relative; margin-top:34px; overflow:hidden; }
.tcarousel-track{ display:flex; transition:transform .5s cubic-bezier(.16,.8,.28,1); }
.tcard{ flex:0 0 100%; padding:6px; }
.tcard blockquote{ font-family:var(--display); font-size:clamp(17px,2.4vw,22px); line-height:1.5; color:var(--ink); margin-bottom:20px; }
.tcard .who{ font-family:var(--mono); font-size:12px; color:var(--circuit); }
.tcarousel-nav{ display:flex; gap:10px; justify-content:center; margin-top:22px; }
.tdot{ width:8px; height:8px; border-radius:50%; background:var(--line); cursor:pointer; transition:.25s ease; border:none; padding:0; }
.tdot.active{ background:var(--circuit); box-shadow:0 0 8px rgba(76,255,178,.6); width:22px; border-radius:5px; }

/* ---------- FAQ accordion ---------- */
.accordion{ margin-top:30px; display:flex; flex-direction:column; gap:10px; }
.acc-item{ border:1px solid var(--line); border-radius:14px; background:var(--panel); overflow:hidden; }
.acc-q{
  width:100%; text-align:left; background:none; border:none; color:var(--ink); cursor:pointer;
  padding:18px 22px; font-family:var(--body); font-weight:600; font-size:14.5px;
  display:flex; justify-content:space-between; align-items:center; gap:16px;
}
.acc-q .plus{ font-family:var(--mono); color:var(--circuit); font-size:18px; transition:transform .3s cubic-bezier(.16,.8,.28,1); flex-shrink:0; }
.acc-item.open .acc-q .plus{ transform:rotate(45deg); }
.acc-a{ max-height:0; overflow:hidden; transition:max-height .35s cubic-bezier(.16,.8,.28,1); }
.acc-a p{ padding:0 22px 20px; color:var(--ink-dim); font-size:13.5px; max-width:60ch; }

/* ---------- flip cards (Members) ---------- */
.flip-card{ perspective:1000px; height:250px; }
.flip-inner{
  position:relative; width:100%; height:100%; transform-style:preserve-3d;
  transition:transform .6s cubic-bezier(.16,.8,.28,1);
}
.flip-card:hover .flip-inner, .flip-card.flipped .flip-inner{ transform:rotateY(180deg); }
.flip-face{
  position:absolute; inset:0; backface-visibility:hidden; border-radius:16px;
  background:var(--panel); border:1px solid var(--line); padding:26px 20px;
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
}
.flip-back{ transform:rotateY(180deg); justify-content:flex-start; padding-top:24px; }
.flip-back .dept-tag{ font-family:var(--mono); font-size:10px; color:var(--blue); text-transform:uppercase; letter-spacing:.08em; margin-bottom:10px; }
.flip-back p{ font-size:12.5px; color:var(--ink-dim); margin-bottom:16px; }

/* ---------- gallery grid + 3D coverflow ---------- */
.gallery-carousel{
  position:relative; height:340px; margin:36px 0 10px; display:flex; align-items:center; justify-content:center;
  perspective:1300px; touch-action:pan-y;
}
.gallery-ring{ position:relative; width:220px; height:260px; transform-style:preserve-3d; cursor:grab; will-change:transform; }
.gallery-ring:active{ cursor:grabbing; }
.ring-item{
  position:absolute; inset:0; border-radius:16px; overflow:hidden; border:1px solid var(--line);
  backface-visibility:hidden; box-shadow:0 30px 60px -20px rgba(0,0,0,.7); transition:box-shadow .3s ease, border-color .3s ease;
}
.ring-item:hover{ border-color:rgba(76,255,178,.6); }
.ring-item .tile{ position:absolute; inset:0; display:flex; align-items:flex-end; padding:16px; }
.ring-item .tile .cap{ font-family:var(--mono); font-size:11px; color:#07090A; background:rgba(255,255,255,.85); padding:5px 10px; border-radius:8px; }
.carousel-hint{ text-align:center; font-family:var(--mono); font-size:10.5px; color:var(--ink-dim); letter-spacing:.08em; text-transform:uppercase; margin-top:8px; }

.gallery-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:16px; margin-top:30px; }
.photo-card{
  position:relative; border-radius:14px; overflow:hidden; border:1px solid var(--line); cursor:pointer;
  aspect-ratio:4/3; transition:transform .35s cubic-bezier(.16,.8,.28,1), border-color .3s ease;
}
.photo-card:hover{ transform:translateY(-6px) rotateX(4deg); border-color:rgba(76,141,255,.5); }
.photo-tile{ position:absolute; inset:0; display:flex; flex-direction:column; justify-content:flex-end; padding:14px; }
.photo-tile::after{ content:''; position:absolute; inset:0; background:linear-gradient(180deg, transparent 40%, rgba(0,0,0,.65)); z-index:0; }
.photo-tile *{ position:relative; z-index:1; }
.photo-tile .cam{ position:absolute; top:12px; right:12px; z-index:1; opacity:.5; width:16px; height:16px; }
.photo-title{ font-family:var(--body); font-weight:600; font-size:13px; color:#fff; }
.photo-meta{ font-family:var(--mono); font-size:10px; color:rgba(255,255,255,.75); margin-top:3px; text-transform:uppercase; letter-spacing:.06em; }

/* generated "photo" tones (used until real photos are dropped in) */
.tone-blue{ background:linear-gradient(150deg,#13233f,#1c3d63 40%,#4c8dff); }
.tone-circuit{ background:linear-gradient(150deg,#0c2420,#13432f 40%,#4cffb2); }
.tone-amber{ background:linear-gradient(150deg,#2a1e0c,#5a3f10 40%,#ffb238); }

/* ---------- lightbox ---------- */
.lightbox{
  position:fixed; inset:0; z-index:200; background:rgba(3,4,5,.92); backdrop-filter:blur(6px);
  display:flex; align-items:center; justify-content:center; opacity:0; pointer-events:none; transition:opacity .3s ease;
}
.lightbox.open{ opacity:1; pointer-events:auto; }
.lightbox-frame{ width:min(640px,86vw); max-height:80vh; border-radius:18px; overflow:hidden; border:1px solid var(--line); position:relative; }
.lightbox-frame .photo-tile{ position:static; aspect-ratio:4/3; padding:22px; }
.lightbox-close, .lightbox-prev, .lightbox-next{
  position:absolute; background:rgba(255,255,255,.08); border:1px solid var(--line); color:var(--ink);
  border-radius:50%; width:42px; height:42px; display:flex; align-items:center; justify-content:center;
  cursor:pointer; font-family:var(--mono); font-size:18px; transition:.25s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover{ background:var(--circuit); color:#07090A; }
.lightbox-close{ top:-56px; right:0; }
.lightbox-prev{ top:50%; left:-56px; transform:translateY(-50%); }
.lightbox-next{ top:50%; right:-56px; transform:translateY(-50%); }
@media (max-width:760px){ .lightbox-prev{ left:8px; } .lightbox-next{ right:8px; } .lightbox-close{ top:8px; right:8px; } }

/* ---------- footer sitemap ---------- */
footer.site-footer{
  position:relative; z-index:2; padding:56px 28px 32px; border-top:1px solid var(--line);
}
.footer-inner{ max-width:1180px; margin:0 auto; display:grid; grid-template-columns:1.4fr repeat(3,1fr); gap:32px; }
@media (max-width:760px){ .footer-inner{ grid-template-columns:1fr 1fr; } }
.footer-col h4{ font-family:var(--mono); font-size:11px; color:var(--ink-dim); text-transform:uppercase; letter-spacing:.1em; margin-bottom:14px; }
.footer-col a{ display:block; font-family:var(--body); font-size:13.5px; color:var(--ink-dim); margin-bottom:10px; transition:color .2s ease; }
.footer-col a:hover{ color:var(--circuit); }
.footer-brand{ font-family:var(--display); font-weight:700; font-size:19px; margin-bottom:10px; }
.footer-brand .glow{ color:var(--circuit); }
.footer-tagline{ font-family:var(--body); font-size:13px; color:var(--ink-dim); max-width:32ch; }
.footer-bottom{
  max-width:1180px; margin:40px auto 0; padding-top:22px; border-top:1px solid var(--line);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  font-family:var(--mono); font-size:11px; color:var(--ink-dim);
}

/* ---------- back to top ---------- */
.to-top{
  position:fixed; right:24px; bottom:24px; z-index:40; width:46px; height:46px; border-radius:50%;
  background:var(--panel); border:1px solid var(--line); color:var(--ink); display:flex; align-items:center;
  justify-content:center; cursor:pointer; opacity:0; pointer-events:none; transition:opacity .3s ease, border-color .3s ease, transform .3s ease;
  backdrop-filter:blur(8px);
}
.to-top.show{ opacity:1; pointer-events:auto; }
.to-top:hover{ border-color:var(--circuit); color:var(--circuit); transform:translateY(-3px); }

/* ---------- empty state (no filter/search results) ---------- */
.empty-state{ text-align:center; padding:60px 20px; color:var(--ink-dim); font-family:var(--mono); font-size:13px; }

/* ---------- hide the native cursor — the dot + ring replace it entirely ---------- */
/* common.js only adds this class on pointer devices that actually support
   hover (desktop/laptop trackpads and mice) and when the person hasn't
   asked for reduced motion, so touchscreens keep their normal cursor. */
html.custom-cursor, html.custom-cursor *{ cursor:none !important; }

/* ============================================================
   HOME HERO — PORTAL TOP LAYOUT ONLY
   The original site styling below remains untouched.
============================================================ */
.hero-portal-top{
  min-height:100svh;
  padding-top:96px;
  padding-bottom:84px;
  display:flex;
  align-items:center;
  overflow:hidden;
}
.hero-portal-top .hero-stage{
  min-height:calc(100svh - 120px);
  display:grid;
  grid-template-columns:minmax(0,1.02fr) minmax(420px,.98fr);
  align-items:center;
  gap:clamp(36px,5vw,80px);
  width:min(1400px,100%);
  margin:0 auto;
}
.hero-portal-top #heroCanvas{ opacity:.45; }
.hero-portal-top .hero-scanlines{
  -webkit-mask-image:radial-gradient(ellipse 75% 70% at 70% 50%, black 20%, transparent 78%);
  mask-image:radial-gradient(ellipse 75% 70% at 70% 50%, black 20%, transparent 78%);
}
.hero-content-portal{
  grid-column:1;
  text-align:left;
  max-width:760px;
  z-index:5;
  justify-self:start;
}
.hero-kicker-pill{
  display:inline-flex;
  align-items:center;
  gap:11px;
  padding:12px 22px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.018);
  box-shadow:0 18px 60px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.04);
  color:var(--ink-dim);
  font-size:15px;
  opacity:0;
  transform:translateY(16px);
  animation:portalHeroIn .8s cubic-bezier(.16,.8,.28,1) .08s forwards;
}
.hero-kicker-dot{
  width:11px; height:11px; border-radius:50%;
  background:var(--amber);
  box-shadow:0 0 16px rgba(255,178,56,.55);
  animation:portalPulse 2.2s ease-in-out infinite;
}
.hero-heading-wrap{ margin-top:30px; }
.hero-eyebrow-line{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:26px;
  color:var(--ink);
  font-size:clamp(14px,1.3vw,19px);
  font-weight:700;
  letter-spacing:.03em;
  text-transform:uppercase;
  opacity:0;
  transform:translateY(16px);
  animation:portalHeroIn .8s cubic-bezier(.16,.8,.28,1) .24s forwards;
}
.hero-eyebrow-bar{
  width:11px;
  height:46px;
  flex:none;
  border-radius:10px;
  background:var(--amber);
  box-shadow:0 0 22px rgba(255,178,56,.34);
}
.hero-title-portal{
  display:flex;
  flex-direction:column;
  gap:0;
  margin:0;
  font-size:clamp(50px,5.8vw,92px);
  line-height:.91;
  letter-spacing:-.055em;
  font-weight:800;
  max-width:800px;
  text-wrap:balance;
}
.hero-title-portal > span{
  opacity:0;
  transform:translateY(38px) rotateX(-16deg);
  transform-origin:left bottom;
  animation:portalTitleIn 1s cubic-bezier(.16,.8,.28,1) forwards;
}
.hero-title-portal > span:nth-child(1){ animation-delay:.35s; }
.hero-title-portal > span:nth-child(2){ animation-delay:.45s; }
.hero-title-portal > span:nth-child(3){ animation-delay:.55s; }
.hero-title-portal > span:nth-child(4){ animation-delay:.65s; }
.hero-gradient-text{
  background:linear-gradient(100deg,var(--amber) 0%, #d36fff 53%, var(--blue) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  background-size:180% 100%;
  animation:portalTitleIn 1s cubic-bezier(.16,.8,.28,1) .45s forwards, portalGradientShift 7s ease-in-out 1.4s infinite alternate;
}
.hero-lead-portal{
  max-width:650px;
  margin:30px 0 0;
  color:var(--ink);
  opacity:.82;
  font-size:clamp(16px,1.5vw,21px);
  line-height:1.55;
  opacity:0;
  transform:translateY(16px);
  animation:portalHeroIn .9s cubic-bezier(.16,.8,.28,1) .82s forwards;
}
.hero-cta-portal{
  justify-content:flex-start;
  margin-top:38px;
  opacity:0;
  animation:portalHeroIn .9s cubic-bezier(.16,.8,.28,1) 1s forwards;
}
.hero-cta-portal .btn{
  min-height:54px;
  padding-inline:25px;
}
.hero-cta-portal .btn-solid{ background:linear-gradient(135deg,#ffd34e,#ffbf46); color:#101116; box-shadow:0 16px 40px rgba(255,178,56,.26); }
.hero-cta-portal .btn-solid:hover{ box-shadow:0 20px 50px rgba(255,178,56,.38); }
.hero-cta-portal .btn-ghost{ background:rgba(255,255,255,.01); }

.hero-visual-portal{
  grid-column:2;
  position:relative;
  z-index:5;
  width:100%;
  max-width:790px;
  justify-self:end;
  perspective:1400px;
  transform-style:preserve-3d;
  opacity:0;
  transform:translateY(22px) rotateY(-8deg) rotateX(3deg) scale(.97);
  animation:portalVisualIn 1.1s cubic-bezier(.16,.8,.28,1) .35s forwards;
}
.hero-photo-shell{ position:relative; transform-style:preserve-3d; }
.hero-photo-frame{
  position:relative;
  padding:15px 15px 16px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:24px;
  background:rgba(8,11,18,.72);
  backdrop-filter:blur(14px);
  box-shadow:0 35px 90px rgba(0,0,0,.45), 0 0 0 1px rgba(76,255,178,.04), inset 0 1px 0 rgba(255,255,255,.04);
  transform-style:preserve-3d;
  transition:transform .18s ease-out, box-shadow .35s ease;
}
.hero-photo-frame::before{
  content:'';
  position:absolute;
  inset:-1px;
  border-radius:24px;
  background:linear-gradient(135deg,rgba(255,178,56,.24),transparent 38%,rgba(76,141,255,.18) 80%,rgba(76,255,178,.18));
  pointer-events:none;
  -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  padding:1px;
}
.hero-photo-topline,
.hero-photo-caption{
  position:relative;
  z-index:3;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  font-family:var(--mono);
  font-size:9px;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--ink-dim);
  padding:0 5px 11px;
}
.hero-photo-caption{ padding:11px 5px 0; }
.hero-photo-index{ color:var(--circuit); }
.hero-photo-status{ display:inline-flex; align-items:center; gap:6px; color:var(--circuit); }
.hero-photo-status i{ display:block; width:6px; height:6px; border-radius:50%; background:var(--circuit); box-shadow:0 0 9px var(--circuit); animation:portalPulse 1.7s ease-in-out infinite; }
.hero-slideshow-portal{
  position:relative;
  width:100%;
  aspect-ratio:1.55 / 1;
  overflow:hidden;
  border-radius:17px;
  background:#0c111b;
  transform:translateZ(20px);
}
.hero-slide-portal{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transform:scale(1.07) translateZ(0);
  transition:opacity .9s ease, transform 4.3s cubic-bezier(.16,.8,.28,1);
}
.hero-slide-portal.active{ opacity:1; transform:scale(1); }
.hero-slideshow-portal::after{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(4,7,12,.02) 45%,rgba(4,7,12,.28) 100%);
  pointer-events:none;
}
.hero-photo-glow{
  position:absolute;
  inset:6% -5% -8%;
  border-radius:30px;
  background:radial-gradient(ellipse at center,rgba(76,141,255,.20),transparent 66%);
  filter:blur(30px);
  transform:translateZ(-40px);
  animation:portalGlowFloat 5.5s ease-in-out infinite;
  pointer-events:none;
}
.hero-photo-orbit{
  position:absolute;
  pointer-events:none;
  border:1px solid rgba(76,141,255,.25);
  border-radius:50%;
  transform-style:preserve-3d;
}
.orbit-a{ width:110%; height:78%; left:-5%; top:11%; transform:rotateY(64deg) rotateZ(-9deg); animation:portalOrbit 14s linear infinite; }
.orbit-b{ width:95%; height:70%; left:2%; top:17%; border-color:rgba(76,255,178,.20); transform:rotateX(68deg) rotateZ(19deg); animation:portalOrbitReverse 12s linear infinite; }
.hero-photo-node{ position:absolute; width:8px; height:8px; border-radius:50%; background:var(--circuit); box-shadow:0 0 18px var(--circuit); }
.node-a{ right:-10px; top:26%; animation:portalNodeFloat 3.2s ease-in-out infinite; }
.node-b{ left:-8px; bottom:22%; background:var(--amber); box-shadow:0 0 18px var(--amber); animation:portalNodeFloat 3.2s ease-in-out 1s infinite; }
.hero-pulse-ring{ position:absolute; border:1px solid rgba(76,141,255,.16); border-radius:50%; pointer-events:none; z-index:1; }
.ring-one{ width:260px; height:260px; right:18%; top:11%; animation:portalRingPulse 5s ease-in-out infinite; }
.ring-two{ width:140px; height:140px; left:37%; bottom:10%; border-color:rgba(76,255,178,.12); animation:portalRingPulse 4.2s ease-in-out 1.2s infinite; }
.hero-constellation{ position:absolute; right:5%; top:12%; width:280px; height:220px; pointer-events:none; z-index:2; opacity:.55; }
.hero-constellation span{ position:absolute; width:4px; height:4px; border-radius:50%; background:var(--circuit); box-shadow:0 0 12px var(--circuit); animation:portalConstellation 5s ease-in-out infinite; }
.hero-constellation span:nth-child(1){ left:12%; top:18%; }
.hero-constellation span:nth-child(2){ left:41%; top:8%; animation-delay:.5s; }
.hero-constellation span:nth-child(3){ left:78%; top:28%; animation-delay:1s; }
.hero-constellation span:nth-child(4){ left:59%; top:61%; animation-delay:1.5s; }
.hero-constellation span:nth-child(5){ left:27%; top:77%; animation-delay:2s; }
.hero-constellation span:nth-child(6){ left:88%; top:80%; animation-delay:2.5s; background:var(--amber); box-shadow:0 0 12px var(--amber); }
.hero-portal-top .chip-a{ top:3%; left:0; }
.hero-portal-top .chip-b{ top:10%; right:0; }
.hero-portal-top .chip-c{ bottom:4%; left:3%; }

@keyframes portalHeroIn{ to{ opacity:1; transform:translateY(0); } }
@keyframes portalTitleIn{ to{ opacity:1; transform:translateY(0) rotateX(0); } }
@keyframes portalVisualIn{ to{ opacity:1; transform:translateY(0) rotateY(0) rotateX(0) scale(1); } }
@keyframes portalGradientShift{ 0%{ background-position:0% 50%; } 100%{ background-position:100% 50%; } }
@keyframes portalPulse{ 0%,100%{ transform:scale(1); opacity:1; } 50%{ transform:scale(.72); opacity:.55; } }
@keyframes portalGlowFloat{ 0%,100%{ transform:translateZ(-40px) scale(.98); opacity:.85; } 50%{ transform:translateZ(-40px) scale(1.04) translateY(-7px); opacity:1; } }
@keyframes portalOrbit{ from{ transform:rotateY(64deg) rotateZ(-9deg) rotate(0deg); } to{ transform:rotateY(64deg) rotateZ(-9deg) rotate(360deg); } }
@keyframes portalOrbitReverse{ from{ transform:rotateX(68deg) rotateZ(19deg) rotate(360deg); } to{ transform:rotateX(68deg) rotateZ(19deg) rotate(0deg); } }
@keyframes portalNodeFloat{ 0%,100%{ transform:translate3d(0,0,0) scale(1); } 50%{ transform:translate3d(0,-12px,18px) scale(1.25); } }
@keyframes portalRingPulse{ 0%,100%{ opacity:.22; transform:scale(.98); } 50%{ opacity:.6; transform:scale(1.04); } }
@keyframes portalConstellation{ 0%,100%{ transform:translate3d(0,0,0); opacity:.45; } 50%{ transform:translate3d(8px,-8px,16px); opacity:1; } }

@media (max-width:1100px){
  .hero-portal-top .hero-stage{ grid-template-columns:minmax(0,1fr) minmax(360px,.85fr); gap:34px; }
  .hero-title-portal{ font-size:clamp(48px,6.5vw,76px); }
  .hero-eyebrow-line{ font-size:14px; }
}
@media (max-width:900px){
  .hero-portal-top{ padding-top:90px; padding-bottom:70px; }
  .hero-portal-top .hero-stage{ min-height:auto; grid-template-columns:1fr; gap:34px; }
  .hero-content-portal,.hero-visual-portal{ grid-column:1; }
  .hero-content-portal{ max-width:760px; }
  .hero-visual-portal{ width:min(760px,100%); justify-self:center; }
  .hero-title-portal{ font-size:clamp(46px,9vw,76px); }
  .hero-portal-top .chip-float{ display:none; }
  .hero-constellation{ right:0; }
  .hero-pulse-ring.ring-one{ right:6%; }
}
@media (max-width:640px){
  .hero-portal-top{ padding-top:78px; }
  .hero-portal-top .hero-stage{ gap:26px; }
  .hero-kicker-pill{ font-size:13px; padding:10px 16px; }
  .hero-heading-wrap{ margin-top:22px; }
  .hero-eyebrow-line{ align-items:flex-start; font-size:11px; line-height:1.4; margin-bottom:20px; }
  .hero-eyebrow-bar{ width:8px; height:34px; }
  .hero-title-portal{ font-size:clamp(40px,12vw,58px); line-height:.95; }
  .hero-lead-portal{ font-size:15px; margin-top:22px; }
  .hero-cta-portal{ margin-top:28px; gap:10px; }
  .hero-cta-portal .btn{ min-height:48px; padding-inline:18px; font-size:12.5px; }
  .hero-photo-frame{ padding:10px 10px 12px; border-radius:18px; }
  .hero-slideshow-portal{ border-radius:12px; }
  .hero-photo-topline,.hero-photo-caption{ font-size:8px; padding-left:2px; padding-right:2px; }
  .hero-photo-topline{ padding-bottom:8px; }
  .hero-photo-caption{ padding-top:8px; }
  .hero-photo-caption > span:first-child{ max-width:68%; }
  .hero-photo-orbit,.hero-constellation,.hero-pulse-ring,.hero-photo-node{ display:none; }
}
@media (prefers-reduced-motion:reduce){
  .hero-kicker-pill,.hero-eyebrow-line,.hero-title-portal > span,.hero-lead-portal,.hero-cta-portal,.hero-visual-portal{ animation:none; opacity:1; transform:none; }
  .hero-gradient-text,.hero-kicker-dot,.hero-photo-status i,.hero-photo-glow,.hero-photo-orbit,.hero-photo-node,.hero-constellation span,.hero-pulse-ring{ animation:none; }
}

/* ============================================================
   MEMBERS PHOTO CARDS — additive only
   Replaces the old flip interaction with a photo-first card.
   No existing global colors are changed.
============================================================ */
.profile-grid{ align-items:stretch; }
.member-card{
  --mx:0;
  --my:0;
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:470px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  border-radius:22px;
  background:linear-gradient(165deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  box-shadow:0 18px 55px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.045);
  transform:perspective(1100px) rotateX(calc(var(--my) * -1.2deg)) rotateY(calc(var(--mx) * 1.6deg)) translateY(0);
  transform-origin:center;
  transition:transform .42s cubic-bezier(.16,.8,.28,1), border-color .35s ease, box-shadow .35s ease;
  isolation:isolate;
}
.member-card::before{
  content:'';
  position:absolute;
  inset:-35% -20%;
  background:radial-gradient(circle at 50% 10%, rgba(76,255,178,.12), transparent 38%), radial-gradient(circle at 80% 90%, rgba(76,141,255,.10), transparent 42%);
  z-index:-2;
  opacity:.55;
  animation:memberAura 8s ease-in-out infinite;
}
.member-card::after{
  content:'';
  position:absolute;
  left:0;
  right:0;
  top:-30%;
  height:25%;
  background:linear-gradient(180deg, transparent, rgba(76,255,178,.14), transparent);
  z-index:4;
  pointer-events:none;
  opacity:0;
}
.member-card:hover{
  transform:perspective(1100px) rotateX(calc(var(--my) * -1.2deg)) rotateY(calc(var(--mx) * 1.6deg)) translateY(-12px) scale(1.015);
  border-color:rgba(76,255,178,.38);
  box-shadow:0 28px 75px rgba(0,0,0,.36), 0 0 0 1px rgba(76,255,178,.06), 0 0 36px rgba(76,141,255,.10);
}
.member-card:hover::after{ animation:memberScan 1.45s cubic-bezier(.4,0,.2,1) 1; }
.member-photo-wrap{
  position:relative;
  padding:12px 12px 0;
  flex:0 0 238px;
}
.member-photo-frame{
  position:relative;
  height:100%;
  overflow:hidden;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(145deg, rgba(76,141,255,.14), rgba(76,255,178,.04) 55%, rgba(255,178,56,.06));
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.16);
}
.member-photo{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center top;
  filter:saturate(.92) contrast(1.02);
  transform:scale(1.001);
  transition:transform .65s cubic-bezier(.16,.8,.28,1), filter .45s ease;
}
.member-card:hover .member-photo{ transform:scale(1.07); filter:saturate(1.03) contrast(1.04); }
.member-photo-glow{
  position:absolute;
  left:18%;
  right:18%;
  bottom:-14px;
  height:60px;
  background:radial-gradient(ellipse, rgba(76,255,178,.20), transparent 70%);
  filter:blur(14px);
  pointer-events:none;
  z-index:0;
  animation:memberGlow 4.5s ease-in-out infinite;
}
.member-photo-scan{
  position:absolute;
  left:0;
  right:0;
  top:-16%;
  height:22%;
  background:linear-gradient(180deg, transparent, rgba(255,255,255,.11), transparent);
  transform:translateY(-100%);
  pointer-events:none;
}
.member-card:hover .member-photo-scan{ animation:memberPhotoSweep 1.8s ease-in-out 1; }
.member-initials{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  font-family:var(--display);
  font-size:52px;
  font-weight:800;
  letter-spacing:-.04em;
  color:var(--ink);
  background:radial-gradient(circle at 50% 35%, rgba(76,255,178,.18), rgba(7,9,10,.75) 58%);
  text-shadow:0 0 22px rgba(76,255,178,.22);
}
.member-photo:not([hidden]) + .member-initials{ display:none; }
.photo-missing .member-initials{ display:grid; }
.member-card-body{ padding:16px 18px 18px; display:flex; flex-direction:column; flex:1; position:relative; z-index:5; }
.member-card-body .dept-tag{ margin-bottom:7px; }
.member-card .profile-name{ margin-bottom:4px; line-height:1.22; }
.member-card .profile-position{ margin-bottom:11px; }
.member-bio{ color:var(--ink-dim); font-size:12px; line-height:1.55; margin-bottom:16px; }
.member-card-footer{ margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.member-photo-hint{ font-family:var(--mono); font-size:9px; color:rgba(139,152,160,.62); text-transform:uppercase; letter-spacing:.08em; }

@keyframes memberAura{
  0%,100%{ transform:translate3d(-1%,0,0) scale(1); }
  50%{ transform:translate3d(2%,2%,0) scale(1.04); }
}
@keyframes memberGlow{
  0%,100%{ opacity:.45; transform:translateX(-4px) scale(.96); }
  50%{ opacity:.8; transform:translateX(5px) scale(1.03); }
}
@keyframes memberScan{
  0%{ top:-30%; opacity:0; }
  20%{ opacity:1; }
  100%{ top:110%; opacity:0; }
}
@keyframes memberPhotoSweep{
  0%{ transform:translateY(-120%); opacity:0; }
  20%{ opacity:1; }
  100%{ transform:translateY(610%); opacity:0; }
}
@media (max-width:640px){
  .member-card{ min-height:450px; }
  .member-photo-wrap{ flex-basis:220px; }
}
@media (prefers-reduced-motion:reduce){
  .member-card,
  .member-photo,
  .member-card::before,
  .member-photo-glow{ transition:none; animation:none; }
}


/* --- HOLO CARDS INTEGRATION --- */
.holo-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.holo-card {
    background: var(--panel);
    border-radius: var(--radius-lg);
    padding: 70px 20px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    transition: transform 0.15s ease-out, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

/* Animated Laser Scanline */
.laser-scanline {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 5;
    pointer-events: none;
    animation: laserScan 3s infinite linear;
}

.laser-scanline.amber { background: var(--amber); box-shadow: 0 0 15px var(--amber); }
.laser-scanline.blue { background: var(--blue); box-shadow: 0 0 15px var(--blue); }
.laser-scanline.circuit { background: var(--circuit); box-shadow: 0 0 15px var(--circuit); }

@keyframes laserScan {
    0% { top: -10%; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { top: 110%; opacity: 0; }
}

/* President Aura */
.card-amber-president {
    border: 1px solid var(--amber);
    box-shadow: 0 0 30px var(--neon-amber-glow), inset 0 0 20px rgba(255, 215, 0, 0.1);
}

/* Vice President Aura */
.card-blue-vp {
    border: 1px solid var(--blue);
    box-shadow: 0 0 30px var(--neon-blue-glow), inset 0 0 20px rgba(255, 0, 127, 0.1);
}

/* Secretary Aura */
.card-circuit-sec {
    border: 1px solid var(--circuit);
    box-shadow: 0 0 30px var(--neon-circuit-glow), inset 0 0 20px rgba(0, 240, 255, 0.1);
}

.holo-badge {
    font-family: var(--font-code);
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.holo-badge.amber { background: rgba(255, 215, 0, 0.15); color: var(--amber); border: 1px solid var(--amber); }
.holo-badge.blue { background: rgba(255, 0, 127, 0.15); color: var(--blue); border: 1px solid var(--blue); }
.holo-badge.circuit { background: rgba(0, 240, 255, 0.15); color: var(--circuit); border: 1px solid var(--circuit); }

.holo-avatar-box {
    width: 140px;
    height: 140px;
    margin: 10px auto 24px;
    position: relative;
    border-radius: 50%;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.holo-avatar-box img {
    width: 138px;
    height: 138px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    transform-origin: bottom center;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), border-radius 0.5s ease, filter 0.5s ease;
    filter: drop-shadow(0 0 0px transparent);
}

/* Subtle expansion for when scrolling into view / on load */
.holo-card.pop-active .holo-avatar-box img {
    transform: scale(1.22) translateY(-6%);
    border-radius: 16px 16px 48% 48%; 
}

/* Full breakout animation specifically for intentional hovers */
.holo-card:hover .holo-avatar-box img {
    transform: scale(1.32) translateY(-10%);
    border-radius: 12px 12px 45% 45%; 
}

.radar-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 3px solid transparent;
    z-index: 1;
}

.ring-amber .radar-ring { border-color: var(--amber); box-shadow: 0 0 15px var(--neon-amber-glow); }
.ring-blue .radar-ring { border-color: var(--blue); box-shadow: 0 0 15px var(--neon-blue-glow); }
.ring-circuit .radar-ring { border-color: var(--circuit); box-shadow: 0 0 15px var(--neon-circuit-glow); }

.member-name { font-family: var(--display); font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 700; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; display: block; }
.member-title { font-size: clamp(0.9rem, 1.5vw, 1.05rem); color: var(--ink-dim); display: block; margin-bottom: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }

.role-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.chip-amber { background: rgba(255, 215, 0, 0.15); color: var(--amber); border: 1px solid var(--amber); }
.chip-blue { background: rgba(255, 0, 127, 0.15); color: var(--blue); border: 1px solid var(--blue); }
.chip-circuit { background: rgba(0, 240, 255, 0.15); color: var(--circuit); border: 1px solid var(--circuit); }

.corner-icon {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.corner-icon.amber { background: rgba(255, 215, 0, 0.2); color: var(--amber); border: 1px solid var(--amber); }
.corner-icon.blue { background: rgba(255, 0, 127, 0.2); color: var(--blue); border: 1px solid var(--blue); }
.corner-icon.circuit { background: rgba(0, 240, 255, 0.2); color: var(--circuit); border: 1px solid var(--circuit); }

.social-bar { display: flex; align-items: center; justify-content: center; gap: 10px; }

.s-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--ink-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--smooth-transition);
}

.s-icon:hover { background: var(--circuit); color: #000; transform: scale(1.1); }

/* MODE 2: 3D CYBER DECK CAROUSEL */
.cyber-deck-wrapper { padding: 40px 0; perspective: 1000px; }
.deck-cards-track { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 380px; }

.deck-card {
    width: 250px;
    background: rgba(10, 15, 26, 0.9);
    border: 1px solid var(--border-cyber);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.6;
    transform: scale(0.85) rotateY(15deg);
}

.deck-card.active-deck-card {
    width: 300px;
    opacity: 1;
    transform: scale(1.1) rotateY(0deg) translateZ(50px);
    z-index: 10;
    border-color: var(--amber);
    box-shadow: 0 0 45px var(--neon-amber-glow);
}

.deck-avatar { width: 130px; height: 130px; margin: 0 auto 14px; border-radius: var(--radius-md); overflow: hidden; }
.deck-avatar img { width: 100%; height: 100%; object-fit: cover; }
.deck-card h3 { font-family: var(--display); font-size: 1.2rem; margin-bottom: 4px; }
.deck-card p { color: var(--ink-dim); font-size: 0.85rem; margin-bottom: 12px; }

.deck-crown-icon {
    position: absolute;
    bottom: 14px; right: 14px;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255, 215, 0, 0.2); color: var(--amber); border: 1px solid var(--amber);
    display: flex; align-items: center; justify-content: center;
}

.deck-arrows-row { display: flex; justify-content: center; gap: 16px; margin-top: 24px; }

.deck-arrow-btn {
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(0, 0, 0, 0.5); border: 1px solid var(--border-cyber);
    color: var(--text-white); cursor: pointer; font-size: 1rem;
    transition: var(--smooth-transition);
}

.deck-arrow-btn:hover { background: var(--circuit); color: #000; border-color: var(--circuit); }

/* Faculty Spotlight */
.faculty-spotlight-card {
    background: rgba(5, 8, 15, 0.6);
    border: 1px solid var(--border-cyber);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.faculty-dual-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 20px; }
.faculty-box { padding: 20px; display: flex; align-items: center; gap: 18px; }
.fac-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.faculty-box h4 { font-family: var(--display); font-size: 1.15rem; }
.fac-role { color: var(--circuit); font-size: 0.8rem; display: block; margin-bottom: 4px; }
.faculty-box p { color: var(--ink-dim); font-size: 0.85rem; }

/* ================= MEDIA GALLERY ================= */
.cyber-gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

.gallery-tile {
    height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1px solid var(--border-cyber);
}

.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: var(--smooth-transition); }

.tile-overlay {
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 8, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--smooth-transition);
    color: var(--circuit);
    font-family: var(--display);
    font-size: 0.85rem;
    font-weight: 700;
}

.gallery-tile:hover img { transform: scale(1.08); }
.gallery-tile:hover .tile-overlay { opacity: 1; }

/* ================= CONTACT SECTION ================= */
.contact-portal-box { padding: 40px; }
.contact-dual-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.contact-left h2 { font-family: var(--display); font-size: 1.8rem; margin-bottom: 10px; }
.contact-left p { color: var(--ink-dim); margin-bottom: 28px; }

.contact-info-rows { display: flex; flex-direction: column; gap: 20px; margin-bottom: 28px; }
.info-row { display: flex; gap: 14px; align-items: flex-start; }
.info-row i { font-size: 1.2rem; margin-top: 4px; }
.info-row i.circuit { color: var(--circuit); }
.info-row i.blue { color: var(--blue); }
.info-row i.amber { color: var(--amber); }
.info-row strong { display: block; font-size: 0.85rem; font-family: var(--font-code); }
.info-row span { color: var(--ink-dim); font-size: 0.85rem; }

.social-links-flex { display: flex; gap: 10px; flex-wrap: wrap; }

.social-chip {
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-cyber);
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.8rem;
    border-radius: var(--radius-full);
    transition: var(--smooth-transition);
}

.social-chip:hover { background: var(--blue); color: #FFF; border-color: var(--blue); }

/* Form Controls */
.form-field { margin-bottom: 16px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

label { display: block; font-family: var(--font-code); font-size: 0.75rem; color: var(--ink-dim); margin-bottom: 6px; }

input, select, textarea {
    width: 100%;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-cyber);
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: var(--smooth-transition);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--circuit);
    box-shadow: 0 0 15px var(--neon-circuit-glow);
}

/* Footer */
.cyber-footer {
    padding: 36px 0;
    border-top: 1px solid var(--border-cyber);
    text-align: center;
    background: rgba(3, 5, 8, 0.95);
}

.footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--display); font-size: 0.95rem; margin-bottom: 8px; }
.copy-text { color: var(--text-dim); font-size: 0.8rem; }

/* Toast Notifications */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }

.toast {
    padding: 12px 18px;
    border-radius: var(--radius-md);
    background: rgba(5, 8, 15, 0.95);
    border: 1px solid var(--circuit);
    color: var(--text-white);
    font-size: 0.85rem;
    display: flex; align-items: center; gap: 10px;
    box-shadow: 0 0 20px var(--neon-circuit-glow);
}

/* Modals */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(3, 5, 8, 0.9);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}

.modal-overlay.hidden { display: none; }

.modal-content { width: 100%; max-width: 500px; padding: 28px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.close-btn { background: transparent; border: none; color: var(--ink-dim); font-size: 1.2rem; cursor: pointer; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

.lightbox-box { max-width: 90vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; }
.lightbox-box img { max-width: 100%; max-height: 80vh; border-radius: var(--radius-md); border: 1px solid var(--circuit); }
.lightbox-title { margin-top: 10px; color: var(--text-white); font-size: 0.9rem; }

/* ================= RESPONSIVE MEDIA QUERIES ================= */

@media (max-width: 1100px) {
    .hero-cyber-title { font-size: 2.6rem; }
    .more-events-grid { grid-template-columns: repeat(2, 1fr); }
    .cyber-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .cyber-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; }
    .featured-hackathon-card { grid-template-columns: 1fr; }
    .contact-dual-col { grid-template-columns: 1fr; }
    .faculty-dual-grid { grid-template-columns: 1fr; }
    
    .desktop-only { display: none; }
    .hamburger-btn { display: block; }
    
    .nav-menu {
        position: fixed;
        top: 65px; left: 0; width: 100%;
        background: rgba(3, 5, 8, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px; gap: 16px;
        transform: translateY(-150%);
        transition: var(--smooth-transition);
        border-bottom: 1px solid var(--border-cyber);
    }
    
    .nav-menu.active { transform: translateY(0); }
}

@media (max-width: 640px) {
    .hero-cyber-title { font-size: 2rem; }
    .cyber-section-title { font-size: 1.8rem; }
    .more-events-grid { grid-template-columns: 1fr; }
    .cyber-cards-grid { grid-template-columns: 1fr; }
    .about-dual-grid { grid-template-columns: 1fr; }
    .hud-metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .cyber-gallery-grid { grid-template-columns: 1fr; }
    .form-row-2 { grid-template-columns: 1fr; }
}

/* Neon Drop Shadows for popped-out state */
.card-amber-president.pop-active .holo-avatar-box img,
.card-amber-president:hover .holo-avatar-box img {
    filter: drop-shadow(0 15px 25px var(--neon-amber-glow));
}

.card-blue-vp.pop-active .holo-avatar-box img,
.card-blue-vp:hover .holo-avatar-box img {
    filter: drop-shadow(0 15px 25px var(--neon-blue-glow));
}

.card-circuit-sec.pop-active .holo-avatar-box img,
.card-circuit-sec:hover .holo-avatar-box img {
    filter: drop-shadow(0 15px 25px var(--neon-circuit-glow));
}

/* Hide empty social links dynamically */
.social-bar a[href="#"],
.social-bar a[href=""] {
    display: none !important;
}
