html { scroll-behavior: smooth; }

*{margin:0;padding:0;box-sizing:border-box}
body{background:#000;color:#fff;font-family:'Barlow',sans-serif;overflow-x:hidden}
a{text-decoration:none;color:inherit}

.hero,
.capabilities,
.lumina-section {
  min-height: 100svh;
}

/* ── Liquid Glass ── */
.liquid-glass {
  background: rgba(255,255,255,0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.45) 0%,
    rgba(255,255,255,0.15) 20%,
    rgba(255,255,255,0) 40%,
    rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.15) 80%,
    rgba(255,255,255,0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.liquid-glass-strong {
  background: rgba(255,255,255,0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  border: none;
  box-shadow: 4px 4px 4px rgba(0,0,0,0.05), inset 0 1px 1px rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}
.liquid-glass-strong::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.5) 0%,
    rgba(255,255,255,0.2) 20%,
    rgba(255,255,255,0) 40%,
    rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.2) 80%,
    rgba(255,255,255,0.5) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ── Animation base ── */
.anim-in {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, filter 0.6s ease-out, transform 0.6s ease-out;
}
.anim-in.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}
.anim-in-d1 { transition-delay: 0.1s; }
.anim-in-d2 { transition-delay: 0.2s; }
.anim-in-d3 { transition-delay: 0.3s; }
.anim-in-d4 { transition-delay: 0.4s; }
.anim-in-d5 { transition-delay: 0.5s; }
.anim-in-d6 { transition-delay: 0.6s; }
.anim-in-d7 { transition-delay: 0.7s; }
.anim-in-d8 { transition-delay: 0.8s; }
.anim-in-d9 { transition-delay: 0.9s; }
.anim-in-d10 { transition-delay: 1.0s; }
.anim-in-d11 { transition-delay: 1.1s; }
.anim-in-d12 { transition-delay: 1.2s; }
.anim-in-d13 { transition-delay: 1.3s; }
.anim-in-d14 { transition-delay: 1.4s; }

/* ── BlurText word animation ── */
.blur-word {
  display: inline-block;
  margin-right: 0.28em;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(50px);
}
.blur-word.animate {
  animation: blurWordIn 0.7s ease-out forwards;
}
@keyframes blurWordIn {
  0%   { filter: blur(10px); opacity: 0; transform: translateY(50px); }
  50%  { filter: blur(5px);  opacity: 0.5; transform: translateY(-5px); }
  100% { filter: blur(0);   opacity: 1; transform: translateY(0); }
}

/* ── Card slide-up ── */
.card-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.card-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 1rem;
  left: 0; right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
}
@media (min-width: 1024px) {
  .navbar { padding: 0 4rem; }
}
.nav-logo {
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9999px;
}
.nav-logo span {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: #fff;
  font-size: 1.25rem;
  user-select: none;
}
.nav-pill {
  display: none;
  align-items: center;
  padding: 0.375rem;
  border-radius: 9999px;
}
.nav-links {
  display: flex;
  align-items: center;
}
@media (min-width: 768px) {
  .nav-pill { display: flex; }
}
.nav-pill a {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}
.nav-cta {
  background: #fff;
  color: #000;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border: none;
  cursor: pointer;
  border-radius: 9999px;
}
.nav-spacer { width: 3rem; height: 3rem; }

/* ── Hero ── */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.hero-video {
  position: absolute;
  left: 50%; top: 0;
  transform: translateX(-50%);
  object-fit: cover;
  object-position: top;
  z-index: 0;
  width: 120%; height: 100%;
  min-height: 100vh;
}
.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.hero-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(4.75rem, 8vh, 6rem) 1rem 0;
}
.hero-badge {
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
  border-radius: 9999px;
}
.hero-badge-chip {
  background: #fff;
  color: #000;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
}
.hero-badge-text {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.9);
  padding-right: 0.75rem;
}
.hero-headline {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: #fff;
  font-size: 3.75rem;
  line-height: 0.8;
  max-width: 42rem;
  letter-spacing: -4px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 0.1em;
}
@media (min-width: 768px) {
  .hero-headline { font-size: 4.5rem; }
}
@media (min-width: 1024px) {
  .hero-headline { font-size: 5.5rem; }
}
.hero-sub {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #fff;
  max-width: 42rem;
  font-weight: 300;
  line-height: 1.375;
}
@media (min-width: 768px) {
  .hero-sub { font-size: 1rem; }
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}
.hero-cta-primary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 9999px;
}
.hero-cta-secondary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #fff;
}
.hero-stats {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  margin-top: 1.25rem;
}
.stat-card {
  padding: 1.25rem;
  width: 220px;
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
}
.stat-icon {
  width: 1.75rem; height: 1.75rem;
  color: #fff;
  margin-bottom: 1rem;
}
.stat-number {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: #fff;
  font-size: 2.25rem;
  letter-spacing: -1px;
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: #fff;
  font-weight: 300;
  margin-top: 0.5rem;
}
.hero-partners {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
}
.partners-chip {
  padding: 0.25rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  border-radius: 9999px;
}
.partners-row {
  display: flex;
  align-items: center;
  gap: 3rem;
}
@media (min-width: 768px) {
  .partners-row { gap: 4rem; }
}
.partner-name {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: #fff;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}
@media (min-width: 768px) {
  .partner-name { font-size: 1.875rem; }
}

/* ── Capabilities ── */
.capabilities {
  position: relative;
  width: 100%;
  min-height: 100vh;
}
.cap-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.cap-content {
  position: relative;
  z-index: 10;
  padding: clamp(4.75rem, 8vh, 5.75rem) 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
@media (min-width: 768px) {
  .cap-content { padding: clamp(4.75rem, 8vh, 5.75rem) 4rem 1.75rem; }
}
@media (min-width: 1024px) {
  .cap-content { padding: clamp(4.75rem, 8vh, 5.75rem) 5rem 1.75rem; }
}
.cap-header { margin-bottom: 2rem; }
.cap-kicker {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
}
.cap-heading {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: #fff;
  font-size: 3.75rem;
  line-height: 0.9;
  letter-spacing: -3px;
}
@media (min-width: 768px) {
  .cap-heading { font-size: 4.5rem; }
}
@media (min-width: 1024px) {
  .cap-heading { font-size: 6rem; }
}
.cap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 0;
}
@media (min-width: 768px) {
  .cap-grid { grid-template-columns: repeat(3, 1fr); }
}
.cap-card {
  padding: 1.5rem;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
}
.cap-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
}
.cap-card-icon {
  width: 2.75rem; height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
}
.cap-card-icon svg {
  width: 1.5rem; height: 1.5rem;
  color: #fff;
}
.cap-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.375rem;
  max-width: 70%;
}
.cap-tag {
  padding: 0.25rem 0.75rem;
  font-size: 11px;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  border-radius: 9999px;
}
.cap-card-spacer { flex: 1; }
.cap-card-title {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: #fff;
  font-size: 1.875rem;
  letter-spacing: -1px;
  line-height: 1;
  margin-top: 1.5rem;
}
@media (min-width: 768px) {
  .cap-card-title { font-size: 2.25rem; }
}
.cap-card-body {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.9);
  font-weight: 300;
  line-height: 1.375;
  max-width: 32ch;
}

/* ── BorderGlow ── */
.border-glow {
  --x: 50%;
  --y: 50%;
  position: relative;
  overflow: visible;
}
.border-glow .liquid-glass::before {
  overflow: hidden;
}
.border-glow::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(
    600px circle at var(--x) var(--y),
    rgba(99, 102, 241, 0.35),
    rgba(139, 92, 246, 0.2) 30%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  pointer-events: none;
}
.border-glow:hover::after {
  opacity: 1;
}


/* ── ProfileCard ── */
.pc-card-wrapper {
  --pointer-x: 50%;
  --pointer-y: 50%;
  --pointer-from-center: 0;
  --pointer-from-top: 0.5;
  --pointer-from-left: 0.5;
  --rotate-x: 0deg;
  --rotate-y: 0deg;
  --background-x: 50%;
  --background-y: 50%;
  --inner-gradient: linear-gradient(145deg, #60496e8c 0%, #71C4FF44 100%);
  --behind-glow-color: rgba(125, 190, 255, 0.67);
  --behind-glow-size: 50%;
  position: relative;
  perspective: 600px;
}
.pc-behind {
  position: absolute;
  inset: -20px;
  border-radius: 1.25rem;
  background: radial-gradient(
    circle at var(--pointer-x) var(--pointer-y),
    var(--behind-glow-color),
    transparent var(--behind-glow-size)
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.pc-card-wrapper:hover .pc-behind { opacity: 0.6; }
.pc-card-shell {
  position: relative;
  border-radius: 1.25rem;
  transform-style: preserve-3d;
  transform: rotateY(var(--rotate-x)) rotateX(var(--rotate-y));
  transition: transform 0.15s ease-out;
}
.pc-card-shell.entering { transition: none; }
.pc-card-shell.active .pc-card { box-shadow: 0 10px 40px rgba(0,0,0,0.3); }
.pc-card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  min-height: 340px;
  display: flex;
  flex-direction: column;
}
.pc-inside {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}
.pc-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255,255,255,0.03) 45%,
    rgba(255,255,255,0.06) 50%,
    rgba(255,255,255,0.03) 55%,
    transparent 60%
  );
  background-position: calc(var(--background-x)) calc(var(--background-y));
  background-size: 200% 200%;
  pointer-events: none;
  z-index: 1;
}
.pc-glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--pointer-x) var(--pointer-y),
    rgba(255,255,255,0.15),
    transparent 60%
  );
  opacity: calc(var(--pointer-from-center) * 0.4);
  pointer-events: none;
  z-index: 2;
}
.pc-avatar-content {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pc-avatar-content .avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.15);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.pc-user-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  border-radius: 0 0 1.25rem 1.25rem;
}
.pc-user-details {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pc-mini-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
}
.pc-mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pc-user-text { display: flex; flex-direction: column; }
.pc-handle {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}
.pc-status {
  font-size: 0.625rem;
  color: rgba(255,255,255,0.5);
}
.pc-status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 4px;
  vertical-align: middle;
}
.pc-contact-btn {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.pc-contact-btn:hover {
  background: rgba(255,255,255,0.2);
}
.pc-content {
  position: relative;
  z-index: 3;
}
.pc-details h3 {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: #fff;
  font-size: 1.875rem;
  letter-spacing: -1px;
  line-height: 1;
}
.pc-details p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  margin-top: 0.25rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 5fr 7fr !important;
  }
  .footer-bottom {
    flex-direction: row !important;
  }
}

/* ── Lumina Footer ── */
.lumina-section {
  position: relative;
}
.lumina-inner {
  width: 100%;
  min-height: 100svh;
  padding-top: clamp(4.75rem, 8vh, 5.5rem);
  padding-bottom: 1rem;
}
.lumina-stage {
  padding: 0.5rem 0 1rem;
}
.lumina-panel {
  width: min(100%, 46rem);
}
.lumina-projects-grid {
  margin-top: 1.25rem !important;
}
.lumina-footer-shell {
  margin-top: 1rem !important;
}
.lumina-footer-grid {
  align-items: start;
  column-gap: clamp(2rem, 4vw, 4.5rem);
  row-gap: 1.5rem;
}
.lumina-footer-grid > div:first-child {
  max-width: 32rem;
}
.lumina-footer-links-grid {
  align-items: start;
  justify-items: start;
  column-gap: clamp(1.5rem, 2vw, 3rem);
  row-gap: 1.25rem;
}
.lumina-footer-links-grid > div {
  width: 100%;
  min-width: 0;
}
.lumina-footer-link {
  transition: color 0.2s;
}
.lumina-footer-link:hover {
  color: #fff;
}
.lumina-social-icon {
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}
.lumina-social-icon:hover {
  opacity: 1;
  color: #fff;
}
.lumina-cta-btn {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.2s;
}
.lumina-cta-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.lumina-footer-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease-out 0.4s, transform 1s ease-out 0.4s;
}
.lumina-footer-animate.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ── 自适应布局 ── */
@media (max-width: 767px) {
  .navbar { padding: 0 1rem; }
  .hero {
    min-height: 100svh;
  }
  .hero-video {
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100svh;
    transform: none;
    object-position: center top;
  }
  .hero-headline { font-size: 2.5rem; letter-spacing: -2px; }
  .hero-sub { font-size: 0.8rem; padding: 0 0.5rem; }
  .hero-ctas { flex-direction: column; gap: 1rem; }
  .hero-stats { flex-direction: column; align-items: center; }
  .stat-card { width: 100%; max-width: 280px; }
  .partners-row { gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
  .partner-name { font-size: 1.125rem; }
  .cap-video,
  #luminaVideo {
    object-position: center center;
  }
  .cap-heading { font-size: 2.5rem; }
  .cap-grid { grid-template-columns: 1fr !important; }
  .cap-card { min-height: 280px; }
  .cap-tags { max-width: 100%; }
  .pc-card-wrapper { width: 260px !important; }
  .pc-card { width: 260px !important; min-height: 360px !important; }
  .lumina-section,
  .lumina-inner {
    min-height: auto;
  }
  .lumina-inner {
    padding-top: 4.5rem;
    padding-bottom: 1rem;
  }
  .lumina-stage {
    padding: 1rem 0 0.5rem;
  }
  .lumina-projects-grid {
    gap: 0.75rem !important;
  }
  .lumina-footer-shell {
    margin-top: 1rem !important;
    padding: 1rem !important;
  }
  .lumina-footer-grid {
    gap: 1rem !important;
  }
  .lumina-footer-grid > div:first-child {
    max-width: none;
  }
  .lumina-footer-links-grid {
    gap: 0.875rem !important;
  }
  .lumina-footer-links-grid > div:last-child {
    grid-column: 1 / -1;
  }
  .lumina-footer-bottom {
    margin-top: 0.875rem !important;
    padding-top: 0.875rem !important;
    gap: 0.75rem !important;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-headline { font-size: 3.5rem; }
  .cap-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .pc-card-wrapper { width: 280px !important; }
  .pc-card { width: 280px !important; }
}

@media (min-width: 1024px) {
  .hero-headline { font-size: 4.8rem; }
  .hero-partners { padding-bottom: 1rem; }
  .cap-grid { gap: 1rem; }
  .cap-card { min-height: 300px; }
  .pc-card-wrapper,
  .pc-card {
    width: 280px !important;
  }
  .pc-card { min-height: 390px !important; }
  .lumina-stage {
    padding: 0 0 0.75rem;
  }
  #projectsTitle {
    font-size: 3.3rem !important;
  }
  #projectsSubtitle {
    margin-top: 0.75rem !important;
  }
  .lumina-projects-grid {
    gap: 0.875rem !important;
    max-width: 700px !important;
  }
  .lumina-footer-shell {
    padding: 1.25rem 1.5rem !important;
  }
  .lumina-footer-bottom {
    margin-top: 1rem !important;
    padding-top: 1rem !important;
    gap: 1rem !important;
  }
}

/* ── Lumina 自适应 ── */
@media (max-width: 767px) {
  .lumina-footer-grid { grid-template-columns: 1fr !important; }
  .lumina-footer-links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .lumina-footer-bottom { flex-direction: column !important; text-align: center; }
}


/* ── 锚点定位偏移（导航栏高度） ── */
#hero, #capabilities, #projects, #lumina, #about, #contact {
  scroll-margin-top: 80px;
}

/* ── Footer Grid 布局 ── */
.lumina-footer-grid {
  grid-template-columns: 1fr;
}
.lumina-footer-links-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .lumina-footer-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) !important;
  }
  .lumina-footer-links-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
