*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #0a0908;
  --text: #e8e2d8;
  --muted: #7a7570;
  --home: #e2e6ea;
  --home-glow: rgba(226, 230, 234, 0.28);
  --cloud: #5a94b0;
  --cloud-glow: rgba(90, 148, 176, 0.32);
  --shift: #9a78a8;
  --shift-glow: rgba(154, 120, 168, 0.3);
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: Verdana, Geneva, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.4;
}

/* ── Achtergrond: theater podium ── */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-base {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 60% at 50% 110%, #161412 0%, transparent 55%),
    radial-gradient(ellipse 80% 50% at 50% -10%, #121110 0%, transparent 50%),
    linear-gradient(180deg, #0a0908 0%, #0e0c0b 50%, #0a0908 100%);
}

.stage-light {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 55%;
  background: radial-gradient(ellipse at 50% 0%, rgba(226, 230, 234, 0.06) 0%, transparent 65%);
}

.spot {
  position: absolute;
  top: -5%;
  width: 28vw;
  max-width: 380px;
  height: 70vh;
  filter: blur(40px);
  opacity: 0.48;
  animation: spot-pulse 8s ease-in-out infinite;
}

.spot-home {
  left: 12%;
  background: radial-gradient(ellipse at 50% 0%, var(--home-glow) 0%, transparent 70%);
  animation-delay: 0s;
}

.spot-cloud {
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 0%, var(--cloud-glow) 0%, transparent 70%);
  animation-delay: -2s;
}

.spot-shift {
  right: 12%;
  background: radial-gradient(ellipse at 50% 0%, var(--shift-glow) 0%, transparent 70%);
  animation-delay: -4s;
}

.mesh {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 60%, rgba(100, 95, 90, 0.04) 0%, transparent 60%);
}

.orb { display: none; }

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 20%, transparent 75%);
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 85% at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.7) 100%);
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

@keyframes spot-pulse {
  0%, 100% { opacity: 0.38; }
  50% { opacity: 0.58; }
}

/* ── Layout ── */
.page {
  position: relative;
  z-index: 1;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) clamp(1rem, 4vw, 2.5rem) max(0.75rem, env(safe-area-inset-bottom));
  width: 100%;
  overflow: hidden;
}

.header {
  position: fixed;
  top: max(1.25rem, env(safe-area-inset-top));
  right: clamp(1.25rem, 4vw, 2.5rem);
  left: clamp(1.25rem, 4vw, 2.5rem);
  z-index: 2;
  text-align: right;
  animation: fade-up 0.7s ease both;
  pointer-events: none;
  overflow: visible;
  padding-bottom: 0.35em;
}

.title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  overflow: visible;
}

.title-brand {
  display: block;
  font-size: clamp(2rem, 5.5vw, 4.95rem);
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  text-shadow: 0 0 40px rgba(226, 230, 234, 0.1);
}

.title-tagline {
  display: block;
  font-size: clamp(1rem, 2.75vw, 2.475rem);
  font-weight: 400;
  line-height: 1.2;
  margin-top: -0.05em;
  color: var(--muted);
  opacity: 0.85;
  padding: 0 0.05em 0.22em 0;
  overflow: visible;
}

/* ── Tiles ── */
.links {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2.5rem;
  width: 100%;
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.65rem, 2vh, 1rem);
  flex: 0 0 auto;
  text-decoration: none;
  color: inherit;
  text-align: center;
  animation: fade-up 0.7s ease both;
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.tile-home { animation-delay: 0.1s; }
.tile-cloud { animation-delay: 0.18s; }
.tile-shift { animation-delay: 0.26s; }

.tile:hover,
.tile:focus-visible {
  transform: translateY(-8px);
  outline: none;
}

.tile-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 22.5rem;
  height: 22.5rem;
  border-radius: 2rem;
  background: rgba(12, 10, 14, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-color: rgba(255, 255, 255, 0.2);
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    color 0.35s ease,
    background 0.35s ease;
  overflow: hidden;
}

.tile-icon::after {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 45%;
  border-radius: 0 0 50% 50%;
  opacity: 0.5;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.tile-home .tile-icon {
  color: var(--home);
  box-shadow: 0 20px 60px -10px var(--home-glow), inset 0 1px 0 rgba(226, 230, 234, 0.14);
}

.tile-home .tile-icon::after {
  background: radial-gradient(ellipse at 50% 0%, var(--home-glow) 0%, transparent 70%);
}

.tile-cloud .tile-icon {
  color: var(--cloud);
  box-shadow: 0 20px 60px -10px var(--cloud-glow), inset 0 1px 0 rgba(120, 175, 200, 0.12);
}

.tile-cloud .tile-icon::after {
  background: radial-gradient(ellipse at 50% 0%, var(--cloud-glow) 0%, transparent 70%);
}

.tile-shift .tile-icon {
  color: var(--shift);
  box-shadow: 0 20px 60px -10px var(--shift-glow), inset 0 1px 0 rgba(180, 150, 195, 0.12);
}

.tile-shift .tile-icon::after {
  background: radial-gradient(ellipse at 50% 0%, var(--shift-glow) 0%, transparent 70%);
}

.tile-home:hover .tile-icon,
.tile-home:focus-visible .tile-icon {
  border-color: rgba(226, 230, 234, 0.4);
  box-shadow: 0 30px 80px -5px var(--home-glow), 0 0 50px rgba(226, 230, 234, 0.14);
  background: rgba(226, 230, 234, 0.07);
}

.tile-cloud:hover .tile-icon,
.tile-cloud:focus-visible .tile-icon {
  border-color: rgba(90, 148, 176, 0.45);
  box-shadow: 0 30px 80px -5px var(--cloud-glow), 0 0 50px rgba(90, 148, 176, 0.16);
  background: rgba(90, 148, 176, 0.08);
}

.tile-shift:hover .tile-icon,
.tile-shift:focus-visible .tile-icon {
  border-color: rgba(154, 120, 168, 0.45);
  box-shadow: 0 30px 80px -5px var(--shift-glow), 0 0 50px rgba(154, 120, 168, 0.16);
  background: rgba(154, 120, 168, 0.08);
}

.tile:hover .tile-icon::after,
.tile:focus-visible .tile-icon::after {
  opacity: 0.85;
}

.tile-icon svg {
  position: relative;
  z-index: 1;
  width: 16rem;
  height: 16rem;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3));
  opacity: 0.85;
  transition: opacity 0.35s ease, filter 0.35s ease;
}

.tile:hover .tile-icon svg,
.tile:focus-visible .tile-icon svg {
  opacity: 1;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.35));
}

.tile-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 22.5rem;
  transition: color 0.3s ease;
}

.tile-home:hover .tile-label,
.tile-home:focus-visible .tile-label { color: var(--home); }

.tile-cloud:hover .tile-label,
.tile-cloud:focus-visible .tile-label { color: var(--cloud); }

.tile-shift:hover .tile-label,
.tile-shift:focus-visible .tile-label { color: var(--shift); }

/* ── Footer ── */
.footer {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: clamp(0.68rem, 1.5vh, 0.75rem);
  color: rgba(242, 236, 228, 0.25);
  letter-spacing: 0.12em;
  animation: fade-up 0.7s ease 0.35s both;
  pointer-events: none;
}

.footer-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--home);
  box-shadow: 0 0 8px var(--home-glow);
  animation: pulse 3s ease infinite;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.35; }
}

@media (max-width: 768px) and (orientation: portrait) {
  .links {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

  .spot {
    width: 60vw;
    height: 40vh;
  }

  .spot-home { left: 5%; }
  .spot-cloud { left: 50%; }
  .spot-shift { right: 5%; }

  .tile-icon {
    width: min(16rem, 78vw);
    height: min(16rem, 78vw);
  }

  .tile-icon svg {
    width: min(11rem, 55vw);
    height: min(11rem, 55vw);
  }

  .tile-label {
    max-width: min(16rem, 78vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spot,
  .tile,
  .header,
  .footer,
  .footer-dot {
    animation: none;
  }

  .tile {
    transition: none;
  }
}
