/* DIN-style open font (Barlow), self-hosted. */
@font-face { font-family: 'Barlow'; src: url('/fonts/barlow-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('/fonts/barlow-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('/fonts/barlow-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('/fonts/barlow-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

/* SpaceX-inspired shell: black, full-bleed panels, uppercase micro-type, square outline buttons. */
:root {
  --bg: #000000;
  --fg: #f0f0fa;
  --muted: rgba(240, 240, 250, 0.62);
  --accent: #f0f0fa;
  --line: rgba(240, 240, 250, 0.16);
  --card: rgba(255, 255, 255, 0.03);
  --wrap: 1400px;
  --nav-h: 64px;
  --font: 'Barlow', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  --font-bold: 'Barlow', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #000;
  color: var(--fg);
  font: 16px/1.625 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }

/* ---------------- nav ---------------- */

.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 60;
  display: flex; align-items: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.35) 70%, transparent 100%);
  border: 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav.is-scrolled { background: linear-gradient(180deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.92) 74%, rgba(0, 0, 0, 0) 100%); }
.nav__inner {
  width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__brand {
  font-family: var(--font-bold); font-size: 15px; font-weight: 700;
  letter-spacing: 0.34em; text-transform: uppercase; color: #fff;
}
.nav__links { display: flex; gap: 24px; }
.nav__links a {
  font-size: 13px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  line-height: 0.94; color: rgba(240, 240, 250, 0.9); transition: color 0.2s ease;
}
.nav__links a:hover, .nav__links a.is-active { color: #fff; }

/* desktop hover submenu (SpaceX pattern) */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { display: inline-flex; align-items: center; gap: 6px; }
.nav-item__chev { font-size: 9px; opacity: 0.55; transition: transform 0.2s ease; }
.nav-item:hover .nav-item__chev, .nav-item.is-open .nav-item__chev { transform: rotate(180deg); }
.nav-item__panel {
  position: absolute; top: calc(100% + 14px); left: -18px; min-width: 236px;
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px 22px 20px;
  background: rgba(0, 0, 0, 0.92);
  border: 1px solid rgba(240, 240, 250, 0.14);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
.nav-item__panel::before {
  content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
}
.nav-item:hover .nav-item__panel,
.nav-item:focus-within .nav-item__panel,
.nav-item.is-open .nav-item__panel { opacity: 1; visibility: visible; transform: none; }
.nav-item__panel a {
  font-size: 12px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: none; color: rgba(240, 240, 250, 0.72);
  transition: color 0.2s ease;
}
.nav-item__panel a:hover { color: #fff; }
.nav__cta {
  border: 1px solid rgba(240, 240, 250, 0.35);
  padding: 13px 20px; font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: #fff;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.nav__cta:hover { background: #fff; color: #000; border-color: #fff; }

/* right-side dropdown, like SpaceX's "UPCOMING LAUNCHES" */
.nav__drop { position: relative; }
.nav__drop-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  min-width: 208px; padding: 12px 16px;
  border: 1px solid rgba(240, 240, 250, 0.35); border-radius: 6px; background: transparent;
  color: #fff; font-family: inherit; font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.nav__drop-btn:hover { background: rgba(255, 255, 255, 0.08); }
.nav__drop-btn .chev { font-size: 11px; transition: transform 0.25s ease; }
.nav__drop.is-open .nav__drop-btn { background: #fff; color: #000; border-color: #fff; }
.nav__drop.is-open .nav__drop-btn .chev { transform: rotate(180deg); }
.nav__drop-panel {
  position: absolute; right: 0; top: calc(100% + 1px); width: 380px;
  background: #050505; border: 1px solid rgba(240, 240, 250, 0.2);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.nav__drop.is-open .nav__drop-panel { opacity: 1; transform: none; pointer-events: auto; }
.drop-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 20px; border-bottom: 1px solid rgba(240, 240, 250, 0.1);
  transition: background 0.2s ease;
}
.drop-item:last-child { border-bottom: 0; }
.drop-item:hover { background: rgba(255, 255, 255, 0.06); }
.drop-item__meta { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(240, 240, 250, 0.5); }
.drop-item__title { font-size: 15px; font-weight: 600; letter-spacing: 0.01em; }

/* ---------------- full-bleed hero panel ---------------- */

.hero { padding: 0 !important; }
.hero .wrap { width: 100%; max-width: none; margin: 0; }
.hero-card {
  position: relative; overflow: hidden; border: 0; border-radius: 0;
  background: #050505;
  height: 100vh; height: 100svh; min-height: 720px;
  display: block; padding: 0;
  isolation: isolate;
}
.hero-card.tone-blue { background: radial-gradient(120% 90% at 18% 8%, #0b1730 0%, #04060c 55%, #000 100%); }
.hero-card.tone-violet { background: radial-gradient(120% 90% at 18% 8%, #150f2c 0%, #06040d 55%, #000 100%); }
.hero-card.tone-mint { background: radial-gradient(120% 90% at 18% 8%, #06201b 0%, #030b09 55%, #000 100%); }
.hero-card.tone-plain { background: #000; }
.hero-card__media { position: absolute; inset: 0; z-index: 0; }
.hero-card__media img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.78;
  transform: scale(1.02);
}
.hero-card.has-media::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.08) 38%, rgba(0, 0, 0, 0.82) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.66) 0%, rgba(0, 0, 0, 0.18) 55%, transparent 100%);
}
.hero-card__body {
  position: absolute; z-index: 3;
  left: 100px; bottom: 15%;
  width: 50%; max-width: 560px;
  display: flex; flex-direction: column; gap: 18px;
  min-width: 0;
}

/* per-section text placement, like SpaceX's inner-* variants */
.hero-card.pos-left-middle .hero-card__body { left: 100px; top: 50%; bottom: auto; transform: translateY(-50%); }
.hero-card.pos-left-top .hero-card__body { left: 100px; top: 18%; bottom: auto; }

.hero-card.pos-center .hero-card__body {
  left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%);
  width: min(92%, 960px); max-width: none; align-items: center;
}
.hero-card.pos-center .hero-card__body > *,
.hero-card.pos-center-top .hero-card__body > * { text-align: center !important; }
.hero-card.pos-center .actions,
.hero-card.pos-center-top .actions { justify-content: center; }
.hero-card.pos-center-top .hero-card__body {
  left: 50%; top: 16%; bottom: auto; transform: translateX(-50%);
  width: min(92%, 960px); max-width: none; align-items: center;
}

.hero-card.pos-right-bottom .hero-card__body {
  left: auto; right: 100px; bottom: 15%; align-items: flex-end;
}
.hero-card.pos-right-bottom .hero-card__body > *,
.hero-card.pos-right-middle .hero-card__body > * { text-align: right !important; }
.hero-card.pos-right-bottom .actions,
.hero-card.pos-right-middle .actions { justify-content: flex-end; }
.hero-card.pos-right-middle .hero-card__body {
  left: auto; right: 100px; top: 50%; bottom: auto; transform: translateY(-50%); align-items: flex-end;
}
.hero-card.pos-right-top .hero-card__body {
  left: auto; right: 100px; top: 18%; bottom: auto; align-items: flex-end;
}
.hero-card.pos-right-top .hero-card__body > * { text-align: right !important; }
.hero-card.pos-right-top .actions { justify-content: flex-end; }

.hero-card.pos-center-bottom .hero-card__body {
  left: 50%; bottom: 12%; top: auto; transform: translateX(-50%);
  width: min(92%, 960px); max-width: none; align-items: center;
}
.hero-card.pos-center-bottom .hero-card__body > * { text-align: center !important; }
.hero-card.pos-center-bottom .actions { justify-content: center; }

.hero-card.pos-right-bottom.has-media::after,
.hero-card.pos-right-middle.has-media::after,
.hero-card.pos-right-top.has-media::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.12) 40%, rgba(0, 0, 0, 0.85) 100%),
    linear-gradient(270deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.35) 52%, transparent 100%);
}
.hero-card.pos-center.has-media::after,
.hero-card.pos-center-top.has-media::after,
.hero-card.pos-center-bottom.has-media::after {
  background:
    radial-gradient(62% 58% at 50% 50%, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.34) 60%, rgba(0, 0, 0, 0.66) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.2) 45%, rgba(0, 0, 0, 0.85) 100%);
}
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(240, 240, 250, 0.72);
}
.el-text { overflow-wrap: anywhere; white-space: pre-line; }
.hero-title {
  text-transform: uppercase;
  text-wrap: balance;
}
.hero-sub { color: rgba(240, 240, 250, 0.68); }

.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 15px 24px; border: 1px solid rgba(240, 240, 250, 0.45);
  border-radius: 6px; background: transparent; color: #fff;
  font-family: inherit; font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: #fff; color: #000; border-color: #fff; }
.btn--primary { border-color: rgba(240, 240, 250, 0.8); }
.btn--ghost { border-color: rgba(240, 240, 250, 0.28); color: rgba(240, 240, 250, 0.82); }
.btn--light { background: #fff; color: #000; border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; }
.btn--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0;
  opacity: 0.7;
}
.btn__icon svg {
  width: 13px;
  height: 13px;
  display: block;
}
.btn--no-arrow.btn--has-icon {
  gap: 9px;
}
a[href^="mailto:"] {
  position: relative;
  cursor: copy;
}
@media (hover: hover) {
  a[href^="mailto:"]::after {
    content: '点击复制邮箱';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    z-index: 30;
    padding: 6px 10px;
    border: 1px solid rgba(240, 240, 250, 0.14);
    border-radius: 4px;
    background: #f0f0fa;
    color: #080a0e;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.2;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  a[href^="mailto:"]:hover::after,
  a[href^="mailto:"]:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 36px;
  z-index: 300;
  padding: 11px 18px;
  border: 1px solid rgba(240, 240, 250, 0.18);
  border-radius: 999px;
  background: rgba(8, 10, 14, 0.92);
  color: rgba(240, 240, 250, 0.92);
  font-size: 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.copy-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.mp-modal {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: none;
  place-items: center;
  padding: 24px;
}
.mp-modal.is-open {
  display: grid;
}
.mp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.mp-modal__panel {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  padding: 28px 26px 24px;
  border: 1px solid rgba(240, 240, 250, 0.16);
  border-radius: 14px;
  background: #0a0b0f;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  text-align: center;
}
.mp-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: rgba(240, 240, 250, 0.55);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.mp-modal__close:hover {
  color: #fff;
}
.mp-modal__eyebrow {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(240, 240, 250, 0.48);
}
.mp-modal__qr {
  display: block;
  width: min(240px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
  margin: 16px auto 14px;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
}
.mp-modal__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(240, 240, 250, 0.82);
}
.mp-modal__text span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.6;
  color: rgba(240, 240, 250, 0.48);
}
.mp-modal__scheme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 11px 18px;
  border: 1px solid rgba(240, 240, 250, 0.4);
  border-radius: 6px;
  color: #f0f0fa;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.mp-modal__scheme:hover {
  background: #fff;
  color: #000;
}
.mp-modal__scheme[hidden] {
  display: none;
}

/* ---------------- in-page sections ---------------- */

.block:not(.hero) { padding: 0; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin: 0 0 40px; max-width: 720px; }
.section-title {
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(240, 240, 250, 0.72);
}
.section-sub { font-size: 16px; color: var(--muted); }

/* cards -> sharp tiles on black */
.cards-grid { display: grid; gap: 1px; background: rgba(240, 240, 250, 0.12); border: 1px solid rgba(240, 240, 250, 0.12); }
.cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #050505; border: 0; border-radius: 0; overflow: hidden;
  display: flex; flex-direction: column;
  transition: background 0.25s ease;
}
.card:hover { background: #0b0b0d; }
.card__media { aspect-ratio: 4 / 3; position: relative; overflow: hidden; }
.card__body { padding: 28px 26px 32px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__title { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase; color: #f0f0fa; }
.card__text { margin: 0; font-size: 14px; line-height: 1.7; color: var(--muted); }
.card__link { margin-top: auto; padding-top: 18px; font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #f0f0fa; display: inline-flex; gap: 10px; }
.card__link span { transition: transform 0.2s ease; }
.card:hover .card__link span { transform: translateX(5px); }

.media-img { width: 100%; height: 100%; object-fit: cover; }
.media-fill { position: absolute; inset: 0; }
.media-fill.tone-blue { background: radial-gradient(100% 100% at 30% 20%, #12233f 0%, #05080f 60%, #000 100%); }
.media-fill.tone-violet { background: radial-gradient(100% 100% at 30% 20%, #1c1436 0%, #08060f 60%, #000 100%); }
.media-fill.tone-mint { background: radial-gradient(100% 100% at 30% 20%, #0b2a24 0%, #040c0a 60%, #000 100%); }

/* list -> editorial rows with hairlines */
.list { border-top: 1px solid var(--line); background: transparent; padding: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; }
.row {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 28px; align-items: start;
  padding: 34px 0; border-bottom: 1px solid var(--line);
  scroll-margin-top: 88px;
}
.row__index { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; color: rgba(240, 240, 250, 0.4); padding-top: 8px; }
.row__title { margin: 0 0 8px; font-size: 32px; font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase; color: #f0f0fa; }
.row__text { margin: 0; font-size: 15px; line-height: 1.75; color: var(--muted); max-width: 760px; }
.row__link { font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #f0f0fa; white-space: nowrap; padding-top: 8px; display: inline-flex; gap: 10px; }
.row__link span { transition: transform 0.2s ease; }
.row:hover .row__link span { transform: translateX(5px); }

/* tags -> outlined caps */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  padding: 12px 22px; border-radius: 0;
  background: transparent; border: 1px solid rgba(240, 240, 250, 0.28);
  color: rgba(240, 240, 250, 0.85);
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}
.pill:hover { background: #fff; color: #000; }

/* cta -> full-width black band */
.cta-card {
  border-radius: 0; padding: 96px 0 110px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  position: relative; overflow: hidden;
  background: #000; border: 0; border-top: 1px solid var(--line);
  backdrop-filter: none; box-shadow: none;
}
.cta-card__body { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.cta-title { text-transform: uppercase; }

/* gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.shot { margin: 0; position: relative; overflow: hidden; aspect-ratio: 16 / 9; border: 0; border-radius: 0; background: #050505; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption {
  position: absolute; left: 22px; bottom: 18px; font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.9);
}

/* footer: link columns like SpaceX */
.footer { margin-top: 0; border-top: 1px solid var(--line); padding: 56px 0 40px; background: #000; }
.footer__top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer__brand { font-size: 14px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: #fff; }
.footer__cols { display: flex; gap: 72px; flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 12px; min-width: 120px; }
.footer__col h4 {
  margin: 0 0 4px; font-size: 10px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(240, 240, 250, 0.42);
}
.footer__col a, .footer__col span {
  font-size: 12px; letter-spacing: 0.08em; color: rgba(240, 240, 250, 0.72);
  transition: color 0.2s ease;
}
.footer__col a:hover { color: #fff; }
.footer__bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(240, 240, 250, 0.08);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(240, 240, 250, 0.38);
}
.footer__bottom a:hover { color: #fff; }

/* ---------------- motion ---------------- */

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.12); }
}
@keyframes navIn {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}
@keyframes lineGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* in-site page change: nav stays as the anchor, each section type has a fixed direction */
body.is-page-leaving .block,
body.is-page-leaving .footer { animation: blockOut 0.34s cubic-bezier(0.5, 0, 0.9, 0.4) forwards; }
body.is-page-leaving .block--hero { animation-name: outUp; }
body.is-page-leaving .block--list { animation-name: outLeft; }
body.is-page-leaving .block--cards { animation-name: outRight; }
body.is-page-leaving .block--gallery { animation-name: outRight; }
body.is-page-leaving .block--tags { animation-name: outDown; }
body.is-page-leaving .block--cta { animation-name: outDown; }
body.is-page-leaving .footer { animation-name: outDown; animation-delay: 0.05s; }

@keyframes outUp { to { opacity: 0; transform: translate3d(0, -16%, 0) scale(0.98); filter: blur(7px); } }
@keyframes outLeft { to { opacity: 0; transform: translate3d(-10%, 0, 0) scale(0.98); filter: blur(7px); } }
@keyframes outRight { to { opacity: 0; transform: translate3d(10%, 0, 0) scale(0.98); filter: blur(7px); } }
@keyframes outDown { to { opacity: 0; transform: translate3d(0, 14%, 0) scale(0.98); filter: blur(7px); } }
@keyframes blockOut { to { opacity: 0; transform: scale(0.97); filter: blur(7px); } }

/* new content comes back from the opposite side (transition based: final state is always visible) */
body.is-page-enter .block,
body.is-page-enter .footer {
  opacity: 0;
  transform: translate3d(var(--dx, 0), var(--dy, 10%), 0) scale(1.015);
  filter: blur(9px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
body.is-page-enter.is-page-enter-active .block,
body.is-page-enter.is-page-enter-active .footer { opacity: 1; transform: none; filter: blur(0); }
body.is-page-enter .block--hero { --dx: 0; --dy: 12%; }
body.is-page-enter .block--list { --dx: 9%; --dy: 0; }
body.is-page-enter .block--cards { --dx: -9%; --dy: 0; }
body.is-page-enter .block--tags { --dx: 0; --dy: -12%; }
body.is-page-enter .block--cta { --dx: 0; --dy: -12%; }
body.is-page-enter .block--gallery { --dx: -9%; --dy: 0; }
body.is-page-enter .footer { --dx: 0; --dy: -8%; }
body.is-page-enter .block:nth-of-type(2) { transition-delay: 0.06s; }
body.is-page-enter .block:nth-of-type(3) { transition-delay: 0.12s; }
body.is-page-enter .block:nth-of-type(4) { transition-delay: 0.18s; }
body.is-page-enter .block:nth-of-type(5) { transition-delay: 0.24s; }
body.is-page-enter .footer { transition-delay: 0.3s; }

/* thin progress line under the anchor nav while a page change runs */
.nav-progress {
  position: fixed; left: 0; right: 0; top: var(--nav-h); height: 1px; z-index: 80;
  pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, rgba(240, 240, 250, 0.9) 0%, rgba(240, 240, 250, 0.35) 70%, transparent 100%);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}
.nav-progress.is-on { opacity: 1; }
.nav-progress.is-done { opacity: 0; }

/* page entrance: intro -> media -> text -> UI */
body { opacity: 1; }

.nav { transform: translateY(-100%); transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
.nav.is-visible { transform: translateY(0); }
.hero-card { opacity: 0; }
body.is-loaded .hero-card { animation: heroCardIn 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes heroCardIn {
  from { opacity: 0; transform: scale(1.04); }
  to { opacity: 1; transform: none; }
}

.hero-card__media img { animation: heroZoom 30s ease-in-out infinite alternate; will-change: transform; }
.hero-card__media video { width: 100%; height: 100%; object-fit: cover; }

/* every panel breathes at a different rate, like separate loops */
.hero:nth-of-type(2n) .hero-card__media img { animation-duration: 38s; animation-direction: alternate-reverse; }
.hero:nth-of-type(3n) .hero-card__media img { animation-duration: 46s; }
.hero:nth-of-type(3n) .hero-card__media img { transform-origin: 70% 60%; }

/* drifting atmosphere over every media panel */
.hero-card.has-media .hero-card__media::after {
  content: ''; position: absolute; inset: -15%; pointer-events: none;
  background:
    radial-gradient(38% 42% at 28% 38%, rgba(90, 140, 255, 0.12), transparent 62%),
    radial-gradient(34% 36% at 72% 66%, rgba(140, 90, 255, 0.10), transparent 60%);
  animation: hazeDrift 26s ease-in-out infinite alternate;
}
@keyframes hazeDrift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 1.5%, 0) scale(1.05); }
}

/* cards and gallery stills keep moving too */
.card__media img,
.shot img { animation: stillDrift 24s ease-in-out infinite alternate; will-change: transform; }
@keyframes stillDrift {
  from { transform: scale(1.0); }
  to { transform: scale(1.07); }
}

/* scroll-driven UI: Apple-style enter/exit with blur + stagger */
.hero-card__body > * {
  opacity: 0; transform: translateY(34px); filter: blur(10px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
body.is-loaded .hero-card__body.is-visible > * { opacity: 1; transform: none; filter: blur(0); }
body.is-loaded .hero-card__body.is-visible > *:nth-child(1) { transition-delay: 0.08s; }
body.is-loaded .hero-card__body.is-visible > *:nth-child(2) { transition-delay: 0.2s; }
body.is-loaded .hero-card__body.is-visible > *:nth-child(3) { transition-delay: 0.32s; }
body.is-loaded .hero-card__body.is-visible > *:nth-child(4) { transition-delay: 0.44s; }

.reveal-item {
  opacity: 0; transform: translateY(26px); filter: blur(6px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--reveal-i, 0) * 60ms);
}
.reveal-item.is-visible { opacity: 1; transform: none; filter: blur(0); }
body.is-edit .reveal-item { opacity: 1; transform: none; filter: none; }

/* intro curtain */
.intro {
  position: fixed; inset: 0; z-index: 200; background: #000;
  display: flex; align-items: center; justify-content: center;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s cubic-bezier(0.76, 0, 0.24, 1);
}
.intro.is-done { clip-path: inset(0 0 100% 0); }
.intro__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.intro__brand {
  font-size: 13px; letter-spacing: 0.55em; text-transform: uppercase; color: #fff;
  text-align: center; opacity: 0;
  animation: introBrand 1s 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.intro__brand em {
  display: block; margin-top: 10px; font-style: normal; font-size: 9px;
  letter-spacing: 0.62em; color: rgba(240, 240, 250, 0.42);
}
.intro__bar { width: 200px; height: 1px; background: rgba(240, 240, 250, 0.16); overflow: hidden; }
.intro__bar i {
  display: block; height: 100%; background: #f0f0fa;
  transform: scaleX(0); transform-origin: left;
  animation: introBar 1.55s 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.intro--short .intro__brand { animation-duration: 0.45s; }
.intro--short .intro__bar i { animation-duration: 0.5s; }
@keyframes introBrand {
  from { opacity: 0; letter-spacing: 0.75em; }
  to { opacity: 1; letter-spacing: 0.55em; }
}
@keyframes introBar { to { transform: scaleX(1); } }
body.is-intro { overflow: hidden; }

.eyebrow { display: inline-flex; align-items: center; }
.eyebrow::before {
  content: ''; display: inline-block; width: 26px; height: 1px;
  background: rgba(240, 240, 250, 0.5); margin-right: 12px;
  transform-origin: left center; animation: lineGrow 0.9s 0.35s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.btn::after { content: '→'; font-size: 12px; margin-left: 6px; transition: transform 0.25s ease; }
.btn:hover::after { transform: translateX(5px); }

.row, .card, .pill, .cta-card { transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease; }

@media (min-width: 861px) and (prefers-reduced-motion: no-preference) {
  html { scroll-snap-type: y proximity; }
  .hero { scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  body { opacity: 1; }
  .hero-card { opacity: 1; transform: none; }
  .hero-card__body > * { opacity: 1; transform: none; }
  .nav { transform: none; opacity: 1; }
  .intro { display: none; }
  html { scroll-snap-type: none; }
}

/* reveal: SpaceX-style fade for buttons, subtle for blocks */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* edit mode */
body.is-edit [data-eid] { cursor: grab; }
body.is-edit [data-eid]:hover { outline: 1px dashed rgba(255, 255, 255, 0.55); outline-offset: 3px; }
body.is-edit [data-eid].is-selected { outline: 2px solid #ffffff; outline-offset: 3px; }
body.is-edit .reveal { opacity: 1 !important; transform: none !important; }

body.flat-capture .hero-card { height: 760px !important; min-height: 760px !important; }

/* ---------------- mobile full-screen menu (SpaceX pattern) ---------------- */

.nav__burger {
  display: none; width: 42px; height: 42px; margin-left: 6px;
  border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: flex-end; gap: 6px; padding: 0;
}
.nav__burger span {
  display: block; width: 24px; height: 1px; background: #f0f0fa;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  display: none; position: fixed; inset: 0; z-index: 90;
  background: #000; flex-direction: column;
  padding: 0 16px 32px; overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nav-drawer.is-open { opacity: 1; visibility: visible; }
.nav-drawer__bar { display: flex; align-items: center; justify-content: space-between; height: 64px; flex: none; }
.nav-drawer__brand { font-size: 13px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: #fff; }
.nav-drawer__close {
  border: 0; background: transparent; color: #fff; font-size: 16px;
  cursor: pointer; padding: 10px; line-height: 1;
}
.nav-drawer__links { display: flex; flex-direction: column; row-gap: 35px; margin: 40px 0 0 16px; }
.nav-drawer__links > a,
.ditem__head {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: 1.125rem; font-weight: 700; line-height: 1.2;
  color: rgba(240, 240, 250, 0.8); text-transform: uppercase; letter-spacing: 0;
  border: 0; background: transparent; padding: 0; cursor: pointer; text-align: left;
  transition: color 0.2s ease;
}
.nav-drawer__links > a:hover,
.ditem__head:hover,
.ditem__head.is-open { color: #fff; }
.ditem__chev { font-size: 11px; transition: transform 0.25s ease; }
.ditem__head.is-open .ditem__chev { transform: rotate(180deg); }
.ditem__sub {
  display: flex; flex-direction: column; max-height: 0; overflow: hidden;
  margin-left: 2px; padding-left: 18px;
  border-left: 1px solid rgba(240, 240, 250, 0.14);
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.ditem__sub a {
  font-size: 0.825rem; line-height: 1.2; color: rgba(240, 240, 250, 0.8);
  padding-top: 24px; transition: color 0.2s ease;
}
.ditem__sub a:hover { color: #fff; }
.ditem.is-open .ditem__sub { max-height: 360px; }
.drawer-widget { margin: 44px 0 0 16px; display: flex; flex-direction: column; gap: 14px; }
.drawer-widget h4 {
  margin: 0 0 2px; font-size: 10px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(240, 240, 250, 0.42);
}
.drawer-widget__item { font-size: 0.825rem; color: rgba(240, 240, 250, 0.8); display: flex; gap: 10px; }
.drawer-widget__item span {
  color: rgba(240, 240, 250, 0.4); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; flex: none; padding-top: 2px;
}
.nav-drawer__foot {
  margin: auto 0 0 16px; padding-top: 32px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(240, 240, 250, 0.55);
}
body.is-locked { overflow: hidden; }

/* ---------------- responsive ---------------- */


@media (max-width: 1100px) {
  .hero-card.pos-left-bottom .hero-card__body { left: 48px; width: 62%; }
  .hero-card.pos-right-bottom .hero-card__body,
  .hero-card.pos-right-middle .hero-card__body { right: 48px; width: 62%; }
  .hero-title { font-size: 52px !important; }
}

@media (max-width: 1279px) {
  .nav__links { display: none; }
  .nav__drop { display: none; }
  .nav__burger { display: flex; }
  .nav-drawer { display: flex; }
}

@media (max-width: 860px) {
  .cards-grid.cols-3, .cards-grid.cols-2 { grid-template-columns: 1fr; }
  .row { grid-template-columns: 52px 1fr; gap: 16px; }
  .row__link { grid-column: 2; padding-top: 0; }
  .row__title { font-size: 24px; }
}

@media (max-width: 640px) {
  :root { --nav-h: 56px; }
  .wrap { width: calc(100% - 40px); }
  .hero-card { min-height: 640px; }
  .hero-card__body { left: 20px; right: 20px; top: auto; bottom: 8%; width: auto; max-width: none; transform: none; align-items: flex-start; }
  .hero-card__body > * { text-align: left !important; }
  .hero-card.pos-center .hero-card__body,
  .hero-card.pos-center-top .hero-card__body { left: 50%; right: auto; top: 50%; bottom: auto; transform: translate(-50%, -50%); width: 90%; align-items: center; }
  .hero-card.pos-center .hero-card__body > *,
  .hero-card.pos-center-top .hero-card__body > * { text-align: center !important; }
  .hero-card.pos-center-top .hero-card__body { top: 14%; transform: translateX(-50%); }
  .hero-title { font-size: 38px !important; line-height: 1.02 !important; }
  .hero-sub { font-size: 14px !important; }
  .cta-card { padding: 64px 0 72px; }
  .cta-title { font-size: 28px !important; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* nav logo lights up during a page change */
.nav__brand {
  transition: color 0.3s ease, text-shadow 0.45s ease, letter-spacing 0.45s ease;
}
.nav.is-transitioning .nav__brand {
  color: #fff;
  letter-spacing: 0.045em;
  text-shadow: 0 0 20px rgba(240, 240, 250, 0.55);
}

/* list rows leave one by one instead of as one block */
body.is-page-leaving .block--list { animation: none; }
body.is-page-leaving .block--list .row {
  animation: rowOutLeft 0.34s cubic-bezier(0.5, 0, 0.9, 0.4) forwards;
  animation-delay: calc(var(--reveal-i, 0) * 55ms);
}
@keyframes rowOutLeft {
  to { opacity: 0; transform: translate3d(-12%, 0, 0); filter: blur(6px); }
}

/* list rows alternate exit direction */
body.is-page-leaving .block--list .row:nth-child(even) { animation-name: rowOutRight; }
@keyframes rowOutRight {
  to { opacity: 0; transform: translate3d(12%, 0, 0); filter: blur(6px); }
}

/* old background stays above the new page for a moment, then crossfades */
.page-ghost {
  position: fixed; inset: 0; z-index: 5; pointer-events: none; overflow: hidden;
  opacity: 1; transition: opacity 0.6s ease;
}
.page-ghost.is-out { opacity: 0; }

/* glowing head dot that runs with the progress line */
.nav-progress-dot {
  position: fixed; top: calc(var(--nav-h) + 0.5px); left: 4%; width: 6px; height: 6px;
  border-radius: 50%; background: rgba(240, 240, 250, 0.9);
  transform: translate(-50%, -50%); opacity: 0; pointer-events: none; z-index: 81;
  transition: left 0.38s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

/* list stagger step is per-page (set from JS), fallback 55ms */
body.is-page-leaving .block--list .row {
  animation-delay: calc(var(--reveal-i, 0) * var(--row-step, 55ms));
}

/* old background crossfades out with a slight push-in */
.page-ghost {
  transform: scale(1);
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.page-ghost.is-out {
  opacity: 0;
  transform: scale(1.05);
}

/* trailing dots behind the progress head */
.nav-progress-dot.is-trail {
  width: 4px; height: 4px; opacity: 0;
}

/* old background pushes in for hero starts, pulls back for list starts */
.page-ghost.is-pull.is-out { transform: scale(0.95); }

/* a very light breathing pulse on the anchor bar after a page change */
@keyframes navPulse {
  0% { filter: brightness(1); }
  38% { filter: brightness(1.16); }
  100% { filter: brightness(1); }
}
.nav.is-pulse { animation: navPulse 0.9s ease; }

/* static capture mode for Figma html-to-design: force everything visible */
body.figma-capture .block,
body.figma-capture .block.reveal,
body.figma-capture .reveal-item,
body.figma-capture .hero-card,
body.figma-capture .hero-card__body > * {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  animation: none !important;
  transition: none !important;
}
body.figma-capture .hero-card__body > * { transition-delay: 0s !important; }
body.figma-capture .intro { display: none !important; }
body.figma-capture .nav-progress,
body.figma-capture .nav-progress-dot { display: none !important; }
body.figma-capture .page-ghost { display: none !important; }

/* brand logo replaces the text wordmark */
.nav__brand .brand-img { height: 24px; width: auto; display: block; }
.nav-drawer__brand .brand-img { height: 26px; width: auto; display: block; }
.footer__brand .brand-img { height: 30px; width: auto; display: block; }
.nav.is-transitioning .nav__brand .brand-img {
  filter: brightness(1.25) drop-shadow(0 0 10px rgba(240, 240, 250, 0.45));
}
.nav__brand { display: inline-flex; align-items: center; }
.footer__brand { display: flex; align-items: center; }

/* space hero: starfield + soft light behind the centered slogan */
.hero-card.has-media .hero-card__media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(1.6px 1.6px at 18% 22%, rgba(255, 255, 255, 0.8), transparent 60%),
    radial-gradient(1.2px 1.2px at 62% 14%, rgba(255, 255, 255, 0.65), transparent 60%),
    radial-gradient(1.8px 1.8px at 84% 38%, rgba(210, 230, 255, 0.7), transparent 60%),
    radial-gradient(1.1px 1.1px at 34% 52%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1.4px 1.4px at 72% 68%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(1px 1px at 12% 76%, rgba(255, 255, 255, 0.4), transparent 60%),
    radial-gradient(1.5px 1.5px at 48% 86%, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(1.2px 1.2px at 90% 82%, rgba(220, 235, 255, 0.5), transparent 60%);
  background-size: 520px 420px;
  background-repeat: repeat;
  animation: starDrift 120s linear infinite;
}
@keyframes starDrift {
  from { background-position: 0 0; }
  to { background-position: 520px 420px; }
}
.hero-card.pos-center .hero-card__body::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 40%;
  width: 900px;
  height: 620px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(190, 220, 255, 0.22), rgba(190, 220, 255, 0.06) 55%, transparent 75%);
  filter: blur(18px);
  z-index: -1;
  pointer-events: none;
}

/* bilingual slogan: smaller English line under the Chinese subtitle */
.hero-en {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: rgba(240, 240, 250, 0.94);
  font-weight: 400;
}
.hero-card.pos-center .hero-en,
.hero-card.pos-center-top .hero-en,
.hero-card.pos-center-bottom .hero-en {
  text-align: center !important;
}
.hero-card__body > *:nth-child(5) { transition-delay: 1.48s; }
/* keep the one-line slogan on desktop */
@media (min-width: 1101px) {
  .hero-card.pos-center .hero-card__body > .hero-title { white-space: nowrap; }
}

/* desktop: brand pinned left, links centered like the original layout */
@media (min-width: 1280px) {
  .nav__inner { position: relative; justify-content: center; }
  .nav__brand {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }
}
@media (max-width: 1279px) {
  .nav__inner { justify-content: space-between; }
}

/* page 1 only (desktop): the link row folds into a right-side burger, and returns on scroll */
@media (min-width: 1280px) {
  .nav__burger {
    display: flex;
    position: absolute;
    right: 0;
    top: 50%;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) scale(0.86);
    transition: opacity 0.32s ease, transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  }
  body.is-home-collapse .nav__burger {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) scale(1);
  }
  body.is-home-collapse .nav__burger span {
    animation: barMorphIn 0.4s 0.24s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  }
  body.is-home-collapse .nav__burger span:nth-child(2) { animation-delay: 0.3s; }
  body.is-home-collapse .nav__burger span:nth-child(3) { animation-delay: 0.36s; }

  body.is-home-collapse .nav__links {
    animation: navLinksFold 0.55s cubic-bezier(0.65, 0, 0.35, 1) forwards;
    pointer-events: none;
  }
  body.is-nav-restore .nav__links {
    animation: navLinksUnfold 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  body.is-home-collapse .nav-drawer { display: flex; }
}

@keyframes navLinksFold {
  0% { opacity: 1; transform: none; filter: blur(0); }
  60% { opacity: 0.18; transform: scale(0.72); filter: blur(4px); }
  100% { opacity: 0; transform: scale(0.2); filter: blur(8px); }
}
@keyframes navLinksUnfold {
  from { opacity: 0; transform: scale(0.65); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes barMorphIn {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

/* desktop: the menu opens as a right-side panel instead of a full-screen layer */
@media (min-width: 1280px) {
  .nav-drawer {
    display: flex;
    left: auto;
    right: 0;
    width: 400px;
    max-width: 86vw;
    background: #050505;
    border-left: 1px solid rgba(240, 240, 250, 0.12);
    opacity: 1;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s ease;
    padding: 0 30px 32px;
  }
  .nav-drawer.is-open {
    visibility: visible;
    transform: none;
  }
  .nav-drawer__links {
    margin: 26px 0 0 0;
    row-gap: 24px;
  }
  .nav-drawer__links > a,
  .ditem__head {
    font-size: 1rem;
  }
  .nav-drawer__foot { margin-top: auto; }
}

/* click-away layer behind the panel */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 89;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
/* while the side panel is open, fade the page nav so only the panel chrome shows */
body.is-locked .nav { opacity: 0; pointer-events: none; }
.nav { transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease; }

/* narrower, frosted-glass side panel */
@media (min-width: 1280px) {
  .nav-drawer {
    width: 360px;
    background: rgba(8, 9, 12, 0.78);
    -webkit-backdrop-filter: blur(22px) saturate(130%);
    backdrop-filter: blur(22px) saturate(130%);
    border-left: 1px solid rgba(240, 240, 250, 0.16);
    box-shadow: -30px 0 80px rgba(0, 0, 0, 0.55);
  }
  .nav-backdrop {
    background: rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }
}

/* the same burger button becomes the close X (no extra close button) */
body.is-locked .nav {
  opacity: 1;
  pointer-events: auto;
}
body.is-locked .nav__brand,
body.is-locked .nav__links {
  opacity: 0;
  pointer-events: none;
}
body.is-locked .nav__burger {
  position: fixed;
  right: 16px;
  top: 18px;
  left: auto;
  margin: 0;
  z-index: 96;
  display: flex;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  animation: none;
}

/* side panel a touch narrower */
@media (min-width: 1280px) {
  .nav-drawer {
    width: 320px;
  }
}
/* keep the morphing burger above the side panel */
body.is-locked .nav { z-index: 97; }
body.is-locked .nav__burger { display: flex !important; opacity: 1 !important; }

/* the page logo itself flies into the panel — no duplicated brand */
body.is-locked .nav__brand {
  opacity: 1 !important;
  pointer-events: auto;
}
.nav-drawer__bar { height: 64px; }

/* smooth open/close: keep the burger and logo alive during the closing frame */
body.is-menu-open .nav,
body.is-menu-closing .nav {
  z-index: 97;
  transform: translateY(0) !important;
}
body.is-menu-closing .nav__burger {
  position: fixed;
  right: 16px;
  top: 18px;
  left: auto;
  margin: 0;
  z-index: 96;
  display: flex !important;
  opacity: 1 !important;
  pointer-events: none;
  transform: none;
  animation: none;
}
body.is-menu-closing .nav__brand {
  opacity: 1 !important;
}
body.is-menu-closing .nav__links {
  opacity: 0 !important;
}

/* the logo keeps breathing while it sits in the panel */
body.is-locked .nav__brand {
  animation: brandIdle 2.6s ease-in-out infinite alternate;
}
@keyframes brandIdle {
  from { filter: brightness(1) drop-shadow(0 0 0 rgba(240, 240, 250, 0)); transform: scale(1); }
  to { filter: brightness(1.18) drop-shadow(0 0 10px rgba(240, 240, 250, 0.35)); transform: scale(0.97); }
}

/* crisper three-bar icon */
.nav__burger {
  width: 40px;
  height: 40px;
  gap: 4.5px;
  align-items: flex-end;
  justify-content: center;
  margin: 0;
  border-radius: 8px;
  transition: background 0.25s ease;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: #f5f5ff;
  transform-origin: center;
  transition: width 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}
.nav__burger:hover span:nth-child(1) { width: 26px; }
.nav__burger:hover span:nth-child(2) { width: 24px; }
.nav__burger:hover span:nth-child(3) { width: 26px; }
.nav__burger:focus-visible { outline: 1px solid rgba(240, 240, 250, 0.6); outline-offset: 4px; }

/* X uses the same bars: -6.5px / +6.5px keeps the cross exactly centred */
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav.is-open .nav__burger:hover span:nth-child(1),
.nav.is-open .nav__burger:hover span:nth-child(3) { width: 22px; }
/* larger English line under the Chinese slogan */
.hero-en { font-size: 22px; letter-spacing: 0.05em; line-height: 1.5; }
@media (max-width: 860px) { .hero-en { font-size: 15px; letter-spacing: 0.04em; } }
@media (max-width: 640px) { .hero-en { font-size: 13px; } }
/* narrower, finer icon */
.nav__burger { width: 36px; height: 36px; gap: 5px; }
.nav__burger span { width: 18px; height: 1.5px; border-radius: 0.75px; background: #f7f7ff; }
.nav__burger:hover span:nth-child(1),
.nav__burger:hover span:nth-child(3) { width: 22px; }
.nav__burger:hover span:nth-child(2) { width: 20px; }
.nav.is-open .nav__burger:hover span:nth-child(1),
.nav.is-open .nav__burger:hover span:nth-child(3) { width: 18px; }
/* even narrower bars */
.nav__burger span { width: 14px; }
.nav__burger:hover span:nth-child(1),
.nav__burger:hover span:nth-child(3) { width: 17px; }
.nav__burger:hover span:nth-child(2) { width: 16px; }
.nav.is-open .nav__burger:hover span:nth-child(1),
.nav.is-open .nav__burger:hover span:nth-child(3) { width: 14px; }
.cards-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1279px) { .cards-grid.cols-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards-grid.cols-5 { grid-template-columns: 1fr; } }

/* culture sits on its own single screen */
[id="about.culture"] {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}
[id="about.culture"] .wrap { width: 100%; }
[id="about.culture"] .section-head { margin-bottom: 48px; }
@media (max-width: 860px) {
  [id="about.culture"] {
    min-height: auto;
    padding-top: 96px;
    padding-bottom: 96px;
  }
}

/* SpaceX-style hover submenu: crisp panel, staggered items, hover bar */
.nav-item__panel {
  top: calc(100% + 10px);
  left: -22px;
  min-width: 240px;
  display: block;
  padding: 10px 0;
  gap: 0;
  background: rgba(6, 6, 8, 0.96);
  border: 1px solid rgba(240, 240, 250, 0.12);
  border-radius: 2px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  transform: translateY(-8px);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.26s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.26s;
}
.nav-item__panel a {
  position: relative;
  display: block;
  padding: 11px 22px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(240, 240, 250, 0.7);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.26s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.26s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.18s ease, background 0.18s ease;
}
.nav-item:hover .nav-item__panel a,
.nav-item:focus-within .nav-item__panel a,
.nav-item.is-open .nav-item__panel a {
  opacity: 1;
  transform: none;
}
.nav-item:hover .nav-item__panel a:nth-child(1),
.nav-item.is-open .nav-item__panel a:nth-child(1) { transition-delay: 0.02s; }
.nav-item:hover .nav-item__panel a:nth-child(2),
.nav-item.is-open .nav-item__panel a:nth-child(2) { transition-delay: 0.05s; }
.nav-item:hover .nav-item__panel a:nth-child(3),
.nav-item.is-open .nav-item__panel a:nth-child(3) { transition-delay: 0.08s; }
.nav-item:hover .nav-item__panel a:nth-child(4),
.nav-item.is-open .nav-item__panel a:nth-child(4) { transition-delay: 0.11s; }
.nav-item:hover .nav-item__panel a:nth-child(5),
.nav-item.is-open .nav-item__panel a:nth-child(5) { transition-delay: 0.14s; }

.nav-item__panel a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 0;
  background: #f5f5ff;
  transform: translateY(-50%);
  transition: height 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-item__panel a:hover,
.nav-item__panel a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}
.nav-item__panel a:hover::before { height: 18px; }
/* culture backdrop: people / ecosystem theme */
[id="about.culture"] {
  position: relative;
  overflow: hidden;
  background: #050505;
}
[id="about.culture"]::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--culture-bg-image, url('/uploads/1f5be27d-082a-42bd-bd3b-878c0fabd5e3.png'));
  background-position: center 62%;
  background-size: cover;
  background-repeat: no-repeat;
  filter: brightness(1.8) contrast(1.06);
  opacity: 0.58;
  pointer-events: none;
}
.culture-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  pointer-events: none;
}
[id="about.culture"].has-culture-video::after { opacity: 0; }
[id="about.culture"]::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.34) 45%, rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
}
[id="about.culture"] .wrap {
  position: relative;
  z-index: 2;
}

/* flat capture: culture keeps the same panel height as the others */
body.flat-capture [id="about.culture"] {
  min-height: 760px;
}

/* culture cards: translucent so the backdrop reads through */
[id="about.culture"] .cards-grid {
  background: rgba(240, 240, 250, 0.05);
  border-color: rgba(240, 240, 250, 0.16);
}
[id="about.culture"] .card {
  background: rgba(8, 10, 16, 0.34);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
}
[id="about.culture"] .card:hover {
  background: rgba(12, 14, 22, 0.52);
}
[id="about.culture"] .card__media {
  opacity: 0.32;
}
[id="about.culture"] .card__body {
  background: transparent;
}

/* SpaceX原版下拉：无面板盒子，纯文字列表从导航条下方展开，只淡入 */
.nav-item__panel {
  position: absolute;
  top: 0;
  left: 0;
  margin-left: -20px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  row-gap: 12px;
  padding: 56px 20px 10px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transform: none;
  transition: opacity 0.5s ease;
}
.nav-item:hover .nav-item__panel,
.nav-item:focus-within .nav-item__panel,
.nav-item.is-open .nav-item__panel {
  max-height: 220px;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.5s ease;
}
.nav-item__panel a {
  display: block;
  padding: 0;
  font-size: 0.813rem;
  font-weight: 700;
  line-height: 94%;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(240, 240, 250, 0.9);
  opacity: 1;
  transform: none;
  background: transparent;
  transition: color 0.2s ease;
}
.nav-item__panel a::before { display: none; }
.nav-item__panel a:hover,
.nav-item__panel a.is-active {
  color: #f0f0fa;
  background: transparent;
}
.nav-item__chev {
  min-width: 10px;
  font-size: 9px;
  position: relative;
  top: -1px;
  opacity: 1;
  filter: brightness(0.8);
}
/* submenu items never wrap */
.nav-item__panel a { white-space: nowrap; }

/* culture heading centered on the section */
[id="about.culture"] .section-head {
  text-align: center;
  width: 100%;
}
[id="about.culture"] .section-head > * {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  max-width: 100% !important;
}

[id="about.culture"] .section-head {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

/* culture: text above the artwork, five cards staggered like an editorial row */
@media (min-width: 1280px) {
  [id="about.culture"] .cards-grid.cols-5 {
    background: transparent;
    border: 0;
    gap: 22px;
    align-items: start;
  }
  [id="about.culture"] .card {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    flex-direction: column-reverse;
  }
  [id="about.culture"] .card__body {
    padding: 0 0 18px;
    gap: 8px;
    background: transparent;
  }
  [id="about.culture"] .card__title { font-size: 24px; }
  [id="about.culture"] .card__text {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(240, 240, 250, 0.62);
  }
  [id="about.culture"] .card__media {
    aspect-ratio: 3 / 4;
    opacity: 1;
    border: 1px solid rgba(240, 240, 250, 0.16);
    border-radius: 6px;
    overflow: hidden;
    background: rgba(8, 10, 16, 0.35);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    backdrop-filter: blur(10px) saturate(120%);
  }
  [id="about.culture"] .card__media .media-fill { opacity: 0.55; }
  [id="about.culture"] .card:nth-child(2) { margin-top: 34px; }
  [id="about.culture"] .card:nth-child(2) .card__media { aspect-ratio: 3 / 4.4; }
  [id="about.culture"] .card:nth-child(3) { margin-top: 12px; }
  [id="about.culture"] .card:nth-child(3) .card__media { aspect-ratio: 3 / 3.6; }
  [id="about.culture"] .card:nth-child(4) { margin-top: 52px; }
  [id="about.culture"] .card:nth-child(4) .card__media { aspect-ratio: 3 / 4.2; }
  [id="about.culture"] .card:nth-child(5) { margin-top: 24px; }
}

/* culture wrap keeps page gutters */
[id="about.culture"] .wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

/* culture: typographic five-column row, no boxes */
@media (min-width: 1280px) {
  [id="about.culture"] .cards-grid.cols-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: transparent;
    border: 0;
    gap: 0;
    counter-reset: culture;
  }
  [id="about.culture"] .card {
    counter-increment: culture;
    margin-top: 0 !important;
    padding: 0 28px;
    border: 0;
    border-left: 1px solid rgba(240, 240, 250, 0.14);
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    flex-direction: column;
  }
  [id="about.culture"] .card:first-child {
    border-left: 0;
    padding-left: 0;
  }
  [id="about.culture"] .card:last-child {
    padding-right: 0;
  }
  [id="about.culture"] .card__media { display: none; }
  [id="about.culture"] .card__body {
    padding: 0;
    gap: 10px;
    background: transparent;
  }
  [id="about.culture"] .card__title {
    font-size: 22px;
    line-height: 1.3;
    margin: 0;
  }
  [id="about.culture"] .card__title::before {
    content: counter(culture, decimal-leading-zero);
    display: block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: rgba(240, 240, 250, 0.42);
  }
  [id="about.culture"] .card__text {
    font-size: 13px;
    line-height: 1.75;
    color: rgba(240, 240, 250, 0.6);
  }
}
@media (max-width: 1279px) {
  [id="about.culture"] .card {
    border-left: 0;
    padding: 0 0 28px;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  [id="about.culture"] .card__media { display: none; }
  [id="about.culture"] .card__title::before {
    content: counter(culture, decimal-leading-zero);
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: rgba(240, 240, 250, 0.42);
  }
  [id="about.culture"] .cards-grid { counter-reset: culture; }
  [id="about.culture"] .card { counter-increment: culture; }
}
/* lighter centre overlay so the photo keeps its colour */
.hero-card.pos-center.has-media::after {
  background:
    radial-gradient(62% 58% at 50% 50%, rgba(0,0,0,.42) 0%, rgba(0,0,0,.16) 60%, rgba(0,0,0,.5) 100%),
    linear-gradient(180deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,.1) 45%, rgba(0,0,0,.68) 100%) !important;
}

/* culture columns: no numbering, titles only */
[id="about.culture"] .card__title::before {
  content: none !important;
  display: none !important;
}
[id=about.culture] .section-head { margin-bottom: 96px; }
/* very light overlay: the wave keeps its colour */
.hero-card.pos-center.has-media::after {
  background:
    radial-gradient(60% 55% at 50% 52%, rgba(0,0,0,.52) 0%, rgba(0,0,0,.2) 62%, rgba(0,0,0,.52) 100%),
    linear-gradient(180deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,.14) 45%, rgba(0,0,0,.7) 100%) !important;
}
[id="ai.hero"] .hero-card__media img {
  opacity: 0.62;
}
[id="ai.hero"].has-media::after {
  background:
    radial-gradient(62% 58% at 50% 50%, rgba(0,0,0,.82) 0%, rgba(0,0,0,.42) 58%, rgba(0,0,0,.74) 100%),
    linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.24) 45%, rgba(0,0,0,.86) 100%) !important;
}

/* more air between the culture heading and the five columns */
[id="about.culture"] .section-head {
  margin-bottom: 120px;
}

/* lift the whole culture block a bit higher in the viewport */
[id="about.culture"] {
  padding-bottom: 26vh;
}
@media (max-width: 860px) {
  [id="about.culture"] { padding-bottom: 96px; }
}

/* SpaceX-style submenu: no frame, no border, slides in with a soft gradient */
.nav-item__panel {
  position: absolute;
  top: calc(100% + 16px);
  left: -18px;
  margin-left: 0;
  min-width: 190px;
  max-height: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  row-gap: 0;
  padding: 14px 0;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  background: linear-gradient(180deg, rgba(4, 5, 8, 0.97) 0%, rgba(0, 0, 0, 0.94) 100%);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s ease;
}
.nav-item:hover .nav-item__panel,
.nav-item:focus-within .nav-item__panel,
.nav-item.is-open .nav-item__panel {
  max-height: none;
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav-item__panel a {
  padding: 9px 22px;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 240, 250, 0.62);
  background: linear-gradient(90deg, rgba(240, 240, 250, 0) 0%, rgba(240, 240, 250, 0) 100%);
  transition: color 0.22s ease, background 0.28s ease;
}
.nav-item__panel a:hover,
.nav-item__panel a.is-active {
  color: #fff;
  background: linear-gradient(90deg, rgba(240, 240, 250, 0.1) 0%, rgba(240, 240, 250, 0) 85%);
}
.nav-item__chev {
  opacity: 0.5;
  filter: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-item:hover .nav-item__chev,
.nav-item.is-open .nav-item__chev {
  opacity: 1;
}
/* no filled panel behind the submenu links */
.nav-item__panel {
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  min-width: 0;
  padding: 12px 0;
  box-shadow: none !important;
}
.nav-item__panel a {
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.65);
}
/* SpaceX-style caret: hidden until hover/click */
.nav-item__chev {
  display: inline-block;
  width: 0;
  min-width: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateX(-3px);
  transition: opacity 0.2s ease, width 0.2s ease, transform 0.25s ease;
}
.nav-item:hover .nav-item__chev,
.nav-item:focus-within .nav-item__chev,
.nav-item.is-open .nav-item__chev {
  width: 10px;
  min-width: 10px;
  opacity: 0.85;
  transform: translateX(0) rotate(180deg);
}

/* the submenu is hover-only: it must not stay open after the pointer leaves */
.nav-item:not(:hover):not(.is-open) .nav-item__panel {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
}

/* ---------------- contact section ---------------- */
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.block.contact {
  position: relative;
  overflow: hidden;
}
.contact-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  pointer-events: none;
}
.block.contact.has-contact-video::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.66) 50%, rgba(0, 0, 0, 0.88));
  pointer-events: none;
}
.block.contact > .wrap {
  position: relative;
  z-index: 2;
}
.contact__title { margin: 0 !important; }
.contact__sub { margin: 0 0 22px !important; }

.contact__items {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 34px 0 46px;
}
.contact__item {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}
.contact__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid rgba(240, 240, 250, 0.18);
  border-radius: 6px;
  background: rgba(240, 240, 250, 0.06);
  font-size: 16px;
  color: #f0f0fa;
}
.contact__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.contact__meta strong {
  font-size: 15px;
  font-weight: 700;
  color: #f0f0fa;
  letter-spacing: 0.01em;
}
.contact__meta span,
.contact__meta a {
  font-size: 14px;
  color: rgba(240, 240, 250, 0.6);
  text-decoration: none;
}
.contact__meta a:hover { color: #fff; }

.contact__form {
  width: min(640px, 100%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}
.contact__hint {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
  color: rgba(240, 240, 250, 0.58);
}
.contact__field { display: flex; flex-direction: column; gap: 8px; }
.contact__field > span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(240, 240, 250, 0.55);
}
.contact__field input,
.contact__field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(240, 240, 250, 0.18);
  border-radius: 6px;
  background: rgba(240, 240, 250, 0.04);
  color: #f0f0fa;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.contact__field textarea { resize: vertical; min-height: 120px; }
.contact__field input:focus,
.contact__field textarea:focus {
  border-color: rgba(240, 240, 250, 0.5);
  background: rgba(240, 240, 250, 0.07);
}
.contact__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 4px;
}
.contact__note {
  font-size: 13px;
  color: rgba(240, 240, 250, 0.6);
}

/* community CTA: center the block itself, not just its text */
[id="community.cta"] .cta-card {
  display: flex;
  justify-content: center;
  align-items: center;
}
[id="community.cta"] .cta-card__body {
  width: auto;
  max-width: none;
  align-items: center;
  text-align: center;
}

/* center the submit button and its arrow */
.contact__actions {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.contact__actions .btn {
  justify-content: center;
  min-width: 180px;
}
.contact__actions .btn::after {
  line-height: 1;
  display: inline-block;
  transform: translateY(0.5px);
}
.contact__note { text-align: center; }

/* buttons that should not render the trailing arrow */
.btn--no-arrow::after { content: none !important; display: none !important; }
.btn--no-arrow { gap: 0; }

/* the menu icon stays available in the top-right on every page */
@media (min-width: 1280px) {
  .nav__burger {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%);
  }
}
/* ---------------- duo: manifesto layout (statement / brand / columns) ---------------- */
.duo {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.duo__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.duo.has-video::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.68) 48%, rgba(0, 0, 0, 0.9) 100%);
  pointer-events: none;
}
.duo__inner {
  position: relative;
  z-index: 2;
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12vh;
}
.duo__statement {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: clamp(32px, 3.9vw, 56px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.005em;
  color: #f5f5ff;
  text-wrap: balance;
}
.duo__line { display: block; }
.duo__brand {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(240, 240, 250, 0.66);
}
.duo__brand::before,
.duo__brand::after {
  content: '';
  width: 64px;
  height: 1px;
  background: rgba(240, 240, 250, 0.22);
}
.duo__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(980px, 100%);
  gap: 0;
}
.duo__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 6px 48px;
}
.duo__col + .duo__col {
  border-left: 1px solid rgba(240, 240, 250, 0.16);
}
.duo__col-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(240, 240, 250, 0.5);
}
.duo__col-en {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: rgba(240, 240, 250, 0.68);
}
@media (max-width: 860px) {
  .duo__inner { gap: 48px; }
  .duo__cols { grid-template-columns: 1fr; gap: 26px; }
  .duo__col { padding: 0 12px; }
  .duo__col + .duo__col { border-left: 0; border-top: 1px solid rgba(240, 240, 250, 0.16); padding-top: 26px; }
  .duo__statement { font-size: 28px; }
}

/* persistent vertical navigation on the right (desktop) */
.rail-nav { display: none; }

@media (min-width: 1280px) {
  .rail-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 208px;
    padding: 96px 26px 40px;
    border-left: 1px solid rgba(240, 240, 250, 0.1);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.32));
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    z-index: 40;
    overflow-y: auto;
  }
  .rail-item { display: flex; flex-direction: column; }
  .rail-link {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(240, 240, 250, 0.6);
    transition: color 0.2s ease;
  }
  .rail-link:hover,
  .rail-item.is-active > .rail-link { color: #fff; }
  .rail-subs {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 9px;
    padding-left: 11px;
    border-left: 1px solid rgba(240, 240, 250, 0.14);
  }
  .rail-sub-link {
    font-size: 11px;
    letter-spacing: 0.02em;
    color: rgba(240, 240, 250, 0.4);
    transition: color 0.2s ease;
  }
  .rail-sub-link:hover,
  .rail-sub-link.is-active { color: #fff; }

  main { padding-right: 208px; }
  .footer .wrap { padding-right: 208px; }
  .nav__links { display: none; }
  .nav__burger { display: none !important; }
}
/* keep the top horizontal menu alongside the right rail */
@media (min-width: 1280px) {
  .nav__links { display: flex; }
}
/* the vertical menu is the burger panel, not a persistent rail */
@media (min-width: 1280px) {
  .rail-nav { display: none !important; }
  main { padding-right: 0; }
  .footer .wrap { padding-right: 0; }
  .nav__burger {
    display: flex !important;
    position: absolute;
    right: 0;
    top: 50%;
    margin: 0;
    transform: translateY(-50%);
  }
}

/* side panel: centred, roomy menu like the reference rail */
@media (min-width: 1280px) {
  .nav-drawer__links {
    align-items: center;
    text-align: center;
    row-gap: 34px;
    margin: 48px 0 0 0;
  }
  .nav-drawer__links > a,
  .ditem__head {
    font-size: 18px;
    font-weight: 700;
    justify-content: center;
    width: 100%;
    text-align: center;
    letter-spacing: 0.02em;
  }
  .ditem__sub {
    align-items: center;
    text-align: center;
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    row-gap: 12px;
  }
  .ditem__sub a { font-size: 13px; color: rgba(240, 240, 250, 0.45); }
  .nav-drawer__links > a.is-active,
  .ditem.is-active > .ditem__head { color: #5aa2ff; }
}
/* reference-style menu: centred block, left-aligned labels */
@media (min-width: 1280px) {
  .nav-drawer__links {
    align-items: flex-start;
    text-align: left;
    width: -moz-fit-content;
    width: fit-content;
    margin: 48px auto 0 auto;
    row-gap: 36px;
  }
  .nav-drawer__links > a,
  .ditem__head {
    justify-content: flex-start;
    text-align: left;
    font-size: 19px;
    font-weight: 700;
    width: auto;
    letter-spacing: 0.02em;
  }
  .ditem__sub {
    align-items: flex-start;
    text-align: left;
    row-gap: 12px;
    margin-top: 12px;
  }
}
/* uniform left edge for every menu label */
@media (min-width: 1280px) {
  .nav-drawer__links {
    align-items: stretch;
    width: 100%;
    margin: 56px 0 0 0;
    padding-left: 44px;
    row-gap: 36px;
  }
  .nav-drawer__links > a,
  .ditem__head {
    justify-content: flex-start;
    text-align: left;
    width: 100%;
  }
  .ditem__sub {
    align-items: flex-start;
    text-align: left;
  }
}
/* open state always wins */
.nav-drawer.is-open { opacity: 1 !important; visibility: visible !important; transform: none !important; }
/* menu block sits in the optical centre of the panel, like the reference */
@media (min-width: 1280px) {
  .nav-drawer__links {
    margin: auto 0 auto 0;
    padding-left: 44px;
  }
}

/* compact, centred menu column; logo shares its left edge */
@media (min-width: 1280px) {
  .nav-drawer__links {
    width: 148px;
    margin: auto auto;
    padding-left: 0;
    align-items: stretch;
    row-gap: 28px;
  }
  .nav-drawer__links > a,
  .ditem__head {
    width: 100%;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    justify-content: flex-start;
  }
  .ditem__sub {
    row-gap: 10px;
    margin-top: 10px;
  }
  .ditem__sub a { font-size: 12px; }
}

/* the panel carries its own copy of the logo so it always sits on the menu's left edge */
.nav-drawer__bar {
  justify-content: flex-start;
  padding-left: 16px;
}
.nav-drawer__bar .brand-img {
  height: 24px;
  width: auto;
  display: block;
}
@media (min-width: 1280px) {
  .nav-drawer__bar { padding-left: 56px; }
  body.is-locked .nav__brand { opacity: 0 !important; pointer-events: none !important; }
}

/* ---------------- footer ---------------- */
.footer {
  padding: 80px 0 40px;
  background: #030304;
  border-top: 1px solid rgba(240, 240, 250, 0.1);
}
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.footer__brand { display: inline-flex; align-items: center; }
.footer__brand-block { display: flex; align-items: center; gap: 32px; flex: 0 0 auto; flex-wrap: nowrap; }
.footer__tagline {
  font-size: 14px;
  line-height: 34px;
  letter-spacing: 0.02em;
  color: rgba(240, 240, 250, 0.74);
  white-space: nowrap;
  transform: translateY(4px);
}
.footer__logo { height: 34px; width: auto; display: block; }
.footer__wordmark {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f0f0fa;
}
.footer__social {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer__social-label {
  margin-right: 8px;
  font-size: 13px;
  color: rgba(240, 240, 250, 0.62);
}
.footer__social-link {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(240, 240, 250, 0.12);
  border-radius: 50%;
  background: rgba(240, 240, 250, 0.05);
  color: rgba(240, 240, 250, 0.78);
  font-size: 13px;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.footer__social-link:hover {
  background: rgba(240, 240, 250, 0.12);
  border-color: rgba(240, 240, 250, 0.3);
  color: #fff;
}
.footer__rule {
  height: 1px;
  margin: 44px 0 56px;
  background: rgba(240, 240, 250, 0.12);
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 48px 40px;
}
.footer__col { display: flex; flex-direction: column; gap: 14px; }
.footer__col h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: #f0f0fa;
  letter-spacing: 0.01em;
}
.footer__col a,
.footer__col span {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(240, 240, 250, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer__col a:hover { color: #fff; }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 64px;
  padding-top: 26px;
  border-top: 1px solid rgba(240, 240, 250, 0.1);
  font-size: 12px;
  color: rgba(240, 240, 250, 0.84);
}
.footer__credit { color: rgba(240, 240, 250, 0.34); }
.footer__bottom a { color: rgba(240, 240, 250, 0.92); text-decoration: none; }
.footer__bottom a:hover { color: #fff; }
@media (max-width: 1024px) {
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .footer { padding: 56px 0 32px; }
  .footer__top { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer__brand-block { flex-wrap: wrap; }
  .footer__tagline { line-height: 1.5; white-space: normal; transform: none; }
  .footer__rule { margin: 32px 0 36px; }
  .footer__cols { grid-template-columns: 1fr; gap: 30px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 40px; }
}
/* panel 240px, logo offset compensated for the narrower column */
@media (min-width: 1280px) {
  .nav-drawer { width: 220px; }
  .nav-drawer__bar { padding-left: 5px; }
}
/* footer fits the 240px panel */
@media (min-width: 1280px) {
  .nav-drawer__foot { font-size: 11px; letter-spacing: 0.08em; white-space: nowrap; }
}

/* bold "follow us" + icon sizing */
.footer__social-label {
  font-weight: 700;
  font-size: 14px;
  color: #f0f0fa;
}
.footer__social-link svg {
  width: 19px;
  height: 19px;
  display: block;
}
.footer__social-img {
  width: 23px;
  height: 23px;
  object-fit: contain;
  display: block;
}
/* small icons inside footer columns */
.footer__col a, .footer__col > span { display: inline-flex; align-items: center; gap: 8px; }
.footer__ico { display: inline-flex; align-items: center; color: rgba(240, 240, 250, 0.5); }
.footer__ico svg { display: block; }

/* ---------------- culture carousel ---------------- */
[id="about.culture"] {
  padding-bottom: 0;
}
[id="about.culture"] .section-head {
  margin-bottom: 64px;
}
.culture-carousel {
  width: min(100%, 980px);
  margin: 0 auto;
}
.culture-carousel__viewport {
  overflow: hidden;
}
.culture-track {
  display: flex;
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.culture-slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 0 84px;
  text-align: center;
  opacity: 0.24;
  transition: opacity 0.45s ease;
}
.culture-slide.is-active {
  opacity: 1;
}
.culture-slide__num {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: rgba(240, 240, 250, 0.48);
}
.culture-slide__num::before,
.culture-slide__num::after {
  content: '';
  width: 30px;
  height: 1px;
  background: rgba(240, 240, 250, 0.34);
}
.culture-slide__title {
  margin: 0 0 22px;
  font-size: clamp(40px, 4.4vw, 62px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #f5f5ff;
}
.culture-slide__text {
  max-width: 560px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.01em;
  color: rgba(240, 240, 250, 0.68);
}
.culture-carousel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 38px;
}
.culture-carousel__center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.culture-arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(240, 240, 250, 0.24);
  border-radius: 50%;
  background: rgba(240, 240, 250, 0.04);
  color: rgba(240, 240, 250, 0.82);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.culture-arrow:hover {
  background: #fff;
  border-color: #fff;
  color: #000;
}
.culture-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.culture-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(240, 240, 250, 0.28);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}
.culture-dot.is-active {
  width: 24px;
  background: #f0f0fa;
}
@media (max-width: 860px) {
  [id="about.culture"] {
    padding-top: 96px;
    padding-bottom: 96px;
  }
  [id="about.culture"] .section-head {
    margin-bottom: 42px;
  }
  .culture-slide {
    padding: 0 24px;
  }
  .culture-slide__title {
    font-size: 42px;
  }
  .culture-carousel__footer {
    margin-top: 30px;
  }
}
@media (max-width: 520px) {
  .culture-slide {
    padding: 0 4px;
  }
  .culture-slide__title {
    font-size: 36px;
  }
  .culture-slide__text {
    font-size: 14px;
  }
  .culture-arrow {
    width: 36px;
    height: 36px;
  }
}
/* ambient motion for the remaining static section backgrounds */
.duo {
  animation: duoBgDrift 36s ease-in-out infinite alternate;
}
@keyframes duoBgDrift {
  from { background-position: 48% 45%; }
  to { background-position: 52% 55%; }
}
[id="about.culture"]::after {
  animation: cultureBgDrift 30s ease-in-out infinite alternate;
  transform-origin: 50% 62%;
  will-change: transform;
}
@keyframes cultureBgDrift {
  from { transform: scale(1.02) translate3d(-0.5%, -0.3%, 0); }
  to { transform: scale(1.1) translate3d(0.6%, 0.4%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .culture-track {
    transition: none;
  }
  .culture-slide {
    transition: none;
  }
}

/* 左右侧变体：说明文字两端对齐，行尾不足时最后一行正常左对齐 */
.hero-card.pos-left-middle .hero-card__body > [data-eid$=".sub"],
.hero-card.pos-left-bottom .hero-card__body > [data-eid$=".sub"],
.hero-card.pos-left-top .hero-card__body > [data-eid$=".sub"],
.hero-card.pos-right-middle .hero-card__body > [data-eid$=".sub"],
.hero-card.pos-right-bottom .hero-card__body > [data-eid$=".sub"],
.hero-card.pos-right-top .hero-card__body > [data-eid$=".sub"] {
  width: 100%;
  text-align: justify !important;
  text-align-last: left;
  text-justify: inter-ideograph;
}

/* 首页「连接彼此」说明保持右对齐 */
.hero-card.pos-right-middle .hero-card__body > [data-eid="home.link.sub"] {
  text-align: right !important;
  text-align-last: right;
}

/* after the first in-site navigation, switch pages without the old enter/leave effects */
body.is-instant-nav .hero-card {
  opacity: 1;
  animation: none;
}
body.is-instant-nav .block,
body.is-instant-nav .footer {
  opacity: 1;
  transform: none;
  filter: none;
  animation: none;
  transition: none;
}
