/* =========================================================
   ElectroFusion — design tokens
   Palette: solder-mask green-black + copper trace accent
   Type: Space Grotesk (display) / IBM Plex Sans (body) / IBM Plex Mono (utility)
   ========================================================= */

:root{
  --bg: #0a1712;
  --bg-alt: #0d1f18;
  --panel: #10251e;
  --panel-border: #1e3d31;
  --panel-border-soft: #17322766;

  --copper: #d68a3c;
  --copper-bright: #f0a94e;
  --teal: #5fd6c4;

  --ink: #eef2ee;
  --ink-soft: #a9c2b6;
  --ink-faint: #6f8a7d;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --wrap: 1180px;
  --radius: 10px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}

body{
  margin:0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

p{ margin: 0 0 1em; color: var(--ink-soft); }

a{ color: inherit; text-decoration: none; }

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link{
  position:absolute; left:-999px; top:0;
  background: var(--copper); color:#0a1712; padding: 10px 16px; z-index: 200;
}
.skip-link:focus{ left: 16px; top: 16px; }

/* faint fixed PCB grid backdrop */
.pcb-backdrop{
  position: fixed; inset:0; z-index:-1; pointer-events:none;
  background-image:
    linear-gradient(var(--panel-border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--panel-border-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 85%);
}

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(10,23,18,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-border);
}
.header-row{
  display:flex; align-items:center; justify-content:space-between;
  height: 72px;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand-mark{ width: 32px; height:32px; }
.brand-logo { 
  height: 55px; /* Adjust this number if you want the logo bigger or smaller */
  width: auto; 
  display: block;
}
.brand-mark polygon{ fill: var(--bg-alt); stroke: var(--copper); stroke-width:2; }
.brand-mark text{ font-family: var(--font-mono); font-weight:600; font-size:12px; fill: var(--copper); }
.brand-word{ font-family: var(--font-display); font-weight:700; font-size: 1.1rem; letter-spacing: -0.01em; }

.main-nav{ display:flex; align-items:center; gap: 28px; font-size: .92rem; }
.main-nav a{ color: var(--ink-soft); transition: color .15s ease; position:relative; }
.main-nav a:hover, .main-nav a:focus-visible{ color: var(--ink); }
.main-nav a:not(.nav-cta)::after{
  content:""; position:absolute; left:0; right:0; bottom:-6px; height:1px;
  background: var(--copper); transform: scaleX(0); transform-origin: left;
  transition: transform .18s ease;
}
.main-nav a:not(.nav-cta):hover::after{ transform: scaleX(1); }
/* Active Navigation State for Multi-Page */
.main-nav a.active { 
  color: var(--ink); 
}
.main-nav a.active:not(.nav-cta)::after { 
  transform: scaleX(1); 
}
.footer-nav a.active {
  color: var(--copper-bright);
}

.nav-cta{
  border: 1px solid var(--copper);
  padding: 8px 16px; border-radius: 6px; color: var(--copper-bright) !important;
  font-family: var(--font-mono); font-size: .85rem;
}
.nav-cta:hover{ background: var(--copper); color: var(--bg) !important; }

.nav-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width: 36px; height: 36px; background:none; border:none; cursor:pointer;
}
.nav-toggle span{ display:block; height:2px; background: var(--ink); border-radius:2px; }

@media (max-width: 840px){
  .nav-toggle{ display:flex; }
  .main-nav{
    position:absolute; top: 72px; left:0; right:0;
    background: var(--bg-alt); border-bottom: 1px solid var(--panel-border);
    flex-direction:column; align-items:flex-start; gap:0;
    max-height:0; overflow:hidden; transition: max-height .25s ease;
  }
  .main-nav.open{ max-height: 420px; }
  .main-nav a{ width:100%; padding: 16px 24px; border-bottom: 1px solid var(--panel-border-soft); }
  .nav-cta{ margin: 12px 24px; text-align:center; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 13px 26px; border-radius: 6px; font-weight:600; font-size: .95rem;
  border: 1px solid transparent; transition: all .15s ease; cursor:pointer;
}
.btn-primary{ background: var(--copper); color:#170f06; }
.btn-primary:hover{ background: var(--copper-bright); transform: translateY(-1px); }
.btn-ghost{ border-color: var(--panel-border); color: var(--ink); }
.btn-ghost:hover{ border-color: var(--copper); color: var(--copper-bright); }

.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; }

/* =========================================================
   Type helpers / eyebrow / spec bits
   ========================================================= */
.eyebrow{
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--copper); margin-bottom: 14px;
  display:flex; align-items:center; gap:8px;
}
.eyebrow .dot{ width:6px; height:6px; border-radius:50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); }

.section-title{ font-size: clamp(1.7rem, 3vw, 2.4rem); }
.body-lg{ font-size: 1.05rem; max-width: 60ch; }
.section-intro{ max-width: 56ch; }
.accent-copper{ color: var(--copper); }

.editor-note{
  font-family: var(--font-mono); font-size: .8rem; color: var(--ink-faint);
  border-left: 2px solid var(--panel-border); padding-left: 12px; margin-top: 28px;
}

/* =========================================================
   Sections
   ========================================================= */
.section{ padding: 96px 0; }
.section-alt{ background: var(--bg-alt); border-top:1px solid var(--panel-border); border-bottom:1px solid var(--panel-border); }
.section-head{ margin-bottom: 48px; }

/* =========================================================
   Hero
   ========================================================= */
.hero{ padding: 64px 0 40px; position: relative; }
.hero-grid{
  display:grid; grid-template-columns: 1fr; gap: 48px; align-items:center;
}
.hero-title{
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin-bottom: .2em;
}
.hero-tagline{
  font-family: var(--font-display); font-weight:500;
  font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--ink); margin-bottom: 18px;
}
.hero-desc{ max-width: 75ch; font-size: 1.02rem; margin-bottom: 32px; }

.fusion-svg{ width:100%; height:auto; }
.traces line{ stroke: var(--panel-border); stroke-width: 2; }
.satellite{ fill: var(--bg-alt); stroke: var(--panel-border); stroke-width: 2; }
.satellite-label{
  font-family: var(--font-mono); font-size: 13px; fill: var(--ink-soft);
  text-anchor: middle; letter-spacing: .04em;
}
.core{ fill: var(--copper); stroke: var(--copper-bright); stroke-width:2; }
.core-label{
  font-family: var(--font-mono); font-weight:700; font-size: 20px; fill:#170f06;
  text-anchor: middle;
}
.pulse{ fill: var(--teal); filter: drop-shadow(0 0 6px var(--teal)); }
@media (prefers-reduced-motion: reduce){
  .pulses{ display:none; }
}

@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-diagram{ order:-1; max-width: 420px; margin: 0 auto; }
}

/* =========================================================
   About / Spec sheet
   ========================================================= */
.about-grid{
  display:grid; grid-template-columns: 1.3fr 0.8fr; gap: 56px; align-items:start;
}
.spec-sheet{
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius);
  overflow:hidden;
}
.spec-sheet-head{
  display:flex; justify-content:space-between; padding: 12px 18px;
  background: var(--bg-alt); border-bottom:1px solid var(--panel-border);
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; color: var(--ink-faint);
}
.spec-list{ margin:0; padding: 6px 18px; }
.spec-row{
  display:flex; justify-content:space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px dashed var(--panel-border);
  font-family: var(--font-mono); font-size: .88rem;
}
.spec-row:last-child{ border-bottom:none; }
.spec-row dt{ color: var(--ink-faint); }
.spec-row dd{ margin:0; color: var(--ink); text-align:right; }
.live-dot{
  display:inline-block; width:7px; height:7px; border-radius:50%;
  background: var(--teal); margin-right:7px; box-shadow: 0 0 8px var(--teal);
}

@media (max-width: 800px){
  .about-grid{ grid-template-columns: 1fr; }
}

/* =========================================================
   Domain cards
   ========================================================= */
/* =========================================================
   Domain cards (Glassmorphism & Neon Icons)
   ========================================================= */
.card-grid {
  display: grid; 
  /* Changes from fixed 3 columns to auto-fitting columns that center automatically */
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
  gap: 20px;
  justify-content: center;
}

.domain-card {
  position: relative;
  background: rgba(16, 37, 30, 0.4); 
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(95, 214, 196, 0.15); 
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.domain-card:hover {
  transform: translateY(-5px);
  border-color: var(--copper);
  box-shadow: 0 12px 40px 0 rgba(214, 138, 60, 0.15);
}

.domain-icon { 
  width: 44px; 
  height: 44px; 
  color: var(--teal); 
  fill: none; 
  stroke: currentColor; 
  stroke-width: 1.5; 
  stroke-linecap: round; 
  stroke-linejoin: round; 
  margin-bottom: 16px;
  filter: drop-shadow(0 0 8px rgba(95, 214, 196, 0.8));
  transition: all 0.3s ease;
}

.domain-card:hover .domain-icon {
  color: var(--copper-bright);
  filter: drop-shadow(0 0 12px rgba(240, 169, 78, 0.9));
  transform: scale(1.1);
}

.domain-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.domain-card p { font-size: .92rem; margin: 0; }

@media (max-width: 900px){ .card-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px){ .card-grid{ grid-template-columns: 1fr; } }

/* =========================================================
   Process rail
   ========================================================= */
.process-rail{
  list-style:none; margin:0; padding:0;
  display:grid; grid-template-columns: repeat(6,1fr); gap: 20px;
  position: relative;
}
.process-rail::before{
  content:""; position:absolute; top: 14px; left: 6%; right:6%; height:1px;
  background: repeating-linear-gradient(90deg, var(--panel-border) 0 8px, transparent 8px 14px);
}
.process-rail li{ position:relative; padding-top: 44px; }
.step-no{
  position:absolute; top:0; left:0;
  font-family: var(--font-mono); font-size: .8rem; color: var(--bg);
  background: var(--copper); width:28px; height:28px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; font-weight:600;
}
.process-rail h3{ font-size: 1rem; margin-bottom:6px; }
.process-rail p{ font-size: .88rem; }

@media (max-width: 900px){
  .process-rail{ grid-template-columns: repeat(2,1fr); }
  .process-rail::before{ display:none; }
}
@media (max-width: 560px){ .process-rail{ grid-template-columns: 1fr; } }

/* =========================================================
   Activities
   ========================================================= */
.activity-list{ border-top: 1px solid var(--panel-border); }
.activity-row{
  display:grid; grid-template-columns: 1fr 2fr; gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--panel-border);
}
.activity-row h3{ font-size: 1.05rem; margin:0; }
.activity-row p{ margin:0; font-size: .95rem; }
@media (max-width: 700px){ .activity-row{ grid-template-columns: 1fr; gap:6px; } }

/* =========================================================
   Team
   ========================================================= */
/* =========================================================
   Team (Glassmorphism Cards)
   ========================================================= */
/* =========================================================
   TEAM PAGE: Presidents & Executive Board
   ========================================================= */

/* --- 1. Presidents (2-Column Grid) --- */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto 60px auto;
}

.leader-card {
  background: rgba(16, 37, 30, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(95, 214, 196, 0.15);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.leader-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(214, 138, 60, 0.15);
}

.badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  letter-spacing: 0.1em;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.leader-img-wrapper {
  width: 100%;
  height: 400px;
  background: #0f1c18; 
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.leader-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.leader-card:hover .leader-img-wrapper img {
  transform: scale(1.05);
}

.leader-info {
  padding: 24px;
  background: var(--bg);
  border-top: 3px solid var(--copper);
}

.leader-info h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--copper-bright);
}

.leader-info .role {
  font-size: 0.8rem;
  color: var(--teal);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}

.leader-info .dept {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin: 0;
}

/* --- 2. Executive Board (3-Column Grid) --- */
/* --- 2. Executive Board (3-Column Grid Portrait Cards) --- */
.executive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto 80px auto;
}
/* Centers rows that only have 2 cards */
.executive-grid.two-cards {
  grid-template-columns: repeat(2, 1fr);
  max-width: 733px; /* Shrinks the container so it centers on the page */
}
.member-card {
  background: rgba(16, 37, 30, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(95, 214, 196, 0.15);
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(95, 214, 196, 0.15); /* Teal glow to match the line */
}

.member-img-wrapper {
  width: 100%;
  height: 320px; /* Slightly shorter than presidents to scale nicely in 3 columns */
  background: #0f1c18;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.member-card:hover .member-img-wrapper img {
  transform: scale(1.05);
}

.member-info {
  padding: 24px;
  background: var(--bg);
  border-top: 3px solid var(--teal); /* Teal line distinguishes them from Presidents */
  flex-grow: 1; /* Keeps all cards equal height even if text length varies */
}

.member-info h3 {
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0 0 8px 0;
}

.member-info .role {
  font-size: 0.75rem;
  color: var(--teal);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 8px 0;
}

.member-info .dept {
  font-size: 0.75rem;
  color: var(--ink-faint);
  margin: 0;
  line-height: 1.3;
}

/* --- 3. Mobile Responsiveness --- */
@media (max-width: 900px) {
  .executive-grid, 
  .executive-grid.two-cards {
    grid-template-columns: 1fr; /* Stacks everything on tablets */
  }
}

@media (max-width: 768px) {
  .leadership-grid,
  .executive-grid,
  .executive-grid.two-cards { /* <--- This forces the 2-card row to stack */
    grid-template-columns: 1fr; 
    padding: 0 20px;          
  }
}

/* =========================================================
   Join CTA
   ========================================================= */
.join-section{
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, #163025 0%, transparent 70%),
    var(--bg-alt);
  border-top: 1px solid var(--panel-border);
  text-align:center;
}
.join-wrap{ display:flex; flex-direction:column; align-items:center; }
.join-title{ font-size: clamp(2rem, 4vw, 3rem); }
.join-desc{ max-width: 52ch; }
.join-section .eyebrow{ justify-content:center; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer{ border-top: 1px solid var(--panel-border); padding-top: 56px; }
.footer-grid{
  display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
  padding-bottom: 40px;
}
.footer-tagline{ font-size: .88rem; margin-top: 14px; max-width: 32ch; }
.footer-nav, .footer-social{ display:flex; flex-direction:column; gap: 12px; font-size: .92rem; }
.footer-nav a:hover, .footer-social a:hover{ color: var(--copper-bright); }
.footer-bottom{
  border-top: 1px solid var(--panel-border); padding: 20px 24px;
  font-family: var(--font-mono); font-size: .78rem; color: var(--ink-faint);
}

@media (max-width: 700px){
  .footer-grid{ grid-template-columns: 1fr; }
}

/* =========================================================
   Scroll reveal
   ========================================================= */
[data-reveal]{
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
[data-reveal].is-visible{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  [data-reveal]{ opacity:1; transform:none; transition:none; }
}

/* keyboard focus */
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--copper-bright); outline-offset: 3px;
}

/* =========================================================
   Circuit Tree Navigation
   ========================================================= */
.circuit-tree-section {
  position: relative;
  overflow: hidden;
}

.circuit-tree {
  position: relative;
  max-width: 800px;
  margin: 60px auto 0;
  padding: 40px 0;
}

/* The Central Trace (Spine) */
/* The Central Trace (Spine) */
.tree-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--panel-border);
  transform: translateX(-50%);
  z-index: 1;
  --scroll-glow: 0%; /* JavaScript controls this variable */
}

/* The Glowing Copper Charge */
.tree-spine::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--scroll-glow);
  background: var(--copper-bright);
  box-shadow: 0 0 12px var(--copper-bright);
  transition: height 0.1s ease-out;
}

/* Lights up the nodes when the charge hits them */
.node.active-node {
  background: var(--copper);
  box-shadow: 0 0 15px var(--copper);
  border-color: var(--copper-bright);
}
/* Branch Containers */
.tree-branch {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  z-index: 2;
}

.tree-branch.left {
  left: 0;
  text-align: right;
}

.tree-branch.right {
  left: 50%;
  text-align: left;
}

/* Clickable Branch Content (Glassmorphism) */
.branch-content {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  background: rgba(16, 37, 30, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--panel-border);
  padding: 24px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 350px;
}

.tree-branch.left .branch-content {
  flex-direction: row-reverse;
  margin-left: auto;
}

/* Hover Effects */
.branch-content:hover {
  border-color: var(--copper);
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(214, 138, 60, 0.15);
}

.branch-content h3 {
  font-size: 1.15rem;
  color: var(--copper-bright);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.branch-content p {
  font-size: 0.9rem;
  margin: 0;
}

.branch-content:hover h3 {
  color: var(--teal);
}

/* Circuit Nodes (Dots on the spine) */
.node {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  background: var(--bg);
  border: 3px solid var(--copper);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.tree-branch.left .node { right: -8px; }
.tree-branch.right .node { left: -8px; }

/* Connecting Lines (Traces from spine to card) */
.tree-branch::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 40px;
  height: 2px;
  background: var(--panel-border);
  z-index: -1;
  transition: background 0.3s ease;
}

.tree-branch.left::before { right: 0; }
.tree-branch.right::before { left: 0; }

.branch-content:hover .node {
  background: var(--copper);
  box-shadow: 0 0 15px var(--copper);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .tree-spine {
    left: 20px;
  }
  .tree-branch {
    width: 100%;
    left: 0 !important;
    padding: 20px 0 20px 50px;
    text-align: left;
  }
  .tree-branch.left .branch-content {
    flex-direction: row;
    margin-left: 0;
  }
  .node {
    left: 12px !important;
  }
  .tree-branch::before {
    left: 20px !important;
    width: 30px;
  }
}

/* =========================================================
   Boot Sequence Preloader
   ========================================================= */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Society Branding & Spinning Ring */
.logo-wrapper {
  position: relative;
  width: 120px; /* Creates the space for the ring */
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.loader-logo {
  height: 90px; /* Increased logo size */
  width: auto;
  z-index: 2;
  filter: drop-shadow(0 0 10px rgba(214, 138, 60, 0.4));
}

.spinning-ring {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  /* Dual-color spinning border */
  border-top-color: var(--teal);
  border-bottom-color: var(--copper);
  animation: 
    spin 1.2s linear infinite,
    ringGlow 2.5s ease-in-out infinite alternate;
}

.loader-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ink);
  letter-spacing: 0.05em;
  margin: 0 0 16px 0;
  text-transform: uppercase;
}

/* Terminal Text */
.loader-text {
  font-family: var(--font-mono);
  color: var(--copper);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
}

.dots {
  animation: blink 1.5s infinite steps(4, start);
}

/* Charging Bar */
.loader-bar {
  width: 320px;
  height: 2px;
  background: var(--panel-border);
  margin-top: 10px;
  position: relative;
  overflow: hidden;
}

.loader-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--copper-bright);
  box-shadow: 0 0 10px var(--copper-bright);
  /* Slowed down to 3.5 seconds to match JS */
  animation: loadBar 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; 
}

/* The Animations */
@keyframes spin {
  100% { transform: rotate(360deg); }
}

@keyframes ringGlow {
  0% { filter: drop-shadow(0 0 8px var(--teal)); }
  100% { filter: drop-shadow(0 0 15px var(--copper-bright)); }
}

@keyframes blink {
  0%, 100% { clip-path: inset(0 100% 0 0); }
  25% { clip-path: inset(0 66% 0 0); }
  50% { clip-path: inset(0 33% 0 0); }
  75% { clip-path: inset(0 0 0 0); }
}

@keyframes loadBar {
  0% { width: 0%; }
  50% { width: 60%; }
  100% { width: 100%; }
}

.loader-hidden {
  opacity: 0;
  visibility: hidden;
}

/* =========================================================
   3D Event Timeline
   ========================================================= */
.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
}

/* The Central Trace */
.timeline-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--panel-border);
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-glow-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%; /* JS will fill this */
  background: var(--teal);
  box-shadow: 0 0 15px var(--teal);
  transition: height 0.1s ease-out;
}

/* The Timeline Items */
.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.timeline-item.right {
  flex-direction: row-reverse;
}

/* The Glowing Nodes */
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: #0f1c18;
  border: 2px solid var(--panel-border);
  border-radius: 50%;
  transition: all 0.4s ease;
}

.timeline-item.active .timeline-dot {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 0 15px var(--teal);
}

/* The Dates */
.timeline-date {
  width: 45%;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--copper);
  letter-spacing: 0.05em;
  text-align: right;
  padding: 0 40px;
}

.timeline-item.right .timeline-date {
  text-align: left;
}

/* 3D Card Wrappers */
.timeline-card-wrapper {
  width: 45%;
  perspective: 1000px; /* Enables 3D space */
}

/* The Glass Cards */
.timeline-card {
  background: rgba(16, 37, 30, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(95, 214, 196, 0.15);
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  transform-style: preserve-3d;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* 3D Tilt on Hover */
.timeline-item.left .timeline-card:hover {
  transform: rotateY(5deg) rotateX(2deg) translateY(-5px);
  border-color: var(--teal);
  box-shadow: -10px 15px 30px rgba(95, 214, 196, 0.15);
}

.timeline-item.right .timeline-card:hover {
  transform: rotateY(-5deg) rotateX(2deg) translateY(-5px);
  border-color: var(--teal);
  box-shadow: 10px 15px 30px rgba(95, 214, 196, 0.15);
}

.timeline-card h3 {
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.timeline-card p {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-bottom: 16px;
}

/* Badges (DORDC / TIET) */
.event-tags {
  display: flex;
  gap: 12px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

.tag.teal {
  background: rgba(95, 214, 196, 0.15);
  color: var(--teal);
  border: 1px solid var(--teal);
}

.tag.copper {
  background: rgba(214, 138, 60, 0.15);
  color: var(--copper);
  border: 1px solid var(--copper);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .timeline-spine {
    left: 20px;
  }
  .timeline-dot {
    left: 20px;
  }
  .timeline-item, .timeline-item.right {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 50px;
  }
  .timeline-date {
    width: 100%;
    text-align: left !important;
    padding: 0 0 12px 0;
    font-size: 1.2rem;
  }
  .timeline-card-wrapper {
    width: 100%;
  }
}

/* =========================================================
   True Circular Clip Override
   ========================================================= */
.brand-logo,
.hero-logo,
.preloader img,
.hero-card img {
  border-radius: 50%;
  object-fit: cover;
  clip-path: circle(50% at 50% 50%);
}
/* =========================================================
   Ultimate Hero Logo Mask
   ========================================================= */
/* Target the container holding that specific hero logo */
.hero-logo-container, 
div:has(> .hero-logo),
.hero-card {
  background: transparent !important;
  box-shadow: none !important;
}

/* Force the image itself to drop its background and clip hard */
.hero-logo {
  background: transparent !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  -webkit-mask-image: radial-gradient(circle, white 100%, transparent 100%);
  mask-image: radial-gradient(circle, white 100%, transparent 100%);
}

/* =========================================================
   Global Circular Logo & Center Hub Override
   ========================================================= */
.brand-logo,
.hero-logo,
.hero-card img {
  border-radius: 50%;
  object-fit: cover;
  clip-path: circle(50% at 50% 50%);
}

/* Force the central network hub image to fill its container */
.hero-card img, 
.hero-logo,
.network-center img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}
/* =========================================================
   ELITE CINEMATIC PRELOADER (Awwwards Style)
   ========================================================= */
#elite-preloader {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  background: #020405; /* Pitch black with a 1% hint of teal */
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', -apple-system, sans-serif;
  transition: opacity 1.2s cubic-bezier(0.77, 0, 0.175, 1), transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.elite-content {
  display: flex; flex-direction: column; align-items: center; width: 100%;
}

/* The Logo Reveal */
.logo-reveal {
  position: relative; width: 110px; height: 110px; border-radius: 50%;
  overflow: hidden; margin-bottom: 40px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: all 1s ease;
}
.elite-logo {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%) brightness(0.2);
  transition: filter 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
/* This class is added by JS when loading hits 100% */
.logo-reveal.ignite { box-shadow: 0 0 40px rgba(0, 240, 255, 0.3), 0 0 0 2px rgba(0, 240, 255, 0.5); }
.logo-reveal.ignite .elite-logo { filter: grayscale(0%) brightness(1.2); }

/* Elegant Typography */
.elite-text-box { text-align: center; margin-bottom: 40px; overflow: hidden; }
.elite-title {
  color: #fff; font-size: 1.2rem; letter-spacing: 14px; font-weight: 300;
  opacity: 0; transform: translateY(15px);
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.elite-subtitle {
  color: #00f0ff; font-size: 0.65rem; letter-spacing: 6px; font-family: monospace;
  opacity: 0; transform: translateY(10px);
  transition: all 1s ease 0.3s; margin-top: 15px; opacity: 0.6;
}

/* Razor-Thin Progress Bar */
.elite-progress-container {
  width: 250px; height: 1px; background: rgba(255, 255, 255, 0.1);
  position: relative; overflow: hidden; margin-bottom: 20px;
}
.elite-progress-bar {
  position: absolute; top: 0; left: 0; height: 100%; width: 0%;
  background: #00f0ff; box-shadow: 0 0 15px #00f0ff;
  transition: width 0.1s ease-out;
}
.elite-percentage {
  color: rgba(255, 255, 255, 0.3); font-family: monospace; font-size: 0.75rem; letter-spacing: 3px;
}

/* Container for the central logo */
.hero-logo-container {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 50vh; /* Adjust this if you need more/less vertical space */
}

/* Enlarged Logo Style */
.central-epicenter-logo {
  width: 220px;  /* Significantly larger size */
  height: 220px;
  object-fit: contain;
  border-radius: 50%;
  background-color: #050b09; /* Matches your old SVG core fill */
  border: 3px solid #5fd6c4; /* Matches your old SVG core stroke */
  box-shadow: 0 0 50px rgba(95, 214, 196, 0.4); /* Neon glow effect */
  animation: pulse-glow 3s ease-in-out infinite alternate;
}

/* Subtle breathing glow animation */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 30px rgba(95, 214, 196, 0.2);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 0 80px rgba(95, 214, 196, 0.6);
    transform: scale(1.05);
  }
}
/* --- 3. Mobile Responsiveness --- */
@media (max-width: 900px) {
  .executive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets and large phones */
@media (max-width: 768px) {
  .leadership-grid {
    grid-template-columns: 1fr !important;
    padding: 0 20px;
  }
}

/* Phones */
@media (max-width: 600px) {
  .executive-grid,
  .executive-grid.two-cards {
    grid-template-columns: 1fr !important;
    padding: 0 20px;
  }
}
/* =========================================================
   Circuit Tree Continuation & Coming Soon
   ========================================================= */
.tree-continuation {
  position: relative;
  text-align: center;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

/* Creates a line that fades out perfectly into the background */
.fade-line {
  width: 2px;
  height: 80px;
  background: linear-gradient(to bottom, var(--panel-border), transparent);
  margin-bottom: 16px;
}

/* Terminal-style text */
.coming-soon-text {
  font-family: var(--font-mono);
  color: var(--teal); 
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.7;
  animation: pulse-text 2.5s infinite ease-in-out;
}

/* Subtle breathing effect for the text */
@keyframes pulse-text {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; text-shadow: 0 0 8px rgba(95, 214, 196, 0.4); }
}
/* =========================================================
   Circuit Tree - End Social Node
   ========================================================= */
.tree-continuation {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

/* Extends the central spine directly into the logo */
.spine-extension {
  width: 2px;
  height: 50px;
  background: var(--panel-border);
}

/* The Clickable Instagram Node */
.timeline-insta-node {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(16, 37, 30, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid var(--copper);
  border-radius: 50%;
  color: var(--copper-bright);
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(214, 138, 60, 0.2);
}

/* Hover Physics - Lights up the circuit */
.timeline-insta-node:hover {
  background: var(--copper);
  color: #020405; /* Switches icon color to dark for contrast */
  box-shadow: 0 0 25px var(--copper-bright);
  transform: translateY(-4px) scale(1.05);
  border-color: var(--copper-bright);
}
/* =========================================================
   Team Member LinkedIn Logos
   ========================================================= */
.team-social-wrapper {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 16px; /* <--- This creates the space between the buttons */
}

.team-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(16, 37, 30, 0.4); /* Glassmorphism base */
  border: 1px solid var(--panel-border);
  color: var(--ink-faint);
  transition: all 0.3s ease;
}

/* Hover effect for Executive Board (Teal Glow) */
.member-info .team-social-icon:hover {
  border-color: var(--teal);
  color: var(--teal);
  box-shadow: 0 0 15px rgba(95, 214, 196, 0.3);
  transform: translateY(-3px);
}

/* Hover effect for Presidents (Copper Glow to match their card) */
.leader-info .team-social-icon:hover {
  border-color: var(--copper);
  color: var(--copper-bright);
  box-shadow: 0 0 15px rgba(214, 138, 60, 0.3);
  transform: translateY(-3px);
}