/* ===== Hero Variants ===== */

/* ---------- A: Editorial Brutalism ---------- */
.hero-a { padding: 140px 32px 64px; position: relative; }
.hero-a::before {
  content: '';
  position: absolute;
  bottom: 0; left: 15%;
  width: 50%; height: 50%;
  background: radial-gradient(ellipse, var(--ambient-warm) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-a > * { position: relative; z-index: 1; }
.hero-a .grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: end;
  min-height: calc(100vh - 200px);
}
.hero-a .mega {
  grid-column: 1 / -1;
  font-family: var(--font-serif);
  font-size: clamp(80px, 17vw, 320px);
  line-height: 0.82;
  letter-spacing: -0.04em;
  margin: 0;
  display: flex; flex-direction: column;
}
.hero-a .mega .line { display: block; position: relative; }
.hero-a .mega .line.italic { font-style: italic; color: var(--accent); margin-left: 12%; }
.hero-a .mega .line.outline { -webkit-text-stroke: 2px var(--fg); color: transparent; margin-left: 30%; }
.hero-a .caption {
  grid-column: 1 / span 2;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-muted);
  max-width: 360px;
}
.hero-a .tag-row { grid-column: 3 / span 2; display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.hero-a .slogan {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 16px;
}
.hero-a .slogan .zh { font-family: var(--font-serif); font-size: clamp(24px, 3vw, 40px); letter-spacing: -0.01em; }
.hero-a .slogan .en { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); }
@media (max-width: 900px) {
  .hero-a { padding: 96px 20px 40px; }
  .hero-a .mega .line.italic { margin-left: 0; }
  .hero-a .mega .line.outline { margin-left: 0; }
  .hero-a .tag-row { grid-column: 1 / -1; justify-content: flex-start; margin-top: 16px; }
  .hero-a .caption { grid-column: 1 / -1; }
  .hero-a .slogan { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ---------- B: Terminal Atelier ---------- */
.hero-b { padding: 140px 32px 64px; position: relative; }
.hero-b::before {
  content: '';
  position: absolute;
  top: 20%; left: -10%;
  width: 60%; height: 60%;
  background: radial-gradient(ellipse, var(--ambient-warm) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-b::after {
  content: '';
  position: absolute;
  bottom: 10%; right: -5%;
  width: 40%; height: 50%;
  background: radial-gradient(ellipse, var(--ambient-cool) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-b > * { position: relative; z-index: 1; }
.hero-b .grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; min-height: calc(100vh - 200px); align-items: center; }
.hero-b .left { justify-self: center; width: min(100%, 720px); }
.hero-b .left .eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 32px; display: flex; gap: 16px; align-items: center; }
.hero-b .left .eyebrow::before { content: ''; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; display: inline-block; }
.hero-b .left .mega { font-family: var(--font-serif); font-size: clamp(56px, 10vw, 160px); line-height: 0.9; letter-spacing: -0.03em; margin: 0; }
.hero-b .left .mega .typed::after { content: '|'; color: var(--accent); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-b .left .sub { margin-top: 40px; font-size: 16px; line-height: 1.6; max-width: 460px; color: var(--fg-muted); }
.hero-b .left .actions { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
.hero-b .terminal {
  transform: translateX(clamp(-24px, -1.2vw, -12px));
  background: var(--ink); color: var(--ivory);
  border-radius: 8px; overflow: hidden;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.7;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.3), 0 0 0 1px var(--glass-border);
  border: 1px solid rgba(245,241,232,.08);
}
.hero-b .terminal-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #1C1C1A; border-bottom: 1px solid rgba(255,255,255,0.06); }
.hero-b .terminal-head .dot { width: 10px; height: 10px; border-radius: 50%; }
.hero-b .terminal-head .dot.r { background: #FF5F57; }
.hero-b .terminal-head .dot.y { background: #FEBC2E; }
.hero-b .terminal-head .dot.g { background: #28C840; }
.hero-b .terminal-head .title { margin-left: 16px; opacity: 0.5; font-size: 11px; letter-spacing: 0.08em; }
.hero-b .terminal-body { padding: 20px 24px; min-height: 320px; }
.hero-b .terminal-body .line { white-space: pre-wrap; }
.hero-b .terminal-body .prompt { color: var(--accent-moss); }
.hero-b .terminal-body .cmt { color: #8C8880; }
.hero-b .terminal-body .str { color: #E4DCC6; }
.hero-b .terminal-body .key { color: #FEBC2E; }

@media (max-width: 900px) {
  .hero-b { padding: 96px 20px 40px; }
  .hero-b .grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- C: Kinetic Marquee ---------- */
.hero-c { padding: 120px 0 0; position: relative; }
.hero-c::before {
  content: '';
  position: absolute;
  top: 15%; left: 50%;
  transform: translateX(-50%);
  width: 50%; height: 50%;
  background: radial-gradient(circle, var(--ambient-warm) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-c > * { position: relative; z-index: 1; }
.hero-c .center {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 60vh;
  padding: 40px 32px;
  position: relative;
  text-align: center;
}
.hero-c .logo-cut {
  width: clamp(200px, 28vw, 440px); height: clamp(200px, 28vw, 440px);
  margin-bottom: 48px;
  animation: spinSlow calc(60s / var(--motion, 1)) linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
[data-motion="off"] .hero-c .logo-cut { animation: none; }
.hero-c .zh-title { font-family: var(--font-serif); font-size: clamp(48px, 7vw, 120px); letter-spacing: -0.02em; line-height: 1; margin: 0; }
.hero-c .en-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; margin-top: 16px; color: var(--fg-muted); }
.hero-c .marquee-stack { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 80px; }
.hero-c .marquee-stack .row {
  padding: 24px 0;
  font-family: var(--font-serif);
  font-size: clamp(64px, 10vw, 180px);
  line-height: 1;
  letter-spacing: -0.03em;
  border-bottom: 1px solid var(--line);
}
.hero-c .marquee-stack .row:last-child { border-bottom: none; }
.hero-c .marquee-stack .row .item { padding: 0 32px; display: inline-flex; align-items: center; gap: 48px; }
.hero-c .marquee-stack .row .item .star { display: inline-block; width: 48px; height: 48px; color: var(--accent); }
.hero-c .marquee-stack .row.italic { font-style: italic; color: var(--accent); }
.hero-c .marquee-stack .row.outline { -webkit-text-stroke: 2px var(--fg); color: transparent; font-weight: 400; }

@media (max-width: 900px) {
  .hero-c { padding: 80px 0 0; }
  .hero-c .marquee-stack .row { padding: 12px 0; }
}

/* ========== Shared hero bits ========== */
.metadata-strip {
  display: flex; justify-content: space-between; gap: 32px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-muted);
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.metadata-strip span { display: inline-flex; gap: 8px; }
.metadata-strip span b { color: var(--fg); font-weight: 500; }
