:root {
  --night: #030609;
  --paper: #f0eee7;
  --muted: rgb(240 238 231 / 62%);
  --faint: rgb(240 238 231 / 34%);
  --gold: #d6a85d;
  --blue: #88aeca;
  --line: rgb(240 238 231 / 16%);
  --sans: "Helvetica Neue", "Neue Haas Grotesk Text Pro", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  align-items: center;
  isolation: isolate;
}

.hero-media,
.hero-shade,
.hero-grid,
.hero-grain {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -4;
  background: var(--night);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: settle 2.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-shade {
  z-index: -3;
  background:
    linear-gradient(90deg, rgb(2 5 8 / 96%) 0%, rgb(2 5 8 / 79%) 32%, rgb(2 5 8 / 24%) 66%, rgb(2 5 8 / 8%) 100%),
    linear-gradient(0deg, rgb(2 5 8 / 76%) 0%, transparent 34%, rgb(2 5 8 / 18%) 100%);
}

.hero-grid {
  z-index: -2;
  opacity: 0.24;
  background-image:
    linear-gradient(rgb(136 174 202 / 10%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(136 174 202 / 8%) 1px, transparent 1px);
  background-size: 5rem 5rem;
  mask-image: linear-gradient(90deg, transparent 6%, black 58%, black 100%);
}

.hero-grain {
  z-index: -1;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.site-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 2rem clamp(1.4rem, 4vw, 4.5rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-mark {
  width: 2.7rem;
  height: 2.7rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: bevel;
}

.mark-frame {
  opacity: 0.8;
  stroke-width: 1.25;
}

.mark-i,
.mark-w {
  stroke-width: 1.4;
}

.brand-name {
  display: grid;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.19em;
  line-height: 1.05;
  text-transform: uppercase;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.status-dot {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 1rem rgb(214 168 93 / 75%);
  animation: pulse 3.6s ease-in-out infinite;
}

.header-divider {
  width: 2.2rem;
  height: 1px;
  background: var(--line);
}

.hero-content {
  width: min(91vw, 87rem);
  margin: auto;
  padding: 8rem 0 9rem;
}

.hero h1 {
  max-width: 72rem;
  margin: 0;
  color: var(--paper);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(4.6rem, 8.2vw, 8.4rem);
  letter-spacing: -0.048em;
  line-height: 0.94;
}

.hero h1 span {
  color: inherit;
}

.hero-intro {
  margin: 3.2rem 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.3vw, 1.16rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.65;
}

.signal-track {
  position: absolute;
  right: clamp(1.4rem, 4vw, 4.5rem);
  bottom: 4.45rem;
  left: clamp(1.4rem, 4vw, 4.5rem);
  height: 1px;
  overflow: hidden;
  background: var(--line);
}

.signal-track span {
  position: absolute;
  top: 0;
  left: 0;
  width: 18%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--blue), var(--gold), transparent);
  animation: travel 9s cubic-bezier(0.35, 0, 0.25, 1) infinite;
}

.hero-footer {
  position: absolute;
  right: clamp(1.4rem, 4vw, 4.5rem);
  bottom: 1.65rem;
  left: clamp(1.4rem, 4vw, 4.5rem);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  color: var(--faint);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-footer p {
  margin: 0;
}

.footer-wonder {
  justify-self: end;
}

.footer-legacy {
  display: none;
}

.hero-index {
  justify-self: center;
  text-align: center;
}

.hero-since {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.5rem;
  letter-spacing: 0.24em;
  opacity: 0.62;
}

.reveal {
  animation: reveal 850ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.reveal-delay-1 {
  animation-delay: 100ms;
}

.reveal-delay-2 {
  animation-delay: 230ms;
}

.reveal-delay-3 {
  animation-delay: 360ms;
}

@keyframes settle {
  from { transform: scale(1.055); }
  to { transform: scale(1); }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(1.4rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes travel {
  from { transform: translateX(-110%); }
  to { transform: translateX(655%); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 720px) {
  .site-header {
    padding-top: 1.35rem;
  }

  .brand-mark {
    width: 2.4rem;
    height: 2.4rem;
  }

  .header-meta {
    display: none;
  }

  .hero-media img {
    object-position: 63% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgb(2 5 8 / 93%) 0%, rgb(2 5 8 / 63%) 68%, rgb(2 5 8 / 17%) 100%),
      linear-gradient(0deg, rgb(2 5 8 / 72%) 0%, transparent 42%, rgb(2 5 8 / 23%) 100%);
  }

  .hero-grid {
    background-size: 3.5rem 3.5rem;
  }

  .hero-content {
    width: auto;
    margin: 0;
    padding: 8rem 1.4rem 9rem;
  }

  .hero h1 {
    font-size: clamp(3.9rem, 17.5vw, 5.4rem);
    line-height: 0.9;
  }

  .hero h1 span {
    display: block;
  }

  .hero-intro {
    margin-top: 2.5rem;
  }

  .hero-footer {
    grid-template-columns: 1fr;
    row-gap: 0.7rem;
  }

  .hero-index {
    display: block;
    grid-row: 2;
    justify-self: center;
  }

  .footer-iron,
  .footer-wonder {
    display: none;
  }

  .footer-legacy {
    display: block;
    grid-row: 1;
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* 天生我材 — the signature line beneath the credo, sealed in cinnabar */
.hero-motto {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.1rem;
}

.motto-text {
  font-family: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.55em;
  color: rgb(240 238 231 / 88%);
  text-shadow: 0 1px 14px rgb(2 5 8 / 55%);
}

.motto-seal {
  width: 1.35em;
  height: auto;
  flex: none;
  transform: rotate(-2.5deg) translateY(-0.08em);
  opacity: 0.94;
}

.motto-seal rect {
  fill: #b2352b;
  stroke: none;
}

.motto-seal path {
  fill: none;
  stroke: var(--paper);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reveal-delay-4 {
  animation-delay: 520ms;
}

@media (max-width: 720px) {
  .hero-motto {
    margin-top: 1.6rem;
    gap: 0.8rem;
  }

  .motto-text {
    font-size: 1.05rem;
    letter-spacing: 0.45em;
  }
}
