/* welcome.css — ON1 landing page
 *
 * Aesthetic flavor: STARGATE-ORBIT — deep space blue gradient, electric
 * cyan + saffron accents, generous negative space, mobile-first.
 * Distinct from cyberpunk-Scandinavian (index.html) and utilitarian
 * dashboard (panel.html).
 */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-deep: #050912;
  --bg-mid: #0c1428;
  --bg-card: #0f1a32;
  --bg-card-hover: #131f3c;

  --ink: #e8efff;
  --ink-mute: #8c9bbf;
  --ink-dim: #4d5876;

  --cyan: #3eccd9;
  --cyan-hot: #5ee3ed;
  --saffron: #ffb000;
  --saffron-hot: #ffc933;
  --rose: #ff6b8e;

  --border: rgba(140, 155, 191, 0.18);
  --border-hot: rgba(62, 204, 217, 0.55);

  --shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  --shadow-hot: 0 8px 32px rgba(62, 204, 217, 0.18);

  --font-display: "Chakra Petch", monospace;
  --font-mono: "IBM Plex Mono", monospace;
  --font-body: "Familjen Grotesk", system-ui, sans-serif;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 1200px 800px at 70% -100px, rgba(62, 204, 217, 0.08), transparent 60%),
    radial-gradient(ellipse 900px 600px at 0% 110%, rgba(255, 176, 0, 0.05), transparent 60%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 100%);
  background-attachment: fixed;
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

/* starfield — subtle moving dots via repeating radial */
.starfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(2px 2px at 10% 20%, rgba(232, 239, 255, 0.6), transparent 50%),
    radial-gradient(1px 1px at 30% 40%, rgba(62, 204, 217, 0.7), transparent 50%),
    radial-gradient(1px 1px at 50% 70%, rgba(232, 239, 255, 0.4), transparent 50%),
    radial-gradient(1.5px 1.5px at 70% 20%, rgba(255, 176, 0, 0.5), transparent 50%),
    radial-gradient(1px 1px at 85% 80%, rgba(232, 239, 255, 0.5), transparent 50%),
    radial-gradient(2px 2px at 92% 35%, rgba(62, 204, 217, 0.6), transparent 50%),
    radial-gradient(1px 1px at 15% 85%, rgba(232, 239, 255, 0.3), transparent 50%),
    radial-gradient(1px 1px at 60% 90%, rgba(255, 176, 0, 0.4), transparent 50%);
  opacity: 0.6;
}

main {
  position: relative;
  z-index: 1;
}

/* top nav */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  position: sticky;
  top: 0;
  background: rgba(5, 9, 18, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  color: var(--cyan);
  font-size: 1.4rem;
  line-height: 1;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--ink);
}

.topnav-links {
  display: flex;
  gap: 2rem;
}

.topnav-links a {
  color: var(--ink-mute);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.topnav-links a:hover { color: var(--cyan); }
.topnav-links a.muted { color: var(--ink-dim); }
.topnav-links a.muted:hover { color: var(--ink-mute); }

.topnav-cta { display: flex; gap: 0.75rem; align-items: center; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--cyan);
  color: var(--bg-deep);
  border-color: var(--cyan);
}
.btn-primary:hover {
  background: var(--cyan-hot);
  border-color: var(--cyan-hot);
  box-shadow: 0 0 16px rgba(62, 204, 217, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--cyan);
}
.btn-secondary:hover {
  background: rgba(62, 204, 217, 0.08);
  border-color: var(--cyan-hot);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-mute);
  border-color: var(--border);
}
.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--ink-mute);
}

.btn-tertiary {
  background: transparent;
  color: var(--ink-mute);
  border-color: var(--border);
}
.btn-tertiary:hover {
  color: var(--ink);
  border-color: var(--ink-mute);
}

/* services-tile — direct link to /services.html catalog */
.services-tile {
  max-width: 1100px;
  margin: 1.5rem auto 4rem;
  padding: 0 2rem;
}
.services-tile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 1.8rem;
  background: linear-gradient(135deg, rgba(62, 204, 217, 0.06) 0%, rgba(255, 176, 0, 0.04) 100%);
  border: 1px solid var(--border-hot);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.services-tile-link:hover {
  background: linear-gradient(135deg, rgba(62, 204, 217, 0.12) 0%, rgba(255, 176, 0, 0.08) 100%);
  border-color: var(--cyan);
  transform: translateY(-2px);
}
.services-tile-l {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.services-tile-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--saffron);
}
.services-tile-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.services-tile-sub {
  font-size: 0.92rem;
  color: var(--ink-mute);
  line-height: 1.5;
}
.services-tile-arrow {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  color: var(--cyan);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.services-tile-link:hover .services-tile-arrow {
  transform: translateX(4px);
  color: var(--cyan-hot);
}
@media (max-width: 720px) {
  .services-tile-link { flex-direction: column; align-items: flex-start; padding: 1.2rem; }
  .services-tile-arrow { font-size: 1.4rem; align-self: flex-end; }
}

.btn-lg { padding: 0.85rem 1.5rem; font-size: 1.05rem; }

.btn-arrow {
  transition: transform 0.15s ease;
  font-weight: 400;
}
.btn-primary:hover .btn-arrow { transform: translateX(3px); }

/* hero */
.hero {
  max-width: 1200px;
  margin: 4rem auto 5rem;
  padding: 0 2rem;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem;
  background: rgba(62, 204, 217, 0.08);
  border: 1px solid var(--border-hot);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan);
  margin-bottom: 2rem;
}

.orbit-mark { font-size: 1rem; }

.eyebrow-text { letter-spacing: 0.06em; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.grad-cyan {
  background: linear-gradient(135deg, var(--cyan-hot) 0%, var(--saffron) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-mute);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 500;
  color: var(--saffron);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--ink-mute);
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

/* group sections */
.groups {
  max-width: 1280px;
  margin: 0 auto 5rem;
  padding: 0 2rem;
}

.loading {
  color: var(--ink-dim);
  font-family: var(--font-mono);
  text-align: center;
  padding: 3rem;
}

.group-section {
  margin-bottom: 3.5rem;
}

.group-head {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.group-head h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.group-head .group-blurb {
  font-size: 0.9rem;
  color: var(--ink-mute);
  font-family: var(--font-mono);
}

.group-head .group-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-dim);
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.1rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.18s ease;
  position: relative;
  overflow: hidden;
}

.tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.tile:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hot);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hot);
}

.tile:hover::before { opacity: 1; }

.tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.tile-name {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0;
}

.tile-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-dim);
  text-transform: lowercase;
  background: rgba(140, 155, 191, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.tile-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-dim);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-dim);
  flex-shrink: 0;
}

.status-dot.ok { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.status-dot.warn { background: var(--saffron); box-shadow: 0 0 6px var(--saffron); }
.status-dot.fail { background: var(--rose); }

.tile-blurb {
  font-size: 0.88rem;
  color: var(--ink-mute);
  line-height: 1.45;
}

/* footer */
.foot {
  border-top: 1px solid var(--border);
  margin: 4rem auto 0;
  max-width: 1280px;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

.foot-l, .foot-r {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink-mute);
}

.foot a {
  color: var(--ink-mute);
  text-decoration: none;
}
.foot a:hover { color: var(--cyan); }

.foot .sep { color: var(--ink-dim); }
.foot .muted { color: var(--ink-dim); font-family: var(--font-mono); font-size: 0.85rem; }

/* mobile */
@media (max-width: 720px) {
  .topnav { padding: 1rem; gap: 0.5rem; flex-wrap: wrap; }
  .topnav-links { display: none; }
  .topnav-cta { margin-left: auto; }
  .btn-lg { padding: 0.75rem 1.1rem; font-size: 0.95rem; }
  .hero { margin: 2rem auto 3rem; padding: 0 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .groups { padding: 0 1rem; }
  .tile-grid { grid-template-columns: 1fr; }
  .foot { padding: 1.5rem 1rem; flex-direction: column; align-items: flex-start; }
}

/* user-facing extensions: featured tiles, how-it-works, tile metadata */
.tile-feature {
  padding: 1.4rem 1.5rem;
  min-height: 200px;
}
.tile-feature .tile-name {
  font-size: 1.2rem;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}
.tile-feature .tile-blurb { font-size: 0.95rem; line-height: 1.55; }

.tile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.tile-tag {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 100px;
  background: rgba(62, 204, 217, 0.08);
  border: 1px solid var(--border);
  color: var(--ink-mute);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.howbox {
  max-width: 1100px;
  margin: 1rem auto 5rem;
  padding: 0 2rem;
}

.how-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.how-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.how-icon {
  font-size: 1.8rem;
  color: var(--saffron);
  line-height: 1;
}

.how-card h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
}

.how-card p {
  font-size: 0.92rem;
  color: var(--ink-mute);
  line-height: 1.5;
}

@media (max-width: 720px) {
  .howbox { padding: 0 1rem; margin-bottom: 3rem; }
  .how-grid { grid-template-columns: 1fr; }
}

/* osys.html admin marker */
.admin-badge {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  background: var(--saffron);
  color: var(--bg-deep);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

/* ─────────────────────────────────────────────────────────────────
   HEXAGON TREE — recursive ejecting hexagons
   Centerpiece of welcome.html. Driven by welcome.js.
   ───────────────────────────────────────────────────────────────── */

.hex-section {
  max-width: 1280px;
  margin: 2rem auto 5rem;
  padding: 0 2rem;
  position: relative;
}

.hex-instruct {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-mute);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.hex-instruct-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: hex-pulse 2.4s ease-in-out infinite;
}

@keyframes hex-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.15); }
}

.hex-stage {
  position: relative;
  width: 100%;
  min-height: 420px;
  /* Children are absolutely positioned by JS */
  margin: 0 auto 1.5rem;
  overflow: visible;
}

.hex-fallback {
  text-align: center;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  padding: 3rem 1rem;
}

/* Each hexagon is a 2R × 2R div, clip-pathed to flat-top hex. */
.hex-node {
  position: absolute;
  cursor: pointer;
  transition: left 280ms cubic-bezier(0.22, 1, 0.36, 1),
              top  280ms cubic-bezier(0.22, 1, 0.36, 1),
              width  280ms cubic-bezier(0.22, 1, 0.36, 1),
              height 280ms cubic-bezier(0.22, 1, 0.36, 1),
              filter 180ms ease-out,
              opacity 240ms ease-out;
  /* CSS var --hex-r is set by JS so we can scale text. */
  --hex-r: 130px;
  outline: none;
}

.hex-shape {
  position: absolute;
  inset: 0;
  /* Flat-top hexagon (left & right vertices at 50% y; flat top + bottom).
     For a unit square clip-region:
       upper-left  (25%,   6.7%)
       upper-right (75%,   6.7%)
       right       (100%, 50%)
       lower-right (75%,  93.3%)
       lower-left  (25%,  93.3%)
       left        (0%,   50%)
     The 6.7% = (1 − √3/2)/2 × 100 (since the hex spans only √3/2 of the
     bounding square's height). */
  clip-path: polygon(
    25%   6.7%,
    75%   6.7%,
    100%  50%,
    75%   93.3%,
    25%   93.3%,
    0%    50%
  );
  /* The clipped element IS the rim — cyan-gradient fill. */
  background: linear-gradient(
    155deg,
    rgba(62, 204, 217, 0.75) 0%,
    rgba(62, 204, 217, 0.18) 55%,
    rgba(255, 176, 0, 0.5) 100%);
  transition: background 200ms ease, filter 200ms ease;
}

/* Inner fill — a 2px-inset copy of the same hex with the dark bg.
   The rim effect comes from the parent's gradient showing in the 2px gap. */
.hex-shape::after {
  content: '';
  position: absolute;
  inset: 2px;
  clip-path: polygon(
    25%   6.7%,
    75%   6.7%,
    100%  50%,
    75%   93.3%,
    25%   93.3%,
    0%    50%
  );
  background: linear-gradient(155deg, var(--bg-card) 0%, var(--bg-mid) 100%);
}

/* Depth-based tinting — deeper hexes shift toward saffron. */
.hex-node.depth-0 .hex-shape {
  background: linear-gradient(155deg,
    var(--cyan-hot) 0%,
    rgba(62, 204, 217, 0.5) 55%,
    var(--saffron) 100%);
}
.hex-node.depth-1 .hex-shape {
  background: linear-gradient(155deg,
    rgba(62, 204, 217, 0.85) 0%,
    rgba(62, 204, 217, 0.25) 55%,
    rgba(255, 176, 0, 0.6) 100%);
}
.hex-node.depth-2 .hex-shape {
  background: linear-gradient(155deg,
    rgba(255, 176, 0, 0.65) 0%,
    rgba(140, 155, 191, 0.3) 55%,
    rgba(255, 107, 142, 0.5) 100%);
}

/* Has-children: subtle pulse around rim when not yet expanded */
.hex-node.has-children:not(.expanded) .hex-shape {
  animation: hex-glow 3.2s ease-in-out infinite;
}

@keyframes hex-glow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(62, 204, 217, 0.25)); }
  50%      { filter: drop-shadow(0 0 14px rgba(62, 204, 217, 0.55)); }
}

.hex-node.expanded .hex-shape {
  /* When expanded, fade the parent rim to indicate "expanded" state */
  filter: saturate(0.85) brightness(0.92);
}

.hex-node:hover .hex-shape {
  filter: drop-shadow(0 0 16px rgba(62, 204, 217, 0.7)) brightness(1.08);
}
.hex-node:focus-visible .hex-shape {
  filter: drop-shadow(0 0 12px var(--cyan-hot));
}

.hex-node.flash .hex-shape {
  filter: drop-shadow(0 0 22px var(--saffron-hot)) brightness(1.18);
}

/* Inner content — text overlayed on the clipped shape */
.hex-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--hex-r) * 0.18) calc(var(--hex-r) * 0.22);
  pointer-events: none;
  z-index: 2;
  gap: calc(var(--hex-r) * 0.04);
}

.hex-label {
  font-family: var(--font-display);
  font-size: calc(var(--hex-r) * 0.16);
  color: var(--ink);
  letter-spacing: 0.04em;
  line-height: 1.05;
  white-space: nowrap;
}

.hex-node.depth-0 .hex-label {
  font-size: calc(var(--hex-r) * 0.19);
  color: var(--cyan-hot);
}

.hex-node.depth-2 .hex-label {
  font-family: var(--font-mono);
  font-size: calc(var(--hex-r) * 0.18);
  letter-spacing: 0.01em;
}

.hex-tag {
  font-family: var(--font-mono);
  font-size: calc(var(--hex-r) * 0.10);
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  text-transform: lowercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90%;
}

.hex-node.depth-0 .hex-tag {
  color: var(--saffron);
}

.hex-blurb {
  font-family: var(--font-body);
  font-size: calc(var(--hex-r) * 0.085);
  color: var(--ink-mute);
  line-height: 1.3;
  max-width: 84%;
  /* Only shown for depth 0+1 (per welcome.js gate). */
  margin-top: calc(var(--hex-r) * 0.02);
}

/* Ejecting / retracting transitions */
.hex-node.ejecting { opacity: 0; transform: scale(0.4); }
.hex-node.retracting { opacity: 0; }

/* Detail panel below the stage */
.hex-detail {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem;
  min-height: 120px;
}

.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  animation: detail-in 220ms ease-out;
}

.detail-card.depth-0 { border-left-color: var(--cyan-hot); }
.detail-card.depth-1 { border-left-color: var(--cyan); }
.detail-card.depth-2 { border-left-color: var(--saffron); }

@keyframes detail-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.detail-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.detail-tag {
  font-family: var(--font-mono);
  color: var(--saffron);
  font-size: 0.9rem;
}

.detail-blurb {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}

.detail-children {
  margin-top: 0.4rem;
  font-size: 0.88rem;
  color: var(--ink-mute);
  font-family: var(--font-mono);
}

.detail-children-label {
  color: var(--ink-dim);
}

.detail-leaf-note {
  font-size: 0.85rem;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  margin-top: 0.3rem;
}

.detail-cta {
  margin-top: 0.6rem;
  align-self: flex-start;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  background: var(--cyan);
  color: var(--bg-deep);
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.detail-cta:hover {
  background: var(--cyan-hot);
  box-shadow: 0 0 16px rgba(62, 204, 217, 0.4);
}

/* Mobile fallback — linear list view */
.hex-stage.is-mobile {
  min-height: auto;
  padding: 0;
}

.hex-mobile-tree {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hex-mobile-item {
  padding: 0.7rem 0;
  border-left: 2px solid var(--border);
  padding-left: 0.9rem;
  margin-left: 0.4rem;
}

.hex-mobile-item.depth-0 {
  border-left-color: var(--cyan);
  padding-left: 1rem;
  margin-left: 0;
}
.hex-mobile-item.depth-1 {
  border-left-color: var(--border-hot);
}
.hex-mobile-item.depth-2 {
  border-left-color: rgba(255, 176, 0, 0.4);
}

.hex-mobile-head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hex-mobile-mark {
  color: var(--cyan);
  font-size: 0.95rem;
}

.hex-mobile-label {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink);
}

.hex-mobile-item.depth-0 .hex-mobile-label {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.hex-mobile-tag {
  font-family: var(--font-mono);
  color: var(--saffron);
  font-size: 0.82rem;
}

.hex-mobile-blurb {
  color: var(--ink-mute);
  font-size: 0.92rem;
  line-height: 1.45;
  margin-top: 0.3rem;
}

.hex-mobile-sub {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

/* Responsive — hex tree degrades at narrow widths */
@media (max-width: 720px) {
  .hex-section { padding: 0 1rem; margin-bottom: 3rem; }
  .hex-stage { min-height: auto; }
}
