/* =====================================================
   NTRFCE — DESIGN SYSTEM v4 (Compact & Screen-Fit)
   Underground Electronic Culture Platform
   
   Fonts:
   - VT323: Only font used, everywhere.
   
   Colors:
   - Background: #080908
   - Accent: #49ff70 (acid green)
   ===================================================== */

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

:root {
  /* Colors */
  --bg: #080908;
  --bg-surface: #0f110f;
  --bg-card: #1a1c1a;
  --bg-card-hover: #222422;
  --accent: #49ff70;
  --accent-dim: #2ecc5e;
  --text-primary: #e8e8e8;
  --text-secondary: #aaaaaa;
  --text-dim: #666666;
  --border: #1f211f;
  --border-light: #2a2c2a;

  /* Typography */
  --font-vt323: 'VT323', monospace;

  /* Spacing (Reduced for single-screen fit) */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 0.8rem;
  --space-lg: 1.5rem;   /* Was 2rem */
  --space-xl: 2.5rem;   /* Was 4rem */
  --space-2xl: 4rem;    /* Was 6rem */
  --space-3xl: 5rem;    /* Was 8rem */

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 15px; /* Scaled down base for compactness */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-vt323);
  background-color: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.4; /* Tighter line height */
}

::selection {
  background-color: var(--accent);
  color: var(--bg);
}

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

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  font-family: var(--font-vt323);
  line-height: 1.1;
}

/* ── Grain Overlay ── */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ── Global Background Image ── */
.global-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
}

.global-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.35;
  transform: scale(1.05); /* Avoid edge clipping during zoom */
  animation: heroZoom 20s ease-in-out infinite alternate;
}

.global-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 9, 8, 0.5) 0%,
    rgba(8, 9, 8, 0.7) 100%
  );
}

/* ── Custom Cursor ── */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: difference;
}

.cursor-dot.hovering {
  width: 16px;
  height: 16px;
}

@media (max-width: 768px) {
  .cursor-dot {
    display: none;
  }
}

/* ── Loading Screen ── */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: opacity 1.5s ease-in-out, visibility 1.5s ease-in-out;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  text-align: center;
}

.loader-logo-text {
  font-family: var(--font-vt323);
  font-size: 4rem; /* Down from 5rem */
  letter-spacing: 0.1em;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(73, 255, 112, 0.5);
  margin-bottom: var(--space-md);
}

.loader-bar {
  width: 200px;
  height: 2px;
  background: var(--border);
  margin: 0 auto var(--space-sm);
  overflow: hidden;
}

.loader-progress {
  width: 0%;
  height: 100%;
  background: var(--accent);
  animation: loaderFill 2s cubic-bezier(0.8, 0, 0.2, 1) forwards;
}

.loader-signal {
  font-family: var(--font-vt323);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

@keyframes loaderFill {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* ── Container ── */
.container {
  max-width: 1100px; /* Condensed width */
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ── Section Shared ── */
.section {
  position: relative;
  min-height: 100vh; /* Make section fill screen so scroll centers it seamlessly */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl) 0; /* Tighter padding to fit single screen */
}

@media (max-width: 768px) {
  .section {
    min-height: auto;
    padding: var(--space-xl) 0;
  }
}

.section-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg); /* Reduced margin */
}

.label-line {
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.label-text {
  font-family: var(--font-vt323);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
}

/* ── Accent Text ── */
.text-accent {
  color: var(--accent);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-vt323);
  font-size: 1.15rem; /* Down from 1.3 */
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem; /* Compact padding */
  padding-top: 0.8rem;
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  position: relative;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: #5aff80;
  box-shadow: 0 0 20px rgba(73, 255, 112, 0.3);
  transform: translateY(-2px);
}

.btn-discord {
  background: #36393f; 
  color: var(--text-primary);
  border: 1px solid var(--border);
  gap: 0.5rem;
}

.btn-discord .discord-logo-icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.btn-discord:hover {
  border-color: var(--accent);
  background: rgba(88, 101, 242, 0.1);
  transform: translateY(-2px);
}

.btn-large {
  padding: 0.8rem 2rem;
  padding-top: 1rem;
  font-size: 1.3rem;
}

.btn-arrow {
  transition: transform var(--transition-base);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ── Navigation ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0; /* Compacted height */
  transition: var(--transition-base);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(8, 9, 8, 0.65);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-bottom: 1px solid var(--border);
  padding: var(--space-sm) 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo-img {
  height: 28px; /* Tighter logo */
  filter: brightness(1.1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  font-family: var(--font-vt323);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: var(--transition-base);
  position: relative;
  padding-top: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition-base);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-cta {
  font-size: 1.1rem;
  color: var(--bg);
  background: var(--accent);
  padding: 0.4rem 1rem;
  padding-top: 0.6rem;
}

.nav-cta:hover {
  background: #5aff80;
}

/* Hamburger remains */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger-line {
  width: 100%;
  height: 1.5px;
  background: var(--text-primary);
  transition: var(--transition-base);
  transform-origin: center;
}

.nav-hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
  background: var(--accent);
}

.nav-hamburger.active .hamburger-line:nth-child(2) { opacity: 0; }
.nav-hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  background: var(--accent);
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── Mobile Menu ── */
.mobile-menu {
  position: fixed; inset: 0; background: var(--bg); z-index: 999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: var(--transition-slow);
}
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-menu-inner { text-align: center; }
.mobile-link { display: block; font-size: 2.5rem; letter-spacing: 0.1em; margin-bottom: var(--space-md); color: var(--text-primary); opacity: 0; transform: translateY(20px); transition: var(--transition-base); }
.mobile-menu.active .mobile-link { transform: translateY(0); opacity: 1; }
.mobile-link:hover { color: var(--accent); }
.mobile-cta { display: inline-block; font-size: 1.3rem;  color: var(--bg); background: var(--accent); padding: 0.6rem 1.6rem; margin-top: var(--space-md); opacity: 0; transition: var(--transition-base); }
.mobile-menu.active .mobile-cta { opacity: 1; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh; /* Fits to screen */
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 var(--space-lg);
  max-width: 800px;
}
.hero-signal {
  display: inline-flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-lg);
}
.signal-dot {
  width: 6px; height: 6px; background: var(--accent); box-shadow: 0 0 10px rgba(73, 255, 112, 0.8);
}
.signal-text { font-size: 1rem; letter-spacing: 0.25em; color: var(--accent); }

.hero-title-line {
  display: block; font-size: clamp(3rem, 7vw, 6rem); /* Scaled down */
  letter-spacing: 0.02em; line-height: 0.9;
}
.hero-title-accent { text-shadow: 0 0 40px rgba(73, 255, 112, 0.3); }

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem); color: var(--text-secondary); line-height: 1.4;
  margin-top: var(--space-md); margin-bottom: var(--space-lg);
}
.hero-ctas {
  display: flex; gap: var(--space-md); justify-content: center;
}
.hero-scroll { position: absolute; bottom: var(--space-xl); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); }
.scroll-line { width: 1px; height: 30px; background: linear-gradient(to bottom, var(--accent), transparent); animation: scrollPulse 2s ease-in-out infinite; }
.scroll-text { font-size: 0.9rem; letter-spacing: 0.2em; color: var(--text-dim); }

@keyframes scrollPulse { 0%, 100% { opacity: 1; height: 30px; } 50% { opacity: 0.5; height: 20px; } }

/* ── Manifesto Strip ── */
.manifesto-strip {
  background: rgba(73, 255, 112, 0.65);
  backdrop-filter: blur(8px);
  padding: var(--space-sm) 0;
  overflow: hidden;
  /* Fade out edges to give an infinite illusion */
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}
.marquee-content {
  display: flex; align-items: center; gap: var(--space-lg); white-space: nowrap; animation: marquee 30s linear infinite; font-size: 1.3rem; color: var(--bg);
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Movement ── */
.movement { background: transparent; padding-top: var(--space-xl); }
.movement-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: center;
}
@media (max-width: 900px) { .movement-grid { grid-template-columns: 1fr; } }
.movement-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1; margin-bottom: var(--space-md);
}
.manifesto-body p {
  font-size: 1.1rem; color: var(--text-secondary); margin-bottom: var(--space-sm);
}
.manifesto-highlight {
  font-size: 1.2rem !important; border-left: 2px solid var(--accent); padding-left: var(--space-md); margin-top: var(--space-md) !important; color: var(--text-primary) !important;
}
.movement-image-wrapper { aspect-ratio: 16/9; overflow: hidden; position: relative; } /* Shorter image */
.movement-image { width: 100%; height: 100%; object-fit: cover; filter: grayscale(30%) contrast(1.1); }
.ntrfce-code { margin-top: var(--space-md); background: var(--bg-surface); border: 1px solid var(--border); padding: var(--space-md); }
.code-header { font-size: 1.2rem; color: var(--accent); margin-bottom: var(--space-sm); }
.code-list li { font-size: 1.1rem; color: var(--text-secondary); padding: 0.3rem 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: var(--space-sm); }
.code-list li::before { font-size: 0.9rem; color: var(--text-dim); }
.code-list li:last-child { border: none; }

/* ── Transmission ── */
.transmission { background: rgba(15, 17, 15, 0.7); backdrop-filter: blur(20px); }
.transmission-title { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: var(--space-sm); }
.transmission-subtitle { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: var(--space-md); }
.transmission-filters { display: flex; gap: var(--space-sm); margin-bottom: var(--space-lg); }
.filter-tab { font-size: 1.1rem; padding: 0.4rem 1rem; border: 1px solid var(--border); background: transparent; color: var(--text-secondary); cursor: pointer; }
.filter-tab.active { border-color: var(--accent); color: var(--accent); background: rgba(73, 255, 112, 0.05); }

.transmission-timeline { display: flex; flex-direction: column; gap: var(--space-md); } /* Tighter gap */
.transmission-card { background: var(--bg-card); border: 1px solid var(--border); overflow: hidden; }
.transmission-card-header { padding: 0.6rem var(--space-md); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; }
.transmission-status { display: flex; align-items: center; gap: var(--space-xs); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; }
.status-past { background: var(--text-dim); }  .status-upcoming { background: var(--accent); animation: signalPulse 2s infinite; }
@keyframes signalPulse { 0%, 100% { box-shadow:0 0 0 0 rgba(73,255,112,0.4)} 50% { box-shadow:0 0 8px 0 rgba(73,255,112,0)} }
.status-label, .transmission-date { font-size: 0.95rem; color: var(--text-dim); }

.transmission-card-main { display: grid; grid-template-columns: 200px 1fr; cursor: pointer; } /* narrower image */
@media (max-width: 768px) { .transmission-card-main { grid-template-columns: 1fr; } }
.transmission-card-image { aspect-ratio: 16/9; }
.transmission-card-image img { width: 100%; height: 100%; object-fit: cover; }
.transmission-card-info { padding: var(--space-md); display: flex; flex-direction: column; gap: 0.25rem; }
.transmission-type { font-size: 0.9rem; color: var(--accent); border: 1px solid var(--accent); padding: 0.1rem 0.4rem; align-self: flex-start; }
.transmission-name { font-size: 1.6rem; color: var(--text-primary); }
.transmission-meta { font-size: 1rem; color: var(--text-secondary); }
.transmission-tags { display: flex; gap: 0.4rem; margin-top: 0.3rem;}
.transmission-tag { font-size: 0.85rem; border: 1px solid var(--border); padding: 0.1rem 0.4rem; color: var(--text-dim); }

.transmission-toggle { display: flex; align-items: center; gap: 0.4rem; background: none; border: none; cursor: pointer; margin-top: auto; }
.toggle-text { font-size: 1rem; color: var(--accent); }
.toggle-icon { font-size: 1.4rem; color: var(--accent); transition: transform 0.2s; line-height: 1; }
.transmission-card.expanded .toggle-icon { transform: rotate(45deg); }

.transmission-detail { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; border-top: 0px; }
.transmission-card.expanded .transmission-detail { max-height: 500px; border-top: 1px solid var(--border); overflow-y: auto;}
.detail-grid { padding: var(--space-md); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
@media (max-width: 768px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-heading { font-size: 1rem; color: var(--accent); margin-bottom: 0.3rem; }
.detail-text { font-size: 1rem; color: var(--text-secondary); line-height: 1.4; }
.detail-artist { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border); padding: 0.2rem 0; }
.artist-name { font-size: 1.1rem; } .artist-role { font-size: 0.9rem; color: var(--text-dim); }
.detail-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.detail-stat { border: 1px solid var(--border); padding: 0.4rem; text-align: center; }
.detail-stat-value { font-size: 1.4rem; color: var(--accent); display: block; }
.detail-stat-label { font-size: 0.8rem; color: var(--text-dim); }
.detail-list li { font-size: 1rem; color: var(--text-secondary); padding-left: 1rem; position: relative; }
.detail-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }

/* ── Community ── */
.community { background: transparent; }
.community-content { text-align: center; margin: 0 auto; max-width: 900px; }
.community-title { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: var(--space-sm); }
.community-body { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: var(--space-xl); max-width: 700px; margin-left: auto; margin-right: auto; }
.community-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); margin-bottom: var(--space-xl); text-align: left; }
@media (max-width: 768px) { .community-features { grid-template-columns: 1fr; } }
.community-feature { padding: var(--space-lg) var(--space-md); border: 1px solid var(--border); background: var(--bg-surface); position: relative; }
.interactive-feature { cursor: pointer; }
.interactive-feature:hover { border-color: var(--accent); background: rgba(73, 255, 112, 0.05); transform: translateY(-3px); }
.feature-indicator { font-size: 0.9rem; color: var(--accent); margin-top: var(--space-sm); opacity: 0; transition: var(--transition-fast); }
.interactive-feature:hover .feature-indicator { opacity: 1; transform: translateX(5px); }
.feature-icon { width: 32px; height: 32px; color: var(--accent); margin-bottom: var(--space-sm); }
.feature-title { font-size: 1.3rem; margin-bottom: 0.3rem; }
.feature-desc { font-size: 1rem; color: var(--text-secondary); }

/* ── Collaborate ── */
.collaborate { background: rgba(15, 17, 15, 0.7); backdrop-filter: blur(20px); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.collaborate-title { font-size: clamp(3rem, 6vw, 4.5rem); margin-bottom: var(--space-lg); }
.collab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
@media (max-width: 768px) { .collab-grid { grid-template-columns: 1fr; } }
.collab-card { padding: var(--space-lg); background: var(--bg); border: 1px solid var(--border); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.collab-card::before { content: ''; position: absolute; top:0; left:0; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
.collab-card:hover::before { transform: scaleX(1); }
.collab-card:hover { border-color: var(--border-light); transform: translateY(-3px); }
.collab-card-header { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.collab-number { font-size: 1.1rem; color: var(--accent); }
.collab-card-title { font-size: 1.3rem; }
.collab-card-body { font-size: 1.05rem; color: var(--text-secondary); flex: 1; margin-bottom: var(--space-md); }
.collab-card-cta { display: flex; align-items: center; gap: 0.3rem; font-size: 1.1rem; color: var(--accent); }
.collab-card-cta:hover .collab-arrow { transform: translateX(4px); }

/* ── Signal / Contact ── */
.signal { background: transparent; }
.signal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: center; }
@media (max-width: 900px) { .signal-grid { grid-template-columns: 1fr; } }
.signal-title { font-size: clamp(3rem, 6vw, 4.5rem); margin-bottom: var(--space-md); }
.signal-body { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: var(--space-lg); }
.signal-form { margin-bottom: var(--space-lg); }
.form-group { display: flex; }
.signal-input { flex: 1; font-size: 1.1rem; padding: 0.7rem 0.8rem; background: var(--bg-surface); border: 1px solid var(--border); color: var(--text-primary); outline: none; }
.signal-input:focus { border-color: var(--accent); }
.signal-submit { font-size: 1.1rem; padding: 0.7rem 1.2rem; background: var(--accent); color: var(--bg); border: none; cursor: pointer; }
.form-note { font-size: 0.9rem; color: var(--text-dim); margin-top: 0.3rem; }
.social-links { display: flex; gap: var(--space-sm); }
.social-link { width: 40px; height: 40px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: 0.2s; }
.social-link svg { width: 18px; height: 18px; }
.social-link:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.contact-title { font-size: 1.3rem; color: var(--accent); margin-bottom: var(--space-sm); }
.contact-form { display: flex; flex-direction: column; gap: var(--space-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.contact-input { font-size: 1.1rem; padding: 0.7rem 0.8rem; background: var(--bg-surface); border: 1px solid var(--border); color: var(--text-primary); outline: none; width: 100%; }
.contact-textarea { min-height: 80px; resize: vertical; }

/* ── Footer ── */
.footer { padding: var(--space-xl) 0 var(--space-lg); border-top: 1px solid var(--border); background: rgba(8, 9, 8, 0.9); backdrop-filter: blur(10px); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-lg); margin-bottom: var(--space-lg); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-logo-img { height: 36px; margin-bottom: var(--space-sm); }
.footer-tagline, .footer-location { font-size: 1rem; color: var(--text-dim); }
.footer-heading { font-size: 1.1rem; color: var(--accent); margin-bottom: var(--space-sm); }
.footer-link { font-size: 1rem; color: var(--text-secondary); display: block; margin-bottom: 0.3rem; }
.footer-link:hover { color: var(--text-primary); transform: translateX(2px); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: var(--space-md); border-top: 1px solid var(--border); }
@media (max-width: 768px) { .footer-bottom { flex-direction: column; text-align: center; } }
.footer-copyright, .footer-motto { font-size: 0.95rem; color: var(--text-dim); }

/* ── Modal ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(8,9,8,0.9); backdrop-filter: blur(10px); z-index: 10000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: 0.3s; padding: var(--space-md); }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-container { background: var(--bg-surface); border: 1px solid var(--border); width: 100%; max-width: 800px; max-height: 90vh; overflow-y: auto; transform: translateY(20px); transition: 0.3s; position: relative; }
.modal-overlay.active .modal-container { transform: translateY(0); }
.modal-close { position: absolute; top: var(--space-sm); right: var(--space-sm); width: 32px; height: 32px; background: none; border: none; color: var(--text-primary); font-size: 2rem; cursor: pointer; z-index: 2; }
.modal-close:hover { color: var(--accent); }
.modal-content { display: grid; grid-template-columns: 1fr 1.2fr; min-height: 350px; }
@media (max-width: 768px) { .modal-content { grid-template-columns: 1fr; } }
.modal-image-wrapper { position: relative; }
.modal-image { width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%); }
.modal-details { padding: var(--space-lg); display: flex; flex-direction: column; }
.modal-title { font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: var(--space-sm); color: var(--accent); }
.modal-body { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: var(--space-md); }
.modal-schedule { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: var(--space-lg); }
.schedule-item { display: flex; align-items: center; gap: 0.5rem; }
.schedule-day { font-size: 1rem; color: var(--accent); border: 1px solid var(--accent); padding: 0.1rem 0.4rem; }
.schedule-time { font-size: 1.05rem; }

/* ── Utils ── */
.back-to-top { position: fixed; bottom: var(--space-lg); right: var(--space-lg); width: 40px; height: 40px; background: var(--bg-surface); border: 1px solid var(--border); color: var(--accent); z-index: 100; opacity: 0; visibility: hidden; display: flex; justify-content: center; align-items: center; cursor: pointer; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { border-color: var(--accent); background: rgba(73,255,112,0.1); }
.reveal { opacity: 0; transform: translateY(20px); transition: 0.6s ease-out; }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.hidden-card { display: none; }
