:root {
  /* Industrial Palette */
  --civic-neon: #ccff00;
  /* Safety Green/Yellow */
  --civic-status-green: #00cc00;
  /* Darker status green */
  --civic-purple: #92278e;
  /* Magenta Purple */
  --civic-concrete: #1a1a1a;
  /* Dark Concrete */
  --civic-steel: #333333;
  /* Dark Steel */
  --civic-silver: #888888;
  /* Muted Text */
  --civic-white: #e0e0e0;
  /* Off-white */
  --civic-black: #000000;
  /* Pure Black */


  --bg-main: #0a0a0a;
  /* Deep Black/Grey */

  /* Nav Width */
  --nav-width: 80px;

  --gutter: clamp(2rem, 5vw, 4rem);

  /* Fonts */
  --font-head: 'Eurostile Extended Bold', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'JetBrains Mono', monospace;

  /* Global Text */
  --text-main: var(--civic-white);
}

/* Font Declarations linking to local files */
@font-face {
  font-family: 'Eurostile Extended Bold';
  src: url('../fonts/EurostileExtended-Black.woff2') format('woff2'),
    local('Eurostile Extended Bold');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'Eurostile Normal';
  src: url('../fonts/EurostileRegular.woff2') format('woff2'),
    url('../fonts/EuroStyle-Normal.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-main);
  background-color: var(--bg-main);

  /* Offset content by nav width on desktop */
  padding-left: var(--nav-width);

  /* Ensure scroll is never locked by JS libraries */
  overflow-y: auto !important;
  height: auto !important;
  /* Blueprint Grid */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  background-attachment: fixed;
  background-position: -1px 0;
}

/* Schematic / CAD Overlay */
.schematic-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.grid-crosshair {
  position: absolute;
  width: 20px;
  height: 20px;
}

.grid-crosshair::before,
.grid-crosshair::after {
  content: '';
  position: absolute;
  background: var(--civic-silver);
}

.grid-crosshair::before {
  width: 100%;
  height: 1px;
  top: 50%;
}

.grid-crosshair::after {
  width: 1px;
  height: 100%;
  left: 50%;
}

.tl {
  top: 40px;
  left: calc(var(--nav-width) + 40px);
}

.tr {
  top: 40px;
  right: 40px;
}

.bl {
  bottom: 40px;
  left: calc(var(--nav-width) + 40px);
}

.br {
  bottom: 40px;
  right: 40px;
}

.schematic-line {
  position: absolute;
  left: 120px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--civic-steel);
  opacity: 0.5;
}

/* Custom Cursor */
body {
  cursor: none;
  /* Hide default cursor */
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  mix-blend-mode: exclusion;
}

.custom-cursor::before,
.custom-cursor::after {
  content: '';
  position: absolute;
  background: var(--civic-purple);
}

.custom-cursor::before {
  top: 9px;
  left: 0;
  width: 100%;
  height: 2px;
}

.custom-cursor::after {
  left: 9px;
  top: 0;
  height: 100%;
  width: 2px;
}

.custom-cursor.active {
  transform: translate(-50%, -50%) scale(2) rotate(45deg);
  background: rgba(146, 39, 142, 0.1);
  border: 1px solid var(--civic-purple);
  border-radius: 50%;
}

.custom-cursor.active::before,
.custom-cursor.active::after {
  background: var(--civic-white);
}

.site-header {
  padding: var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
}

.main-logo {
  width: 80px;
  height: auto;
  display: block;
}

.minimal-link {
  display: inline-block;
  width: fit-content;
  color: var(--text-main);
  text-decoration: none;
  text-transform: uppercase;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.05em;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.minimal-link:hover {
  border-color: var(--civic-neon);
}

/* HUD NAVIGATION */
.hud-nav {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--nav-width);
  /* Collapsed state */
  background: rgba(10, 10, 10, 0.9);
  border-right: 1px solid var(--civic-purple);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 0;
  /* Reduced vertical padding */
  z-index: 1000;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.hud-nav:hover {
  width: 320px;
  /* Expanded state */
  border-right-color: var(--civic-purple);
  background: rgba(10, 10, 10, 0.95);
}

.hud-logo {
  flex: 0 0 auto;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0;
  padding: 0;
  overflow: hidden;
  transition: gap 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hud-nav:hover .hud-logo {
  gap: 0;
  padding: 0.5rem 1rem;
}

.hud-logo-icon {
  width: 42px;
  height: auto;
  flex-shrink: 0;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s ease;
}

.hud-logo-text {
  width: 0;
  max-height: 62px;
  opacity: 0;
  flex-shrink: 0;
  filter: invert(1);
  /* White on dark background */
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  overflow: hidden;
}

.hud-nav:hover .hud-logo-icon {
  width: 64px;
}

.hud-nav:hover .hud-logo-text {
  width: 220px;
  opacity: 1;
  margin-left: -2.5rem;
  /* Pull text tight against circuit icon */
}

.hud-nav-scroll-wrapper {
  flex: 1 1 auto;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  /* Required for flex child scrolling */
}

.hud-links {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  padding: 1rem 0;
  gap: 1rem;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  padding: 2rem 0;
  overscroll-behavior: contain;
  /* Mask for elegant fade-out on overflow - softened for small screens */
  mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.hud-links>.hud-link:first-child,
.hud-links>.hud-dropdown:first-child {
  margin-top: 0;
}

.hud-links>.hud-link:last-child {
  margin-bottom: 2rem;
}

.hud-links::-webkit-scrollbar {
  display: none;
}

.hud-link {
  color: var(--civic-silver);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;

  /* Vertical Text Mode (Default) */
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-transform: uppercase;

  padding: 0.5rem 0;
  /* Minimize fixed padding, let space-evenly handle gaps */
  width: 100%;
  /* Full width of the bar */

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;
  letter-spacing: 0.15em;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.hud-nav:hover .hud-link {
  writing-mode: horizontal-tb;
  transform: rotate(0);
  justify-content: flex-start;
  padding: 1rem 2rem;
  color: var(--civic-white);
  border-left: 2px solid transparent;
}

.hud-link:hover {
  color: var(--civic-purple);
  background: linear-gradient(90deg, rgba(146, 39, 142, 0.05), transparent);
}

.hud-nav:hover .hud-link:hover {
  border-left-color: var(--civic-purple);
  padding-left: 2.5rem;
  /* Slide effect */
}

/* Dropdown Styles */
.hud-dropdown {
  width: 100%;
}

.hud-dropdown .dropdown-trigger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0;
  width: 100%;
}

.hud-dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  display: flex;
  flex-direction: column;
  background: rgba(146, 39, 142, 0.05);
}

.hud-nav:hover .hud-dropdown:hover .hud-dropdown-content {
  max-height: 200px;
  opacity: 1;
  padding: 0.5rem 0;
}

.hud-sublink {
  color: var(--civic-silver);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.5rem 2rem 0.5rem 3rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  letter-spacing: 0.1em;
}

.hud-sublink:hover {
  color: var(--civic-neon);
  background: rgba(204, 255, 0, 0.05);
  padding-left: 3.5rem;
}

/* Scroll Indicators */
.scroll-indicator {
  width: 20px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
}

.scroll-indicator::after {
  content: '';
  width: 10px;
  height: 10px;
  border-left: 2px solid var(--civic-silver);
  border-top: 2px solid var(--civic-silver);
}

.scroll-indicator.up {
  top: 0.5rem;
}

.scroll-indicator.up::after {
  transform: rotate(45deg);
}

.scroll-indicator.down {
  bottom: 1.5rem;
}

.scroll-indicator.down::after {
  transform: rotate(225deg);
}

/* Restrict HUD indicators to expanded state */
.hud-nav .scroll-indicator {
  opacity: 0 !important;
  /* Force hide when collapsed */
}

.hud-nav:hover .scroll-indicator.visible {
  opacity: 1 !important;
  /* Show only if JS marked as visible and HUD is expanded */
}

.scroll-indicator.visible {
  opacity: 1;
  animation: scroll-pulse 1.5s infinite ease-in-out;
}

@keyframes scroll-pulse {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.4;
  }

  50% {
    transform: translateX(-50%) translateY(5px);
    opacity: 1;
  }
}

.scroll-indicator.up.visible {
  animation: scroll-pulse-reverse 1.5s infinite ease-in-out;
}

@keyframes scroll-pulse-reverse {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.4;
  }

  50% {
    transform: translateX(-50%) translateY(-5px);
    opacity: 1;
  }
}

/* Mobile Menu Scroll Indicators */
.mobile-menu-overlay .scroll-indicator {
  left: 50%;
  transform: translateX(-50%);
}

.mobile-menu-overlay .scroll-indicator.up {
  top: 80px;
}

.mobile-menu-overlay .scroll-indicator.down {
  bottom: 80px;
}

/* HUD CTA container adjustments for indicators */
.hud-cta {
  position: relative;
}

.hud-cta .neon-btn {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  color: var(--civic-white);
  background: var(--civic-purple);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  text-transform: uppercase;
  clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
  transition: all 0.3s ease;
  margin-bottom: 3rem;
}

.hud-nav:hover .hud-cta .neon-btn {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.hud-cta .neon-btn:hover {
  background: var(--civic-white);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* Status Indicator */
.hud-status {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--civic-silver);
  gap: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Vertical by default */
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.1em;
  padding: 1rem 0;
}

.hud-nav:hover .hud-status {
  writing-mode: horizontal-tb;
  transform: rotate(0);
  justify-content: flex-start;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: auto;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--civic-status-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--civic-neon);
  animation: pulse-dot 3s infinite;
}

@keyframes pulse-dot {
  0% {
    opacity: 0.3;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 12px var(--civic-neon);
  }

  100% {
    opacity: 0.3;
    transform: scale(0.9);
  }
}

/* Mobile Dropdown styles */
.mobile-nav-dropdown {
  width: 100%;
  border-bottom: 1px solid rgba(146, 39, 142, 0.2);
}

.mobile-nav-dropdown .dropdown-trigger {
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 1.5rem;
}

.mobile-nav-dropdown .dropdown-trigger::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--civic-purple);
  transition: transform 0.3s ease;
}

.mobile-nav-dropdown.active .dropdown-trigger::after {
  content: '-';
  transform: rotate(180deg);
}

.mobile-dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  display: flex;
  flex-direction: column;
  padding-left: 1.5rem;
}

.mobile-nav-dropdown.active .mobile-dropdown-content {
  max-height: 300px;
  opacity: 1;
  padding-bottom: 1.5rem;
  padding-top: 0.5rem;
}

.mobile-sublink {
  color: var(--civic-silver);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.75rem 0;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}

.mobile-sublink:hover {
  color: var(--civic-neon);
}

/* MASSIVE HERO */
.hero-massive {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  /* overflow: hidden; Removed to ensure scroll works */
  padding-left: 0;
}

/* Base adjustment for mobile */
@media (max-width: 768px) {
  body {
    padding-left: 0;
  }

  .hud-nav {
    width: 100%;
    height: 60px;
    bottom: auto;
    flex-direction: row;
    padding: 0 1rem;
    border-right: none;
    border-bottom: 1px solid var(--civic-purple);
  }

  .hud-nav:hover {
    width: 100%;
    height: auto;
    flex-direction: column;
    padding-bottom: 2rem;
  }

  .hud-links {
    display: none;
  }

  .hud-nav:hover .hud-links {
    display: flex;
  }

  .hud-link {
    writing-mode: horizontal-tb;
    transform: none;
  }

  .hero-massive {
    padding-left: 0;
    padding-top: 60px;
  }

  .tl,
  .bl {
    left: 40px;
  }
}

.hero-glitch-layer {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--civic-silver);
  /* Make visible */
  letter-spacing: 0.2rem;
  margin-bottom: 1rem;
}

.hero-title {
  display: flex;
  flex-direction: row;
  /* Changed to row for side-by-side */
  align-items: center;
  /* Center align vertically */
  gap: 1rem;
  /* Space between year and logo */
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 0.85;
  text-transform: uppercase;
  color: var(--civic-white);
  z-index: 10;
}

.hero-year {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--civic-purple);
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: 0.2em;
  font-weight: 900;
  line-height: 1;
}

.hero-logo {
  width: 50vw;
  max-width: 1400px;
  /* Massive size */
  height: auto;
  display: block;
  /* FIX: Invert logo to white for dark mode */
  filter: invert(1);
}

.hero-meta {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: right;
  z-index: 10;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-family: var(--font-head);
  color: var(--civic-neon);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.meta-val {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--civic-purple);
  color: var(--civic-white);
  padding: 0.2rem 0.5rem;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    /* Mobile menu to be implemented if needed */
  }
}

/* SECTIONS COMMON */
.sc-section {
  padding: 8rem 0;
  position: relative;
  z-index: 10;
  /* Alternating/transparent backgrounds handled by global grid */
}

/* Force dark theme text for cards */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--civic-white);
  margin-bottom: 4rem;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.02em;
  /* Text outline effect for some headers */
  -webkit-text-stroke: 1px var(--civic-white);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  /* Lift off bg */
}

/* Neon accent for specific words if needed */
.title-accent {
  color: var(--civic-neon);
}

/* MISSION */
.mission-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
  background: var(--civic-white);
  padding: 3rem;
  border: 2px solid var(--civic-black);
  box-shadow: 10px 10px 0 var(--civic-neon);
}

.mission-body {
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--civic-black);
  font-weight: 500;
}

.photo-stack {
  position: relative;
  height: 400px;
  width: 100%;
}

.stack-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 80%;
  height: 90%;
  background: var(--civic-black);
  border: 2px solid var(--civic-purple);
  border-radius: 8px;
}

.card-1 {
  transform: rotate(-5deg);
  z-index: 1;
  opacity: 0.5;
  background: #333;
}

.card-2 {
  transform: rotate(2deg);
  z-index: 2;
  opacity: 0.8;
  background: #555;
}

.card-3 {
  transform: rotate(8deg);
  z-index: 3;
  background: #999;
}

/* TRACKS */
/* TRACKS - Asymmetric Industrial Grid */
/* TRACKS - Asymmetric Industrial Grid */
.tracks-grid {
  display: flex;
  gap: 0;
  align-items: flex-start;
}

.tracks-col-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-right: 1.5rem;
}

.tracks-col-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-left: 1.5rem;
}

/* Weave Pattern for Desktop */
@media (min-width: 901px) {

  /* Row 1, Left (Sustainability) */
  .tracks-col-left>.track-card:nth-child(1) {
    width: 120%;
    z-index: 2;
  }

  /* Row 1, Right (Education) */
  .tracks-col-right>.track-card:nth-child(1) {
    width: 80%;
    margin-left: auto;
  }

  /* Row 2, Left (Civic Tech) */
  .tracks-col-left>.track-card:nth-child(2) {
    width: 80%;
  }

  /* Row 2, Right (Healthcare) */
  .tracks-col-right>.track-card:nth-child(2) {
    width: 120%;
    margin-left: -20%;
    z-index: 2;
    transition: height 0.3s ease, opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    /* Exclude margin-top for instant sync */
  }
}

.track-card {
  background: rgba(20, 20, 20, 0.9);
  /* Slightly lighter/more opaque */
  border: 1px solid #444;
  /* More visible border */
  padding: 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  /* Lift it off the background */
  width: 100%;
}

.track-card:hover {
  border-color: var(--civic-purple);
  box-shadow: 0 0 20px rgba(146, 39, 142, 0.1);
  transform: translateY(-2px);
}

.track-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--civic-purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.track-card:hover::before {
  transform: scaleX(1);
}

.track-card.active {
  background: var(--civic-concrete);
  border-color: var(--civic-purple);
}

.track-name {
  font-family: var(--font-head);
  font-size: 2rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--civic-white);
  letter-spacing: -0.05em;
}

.track-desc {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--civic-white);
  /* Brighter */
  text-transform: uppercase;
  letter-spacing: 0.1em;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.track-details {
  height: 0;
  overflow: hidden;
  opacity: 0;
}

.track-details p {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #ccc;
  /* Lighter silver */
  line-height: 1.6;
}

.track-expand-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--civic-purple);
  font-weight: 700;
  border-bottom: 1px dashed var(--civic-purple);
  padding-bottom: 2px;
}

/* Track Focus Area Tags */
.track-tags {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.track-tag-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--civic-silver);
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.track-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.track-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--civic-white);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--civic-steel);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
  cursor: default;
}

.track-tag:hover {
  border-color: var(--civic-purple);
  background: rgba(146, 39, 142, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

@media (max-width: 900px) {
  .tracks-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .track-card:nth-child(n) {
    width: 100% !important;
    margin: 0 !important;
  }

  /* Old column classes clean up (can be removed if no longer used elsewhere) */
  .tracks-col-left,
  .tracks-col-right {
    display: none;
  }
}

.track-name {
  font-family: var(--font-head);
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--civic-neon);
}

.track-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* GALLERY (MARQUEE) */
.gallery-section {
  padding: 4rem 0;
  overflow: hidden;
  background: var(--civic-black);
}

.marquee-wrapper {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marquee 60s linear infinite;
}

.marquee-content {
  display: flex;
  gap: 2rem;
}

.gallery-item {
  width: 300px;
  height: 200px;
  background: #333;
  border-radius: 4px;
  flex-shrink: 0;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* SPONSORS - Logistics Partners */
.sponsors-section {
  background: var(--bg-main);
  border-top: 1px solid var(--civic-steel);
}

.sponsor-tier-title {
  font-family: var(--font-mono);
  color: var(--civic-purple);
  font-size: 0.9rem;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 1.5rem;
  margin-top: 3rem;
}

.sponsors-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}


.sponsor-logo {
  position: relative;
  background: var(--civic-steel);
  color: #555;
  font-family: var(--font-head);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  /* min-width and min-height removed to allow flex sizing based on logo */
  width: 200px;
  height: 120px;
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}

.sponsor-logo img {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  transform: scale(var(--scale, 1));
  transition: transform 0.2s;
}

.sponsor-logo.invert-dark img {
  filter: invert(1) brightness(200%);
}

.sponsor-logo:hover {
  background: rgba(146, 39, 142, 0.1);
  box-shadow: 0 0 15px rgba(146, 39, 142, 0.15);
  border-color: var(--civic-purple);
  border-radius: 6px;
  z-index: 10;
}

.sponsor-logo::after {
  content: attr(data-name);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(40, 10, 38, 0.92);
  border-radius: 6px;
  color: var(--civic-white);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 0.5rem;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.sponsor-logo:hover::after {
  opacity: 1;
}

.sponsor-logo:hover img {
  filter: none;
}

.sponsor-logo.invert-dark:hover img {
  filter: none;
}

/* SCHEDULE - Detailed Agenda */
.schedule-section {
  background: var(--civic-concrete);
  padding: 6rem 0;
  border-top: 1px solid var(--civic-steel);
}

/* Schedule Tabs - Terminal Segmented Control */
.schedule-tabs {
  display: flex;
  justify-content: center;
  margin: 0 auto 5rem;
  margin-top: 2.5rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--civic-steel);
  padding: 0px;
  width: fit-content;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--civic-white);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.6rem 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
  transition: all 0.2s;

}

.tab-btn:hover {
  opacity: 1;
  color: var(--civic-silver);
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  opacity: 1;
  background: var(--civic-white);
  color: #000;
  font-weight: 800;
}


/* Day Containers */
.schedule-day {
  display: none;
  animation: fadeIn 0.5s ease;
}

.schedule-day.active {
  display: block;
}

/* --- COMPACT TERMINAL LIST (Final Schedule) --- */
/* Schedule Terminal Window */
.schedule-window {
  border: 1px solid var(--civic-steel);
  max-width: 1000px;
  margin: 0 auto;
  /* Cool, textured background */
  background:
    linear-gradient(rgba(10, 10, 10, 0.9), rgba(5, 5, 5, 0.95)),
    repeating-linear-gradient(0deg,
      transparent,
      transparent 2px,
      rgba(0, 255, 0, 0.02) 2px,
      rgba(0, 255, 0, 0.02) 4px);
  background-size: 100% 100%, 100% 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}


.schedule-content {
  padding: 2rem;
}


.compact-log {
  max-width: 100%;
  margin: 0 auto;
  font-family: 'JetBrains Mono', monospace;
  background: transparent;
  padding: 0;
  border: none;
  position: relative;
}

.log-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.log-row.highlight {
  /* Redesigned to be a "Block" highlights instead of a line */
  background: rgba(146, 39, 142, 0.15);
  border-left: 3px solid var(--civic-purple);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 4px 4px 0;
  /* Clean right edge */
  margin-bottom: 2px;
  /* Slight spacing to separate blocks */
}



/* Consolidated duplicate button styles removed */

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Day Containers */
.schedule-day {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.schedule-day.active {
  display: block;
  opacity: 1;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Timeline Slots */
.timeline-slot {
  display: flex;
  gap: 3rem;
  padding: 2rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  position: relative;
}

.timeline-slot:last-child {
  border-bottom: none;
}

.slot-time {
  flex: 0 0 100px;
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--civic-white);
  text-align: right;
  line-height: 1;
}

.slot-time .ampm {
  display: block;
  font-size: 0.9rem;
  color: var(--civic-silver);
  font-family: var(--font-mono);
  margin-top: 0.2rem;
}

.slot-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Vertical line connector */
.timeline-slot::before {
  content: '';
  position: absolute;
  left: 125px;
  /* Adjust based on gap and time width */
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--civic-steel);
  display: none;
  /* Optional: Enable if specific design requires line */
}

/* Grid for concurrent workshops */
.slot-content.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Schedule Cards */
.schedule-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--civic-steel);
  border-left: 4px solid var(--civic-silver);
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.schedule-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Card Types Colors */
.event-general {
  border-left-color: var(--civic-silver);
}

.event-workshop {
  border-left-color: var(--civic-neon);
}

.event-milestone {
  border-left-color: var(--civic-purple);
}

.card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--civic-silver);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-type {
  color: var(--civic-purple);
  font-weight: 700;
}

.event-loc {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.event-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--civic-white);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.event-desc {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.5;
}

/* Room Tags for grouped events */
.room-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.room-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--civic-neon);
  border: 1px solid var(--civic-neon);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .schedule-tabs {
    flex-direction: column;
    width: 100%;
    margin: 0 auto 2rem;
  }

  .timeline-slot {
    flex-direction: column;
    gap: 1rem;
    padding-left: 1rem;
    border-left: 2px solid var(--civic-steel);
    margin-left: 1rem;
  }

  .slot-time {
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
  }

  .slot-time::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 2.2rem;
    width: 10px;
    height: 10px;
    background: var(--civic-purple);
    border-radius: 50%;
  }

  .slot-content.grid-layout {
    grid-template-columns: 1fr;
  }
}

/* FAQ - Console Style */
.faq-console {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item details {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--civic-steel);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.faq-item details:hover {
  border-color: var(--civic-silver);
}

.faq-item details[open] {
  border-color: var(--civic-purple);
  background: rgba(204, 255, 0, 0.05);
}

summary {
  list-style: none;
  /* Hide default triangle */
  font-family: var(--font-mono);
  color: var(--civic-white);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

summary::-webkit-details-marker {
  display: none;
}

.prompt {
  color: var(--civic-purple);
  font-weight: 700;
}

.console-response {
  padding-top: 1rem;
  padding-left: 2rem;
  font-family: var(--font-mono);
  color: var(--civic-silver);
  font-size: 0.95rem;
  line-height: 1.5;
  border-left: 1px solid var(--civic-steel);
  margin-left: 7px;
  margin-top: 0.5rem;
}

/* FOOTER - System Bar */
.site-footer {
  background: var(--civic-concrete);
  border-top: none;
  padding: 0;
}

.system-footer-bar {
  display: flex;
  background: #000;
  padding: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.sys-col {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sys-label {
  color: #444;
}

.sys-val {
  color: var(--civic-silver);
}

.sys-link {
  color: var(--civic-silver);
  text-decoration: none;
  transition: color 0.2s;
}

.sys-link:hover {
  color: var(--civic-purple);
}

.footer-links-inline {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.link-group {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.sep {
  color: #333;
}

.footer-spark-logo {
  display: inline-block;
}

.footer-spark-logo img {
  height: 55px;
  width: auto;
  transition: opacity 0.3s;
}

.footer-duan-logo {
  display: inline-block;
}

.footer-duan-logo img {
  height: 32px;
  width: auto;
  transition: opacity 0.3s;
}

.footer-spark-logo:hover img,
.footer-duan-logo:hover img {
  opacity: 0.7;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.75rem;
}

.footer-legal {
  margin-top: 1.5rem;
  flex: 1 1 100%;
}

.legal-stack {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0.4rem;
  width: 100%;
}

.footer-legal p {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--civic-steel);
  letter-spacing: 0.05em;
  margin: 0;
  line-height: 1.7;
}

.sys-status {
  color: var(--civic-green);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sys-status::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--civic-green);
  border-radius: 50%;
  box-shadow: 0 0 5px var(--civic-green);
}

@media (max-width: 600px) {
  .system-footer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}



/* PRIZES REDESIGN (Tech-HUD) */
.prizes-podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 2rem;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.prize-plate {
  position: relative;
  background: rgba(18, 18, 18, 0.8);
  border: 1px solid var(--civic-neon);
  padding: 2rem;
  width: 280px;
  clip-path: polygon(20px 0, 100% 0,
      100% calc(100% - 20px), calc(100% - 20px) 100%,
      0 100%, 0 20px);
  backdrop-filter: blur(5px);
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Scanline Effect */
.prize-plate::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(transparent 0px,
      transparent 2px,
      rgba(146, 39, 142, 0.1) 3px);
  pointer-events: none;
  z-index: 0;
}

.prize-plate:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 30px rgba(146, 39, 142, 0.3);
  background: rgba(146, 39, 142, 0.15);
}

.plate-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.plate-rank {
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.1);
  line-height: 1;
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}

.plate-content:hover .plate-rank {
  color: rgba(146, 39, 142, 0.3);
}

/* MISSION - Terminal Style */
.mission-terminal {
  background: var(--civic-concrete);
  border: 1px solid var(--civic-steel);
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 20px 20px 0 rgba(0, 0, 0, 0.5);
}

.terminal-header {
  background: #2a2a2a;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--civic-steel);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.term-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #555;
}

.term-dot.danger {
  background: #ff5f56;
}

.term-dot.warning {
  background: #ffbd2e;
}

.term-dot.success {
  background: #27c93f;
}

.term-title {
  font-family: var(--font-mono);
  color: var(--civic-silver);
  font-size: 0.8rem;
  margin-left: 1rem;
}

.terminal-body {
  padding: 3rem;
  font-family: var(--font-mono);
}

.mission-text-line {
  color: var(--civic-purple);
  margin: 0;
  opacity: 0.8;
}

.mission-statement {
  font-family: var(--font-head);
  /* font-size: 2.5rem; Removed in favor of specific element sizing */
  color: var(--civic-white);
  line-height: 1.1;
  text-transform: uppercase;
  margin-top: 3rem;
}

.mission-title-highlight {
  display: block;
  font-size: 4rem;
  font-weight: 900;
  color: var(--civic-purple);
  margin-bottom: 0.2em;
  /* Spacing between title and body */
  letter-spacing: -0.02em;
}

.mission-body-text {
  display: block;
  font-size: 2rem;
  color: var(--civic-white);
  line-height: 1.2;
  max-width: 90%;
}

.mission-subtext {
  color: var(--civic-silver);
  font-size: 1.1rem;
  line-height: 1.5;
  max-width: 600px;
  margin-bottom: 1rem;
}

/* PRIZES - Bounty Board */
/* PRIZES - Bounty Board Style */
.prizes-section-group {
  margin-bottom: 4rem;
}

.prize-group-title {
  font-family: var(--font-head);
  color: var(--civic-silver);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--civic-steel);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.bounty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.track-prizes-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.track-prize-group {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--civic-steel);
  padding: 1.5rem;
  border-radius: 4px;
}

.track-prize-header {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--civic-steel);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Track Specific Colors for Headers */
.ecohack {
  color: var(--civic-green);
}

.justicehack {
  color: var(--civic-purple);
}

.eduhack {
  color: var(--civic-orange, #ff9f1c);
}

/* Fallback orange */
.cityhack {
  color: var(--civic-blue, #2ec4b6);
}

/* Fallback blue */

.bounty-card {
  background: var(--civic-concrete);
  border: 1px solid var(--civic-steel);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.2s;
  cursor: default;
  position: relative;
  min-height: 120px;
}

.bounty-card:hover {
  border-color: var(--civic-purple);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

.bounty-card.best-overall {
  border: 1px solid var(--civic-neon);
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.2);
}

.bounty-icon {
  font-size: 2.5rem;
  opacity: 0.8;
  transition: 0.2s;
}

.bounty-card:hover .bounty-icon {
  opacity: 1;
  transform: scale(1.1);
}

.bounty-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bounty-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--civic-white);
  line-height: 1.2;
}

.bounty-subtitle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--civic-neon);
  margin-top: 0.2rem;
}

.bounty-sponsor {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--civic-silver);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.bounty-card:hover .bounty-sponsor {
  opacity: 1;
  color: var(--civic-white);
}

/* Mobile Adjustments */
@media (max-width: 600px) {
  .track-prize-group {
    padding: 1rem;
  }
}



.tier-3 {
  order: 3;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Content Styling */
.prize-tier {
  font-family: var(--font-head);
  color: var(--civic-white);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2rem;
}

.tier-1 .prize-tier {
  color: var(--civic-purple);
  font-size: 1.5rem;
}

.prize-amount {
  font-family: var(--font-head);
  font-size: 2.5rem;
  color: var(--civic-white);
  margin: 0.5rem 0;
  text-shadow: 0 0 10px currentColor;
}

.tier-1 .prize-amount {
  font-size: 3.5rem;
  color: var(--civic-purple);
}

.prize-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Corners */
.plate-corner-tl {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--civic-white);
  border-left: 2px solid var(--civic-white);
}

.plate-corner-br {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  border-bottom: 2px solid var(--civic-white);
  border-right: 2px solid var(--civic-white);
}

.tier-1 .plate-corner-tl,
.tier-1 .plate-corner-br {
  border-color: var(--civic-purple);
}

/* Track Prizes Data Strip */
/* End of Prizes Legacy Removal */

/* SPONSORS */
.sponsors-section {
  text-align: center;
}

.sponsors-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.sponsor-tier-title {
  font-family: var(--font-head);
  color: var(--civic-white);
  text-transform: uppercase;
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.tier-arrows {
  color: var(--civic-purple);
}

.sponsor-tier-title::after {
  display: none;
}

.sponsors-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
}

.sponsor-logo {
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 700;
  border-radius: 8px;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.sponsor-logo:hover {
  background: rgba(146, 39, 142, 0.1);
  border-color: var(--civic-neon);
  color: var(--civic-neon);
  box-shadow: 0 0 15px rgba(146, 39, 142, 0.2);
}

/* Tier Sizing */
.tier-platinum .sponsor-logo {
  width: 300px;
  height: 120px;
  font-size: 2rem;
}

.tier-gold .sponsor-logo {
  width: 220px;
  height: 100px;
  font-size: 1.5rem;
}

.tier-silver .sponsor-logo {
  width: 160px;
  height: 80px;
  font-size: 1.2rem;
}

/* Update MENTORS to overlap */
/* MENTOR / JUDGE SYSTEM PANE */
.mentors-section {
  background: var(--bg-main);
  border-top: 1px solid var(--civic-steel);
  padding: 6rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.mentors-system-pane {
  width: 100%;
  max-width: 1000px;
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid var(--civic-steel);
  padding: 0;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(5px);
  transition: border-color 0.3s ease;
}

.sys-pane-header {
  background: rgba(0, 0, 0, 0.6);
  color: var(--civic-silver);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--civic-steel);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-content {
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.mentors-system-pane .section-title {
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--civic-white);
  margin-bottom: 0.5rem;
  text-shadow: none;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  -webkit-text-stroke: 1px var(--civic-white);
  background: none;
}

.role-desc {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--civic-silver);
  max-width: 750px;
  line-height: 1.6;
}

.sys-decor-line {
  width: 60px;
  height: 2px;
  background: var(--civic-neon);
  margin-bottom: 0.5rem;
}

.role-btn.neon-cta {
  background: var(--civic-purple);
  color: var(--civic-white) !important;
  font-family: var(--font-head);
  font-size: 1.1rem;
  padding: 0.9rem 1.8rem;
  border: none;
  border-radius: 0;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-decoration: none;
  clip-path: polygon(8% 0, 100% 0, 100% 70%, 92% 100%, 0 100%, 0 30%);
  transition: all 0.2s ease;
}

.role-btn.neon-cta:hover {
  background: var(--civic-white);
  color: var(--civic-concrete) !important;
  transform: translateY(-2px);
}





/* TERMINAL FAQ LAYOUT */
.term-split-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 3rem;
  align-items: start;
}

.term-sidebar {
  position: sticky;
  top: 100px;
}

.term-control-panel {
  border: 1px solid var(--civic-steel);
  background: rgba(0, 0, 0, 0.5);
  font-family: var(--font-mono);
}

.panel-header {
  background: var(--civic-steel);
  color: var(--civic-white);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.term-filters {
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.term-filter-btn {
  background: transparent;
  border: none;
  color: var(--civic-silver);
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 0.5rem 0;
  cursor: pointer;
  transition: all 0.2s;
}

.term-filter-btn:hover {
  color: var(--civic-white);
  padding-left: 5px;
}

.term-filter-btn.active {
  color: var(--civic-purple);
  font-weight: 700;
}

.term-filter-btn.active::before {
  content: '> ';
}

.panel-status {
  padding: 0.5rem 1rem;
  border-top: 1px solid var(--civic-steel);
  font-size: 0.7rem;
  color: var(--civic-silver);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blink {
  animation: blink 1s infinite;
  color: var(--civic-purple);
}

.term-content {
  border: 1px solid var(--civic-steel);
  background: #000;
  min-height: 500px;
  display: flex;
  flex-direction: column;
}

.console-header {
  padding: 0.5rem 1rem;
  color: var(--civic-silver);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border-bottom: 1px dashed var(--civic-steel);
}

.faq-console-list {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  font-family: var(--font-mono);
}

.faq-item details summary {
  list-style: none;
  cursor: pointer;
  color: var(--civic-white);
  font-weight: 700;
  padding: 0.5rem;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.faq-item details summary::-webkit-details-marker {
  display: none;
}

.faq-item details[open] summary {
  background: var(--civic-steel);
  color: var(--civic-purple);
}

.faq-item .prompt {
  color: var(--civic-neon);
  margin-right: 0.5rem;
}

.faq-comment {
  color: #666;
  font-style: italic;
  margin-left: 1rem;
  font-weight: 400;
  display: inline-block;
}

@media (max-width: 600px) {
  .faq-comment {
    display: block;
    margin-left: 0;
    margin-top: 0.2rem;
    font-size: 0.8rem;
  }
}

.console-response {
  padding: 1rem;
  border-left: 1px solid var(--civic-steel);
  margin-left: 1rem;
  color: var(--civic-silver);
  font-size: 0.9rem;
  line-height: 1.5;
}

.console-response p {
  margin: 0;
}

@media (max-width: 900px) {

  /* Single-window tabbed layout on mobile */
  .term-split-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .term-sidebar {
    position: static;
    margin-bottom: 0;
  }

  /* Hide control panel chrome — just keep the filter buttons */
  .term-control-panel {
    border: none;
    background: none;
  }

  .panel-header,
  .panel-status {
    display: none;
  }

  /* Wrapped tab grid: 3 on top, 2 on bottom */
  .term-filters {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.5rem 0;
    overflow: hidden;
  }

  .term-filter-btn {
    white-space: nowrap;
    padding: 0.5rem 0.2rem;
    font-size: 0.65rem;
    border: 1px solid var(--civic-steel);
    border-radius: 2px;
    flex: 1 1 28%;
    max-width: 32%;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .term-filter-btn.active {
    background: var(--civic-purple);
    color: var(--civic-white);
    border-color: var(--civic-purple);
  }

  .term-filter-btn:hover {
    padding-left: 0.2rem !important;
  }

  .term-filter-btn.active::before {
    content: none;
  }

  /* Content merges visually with filters */
  .term-content {
    border-top: 1px solid var(--civic-steel);
    border-left: none;
    border-right: none;
    border-bottom: none;
    min-height: auto;
  }

  .console-header {
    display: none;
  }
}

/* FOOTER */
.site-footer {
  background: var(--civic-black);
  color: var(--text-muted);
  padding: 4rem var(--gutter) 2rem;
  border-top: 1px solid #333;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo img {
  height: 40px;
  width: auto;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.footer-logo img:hover {
  opacity: 1;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--civic-neon);
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  color: var(--civic-purple);
  font-weight: 700;
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  border-top: 1px solid #222;
  padding-top: 2rem;
}

.footer-bottom a {
  color: var(--civic-neon);
  text-decoration: none;
}

@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* --- RESPONSIVENESS OVERRIDES --- */
/* Global Constraints for Mobile to prevent overflow */
@media (max-width: 768px) {

  html,
  body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }
}

/* 1. Mobile Navigation (Global Toggle) */
.mobile-nav-toggle {
  display: none;
  /* Hidden on Desktop */
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  /* MOVED TO LEFT to avoid MLH Banner */
  right: auto;
  z-index: 10001;
  /* Above everything */
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid var(--civic-purple);
  padding: 0.5rem;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.mobile-nav-toggle .bar {
  width: 24px;
  height: 2px;
  background: var(--civic-white);
  transition: all 0.3s ease;
}

.mobile-nav-toggle.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 5, 0.97);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(15px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Scanline overlay */
.mobile-menu-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 2px,
      rgba(204, 255, 0, 0.015) 2px,
      rgba(204, 255, 0, 0.015) 4px);
  pointer-events: none;
  z-index: 1;
}

/* Animated corner accents - REMOVED border */
.mobile-menu-overlay::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 70%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s ease 0.2s;
}

.mobile-menu-overlay.active::after {
  opacity: 1;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* System boot header inside menu */
.mobile-menu-header {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--civic-silver);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s ease;
  z-index: 2;
  text-align: center;
}

.mobile-menu-overlay.active .mobile-menu-header {
  opacity: 0.6;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: left;
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 400px;
}

.mobile-link {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--civic-white);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.8rem 0;
  padding-left: 1rem;
  word-wrap: break-word;
  white-space: normal;
  /* Force wrap if necessary */
  overflow-wrap: break-word;
  border-left: 3px solid transparent;
  border-bottom: 1px solid rgba(51, 51, 51, 0.4);
  position: relative;
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Stagger animation delays */
.mobile-menu-overlay.active .mobile-link:nth-child(1) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.1s;
}

.mobile-menu-overlay.active .mobile-link:nth-child(2) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.17s;
}

.mobile-menu-overlay.active .mobile-link:nth-child(3) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.24s;
}

.mobile-menu-overlay.active .mobile-link:nth-child(4) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.31s;
}

.mobile-menu-overlay.active .mobile-link:nth-child(5) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.38s;
}

.mobile-menu-overlay.active .mobile-link:nth-child(6) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.45s;
}

.mobile-menu-overlay.active .mobile-link:nth-child(7) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.52s;
}

.mobile-menu-overlay.active .mobile-link:nth-child(8) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.59s;
}

/* Link index numbers */
.mobile-link::before {
  content: attr(data-index);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--civic-steel);
  min-width: 18px;
  transition: color 0.3s;
}

.mobile-link:hover,
.mobile-link:active {
  color: var(--civic-neon);
  border-left-color: var(--civic-neon);
  background: rgba(204, 255, 0, 0.03);
}

.mobile-link:hover::before,
.mobile-link:active::before {
  color: var(--civic-neon);
}

/* Mobile menu CTA */
.mobile-menu-cta {
  margin-top: 2.5rem;
  z-index: 2;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s ease;
}

.mobile-menu-overlay.active .mobile-menu-cta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.55s;
}

.mobile-menu-cta .neon-btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.95rem;
  padding: 0.9rem 2.2rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--civic-white);
  background: var(--civic-purple);
  border: 2px solid var(--civic-purple);
  clip-path: polygon(8% 0, 100% 0, 100% 70%, 92% 100%, 0 100%, 0 30%);
  transition: all 0.3s ease;
}

.mobile-menu-cta .neon-btn:hover,
.mobile-menu-cta .neon-btn:active {
  background: var(--civic-neon);
  border-color: var(--civic-neon);
  color: var(--civic-black);
  box-shadow: 0 0 20px rgba(204, 255, 0, 0.3);
}

/* System status footer in menu */
.mobile-menu-footer {
  position: absolute;
  bottom: 2rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--civic-steel);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.mobile-menu-overlay.active .mobile-menu-footer {
  opacity: 0.4;
  transition-delay: 0.6s;
}

.mobile-menu-footer .status-dot-mobile {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--civic-neon);
  margin-right: 6px;
  animation: blink 2s infinite;
}

/* 2. TABLET & MOBILE HIDDEN HUD ( < 1024px ) */
@media (max-width: 1024px) {
  .hud-nav {
    display: none !important;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  body {
    padding-left: 0 !important;
    /* Remove nav offset */
  }
}

/* ===== TABLET BREAKPOINT (769px – 1024px) ===== */
@media (max-width: 1024px) and (min-width: 769px) {

  /* Scale down section spacing */
  .sc-section {
    padding: 5rem 0;
  }

  .section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
  }

  /* Hero — slightly smaller logo */
  .hero-logo {
    width: 65vw;
  }

  /* Tracks — drop the overlapping weave, go single-column */
  .tracks-grid {
    flex-direction: column;
    gap: 1.5rem;
  }

  .tracks-col-left,
  .tracks-col-right {
    width: 100%;
    padding: 0;
  }

  .tracks-col-left>.track-card:nth-child(n),
  .tracks-col-right>.track-card:nth-child(n) {
    width: 100% !important;
    margin: 0 !important;
    margin-left: 0 !important;
  }

  /* Gallery — smaller items */
  .gallery-item {
    width: 240px;
    height: 160px;
  }

  /* FAQ — single-window tabbed layout */
  .term-split-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .term-sidebar {
    position: static;
    margin-bottom: 0;
  }

  /* Sponsors — scale down boxes */
  .tier-platinum .sponsor-logo {
    width: 260px;
    height: 105px;
  }

  .tier-gold .sponsor-logo {
    width: 190px;
    height: 90px;
  }

  .tier-silver .sponsor-logo {
    width: 145px;
    height: 72px;
  }

  /* Mentors CTA */
  .card-content {
    padding: 3rem 2rem;
  }

  /* Mission terminal — remove heavy box-shadow */
  .mission-terminal {
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.3);
  }
}

/* 3. MOBILE SPECIFIC FIXES ( < 768px ) */
@media (max-width: 768px) {

  /* ===== GLOBAL ===== */
  .sc-section {
    padding: 3rem 0;
  }

  .container {
    padding: 0 1.25rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .section-title {
    font-size: 1.8rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
  }

  /* Disable custom cursor on touch devices */
  .custom-cursor {
    display: none !important;
  }

  body {
    cursor: auto;
  }

  /* ===== HERO ===== */
  .hero-massive {
    height: auto;
    min-height: auto;
    padding-bottom: 2rem;
  }

  .hero-container {
    padding: 0 1.25rem;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* "BOSTON UNIVERSITY" — secondary label, NOT the headline */
  .hero-glitch-layer {
    font-size: 0.65rem !important;
    letter-spacing: 0.3em !important;
    color: var(--civic-silver) !important;
    opacity: 0.6;
    margin-bottom: 1rem;
    order: -1;
  }

  .hero-title {
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
  }

  /* Logo = star of the show */
  .hero-logo {
    width: 80%;
    max-width: 280px;
    height: auto;
    object-fit: contain;
    order: 1;
  }

  .hero-year {
    writing-mode: horizontal-tb !important;
    transform: none !important;
    font-size: 1.8rem;
    margin-bottom: 0;
    margin-top: 0.5rem;
    letter-spacing: 0.15em;
    order: 2;
  }

  /* Meta: flows below hero, centered */
  .hero-meta {
    position: static;
    margin-top: 1.5rem;
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .meta-item {
    align-items: center;
    margin-bottom: 0;
  }

  .meta-label {
    font-size: 0.7rem;
  }

  .meta-val {
    font-size: 1rem;
    padding: 0.15rem 0.4rem;
  }

  #mlh-trust-badge {
    width: 12% !important;
    min-width: 50px !important;
    max-width: 65px !important;
    right: 1rem !important;
    top: 0 !important;
  }

  /* ===== MISSION ===== */
  .mission-terminal {
    width: 100%;
    margin: 0;
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.5);
  }

  .terminal-body {
    padding: 1.5rem;
  }

  .terminal-body br {
    display: none;
  }

  .mission-text-line {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .mission-body-text {
    font-size: 1.1rem;
    max-width: 100%;
    margin-bottom: 0.75rem;
  }

  .mission-subtext {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
  }

  .mission-photo-stack {
    display: none;
  }

  .mission-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  /* ===== TRACKS (CRITICAL FIX) ===== */
  .tracks-grid {
    flex-direction: column;
    gap: 1rem;
  }

  /* OVERRIDE the stale rule at 900px that hides these */
  .tracks-col-left,
  .tracks-col-right {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    padding: 0;
    gap: 1rem;
  }

  .track-card {
    width: 100% !important;
    margin: 0 !important;
  }

  .track-name {
    font-size: 1.2rem;
  }

  .track-desc {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }

  /* ===== GALLERY / CAROUSEL ===== */
  .gallery-section {
    padding: 2rem 0;
    overflow: hidden;
  }

  .marquee-wrapper {
    display: flex;
    gap: 0;
    width: 100%;
    animation: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .marquee-wrapper::-webkit-scrollbar {
    display: none;
  }

  /* Hide the duplicate content — not needed for JS scroll */
  .marquee-content#marquee-2 {
    display: none;
  }

  .marquee-content {
    gap: 1rem;
    padding: 0 1rem;
  }

  .gallery-item {
    width: 280px;
    height: 185px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #222;
    scroll-snap-align: center;
  }

  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* ===== SPONSORS ===== */
  .sponsors-section .section-title {
    font-size: 1.6rem;
    letter-spacing: -0.03em;
    white-space: nowrap;
  }

  .sponsors-grid {
    gap: 1.5rem;
    justify-content: center;
  }

  .tier-platinum .sponsor-logo,
  .tier-gold .sponsor-logo,
  .tier-silver .sponsor-logo {
    width: 100% !important;
    max-width: 280px;
    height: 90px !important;
    padding: 1rem 1.5rem;
  }

  /* Use --scale-mobile on mobile instead of --scale */
  .sponsor-logo img {
    transform: scale(var(--scale-mobile, 1)) !important;
  }

  .sponsor-tier-title {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
  }

  /* ===== SCHEDULE ===== */
  .schedule-chart {
    display: none;
  }

  .mobile-schedule-list {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    background: var(--civic-concrete);
    padding: 1.5rem;
    border: 1px solid var(--civic-steel);
  }

  .schedule-item {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 1rem;
    padding: 1rem 0.5rem;
    border-bottom: 1px dashed var(--civic-steel);
  }

  .schedule-item:last-child {
    border-bottom: none;
  }

  .schedule-item .time {
    font-family: var(--font-mono);
    color: var(--civic-neon);
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    min-width: 50px;
  }

  .schedule-item .event {
    font-family: var(--font-head);
    color: var(--civic-white);
    text-align: left;
    font-size: 0.85rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* ===== FAQ ===== */
  .term-split-layout {
    grid-template-columns: 1fr !important;
    gap: 0;
  }

  .term-sidebar {
    position: static;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 0;
  }

  .term-content {
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto;
  }

  .faq-item details summary {
    font-size: 0.8rem;
    word-break: break-word;
    overflow-wrap: break-word;
    flex-wrap: wrap;
    padding: 0.5rem;
    line-height: 1.4;
  }

  .console-response {
    font-size: 0.8rem;
    padding: 0.75rem;
    margin-left: 0.5rem;
  }



  /* ===== MENTORS / JUDGES ===== */
  .mentors-system-pane {
    width: 90%;
    max-width: 420px;
    margin: 0 auto;
    box-shadow: none;
    border-width: 1px;
  }

  .mentors-system-pane .section-title {
    font-size: 1.3rem !important;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
  }

  .card-content {
    padding: 2rem 1.5rem;
    gap: 1.25rem;
  }

  .role-desc {
    font-size: 0.85rem;
  }

  .role-btn.neon-cta {
    font-size: 0.85rem;
    padding: 0.7rem 1.4rem;
    width: auto;
    text-align: center;
    box-shadow: none;
  }

  .sys-pane-header {
    font-size: 0.65rem;
    padding: 0.4rem 0.75rem;
  }

}

/* ========= FLOATING DESKTOP CTA ========= */
.floating-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  cursor: none;
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--civic-white);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--civic-purple);
  padding: 0.85rem 1.6rem 0.85rem 2.4rem;

  /* Starts hidden — JS reveals after hero */
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.floating-cta.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  animation: cta-bounce 2.5s ease-in-out infinite;
}

@keyframes cta-bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

/* Terminal-style prompt prefix */
.floating-cta::before {
  content: '>';
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--civic-neon);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  animation: cta-blink 1.2s step-end infinite;
}

@keyframes cta-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Neon glow line on the left edge */
.floating-cta::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--civic-purple);
  box-shadow: 0 0 8px var(--civic-purple), 0 0 20px rgba(146, 39, 142, 0.3);
  transition: box-shadow 0.3s ease;
}

.floating-cta:hover {
  background: rgba(146, 39, 142, 0.08);
  color: var(--civic-white);
  border-color: var(--civic-white);
  box-shadow:
    0 0 25px rgba(146, 39, 142, 0.15),
    inset 0 0 30px rgba(146, 39, 142, 0.03);
}

.floating-cta:hover::before {
  color: var(--civic-white);
  animation: none;
  opacity: 1;
}

.floating-cta:hover::after {
  background: var(--civic-white);
  box-shadow: 0 0 12px var(--civic-white), 0 0 30px rgba(255, 255, 255, 0.2);
}

.floating-cta:active {
  transform: translateY(1px) scale(0.98);
}

/* Hide on mobile — mobile has its own CTA */
@media (max-width: 768px) {
  .floating-cta {
    display: none;
  }
}

/* ===== MOBILE FOOTER OVERRIDES (FORCE STACK) ===== */
@media (max-width: 768px) {
  .system-footer-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 1.5rem 1.5rem !important;
    gap: 0.75rem !important;
  }

  .sys-col {
    font-size: 0.65rem !important;
    width: 100% !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-wrap: nowrap !important;
  }

  .footer-links-inline {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    width: 100% !important;
  }

  .link-group {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    justify-content: flex-start !important;
    gap: 0.75rem !important;
  }

  .footer-logos {
    margin-top: 0.75rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-top: 1rem !important;
    width: 100% !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 1.25rem !important;
  }

  .footer-spark-logo img {
    height: 40px !important;
  }

  .footer-duan-logo img {
    height: 28px !important;
    max-width: 200px !important;
    object-fit: contain !important;
  }

  .legal-stack {
    margin-top: 0.5rem !important;
    gap: 0.75rem !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }

  .footer-legal p {
    font-size: 0.7rem !important;
    line-height: 1.6 !important;
    white-space: normal !important;
  }
}

/* Console Links */
.console-response a {
  color: var(--civic-neon);
  text-decoration: none;
  border-bottom: 1px dashed var(--civic-neon);
  transition: all 0.3s ease;
}

.console-response a:hover {
  background: var(--civic-neon);
  color: var(--civic-black);
  text-decoration: none;
}

/* --- COMPACT TERMINAL LIST (Final Schedule) --- */
/* Schedule Terminal Window */
/* Schedule Terminal Window */
.schedule-window {
  border: 1px solid var(--civic-steel);
  max-width: 1000px;
  margin: 0 auto;
  /* Cool, textured background */
  background:
    linear-gradient(rgba(10, 10, 10, 0.9), rgba(5, 5, 5, 0.95)),
    repeating-linear-gradient(0deg,
      transparent,
      transparent 2px,
      rgba(0, 255, 0, 0.02) 2px,
      rgba(0, 255, 0, 0.02) 4px);
  background-size: 100% 100%, 100% 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}


.schedule-content {
  padding: 2rem;
}


.compact-log {
  max-width: 100%;
  margin: 0 auto;
  font-family: 'JetBrains Mono', monospace;
  background: transparent;
  padding: 0;
  border: none;
  position: relative;
}

.log-row.highlight {
  /* Redesigned to be a "Block" highlights instead of a line */
  background: rgba(146, 39, 142, 0.15);
  border-left: 3px solid var(--civic-purple);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 4px 4px 0;
  /* Clean right edge */
  margin-bottom: 2px;
  /* Slight spacing to separate blocks */
}



.compact-log {
  max-width: 100%;
  margin: 0 auto;
  font-family: 'JetBrains Mono', monospace;
  background: transparent;
  padding: 0;
  border: none;
  position: relative;
  overflow: hidden;
  /* Re-enabled for clean scanlines */
}

.log-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.log-row.highlight {
  /* Redesigned to be a "Block" highlights instead of a line */
  background: rgba(146, 39, 142, 0.15);
  border-left: 3px solid var(--civic-purple);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 4px 4px 0;
  /* Clean right edge */
  margin-bottom: 2px;
  /* Slight spacing to separate blocks */
}



/* Hide location if 'NOW' badge might overlap or crowd it on mobile?
   No, let's keep it, flexbox should handle it. */

.log-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s;
  cursor: default;
}

.log-event {
  flex: 1;
  color: var(--civic-white);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-right: 1rem;
}

.log-time {
  width: 70px;
  margin-right: .5rem;
  color: var(--civic-silver);
  font-size: 0.9rem;
  opacity: 0.8;
  font-weight: 400;
  flex-shrink: 0;
}

.log-row.highlight .log-event {
  font-weight: 700;
  color: var(--civic-purple);
  text-shadow: none;
  /* Clean look */
}

.log-loc {
  color: var(--civic-silver);
  background: transparent;
  border: 1px solid var(--civic-silver);
  padding: 2px 8px;
  font-size: 0.75rem;
  border-radius: 2px;
  font-weight: 700;
  width: fit-content;
  text-align: right;
  margin-left: auto;
}

/* Log grouped events (Workshops) */
.log-group-row {
  display: flex;
  padding: 1.5rem 1rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  /* For active state pop */
}

.log-group-content {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  /* Single column stack */
  gap: 1rem;
}

.log-sub-item {
  display: flex;
  justify-content: flex-start;
  /* Changed from space-between to anchor title to left */
  align-items: center;
  border-left: 2px solid var(--civic-neon);
  padding-left: .75rem;
  margin-bottom: 0.5rem;
  transition: transform 0.2s;
}

.log-title {
  color: #ddd;
  font-size: 0.9rem;
  text-align: left;
  flex: 1;
  /* Take up space to push loc-tag to the right */
}

.log-loc-tag {
  color: var(--civic-silver);
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: .5rem;
  margin-left: auto;
  padding: 1px 6px;
  border: 1px solid var(--civic-silver);
  border-radius: 2px;
  width: fit-content;
}

@media (max-width: 768px) {
  .schedule-content {
    padding: 1rem 0.5rem;
    /* Maximize horizontal space */
  }

  .compact-log {
    padding: 0;
  }

  .log-group-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .log-row {
    display: grid;
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto auto;
    gap: 0.5rem 1rem;
    padding: 1.25rem 1rem;
    align-items: baseline;
  }

  .log-time {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    font-size: 0.85rem;
    opacity: 0.6;
  }

  .log-event {
    grid-column: 2;
    grid-row: 1;
    font-size: 1rem;
    padding-right: 0;
  }

  .log-loc {
    grid-column: 2;
    grid-row: 2;
    margin-left: auto;
    margin-top: 0.25rem;
    font-size: 0.7rem;
    opacity: 0.8;
    text-transform: uppercase;
    text-align: right;
    width: fit-content;
    justify-self: end;
  }

  /* Specific fix for grouped workshops on mobile */
  .log-sub-item {
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
    /* Anchor titles to the green vertical bar */
  }

  .log-loc-tag {
    margin-left: auto;
    opacity: 0.8;
    text-align: right;
    width: fit-content;
  }
}


/* ========================================= */
/* PRIZE DESIGN: CLASSIFIED ARCHIVES (CHOSEN) */
/* ========================================= */

/* ========================================= */
/* PRIZE DESIGN CONCEPT 4: HYBRID (ARCHIVE) */
/* ========================================= */
.prizes-hybrid-section {
  background: #080808;
  padding: 4rem 0;
  border-bottom: 2px solid var(--civic-steel);
}

.hybrid-container {
  display: flex;
  min-height: 600px;
  border: 1px solid var(--civic-steel);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  background: #111;
  border-radius: 4px;
  overflow: hidden;
}

/* ========================================= */
/* SHARED DIRECTORY STYLES (Restored) */
/* ========================================= */
.dir-sidebar {
  width: 280px;
  background: #0a0a0a;
  border-right: 1px solid var(--civic-steel);
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
}

.dir-header {
  padding: 1rem;
  background: #111;
  border-bottom: 1px solid #222;
  font-size: 0.75rem;
  color: #555;
  letter-spacing: 0.1em;
}

.dir-tree {
  list-style: none;
  padding: 1rem 0;
  margin: 0;
}

.file-item {
  padding: 0.6rem 2rem;
  font-size: 0.85rem;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.file-item:before {
  content: none;
  position: absolute;
  left: 0.8rem;
  color: #333;
  transition: opacity 0.2s;
}

.file-item:hover {
  color: var(--civic-white);
  background: rgba(255, 255, 255, 0.05);
}

.file-item.active {
  color: var(--civic-purple);
  background: rgba(220, 20, 255, 0.05);
  border-right: 2px solid var(--civic-purple);
}

.file-item.active:before {
  content: '>';
  opacity: 1;
  color: var(--civic-purple);
}

/* Sidebar reuse with modification */
.hybrid-status {
  margin-top: auto;
  padding: 1rem;
  border-top: 1px solid var(--civic-steel);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #666;
}

.hybrid-viewer {
  flex: 1;
  background: #0f0f0f;
  padding: 2rem;
  overflow-y: auto;
  position: relative;
  /* Grid removed */
}

.hybrid-category-group {
  display: none;
  animation: fadeIn 0.4s;
}

.hybrid-category-group.active {
  display: block;
}

.hybrid-group-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--civic-white);
  padding-bottom: 1rem;
  border-bottom: 1px solid #333;
  margin-bottom: 2rem;
  /* Prevent horizontal clipping on mobile */
  overflow-wrap: break-word;
  word-break: normal;
  max-width: 100%;
}

.track-sub-header {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--civic-silver);

  margin: 2rem 0 1rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--civic-purple);
}

/* .track-sub-header.eco {
  border-color: var(--civic-green);
}

.track-sub-header.justice {
  border-color: var(--civic-purple);
}

.track-sub-header.edu {
  border-color: var(--civic-orange);
}

.track-sub-header.city {
  border-color: var(--civic-blue);
} */

.mb-4 {
  margin-bottom: 2rem;
}

.archive-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.archive-row {
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid #333;
  overflow: hidden;
  transition: all 0.2s;
}

.archive-row:hover {
  background: rgba(30, 30, 30, 0.8);
  border-color: #555;
}

.archive-row.active {
  background: #181818;
  border-color: var(--civic-purple);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.row-summary {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  gap: 1.5rem;
  font-family: var(--font-head);
}

.col-id {
  color: var(--civic-silver);
  font-size: 0.75rem;
}

.col-title {
  flex: 1;
  font-size: 1.1rem;
  color: var(--civic-white);
  letter-spacing: 0.05em;
  margin: 0;
}

.col-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--civic-silver);
  border-radius: 2px;
  border: 1px solid #444;
  text-transform: uppercase;
  /* Truncation for long sponsor names */
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: middle;
}

.col-val {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--civic-neon);
  font-size: 1.2rem;
  text-align: right;
  min-width: 80px;
}

.col-toggle {
  display: none;
}

/* Details Section */
.row-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  border-top: 1px solid transparent;
}

.archive-row.active .row-details {
  max-height: 500px;
  border-top-color: #333;
}

.details-content {
  padding: 1.5rem;
  color: #ccc;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.detail-row {
  display: flex;
  gap: 1rem;
  align-items: baseline;
}

.detail-label {
  color: #666;
  font-size: 0.75rem;
  min-width: 70px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-val {
  color: #ddd;
  flex: 1;
}

.detail-val.highlight {
  color: var(--civic-purple);
}

/* Mobile */
@media (max-width: 900px) {
  .hybrid-container {
    flex-direction: column;
  }

  .dir-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--civic-steel);
  }

  .hybrid-viewer {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 600px) {
  .row-summary {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-rows: auto auto !important;
    gap: 0.25rem 1rem !important;
    padding: 1.25rem 1rem !important;
    align-items: baseline !important;
  }

  .hybrid-group-title {
    font-size: 1.1rem !important;
    margin-bottom: 1.5rem !important;
    word-break: keep-all !important;
  }

  .col-id {
    display: none !important;
  }

  .col-title {
    grid-area: 1 / 1 / 2 / 2 !important;
    font-size: 1rem !important;
  }

  .col-val {
    grid-area: 1 / 2 / 2 / 3 !important;
    font-size: 1rem !important;
    text-align: right !important;
    min-width: auto !important;
  }

  .col-badge {
    grid-area: 2 / 2 / 3 / 3 !important;
    justify-self: end !important;
    font-size: 0.65rem !important;
    margin-top: 0.1rem !important;
  }

  .details-content {
    padding: 1.25rem 1rem !important;
  }
}