/* ================================================================
   HOME PAGE — Cinematic HKU Sunrise Hero
   Golden hour, film still quality, shallow depth of field aesthetic
   ================================================================ */

/* ---------- RESET & BODY ---------- */
.home-body {
  margin: 0;
  padding: 0;
  background: #0a0908;
  color: #fff;
  font-family: 'Barlow', 'Inter', -apple-system, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  /* Inherit transition system from style.css */
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-body.page-loaded {
  opacity: 1;
}

.home-body.page-leaving {
  opacity: 0;
  pointer-events: none;
}

/* Override inner-page background on Home — Home has its own hero image */
.home-body::before,
.home-body::after {
  display: none !important;
  content: none !important;
}

/* ========== LIQUID GLASS (nav) ========== */
.liquid-glass {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: none;
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.25) 0%,
    rgba(255,255,255,0.08) 40%,
    transparent 60%,
    rgba(255,255,255,0.06) 80%,
    rgba(255,255,255,0.18) 100%
  );
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ========== HERO BACKGROUND LAYER ========== */
.hero-bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Main image */
.hero-bg-img {
  position: absolute;
  inset: -20%;
  width: 140%;
  height: 140%;
  object-fit: cover;
  object-position: center 35%;
  /* Slight zoom + parallax ready */
  transform-origin: center center;
}

/* Dark overlay for text readability */
.bg-overlay-dark {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,9,8,0.35) 0%,
    rgba(10,9,8,0.2) 30%,
    rgba(10,9,8,0.25) 55%,
    rgba(10,9,8,0.6) 85%,
    rgba(10,9,8,0.82) 100%
  );
  pointer-events: none;
}

/* Vignette */
.bg-overlay-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 65% at center 50% 45%,
    transparent 20%,
    rgba(8,7,5,0.15) 55%,
    rgba(8,7,5,0.45) 85%,
    rgba(3,2,1,0.75) 100%
  );
  pointer-events: none;
}

/* Warm golden gradient tint */
.bg-overlay-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,
      rgba(200,140,70,0.04) 0%,
      transparent 35%,
      transparent 65%,
      rgba(180,120,60,0.03) 100%
    ),
    linear-gradient(to bottom,
      rgba(220,160,80,0.05) 0%,
      transparent 25%,
      transparent 70%,
      rgba(15,12,8,0.4) 100%
    );
  pointer-events: none;
  mix-blend-mode: soft-light;
}

/* Bloom around sun area */
.bg-overlay-bloom {
  position: absolute;
  top: -10%;
  left: 30%;
  width: 50%;
  height: 55%;
  background: radial-gradient(
    ellipse at center,
    rgba(255,210,130,0.08) 0%,
    rgba(255,190,100,0.04) 25%,
    transparent 60%
  );
  pointer-events: none;
}

/* Film grain */
.grain-layer {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  mix-blend-mode: overlay;
}

/* ========== NAVIGATION ========== */
.nav-home {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  padding: 24px 48px;
  transition: all 0.4s ease;
}
.nav-home.scrolled {
  background: rgba(10,9,8,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-home-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.nav-home-logo {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
}
.logo-dot {
  color: #D4943A;
  font-weight: 300;
}

/* Nav pill */
.nav-home-center {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px 8px;
  border-radius: 999px;
}
.nav-home-center a {
  font-family: 'Barlow', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  padding: 6px 13px;
  border-radius: 999px;
  transition: color 0.22s ease, background 0.22s ease;
  white-space: nowrap;
}
.nav-home-center a:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
}

/* CTA */
.nav-home-cta {
  font-family: 'Barlow', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  padding: 9px 20px;
  border-radius: 999px;
  transition: color 0.22s ease, background 0.22s ease, box-shadow 0.3s ease;
}
.nav-home-cta:hover {
  color: #fff;
  background: rgba(212,148,58,0.12);
  box-shadow: 0 0 20px rgba(212,148,58,0.08);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  z-index: 60;
}
.nav-hamburger span {
  width: 20px;
  height: 1.5px;
  background: #fff;
  border-radius: 1px;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 20px 48px 28px;
  background: rgba(10,9,8,0.92);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-top: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 18px 46px rgba(0,0,0,0.28);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.05);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.nav-mobile a:hover { color: #fff; padding-left: 8px; }

/* ========== HERO CONTAINER ========== */
.hero-container {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 48px;
  padding-top: 110px;
  padding-bottom: 44px;
}

/* ========== HEADLINE ========== */
.hero-headline {
  max-width: 700px;
  align-self: center;
  text-align: center;
}

.hero-accent-line {
  width: 36px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(212,148,58,0.6), transparent);
  margin: 0 auto 28px;
  animation: accentLineIn 1.4s ease-out both;
}

@keyframes accentLineIn {
  from { width: 0; opacity: 0; }
  to { width: 36px; opacity: 1; }
}

/* ===== CHINESE NAME — dominant, serif, warm glow ===== */
.hero-name-cn {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(52px, 8vw, 110px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.12em;
  color: #fff;
  margin: 0 0 10px;
  text-shadow:
    0 0 60px rgba(212,148,58,0.15),
    0 2px 30px rgba(0,0,0,0.4),
    0 0 100px rgba(0,0,0,0.2);
  animation: titleFadeUp 1.2s cubic-bezier(0.16,1,0.3,1) 0.15s both;
}

/* ===== ENGLISH NAME — wide tracked, crisp white with red glow ===== */
.hero-name-en {
  font-family: 'Inter', sans-serif;
  font-size: clamp(18px, 2.8vw, 34px);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: 0.45em;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 24px;
  text-shadow:
    0 0 30px rgba(160, 64, 64, 0.25),
    0 2px 20px rgba(0, 0, 0, 0.55),
    0 1px 4px rgba(0, 0, 0, 0.8);
  animation: titleFadeUp 1.2s cubic-bezier(0.16,1,0.3,1) 0.3s both;
}

.name-space {
  display: inline-block;
  width: 0.3em;
}

/* ===== MOTTO — smaller, below the name ===== */
.hero-motto {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(16px, 2.2vw, 24px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.82);
  margin: 0 0 6px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5), 0 2px 24px rgba(0,0,0,0.3);
  animation: subtitleFadeUp 1.2s cubic-bezier(0.16,1,0.3,1) 0.45s both;
}

.hero-motto-en {
  font-family: 'Inter', sans-serif;
  font-size: clamp(12px, 1.5vw, 16px);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.55);
  margin: 0 0 28px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
  font-style: italic;
  animation: subtitleFadeUp 1.2s cubic-bezier(0.16,1,0.3,1) 0.55s both;
}

@keyframes subtitleFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Barlow', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.72);
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5), 0 2px 20px rgba(0,0,0,0.3);
  background: rgba(0,0,0,0.2);
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  animation: tagFadeIn 1s ease 0.55s both;
}

.tag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #A04040;
  box-shadow: 0 0 10px rgba(160,64,64,0.5);
  animation: dotPulse 3.5s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px rgba(160,64,64,0.5); }
  50% { opacity: 0.4; box-shadow: 0 0 18px rgba(160,64,64,0.2); }
}

@keyframes tagFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== BOTTOM BLOCK ========== */
.hero-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  align-self: center;
  max-width: 600px;
  text-align: center;
}

.hero-quote {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.85;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.88);
  animation: bottomFadeUp 1.1s cubic-bezier(0.16,1,0.3,1) 0.7s both;
}
.quote-fade {
  color: rgba(255,255,255,0.45);
}

@keyframes bottomFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* CTA Button */
.hero-btn {
  position: relative;
  display: inline-block;
  background: rgba(255,255,255,0.92);
  color: #111;
  font-family: 'Barlow', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  padding: 15px 34px;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.3s ease,
              background 0.2s ease;
  animation: btnFadeUp 1.1s cubic-bezier(0.16,1,0.3,1) 0.85s both;
}

.hero-btn:hover {
  transform: scale(1.03) translateY(-1px);
  box-shadow: 0 8px 36px rgba(212,148,58,0.2), 0 0 60px rgba(255,200,120,0.1);
  background: #fff;
}
.hero-btn:active {
  transform: scale(0.97);
}

@keyframes btnFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tagline */
.hero-tagline {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Barlow', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  animation: taglineFadeIn 1s ease 1s both;
}
.hero-tagline svg { opacity: 0.4; stroke: currentColor; }

@keyframes taglineFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========== SCROLL INDICATOR ========== */
.scroll-indicator {
  position: fixed;
  bottom: 44px;
  right: 48px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  animation: fadeIn 1s ease 1.2s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.12);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.6);
  animation: scrollDownAnim 2.8s ease-in-out infinite;
}

@keyframes scrollDownAnim {
  0% { top: -20px; opacity: 0; }
  40% { opacity: 1; }
  100% { top: 40px; opacity: 0; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .nav-home-center { display: none; }
  .nav-home-cta { display: none; }
  .nav-hamburger { display: flex; }
  .hero-container { padding-left: 32px; padding-right: 32px; }
}

@media (max-width: 768px) {
  .nav-home { padding: 18px 24px; }
  .hero-container {
    padding-top: 96px;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 36px;
  }
  .hero-name-cn { font-size: clamp(42px, 12vw, 68px); letter-spacing: 0.08em; }
  .hero-name-en { font-size: clamp(14px, 3.5vw, 22px); letter-spacing: 0.35em; }
  .hero-motto { font-size: clamp(14px, 3vw, 18px); }
  .hero-motto-en { font-size: clamp(11px, 2.5vw, 14px); }
  .hero-tag { font-size: 9px; }
  .hero-btn { font-size: 11px; padding: 13px 26px; }
  .hero-tagline { font-size: 8px; gap: 6px; }
  .scroll-indicator { right: 24px; bottom: 36px; }
}

@media (max-width: 480px) {
  .nav-home { padding: 14px 16px; }
  .nav-mobile {
    padding: 14px 20px 22px;
    max-height: calc(100vh - 58px);
    overflow-y: auto;
  }
  .nav-mobile a {
    padding: 13px 0;
  }
  .hero-container {
    padding-top: 80px;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 28px;
  }
  .hero-accent-line { margin-bottom: 20px; }
  .hero-name-cn { font-size: 38px; letter-spacing: 0.06em; }
  .hero-name-en { font-size: 13px; letter-spacing: 0.3em; }
  .hero-motto { font-size: 13px; }
  .hero-motto-en { font-size: 10px; }
  .hero-tag { font-size: 8px; gap: 6px; flex-wrap: wrap; justify-content: center; }
  .hero-bottom { gap: 16px; }
  .hero-quote { font-size: 12px; line-height: 1.7; }
  .hero-btn { padding: 12px 24px; font-size: 10px; }
  .hero-tagline { font-size: 7px; }
  .scroll-indicator { right: 16px; bottom: 28px; }
  .scroll-line { height: 28px; }
}
