body.landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.landing .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
}

.landing .logo {
  width: 120px;
  height: 120px;
  opacity: 0;
  animation: fadeIn 1s ease-out 0.3s forwards;
}
.landing .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 15px var(--glow));
}
[data-theme="light"] .landing .logo img {
  filter: invert(1) drop-shadow(0 0 10px var(--glow));
}

.landing .title {
  font-family: 'VT323', monospace;
  font-size: clamp(1.8rem, 7vw, 3.5rem);
  letter-spacing: 0.12em;
  text-shadow: 0 0 25px var(--glow);
  opacity: 0;
  animation: fadeIn 0.8s ease-out 0.6s forwards;
}

/* Byline */
.landing .subtitle-byline {
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.6rem, 1.8vw, 0.75rem);
  letter-spacing: 0.2em;
  color: var(--muted);
  opacity: 0;
  animation: fadeIn 0.8s ease-out 0.9s forwards;
  margin-top: -1rem;
}

/* Portfolio CTA — animated call to action */
.landing .portfolio-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: 'VT323', monospace;
  font-size: clamp(1rem, 3.5vw, 1.4rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  border: 1px solid var(--muted);
  padding: 0.6rem 1.8rem;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 1.1s forwards, ctaPulse 3s ease-in-out 2.5s infinite;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.landing .portfolio-cta:hover {
  border-color: var(--fg);
  box-shadow: 0 0 15px var(--glow), 0 0 30px var(--glow);
}
.landing .portfolio-cta:hover .portfolio-cta-arrow {
  transform: translateX(4px);
}
.landing .portfolio-cta:hover .portfolio-cta-text {
  animation: hoverGlitch 0.3s steps(2);
  text-shadow: 1px 0 rgba(255,0,0,0.3), -1px 0 rgba(0,255,255,0.3);
}

/* Arrow animation */
.landing .portfolio-cta-arrow {
  transition: transform 0.3s ease;
  animation: arrowBounce 2s ease-in-out 3s infinite;
}

/* Shimmer sweep across the CTA */
.landing .portfolio-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  animation: ctaSweep 4s ease-in-out 3s infinite;
}
[data-theme="light"] .landing .portfolio-cta::before {
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.04), transparent);
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255,255,255,0); border-color: var(--muted); }
  50% { box-shadow: 0 0 12px var(--glow), 0 0 25px rgba(255,255,255,0.05); border-color: var(--fg); }
}
@keyframes arrowBounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}
@keyframes ctaSweep {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}
@keyframes hoverGlitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 1px); }
  40% { transform: translate(2px, -1px); }
  60% { transform: translate(-1px, -1px); }
  80% { transform: translate(1px, 1px); }
  100% { transform: translate(0); }
}

.landing .typing-container {
  margin-top: 0.5rem;
  min-height: 2rem;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 1.2s forwards;
}
.landing .typing-text {
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.7rem, 2.2vw, 0.85rem);
  letter-spacing: 0.05em;
  color: var(--fg);
  opacity: 0.6;
}
.landing .cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--fg);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
}

.landing .lang-indicator {
  position: fixed;
  bottom: 2rem;
  font-family: 'VT323', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  opacity: 0;
  animation: fadeIn 0.8s ease-out 1.5s forwards;
}

/* Cookie modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  animation: fadeIn 0.6s ease-out 2.5s forwards;
}
.cookie-modal .modal-box {
  pointer-events: auto;
  background: var(--bg);
  border: 1px solid var(--muted);
  padding: 1.8rem 2rem;
  max-width: 440px;
  width: 90%;
  text-align: center;
}
.cookie-modal .modal-title {
  font-family: 'VT323', monospace;
  font-size: clamp(0.8rem, 2.5vw, 1rem);
  letter-spacing: 0.15em;
  color: var(--fg);
  margin-bottom: 0.8rem;
}
.cookie-modal .modal-text {
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.6rem, 1.8vw, 0.75rem);
  line-height: 1.6;
  color: var(--fg);
  opacity: 0.7;
  margin-bottom: 1.2rem;
}
.cookie-modal .modal-btn {
  font-family: 'VT323', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--fg);
  background: none;
  border: 1px solid var(--muted);
  padding: 0.35rem 1.2rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.cookie-modal .modal-btn:hover { border-color: var(--fg); }
.cookie-modal.hidden { display: none; }
