/* NodeWerk V1 — Hero-first, 16:9 letterbox, hotspot-clickable */
:root {
  --hero-w: 4096;
  --hero-h: 2272;
  --ratio: calc(2272 / 4096 * 100%);
  --ink: #eaf1ff;
  --ink-dim: #a9b5c9;
  --amber: #ffb84d;
  --hq-red: #ff4b4b;
  --sky: #0b1220;
  --panel: rgba(10,16,28,0.72);
  --panel-b: rgba(255,255,255,0.08);
  --shadow: 0 8px 32px rgba(0,0,0,0.5);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Inter, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--sky); color: var(--ink); font-family: var(--sans); }
html { overflow-x: hidden; }
body { min-height: 100vh; overflow-x: hidden; }

.hero {
  position: relative;
  width: 100vw;
  aspect-ratio: 16 / 9;
  max-height: 100vh;
  background: #050810;
  overflow: hidden;
}
.hero-frame {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.hero-nodes {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero-hotspots {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hotspot {
  position: absolute;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  outline: none;
  transition: transform 180ms ease, filter 180ms ease;
}
.hotspot::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 12px;
  border: 2px solid rgba(255,184,77,0);
  box-shadow: inset 0 0 0 0 rgba(255,184,77,0);
  transition: border-color 180ms ease, box-shadow 240ms ease, background 240ms ease;
  background: transparent;
}
.hotspot:hover::before,
.hotspot:focus-visible::before {
  border-color: rgba(255,184,77,0.85);
  background: radial-gradient(circle at center, rgba(255,184,77,0.16) 0%, transparent 65%);
  box-shadow: inset 0 0 0 1px rgba(255,184,77,0.35), 0 0 32px rgba(255,184,77,0.28);
}
.hotspot .label {
  position: absolute;
  left: 50%; bottom: -1.6em;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: clamp(13px, 1.4vw, 22px);
  letter-spacing: 0.06em;
  color: var(--ink);
  text-shadow: 0 2px 12px rgba(0,0,0,0.85), 0 0 6px rgba(0,0,0,0.9);
  opacity: 0; transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
  white-space: nowrap;
}
.hotspot:hover .label,
.hotspot:focus-visible .label {
  opacity: 1; transform: translateX(-50%) translateY(-4px);
}

/* HUD */
.hud {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: clamp(12px, 1.6vw, 22px) clamp(16px, 2.5vw, 40px);
  z-index: 5;
  background: linear-gradient(to bottom, rgba(5,8,16,0.65), transparent);
}
.brand {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 32px);
  letter-spacing: 0.16em;
  color: var(--ink);
  text-shadow: 0 2px 12px rgba(0,0,0,0.85);
}
.brand span { color: var(--amber); font-weight: 600; }
.hud-actions { display: flex; gap: 10px; }
.btn {
  display: inline-flex; align-items: center;
  padding: 8px 16px;
  font-family: var(--sans);
  font-size: 14px; font-weight: 500;
  color: var(--ink); text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--panel-b);
  border-radius: 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 160ms ease, border-color 160ms ease, transform 120ms ease;
}
.btn:hover, .btn:focus-visible {
  background: rgba(255,184,77,0.14);
  border-color: rgba(255,184,77,0.5);
  color: #fff5e0;
}
.btn.ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.14);
}
.btn.ghost:hover { background: rgba(255,255,255,0.06); }

/* Tag readout */
.tag {
  position: absolute;
  bottom: clamp(12px, 3vh, 32px);
  left: 50%; transform: translateX(-50%);
  padding: 6px 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  background: rgba(5,8,16,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
  z-index: 5;
}
.tag.visible { opacity: 1; }

/* About + footer (below fold) */
.about {
  padding: clamp(48px, 8vh, 120px) 0;
  background: linear-gradient(180deg, var(--sky) 0%, #0f172a 100%);
}
.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}
.about h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 20px;
}
.about p {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
  color: var(--ink-dim);
  margin-bottom: 14px;
}
.about .note { font-size: 14px; color: #7c8aa3; }
.pill {
  display: inline-block;
  padding: 3px 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
  background: rgba(255,184,77,0.08);
  border: 1px solid rgba(255,184,77,0.24);
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}
.foot {
  padding: 32px 0;
  background: #050810;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.foot .wrap {
  display: flex; justify-content: space-between; align-items: center;
  color: #4a5568; font-size: 12px;
}
.foot .mono { font-family: var(--mono); }

/* Mobile: hero fills viewport, hotspots stay tappable */
@media (max-width: 720px) {
  .hero { aspect-ratio: auto; height: 62vh; min-height: 380px; }
  .hero-img { object-fit: cover; }
  .hotspot .label { font-size: 13px; }
  .btn { padding: 6px 12px; font-size: 13px; }
  .brand { font-size: 18px; letter-spacing: 0.14em; }
  .tag { font-size: 11px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
