/* =============================================================
   STEM Център 2 – style.css
   ➜ Change color variables below to retheme the site
   ➜ Font imports handled in index.html <head>
   ============================================================= */

/* ── CSS CUSTOM PROPERTIES (Design tokens) ─────────────────── */
:root {
  /* Colors */
  --bg:           #080c10;
  --bg-2:         #0d1117;
  --bg-3:         #111820;
  --surface:      #141c26;
  --surface-2:    #1a2535;
  --border:       rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.14);

  /* Text */
  --text-primary:   #f0f4f8;
  --text-secondary: #8898aa;
  --text-muted:     #4a5568;

  /* Accent – Digital (cyan/blue) */
  --accent-d:       #00d4ff;
  --accent-d-dim:   rgba(0, 212, 255, 0.12);
  --accent-d-glow:  rgba(0, 212, 255, 0.35);

  /* Accent – Green */
  --accent-g:       #39e8a0;
  --accent-g-dim:   rgba(57, 232, 160, 0.10);
  --accent-g-glow:  rgba(57, 232, 160, 0.30);

  /* Typography */
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  3rem;
  --space-xl:  5rem;
  --space-2xl: 8rem;

  /* Layout */
  --container: 1200px;
  --radius:    12px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none; /* custom cursor active */
}

/* Fallback for touch/mobile – show default cursor */
@media (hover: none) {
  body { cursor: auto; }
  .cursor, .cursor-follower { display: none; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; object-fit: cover; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ── CUSTOM CURSOR ──────────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--accent-d);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.05s, background 0.2s;
  mix-blend-mode: screen;
}

.cursor-follower {
  position: fixed;
  width: 32px; height: 32px;
  border: 1px solid var(--accent-d);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0.4;
  transition: transform 0.15s ease-out, width 0.2s, height 0.2s, opacity 0.2s;
}

.cursor-follower.is-hover {
  width: 56px; height: 56px;
  opacity: 0.2;
}

/* ── CONTAINER ──────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── TYPOGRAPHY SYSTEM ──────────────────────────────────────── */
.section-label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-d);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.section-title em {
  font-style: italic;
  color: var(--accent-d);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-top: var(--space-sm);
}

.section-header {
  margin-bottom: var(--space-xl);
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  cursor: none;
}

.btn--primary {
  background: var(--accent-d);
  color: #000;
  box-shadow: 0 0 24px var(--accent-d-glow);
}

.btn--primary:hover {
  background: #fff;
  box-shadow: 0 0 40px rgba(0,212,255,0.6);
  transform: translateY(-2px);
}

.btn--outline {
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--accent-d);
  color: var(--accent-d);
  transform: translateY(-2px);
}

/* ── NAVIGATION ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.4rem 0;
  transition: background 0.4s, padding 0.4s, backdrop-filter 0.4s;
}

.nav.scrolled {
  background: rgba(8, 12, 16, 0.85);
  backdrop-filter: blur(20px);
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
}

.nav__logo-mark { color: var(--text-primary); }
.nav__logo-num  {
  color: var(--accent-d);
  font-size: 1.5rem;
  line-height: 1;
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1px;
  background: var(--accent-d);
  transition: width 0.3s ease;
}

.nav__links a:hover { color: var(--text-primary); }
.nav__links a:hover::after { width: 100%; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s;
}

/* ── HERO SECTION ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 8rem 2rem 4rem;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* Glowing orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero__orb--1 {
  width: 560px; height: 560px;
  top: -120px; left: -120px;
  background: radial-gradient(circle, rgba(0,212,255,0.15) 0%, transparent 70%);
}

.hero__orb--2 {
  width: 480px; height: 480px;
  bottom: -80px; right: -80px;
  background: radial-gradient(circle, rgba(57,232,160,0.12) 0%, transparent 70%);
}

.hero__content {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 2;
}

.hero__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-d);
  margin-bottom: 1.5rem;
  opacity: 0; /* animated by GSAP */
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 0.95;
  margin-bottom: var(--space-md);
  display: flex;
  flex-direction: column;
}

.hero__title-line { display: block; opacity: 0; } /* GSAP animated */

.hero__title-accent {
  color: var(--accent-d);
  font-style: italic;
}

.hero__title-num {
  font-size: 0.35em;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  font-style: normal;
  margin-top: 0.4em;
}

.hero__subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
  opacity: 0; /* GSAP */
}

.hero__desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 420px;
  opacity: 0; /* GSAP */
}

.hero__highlight {
  font-weight: 600;
  letter-spacing: 0.01em;
}
.hero__highlight--d {
  color: var(--accent-d);
  text-shadow: 0 0 18px rgba(0, 212, 255, 0.45);
}
.hero__highlight--g {
  color: var(--accent-g);
  text-shadow: 0 0 18px rgba(57, 232, 160, 0.45);
}

/* Hero right side: floating badges */
.hero__right {
  position: relative;
  height: 420px;
}

.hero__badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
  opacity: 0; /* GSAP */
  transition: border-color 0.3s, transform 0.3s;
}

.hero__badge:hover {
  border-color: var(--accent-d);
  color: var(--text-primary);
}

.hero__badge svg { color: var(--accent-d); flex-shrink: 0; }

.hero__badge--1 { top: 10%;  left: 5%; }
.hero__badge--2 { top: 40%;  right: 0%;  border-color: rgba(57,232,160,0.3); }
.hero__badge--2 svg { color: var(--accent-g); }
.hero__badge--3 { bottom: 15%; left: 15%; }

.hero__grid-dec {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0,212,255,0.08);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 280px; height: 280px;
  animation: ringPulse 4s ease-in-out infinite;
}

.hero__ring--2 {
  width: 420px; height: 420px;
  border-color: rgba(0,212,255,0.04);
  animation-delay: -2s;
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 0.8; transform: translate(-50%, -50%) scale(1.04); }
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  z-index: 2;
}

.hero__scroll-line {
  width: 48px; height: 1px;
  background: linear-gradient(90deg, var(--accent-d), transparent);
  animation: lineGrow 2s ease-in-out infinite;
}

@keyframes lineGrow {
  0%   { width: 24px; opacity: 0.4; }
  50%  { width: 56px; opacity: 1; }
  100% { width: 24px; opacity: 0.4; }
}

/* ── ABOUT SECTION ──────────────────────────────────────────── */
.about {
  padding: var(--space-2xl) 0;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-d-glow), transparent);
}

.about__layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: start;
}

.about__divider {
  width: 48px; height: 2px;
  background: var(--accent-d);
  margin: 1.5rem 0;
  border-radius: 2px;
}

.about__para {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.3s, transform 0.3s;
}

.stat:hover {
  border-color: var(--accent-d);
  transform: translateY(-3px);
}

.stat__value {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.8rem;
  color: var(--accent-d);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.about__img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.about__img-wrap img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.about__img-wrap:hover img {
  transform: scale(1.03);
}

/* ── ROOMS SECTION ──────────────────────────────────────────── */
.rooms {
  padding: var(--space-2xl) 0;
  background: var(--bg);
}

.room {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  margin-bottom: 3rem;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.4s;
}

.room--digital {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(0,212,255,0.03) 100%);
}

.room--digital:hover { border-color: rgba(0,212,255,0.2); }

.room--green {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(57,232,160,0.03) 100%);
}

.room--green:hover { border-color: rgba(57,232,160,0.2); }

.room__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  background: var(--accent-d-dim);
  border: 1px solid rgba(0,212,255,0.2);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent-d);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.room__tag--green {
  background: var(--accent-g-dim);
  border-color: rgba(57,232,160,0.2);
  color: var(--accent-g);
}

.room__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.room__desc {
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

/* Topic cards grid */
.room__topics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.topic-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  cursor: none;
}

.topic-card:hover {
  border-color: var(--accent-d);
  transform: translateY(-6px) scale(1.02);
}

[data-room="green"] .topic-card:hover { border-color: var(--accent-g); }

.topic-card__glow {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  opacity: 0;
  background: radial-gradient(circle at 50% 100%, var(--accent-d-glow) 0%, transparent 65%);
  transition: opacity 0.4s;
  pointer-events: none;
}

[data-room="green"] .topic-card__glow {
  background: radial-gradient(circle at 50% 100%, var(--accent-g-glow) 0%, transparent 65%);
}

.topic-card:hover .topic-card__glow { opacity: 1; }

.topic-card__icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--surface-2);
  margin-bottom: 1rem;
}

.topic-card__icon svg {
  width: 22px; height: 22px;
  color: var(--accent-d);
}

[data-room="green"] .topic-card__icon svg { color: var(--accent-g); }

.topic-card__title {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.topic-card__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Room accent decoration */
.room__accent {
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  pointer-events: none;
}

.room__accent--digital {
  background: radial-gradient(circle, rgba(0,212,255,0.06) 0%, transparent 70%);
}

.room__accent--green {
  background: radial-gradient(circle, rgba(57,232,160,0.06) 0%, transparent 70%);
}

/* ── EQUIPMENT SECTION ──────────────────────────────────────── */
.equipment {
  padding: var(--space-2xl) 0;
  background: var(--bg-3);
  position: relative;
  overflow: hidden;
}

.equipment::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-d-glow), transparent);
}

/* 4-column auto-fill grid, cards min 200px */
.equip-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.equip-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.3s, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  cursor: default;
}

.equip-card:hover {
  border-color: var(--accent-d);
  transform: translateY(-5px) scale(1.02);
}

.equip-card__icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border-radius: 12px;
  margin-bottom: 0.5rem;
  color: var(--accent-d);
  flex-shrink: 0;
}

.equip-card__icon svg {
  width: 34px; height: 34px;
}

/* Green-tagged cards get green icon tint */
.equip-card:has(.equip-card__tag--g) .equip-card__icon {
  color: var(--accent-g);
}

.equip-card__title {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.equip-card__sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.equip-card__tag {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: fit-content;
}

.equip-card__tag--d {
  background: var(--accent-d-dim);
  border: 1px solid rgba(0,212,255,0.2);
  color: var(--accent-d);
}

.equip-card__tag--g {
  background: var(--accent-g-dim);
  border: 1px solid rgba(57,232,160,0.2);
  color: var(--accent-g);
}

/* ── GALLERY SECTION ────────────────────────────────────────── */
.gallery {
  padding: var(--space-2xl) 0;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}

.gallery::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-g-glow), transparent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 270px);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: none;
  transition: border-color 0.3s;
}

.gallery-item:hover { border-color: var(--accent-d); }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

/* Rotation helper – portrait image shown as landscape */
.gallery-item--rotated img {
  transform: rotate(90deg) scale(1.42);
}
.gallery-item--rotated:hover img {
  transform: rotate(90deg) scale(1.48);
}

/* Wide / tall variants for visual masonry feel */
.gallery-item--wide {
  grid-column: span 2;
}

.gallery-item--tall {
  grid-row: span 2;
}

.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  /* ➜ When you add real images, remove this div and put <img> directly */
}

.gallery-placeholder svg { opacity: 0.25; }

/* Hover overlay */
.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-item__overlay { opacity: 1; }

.gallery-item__overlay p {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* ── CONTACT SECTION ────────────────────────────────────────── */
.contact {
  padding: var(--space-2xl) 0;
  background: var(--bg);
}

.contact__layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.contact__intro {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 440px;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact__row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact__icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-d);
}

.contact__row strong {
  font-weight: 600;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.2rem;
}

.contact__row p,
.contact__row a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.contact__row a:hover { color: var(--accent-d); }

/* Tech panel */
.contact__panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--font-sans);
}

.contact__panel-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.contact__panel-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border-hover);
}

.contact__panel-dot:nth-child(1) { background: #ff5f57; }
.contact__panel-dot:nth-child(2) { background: #febc2e; }
.contact__panel-dot:nth-child(3) { background: #28c840; }

.contact__panel-header span { margin-left: auto; }

.contact__panel-body {
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact__panel-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.contact__panel-key {
  color: var(--text-muted);
}

.contact__panel-val {
  color: var(--text-primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact__panel-val--active { color: var(--accent-g); }

/* Pulsing dot for active status */
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-g);
  position: relative;
}

.pulse-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--accent-g);
  opacity: 0.3;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50%       { transform: scale(1.8); opacity: 0; }
}

/* ── CYBERDECK MAP PANEL ────────────────────────────────────── */
.cyberdeck {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #020609;
  border: 1px solid rgba(0,212,255,0.2);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 0 30px rgba(0,212,255,0.06), inset 0 0 60px rgba(0,212,255,0.03);
}

.cyberdeck:hover {
  border-color: rgba(0,212,255,0.5);
  box-shadow: 0 0 60px rgba(0,212,255,0.15), inset 0 0 60px rgba(0,212,255,0.06);
}

/* Scanlines overlay */
.cyberdeck__scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,212,255,0.015) 3px,
    rgba(0,212,255,0.015) 4px
  );
}

/* Corner HUD brackets */
.cyberdeck__corner {
  position: absolute;
  width: 18px; height: 18px;
  z-index: 5;
  pointer-events: none;
}

.cyberdeck__corner--tl {
  top: 10px; left: 10px;
  border-top: 1.5px solid var(--accent-d);
  border-left: 1.5px solid var(--accent-d);
}

.cyberdeck__corner--tr {
  top: 10px; right: 10px;
  border-top: 1.5px solid var(--accent-d);
  border-right: 1.5px solid var(--accent-d);
}

.cyberdeck__corner--bl {
  bottom: 46px; left: 10px;
  border-bottom: 1.5px solid var(--accent-d);
  border-left: 1.5px solid var(--accent-d);
}

.cyberdeck__corner--br {
  bottom: 46px; right: 10px;
  border-bottom: 1.5px solid var(--accent-d);
  border-right: 1.5px solid var(--accent-d);
}

/* Top status bar */
.cyberdeck__topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: rgba(0,212,255,0.06);
  border-bottom: 1px solid rgba(0,212,255,0.12);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: rgba(0,212,255,0.6);
}

.cyberdeck__system { color: rgba(0,212,255,0.45); }

.cyberdeck__coords {
  color: var(--accent-d);
  font-weight: 600;
  animation: coordBlink 4s steps(1) infinite;
}

@keyframes coordBlink {
  0%, 90%  { opacity: 1; }
  91%, 99% { opacity: 0.3; }
  100%     { opacity: 1; }
}

/* SVG Map */
.cyberdeck__map {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 24px; /* space for topbar */
}

/* Radar sweep animation */
.radar-sweep {
  animation: radarRotate 4s linear infinite;
  transform-box: fill-box;
  transform-origin: 208px 160px;
}

@keyframes radarRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Beacon pulse rings */
.beacon-ring {
  animation: beaconPulse 2.4s ease-out infinite;
  transform-box: fill-box;
  transform-origin: 208px 160px;
}

.beacon-ring-1 { animation-delay: 0s; }
.beacon-ring-2 { animation-delay: 0.4s; }
.beacon-ring-3 { animation-delay: 0.8s; }

@keyframes beaconPulse {
  0%   { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* Signal blips – random flicker */
.blip {
  animation: blipFlash 3s ease-in-out infinite;
}

@keyframes blipFlash {
  0%, 100% { opacity: 0.15; r: 1.5px; }
  40%      { opacity: 1;    r: 2.5px; filter: drop-shadow(0 0 3px #00d4ff); }
  60%      { opacity: 0.6;  r: 2px;  }
}

/* Bottom HUD data strip */
.cyberdeck__hud {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(0,212,255,0.06);
  border-top: 1px solid rgba(0,212,255,0.12);
  height: 44px;
  padding: 0 1rem;
  position: relative;
  z-index: 5;
}

.cyberdeck__hud-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  flex: 1;
}

.cyberdeck__hud-sep {
  width: 1px;
  height: 24px;
  background: rgba(0,212,255,0.15);
  flex-shrink: 0;
}

.cyberdeck__hud-key {
  font-family: 'Courier New', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  color: rgba(0,212,255,0.4);
  text-transform: uppercase;
}

.cyberdeck__hud-val {
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-d);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.cyberdeck__hud-val--active { color: var(--accent-g); }

/* "Open in Maps" tooltip */
.cyberdeck__open-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,212,255,0.12);
  border: 1px solid rgba(0,212,255,0.35);
  border-radius: 100px;
  padding: 0.45rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent-d);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 6;
  pointer-events: none;
  white-space: nowrap;
}

.cyberdeck:hover .cyberdeck__open-hint { opacity: 1; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer__brand p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  gap: 2rem;
}

.footer__links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer__links a:hover { color: var(--accent-d); }

.footer__copy p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── REVEAL ANIMATION CLASSES ───────────────────────────────── */
/* Initial state – GSAP will animate these to visible */
.reveal {
  opacity: 0;
  transform: translateY(28px);
}

/* ── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-d); }

/* ── SELECTION ──────────────────────────────────────────────── */
::selection {
  background: var(--accent-d-dim);
  color: var(--accent-d);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Tablet (max-width: 1024px) ── */
@media (max-width: 1024px) {
  .hero__content    { grid-template-columns: 1fr; gap: 3rem; }
  .hero__right      { height: 280px; }
  .about__layout    { grid-template-columns: 1fr; gap: 3rem; }
  .room__topics     { grid-template-columns: repeat(2, 1fr); }
  .equip-grid       { grid-template-columns: repeat(4, 1fr); }
  .contact__layout  { grid-template-columns: 1fr; gap: 3rem; }
  .gallery-grid     { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .gallery-grid > * { grid-column: auto !important; grid-row: auto !important; }
  .gallery-item--tall { grid-row: span 1; }
}

/* ── Mobile (max-width: 768px) ── */
@media (max-width: 768px) {
  :root {
    --space-xl: 3.5rem;
    --space-2xl: 5rem;
  }

  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--bg);
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    font-size: 1.4rem;
    z-index: 99;
  }
  .nav__burger { display: flex; }

  .hero { padding: 7rem 1.5rem 3rem; text-align: left; }
  .hero__right { display: none; }
  .hero__content { grid-template-columns: 1fr; }

  .about__stats { grid-template-columns: 1fr 1fr; gap: 1rem; }

  .equip-grid { grid-template-columns: repeat(2, 1fr); }

  .room { padding: 2rem 1.5rem; }
  .room__topics { grid-template-columns: 1fr 1fr; gap: 1rem; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-auto-rows: 180px;
  }
  .gallery-grid > * { grid-column: auto !important; grid-row: auto !important; }
  .gallery-item--rotated img { transform: rotate(90deg) scale(1.42); }

  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ── Small mobile (max-width: 480px) ── */
@media (max-width: 480px) {
  .equip-grid   { grid-template-columns: 1fr; }
  .room__topics { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid > * { grid-column: auto !important; grid-row: auto !important; }
  .about__stats { grid-template-columns: 1fr; }
  .section-title { font-size: 2rem; }
  .hero__title { font-size: 3rem; }
}

/* ── PRINT STYLES ───────────────────────────────────────────── */
@media print {
  .cursor,
  .cursor-follower,
  .hero__canvas,
  .hero__orb,
  .hero__scroll,
  .hero__ring,
  .hero__grid-dec,
  .nav__burger,
  .cyberdeck__scanlines,
  .gallery-item__overlay {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
    cursor: auto;
    font-size: 12pt;
  }

  .nav {
    position: static;
    background: #fff;
    border-bottom: 1px solid #ccc;
    padding: 0.5rem 0;
  }

  .nav__logo-mark,
  .nav__logo-num { color: #111; }

  .hero {
    min-height: auto;
    padding: 2rem;
    background: #fff;
    color: #111;
  }

  .hero__title,
  .hero__title-accent,
  .section-title,
  .section-title em { color: #111; }

  .section-label { color: #555; }

  .about,
  .rooms,
  .equipment,
  .gallery,
  .contact,
  .footer {
    background: #fff;
    border-color: #ccc;
  }

  .stat,
  .topic-card,
  .equip-card {
    border: 1px solid #ccc;
    break-inside: avoid;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.75em;
    color: #555;
  }

  a[href^="#"]::after,
  a[href^="javascript"]::after { content: ""; }
}

/* ============================================================
   PERFORMANCE & ACCESSIBILITY
   ============================================================ */

/* Faster tap response on touch devices */
.btn,
a,
button,
.gallery-item,
.topic-card,
.equip-card,
.nav__link {
  touch-action: manipulation;
}

/* Hide desktop cursor elements on touch devices */
@media (pointer: coarse) {
  .cursor,
  .cursor-follower { display: none !important; }
}

/* Skip rendering off-screen heavy sections until near viewport */
.equipment,
.gallery,
.contact {
  content-visibility: auto;
  contain-intrinsic-size: 0 800px;
}

/* Respect user motion preferences */
@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;
  }

  .hero__canvas { display: none; }
}
