.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  background: linear-gradient(180deg, rgba(3, 10, 4, 0.78), rgba(3, 10, 3, 0));
  pointer-events: none;
}

.nav {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--cyan);
  background: linear-gradient(135deg, rgba(182, 255, 130, 0.14), rgba(237, 255, 120, 0.1));
  box-shadow: inset 0 0 24px rgba(151, 255, 130, 0.14), 0 0 24px rgba(226, 255, 130, 0.08);
}

.brand-name {
  white-space: nowrap;
}

.nav-panel,
.nav-links,
.footer-links,
.language-switch,
.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
}

.nav-panel {
  gap: 26px;
}

.nav-links,
.footer-links {
  gap: 20px;
}

.nav-links a,
.footer-links a,
.language-switch span,
.language-switch a {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: var(--cyan);
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active,
.footer-links a:hover,
.footer-links a.is-active {
  color: var(--text);
  font-weight: 600;
}

.nav-links a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.language-switch {
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
}

.language-switch span,
.language-switch a {
  min-width: 34px;
  padding: 5px 8px;
  border-radius: 6px;
  text-align: center;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
}

.language-switch [aria-current="true"] {
  color: #031014;
  font-weight: 600;
  background: var(--cyan);
}


.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.nav-toggle span[aria-hidden="true"],
.nav-toggle span[aria-hidden="true"]::before,
.nav-toggle span[aria-hidden="true"]::after {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.nav-toggle span[aria-hidden="true"]::before {
  transform: translateY(-6px);
}

.nav-toggle span[aria-hidden="true"]::after {
  transform: translateY(4px);
}

#main {
  position: fixed;
  inset: 0;
  z-index: 10;
  perspective: 1400px;
  transform-style: preserve-3d;
  overflow: hidden;
}

.scene {
  position: absolute;
  inset: 0;
  height: 100svh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: calc(var(--header) + 18px) 0 54px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: none;
  transform-style: preserve-3d;
  isolation: isolate;
  will-change: transform, opacity, filter;
}

.scene.is-active {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.scene > .shell {
  max-height: calc(100svh - var(--header) - 72px);
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
}

.hero-grid,
.split-layout,
.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: center;
}

.hero-grid {
  grid-template-columns: minmax(420px, 0.92fr) minmax(320px, 0.78fr);
  gap: clamp(26px, 3.4vw, 46px);
}

.layer-panel,
.glass-card,
.project-feature {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(19, 37, 13, 0.78), rgba(14, 18, 6, 0.56));
  box-shadow: var(--shadow), inset 0 0 38px rgba(130, 255, 143, 0.035);
  backdrop-filter: blur(18px);
}

.scene-indicator {
  position: fixed;
  right: 26px;
  top: 50%;
  z-index: 85;
  display: grid;
  gap: 14px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: auto;
}

.scene-counter {
  writing-mode: vertical-rl;
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
}

.scene-dots {
  display: grid;
  gap: 10px;
}

.scene-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.scene-dots button.is-active {
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(130, 244, 255, 0.7);
  transform: scale(1.24);
}

.site-footer {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 72;
  display: flex;
  justify-content: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.site-footer .footer-links {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(134, 255, 156, 0.16);
  border-radius: var(--radius);
  background: rgba(3, 8, 5, 0.42);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.site-footer .footer-links a {
  color: rgba(245, 251, 255, 0.62);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-footer .footer-links a:hover {
  color: var(--cyan);
  font-weight: 500;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 48px;
  width: auto;
  display: block;
  filter:
    drop-shadow(0 0 10px rgba(170,255,120,.15))
    drop-shadow(0 0 25px rgba(170,255,120,.08));
}
