/* ============================================================
   brand-core.css — ONE system, two directions.
   Layout/components are identical everywhere; each direction only
   overrides --accent / --accent-2 / --glow (see direction-*.css).
   ============================================================ */
:root {
  --obsidian: #06070C;
  --surface: #11141D;
  --surface-2: #0B0E15;
  --titanium: #8F96A3;
  --text: #E8ECF4;
  --muted: #9AA3B2;
  --border: rgba(143, 150, 163, 0.18);
  /* defaulted to engineering; games overrides */
  --accent: #6366F1;
  --accent-2: #06B6D4;
  --glow: rgba(99, 102, 241, 0.35);
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; }
body {
  background: var(--obsidian); color: var(--text);
  font-family: 'Inter', 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
code { font-family: 'JetBrains Mono', Consolas, monospace; }
a { color: var(--accent-2); text-decoration: none; }

/* ---------- tri-nav: the glue ---------- */
.tri-nav {
  display: flex; gap: 4px; align-items: center; padding: 12px 20px;
  border-bottom: 1px solid var(--border); background: rgba(6,7,12,.9);
  position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px);
}
.tri-nav a {
  color: var(--muted); padding: 7px 14px; border-radius: 999px; font-size: 13px;
}
.tri-nav a:hover { color: var(--text); background: var(--surface); }
.tri-nav a.here {
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 600;
}
.tri-nav .spacer { flex: 1; }
.tri-nav .who { font-weight: 700; letter-spacing: .02em; color: var(--text); }
.tri-nav .who img { vertical-align: -5px; margin-right: 6px; }

/* ---------- hero ---------- */
.hero { padding: 84px 22px 44px; text-align: center; }
.hero .mark { width: 84px; height: 84px; margin-bottom: 18px; filter: drop-shadow(0 0 24px var(--glow)); }
.hero h1 { font-size: clamp(28px, 4.5vw, 44px); font-weight: 800; letter-spacing: -0.01em; }
.hero h1 .accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { color: var(--muted); max-width: 640px; margin: 14px auto 0; line-height: 1.65; font-size: 15.5px; }

/* ---------- direction cards (trunk) ---------- */
.dirs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px; max-width: 940px; margin: 38px auto 0; padding: 0 22px;
}
.dir-card {
  display: block; background: linear-gradient(180deg, rgba(17,20,29,.9), rgba(11,14,21,.95));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  color: var(--text); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.dir-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.dir-card img { width: 46px; height: 46px; }
.dir-card h2 { font-size: 19px; margin: 14px 0 6px; }
.dir-card p { color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.dir-card .go { margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--accent-2); }

/* ---------- feature grid (direction pages) ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; max-width: 940px; margin: 30px auto; padding: 0 22px; }
.card {
  background: linear-gradient(180deg, rgba(17,20,29,.85), rgba(11,14,21,.95));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 18px;
}
.card h3 { font-size: 15px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.card.big { grid-column: 1 / -1; }

/* ---------- chips / buttons ---------- */
.chiprow { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; padding: 0 22px; }
.chip {
  font-size: 12px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
}
.chip b { color: var(--text); }
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 12px; font-weight: 600;
  font-size: 14px; border: 1px solid var(--border); color: var(--text); background: var(--surface);
}
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border: none; color: #fff; }
.btnrow { display: flex; gap: 10px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

/* ---------- language strip ---------- */
.langs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.langs span {
  border: 1px solid var(--border); border-radius: 10px; padding: 7px 14px;
  font-size: 13px; color: var(--text); background: var(--surface-2);
  font-weight: 600; letter-spacing: .04em;
}

/* ---------- sections & footer ---------- */
section { max-width: 940px; margin: 0 auto; padding: 18px 22px; }
.sec-title { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 6px; }
footer {
  margin-top: auto; border-top: 1px solid var(--border); padding: 22px;
  text-align: center; color: var(--muted); font-size: 12.5px; line-height: 2;
}
footer .trinity { display: flex; gap: 14px; justify-content: center; align-items: center; margin-bottom: 8px; }
footer .trinity img { width: 26px; height: 26px; opacity: .85; }
