/* ============================================================
   HYPATIUS — Component CSS classes
   The structural classes the React primitives + UI kits render against.
   Ported verbatim from main.hypati.us (Blackout). Authored on tokens.
   ============================================================ */

/* ---------- PLATFORM TILES ---------- */
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3.5rem; }
@media (max-width: 900px) { .platform-grid { grid-template-columns: 1fr; } }
.platform-tile {
  position: relative; padding: 2.5rem 2rem; background: var(--navy-800); color: #fff;
  border: 1px solid var(--navy-600); border-radius: var(--radius); overflow: hidden;
  transition: all var(--dur) ease; display: flex; flex-direction: column;
}
.platform-tile::before { content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 0; background: var(--aqua-400); transition: width 0.4s ease; }
.platform-tile:hover { border-color: var(--cobalt-400); transform: translateY(-3px); }
.platform-tile:hover::before { width: 100%; }
.platform-tile--muted { background: var(--navy-900); opacity: 0.85; }
.platform-tile__label { font-family: var(--font-display); font-size: 1.95rem; font-weight: 400; letter-spacing: 0.04em; margin-bottom: 0.25rem; }
.platform-tile__type { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--aqua-400); margin-bottom: 1.5rem; }
.platform-tile__type--muted { color: var(--gold-500); }
.platform-tile__desc { color: var(--slate-300); margin-bottom: 2rem; flex: 1; line-height: 1.55; }
.platform-tile__link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; color: var(--aqua-400); letter-spacing: 0.02em; }
.platform-tile__link:hover { color: var(--aqua-300); }

/* ---------- PILLAR CARDS ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; gap: 1.5rem; } }
.pillar { padding-top: 2rem; border-top: 1px solid var(--border-hairline); position: relative; }
.pillar::before { content: ""; position: absolute; top: -1px; left: 0; width: 3rem; height: 2px; background: var(--cobalt-500); }
.pillar__num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--cobalt-400); letter-spacing: 0.15em; margin-bottom: 0.75rem; display: block; }
.pillar__title { font-family: var(--font-display); font-weight: 400; font-size: 1.8rem; letter-spacing: 0.02em; margin-bottom: 0.75rem; color: var(--text-heading); }
.pillar__desc { color: var(--slate-600); line-height: 1.6; }

/* ---------- CAPABILITY GRID ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
@media (max-width: 900px) { .cap-grid { grid-template-columns: 1fr; } }

/* ---------- POST / INSIGHT CARDS ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { padding: 1.75rem; background: var(--surface-card); border: 1px solid var(--border-hairline); transition: all var(--dur) ease; display: flex; flex-direction: column; min-height: 260px; }
.post-card:hover { border-color: var(--cobalt-400); transform: translateY(-2px); }
.post-card__cat { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cobalt-400); margin-bottom: 1rem; }
.post-card__title { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; line-height: 1.35; margin-bottom: 0.75rem; color: var(--text-heading); flex: 1; }
.post-card__byline { font-size: 0.8rem; color: var(--slate-500); font-family: var(--font-mono); letter-spacing: 0.05em; }

/* ---------- FILTER CHIPS ---------- */
.filter-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 2rem; }
.chip { padding: 0.55rem 1.1rem; border: 1px solid var(--border-hairline); background: var(--surface-card); font-size: 0.85rem; font-weight: 500; color: var(--text-body); letter-spacing: 0.02em; cursor: pointer; transition: all var(--dur-fast); border-radius: var(--radius); font-family: var(--font-body); }
.chip:hover { border-color: var(--cobalt-400); color: var(--cobalt-400); }
.chip--active { background: var(--aqua-400); color: var(--navy-900); border-color: var(--aqua-400); }

/* ---------- PATHWAY CARDS ---------- */
.pathways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
@media (max-width: 900px) { .pathways { grid-template-columns: 1fr; } }
.pathway-card { padding: 2rem; background: var(--surface-card); border: 1px solid var(--border-hairline); border-top: 2px solid var(--aqua-400); display: flex; flex-direction: column; }
.pathway-card__label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cobalt-400); margin-bottom: 0.75rem; }
.pathway-card__title { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; margin-bottom: 1rem; color: var(--text-heading); letter-spacing: 0.02em; }
.pathway-card__desc { color: var(--slate-600); line-height: 1.6; flex: 1; margin-bottom: 1.25rem; }

/* ---------- TEAM CARDS ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
@media (max-width: 1000px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .team-grid { grid-template-columns: 1fr; } }
.team-card { padding: 2rem; background: var(--surface-card); border-top: 2px solid var(--cobalt-500); border-right: 1px solid var(--border-hairline); border-bottom: 1px solid var(--border-hairline); border-left: 1px solid var(--border-hairline); }
.team-card__avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--navy-800); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; color: var(--aqua-400); margin-bottom: 1.25rem; letter-spacing: 0.04em; }
.team-card__name { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; margin-bottom: 0.15rem; color: var(--text-heading); letter-spacing: 0.02em; }
.team-card__role { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cobalt-400); margin-bottom: 1rem; }
.team-card__bio { color: var(--slate-600); line-height: 1.6; font-size: 0.95rem; }

/* ---------- FORM ---------- */
.form__group { margin-bottom: 1.5rem; }
.form__label { display: block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--slate-500); margin-bottom: 0.5rem; }
.form__input, .form__textarea, .form__select {
  width: 100%; padding: 0.85rem 1rem; font-family: var(--font-body); font-size: 1rem;
  color: var(--text-heading); background: var(--surface-card); border: 1px solid var(--border-hairline);
  border-radius: var(--radius); transition: border var(--dur-fast);
}
.form__input:focus, .form__textarea:focus, .form__select:focus { outline: none; border-color: var(--cobalt-400); }
.form__textarea { min-height: 140px; resize: vertical; }

/* ---------- NAV ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav); padding-block: 1.25rem; transition: background var(--dur) ease, backdrop-filter var(--dur) ease, padding var(--dur) ease; }
.nav--scrolled { background: rgba(11, 25, 41, 0.85); backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%); padding-block: 0.75rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; max-width: var(--max-w); margin: 0 auto; padding-inline: var(--gutter); }
.nav__brand { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.08em; font-size: 1.6rem; color: #fff; display: inline-flex; align-items: center; gap: 0.6rem; }
.nav__brand-img { height: 1.45rem; width: auto; display: block; }
.nav__brand-mark { width: 0.45rem; height: 0.45rem; background: var(--aqua-400); border-radius: 50%; box-shadow: var(--shadow-glow-aqua); }
.nav__items { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav__link { font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; color: var(--slate-300); letter-spacing: 0.02em; position: relative; padding-block: 0.4rem; transition: color var(--dur-fast); }
.nav__link:hover { color: #fff; }
.nav__link--active { color: var(--aqua-400); }
.nav__link--active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--aqua-400); }
.nav__cta { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1.1rem; border: 1px solid rgba(79, 195, 217, 0.4); border-radius: var(--radius); font-size: 0.85rem; font-weight: 600; color: var(--aqua-400); letter-spacing: 0.02em; transition: all var(--dur-fast); }
.nav__cta:hover { background: var(--aqua-400); color: var(--navy-900); border-color: var(--aqua-400); }

/* ---------- FOOTER ---------- */
.footer { background: var(--void-black); color: var(--slate-400); padding: 4rem 0 2rem; border-top: 1px solid rgba(255,255,255,0.05); }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 540px) { .footer__top { grid-template-columns: 1fr; } }
.footer__tagline { color: var(--slate-400); font-size: 0.9rem; line-height: 1.55; max-width: 30ch; margin-top: 1rem; }
.footer__col-title { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--aqua-400); margin-bottom: 1rem; }
.footer__list { list-style: none; }
.footer__list li { margin-bottom: 0.5rem; }
.footer__list a { font-size: 0.9rem; color: var(--slate-300); transition: color var(--dur-fast); }
.footer__list a:hover { color: var(--aqua-400); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.8rem; color: var(--slate-500); flex-wrap: wrap; gap: 1rem; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; }
.hero--short { min-height: 56vh; }
.hero--medium { min-height: 70vh; }
.hero__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.hero__overlay { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(6,15,28,0.94) 0%, rgba(6,15,28,0.78) 45%, rgba(6,15,28,0.5) 68%, rgba(6,15,28,0.2) 84%, rgba(6,15,28,0.4) 100%),
  linear-gradient(180deg, rgba(6,15,28,0.45) 0%, rgba(6,15,28,0.25) 40%, rgba(6,15,28,0.9) 100%); }
.hero__content { width: 100%; padding-block: 4rem; animation: fadeUp 1s var(--ease-out) 0.3s both; }
.hero__title { max-width: 18ch; margin-block: 1.5rem 1.75rem; }
.hero__sub { max-width: 56ch; font-size: var(--body-lg); color: var(--slate-300); line-height: 1.55; margin-bottom: 2.5rem; }
.hero__cred { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; color: rgba(255,255,255,0.55); margin: 0.9rem 0 1.6rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- CTA STRIP ---------- */
.cta-strip { background: var(--navy-900); color: #fff; padding: 4rem 0; position: relative; overflow: hidden; }
.cta-strip__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2.25rem); color: #fff; max-width: 28ch; letter-spacing: 0.02em; }

/* ---------- SPLIT ---------- */
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 2rem; } }
.split__heading { position: sticky; top: 7rem; }
@media (max-width: 900px) { .split__heading { position: static; } }

/* ---------- LIGHT-THEME CHROME OVERRIDES ---------- */
/* Nav over a hero stays light-on-dark; only the scrolled panel flips. */
[data-theme="light"] .nav--scrolled { background: rgba(237, 241, 247, 0.88); border-bottom: 1px solid rgba(11, 25, 41, 0.10); }
[data-theme="light"] .nav--scrolled .nav__link { color: var(--text-body); }
[data-theme="light"] .nav--scrolled .nav__link:hover { color: var(--navy-900); }
[data-theme="light"] .nav--scrolled .nav__link--active { color: var(--cobalt-600); }
[data-theme="light"] .nav--scrolled .nav__link--active::after { background: var(--cobalt-600); }
[data-theme="light"] .nav--scrolled .nav__cta { color: var(--cobalt-600); border-color: rgba(26, 79, 186, 0.35); }
[data-theme="light"] .nav--scrolled .nav__cta:hover { background: var(--cobalt-500); color: #fff; border-color: var(--cobalt-500); }
