/* =============================================
   EXOQUEST — style.css
   Dark Cyberpunk · Glassmorphism · Ultra-Smooth · Terminal CLI
   ============================================= */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:         hsl(270, 95%, 65%);   /* electric violet/purple from logo */
  --accent-dim:     hsl(270, 75%, 45%);
  --accent-glow:    hsl(270, 100%, 75%);
  --accent-soft:    hsla(270, 95%, 65%, 0.12);
  --bg:             hsl(265, 30%, 5%);     /* deep obsidian cosmic violet */
  --bg2:            hsl(265, 25%, 8%);
  --surface:        hsl(265, 25%, 11%);
  --surface2:       hsl(265, 22%, 15%);
  --border:         hsl(265, 20%, 20%);
  --border-glow:    hsla(270, 95%, 65%, .22);
  --border-hover:   hsla(270, 95%, 65%, .45);
  --text:           hsl(265, 20%, 94%);
  --text-muted:     hsl(265, 12%, 58%);
  --font-head:      'Oxanium', sans-serif;
  --font-body:      'Space Grotesk', sans-serif;
  --font-cursive:   'Caveat', cursive;
  --font-mono:      ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --radius:         16px;
  --radius-sm:      10px;

  /* Ultra-smooth physics-based animation tokens */
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:    cubic-bezier(0.34, 1.35, 0.64, 1);
  --ease-smooth:    cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out:    cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 0.18s var(--ease-out-expo);
  --transition:      0.32s var(--ease-out-expo);
  --transition-smooth: 0.5s var(--ease-out-expo);
  --transition-slow: 0.75s var(--ease-out-expo);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }
a, button, input, textarea { -webkit-tap-highlight-color: transparent; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--accent-dim);
  border-radius: 9px;
  transition: background var(--transition);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ===== TARGET CROSSHAIR CURSOR ===== */
@media (pointer: fine) {
  body, a, button, input, textarea, select, [role="button"] {
    cursor: none !important;
  }
}

.target-cursor-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 2147483647;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
}

.target-cursor-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.target-cursor-corner {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  will-change: transform;
}

.corner-tl {
  transform: translate(-150%, -150%);
  border-right: none;
  border-bottom: none;
}

.corner-tr {
  transform: translate(50%, -150%);
  border-left: none;
  border-bottom: none;
}

.corner-br {
  transform: translate(50%, 50%);
  border-left: none;
  border-top: none;
}

.corner-bl {
  transform: translate(-150%, 50%);
  border-right: none;
  border-top: none;
}

/* ===== DARK VEIL CANVAS BACKGROUND ===== */
#particle-canvas, .darkveil-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  display: block;
}

/* ===== UTILITY ===== */
.accent-text        { color: var(--accent); }
.accent-text-bold   { color: var(--accent); font-weight: 700; }
.accent-icon        { color: var(--accent); }
.cursive-text       { font-family: var(--font-cursive); }

/* Interactive scale-btn */
.scale-btn {
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  will-change: transform;
}
.scale-btn:hover {
  transform: translate3d(0, -4px, 0);
}
.scale-btn:active {
  transform: translate3d(0, -1px, 0) scale(0.99);
}

/* Interactive card spotlight background effect */
.about-card, .partner-card, .team-card, .hero-stat {
  position: relative;
  overflow: hidden;
}
.about-card::before, .partner-card::before, .team-card::before, .hero-stat::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(350px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), hsla(270, 95%, 65%, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out-expo);
  pointer-events: none;
  z-index: 1;
}
.about-card:hover::before, .partner-card:hover::before, .team-card:hover::before, .hero-stat:hover::before {
  opacity: 1;
}

/* =============================================
   SITE HEADER (Top bar)
   ============================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.site-header.header-hidden {
  opacity: 0;
  transform: translateY(-24px);
  pointer-events: none;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-badge {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform var(--transition-smooth), filter var(--transition-smooth);
}
.brand-badge:hover {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 12px hsla(270, 95%, 65%, 0.6));
}
.brand-badge img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 50%;
}
.nav-logo-text {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: .15em;
  color: var(--text);
  transition: letter-spacing 0.35s var(--ease-out-expo);
}
.brand-identity:hover .nav-logo-text {
  letter-spacing: .17em;
}



/* =============================================
   MAIN LAYOUT (Centered without left nav)
   ============================================= */
main {
  position: relative;
  z-index: 1;
  margin-left: 0;
  padding-top: 70px;
}

section {
  min-height: auto;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* Section titles */
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 44px;
  text-align: center;
}
.section-subtitle {
  color: var(--text-muted);
  max-width: 640px;
  margin: -28px auto 44px auto;
  font-size: .95rem;
  line-height: 1.6;
  text-align: center;
}

/* Shared glass card */
.card-blur {
  position: absolute;
  inset: 0;
  background: hsla(265,28%,8%,.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: inherit;
  z-index: 0;
  transition: background var(--transition);
}

/* =============================================
   HERO SECTION & CYBER TERMINAL
   ============================================= */
.hero-section {
  padding-top: 32px;
  padding-bottom: 64px;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

/* Hero left content */
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  background: linear-gradient(135deg, var(--text) 30%, var(--accent) 115%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-cta-wrap { display: flex; align-items: center; gap: 16px; }
.hero-cta-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  border-radius: 14px;
  border: 1px solid var(--border-glow);
  overflow: hidden;
  cursor: pointer;
  width: fit-content;
  text-decoration: none;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  will-change: transform;
}
.hero-cta-blur {
  position: absolute; inset: 0;
  background: hsla(270,95%,60%,.1);
  backdrop-filter: blur(12px);
  z-index: -1;
  border-radius: inherit;
}
.hero-cta-pill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsla(270,95%,65%,.25), transparent 65%);
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: inherit;
}
.hero-cta-pill:hover {
  transform: translate3d(0, -3px, 0) scale(1.02);
  border-color: hsla(270, 95%, 65%, 0.6);
  box-shadow: 0 10px 30px hsla(270, 95%, 65%, 0.25), 0 0 20px hsla(270, 95%, 65%, 0.15);
}
.hero-cta-pill:hover::after { opacity: 1; }
.hero-cta-pill:active {
  transform: translate3d(0, -1px, 0) scale(0.99);
}

.arrow-icon {
  width: 52px; height: 14px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.hero-cta-pill:hover .arrow-icon {
  transform: translate3d(6px, 0, 0);
}
.hero-cta-btn {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .08em;
  color: var(--text);
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.hero-desc {
  color: var(--text-muted);
  max-width: 560px;
  font-size: .95rem;
  line-height: 1.65;
}

.hero-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-stat {
  flex: 1 1 140px;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  background: hsla(265,28%,12%,.5);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  will-change: transform;
}
.hero-stat:hover {
  border-color: hsla(270,95%,65%,.45);
  transform: translate3d(0, -4px, 0);
  box-shadow: 0 12px 28px hsla(270,95%,60%,.2), 0 0 16px hsla(270,95%,60%,.12);
}
.hero-stat.hero-stat-static {
  transition: opacity 0.6s, transform 0.6s;
  cursor: default;
}
.hero-stat.hero-stat-static:hover {
  border-color: var(--border-glow) !important;
  transform: none !important;
  box-shadow: none !important;
}
.hero-stat.hero-stat-static::before {
  display: none !important;
  opacity: 0 !important;
}
.stat-number {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: .76rem;
  color: var(--text-muted);
  letter-spacing: .04em;
}

/* =============================================
   CYBER TERMINAL COMPONENT
   ============================================= */
.hero-terminal-panel {
  width: 100%;
  display: flex;
  justify-content: center;
}
.terminal-card {
  width: 100%;
  max-width: 580px;
  background: hsla(265, 30%, 8%, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.terminal-card:hover, .terminal-card:focus-within {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65);
}

/* Terminal Header */
.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: hsla(265, 25%, 12%, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.terminal-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.terminal-dot:hover {
  transform: scale(1.2);
}
.dot-red { background: #ef4444; box-shadow: none; }
.dot-yellow { background: #eab308; box-shadow: none; }
.dot-green { background: #22c55e; box-shadow: none; }

.terminal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.terminal-title svg {
  color: var(--accent);
}
/* Terminal Body / Output */
.terminal-body {
  padding: 16px 20px;
  height: 290px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-dim) transparent;
}
.terminal-body::-webkit-scrollbar { width: 4px; }
.terminal-body::-webkit-scrollbar-thumb { background: var(--accent-dim); border-radius: 4px; }

.term-line {
  word-break: break-word;
}
.term-welcome {
  color: var(--accent);
  font-weight: 700;
}
.term-dim {
  color: var(--text-muted);
}
.term-system {
  color: #38bdf8;
}
.term-highlight {
  color: var(--accent);
  font-weight: 600;
}
.term-accent {
  color: var(--accent);
}
.term-success {
  color: #4ade80;
}
.term-warn {
  color: #facc15;
}
.term-error {
  color: #f87171;
}
.term-flag {
  color: #c084fc;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  border: 1px dashed rgba(255, 255, 255, 0.15);
}
.term-matrix-line {
  color: #22c55e;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}
.term-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 6px 0;
}
.term-input-cmd {
  color: #f3f4f6;
  font-weight: 600;
}
.term-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--accent);
  vertical-align: middle;
  margin-left: 2px;
  animation: termBlink 0.8s infinite;
}
@keyframes termBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.term-table {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 4px 12px;
  margin: 4px 0;
}

/* Terminal Input Row */
.terminal-input-row {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  background: hsla(265, 25%, 11%, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  gap: 6px;
}
.term-prompt {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  white-space: nowrap;
  user-select: none;
  display: flex;
  align-items: center;
}
.term-user {
  color: #a855f7;
  font-weight: 700;
}
.term-dir {
  color: #38bdf8;
  font-weight: 700;
}
.term-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #fff;
  padding: 4px 0;
  caret-color: var(--accent);
}
.term-input::placeholder {
  color: hsla(265, 12%, 45%, 0.8);
  font-size: 0.78rem;
}
.term-submit-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--accent);
  padding: 6px 8px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.term-submit-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-section {}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}
.accent-badge {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: hsla(265, 25%, 12%, 0.5);
  font-family: var(--font-head);
  font-size: .78rem;
  letter-spacing: .08em;
  cursor: default;
  user-select: none;
  transition: none;
  transform: none;
  box-shadow: none;
}
.accent-badge:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: none;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.about-card {
  position: relative;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  will-change: transform;
}
.about-card:hover {
  transform: translate3d(0, -5px, 0);
  border-color: hsla(270,95%,65%,.45);
  box-shadow: 0 14px 36px hsla(265,50%,4%,.6), 0 0 24px hsla(270,95%,60%,.15);
}

.card-content {
  position: relative;
  z-index: 2;
  padding: 32px;
}
.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.card-icon {
  flex-shrink: 0;
  transition: transform var(--transition);
}
.about-card:hover .card-icon {
  transform: scale(1.1) rotate(4deg);
}
.card-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: .05em;
}
.card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-list li {
  color: var(--text-muted);
  font-size: .9rem;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.about-card.about-card-static {
  cursor: default;
}
.about-card.about-card-static:hover {
  transform: none !important;
  border-color: var(--border-glow) !important;
  box-shadow: none !important;
}
.about-card.about-card-static:hover .card-icon {
  transform: none !important;
}
.about-card.about-card-static:hover .card-list li {
  color: var(--text-muted) !important;
}
.about-card.about-card-static::before {
  display: none !important;
  opacity: 0 !important;
}
.card-bullet { flex-shrink: 0; line-height: 1.65; margin-top: 0; }

/* =============================================
   EVENTS SECTION & BORDER GLOW CARD
   ============================================= */
.events-section {}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.border-glow-card {
  --edge-proximity: 0;
  --cursor-angle: 45deg;
  --edge-sensitivity: 30;
  --color-sensitivity: calc(var(--edge-sensitivity) + 20);
  --border-radius: 24px;
  --glow-padding: 40px;
  --cone-spread: 25;
  --card-bg: rgba(18, 13, 26, 0.88);
  --glow-color: hsl(240deg 25% 95% / 100%);
  --glow-color-60: hsla(270, 95%, 82%, 0.85);
  --glow-color-50: hsla(275, 95%, 75%, 0.75);
  --glow-color-40: hsla(265, 90%, 68%, 0.65);
  --glow-color-30: hsla(280, 95%, 62%, 0.5);
  --glow-color-20: hsla(270, 100%, 58%, 0.35);
  --glow-color-10: hsla(265, 100%, 52%, 0.2);

  position: relative;
  border-radius: var(--border-radius);
  isolation: isolate;
  transform: translate3d(0, 0, 0.01px);
  display: grid;
  border: 1px solid rgb(255 255 255 / 15%);
  background: var(--card-bg, #120F17);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: visible;
  box-shadow:
    rgba(0, 0, 0, 0.1) 0px 1px 2px,
    rgba(0, 0, 0, 0.1) 0px 2px 4px,
    rgba(0, 0, 0, 0.1) 0px 4px 8px,
    rgba(0, 0, 0, 0.1) 0px 8px 16px,
    rgba(0, 0, 0, 0.1) 0px 16px 32px,
    rgba(0, 0, 0, 0.1) 0px 32px 64px;
  transition: transform var(--transition);
  will-change: transform;
}

.border-glow-card:hover {
  transform: translate3d(0, -6px, 0);
}

.border-glow-card--light {
  border-color: rgb(24 24 27 / 12%);
  box-shadow:
    rgb(24 24 27 / 4%) 0 1px 2px,
    rgb(24 24 27 / 5%) 0 8px 24px;
}

.border-glow-card--light::after,
.border-glow-card--light > .edge-light {
  mix-blend-mode: normal;
}

.border-glow-card::before,
.border-glow-card::after,
.border-glow-card > .edge-light {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transition: opacity 0.25s ease-out;
  z-index: -1;
}

.border-glow-card:not(:hover):not(.sweep-active)::before,
.border-glow-card:not(:hover):not(.sweep-active)::after,
.border-glow-card:not(:hover):not(.sweep-active) > .edge-light {
  opacity: 0;
  transition: opacity 0.75s ease-in-out;
}

/* colored mesh-gradient border - Purple & Silver metallic theme */
.border-glow-card::before {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card-bg, #120F17) 0 100%) padding-box,
    linear-gradient(rgb(255 255 255 / 0%) 0% 100%) border-box,
    var(--gradient-one, radial-gradient(at 80% 55%, hsla(270, 100%, 78%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-two, radial-gradient(at 69% 34%, hsla(230, 25%, 95%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-three, radial-gradient(at 8% 6%, hsla(285, 100%, 74%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-four, radial-gradient(at 41% 38%, hsla(220, 20%, 90%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-five, radial-gradient(at 86% 85%, hsla(260, 100%, 82%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-six, radial-gradient(at 82% 18%, hsla(240, 30%, 98%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-seven, radial-gradient(at 51% 4%, hsla(290, 95%, 70%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-base, linear-gradient(135deg, #e2e8f0 0%, #c084fc 50%, #ffffff 100%)) border-box;

  opacity: calc((var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));

  -webkit-mask-image:
    conic-gradient(
      from var(--cursor-angle) at center,
      black calc(var(--cone-spread) * 1%),
      transparent calc((var(--cone-spread) + 15) * 1%),
      transparent calc((100 - var(--cone-spread) - 15) * 1%),
      black calc((100 - var(--cone-spread)) * 1%)
    );
  mask-image:
    conic-gradient(
      from var(--cursor-angle) at center,
      black calc(var(--cone-spread) * 1%),
      transparent calc((var(--cone-spread) + 15) * 1%),
      transparent calc((100 - var(--cone-spread) - 15) * 1%),
      black calc((100 - var(--cone-spread)) * 1%)
    );
}

/* colored mesh-gradient background fill near edges - Purple & Silver */
.border-glow-card::after {
  border: 1px solid transparent;
  background:
    var(--gradient-one, radial-gradient(at 80% 55%, hsla(270, 100%, 78%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-two, radial-gradient(at 69% 34%, hsla(230, 25%, 95%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-three, radial-gradient(at 8% 6%, hsla(285, 100%, 74%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-four, radial-gradient(at 41% 38%, hsla(220, 20%, 90%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-five, radial-gradient(at 86% 85%, hsla(260, 100%, 82%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-six, radial-gradient(at 82% 18%, hsla(240, 30%, 98%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-seven, radial-gradient(at 51% 4%, hsla(290, 95%, 70%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-base, linear-gradient(135deg, #e2e8f0 0%, #c084fc 50%, #ffffff 100%)) padding-box;

  -webkit-mask-image:
    linear-gradient(to bottom, black, black),
    radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%),
    radial-gradient(ellipse at 66% 66%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 66% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 66%, black 5%, transparent 40%),
    conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);
  mask-image:
    linear-gradient(to bottom, black, black),
    radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%),
    radial-gradient(ellipse at 66% 66%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 66% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 66%, black 5%, transparent 40%),
    conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);

  -webkit-mask-composite: source-out, destination-over, destination-over, destination-over, destination-over, destination-over;
  mask-composite: subtract, add, add, add, add, add;
  opacity: calc(var(--fill-opacity, 0.5) * (var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  mix-blend-mode: soft-light;
}

/* outer glow layer with Silver-White core & Purple aura */
.border-glow-card > .edge-light {
  inset: calc(var(--glow-padding) * -1);
  pointer-events: none;
  z-index: 1;

  -webkit-mask-image:
    conic-gradient(
      from var(--cursor-angle) at center, black 2.5%, transparent 10%, transparent 90%, black 97.5%
    );
  mask-image:
    conic-gradient(
      from var(--cursor-angle) at center, black 2.5%, transparent 10%, transparent 90%, black 97.5%
    );

  opacity: calc((var(--edge-proximity) - var(--edge-sensitivity)) / (100 - var(--edge-sensitivity)));
  mix-blend-mode: plus-lighter;
}

.border-glow-card > .edge-light::before {
  content: "";
  position: absolute;
  inset: var(--glow-padding);
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px hsla(240, 25%, 96%, 0.95),
    inset 0 0 2px 0 hsla(240, 20%, 98%, 0.85),
    inset 0 0 5px 0 hsla(270, 95%, 82%, 0.75),
    inset 0 0 10px 0 hsla(275, 95%, 72%, 0.6),
    inset 0 0 20px 0 hsla(280, 90%, 65%, 0.45),
    inset 0 0 35px 2px hsla(270, 95%, 60%, 0.3),
    inset 0 0 60px 4px hsla(265, 100%, 55%, 0.18),
    0 0 2px 0 hsla(240, 20%, 98%, 0.9),
    0 0 6px 0 hsla(270, 95%, 80%, 0.75),
    0 0 12px 0 hsla(275, 95%, 70%, 0.6),
    0 0 24px 0 hsla(280, 90%, 65%, 0.45),
    0 0 45px 2px hsla(270, 95%, 60%, 0.3),
    0 0 75px 4px hsla(265, 100%, 55%, 0.18);
}

.border-glow-inner {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
  z-index: 1;
}

.event-card {
  position: relative;
}

.event-card-inner {
  position: relative;
  z-index: 2;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}
.event-icon-wrap {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsla(270,95%,60%,.1);
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}
.event-card:hover .event-icon-wrap {
  transform: scale(1.08) rotate(3deg);
  background: hsla(270,95%,60%,.2);
  border-color: var(--accent);
}
.event-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.event-desc {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.6;
}
.event-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 14px;
}
.event-tag {
  font-family: var(--font-head);
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--accent);
  border: 1px solid var(--border-glow);
  padding: 3px 10px;
  border-radius: 50px;
  background: hsla(270,95%,60%,.09);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.event-card:hover .event-tag {
  border-color: hsla(270,95%,65%,.4);
  background: hsla(270,95%,60%,.15);
}

/* =============================================
   TEAM SECTION
   ============================================= */
.team-section {}

.team-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: stretch;
  padding: 10px 0;
}

.team-card {
  position: relative;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  overflow: hidden;
  width: 210px;
  flex-shrink: 0;
  transition: transform 0.45s var(--ease-out-expo), box-shadow 0.45s var(--ease-out-expo), border-color 0.45s var(--ease-out-expo);
  will-change: transform;
}
.team-card:hover {
  transform: translate3d(0, -8px, 0) scale(1.03);
  border-color: hsla(270, 95%, 65%, 0.55);
  box-shadow: 0 18px 40px hsla(265, 50%, 4%, 0.65), 0 0 24px hsla(270, 95%, 65%, 0.22);
}
.team-card-blur {
  position: absolute; inset: 0;
  background: hsla(265,28%,12%,.7);
  backdrop-filter: blur(16px);
  z-index: 0;
  border-radius: inherit;
  transition: background var(--transition);
}
.team-card:hover .team-card-blur {
  background: hsla(265,28%,14%,.85);
}

.team-card-info {
  position: relative;
  z-index: 2;
  padding: 32px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.team-name {
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .03em;
  transition: color var(--transition-fast);
}
.team-card:hover .team-name {
  color: white;
}
.team-role {
  font-size: .84rem;
  font-family: var(--font-cursive);
  font-weight: 700;
  transition: transform var(--transition-fast);
}
.team-card:hover .team-role {
  transform: scale(1.05);
}

/* =============================================
   PARTNERS SECTION
   ============================================= */
.partners-section {}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.partner-card {
  position: relative;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  background: hsla(265,28%,8%,.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  will-change: transform;
}
.partner-card:hover {
  border-color: hsla(270,95%,65%,.55);
  transform: translate3d(0, -5px, 0) scale(1.02);
  box-shadow: 0 16px 36px hsla(265,50%,4%,.5), 0 0 24px hsla(270,95%,60%,.2);
}
.partner-logo {
  position: relative;
  z-index: 2;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.partner-logo svg {
  transition: transform var(--transition);
}
.partner-card:hover .partner-logo svg {
  transform: scale(1.12);
}
.partner-name {
  font-family: var(--font-head);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.partner-card:hover .partner-name {
  color: var(--text);
}

.partners-grid--single {
  grid-template-columns: minmax(0, 320px);
  justify-content: center;
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-section {}

.contact-card {
  position: relative;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  box-shadow: none !important;
  transition: border-color var(--transition);
}
.contact-card:hover {
  border-color: hsla(270, 95%, 65%, 0.4);
  box-shadow: none !important;
}
.contact-card::before {
  display: none !important;
}
.contact-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 0;
}

.contact-left {
  padding: 44px 36px;
  border-right: 1px solid var(--border-glow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .92rem;
  color: var(--text-muted);
  transition: color var(--transition-fast), transform var(--transition-fast);
}
.contact-item:hover {
  color: var(--text);
  transform: translate3d(4px, 0, 0);
}
.contact-item svg {
  transition: transform var(--transition-fast), color var(--transition-fast);
}
.contact-item:hover svg {
  transform: scale(1.15);
  color: var(--accent);
}
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-glow);
  background: hsla(270,95%,60%,.08);
  color: var(--text-muted);
  text-decoration: none;
  box-shadow: none !important;
  transition: transform 0.25s var(--ease-out-expo), border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
  will-change: transform;
}
.social-btn:hover {
  color: white;
  transform: translate3d(0, -4px, 0) scale(1.1);
  border-color: var(--accent);
  background: hsla(270,95%,65%,.2);
  box-shadow: none !important;
}
.social-btn:active {
  transform: translate3d(0, -1px, 0) scale(1.02);
}

/* Form */
.contact-form {
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-group { display: flex; flex-direction: column; }
.form-input {
  background: hsla(265,25%,14%,.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .9rem;
  padding: 15px 16px;
  outline: none;
  box-shadow: none !important;
  transition: border-color 0.25s ease, background 0.25s ease;
  resize: none;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
.form-input::placeholder {
  color: var(--text-muted);
  transition: opacity var(--transition-fast);
}
.form-input:focus::placeholder {
  opacity: 0.6;
}
.form-input:hover {
  border-color: hsla(270, 95%, 65%, 0.35);
}
.form-input:focus {
  border-color: var(--accent);
  background: hsla(265,25%,17%,.85);
  box-shadow: none !important;
}
.form-textarea { min-height: 110px; }

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  border: none;
  background: linear-gradient(135deg, var(--accent-dim) 0%, var(--accent) 100%);
  color: hsl(265,30%,5%);
  font-family: var(--font-head);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  box-shadow: none !important;
  filter: none !important;
  transition: transform 0.25s var(--ease-out-expo), filter 0.25s ease;
  width: fit-content;
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.submit-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transition: left 0.6s ease;
}
.submit-btn:hover {
  transform: translate3d(0, -3px, 0) scale(1.02);
  box-shadow: none !important;
  filter: brightness(1.1);
}
.submit-btn:hover::after {
  left: 100%;
}
.submit-btn:active {
  transform: translate3d(0, 0, 0) scale(0.98);
}
.submit-btn svg {
  transition: transform 0.25s var(--ease-out-expo);
}
.submit-btn:hover svg {
  transform: translate3d(3px, -2px, 0);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-glow);
  background: hsla(265, 30%, 4%, 0.8);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

/* Terms & Privacy modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,6,10,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out-expo), visibility 0.35s var(--ease-out-expo);
}
.modal-overlay[aria-hidden="false"],
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal {
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow: auto;
  background: linear-gradient(180deg, var(--surface2), var(--surface));
  border-radius: 16px;
  border: 1px solid var(--border-glow);
  padding: 32px 40px;
  position: relative;
  box-shadow: 0 28px 70px rgba(0,0,0,0.7), 0 0 30px hsla(270,95%,65%,0.15);
  transform: translate3d(0, 20px, 0) scale(0.96);
  opacity: 0;
  transition: transform 0.35s var(--ease-out-expo), opacity 0.3s ease;
  will-change: transform, opacity;
}
.modal-overlay[aria-hidden="false"] .modal,
.modal-overlay.active .modal {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
}
.modal h2 { font-family: var(--font-head); margin-bottom: 8px; }
.modal h3 { margin-top: 16px; margin-bottom: 8px; }
.modal p, .modal li { color: var(--text-muted); font-size: .95rem; line-height: 1.6; }
.modal ul { margin-left: 18px; margin-bottom: 8px; }
.modal-close {
  position: absolute;
  right: 16px; top: 16px;
  background: hsla(265, 25%, 20%, 0.5);
  border: 1px solid var(--border-glow);
  border-radius: 50%;
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--ease-spring), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.modal-close:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: hsla(270, 95%, 65%, 0.15);
  transform: rotate(90deg) scale(1.1);
}
.modal-close:active {
  transform: rotate(90deg) scale(0.95);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .85rem;
  font-family: var(--font-head);
  letter-spacing: .06em;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
  will-change: transform;
}
.footer-link:hover {
  color: var(--accent);
  transform: translate3d(0, -2px, 0);
}
.footer-copy {
  color: hsla(210,12%,40%,1);
  font-size: .78rem;
}

/* =============================================
   GLOW DIVIDER LINES
   ============================================= */
section::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow) 40%, var(--border-glow) 60%, transparent);
  opacity: .6;
}

/* =============================================
   TOAST NOTIFICATION
   ============================================= */
#toast {
  position: fixed;
  bottom: 30px; right: 30px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glow);
  background: hsla(265,35%,12%,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text);
  font-family: var(--font-head);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .04em;
  z-index: 999;
  transform: translate3d(0, 24px, 0) scale(0.95);
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 20px hsla(270,95%,65%,0.2);
  transition: opacity 0.35s var(--ease-out-expo), transform 0.35s var(--ease-out-expo);
}
#toast.show {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
}

/* =============================================
   PERSONNEL FOLDER (Interactive Team Component)
   ============================================= */
:root {
  --folder-color: #7928ca;
  --folder-back-color: #4c1d95;
  --folder-tab-color: #3b0764;
  --paper-1: #160f26;
  --paper-2: #1b1230;
  --paper-3: #201538;
}

.team-section {
  position: relative;
  overflow: visible;
  padding-bottom: 120px;
}

.team-folder-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  position: relative;
  padding-top: 40px;
  padding-bottom: 40px;
  width: 100%;
}

.folder-scale-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  perspective: 1200px;
  transform: scale(1.15);
}

.folder {
  position: relative;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  cursor: pointer;
  user-select: none;
  outline: none;
}

.folder:hover {
  transform: translateY(-8px) scale(1.02);
}

.folder:hover .folder__front {
  transform: skew(12deg) scaleY(0.7);
}

.folder:hover .right {
  transform: skew(-12deg) scaleY(0.7);
}

.folder.open {
  transform: translateY(-8px);
}

.folder:focus-visible {
  outline: 2px solid #c084fc;
  outline-offset: 8px;
  border-radius: 12px;
}

.folder__back {
  position: relative;
  width: 240px;
  height: 170px;
  background: var(--folder-back-color);
  border-radius: 0px 18px 18px 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(121, 40, 202, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.folder__back::after {
  position: absolute;
  z-index: 0;
  bottom: 98%;
  left: 0;
  content: '';
  width: 95px;
  height: 24px;
  background: var(--folder-tab-color);
  border-radius: 10px 10px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.folder__tab-label {
  position: absolute;
  top: -20px;
  left: 12px;
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  color: #e9d5ff;
  letter-spacing: 0.1em;
  z-index: 1;
}

/* Paper / Operative Card */
.paper {
  position: absolute;
  z-index: 2;
  bottom: 12%;
  left: 50%;
  transform: translate(-50%, 10%);
  width: 170px;
  height: 170px;
  background: var(--paper-1);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 12px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  --paper-scale: 1;
  pointer-events: none;
  opacity: 0.4;
}

.folder:hover .paper {
  opacity: 0.85;
}

.folder.open .paper {
  pointer-events: auto;
  opacity: 1;
}

/* Fanned layout when folder is open */
.folder.open .paper-1 {
  transform: translate(calc(-175% + var(--magnet-x, 0px)), calc(-90% + var(--magnet-y, 0px))) rotateZ(-16deg) scale(var(--paper-scale));
  background: #140d24;
  z-index: 3;
}
.folder.open .paper-2 {
  transform: translate(calc(-92% + var(--magnet-x, 0px)), calc(-110% + var(--magnet-y, 0px))) rotateZ(-8deg) scale(var(--paper-scale));
  background: #180f2b;
  z-index: 4;
}
.folder.open .paper-3 {
  transform: translate(calc(-50% + var(--magnet-x, 0px)), calc(-120% + var(--magnet-y, 0px))) rotateZ(0deg) scale(var(--paper-scale));
  background: #1d1234;
  z-index: 5;
}
.folder.open .paper-4 {
  transform: translate(calc(-8% + var(--magnet-x, 0px)), calc(-110% + var(--magnet-y, 0px))) rotateZ(8deg) scale(var(--paper-scale));
  background: #180f2b;
  z-index: 4;
}
.folder.open .paper-5 {
  transform: translate(calc(75% + var(--magnet-x, 0px)), calc(-90% + var(--magnet-y, 0px))) rotateZ(16deg) scale(var(--paper-scale));
  background: #140d24;
  z-index: 3;
}

/* Paper Hover States */
.folder.open .paper:hover {
  --paper-scale: 1.18;
  z-index: 30 !important;
  border-color: #c084fc;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(168, 85, 247, 0.6);
  background: #231640 !important;
}

/* Metallic Paper Clip */
.paper-clip {
  position: absolute;
  top: -8px;
  right: 18px;
  width: 10px;
  height: 22px;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
  background: transparent;
}

.paper-top-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.op-code {
  font-family: monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: #a855f7;
}

.op-badge-pill {
  font-family: var(--font-head);
  font-size: 0.55rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
}

.op-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7928ca, #3b0764);
  border: 2px solid rgba(192, 132, 252, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 8px;
  box-shadow: 0 0 12px rgba(121, 40, 202, 0.4);
}

.paper .team-name {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
  white-space: nowrap;
}

.paper .team-role {
  font-size: 0.72rem;
  color: #c084fc;
  min-height: 1.7em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  white-space: nowrap;
}

/* Front Covers */
.folder__front {
  position: absolute;
  z-index: 10;
  width: 100%;
  height: 100%;
  background: var(--folder-color);
  border-radius: 5px 18px 18px 18px;
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.folder__front.right {
  z-index: 11;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 60%);
  pointer-events: none;
}

.folder.open .folder__front {
  transform: skew(15deg) scaleY(0.5);
  filter: brightness(0.8);
}

.folder.open .right {
  transform: skew(-15deg) scaleY(0.5);
}

.folder-front-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.folder-icon-svg {
  color: #ffffff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.stamp-title {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ffffff;
}

.stamp-subtitle {
  font-size: 0.58rem;
  font-family: monospace;
  color: #e9d5ff;
  letter-spacing: 0.08em;
}

/* =============================================
   RESPONSIVE — TABLET & MOBILE
   ============================================= */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-terminal-panel {
    order: 2;
  }
  .hero-content {
    order: 1;
  }
  section { padding: 70px 24px; }
  .folder-scale-wrapper { transform: scale(0.95); }
}

@media (max-width: 768px) {
  .header-inner { padding: 12px 20px; }
  section { padding: 50px 20px; }
  .section-title { font-size: clamp(2rem, 7vw, 2.7rem); margin-bottom: 28px; }
  .section-subtitle { margin-top: -16px; margin-bottom: 32px; }
  .hero-title { font-size: clamp(2.2rem, 8vw, 3.2rem); }
  .hero-stats { flex-direction: column; }
  .hero-stat { width: 100%; }

  .about-cards { grid-template-columns: 1fr; }
  .card-content { padding: 24px 20px; }
  .events-grid { grid-template-columns: 1fr; }
  .event-card-inner { padding: 24px 20px; }
  
  .contact-inner { grid-template-columns: 1fr; }
  .contact-left { border-right: none; border-bottom: 1px solid var(--border-glow); padding: 28px 20px; }
  .contact-form { padding: 28px 20px; }

  .folder-scale-wrapper { transform: scale(0.72); }
  .team-folder-container { min-height: 420px; }

  .terminal-body { height: 230px; font-size: 0.78rem; }
  #toast { right: 16px; left: 16px; bottom: 20px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-cta-pill { width: 100%; justify-content: center; }
  .submit-btn { width: 100%; }
}

/* Touch-friendly tap targets */
a, button, input, textarea, .social-btn, .submit-btn, .modal-close {
  touch-action: manipulation;
}

/* Accessibility — reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
