/* The Wonderland Studio — shared shell (Idiot Box look, no scroll, no gradient) */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  height: 100dvh;
  background: black;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
}

.background {
  width: 97%;
  height: 96%;
  border-radius: 10px;
  background: white;
  position: relative;
  overflow: hidden;
}

/* video backdrop */
.bg-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 10px;
  pointer-events: none;
}
.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* giant center word */
.center-title {
  position: absolute;
  left: 50%;
  top: 44%;
  translate: -50% -50%;
  z-index: 1;
  margin: 0;
  font-family: Arial Black, Arial, sans-serif;
  font-size: clamp(48px, 10vw, 150px);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: white;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  user-select: none;
}

/* top-left studio card */
.card {
  font-family: Arial Black, Arial, sans-serif;
  z-index: 2;
  font-size: 25px;
  border-radius: 4px;
  background: black;
  color: white;
  padding: 10px 60px 10px 14px;
  position: absolute;
  left: 24px;
  top: 24px;
  text-decoration: none;
  line-height: 1.1;
}

/* top-right nav */
.nav-card {
  font-family: Arial Black, Arial, sans-serif;
  font-size: 25px;
  border-radius: 4px;
  background: black;
  color: white;
  padding: 12px 20px;
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  gap: 24px;
  align-items: center;
  z-index: 2;
}
.nav-card a { color: white; text-decoration: none; white-space: nowrap; }
.nav-card a:hover { text-decoration: underline; }
.nav-card a.active { text-decoration: underline; }
.nav-links { display: contents; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 2px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: white; border-radius: 2px; }
.menu-panel { display: none; }

/* right vertical tab */
.side-tab {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  font-family: Arial Black, Arial, sans-serif;
  font-size: 25px;
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 3px;
  writing-mode: vertical-rl;
  background: black;
  border-radius: 4px 0 0 4px;
  padding: 20px 10px;
}

/* bottom-left hero (home) */
.hero {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  max-width: 560px;
  background: black;
  color: white;
  border-radius: 4px;
  padding: 24px 28px;
}
.hero-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 10px;
}
.hero-title {
  font-family: Arial Black, Arial, sans-serif;
  font-size: clamp(26px, 4vw, 46px);
  line-height: 1.05;
  margin-bottom: 12px;
}
.hero-sub {
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.8;
  margin-bottom: 20px;
  max-width: 44ch;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  font-size: 14px; font-weight: 600;
  background: white; color: black;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 4px;
  white-space: nowrap;
}
.btn-ghost {
  font-size: 14px; font-weight: 600;
  color: white; text-decoration: none;
  padding: 12px 22px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}
.btn-primary:hover { background: #e5e5e5; }
.btn-ghost:hover { border-color: white; }

/* centered panels (sub-pages, no scroll) */
.panel-center {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  z-index: 2;
  display: flex;
  gap: 16px;
  max-width: calc(100% - 48px);
  max-height: calc(100% - 170px);
  overflow: auto;
  scrollbar-width: none;
}
.panel-center::-webkit-scrollbar { display: none; }

.proj-card {
  background: black;
  color: white;
  border-radius: 4px;
  padding: 24px;
  width: 330px;
  flex-shrink: 0;
}
.proj-card .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: white;
  color: black;
  border-radius: 20px;
  padding: 3px 10px;
  margin-bottom: 14px;
}
.proj-card h2 {
  font-family: Arial Black, Arial, sans-serif;
  font-size: 26px;
  margin-bottom: 8px;
}
.proj-card p { font-size: 14px; line-height: 1.55; opacity: 0.8; margin-bottom: 12px; }
.proj-card .meta { font-size: 12px; opacity: 0.6; margin-bottom: 16px; letter-spacing: 0.5px; }
.proj-card.loading { font-family: Arial Black, Arial, sans-serif; font-size: 20px; text-align: center; }
.proj-card .links { display: flex; gap: 10px; flex-wrap: wrap; }
.proj-card .links a { font-size: 13px; font-weight: 700; color: black; background: white; text-decoration: none; padding: 9px 16px; border-radius: 4px; }
.proj-card .links a.ghost { color: white; background: transparent; border: 1px solid rgba(255, 255, 255, 0.4); }

.about-card {
  background: black;
  color: white;
  border-radius: 4px;
  padding: 28px 30px;
  width: min(620px, calc(100vw - 48px));
  flex-shrink: 0;
}
.about-card h2 {
  font-family: Arial Black, Arial, sans-serif;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.05;
  margin-bottom: 10px;
}
.about-card > p { font-size: 14px; line-height: 1.55; opacity: 0.8; margin-bottom: 18px; max-width: 52ch; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.fact { border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 4px; padding: 10px 12px; }
.fact strong { display: block; font-size: 15px; }
.fact span { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; opacity: 0.6; }

/* ---------- responsive ---------- */
@media (max-width: 768px) {
  .card { font-size: 20px; padding: 8px 36px 8px 10px; left: 16px; top: 16px; }
  .nav-card { font-size: 14px; padding: 10px 16px; top: 16px; right: 16px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .menu-panel {
    display: none;
    flex-direction: column;
    position: absolute; top: 64px; right: 16px; z-index: 3;
    background: black; border-radius: 4px; padding: 8px; min-width: 180px;
  }
  .background.menu-open .menu-panel { display: flex; }
  .menu-panel a {
    font-family: Arial Black, Arial, sans-serif;
    font-size: 18px; color: white; text-decoration: none;
    padding: 10px 14px; white-space: nowrap;
  }
  .hero { left: 16px; bottom: 16px; max-width: min(560px, calc(100% - 32px)); padding: 20px 22px; }
  .panel-center { flex-direction: column; top: 54%; }
  .proj-card { width: min(420px, calc(100vw - 48px)); padding: 20px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .card { font-size: 15px; padding: 6px 18px 6px 8px; left: 12px; top: 12px; }
  .nav-card { top: 12px; right: 12px; padding: 6px 12px; }
  .center-title { font-size: 15vw; white-space: normal; text-align: center; line-height: 0.95; max-width: 92%; }
  .hero { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 18px; }
  .hero-title { font-size: clamp(22px, 7vw, 28px); }
  .hero-sub { font-size: 13px; }
  .btn-primary, .btn-ghost { flex: 1 1 auto; text-align: center; font-size: 13px; }
  .side-tab { font-size: 15px; padding: 14px 8px; }
  .about-card { padding: 20px; }
}
