:root {
  color-scheme: dark;
  font-family: "Inter", Arial, sans-serif;
  background: #050505;
  color: #f5f3ef;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #050505;
}

button {
  font: inherit;
}

.experience,
.intro,
.cinema,
.outro {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.experience {
  perspective: 1200px;
  background: #050505;
}

.intro {
  z-index: 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 55%, #1e1050 0%, #0d0920 45%, #060610 100%),
    radial-gradient(ellipse 40% 30% at 20% 30%, rgba(80,30,160,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 35% 25% at 80% 70%, rgba(20,100,180,0.2) 0%, transparent 70%);
  transform: scale(var(--depth, 1));
  transition: opacity 900ms ease, transform 900ms cubic-bezier(0.7, 0, 0.2, 1);
}

/* Stars container */
.intro__stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.intro__star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  animation: star-twinkle var(--s-dur, 3s) ease-in-out var(--s-delay, 0s) infinite;
}

@keyframes star-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  50%       { opacity: var(--s-op, 0.7); transform: scale(1); }
}

.intro__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
}

/* Entrance animations */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Big EDGE title */
.intro__title {
  margin: 0 0 18px;
  font-size: clamp(96px, 18vw, 220px);
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  background: linear-gradient(135deg, #c084fc 0%, #818cf8 30%, #60a5fa 60%, #38bdf8 85%, #c084fc 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 60px rgba(139, 92, 246, 0.55)) drop-shadow(0 0 120px rgba(80, 100, 220, 0.3));
  opacity: 0;
  animation:
    fade-up 900ms cubic-bezier(0.16, 1, 0.3, 1) 350ms forwards,
    title-gradient-shift 6s ease-in-out 1300ms infinite,
    title-glow-pulse 4s ease-in-out 1300ms infinite;
}
@keyframes title-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}
@keyframes title-glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 55px rgba(139,92,246,0.5)) drop-shadow(0 0 110px rgba(80,100,220,0.28)); }
  50%       { filter: drop-shadow(0 0 85px rgba(167,139,250,0.75)) drop-shadow(0 0 170px rgba(96,165,250,0.4)); }
}

.intro__sub {
  margin: 0 0 28px;
  color: transparent;
  background: linear-gradient(90deg, #a78bfa, #60a5fa, #38d9d9);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(9px, 0.9vw, 12px);
  font-weight: 500;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  opacity: 0;
  animation: fade-up 800ms cubic-bezier(0.16, 1, 0.3, 1) 600ms forwards;
}

.intro__desc {
  margin: 0 auto 44px;
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: 1.7;
  letter-spacing: 0.01em;
  text-align: center;
  max-width: 560px;
  opacity: 0;
  animation: fade-up 800ms cubic-bezier(0.16, 1, 0.3, 1) 820ms forwards;
}

.enter-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 42px;
  border: 1px solid rgba(167,139,250,0.35);
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(109,40,217,0.85), rgba(79,70,229,0.85));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  box-shadow: 0 0 36px rgba(124,58,237,0.5), 0 4px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: transform 300ms ease, box-shadow 300ms ease, background 300ms ease, border-color 300ms ease;
  opacity: 0;
  animation: fade-up 700ms cubic-bezier(0.16, 1, 0.3, 1) 1060ms forwards;
}

.enter-button:hover,
.enter-button:focus-visible {
  background: linear-gradient(135deg, rgba(139,92,246,0.9), rgba(99,102,241,0.9));
  border-color: rgba(167,139,250,0.65);
  box-shadow: 0 0 60px rgba(139,92,246,0.7), 0 8px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.15);
  transform: translateY(-2px) scale(1.03);
  outline: none;
}

.intro__hint {
  display: block;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  padding-bottom: 3px;
  transition: color 250ms ease, border-color 250ms ease;
  opacity: 0;
  animation: fade-in 700ms ease 1350ms forwards;
}
.intro__hint:hover {
  color: rgba(255,255,255,0.78);
  border-color: rgba(167,139,250,0.6);
}

/* Bottom ticker */
.intro__ticker {
  position: absolute;
  bottom: 28px;
  left: 0; right: 0;
  overflow: hidden;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.22);
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.intro__ticker {
  opacity: 0;
  animation: fade-in 800ms ease 1500ms forwards;
}

.intro__ticker span {
  display: inline-block;
  animation: ticker-scroll 22s linear infinite;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Ambient orbs ── */
.intro__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.intro__orb--1 {
  width: 55vw; height: 55vw;
  top: -18vw; left: -12vw;
  background: radial-gradient(circle, rgba(108,40,217,0.22) 0%, transparent 70%);
  animation: orb-drift 14s ease-in-out infinite;
}
.intro__orb--2 {
  width: 40vw; height: 40vw;
  bottom: -10vw; right: -8vw;
  background: radial-gradient(circle, rgba(30,130,210,0.18) 0%, transparent 70%);
  animation: orb-drift 18s ease-in-out 4s infinite reverse;
}
@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(3vw, 2vw) scale(1.06); }
  66%       { transform: translate(-2vw, 3vw) scale(0.96); }
}

/* ── Scan sweep line ── */
.intro__scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.intro__scan::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, rgba(139,92,246,0.35) 30%, rgba(56,189,248,0.28) 70%, transparent 100%);
  animation: scan-sweep 9s cubic-bezier(0.4,0,0.6,1) 1.8s infinite;
}
@keyframes scan-sweep {
  0%    { top: -1px; opacity: 0; }
  4%    { opacity: 1; }
  94%   { opacity: 0.25; }
  100%  { top: 100%; opacity: 0; }
}

/* ── HUD corners ── */
.intro__corner {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fade-in 600ms ease 900ms forwards;
}
.intro__corner--tl { top: 30px; left: 30px; }
.intro__corner--tr { top: 30px; right: 30px; flex-direction: row-reverse; }
.intro__corner--bl { bottom: 58px; left: 30px; }
.intro__corner--br { bottom: 58px; right: 30px; flex-direction: row-reverse; }
.intro__corner--bl,
.intro__corner--br { animation-delay: 1100ms; }

.intro__corner-bracket {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-style: solid;
  border-color: rgba(167,139,250,0.65);
  border-width: 0;
}
.intro__corner--tl .intro__corner-bracket { border-top-width: 1.5px; border-left-width: 1.5px; }
.intro__corner--tr .intro__corner-bracket { border-top-width: 1.5px; border-right-width: 1.5px; }
.intro__corner--bl .intro__corner-bracket { border-bottom-width: 1.5px; border-left-width: 1.5px; }
.intro__corner--br .intro__corner-bracket { border-bottom-width: 1.5px; border-right-width: 1.5px; }

.intro__corner-line {
  height: 1px;
  width: 70px;
  background: linear-gradient(to right, rgba(167,139,250,0.55), rgba(167,139,250,0.05));
}
.intro__corner--tr .intro__corner-line,
.intro__corner--br .intro__corner-line {
  background: linear-gradient(to left, rgba(167,139,250,0.55), rgba(167,139,250,0.05));
}

.intro__corner-label {
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
}

/* ── Waveform bars ── */
.intro__waveform {
  display: flex;
  gap: 2.5px;
  align-items: center;
  height: 18px;
}
.intro__waveform span {
  display: block;
  width: 2.5px;
  border-radius: 2px;
  background: rgba(139,92,246,0.65);
  animation: wave-bar 1.4s ease-in-out infinite;
}
.intro__waveform span:nth-child(1)  { height: 6px;  animation-delay: 0.0s; }
.intro__waveform span:nth-child(2)  { height: 12px; animation-delay: 0.12s; }
.intro__waveform span:nth-child(3)  { height: 16px; animation-delay: 0.24s; }
.intro__waveform span:nth-child(4)  { height: 9px;  animation-delay: 0.36s; }
.intro__waveform span:nth-child(5)  { height: 18px; animation-delay: 0.48s; }
.intro__waveform span:nth-child(6)  { height: 14px; animation-delay: 0.60s; }
.intro__waveform span:nth-child(7)  { height: 8px;  animation-delay: 0.72s; }
.intro__waveform span:nth-child(8)  { height: 17px; animation-delay: 0.84s; }
.intro__waveform span:nth-child(9)  { height: 11px; animation-delay: 0.96s; }
.intro__waveform span:nth-child(10) { height: 6px;  animation-delay: 1.08s; }
@keyframes wave-bar {
  0%, 100% { transform: scaleY(0.45); opacity: 0.45; }
  50%       { transform: scaleY(1);   opacity: 1; }
}

/* ── Circuit decorations ── */
.intro__circuit {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(140px, 15vw, 240px);
  height: clamp(300px, 50vh, 600px);
  opacity: 0;
  pointer-events: none;
  animation: fade-in 1200ms ease 700ms forwards;
}
.intro__circuit--left  { left: 0; }
.intro__circuit--right { right: 0; transform: translateY(-50%) scaleX(-1); }

.cp {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw-path 2.2s ease-out 800ms forwards;
}
.cp-b { animation-duration: 2.6s; animation-delay: 900ms; }
.cp-c { stroke-dasharray: 200; stroke-dashoffset: 200; animation-duration: 1s; animation-delay: 1600ms; }
@keyframes draw-path {
  to { stroke-dashoffset: 0; }
}

.cp-pulse {
  animation: pulse-ring 2.8s ease-out 2200ms infinite;
}
.cp-pulse--d { animation-delay: 3400ms; }
@keyframes pulse-ring {
  0%    { r: 4; opacity: 0.7; }
  100%  { r: 14; opacity: 0; }
}

/* ── Logo ── */
.intro__logo {
  margin: 0 auto 10px;
  opacity: 0;
  animation: fade-up 800ms cubic-bezier(0.16,1,0.3,1) 150ms forwards, logo-glow-pulse 4s ease-in-out 1000ms infinite;
}
.intro__logo-img {
  display: block;
  width: clamp(150px, 16vw, 230px);
  height: auto;
  margin: 0 auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: high-quality;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  filter:
    drop-shadow(0 0 18px rgba(139,60,246,0.8))
    drop-shadow(0 0 40px rgba(100,40,220,0.55))
    drop-shadow(0 0 70px rgba(80,30,180,0.3));
}
@keyframes logo-glow-pulse {
  0%, 100% {
    filter:
      drop-shadow(0 0 16px rgba(139,60,246,0.75))
      drop-shadow(0 0 36px rgba(100,40,220,0.5))
      drop-shadow(0 0 65px rgba(80,30,180,0.28));
  }
  50% {
    filter:
      drop-shadow(0 0 26px rgba(167,92,255,1))
      drop-shadow(0 0 55px rgba(120,60,240,0.75))
      drop-shadow(0 0 100px rgba(90,40,200,0.45));
  }
}

.intro.is-leaving {
  opacity: 0;
  pointer-events: none;
  transform: scale(3.2);
}

.cinema {
  z-index: 2;
  overflow: hidden;
  background: #000;
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 1100ms ease, transform 1400ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.cinema.is-visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translateZ(0);
  will-change: opacity;
  filter: contrast(1.10) saturate(1.12) brightness(1.02);
  image-rendering: high-quality;
  transform: scale(1.045) translateZ(0);
  transition:
    opacity 1400ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 7s linear;
  will-change: opacity, transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.film.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

/* Smooth slow zoom on loop video */
#filmLoop.is-active {
  animation: loop-breathe 18s ease-in-out infinite;
}

@keyframes loop-breathe {
  0%   { transform: scale(1);     filter: brightness(1); }
  50%  { transform: scale(1.04);  filter: brightness(1.06); }
  100% { transform: scale(1);     filter: brightness(1); }
}

.film.is-outgoing {
  z-index: 2;
  opacity: 0;
  transform: scale(0.985);
}

.film-shade {
  z-index: 2;
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.08), transparent 70%, rgba(0, 0, 0, 0.32));
  transition: background 900ms ease;
  pointer-events: none;
}


.cinema.is-final .film-shade {
  background:
    radial-gradient(circle at 20% 45%, transparent 0, rgba(0, 0, 0, 0.08) 32%, rgba(0, 0, 0, 0.58) 100%),
    linear-gradient(to bottom, rgba(10, 0, 20, 0.12), rgba(4, 0, 8, 0.46));
  animation: shade-pulse 8s ease-in-out infinite;
}

@keyframes shade-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.75; }
}

.film-counter {
  display: none;
}

/* Sound button — bottom left */
.sound-button {
  position: absolute;
  z-index: 10;
  bottom: 32px;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50px;
  background: rgba(10,6,20,0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255,255,255,0.82);
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: border-color 250ms ease, background 250ms ease;
}

.sound-button:hover {
  border-color: rgba(180,120,255,0.5);
  background: rgba(20,10,40,0.7);
}

.sound-button__icon {
  font-size: 13px;
}

/* Skip button — top right, offset left from nav menu */
.skip-button {
  position: absolute;
  z-index: 10;
  top: 24px;
  right: 130px;
  padding: 8px 20px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50px;
  background: rgba(10,6,20,0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease, border-color 250ms ease, background 250ms ease;
}

.skip-button:hover {
  border-color: rgba(180,120,255,0.5);
  background: rgba(20,10,40,0.7);
  color: #fff;
}

.cinema.is-visible:not(.is-final) .skip-button {
  opacity: 1;
  pointer-events: auto;
}

/* Hide progress bar during video */
.cinema:not(.is-final) .progress {
  display: none;
}

.progress {
  position: absolute;
  z-index: 2;
  right: 32px;
  bottom: 28px;
  left: 32px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
}

.progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  transform: scaleX(0);
  transform-origin: left;
}

/* Nav menu — top right (shown in final state) */
.nav-menu {
  position: absolute;
  z-index: 10;
  top: 20px;
  right: 32px;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 400ms ease;
}

.nav-menu.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.nav-menu__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(10,6,20,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-menu__toggle span {
  display: block;
  width: 16px;
  height: 1px;
  background: rgba(255,255,255,0.8);
  transition: transform 300ms ease, opacity 300ms ease;
}

.nav-menu.is-open .nav-menu__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-menu.is-open .nav-menu__toggle span:nth-child(2) { opacity: 0; }
.nav-menu.is-open .nav-menu__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-menu__list {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(8,5,18,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
  transition: opacity 300ms ease, transform 350ms cubic-bezier(0.16,1,0.3,1);
}

.nav-menu.is-open .nav-menu__list {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nav-menu__list button {
  padding: 9px 14px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
  transition: background 200ms ease, color 200ms ease;
}

.nav-menu__list button:hover {
  background: rgba(180,120,255,0.15);
  color: #fff;
}

.services {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(560px, 1.38fr);
  gap: clamp(35px, 6vw, 100px);
  align-items: center;
  padding: clamp(70px, 8vw, 120px) clamp(34px, 6vw, 96px);
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 900ms ease 250ms, transform 1200ms cubic-bezier(0.16, 1, 0.3, 1) 250ms;
  pointer-events: none;
}

.services.is-visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.services__intro {
  transform: translateX(-28px);
  opacity: 0;
  transition: opacity 800ms ease 500ms, transform 900ms cubic-bezier(0.16, 1, 0.3, 1) 500ms;
}

.services.is-visible .services__intro {
  opacity: 1;
  transform: translateX(0);
}

.services__intro p {
  margin: 0 0 20px;
  color: #cda2ff;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.46em;
}

.services__intro h2 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 70px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.service-card {
  --accent: 176, 107, 255;
  position: relative;
  grid-column: span 2;
  min-height: clamp(150px, 21vh, 220px);
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  color: #fff;
  text-align: left;
  background: rgba(5, 4, 9, 0.48);
  backdrop-filter: blur(13px);
  cursor: pointer;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 650ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 350ms ease,
    background 350ms ease,
    box-shadow 350ms ease;
}

.service-card--finance {
  --accent: 72, 224, 164;
}

.service-card--web {
  --accent: 77, 169, 255;
}

.service-card--ai {
  --accent: 213, 99, 255;
  grid-column: 2 / span 2;
}

.service-card--auto {
  --accent: 255, 153, 83;
}

.services.is-visible .service-card {
  opacity: 1;
  transform: translateY(0);
}

.services.is-visible .service-card:nth-child(1) { transition-delay: 600ms; }
.services.is-visible .service-card:nth-child(2) { transition-delay: 700ms; }
.services.is-visible .service-card:nth-child(3) { transition-delay: 800ms; }
.services.is-visible .service-card:nth-child(4) { transition-delay: 900ms; }
.services.is-visible .service-card:nth-child(5) { transition-delay: 1000ms; }

.service-card::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(var(--accent), 0.32), transparent 45%),
    linear-gradient(135deg, rgba(var(--accent), 0.18), transparent 50%);
  content: "";
  opacity: 0;
  transition: opacity 350ms ease;
}

.service-card::after {
  position: absolute;
  right: -20%;
  bottom: -70%;
  width: 85%;
  aspect-ratio: 1;
  border: 1px solid rgba(var(--accent), 0.28);
  border-radius: 50%;
  content: "";
  transform: scale(0.7);
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover,
.service-card:focus-visible,
.service-card.is-selected {
  z-index: 2;
  border-color: rgba(var(--accent), 0.75);
  background: rgba(12, 7, 20, 0.68);
  box-shadow: 0 18px 65px rgba(var(--accent), 0.18);
  transform: translateY(-7px) scale(1.015);
  outline: none;
}

.service-card:hover::before,
.service-card:focus-visible::before,
.service-card.is-selected::before {
  opacity: 1;
}

.service-card:hover::after,
.service-card:focus-visible::after,
.service-card.is-selected::after {
  transform: scale(1.15);
}

.service-card__number,
.service-card__title,
.service-card__arrow,
.service-card__visual {
  position: relative;
  z-index: 1;
}

.service-card__number {
  color: rgba(255, 255, 255, 0.42);
  font-size: 8px;
  letter-spacing: 0.24em;
}

.service-card__title {
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  font-size: clamp(14px, 1.3vw, 20px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.service-card__arrow {
  position: absolute;
  top: 17px;
  right: 18px;
  font-size: 15px;
  opacity: 0.5;
  transition: opacity 300ms ease, transform 300ms ease;
}

.service-card:hover .service-card__arrow,
.service-card:focus-visible .service-card__arrow,
.service-card.is-selected .service-card__arrow {
  opacity: 1;
  transform: translate(3px, -3px);
}

.service-card__visual {
  position: absolute;
  inset: 50% 20px auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 42px;
  transform: translateY(-50%);
}

.service-card__visual i {
  display: block;
  background: rgba(var(--accent), 0.62);
  transition: 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card__visual--books {
  gap: 5px;
}

.service-card__visual--books i {
  width: 10px;
  height: 24px;
  border-radius: 1px;
}

.service-card__visual--books i:nth-child(2) { height: 34px; }
.service-card__visual--books i:nth-child(3) { height: 28px; }
.service-card--books:hover .service-card__visual i { transform: translateY(-7px); }
.service-card--books:hover .service-card__visual i:nth-child(2) { transform: translateY(2px); }

.service-card__visual--web {
  flex-wrap: wrap;
  gap: 4px;
  align-content: center;
}

.service-card__visual--web i {
  width: 38%;
  height: 12px;
  border: 1px solid rgba(var(--accent), 0.8);
  background: transparent;
}

.service-card__visual--web i:first-child { width: 80%; }
.service-card--web:hover .service-card__visual i:first-child { transform: translateX(8px); }
.service-card--web:hover .service-card__visual i:nth-child(2) { transform: translateY(5px); }

.service-card__visual--finance {
  gap: 5px;
}

.service-card__visual--finance i {
  width: 8px;
  height: 12px;
}

.service-card__visual--finance i:nth-child(2) { height: 22px; }
.service-card__visual--finance i:nth-child(3) { height: 30px; }
.service-card__visual--finance i:nth-child(4) { height: 40px; }
.service-card--finance:hover .service-card__visual i:nth-child(1) { height: 22px; }
.service-card--finance:hover .service-card__visual i:nth-child(2) { height: 30px; }
.service-card--finance:hover .service-card__visual i:nth-child(3) { height: 38px; }

.service-card__visual--ai {
  align-items: center;
}

.service-card__visual--ai i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(var(--accent), 0.8);
}

.service-card__visual--ai i:nth-child(1) { transform: translate(-25px, -12px); }
.service-card__visual--ai i:nth-child(2) { transform: translate(26px, -10px); }
.service-card__visual--ai i:nth-child(3) { transform: translate(-18px, 17px); }
.service-card__visual--ai i:nth-child(4) { transform: translate(22px, 15px); }
.service-card--ai:hover .service-card__visual { animation: ai-orbit 2.4s linear infinite; }

.service-card__visual--auto {
  gap: 0;
  align-items: center;
}

.service-card__visual--auto i {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(var(--accent), 0.8);
  border-radius: 50%;
  background: transparent;
}

.service-card__visual--auto i + i { margin-left: -4px; }
.service-card--auto:hover .service-card__visual i:nth-child(1),
.service-card--auto:hover .service-card__visual i:nth-child(3) { transform: rotate(90deg) scale(1.15); }
.service-card--auto:hover .service-card__visual i:nth-child(2) { transform: rotate(-90deg) scale(0.85); }

@keyframes ai-orbit {
  to { transform: translateY(-50%) rotate(360deg); }
}

/* ── Hotspots ── */
.hotspots {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hotspots.is-visible {
  pointer-events: auto;
}

.hotspots__layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms ease;
}

.hotspots__layer.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Pin */
.hotspot {
  position: absolute;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%) scale(0);
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  transition: opacity 400ms ease, transform 500ms cubic-bezier(0.16,1,0.3,1);
}

.hotspots.is-visible .hotspot {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.hotspots.is-visible .hotspot:nth-child(1) { transition-delay: 600ms; }
.hotspots.is-visible .hotspot:nth-child(2) { transition-delay: 800ms; }
.hotspots.is-visible .hotspot:nth-child(3) { transition-delay: 1000ms; }

.hotspot__dot {
  position: absolute;
  top: 50%; left: 50%;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #b4f0ff, #7090ff);
  box-shadow: 0 0 0 3px rgba(120,180,255,0.25), 0 0 16px rgba(100,180,255,1), 0 0 36px rgba(100,180,255,0.6);
  transform: translate(-50%,-50%);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.hotspot:hover .hotspot__dot {
  transform: translate(-50%,-50%) scale(1.35);
  box-shadow: 0 0 0 4px rgba(120,180,255,0.35), 0 0 24px rgba(120,200,255,1), 0 0 50px rgba(100,180,255,0.7);
}

.hotspot__ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(140,200,255,0.7);
  animation: hotspot-pulse 2s ease-out infinite;
}

.hotspot__ring:nth-child(1) { animation-delay: 0s; }

@keyframes hotspot-pulse {
  0%   { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Popup */
.hotspot-popup {
  position: absolute;
  z-index: 10;
  width: min(300px, 36vw);
  background: linear-gradient(160deg, rgba(10,16,40,0.96) 0%, rgba(8,12,30,0.96) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(120,160,255,0.22);
  border-top: 1px solid rgba(160,200,255,0.35);
  border-radius: 18px;
  padding: 20px 22px 18px;
  color: #e8f0ff;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9) translateY(10px);
  transition: opacity 350ms ease, transform 420ms cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 24px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(80,140,255,0.08) inset, 0 1px 0 rgba(180,220,255,0.12) inset;
}

.hotspot-popup.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

/* Smart positioning — keep inside viewport */
#buch-1 { top: 8%;  left: 54%; }
#buch-2 { top: 42%; left: 1%;  }
#buch-3 { top: 42%; left: 44%; }
#buch-s1 { top: 8%;  left: 54%; }
#buch-s2 { top: 42%; left: 1%;  }
#buch-s3 { top: 42%; left: 44%; }
#fin-1  { top: 8%;  left: 34%; }
#fin-2  { top: 36%; left: 56%; }
#fin-3  { top: 46%; left: 4%;  }
#fin-s1 { top: 8%;  left: 34%; }
#fin-s2 { top: 36%; left: 56%; }
#fin-s3 { top: 46%; left: 4%;  }
#ai-1   { top: 8%;  left: 36%; }
#ai-2   { top: 36%; left: 60%; }
#ai-3   { top: 48%; left: 4%;  }
#ai-s1  { top: 8%;  left: 36%; }
#ai-s2  { top: 36%; left: 60%; }
#ai-s3  { top: 48%; left: 4%;  }
#web-1  { top: 8%;  left: 40%; }
#web-2  { top: 36%; left: 60%; }
#web-3  { top: 48%; left: 4%;  }
#web-s1 { top: 8%;  left: 40%; }
#web-s2 { top: 36%; left: 60%; }
#web-s3 { top: 48%; left: 4%;  }

.hotspot-popup h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  padding-right: 22px;
  line-height: 1.3;
}

.hotspot-popup__tag {
  display: inline-block;
  margin: 10px 0 7px;
  padding: 3px 10px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(140,200,255,0.9);
  background: rgba(100,160,255,0.1);
  border: 1px solid rgba(100,160,255,0.2);
  border-radius: 50px;
}

.hotspot-popup ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hotspot-popup li {
  font-size: 11.5px;
  line-height: 1.6;
  color: rgba(210,225,255,0.8);
  margin-bottom: 3px;
  padding-left: 14px;
  position: relative;
}

.hotspot-popup li::before {
  content: "›";
  position: absolute;
  left: 2px;
  color: rgba(120,180,255,0.7);
  font-weight: 700;
}

.hotspot-popup__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 24px; height: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  cursor: pointer;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 200ms ease, color 200ms ease;
}

.hotspot-popup__close:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

.hotspot-popup__cta {
  display: block;
  margin-top: 14px;
  padding: 9px 16px;
  background: linear-gradient(135deg, rgba(120,80,255,0.85), rgba(80,160,255,0.85));
  border-radius: 50px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  letter-spacing: 0.03em;
  transition: opacity 200ms ease, transform 200ms ease;
}
.hotspot-popup__cta:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* Website links widget */
.site-links {
  position: absolute;
  z-index: 10;
  bottom: 32px;
  right: 32px;
}
.site-links__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 200ms ease;
}
.site-links__toggle:hover { background: rgba(255,255,255,0.14); }
.site-links__icon { font-size: 1rem; }
.site-links__panel {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 200px;
  padding: 10px;
  background: rgba(10,8,24,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 250ms ease, transform 250ms ease;
}
.site-links.is-open .site-links__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.site-links__panel a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  background: rgba(255,255,255,0.05);
  transition: background 180ms ease, color 180ms ease;
}
.site-links__panel a:hover {
  background: rgba(120,80,255,0.25);
  color: #fff;
}

/* Transform CTA button */
.detail__cta {
  position: absolute;
  z-index: 20;
  pointer-events: none;
  bottom: 36px;
  right: 36px;
  padding: 13px 26px;
  border: 1px solid rgba(140,160,255,0.4);
  border-radius: 50px;
  background: rgba(60,80,200,0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 500ms ease 1200ms, transform 500ms cubic-bezier(0.16,1,0.3,1) 1200ms,
              background 250ms ease, box-shadow 250ms ease;
  box-shadow: 0 0 24px rgba(80,120,255,0.2);
}

.hotspots.is-visible .detail__cta {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.detail__cta:hover {
  background: rgba(80,100,220,0.6);
  box-shadow: 0 0 36px rgba(100,140,255,0.4);
  border-color: rgba(160,180,255,0.7);
}

/* ── Detail video view ── */
.detail {
  position: fixed;
  inset: 0;
  z-index: 5;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.08);
  transition: opacity 900ms ease, transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Nuclear safety net: when detail is closed, NOTHING inside can intercept clicks */
.detail:not(.is-visible) * {
  pointer-events: none !important;
}

.detail.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.detail__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transform: translateZ(0);
  will-change: opacity;
  filter: contrast(1.10) saturate(1.12) brightness(1.02);
  image-rendering: high-quality;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: opacity 800ms ease;
}

.detail__video.is-active {
  opacity: 1;
}

.detail__video.is-outgoing {
  opacity: 0;
}

.detail__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.18), transparent 40%, rgba(0,0,0,0.38));
  pointer-events: none;
}

.detail__back {
  position: absolute;
  z-index: 30;
  pointer-events: none;
  top: 28px;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(10, 6, 20, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: rgba(255,255,255,0.82);
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 10px 18px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 500ms ease 400ms, transform 500ms cubic-bezier(0.16,1,0.3,1) 400ms, background 250ms ease, border-color 250ms ease;
}

.detail.is-visible .detail__back {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.detail__back:hover {
  background: rgba(20, 10, 40, 0.75);
  border-color: rgba(180,120,255,0.45);
}

.detail__back-icon {
  font-size: 14px;
}

.detail__label {
  position: absolute;
  z-index: 2;
  bottom: 48px;
  left: 42px;
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.055em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.8);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease 500ms, transform 700ms cubic-bezier(0.16,1,0.3,1) 500ms;
}

.detail.is-visible .detail__label {
  opacity: 1;
  transform: translateY(0);
}

/* Cinema zooms into the clicked room */
.cinema.is-zooming {
  transform: scale(3.5);
  opacity: 0;
  transition: opacity 700ms ease, transform 800ms cubic-bezier(0.25, 0, 0.1, 1);
}

/* Quick zoom-back when returning to menu */
.cinema.is-unzooming {
  transform: scale(1);
  opacity: 1;
  transition: opacity 500ms ease, transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Outro ── */
.outro {
  z-index: 1;
  display: grid;
  place-content: center;
  text-align: center;
  background: #050505;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 1000ms ease, transform 1200ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.outro.is-visible {
  z-index: 4;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.outro p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 9px;
  letter-spacing: 0.5em;
}

.outro h2 {
  margin: 22px 0 45px;
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.88;
}

.outro button {
  width: max-content;
  margin: auto;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  background: none;
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .intro::before {
    inset: 12px;
  }

  h1 {
    font-size: clamp(58px, 21vw, 94px);
  }

  .hint {
    right: 25px;
    bottom: 25px;
  }

  .film-counter {
    left: 22px;
  }

  .sound-button {
    right: 22px;
  }

  .progress {
    right: 22px;
    left: 22px;
  }

  .services {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 24px;
    padding: 60px 18px 35px;
  }

  .services__intro h2 {
    font-size: 36px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .service-card,
  .service-card--ai,
  .service-card--auto {
    grid-column: span 1;
    min-height: 118px;
    padding: 14px;
  }

  .service-card:last-child {
    grid-column: 1 / -1;
  }

  .service-card__title {
    right: 14px;
    bottom: 12px;
    left: 14px;
  }

  .service-card__visual {
    inset-right: 14px;
    inset-left: 14px;
    height: 32px;
  }
}

/* Final-frame hotspots — room cards overlaid on the frozen video */
.services {
  display: block;
  padding: 0;
  transform: scale(1.025);
}

.services.is-visible {
  transform: scale(1);
}

.services__intro {
  position: absolute;
  z-index: 10;
  bottom: 48px;
  left: clamp(24px, 4vw, 64px);
  display: block;
  transform: translateY(12px);
  opacity: 0;
  transition: opacity 700ms ease 600ms, transform 700ms cubic-bezier(0.16, 1, 0.3, 1) 600ms;
  pointer-events: none;
}

.services.is-visible .services__intro {
  opacity: 1;
  transform: translateY(0);
}

.services__intro p {
  margin: 0 0 6px;
  color: #cda2ff;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.46em;
}

.services__intro h2 {
  margin: 0;
  font-size: clamp(22px, 2.8vw, 42px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.92;
  text-shadow: 0 2px 20px rgba(0,0,0,0.9);
}

.service-grid {
  display: block;
}

/* Reset cards to absolute positioned room hotspots */
.service-card,
.service-card--ai,
.service-card--auto {
  position: absolute;
  min-height: 0;
  padding: 14px 16px 12px;
  border: 1px solid rgba(var(--accent), 0.35);
  border-radius: 10px;
  background: rgba(6, 4, 12, 0.52);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  clip-path: none;
  filter: none;
  transform: scale(0.92) translateY(10px);
  opacity: 0;
  box-shadow:
    0 0 0 1px rgba(var(--accent), 0.12) inset,
    0 8px 32px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(var(--accent), 0.08);
  transition:
    opacity 600ms ease,
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 300ms ease,
    box-shadow 300ms ease,
    background 300ms ease;
}

/* Room positions */
.service-card--books {
  /* Oben Mitte */
  top: 4%;
  left: 50%;
  transform: translateX(-50%) scale(0.92) translateY(10px);
  width: 22%;
}

.service-card--ai {
  /* Links */
  top: 38%;
  left: 3%;
  width: 22%;
}

.service-card--finance {
  /* Rechts */
  top: 38%;
  right: 3%;
  left: auto;
  width: 22%;
}

.service-card--web {
  /* Unten Mitte */
  top: auto;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%) scale(0.92) translateY(10px);
  width: 22%;
}

.services.is-visible .service-card {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Centered cards keep their X offset when visible */
.services.is-visible .service-card--books,
.services.is-visible .service-card--web {
  transform: translateX(-50%) scale(1) translateY(0);
}

.services.is-visible .service-card:nth-child(1) { transition-delay: 500ms; }
.services.is-visible .service-card:nth-child(2) { transition-delay: 650ms; }
.services.is-visible .service-card:nth-child(3) { transition-delay: 800ms; }
.services.is-visible .service-card:nth-child(4) { transition-delay: 950ms; }

/* Glow overlay on hover */
.service-card::before {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background:
    radial-gradient(circle at 60% 35%, rgba(var(--accent), 0.22), transparent 55%),
    linear-gradient(135deg, rgba(var(--accent), 0.12), transparent 55%);
  content: "";
  opacity: 0;
  transition: opacity 350ms ease;
}

/* Shimmer sweep */
.service-card::after {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(var(--accent), 0.18) 50%,
    transparent 70%
  );
  content: "";
  opacity: 0;
  transition: opacity 400ms ease;
}

.service-card:hover,
.service-card:focus-visible,
.service-card.is-selected {
  z-index: 2;
  border-color: rgba(var(--accent), 0.8);
  background: rgba(10, 6, 22, 0.72);
  box-shadow:
    0 0 0 1px rgba(var(--accent), 0.3) inset,
    0 12px 48px rgba(0, 0, 0, 0.65),
    0 0 36px rgba(var(--accent), 0.22);
  transform: scale(1.04) translateY(-3px);
  outline: none;
}

.service-card:hover::before,
.service-card:focus-visible::before,
.service-card.is-selected::before {
  opacity: 1;
}

.service-card:hover::after,
.service-card:focus-visible::after,
.service-card.is-selected::after {
  opacity: 1;
}

/* Card content */
.service-card__number {
  display: block;
  position: relative;
  z-index: 1;
  color: rgba(var(--accent), 0.7);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.28em;
  margin-bottom: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 400ms ease, transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card__visual {
  display: none;
}

.service-card__title {
  position: relative;
  z-index: 1;
  display: block;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: auto;
  max-width: 100%;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  color: #fff;
  font-size: clamp(13px, 1.2vw, 18px);
  font-weight: 600;
  letter-spacing: -0.025em;
  text-align: left;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
  transform: translateY(6px);
  opacity: 0;
  transition: color 300ms ease, opacity 400ms ease, transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Text erscheint nach den Kästen */
.services.is-visible .service-card__number,
.services.is-visible .service-card__title,
.services.is-visible .service-card__arrow {
  opacity: 1;
  transform: translateY(0);
}

.services.is-visible .service-card:nth-child(1) .service-card__number,
.services.is-visible .service-card:nth-child(1) .service-card__title,
.services.is-visible .service-card:nth-child(1) .service-card__arrow { transition-delay: 900ms; }

.services.is-visible .service-card:nth-child(2) .service-card__number,
.services.is-visible .service-card:nth-child(2) .service-card__title,
.services.is-visible .service-card:nth-child(2) .service-card__arrow { transition-delay: 1020ms; }

.services.is-visible .service-card:nth-child(3) .service-card__number,
.services.is-visible .service-card:nth-child(3) .service-card__title,
.services.is-visible .service-card:nth-child(3) .service-card__arrow { transition-delay: 1140ms; }

.services.is-visible .service-card:nth-child(4) .service-card__number,
.services.is-visible .service-card:nth-child(4) .service-card__title,
.services.is-visible .service-card:nth-child(4) .service-card__arrow { transition-delay: 1260ms; }

.services.is-visible .service-card:nth-child(5) .service-card__number,
.services.is-visible .service-card:nth-child(5) .service-card__title,
.services.is-visible .service-card:nth-child(5) .service-card__arrow { transition-delay: 1380ms; }

.services.is-visible .service-card:nth-child(6) .service-card__number,
.services.is-visible .service-card:nth-child(6) .service-card__title,
.services.is-visible .service-card:nth-child(6) .service-card__arrow { transition-delay: 1500ms; }

.service-card:hover .service-card__title,
.service-card:focus-visible .service-card__title,
.service-card.is-selected .service-card__title {
  color: rgb(var(--accent));
  text-shadow: 0 0 18px rgba(var(--accent), 0.6);
  transform: none;
}

.service-card__arrow {
  display: block;
  position: absolute;
  z-index: 1;
  top: 14px;
  right: 14px;
  font-size: 13px;
  opacity: 0;
  transition: opacity 280ms ease, transform 280ms ease;
}

.services.is-visible .service-card .service-card__arrow {
  opacity: 0.4;
}

.service-card:hover .service-card__arrow,
.service-card:focus-visible .service-card__arrow,
.service-card.is-selected .service-card__arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

/* Pulsing dot — room indicator */
.service-card__number::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(var(--accent), 0.9);
  box-shadow: 0 0 8px rgba(var(--accent), 0.8);
  margin-right: 7px;
  vertical-align: middle;
  animation: room-pulse 2.4s ease-in-out infinite;
}

@keyframes room-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

@media (max-width: 640px) {
  .service-card,
  .service-card--ai,
  .service-card--auto {
    padding: 10px 12px 9px;
    border-radius: 8px;
  }

  .service-card--ai   { top: 6%;  left: 2%;  width: 30%; }
  .service-card--finance { top: 2%; left: 35%; width: 30%; }
  .service-card--web  { top: 6%;  left: 68%; width: 30%; }
  .service-card--books { top: 56%; left: 2%;  width: 28%; }
  .service-card--auto { top: 54%; left: 68%; width: 30%; }

  .service-card__title {
    font-size: clamp(10px, 3vw, 14px);
  }

  .services__intro {
    bottom: 30px;
  }
}

/* ── HUD overlay — activates when video stops ── */
.hud {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

/* Corner brackets */
.hud__corner {
  position: absolute;
  width: 36px;
  height: 36px;
  opacity: 0;
  transition: opacity 500ms ease, transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hud__corner--tl {
  top: 24px; left: 24px;
  border-top: 1px solid rgba(180, 120, 255, 0.7);
  border-left: 1px solid rgba(180, 120, 255, 0.7);
  transform: translate(-12px, -12px);
}
.hud__corner--tr {
  top: 24px; right: 24px;
  border-top: 1px solid rgba(180, 120, 255, 0.7);
  border-right: 1px solid rgba(180, 120, 255, 0.7);
  transform: translate(12px, -12px);
}
.hud__corner--bl {
  bottom: 24px; left: 24px;
  border-bottom: 1px solid rgba(180, 120, 255, 0.7);
  border-left: 1px solid rgba(180, 120, 255, 0.7);
  transform: translate(-12px, 12px);
}
.hud__corner--br {
  bottom: 24px; right: 24px;
  border-bottom: 1px solid rgba(180, 120, 255, 0.7);
  border-right: 1px solid rgba(180, 120, 255, 0.7);
  transform: translate(12px, 12px);
}

.cinema.is-final .hud__corner {
  opacity: 1;
  transform: translate(0, 0);
  transition-delay: 200ms;
}

/* Scan line — sweeps down once */
.hud__scan {
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(160, 100, 255, 0.0) 15%,
    rgba(180, 120, 255, 0.55) 50%,
    rgba(160, 100, 255, 0.0) 85%,
    transparent 100%
  );
  box-shadow: 0 0 18px 4px rgba(160, 100, 255, 0.25);
  opacity: 0;
  transform: translateY(-100%);
}

.cinema.is-final .hud__scan {
  animation: hud-scan 1.6s cubic-bezier(0.4, 0, 0.6, 1) 350ms 1 forwards;
}

@keyframes hud-scan {
  0%   { opacity: 0; transform: translateY(0); }
  8%   { opacity: 1; }
  92%  { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(100vh); }
}

/* Pulsing rings in the center (like energy radiating from the EDGE logo) */
.hud__ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(160, 100, 255, 0.3);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
}

.hud__ring--1 { width: 180px; height: 180px; }
.hud__ring--2 { width: 320px; height: 320px; }
.hud__ring--3 { width: 480px; height: 480px; }

.cinema.is-final .hud__ring--1 {
  animation: hud-ring 3.2s ease-out 500ms infinite;
}
.cinema.is-final .hud__ring--2 {
  animation: hud-ring 3.2s ease-out 900ms infinite;
}
.cinema.is-final .hud__ring--3 {
  animation: hud-ring 3.2s ease-out 1300ms infinite;
}

@keyframes hud-ring {
  0%   { opacity: 0;    transform: translate(-50%, -50%) scale(0.5); }
  15%  { opacity: 0.55; }
  100% { opacity: 0;    transform: translate(-50%, -50%) scale(1.35); }
}

/* Breathing central glow */
.hud__breathe {
  position: absolute;
  top: 50%; left: 50%;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 80, 255, 0.18) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
  transition: opacity 1200ms ease 800ms;
}

.cinema.is-final .hud__breathe {
  opacity: 1;
  animation: hud-breathe 4s ease-in-out 800ms infinite;
}

@keyframes hud-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.7; }
  50%       { transform: translate(-50%, -50%) scale(1.22); opacity: 1; }
}

/* Diagonal light streaks drifting slowly */
.hud__streak {
  position: absolute;
  top: -20%; left: -30%;
  width: 1px; height: 160%;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(200, 160, 255, 0.22) 40%,
    rgba(200, 160, 255, 0.14) 60%,
    transparent 100%
  );
  filter: blur(2px);
  transform: skewX(-22deg);
  opacity: 0;
}

.cinema.is-final .hud__streak--1 {
  left: 18%;
  animation: hud-streak 9s ease-in-out 1.0s infinite;
}
.cinema.is-final .hud__streak--2 {
  left: 52%;
  animation: hud-streak 12s ease-in-out 3.5s infinite;
}
.cinema.is-final .hud__streak--3 {
  left: 78%;
  animation: hud-streak 10s ease-in-out 6.0s infinite;
}

@keyframes hud-streak {
  0%   { opacity: 0;    transform: skewX(-22deg) translateX(-40px); }
  20%  { opacity: 1; }
  80%  { opacity: 0.6; }
  100% { opacity: 0;    transform: skewX(-22deg) translateX(40px); }
}

/* Floating particles */
.hud__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hud__particle {
  position: absolute;
  bottom: 0;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: rgba(var(--p-color, 180, 130, 255), 0.75);
  box-shadow: 0 0 6px 2px rgba(var(--p-color, 180, 130, 255), 0.4);
  opacity: 0;
  animation: hud-float var(--p-dur, 6s) ease-in var(--p-delay, 0s) infinite;
}

@keyframes hud-float {
  0%   { opacity: 0;   transform: translateY(0)      scale(1); }
  10%  { opacity: 0.9; }
  80%  { opacity: 0.5; }
  100% { opacity: 0;   transform: translateY(-65vh)   scale(0.3); }
}

/* Subtle dot-grid overlay */
.hud__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(180, 130, 255, 0.18) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0;
  transition: opacity 1200ms ease 600ms;
}

.cinema.is-final .hud__grid {
  opacity: 1;
}

/* ══════════════════════════════════════════
   ROTATE PROMPT  (portrait mobile only)
══════════════════════════════════════════ */
.rotate-prompt {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #060610;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  padding: 40px 32px;
  overflow: hidden;
}

.rotate-prompt__orb {
  position: absolute;
  width: 60vw; height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,40,217,0.25) 0%, transparent 70%);
  pointer-events: none;
  animation: orb-drift 8s ease-in-out infinite;
}

.rotate-prompt__icon {
  width: 90px; height: 90px;
  filter: drop-shadow(0 0 18px rgba(139,92,246,0.7));
  animation: rp-rock 2.4s ease-in-out infinite;
}

.rotate-prompt__icon svg { width: 100%; height: 100%; }

@keyframes rp-rock {
  0%, 100% { transform: rotate(-12deg); }
  50%       { transform: rotate(12deg); }
}

.rotate-prompt__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #c084fc, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rotate-prompt__sub {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  letter-spacing: 0.02em;
}

/* Show rotate prompt on portrait mobile (phones / small tablets) */
@media (orientation: portrait) and (max-width: 768px) {
  .rotate-prompt { display: flex; }
  /* Hide the whole experience while in portrait */
  .experience    { display: none; }
}

/* ══════════════════════════════════════════
   MOBILE LANDSCAPE  (phones on their side)
══════════════════════════════════════════ */
@media (orientation: landscape) and (max-height: 520px) {

  /* ── Intro ── */
  .intro__logo        { margin-bottom: 2px; }
  .intro__logo-img    { width: clamp(50px, 9vh, 80px); }

  .intro__title {
    font-size: clamp(44px, 13vh, 80px);
    margin-bottom: 6px;
  }

  .intro__sub {
    font-size: 8px;
    letter-spacing: 0.38em;
    margin-bottom: 10px;
  }

  .intro__desc {
    font-size: 11px;
    line-height: 1.55;
    margin-bottom: 14px;
    max-width: 480px;
  }

  .enter-button {
    padding: 11px 28px;
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  /* HUD corners — smaller text & lines */
  .intro__corner        { gap: 6px; }
  .intro__corner-label  { font-size: 7px; letter-spacing: 0.25em; }
  .intro__corner-line   { width: 40px; }
  .intro__corner-bracket { width: 12px; height: 12px; }
  .intro__corner--tl  { top: 14px; left: 16px; }
  .intro__corner--tr  { top: 14px; right: 16px; }
  .intro__corner--bl  { bottom: 28px; left: 16px; }
  .intro__corner--br  { bottom: 28px; right: 16px; }

  .intro__waveform      { height: 12px; }
  .intro__waveform span { width: 2px; }

  /* Circuit lines — smaller */
  .intro__circuit { width: clamp(60px, 9vw, 120px); }

  /* Ticker */
  .intro__ticker { bottom: 8px; font-size: 7px; }

  /* ── Service cards ── */
  .service-card {
    padding: 10px 14px !important;
    min-width: 100px !important;
    max-width: 130px !important;
  }

  .service-card__number { font-size: 9px !important; }
  .service-card__title  { font-size: 11px !important; }
  .service-card__arrow  { font-size: 12px !important; }

  /* ── Skip / Nav / Sound ── */
  .skip-button  { top: 10px; right: 120px; font-size: 9px; padding: 6px 12px; }
  .nav-toggle   { top: 10px; right: 14px; width: 34px; height: 34px; }
  .sound-button { bottom: 10px; left: 14px; font-size: 9px; padding: 6px 10px; }
  .site-links   { bottom: 10px; right: 14px; }

  /* ── Detail back button ── */
  .detail__back  { top: 12px; left: 14px; padding: 7px 14px; font-size: 9px; }

  /* ── Hotspot popups — scrollable on small screens ── */
  .hotspot-popup {
    max-height: 80vh;
    overflow-y: auto;
    width: min(340px, 88vw) !important;
    font-size: 12px;
  }

  .hotspot-popup__title { font-size: 13px; }

  /* ── Nav menu ── */
  .nav-menu__panel {
    max-height: 85vh;
    overflow-y: auto;
  }
}

/* ── High-DPI / Retina sharpness boost ── */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .film {
    filter: contrast(1.12) saturate(1.14) brightness(1.01);
  }
  .detail__video {
    filter: contrast(1.12) saturate(1.14) brightness(1.01);
  }
  .intro__logo-img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* 4K / ultra-high-DPI */
@media (-webkit-min-device-pixel-ratio: 3), (min-resolution: 288dpi) {
  .film,
  .detail__video {
    filter: contrast(1.14) saturate(1.15) brightness(1.01);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
