/* ═══════════════════════════════════════════════
   LOCAL FONTS (instant load, zero network block)
   ═══════════════════════════════════════════════ */
@font-face {
  font-family: 'Inter';
  src: url('./fonts/inter-latin.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'basis33';
  src: url('./fonts/basis33.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: #000000;
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
}

.font-pixel {
  font-family: 'basis33', monospace;
}

.block { display: block; }
.font-normal { font-weight: 400; }

/* ═══════════════════════════════════════════════
   ROOT: relative h-screen w-full overflow-hidden bg-black text-white
   ═══════════════════════════════════════════════ */
.page-root {
  position: relative;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  background: #000000;
  color: #ffffff;
}

/* ═══════════════════════════════════════════════
   STAGE LAYER (Hero 1.mp4 + Sci-Fi Head VFX + Orbiting Clips)
   ═══════════════════════════════════════════════ */
.visual-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  background: #000000;
}

/* Subtle deep atmospheric aura directly behind head (matches original video rim depth) */
.head-ambient {
  position: absolute;
  width: 560px;
  height: 560px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(130, 175, 255, 0.13) 0%,
    rgba(64, 58, 132, 0.14) 36%,
    rgba(18, 22, 48, 0.08) 62%,
    rgba(0, 0, 0, 0) 76%
  );
  filter: blur(18px);
  pointer-events: none;
  z-index: 1;
}

.orbit-guide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Hero video container: JS positions exact pixel coordinates so character is dead-center
   while 1.mp4's original "IF YOU WANT IT / 渴望，那就全力以赴" text stays cleanly framed */
.hero-video-wrap {
  position: absolute;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
  /* Softly dissolve bottom & side edges into pure #000000 with zero box seam */
  -webkit-mask-image:
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 6%, rgba(0,0,0,1) 74%, rgba(0,0,0,0) 100%),
    linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 6%, rgba(0,0,0,1) 86%, rgba(0,0,0,0) 99%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 6%, rgba(0,0,0,1) 74%, rgba(0,0,0,0) 100%),
    linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 6%, rgba(0,0,0,1) 86%, rgba(0,0,0,0) 99%);
  mask-composite: intersect;
}

/* On narrow mobile screens, feather-mask off the clipped left text half of hero_1.mp4
   so only the centered anime character appears seamlessly; mobile caption renders cleanly above */
@media (max-width: 767px) {
  .hero-video-wrap {
    -webkit-mask-image:
      linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 8%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%),
      linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 58%, rgba(0,0,0,1) 64%, rgba(0,0,0,1) 88%, rgba(0,0,0,0) 98%);
    mask-image:
      linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 8%, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%),
      linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 58%, rgba(0,0,0,1) 64%, rgba(0,0,0,1) 88%, rgba(0,0,0,0) 98%);
  }
}

.mobile-hero-motto {
  display: none;
}

@media (max-width: 767px) {
  .mobile-hero-motto {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 4;
    pointer-events: none;
    padding: 0 1.25rem;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
  }
  .mobile-hero-motto .motto-en {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 11px;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
  }
  .mobile-hero-motto .motto-zh {
    margin-top: 2px;
    font-size: 10px;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.62);
  }
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Crush near-black grey haze in video to pure #000000 while keeping white ink crisp */
  filter: contrast(1.18) brightness(0.95);
  animation: heroBreathe 9s ease-in-out infinite;
  transform-origin: 74.5% 32%;
}

@keyframes heroBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.022); }
}

.vfx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

/* 3D Orbiting Holographic Video Pods */
.orbit-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  perspective: 1100px;
}

.orbit-pod {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(4, 8, 16, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.72),
    0 0 22px rgba(145, 200, 255, 0.14),
    inset 0 0 0 1px rgba(180, 225, 255, 0.08);
  pointer-events: auto;
  cursor: pointer;
  will-change: transform, opacity;
  transition: border-color 0.28s ease, box-shadow 0.28s ease;
}

.orbit-pod:hover {
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.85),
    0 0 28px rgba(165, 220, 255, 0.36),
    inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.orbit-pod video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.06) saturate(1.08);
}

/* Holographic scanline sheen + tech corner brackets */
.orbit-pod::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.045) 0px,
      rgba(255, 255, 255, 0.045) 1px,
      transparent 1px,
      transparent 3px
    ),
    linear-gradient(135deg, rgba(160, 220, 255, 0.12) 0%, transparent 45%, rgba(0, 0, 0, 0.28) 100%);
}

/* Corner reticle ticks */
.pod-corners {
  position: absolute;
  inset: 3px;
  z-index: 3;
  pointer-events: none;
}
.pod-corners::before,
.pod-corners::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  border-color: rgba(255, 255, 255, 0.72);
  border-style: solid;
}
.pod-corners::before {
  top: 0; left: 0;
  border-width: 1px 0 0 1px;
}
.pod-corners::after {
  bottom: 0; right: 0;
  border-width: 0 1px 1px 0;
}

.pod-hud {
  position: absolute;
  left: 6px;
  bottom: 4px;
  right: 6px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'basis33', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.84);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
  pointer-events: none;
}
.pod-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #7dd3fc;
  box-shadow: 0 0 6px #7dd3fc;
  margin-right: 4px;
  vertical-align: middle;
}

/* ═══════════════════════════════════════════════
   UI SHELL (exact Adam Roberts spacing & z-10)
   relative z-10 flex h-full flex-col px-5 sm:px-6 md:px-10 lg:px-14
   ═══════════════════════════════════════════════ */
.ui-shell {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-left: 1.25rem;   /* px-5 */
  padding-right: 1.25rem;
  pointer-events: none;    /* allow clicking orbiting video pods underneath open space */
}

.ui-shell a,
.ui-shell button,
.ui-shell .navbar,
.ui-shell .awards-row,
.ui-shell .footer-strip {
  pointer-events: auto;
}

/* 1. NAVBAR: flex items-center justify-between py-6 */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  flex-shrink: 0;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s ease;
}
.logo-link:hover { opacity: 0.8; }

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem; /* gap-8 */
  font-size: 0.875rem; /* text-sm */
  line-height: 1.25rem;
  letter-spacing: 0.025em; /* tracking-wide */
}

.nav-link {
  transition: opacity 0.15s ease;
}
.nav-link:hover {
  opacity: 0.7;
}

.menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem; /* p-2 */
  transition: opacity 0.15s ease;
}
.menu-trigger:hover {
  opacity: 0.7;
}

/* 2. FOUR-COLUMN META GRID
   mt-4 grid grid-cols-2 lg:grid-cols-4 gap-4 sm:gap-6 lg:gap-8 */
.meta-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  flex-shrink: 0;
}

.meta-col-right-mob {
  text-align: right;
}

.meta-heading {
  font-size: 1.125rem; /* text-lg */
  line-height: 1.25;   /* leading-tight */
  letter-spacing: 0.025em; /* tracking-wide */
  font-weight: 400;
}

.meta-pixel-name {
  font-size: 1.5rem;   /* text-2xl */
  line-height: 1.1;
  font-weight: 400;
}

.meta-asterisk {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.75rem; /* mt-3 */
  line-height: 1;
}

.meta-blurb {
  margin-top: 0.25rem; /* mt-1 */
  font-size: 0.75rem;  /* text-xs */
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.625;  /* leading-relaxed */
}

.meta-label {
  font-size: 1rem; /* text-base */
  letter-spacing: 0.1em; /* tracking-widest */
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  margin-bottom: 0.75rem; /* mb-3 */
  line-height: 1.2;
}

.meta-body,
.meta-services {
  font-size: 0.875rem; /* text-sm */
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.625;  /* leading-relaxed */
}

.meta-what-body {
  max-width: 220px;
}

.meta-services li + li {
  margin-top: 0.125rem; /* space-y-0.5 */
}

/* 3. FLEX SPACER */
.flex-spacer {
  flex: 1 1 0%;
  min-height: 0;
}

/* 4. BOTTOM SECTION (pb-4) */
.bottom-section {
  padding-bottom: 1rem;
  flex-shrink: 0;
}

.bottom-row-a {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
}

/* Hero Headline */
.hero-headline {
  font-size: 1.875rem; /* text-3xl */
  letter-spacing: 0.025em; /* tracking-wide */
  text-transform: uppercase;
  font-weight: 400;
  line-height: 0.72;
}

.hero-pixel-word {
  font-weight: 400;
  font-size: 1.25em;
  display: inline-block;
  line-height: 1;
  vertical-align: baseline;
}

/* Right actions column */
.right-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: flex-end;
}

.action-buttons-row {
  display: flex;
  align-items: stretch;
  gap: 0.625rem;
  align-self: flex-start;
}

.showreel-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem; /* gap-3 */
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.75rem 1.5rem; /* px-6 py-3 */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.05);
  transition: background-color 0.15s ease;
}
.showreel-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.showreel-label {
  font-size: 0.875rem; /* text-sm */
  letter-spacing: 0.05em; /* tracking-wider */
}

/* Matching subtle BGM toggle button */
.bgm-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0 0.85rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.bgm-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.bgm-btn.playing {
  border-color: rgba(125, 211, 252, 0.55);
  color: #ffffff;
}
.bgm-label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}
.eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}
.eq-bars i {
  display: block;
  width: 2px;
  height: 3px;
  background: currentColor;
  transition: height 0.2s ease;
}
.bgm-btn.playing .eq-bars i:nth-child(1) { animation: eq 0.8s ease-in-out infinite; }
.bgm-btn.playing .eq-bars i:nth-child(2) { animation: eq 0.6s ease-in-out 0.15s infinite; }
.bgm-btn.playing .eq-bars i:nth-child(3) { animation: eq 0.9s ease-in-out 0.3s infinite; }

@keyframes eq {
  0%, 100% { height: 3px; }
  50% { height: 11px; }
}

/* Awards row */
.awards-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  align-self: flex-start;
}

.award-chip {
  background: #0B0B0B;
  padding: 0.5rem 0.75rem; /* px-3 py-2 */
  display: flex;
  align-items: center;
  gap: 0.5rem; /* gap-2 */
}

.award-fwa {
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: -0.025em;
}
.award-aww {
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1;
}
.award-css {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: -0.025em;
}
.award-count {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
}

/* ROW B: Footer Strip */
.footer-strip {
  margin-top: 1rem; /* mt-4 */
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.5rem;
  padding-top: 1rem; /* pt-4 */
}

.footer-left,
.footer-right {
  font-size: 0.75rem; /* text-xs */
  color: rgba(255, 255, 255, 0.6);
}

.schedule-link {
  color: #ef4444; /* text-red-500 */
  transition: color 0.15s ease;
  margin-left: 2px;
}
.schedule-link:hover {
  color: #f87171; /* text-red-400 */
}

/* ═══════════════════════════════════════════════
   MOBILE FULLSCREEN MENU
   ═══════════════════════════════════════════════ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem; /* px-6 py-6 */
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 0%;
  gap: 2rem; /* gap-8 */
}

.mobile-nav-link {
  font-size: 1.5rem; /* text-2xl */
  letter-spacing: 0.1em; /* tracking-widest */
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1), transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0ms;
}

.mobile-menu.is-open .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(100ms + var(--i) * 60ms);
}

.mobile-nav-link:hover {
  opacity: 0.7;
}

/* ═══════════════════════════════════════════════
   SHOWREEL / CLIP LIGHTBOX MODAL
   ═══════════════════════════════════════════════ */
.reel-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.reel-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.reel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.reel-dialog {
  position: relative;
  z-index: 2;
  width: min(960px, 100%);
  background: #06080d;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(130, 190, 255, 0.12);
  overflow: hidden;
}

.reel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.reel-title-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7dd3fc;
  box-shadow: 0 0 8px #7dd3fc;
}

.reel-title {
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
}

.reel-close {
  padding: 0.25rem;
  color: rgba(255, 255, 255, 0.75);
  transition: opacity 0.15s ease;
}
.reel-close:hover { opacity: 1; }

.reel-video-shell {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.reel-video-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.reel-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #040508;
}

.reel-pill {
  font-family: 'basis33', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.15s ease;
}
.reel-pill:hover {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.reel-pill.active {
  border-color: rgba(125, 211, 252, 0.8);
  background: rgba(125, 211, 252, 0.12);
  color: #fff;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS (exact Tailwind defaults)
   sm: 640px | md: 768px | lg: 1024px | xl: 1280px
   ═══════════════════════════════════════════════ */
@media (min-width: 640px) {
  .ui-shell { padding-left: 1.5rem; padding-right: 1.5rem; }
  .meta-grid { gap: 1.5rem; }
  .bottom-row-a { gap: 1.5rem; }
  .hero-headline { font-size: 2.25rem; } /* text-4xl */
  .right-actions { gap: 1.5rem; }
  .awards-row { gap: 0.75rem; }
  .award-chip { padding: 0.5rem 1rem; } /* px-4 */
  .award-fwa { font-size: 1rem; }
  .award-aww { font-size: 1.25rem; }
  .award-css { font-size: 0.75rem; }
  .footer-strip {
    margin-top: 1.25rem; /* mt-5 */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  .footer-right { text-align: right; }
}

@media (min-width: 768px) {
  .ui-shell { padding-left: 2.5rem; padding-right: 2.5rem; }
  .nav-desktop { display: flex; }
  .menu-trigger { display: none; }
  .meta-heading { font-size: 1.25rem; } /* text-xl */
  .meta-pixel-name { font-size: 1.875rem; } /* text-3xl */
  .hero-headline { font-size: 3rem; } /* text-5xl */
}

@media (min-width: 1024px) {
  .ui-shell { padding-left: 3.5rem; padding-right: 3.5rem; }
  .meta-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }
  .meta-col-right-mob { text-align: left; }
  .bottom-row-a { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-headline { font-size: 3.75rem; } /* text-[3.75rem] */
  .awards-row { align-self: flex-end; }
}

@media (min-width: 1280px) {
  .hero-headline { font-size: 4.25rem; } /* text-[4.25rem] */
}

/* Keep mobile uncluttered on very small heights */
@media (max-width: 639px) {
  .meta-services { font-size: 0.75rem; line-height: 1.45; }
  .meta-body { font-size: 0.75rem; line-height: 1.45; }
  .meta-blurb { font-size: 0.68rem; line-height: 1.45; }
  .meta-label { font-size: 0.85rem; margin-bottom: 0.35rem; }
  .navbar { padding-top: 1rem; padding-bottom: 1rem; }
  .meta-grid { margin-top: 0.25rem; gap: 0.65rem; }
}
