/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; min-height: min(76vh, 700px);
  display: flex; align-items: center;
  padding: 40px 0 60px;
}

/* scenery host: globe (obsidian) sits right; arc (porcelain) arches behind copy */
.hero-scene { position: absolute; pointer-events: none; }
.hero-scene.scene-globe {
  right: -8%; top: 50%; transform: translateY(-50%);
  width: min(58vw, 660px); aspect-ratio: 1; opacity: 0.95;
  -webkit-mask-image: radial-gradient(closest-side, #000 65%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 65%, transparent 100%);
}
.hero-scene.scene-globe canvas { width: 100% !important; height: 100% !important; display: block; }
.hero-scene.scene-arc {
  left: 50%; top: -6px; transform: translateX(-50%);
  width: min(94%, 760px);
}
/* Porcelain marketing hero: the arc sits ABOVE the copy in normal flow,
   never overlapping the text. (Compact home keeps the faint backdrop arc.) */
[data-theme="porcelain"] .hero:not(.hero-compact), :root:not([data-theme="obsidian"]) .hero:not(.hero-compact) {
  flex-direction: column; justify-content: center;
}
[data-theme="porcelain"] .hero:not(.hero-compact) .hero-scene.scene-arc,
:root:not([data-theme="obsidian"]) .hero:not(.hero-compact) .hero-scene.scene-arc {
  position: relative; left: auto; top: auto; transform: none;
  width: min(88%, 640px); margin: 30px auto -18px;
}
.arc-svg { width: 100%; display: block; overflow: visible; }
.arc-path {
  stroke: var(--accent-color); stroke-width: 1.4;
  stroke-dashoffset: 800; animation: arcDraw 3s ease-out forwards;
}
@keyframes arcDraw { to { stroke-dashoffset: 0; } }
.arc-dot.a { fill: var(--accent-color); }
.arc-dot.b { fill: #00B8E0; }
.arc-plane {
  font-size: 13px; fill: var(--accent-color);
  offset-path: path('M 40 172 Q 350 -42 660 172');
  animation: arcPlane 7s linear infinite;
}
@keyframes arcPlane { from { offset-distance: 0%; } to { offset-distance: 100%; } }

.hero-copy { position: relative; z-index: 2; max-width: 720px; }
[data-theme="porcelain"] .hero .hero-copy, :root:not([data-theme="obsidian"]) .hero .hero-copy {
  margin: 0 auto; text-align: center; padding-top: 0;
}
/* Demo-faithful kicker: porcelain is sans 12px / 0.32em; obsidian is mono. */
.hero-kicker {
  font-size: 0.75rem; letter-spacing: 0.32em; color: var(--text-muted);
  margin-bottom: 22px; font-weight: 500;
}
[data-theme="obsidian"] .hero-kicker {
  font-family: var(--font-mono); font-size: 0.69rem; letter-spacing: 0.4em;
  color: var(--accent-color); opacity: 0.9;
}
.hero-title {
  font-size: clamp(2.2rem, 4.8vw, 3.5rem); font-weight: var(--fw-display, 700); letter-spacing: -0.035em;
  line-height: 1.1; margin-bottom: 22px;
}
.hero-title span { display: block; }
.accent-word { display: inline !important; color: var(--accent-color); white-space: nowrap; }
[data-theme="porcelain"] .accent-word, :root:not([data-theme="obsidian"]) .accent-word { font-weight: 500; }
.hero-sub {
  font-size: 1.1rem; color: var(--text-secondary); line-height: 1.65;
  max-width: 520px; margin-bottom: 32px;
}
[data-theme="porcelain"] .hero-sub, :root:not([data-theme="obsidian"]) .hero-sub { margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
[data-theme="porcelain"] .hero-cta, :root:not([data-theme="obsidian"]) .hero-cta { justify-content: center; }
.btn-lg { padding: 14px 28px; font-size: 0.95rem; }

.hero-scroll {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  font-size: 0.7rem; letter-spacing: 0.3em; color: var(--text-faint);
  animation: heroScroll 2.2s ease-in-out infinite;
}
@keyframes heroScroll { 0%,100% { transform: translate(-50%, 0); opacity: 0.6; } 50% { transform: translate(-50%, 6px); opacity: 1; } }

/* ------------------------------------------------------------ stat strip */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  overflow: hidden; margin: 10px 0 56px;
  background: var(--surface-1); box-shadow: var(--shadow-card);
}
.stat-strip .stat { padding: 26px 22px; text-align: center; border-right: 1px solid var(--hairline); }
.stat-strip .stat:last-child { border-right: none; }
.stat-num { font-size: 1.7rem; font-weight: 500; color: var(--accent-color); }
[data-theme="obsidian"] .stat-num { text-shadow: 0 0 18px rgba(125, 211, 252, 0.3); }
.stat-lbl { font-size: 0.82rem; color: var(--text-muted); margin-top: 6px; line-height: 1.4; }

/* ------------------------------------------------------------ honesty */
.honest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 56px; }
.honest-card { padding: 26px; }
.honest-icon {
  font-size: 0.78rem; color: var(--accent-color); letter-spacing: 0.2em;
  border: 1px solid var(--hairline-accent); border-radius: 8px;
  display: inline-block; padding: 3px 9px; margin-bottom: 16px;
}
.honest-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.honest-card p { font-size: 0.92rem; line-height: 1.6; }

/* ------------------------------------------------------------ closing cta */
.landing-cta { text-align: center; padding: 52px 24px; }
.landing-cta h2 { font-size: 1.8rem; margin-bottom: 10px; }
.landing-cta p { max-width: 460px; margin: 0 auto 24px; }

/* ------------------------------------------------------ compact (home) */
/* greeting + ticker on the left, constellation on the right — one short row */
.hero-compact {
  min-height: 0; padding: 10px 0 2px; margin-bottom: 10px;
  flex-direction: row; align-items: center; justify-content: space-between; gap: 28px;
}
.hero-compact .hero-copy { margin: 0; text-align: left; padding-top: 0; flex: 0 0 auto; max-width: 380px; }
[data-theme="porcelain"] .hero-compact .hero-copy, :root:not([data-theme="obsidian"]) .hero-compact .hero-copy {
  margin: 0; text-align: left; padding-top: 0;
}

/* ops constellation: beside the copy, never under it */
.hero-net {
  flex: 1 1 auto; min-width: 0; max-width: 680px;
  opacity: 0.5; pointer-events: none;
}
[data-theme="obsidian"] .hero-net { opacity: 0.65; }
.net-svg { width: 100%; display: block; overflow: visible; }
.net-arc {
  stroke: color-mix(in srgb, var(--accent-color) 38%, transparent);
  stroke-width: 1.7; stroke-linecap: round; stroke-dasharray: 0.1 3.6;
  stroke-dashoffset: 100; animation: netDraw 1.2s ease-out forwards;
}
.net-arc.rm { stroke-dashoffset: 0; animation: none; }
.net-dot { fill: var(--accent-color); animation: netPop 0.3s ease-out backwards; }
.net-pulse { fill: var(--accent-data); }
[data-theme="obsidian"] .net-pulse { fill: #A78BFA; }
.net-halo {
  fill: none; stroke: var(--accent-color); stroke-width: 1;
  animation: netHalo 3s ease-out infinite;
}
@keyframes netDraw { to { stroke-dashoffset: 0; } }
@keyframes netPop { from { opacity: 0; } to { opacity: 1; } }
@keyframes netHalo { 0% { transform: scale(1); opacity: 0.6; } 60% { transform: scale(3); opacity: 0; } 100% { opacity: 0; } }

/* ticker: fixed height so rotating lines never shift the layout */
.net-ticker { height: 1.5em; overflow: hidden; }
.net-ticker span { display: inline-block; }
.hero-title-sm { font-size: clamp(1.05rem, 1.8vw, 1.3rem); margin-bottom: 4px; }
.hero-compact .hero-sub { margin: 0 0 4px; font-size: 0.88rem; }

.home-links { display: flex; gap: 22px; justify-content: center; margin-top: 28px; }
.home-links a { font-size: 0.85rem; color: var(--text-muted); transition: var(--transition-fast); }
.home-links a:hover { color: var(--accent-color); text-decoration: none; }

/* ------------------------------------------------------------ mobile */
@media (max-width: 820px) {
  .hero { min-height: auto; padding: 12px 0 40px; flex-direction: column; align-items: stretch; }
  .hero-scene.scene-globe {
    position: relative; right: auto; top: auto; transform: none;
    width: min(78vw, 340px); margin: 0 auto 8px; order: -1;
  }
  .hero-scene.scene-arc { position: relative; left: auto; top: auto; transform: none; width: 100%; margin-bottom: -30px; }
  .hero-copy { max-width: none; }
  [data-theme="porcelain"] .hero .hero-copy, :root:not([data-theme="obsidian"]) .hero .hero-copy { padding-top: 10px; }
  .hero-sub { font-size: 1rem; }
  .hero-scroll { display: none; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-strip .stat:nth-child(2n) { border-right: none; }
  .stat-strip .stat:nth-child(-n+2) { border-bottom: 1px solid var(--hairline); }
  .hero-cta .btn { flex: 1; justify-content: center; }

  .hero-compact { padding: 8px 0 4px; }
  .hero-net { width: 100%; margin-bottom: -2px; }
  .hero-title-sm { font-size: 1.05rem; }
}
