:root {
  --navy: #1D3A8A;
  --orange: #F2A63C;
  --ink: #16223A;
  --muted: #5C6B85;
  --white: #FFFFFF;
  --border: #DCE2EC;
  --grid-line: #E3E9F5;
  --bg: #F7F9FC;
  --serif: Cambria, Georgia, "Times New Roman", serif;
  --sans: Calibri, "Segoe UI", Arial, sans-serif;
  --mono: "Courier New", Courier, monospace;
  --content-w: 6.85in;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
}

a { color: inherit; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 32px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { width: 26px; height: auto; display: block; }
.nav-logo-text { font-family: var(--serif); font-weight: bold; font-size: 1.05rem; color: var(--ink); line-height: 1; }
.nav-logo-sub { display: block; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; color: var(--muted); margin-top: 2px; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
}
.nav-links a.active, .nav-links a:hover { color: var(--navy); font-weight: bold; }
.nav-cta {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  color: var(--navy);
  background: var(--orange);
  padding: 9px 16px;
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); display: block; }
.nav-mobile-panel { display: none; }

/* ---------- layout ---------- */
.page {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 40px 80px;
  display: grid;
  grid-template-columns: minmax(0, 6.85in) 1fr;
  gap: 40px;
  align-items: start;
}
.col-content { min-width: 0; max-width: 660px; }
.col-figure {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
}
.col-figure img, .col-figure svg.sphere-svg { width: 100%; max-width: 460px; height: auto; display: block; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  color: var(--navy);
  text-transform: uppercase;
  margin: 0 0 8px;
}
.rule { border: none; border-top: 1px solid var(--navy); width: 90px; margin: 0 0 24px; }
.rule-soft { border: none; border-top: 1px solid var(--border); margin: 28px 0; }

h1.headline {
  font-family: var(--serif);
  font-weight: bold;
  font-size: 2.05rem;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 18px;
}
h1.headline em { font-style: italic; color: var(--navy); }
h1.headline .rip-accent { font-style: normal; color: var(--orange); }
.lede {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 620px;
}
.sub {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 22px;
}

/* ---------- CTAs ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: bold;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 3px;
  line-height: 1;
}
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); padding: 9.5px 18.5px; }

.disclaimer {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 620px;
}

/* ---------- application pills (home) ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pill {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: bold;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 20px;
  padding: 9px 16px;
  text-decoration: none;
  white-space: nowrap;
}
.pill:hover { background: var(--navy); color: var(--white); }

/* ---------- built-for / ask ---------- */
.built-for {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0 0 26px;
}
.built-for strong {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-right: 8px;
}
h2.section-heading {
  font-family: var(--serif);
  font-weight: bold;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--navy);
  text-transform: uppercase;
  margin: 0 0 10px;
}
.ask-text { font-size: 0.88rem; line-height: 1.55; color: var(--ink); margin: 0 0 26px; }

/* ---------- key parameter tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; }
.tile { border: 1px solid var(--navy); padding: 14px; background: var(--white); }
.tile-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.tile-value { font-family: var(--serif); font-weight: bold; font-size: 1.05rem; color: var(--navy); }

/* ---------- why it matters ---------- */
.why-list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.why-list li { display: flex; gap: 14px; align-items: flex-start; }
.why-num {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--navy);
  font-family: var(--serif);
  font-weight: bold;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.why-body { font-size: 0.88rem; line-height: 1.5; }
.why-body strong { color: var(--ink); }
.why-body span { color: var(--muted); }

/* ---------- publications ---------- */
.pub-list { margin: 0 0 24px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pub-list li { font-size: 0.82rem; line-height: 1.45; }
.pub-list .authors { font-weight: bold; color: var(--ink); }
.pub-list .title { font-style: italic; color: var(--ink); }
.pub-list .journal { color: var(--muted); }

/* ---------- company blocks ---------- */
.info-block { margin-bottom: 26px; }
.info-block p { font-size: 0.92rem; line-height: 1.6; color: var(--muted); margin: 0; }

/* ---------- applications index ---------- */
.app-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 8px; }
.app-card {
  display: block;
  border: 1px solid var(--border);
  background: var(--white);
  padding: 22px 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}
.app-card:hover { border-color: var(--navy); }
.app-card .app-eyebrow {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em;
  color: var(--navy); text-transform: uppercase; margin-bottom: 8px; font-weight: bold;
}
.app-card h3 { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 8px; color: var(--ink); }
.app-card p { font-size: 0.86rem; color: var(--muted); margin: 0 0 10px; line-height: 1.5; }
.app-card .learn-more { font-family: var(--mono); font-size: 0.68rem; color: var(--navy); font-weight: bold; letter-spacing: 0.05em; }

footer.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 24px 40px;
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1280px; margin: 0 auto;
  font-family: var(--mono); font-size: 0.68rem; color: var(--muted);
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .page { grid-template-columns: 1fr; padding: 40px 24px 64px; }
  .col-figure { position: static; order: -1; margin-bottom: 8px; }
  .col-figure img, .col-figure svg.sphere-svg { max-width: 260px; margin: 0 auto; }
  .col-content { max-width: none; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .tiles { grid-template-columns: 1fr; }
  .nav-mobile-panel.open {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
    z-index: 99;
  }
  .nav-mobile-panel a {
    font-family: var(--mono);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-decoration: none;
    color: var(--muted);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-mobile-panel a.active { color: var(--navy); font-weight: bold; }
  .nav { position: relative; }
}
@media (max-width: 600px) {
  .nav { padding: 12px 18px; }
  .page { padding: 32px 18px 56px; }
  h1.headline { font-size: 1.6rem; }
  footer.site-footer { flex-direction: column; gap: 8px; align-items: flex-start; padding: 20px 18px; }
}
