/* =========================================================================
   AstraLattice Brand Color Specification V1.0 (sRGB)
   Pure Vanilla CSS — Zero Gradients, Zero Blur/Glow Filters
   ========================================================================= */

:root {
  color-scheme: dark;
  scrollbar-color: #2E333D #121417;
  scrollbar-width: thin;

  /* Brand Standard Constants */
  --brand-near-black: #121417;
  --brand-warm-white: #F4F2ED;
  --brand-champagne: #D4C3A5;
  --brand-star-blue: #97BAFF; /* Strictly ONLY inside dark-mode hero astronomical SVG */

  /* Architectural Font Stacks: Precision Sans + Technical Mono */
  --font-sans: "Inter", "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Noto Sans CJK SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Consolas, monospace;

  /* Layout Dimensions — Crisp Architectural Geometry */
  --container-max: 94rem;     /* 1504px */
  --header-height: 4rem;      /* 64px */
  --radius-card: 0.25rem;     /* 4px */
  --radius-inner: 0.1875rem;  /* 3px */
  --radius-control: 0.125rem; /* 2px */
  --radius-chip: 0.125rem;    /* 2px */
}

/* Dark Mode Tokens (Default — Primary Official Website Aesthetic) */
[data-theme="dark"] {
  color-scheme: dark;

  --bg-page: #121417;
  --bg-card: #1B1E23;
  --bg-elevated: #22262E;
  --border-elevated: #343944;
  --surface-hover-border: #434956;
  --surface-hairline: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-elevated: none;

  --text-primary: #EAE8E1;
  --text-hero-title: #F4F2ED;
  --text-secondary: #94989F;

  --divider: #2A2E37;
  --control-border: #6E737E;

  /* Brand Lockup Colors */
  --logo-mark: #D4C3A5;
  --logo-cn: #F4F2ED;
  --logo-en: #D4C3A5;

  /* Interactive Gold */
  --gold-text: #D6B870;
  --gold-graphic: #D6B870;
  --gold-selected-bg: #D6B8701F;
  --gold-on-fill: #121417;
  --star-fill: #D6B870;
  --star-stroke: #D6B870;

  /* Hero SVG Specific */
  --hero-orbit-primary: #D4C3A5;
  --hero-orbit-node: #D6B870;
  --hero-lattice: #2A2E37;
  --hero-axis: #343944;
  --hero-label: #94989F;
  --hero-label-gold: #D4C3A5;
  --cube-star-lit: #EFE3C4;
  --cube-star-mid: #D4C3A5;
  --cube-star-shade: #8C774B;
  --ambient-star-cool: #B8D2FF;
  --ambient-star-gold: #E8D5A8;
  --ambient-star-flare-cool: #DCEAFF;
  --ambient-star-flare-gold: #F5E8C8;
  --ambient-star-base: 0.14;
  --ambient-star-mid: 0.50;
  --ambient-star-peak: 0.88;
  --ambient-star-ray-peak: 0.82;
  --ambient-meteor-core: #FFFFFF;
  --ambient-meteor-head: #F5EBD4;
  --ambient-meteor-tail: #D8C59B;
  --ambient-meteor-cool: #A9C7FF;
  --ambient-meteor-peak: 0.88;

  /* Solid Buttons — Muted Champagne-Ivory (Never Glaring Pure White) */
  --btn-primary-bg: #E4DFD5;
  --btn-primary-hover: #F2EEE6;
  --btn-primary-active: #D4CEC1;
  --btn-primary-text: #121417;

  --btn-gold-bg: #D6B870;
  --btn-gold-hover: #E1C585;
  --btn-gold-active: #BFA054;
  --btn-gold-text: #121417;

  --btn-danger-bg: #E55348;
  --btn-danger-hover: #F06A60;
  --btn-danger-active: #DC4F44;
  --btn-danger-text: #121417;

  --btn-disabled-bg: #232730;
  --btn-disabled-text: #5E636E;

  /* Card Status (#1B1E23 surface) */
  --status-success-fg: #49AD7E;
  --status-success-bg: #49AD7E24;

  --status-warning-icon: #F08637;
  --status-warning-fg: #F08637;
  --status-warning-bg: #F0863724;

  --status-expiring-fg: #F06456;
  --status-expiring-bg: #E5534824;

  --status-danger-icon: #E55348;
  --status-danger-fg: #F06456;
  --status-danger-bg: #E5534824;

  --focus-ring: #D6B870;
  --backdrop: rgba(18, 20, 23, 0.78);
}

/* =========================================================================
   Reset & Base Typography
   ========================================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.75rem;
  font-family: var(--font-sans);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  text-rendering: optimizeLegibility;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* Focus Ring — Strict 2px outline + 2px offset per V1.0 Spec */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

::selection {
  background-color: var(--gold-graphic);
  color: var(--gold-on-fill);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 1rem;
  z-index: 60;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border-radius: 6px;
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-size: 0.875rem;
  font-weight: 500;
}
.skip-link:focus {
  width: auto;
  height: auto;
  padding: 0.5rem 0.875rem;
  overflow: visible;
  clip-path: none;
}

/* =========================================================================
   Layout Containers & Surfaces
   ========================================================================= */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4.5vw, 4rem);
}

.font-mono-tech {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.surface-page {
  background-color: var(--bg-page);
}

.surface-card {
  background-color: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-card);
  box-shadow: var(--surface-hairline);
}

.surface-elevated {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-elevated);
  box-shadow: var(--shadow-elevated);
  border-radius: var(--radius-card);
}

.text-main { color: var(--text-primary); }
.text-hero { color: var(--text-hero-title); }
.text-muted { color: var(--text-secondary); }
.text-gold { color: var(--gold-text); }

/* Body Links — Mandatory Underline per Spec */
.body-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--gold-text);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  transition: opacity 0.16s ease, color 0.16s ease;
}
.body-link:hover {
  opacity: 0.84;
}

/* =========================================================================
   Buttons — Exact 3-State Tokens (Default / Hover / Active) + Tactile Press
   ========================================================================= */

.btn-base {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.25rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius-control);
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.12s cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
  white-space: nowrap;
}

.btn-base svg {
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-base:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-sm {
  font-size: 0.8125rem;
  line-height: 1.125rem;
  padding: 0.4375rem 0.875rem;
  border-radius: var(--radius-chip);
}

.btn-md {
  font-size: 0.875rem;
  line-height: 1.25rem;
  padding: 0.6875rem 1.25rem;
}

.btn-lg {
  font-size: 0.9375rem;
  line-height: 1.25rem;
  padding: 0.8125rem 1.5rem;
}

@media (min-width: 640px) {
  .btn-lg {
    font-size: 0.9375rem;
    padding: 0.875rem 1.625rem;
  }
}

.btn-header {
  font-size: 0.8125rem;
  line-height: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.4375rem 0.9375rem;
  border-color: rgba(212, 195, 165, 0.28);
}

@media (min-width: 640px) {
  .btn-header {
    font-size: 0.8125rem;
    line-height: 1.125rem;
    padding: 0.5rem 1.0625rem;
  }
}

.btn-primary {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: 1px solid rgba(212, 195, 165, 0.42);
}
@media (hover: hover) {
  .btn-primary:hover:not(:disabled) {
    background-color: var(--btn-primary-hover);
    border-color: rgba(244, 242, 237, 0.85);
  }
  .btn-base:hover:not(:disabled) svg { transform: translateX(3px); }
  .btn-header:hover:not(:disabled) svg,
  .btn-secondary:hover:not(:disabled) svg { transform: translate(2px, -2px); }
}
.btn-primary:active:not(:disabled) { background-color: var(--btn-primary-active); }

/* Architectural Drafting Secondary CTA with 4-Corner Micro-Reticle Ticks */
.btn-secondary {
  position: relative;
  background-color: rgba(20, 23, 27, 0.88);
  color: var(--text-primary);
  border: 1px solid rgba(212, 195, 165, 0.28);
}
.btn-secondary::before,
.btn-secondary::after,
.btn-secondary > span::before,
.btn-secondary > span::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-color: rgba(201, 164, 93, 0.68);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
  transition: border-color 0.2s ease, width 0.2s ease, height 0.2s ease;
}
.btn-secondary::before {
  top: -1px;
  left: -1px;
  border-top-width: 1px;
  border-left-width: 1px;
}
.btn-secondary::after {
  bottom: -1px;
  right: -1px;
  border-bottom-width: 1px;
  border-right-width: 1px;
}
.btn-secondary > span::before {
  top: -1px;
  right: -1px;
  border-top-width: 1px;
  border-right-width: 1px;
}
.btn-secondary > span::after {
  bottom: -1px;
  left: -1px;
  border-bottom-width: 1px;
  border-left-width: 1px;
}
@media (hover: hover) {
  .btn-secondary:hover:not(:disabled) {
    background-color: rgba(201, 164, 93, 0.08);
    border-color: #C9A45D;
    color: var(--brand-warm-white);
  }
  .btn-secondary:hover:not(:disabled)::before,
  .btn-secondary:hover:not(:disabled)::after,
  .btn-secondary:hover:not(:disabled) > span::before,
  .btn-secondary:hover:not(:disabled) > span::after {
    border-color: #DFC07D;
    width: 7px;
    height: 7px;
  }
}
.btn-secondary:active:not(:disabled) {
  background-color: rgba(201, 164, 93, 0.16);
}

.btn-gold {
  background-color: var(--btn-gold-bg);
  color: var(--btn-gold-text);
  border: 1px solid transparent;
}
@media (hover: hover) {
  .btn-gold:hover:not(:disabled) { background-color: var(--btn-gold-hover); }
}
.btn-gold:active:not(:disabled) { background-color: var(--btn-gold-active); }

.btn-danger {
  background-color: var(--btn-danger-bg);
  color: var(--btn-danger-text);
  border: 1px solid transparent;
}
@media (hover: hover) {
  .btn-danger:hover:not(:disabled) { background-color: var(--btn-danger-hover); }
}
.btn-danger:active:not(:disabled) { background-color: var(--btn-danger-active); }

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--control-border);
}
@media (hover: hover) {
  .btn-outline:hover:not(:disabled) {
    background-color: rgba(201, 164, 93, 0.08);
    border-color: #C9A45D;
    color: var(--brand-warm-white);
  }
}

.btn-base:disabled {
  background-color: var(--btn-disabled-bg);
  color: var(--btn-disabled-text);
  border-color: transparent;
  cursor: not-allowed;
}

/* Status Banners */
.card-banner-success {
  background-color: var(--status-success-bg);
  color: var(--status-success-fg);
}
.card-banner-warning {
  background-color: var(--status-warning-bg);
  color: var(--status-warning-fg);
}
.card-banner-expiring {
  background-color: var(--status-expiring-bg);
  color: var(--status-expiring-fg);
}
.card-banner-danger {
  background-color: var(--status-danger-bg);
  color: var(--status-danger-fg);
}

/* Form Input — Interactive Control Border >= 3:1 */
.spec-input {
  width: 100%;
  background-color: var(--bg-page);
  color: var(--text-primary);
  border: 1px solid var(--control-border);
  border-radius: var(--radius-control);
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.spec-input:hover:not(:disabled):not(:focus) {
  border-color: var(--text-secondary);
}
.spec-input::placeholder {
  color: var(--text-secondary);
}
.spec-input:focus {
  border-color: var(--focus-ring);
  background-color: var(--bg-card);
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.spec-input[aria-invalid="true"] {
  border-color: var(--status-danger-icon);
}

/* =========================================================================
   Sticky Header & Navigation
   ========================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--bg-page);
  border-bottom: 1px solid var(--divider);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--surface-hover-border);
}

.scroll-progress-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1.5px;
  background-color: var(--gold-graphic);
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
  z-index: 5;
  will-change: transform;
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.25rem;
  }
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.6875rem;
  padding: 0.25rem 0.5rem 0.25rem 0;
  border-radius: var(--radius-chip);
  flex-shrink: 0;
  justify-self: start;
}

.brand-lockup svg {
  width: 1.875rem;
  height: 1.875rem;
}

.brand-names {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  white-space: nowrap;
}

.brand-cn {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--logo-cn);
}

.brand-en {
  display: none;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--logo-en);
}

.brand-en::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.75rem;
  background-color: rgba(212, 195, 165, 0.28);
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .brand-cn {
    font-size: 1rem;
  }
  .brand-en {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
  }
}

.nav-tabs {
  display: none;
  align-items: center;
  justify-self: center;
  gap: 2.125rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .nav-tabs {
    display: flex;
  }
}

@media (min-width: 768px) and (max-width: 895px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
  }

  .nav-tabs {
    gap: 1.25rem;
  }
}

.nav-tab {
  color: var(--text-secondary);
  border-bottom: 1.5px solid transparent;
  padding-block: 0.375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.nav-tab:hover {
  color: var(--text-primary);
}

.nav-tab.is-active,
.nav-tab[aria-current="page"] {
  color: var(--gold-text);
  border-bottom-color: var(--gold-text);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 0.625rem;
}

@media (max-width: 359px) {
  .home-header .header-inner {
    gap: 0.5rem;
  }

  .home-header .header-actions {
    gap: 0.375rem;
  }

  .home-header #headerContactBtn {
    padding-inline: 0.625rem;
  }
}

@media (min-width: 640px) {
  .header-actions {
    gap: 0.75rem;
  }
}

/* Mobile Compact Nav Bar (Visible < 768px) */
.mobile-nav {
  display: flex;
  align-items: center;
  gap: 1.375rem;
  overflow-x: auto;
  padding-block: 0.5rem;
  border-top: 1px solid var(--divider);
  font-size: 0.8125rem;
}

@media (min-width: 768px) {
  .mobile-nav {
    display: none;
  }
}

/* =========================================================================
   Hero Section — Swiss Editorial Grid + Pure 2D Astronomical SVG
   ========================================================================= */

.hero-section {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--divider);
  min-height: calc(100vh - 6.75rem);
  min-height: calc(100svh - 6.75rem);
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-section {
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100svh - var(--header-height));
  }
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  pointer-events: none;
}

.hero-art svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 767px) {
  .hero-section {
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
  }
  .hero-content {
    order: 1;
    padding-block: 2.75rem 2rem;
  }
  .hero-art {
    order: 2;
    position: relative;
    inset: auto;
    height: 22rem;
    opacity: 1;
    border-top: 1px solid var(--divider);
  }
  #heroTelemetryWrap,
  #heroMarkersWrap,
  #heroDiffractionNodes,
  #heroReticle {
    display: none;
  }
  .hero-status-bar {
    position: relative;
    order: 3;
    padding-block: 0.875rem 1.25rem;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding-block: clamp(2.5rem, 5vh, 4rem) clamp(4.75rem, 8vh, 6rem);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  max-width: 32rem;
  pointer-events: auto;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: -2.75rem -3.25rem;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 68% 62% at 40% 48%, rgba(18, 20, 23, 0.74) 0%, rgba(18, 20, 23, 0.34) 56%, rgba(18, 20, 23, 0) 100%);
}

.hero-copy.is-intro-enter {
  opacity: 0;
  transform: translateY(10px);
}

.hero-copy.is-intro-ready {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-intro-fade {
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-intro-fade.is-intro-hidden {
  opacity: 0 !important;
  transition: none !important;
}

.hero-orbit-draw {
  transition: stroke-dashoffset 0.72s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
}

.hero-cube-interactive {
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  user-select: none;
  outline: none;
}

.hero-cube-interactive:focus,
.hero-cube-interactive:focus-visible {
  outline: none;
}

.hero-cube-interactive:focus-visible .hero-cube-focus-ring {
  stroke: var(--focus-ring);
  opacity: 0.72;
}

.hero-cube-interactive:hover .hero-cube-focus-ring {
  opacity: 0.56;
}

.hero-cube-interactive.is-star-hover {
  cursor: pointer;
}

.hero-cube-interactive.is-dragging,
body.is-dragging-cube {
  cursor: grabbing !important;
  user-select: none;
}

.hero-cube-focus-ring {
  opacity: 0.16;
  transition: opacity 0.24s ease, stroke 0.24s ease;
}

.hero-orbital-star {
  pointer-events: auto;
  cursor: pointer;
  outline: none;
}

.hero-orbital-star:focus,
.hero-orbital-star:focus-visible {
  outline: none;
}

.hero-orbital-star:focus-visible #heroOrbitalStarRing circle:first-child {
  stroke: var(--focus-ring);
  stroke-width: 1.4;
  opacity: 1;
}

.hero-orbital-star:hover #heroOrbitalStarRing circle:first-child {
  stroke: var(--cube-star-lit);
  opacity: 1;
}

.hero-cube-reset {
  pointer-events: auto;
  cursor: pointer;
  outline: none;
  transition: opacity 0.2s ease;
}

.hero-cube-reset:focus,
.hero-cube-reset:focus-visible {
  outline: none;
}

.hero-cube-reset:hover rect,
.hero-cube-reset:focus-visible rect {
  stroke: var(--gold-text);
}

.hero-cube-reset:hover text,
.hero-cube-reset:focus-visible text {
  fill: var(--gold-text);
}

.hero-crystal-orbiter {
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  user-select: none;
  outline: none;
}

.hero-crystal-orbiter:focus,
.hero-crystal-orbiter:focus-visible {
  outline: none;
}

.hero-crystal-orbiter:hover .hero-crystal-halo {
  opacity: 0.72;
  stroke: var(--cube-star-lit);
}

.hero-crystal-orbiter.is-dragging {
  cursor: grabbing !important;
}

@keyframes al-cue-breath {
  0%, 100% { opacity: 0.44; }
  50% { opacity: 0.88; }
}

/* Unified Precision Instrumentation Bottom Bar */
.hero-status-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding-bottom: 1.25rem;
  pointer-events: none;
}

.hero-status-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: flex-end;
  gap: 1rem;
}

.hero-status-meta {
  display: none;
  font-size: 0.65625rem;
  letter-spacing: 0.14em;
  line-height: 1;
  color: rgba(148, 152, 159, 0.56);
  justify-self: start;
  padding-bottom: 0.125rem;
  user-select: none;
}

@media (min-width: 768px) {
  .hero-status-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }
}

.hero-scroll-cue {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  pointer-events: auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4375rem;
  padding: 0.25rem 0.5rem 0;
  color: rgba(186, 190, 198, 0.68);
  animation: al-cue-breath 7s ease-in-out infinite;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.hero-scroll-label {
  font-size: 0.59375rem;
  letter-spacing: 0.24em;
  line-height: 1;
  text-transform: uppercase;
  padding-left: 0.24em;
}

.hero-scroll-stem {
  display: block;
  width: 1px;
  height: 1.5rem;
  background-color: currentColor;
  transform-origin: top center;
  transition: height 0.24s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease;
}

.hero-scroll-cue:hover {
  color: var(--gold-text);
  opacity: 1;
  animation-play-state: paused;
}

.hero-scroll-cue:hover .hero-scroll-stem {
  height: 1.875rem;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.125rem;
}

.eyebrow-dot {
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 9999px;
  background-color: var(--gold-graphic);
  flex-shrink: 0;
}

.eyebrow-badge .eyebrow-dot {
  width: 1.125rem;
  height: 1px;
  border-radius: 0;
}

.hero-eyebrow {
  margin-bottom: 1.5rem;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.14em;
  font-family: var(--font-sans);
  font-size: clamp(2.875rem, 4.4vw, 4.125rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: var(--text-hero-title);
}

.hero-title-line {
  display: block;
}

.hero-subtitle {
  margin-top: 1.5rem;
  max-width: 28rem;
  font-size: 0.96875rem;
  font-weight: 400;
  line-height: 1.8;
  color: #B2B6BD;
}

@media (min-width: 400px) {
  .hero-subtitle-clause {
    display: block;
  }
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem 1.125rem;
}

.hero-specs {
  margin-top: 2.25rem;
  padding-top: 1.125rem;
  border-top: 1px solid rgba(212, 195, 165, 0.14);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  justify-content: start;
  gap: 1rem 1.75rem;
}

@media (max-width: 479px) {
  .hero-specs {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.hero-spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-spec-key {
  font-size: 0.65625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  color: rgba(214, 184, 112, 0.84);
}

.hero-spec-val {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: rgba(180, 184, 192, 0.86);
  white-space: nowrap;
}

@media (max-width: 479px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn-base {
    width: 100%;
  }
}

@media (max-width: 639px) and (orientation: portrait) {
  .hero-content {
    padding-block: 1.75rem 1.25rem;
  }

  .hero-copy .hero-eyebrow {
    margin-bottom: 0.875rem;
    font-size: clamp(0.5625rem, 2.6vw, 0.6875rem);
    letter-spacing: 0.1em;
  }

  .hero-title {
    font-size: clamp(2.25rem, 11vw, 3rem);
    line-height: 1.12;
  }

  .hero-subtitle {
    margin-top: 1rem;
    line-height: 1.65;
  }

  .hero-actions {
    margin-top: 1.25rem;
    gap: 0.625rem;
  }

  .hero-specs {
    margin-top: 1.25rem;
    padding-top: 0.875rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .hero-spec-key {
    font-size: clamp(0.5625rem, 2.45vw, 0.65625rem);
    letter-spacing: 0.07em;
  }

  .hero-art {
    height: clamp(13.5rem, 70vw, 20rem);
  }

  .hero-status-bar {
    position: relative;
    padding-block: 0.25rem 0.875rem;
  }
}

@media (max-width: 639px) and (max-height: 720px) and (orientation: portrait) {
  .hero-content {
    padding-block: 1.25rem 1rem;
  }

  .hero-specs {
    margin-top: 1rem;
  }

  .hero-art {
    height: clamp(12rem, 61vw, 16rem);
  }
}

@media (min-width: 360px) and (max-width: 479px) and (max-height: 720px) and (orientation: portrait) {
  .hero-actions {
    flex-direction: row;
    gap: 0.5rem;
  }

  .hero-actions .btn-base {
    width: auto;
    flex: 1 1 auto;
    padding-inline: 0.5rem;
    font-size: 0.8125rem;
  }
}

@media (min-width: 768px) and (orientation: portrait) {
  .hero-copy {
    max-width: min(32rem, 52%);
  }

  .hero-actions {
    gap: 0.75rem;
  }

  .hero-actions .btn-lg {
    padding-inline: 0.875rem;
  }
}

@media (min-width: 560px) and (max-width: 1023px) and (max-height: 480px) and (orientation: landscape) {
  .mobile-nav {
    padding-block: 0.25rem;
  }

  .hero-section {
    flex-direction: row;
    align-items: center;
  }

  .hero-art {
    position: absolute;
    inset: 0;
    height: auto;
    border-top: 0;
  }

  .hero-content {
    padding-block: 0.75rem 2rem;
  }

  .hero-copy {
    max-width: 55%;
  }

  .hero-eyebrow {
    margin-bottom: 0.625rem;
  }

  .hero-title {
    font-size: clamp(2rem, 4.4vw, 2.75rem);
    line-height: 1.08;
  }

  .hero-subtitle {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .hero-subtitle-clause {
    display: inline;
  }

  .hero-actions {
    margin-top: 0.875rem;
    gap: 0.5rem 0.75rem;
  }

  .hero-actions .btn-lg {
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }

  .hero-specs {
    margin-top: 0.875rem;
    padding-top: 0.625rem;
    gap: 0.75rem 1.125rem;
  }

  .hero-status-bar {
    padding-bottom: 0.5rem;
  }
}

@media (min-width: 560px) and (max-width: 639px) and (max-height: 480px) and (orientation: landscape) {
  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
  }

  .nav-tabs {
    display: flex;
    gap: 0.625rem;
    font-size: 0.8125rem;
  }

  .mobile-nav {
    display: none;
  }

  .hero-copy {
    max-width: 59%;
  }

  .hero-actions {
    gap: 0.5rem;
  }

  .hero-actions .btn-lg {
    padding-inline: 0.5rem;
  }
}

/* =========================================================================
   Page Sections & Headers
   ========================================================================= */

.page-section {
  padding-block: clamp(4rem, 6.5vh, 5.75rem);
  border-bottom: 1px solid var(--divider);
  scroll-margin-top: calc(var(--header-height) + 1px);
}

.page-section--last {
  border-bottom: 0;
  padding-block: clamp(4rem, 6vh, 5.5rem) clamp(4.75rem, 7.5vh, 6.5rem);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--divider);
}

@media (min-width: 640px) {
  .section-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.125rem;
  height: 1px;
  background-color: var(--gold-graphic);
  flex-shrink: 0;
}

.section-title {
  margin-top: 0.625rem;
  font-family: var(--font-sans);
  font-size: clamp(1.625rem, 2.3vw, 2.125rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.24;
  color: var(--text-hero-title);
}

.section-epigraph {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 26rem;
}

.section-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 32rem;
}

/* =========================================================================
   Section 2: Product Pillars Grid (EpochCoffer + GPMS)
   ========================================================================= */

.pillars-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

.pillar-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 1.375rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.24s ease;
}

.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2.5rem;
  height: 1.5px;
  background-color: var(--gold-graphic);
  opacity: 0.72;
  transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
}

.pillar-card:hover {
  border-color: rgba(212, 195, 165, 0.32);
}

.pillar-card:hover::before {
  width: 4.5rem;
  opacity: 1;
}

.pillar-card > div:first-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

@media (min-width: 640px) {
  .pillar-card {
    padding: 2rem;
  }
}

.pillar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 519px) {
  .pillar-head {
    flex-direction: column;
    gap: 0.625rem;
  }
}

.pillar-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gold-text);
}

.pillar-title {
  margin-top: 0.5rem;
  font-family: var(--font-sans);
  font-size: clamp(1.375rem, 1.75vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.28;
  color: var(--text-hero-title);
}

.pillar-desc {
  margin-top: 0.4375rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.pillar-tag {
  flex-shrink: 0;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-chip);
  border: 1px solid rgba(212, 195, 165, 0.2);
  background-color: var(--bg-page);
  color: var(--logo-en);
}

.pillar-preview-box {
  margin-top: 1.375rem;
  padding: 0.875rem;
  border-radius: var(--radius-inner);
  background-color: var(--bg-page);
  border: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 auto;
  min-width: 0;
}

@media (min-width: 640px) {
  .pillar-preview-box {
    margin-top: 1.5rem;
    padding: 1.125rem;
  }
  .pillar-preview-box--padded {
    padding: 1.25rem;
  }
}

.pillar-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--divider);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.875rem;
}

.pillar-footer-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.tech-chip {
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-chip);
  border: 1px solid var(--divider);
  background-color: var(--bg-page);
  color: var(--text-secondary);
}

/* EpochCoffer Live TOTP Widget */
.totp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.875rem;
  border-bottom: 1px solid var(--divider);
}

.totp-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.totp-dot {
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 9999px;
  background-color: var(--gold-graphic);
}

.totp-badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.1875rem 0.5625rem;
  border-radius: var(--radius-chip);
}

.totp-vault-list {
  display: grid;
  gap: 0.75rem;
  flex: 1 1 auto;
  align-content: center;
}

.totp-entry {
  padding: 0.875rem 1rem;
  border-radius: var(--radius-control);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  min-width: 0;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

@media (min-width: 640px) {
  .totp-entry {
    padding: 1rem 1.125rem;
    gap: 1rem;
  }
}

.totp-entry:hover {
  border-color: var(--control-border);
}

.totp-entry.is-copied-row {
  border-color: var(--status-success-fg);
}

.totp-entry--secondary {
  padding: 0.75rem 1rem;
}

@media (max-width: 479px) {
  .totp-entry--secondary {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
  }
}

@media (min-width: 640px) {
  .totp-entry--secondary {
    padding: 0.875rem 1.125rem;
  }
}

.totp-entry--secondary .totp-code-row {
  margin-top: 0.4375rem;
}

.totp-entry--secondary .totp-code {
  font-size: 1.25rem;
}

@media (min-width: 640px) {
  .totp-entry--secondary .totp-code {
    font-size: 1.375rem;
  }
}

.totp-entry-main {
  min-width: 0;
  flex: 1 1 auto;
}

.totp-issuer-row {
  display: flex;
  align-items: center;
  gap: 0.4375rem;
}

.totp-issuer {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.totp-star-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border-radius: 4px;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.totp-star-btn:hover {
  opacity: 0.85;
  transform: scale(1.08);
}

.totp-account {
  margin-top: 0.125rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.totp-code-row {
  margin-top: 0.625rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.totp-code {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  color: var(--text-primary);
}

@media (min-width: 640px) {
  .totp-code {
    font-size: 1.875rem;
    letter-spacing: 0.06em;
  }
}

.totp-copy-btn {
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  padding: 0.25rem 0.6875rem;
  border-radius: var(--radius-chip);
  border: 1px solid var(--border-elevated);
  background-color: var(--bg-page);
  color: var(--text-secondary);
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}
.totp-copy-btn:hover,
.totp-entry:hover .totp-copy-btn:not(.is-copied) {
  color: var(--gold-text);
  border-color: rgba(214, 184, 112, 0.55);
  background-color: var(--gold-selected-bg);
}
.totp-copy-btn.is-copied {
  color: var(--status-success-fg);
  border-color: var(--status-success-fg);
  background-color: var(--status-success-bg);
}

.totp-epoch-tag {
  flex-shrink: 0;
  font-size: 0.75rem;
  padding: 0.25rem 0.5625rem;
  border-radius: var(--radius-chip);
  border: 1px solid var(--divider);
  color: var(--text-secondary);
}

.totp-ring-wrap {
  flex-shrink: 0;
  position: relative;
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.totp-ring-wrap svg {
  width: 3.25rem;
  height: 3.25rem;
}

@media (min-width: 640px) {
  .totp-ring-wrap,
  .totp-ring-wrap svg {
    width: 3.75rem;
    height: 3.75rem;
  }
}

.totp-ring-progress {
  transition: stroke 0.25s ease;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.totp-seconds {
  position: absolute;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.totp-status-strip {
  margin-top: 0.875rem;
  padding: 0.5625rem 0.8125rem;
  border-radius: var(--radius-chip);
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.schematic-svg {
  width: 100%;
  height: auto;
  display: block;
  margin-block: auto;
}

/* =========================================================================
   Section 3: Engineering Principles (3-Column Grid)
   ========================================================================= */

.principles-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .principles-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.principle-card {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 1.75rem 2rem;
  transition: border-color 0.24s ease;
}

.principle-card:hover {
  border-color: rgba(212, 195, 165, 0.3);
}

.principle-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.375rem;
}

.principle-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-control);
  border: 1px solid var(--divider);
  background-color: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.22s ease;
}

.principle-card:hover .principle-icon {
  border-color: var(--gold-text);
}

.principle-numeral {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.12em;
  color: rgba(212, 195, 165, 0.42);
  user-select: none;
  transition: color 0.24s ease;
}

.principle-card:hover .principle-numeral {
  color: var(--gold-text);
}

.principle-code {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: rgba(214, 184, 112, 0.86);
  margin-bottom: 0.4375rem;
}

.principle-title {
  font-family: var(--font-sans);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--text-hero-title);
}

.principle-rule {
  display: block;
  width: 1.5rem;
  height: 1px;
  background-color: rgba(212, 195, 165, 0.34);
  margin-top: 0.9375rem;
  transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.24s ease;
}

.principle-card:hover .principle-rule {
  width: 2.75rem;
  background-color: var(--gold-graphic);
}

.principle-desc {
  margin-top: 0.875rem;
  font-size: 0.875rem;
  line-height: 1.72;
  text-wrap: pretty;
  color: var(--text-secondary);
}

/* =========================================================================
   Section 4: Official Collaboration CTA Band
   ========================================================================= */

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: 1.875rem 1.5rem;
  border-color: rgba(212, 195, 165, 0.22);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: border-color 0.24s ease;
}

.cta-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3rem;
  height: 1.5px;
  background-color: var(--gold-graphic);
  opacity: 0.85;
}

.cta-panel:hover {
  border-color: rgba(212, 195, 165, 0.36);
}

.cta-panel-art {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: auto;
  min-width: 55%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.72;
}

@media (max-width: 767px) {
  .cta-panel-art {
    opacity: 0.28;
  }
}

@media (min-width: 768px) {
  .cta-panel {
    padding: 2.5rem 2.75rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta-copy {
  position: relative;
  z-index: 2;
  max-width: 38rem;
}

.cta-title {
  margin-top: 0.625rem;
  font-family: var(--font-sans);
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.3;
  color: var(--text-hero-title);
}

.cta-epigraph {
  margin-top: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.55;
  color: var(--text-secondary);
}

.cta-desc {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.cta-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cta-actions .btn-outline {
  background-color: var(--bg-card);
}

.cta-actions .btn-outline:hover:not(:disabled) {
  background-color: var(--gold-selected-bg);
}

/* =========================================================================
   Inner Page Hero Banner (Products / Contact)
   ========================================================================= */

.inner-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--divider);
  padding-block: 2.75rem 3rem;
}

@media (min-width: 640px) {
  .inner-hero {
    padding-block: 3.75rem 4rem;
  }
}

.inner-hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  pointer-events: none;
  opacity: 0.5;
}

.inner-hero-art svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 767px) {
  .inner-hero-art {
    opacity: 0.24;
  }
}

.inner-hero-content {
  position: relative;
  z-index: 10;
}

.inner-hero-title {
  margin-top: 0.5rem;
  font-family: var(--font-sans);
  font-size: clamp(1.875rem, 3vw, 2.625rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-hero-title);
}

.inner-hero-subtitle {
  margin-top: 0.875rem;
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* =========================================================================
   Footer
   ========================================================================= */

.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--divider);
  background-color: var(--bg-page);
  padding-block: 2.25rem;
}

/* =========================================================================
   Home Ambient Twinkling Starfield (Sparse, Low-Luminance, Full Backdrop)
   ========================================================================= */

.home-main {
  position: relative;
  isolation: isolate;
}

.home-main > section {
  position: relative;
  z-index: 1;
}

.home-ambient-stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.home-ambient-stars-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ambient-star-core {
  opacity: var(--ambient-star-base);
  animation: al-ambient-core var(--star-dur, 21s) ease-in-out var(--star-delay, 0s) infinite;
}

.ambient-star-rays {
  opacity: 0;
  transform: scale(0.18);
  animation: al-ambient-rays var(--star-dur, 21s) ease-in-out var(--star-delay, 0s) infinite;
}

.ambient-meteor-body {
  opacity: 0;
  transform: translateX(0px);
  animation: al-meteor-glide var(--meteor-dur, 23s) cubic-bezier(0.16, 0.04, 0.28, 1) var(--meteor-delay, 0s) infinite;
}

.ambient-meteor-body--rare {
  animation-name: al-meteor-glide-rare;
}

.ambient-meteor-wake {
  transform: scaleX(0.14);
  animation: al-meteor-wake var(--meteor-dur, 23s) cubic-bezier(0.16, 0.04, 0.28, 1) var(--meteor-delay, 0s) infinite;
}

.ambient-meteor-wake--rare {
  animation-name: al-meteor-wake-rare;
}

.ambient-meteor-head {
  transform: scale(0.35);
  animation: al-meteor-head var(--meteor-dur, 23s) ease-out var(--meteor-delay, 0s) infinite;
}

.ambient-meteor-head--rare {
  animation-name: al-meteor-head-rare;
}

@keyframes al-ambient-core {
  0%, 72%, 96%, 100% {
    opacity: var(--ambient-star-base);
  }
  80%, 91% {
    opacity: var(--ambient-star-mid);
  }
  85% {
    opacity: var(--ambient-star-peak);
  }
}

@keyframes al-ambient-rays {
  0%, 75%, 95%, 100% {
    opacity: 0;
    transform: scale(0.18);
  }
  81% {
    opacity: var(--ambient-star-mid);
    transform: scale(0.76);
  }
  85% {
    opacity: var(--ambient-star-ray-peak);
    transform: scale(1.08);
  }
  90% {
    opacity: 0.36;
    transform: scale(0.7);
  }
}

@keyframes al-meteor-glide {
  0% {
    opacity: 0;
    transform: translateX(0px);
  }
  0.8% {
    opacity: var(--ambient-meteor-peak);
  }
  3.2% {
    opacity: var(--ambient-meteor-peak);
  }
  4.6%, 100% {
    opacity: 0;
    transform: translateX(var(--meteor-dist, 420px));
  }
}

@keyframes al-meteor-glide-rare {
  0% {
    opacity: 0;
    transform: translateX(0px);
  }
  0.55% {
    opacity: var(--ambient-meteor-peak);
  }
  2.1% {
    opacity: var(--ambient-meteor-peak);
  }
  3.1%, 100% {
    opacity: 0;
    transform: translateX(var(--meteor-dist, 380px));
  }
}

@keyframes al-meteor-wake {
  0% {
    transform: scaleX(0.14);
  }
  1.1% {
    transform: scaleX(1);
  }
  3.1% {
    transform: scaleX(0.92);
  }
  4.6%, 100% {
    transform: scaleX(0.1);
  }
}

@keyframes al-meteor-wake-rare {
  0% {
    transform: scaleX(0.14);
  }
  0.75% {
    transform: scaleX(1);
  }
  2.05% {
    transform: scaleX(0.92);
  }
  3.1%, 100% {
    transform: scaleX(0.1);
  }
}

@keyframes al-meteor-head {
  0% {
    transform: scale(0.35);
  }
  1.2% {
    transform: scale(1.14);
  }
  3.1% {
    transform: scale(0.95);
  }
  4.6%, 100% {
    transform: scale(0.22);
  }
}

@keyframes al-meteor-head-rare {
  0% {
    transform: scale(0.35);
  }
  0.8% {
    transform: scale(1.14);
  }
  2.05% {
    transform: scale(0.95);
  }
  3.1%, 100% {
    transform: scale(0.22);
  }
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand svg {
  width: 1.625rem;
  height: 1.625rem;
}

.footer-brand-names {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand-cn {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--logo-cn);
}

.footer-brand-en {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--logo-en);
}

.footer-brand-en::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.75rem;
  background-color: rgba(212, 195, 165, 0.28);
}

.footer-copy {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

.footer-icp {
  margin-top: 1.25rem;
  text-align: center;
}

.footer-icp a {
  color: inherit;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.footer-links .body-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.16s ease;
}

.footer-links .body-link:hover {
  color: var(--gold-text);
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.footer-badge {
  padding: 0.3125rem 0.6875rem;
  border-radius: var(--radius-chip);
  border: 1px solid var(--divider);
  color: var(--text-secondary);
}

/* =========================================================================
   Precision Instrument Motion System ("极慢克制" — Zero Glow / Zero Blur)
   ========================================================================= */

@keyframes al-spin-cw {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes al-spin-ccw {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes al-dash-crawl {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -48; }
}

@keyframes al-center-pulse {
  0% { r: 12; opacity: 0.55; }
  100% { r: 38; opacity: 0; }
}

@keyframes al-star-phase {
  0%, 100% { opacity: 0.58; }
  50% { opacity: 0.96; }
}

@keyframes al-bus-flow {
  from { stroke-dashoffset: 32; }
  to { stroke-dashoffset: 0; }
}

@keyframes al-otp-roll {
  0% {
    transform: translateY(105%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes al-expiring-tick {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* 1. Hero Observatory SVG (Ultra-Slow Horological Pacing) */
.hero-ring-outer {
  transform-origin: 1124px 456px;
  animation: al-spin-cw 140s linear infinite;
}

.hero-ring-mid {
  transform-origin: 1124px 456px;
  animation: al-spin-ccw 100s linear infinite;
}

.hero-orbit-companion {
  animation: al-dash-crawl 18s linear infinite;
}

.hero-center-pulse {
  animation: al-center-pulse 6.5s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.hero-star-group-a {
  animation: al-star-phase 8.5s ease-in-out infinite;
}

.hero-star-group-b {
  animation: al-star-phase 11.5s ease-in-out -4.2s infinite;
}

.hero-reticle {
  pointer-events: none;
  opacity: 0.62;
  transition: opacity 0.18s ease;
  will-change: transform;
}

.hero-reticle.is-tracking {
  opacity: 0.92;
}

.hero-reticle.is-returning {
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s ease;
}

.hero-reticle.is-hidden-reticle {
  opacity: 0;
}

/* Inner Page Hero Slow Calibration Ring */
.inner-ring-outer {
  transform-origin: 1260px 170px;
  animation: al-spin-cw 140s linear infinite;
}

.inner-ring-outer--contact {
  transform-origin: 1260px 160px;
  animation: al-spin-cw 140s linear infinite;
}

/* Minimal Borderless Hero Motion Pause Control (Inside Instrumentation Status Bar) */
.hero-motion-toggle {
  grid-column: 3;
  justify-self: end;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  padding: 0.25rem 0 0.125rem;
  border: 0;
  background: transparent;
  color: rgba(186, 190, 198, 0.72);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  line-height: 1;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.hero-motion-toggle:hover {
  color: var(--gold-text);
}

.hero-motion-toggle:active {
  opacity: 0.78;
}

.motion-toggle-icon {
  display: inline-flex;
  align-items: center;
}

/* 2. GPMS Bus Pulse & Client Hover Highlight */
.gpms-bus-flow {
  stroke-dasharray: 4 12;
  animation: al-bus-flow 3.4s linear infinite;
}

.gpms-bus-offline {
  stroke-dasharray: 4 6;
  animation: none;
}

.gpms-node-group {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.gpms-node-group:focus,
.gpms-node-group:focus-visible,
.gpms-hub-group:focus,
.gpms-hub-group:focus-visible {
  outline: none;
}

.gpms-node-group:hover .gpms-node-card,
.gpms-node-group.is-selected .gpms-node-card {
  stroke: var(--gold-text);
  stroke-width: 1.5;
}

.gpms-node-group:focus-visible .gpms-node-card,
.gpms-hub-group:focus-visible > rect {
  stroke: var(--focus-ring);
  stroke-width: 1.8;
}

.gpms-node-group.is-dimmed {
  opacity: 0.48;
}

.gpms-hub-group {
  cursor: pointer;
}

.gpms-node-card {
  transition: stroke 0.22s ease;
}

/* 3. EpochCoffer Odometer Rolling Digits */
.totp-code {
  display: inline-flex;
  align-items: baseline;
}

.otp-digit-slot {
  display: inline-block;
  overflow: hidden;
  line-height: 1.15;
  vertical-align: bottom;
}

.otp-digit {
  display: inline-block;
}

.otp-digit.is-rolling {
  animation: al-otp-roll 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.otp-gap {
  display: inline-block;
  width: 0.45em;
}

.totp-seconds.is-expiring-tick {
  animation: al-expiring-tick 1s steps(2, end) infinite;
}

/* 4. Brand Emblem Hover Orbit Sweep (Quiet at Rest) */
.logo-orbit-sweep {
  stroke-dasharray: 22 64;
  stroke-dashoffset: 22;
  opacity: 0;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

@media (hover: hover) {
  .brand-lockup:hover .logo-orbit-sweep,
  .brand-lockup:focus-visible .logo-orbit-sweep {
    opacity: 1;
    stroke-dashoffset: -64;
  }
}

/* 5. Engineering Principles Hover Geometric Micro-Motion (Quiet at Rest) */
.principle-card {
  transition: border-color 0.22s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
  .principle-card:hover,
  .js-motion-ready .principle-card.is-revealed:hover {
    border-color: var(--surface-hover-border);
    transform: translateY(-2px);
  }
}

.icon-hex-rotor {
  transform-origin: 12px 12px;
  transition: transform 0.56s cubic-bezier(0.22, 1, 0.36, 1);
}

.icon-reticle-cross {
  transform-origin: 12px 12px;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.icon-plane-top,
.icon-plane-bottom {
  transition: transform 0.46s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
  .principle-card:hover .icon-hex-rotor,
  .principle-card:focus-within .icon-hex-rotor {
    transform: rotate(60deg);
  }

  .principle-card:hover .icon-reticle-cross,
  .principle-card:focus-within .icon-reticle-cross {
    transform: scale(0.84);
  }

  .principle-card:hover .icon-plane-top,
  .principle-card:focus-within .icon-plane-top {
    transform: translateY(-1.8px);
  }

  .principle-card:hover .icon-plane-bottom,
  .principle-card:focus-within .icon-plane-bottom {
    transform: translateY(1.8px);
  }
}

/* 6. Swiss Blueprint Scroll Reveal (Progressive Enhancement) */
.js-motion-ready .reveal-line {
  position: relative;
}

.js-motion-ready .reveal-line::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background-color: var(--gold-graphic);
  opacity: 0.45;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.62s ease;
  pointer-events: none;
}

.js-motion-ready .reveal-line.is-revealed::after {
  transform: scaleX(1);
  opacity: 0;
}

.js-motion-ready .reveal-item {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.54s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    transform 0.54s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    border-color 0.22s ease;
}

.js-motion-ready .reveal-item.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Global Pause & Offscreen Hibernation */
[data-motion="paused"] .motion-svg *,
.motion-svg.is-offscreen *,
.is-hero-motion-paused *,
[data-motion="paused"] .hero-scroll-cue {
  animation-play-state: paused !important;
}

[data-motion="paused"] .totp-seconds.is-expiring-tick {
  animation-play-state: paused !important;
}

[data-motion="paused"] .hero-copy,
[data-motion="paused"] .hero-intro-fade,
[data-motion="paused"] .totp-ring-progress {
  transition: none;
}

/* =========================================================================
   Reduced Motion Respect (Full Accessibility Compliance)
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .motion-svg *,
  .hero-scroll-cue,
  .totp-seconds.is-expiring-tick,
  .otp-digit.is-rolling {
    animation: none !important;
  }
  .ambient-star-core {
    opacity: 0.22;
  }
  .ambient-star-rays {
    opacity: 0;
  }
  .ambient-meteor-body {
    display: none;
  }
  .totp-ring-progress,
  .btn-base,
  .btn-base svg,
  .nav-tab,
  .body-link,
  .hero-reticle,
  .hero-scroll-cue,
  .logo-orbit-sweep,
  .icon-hex-rotor,
  .icon-reticle-cross,
  .icon-plane-top,
  .icon-plane-bottom,
  .pillar-card::before,
  .principle-rule,
  .principle-numeral,
  .reveal-item,
  .reveal-line::after {
    transition: none !important;
  }
  .js-motion-ready .reveal-item {
    opacity: 1;
    transform: none;
  }
  .hero-motion-toggle {
    display: none;
  }
}
