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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #0d1b2a;
  color: #fff;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #0d1b2a; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg,#1fc8b4,#0a5e53); border-radius: 99px; }

.accent { color: #1fc8b4; }

/* ── NAV ── */
nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 48px;
  background: rgba(13,27,42,0.88);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 20px; color: #fff; text-decoration: none;
}
.nav-btns { display: flex; gap: 10px; align-items: center; }
.nav-logo-divider { width: 1px; height: 22px; background: rgba(255,255,255,0.12); flex-shrink: 0; }
.nav-catstone-wrap { display: flex; align-items: center; width: 28px; height: 28px; overflow: hidden; flex-shrink: 0; }
.nav-catstone-img { width: 130%; height: 130%; object-fit: cover; object-position: center; margin: -15%; }

.nav-logo > img { width: 26px; height: 26px; object-fit: contain; }

.nav-theme-btn {
  width: 36px; height: 36px; border-radius: 9px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.65); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.18s; flex-shrink: 0;
}
.nav-theme-btn:hover { border-color: #1fc8b4; color: #1fc8b4; }
.nav-theme-btn svg { width: 16px; height: 16px; display: block; }
.btn-outline {
  background: #1e293b; border: 1px solid #334155;
  color: #fff; padding: 7px 22px; border-radius: 8px;
  font-weight: 600; font-size: 14px; cursor: pointer;
  transition: all 0.2s; font-family: inherit;
}
.btn-outline:hover { border-color: #475569; }
.btn-solid {
  background: #1a9e8f; border: none; color: #fff;
  padding: 7px 22px; border-radius: 8px;
  font-weight: 600; font-size: 14px; cursor: pointer;
  transition: all 0.2s; font-family: inherit;
}
.btn-solid:hover { background: #148070; }
.btn-ghost {
  background: transparent; border: 1.5px solid rgba(255,255,255,0.22);
  color: #fff; padding: 7px 22px; border-radius: 8px;
  font-weight: 600; font-size: 14px; cursor: pointer;
  transition: all 0.2s; font-family: inherit;
}
.btn-ghost:hover { border-color: #1fc8b4; color: #1fc8b4; }

/* ── HERO ── */
.about-hero {
  display: flex; align-items: center; justify-content: space-between;
  gap: 48px; padding: 128px 80px 72px;
  background: linear-gradient(135deg, #0d1b2a 0%, #0a2218 100%);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.about-hero-left { max-width: 520px; }

.hero-badge {
  display: inline-flex; align-items: center;
  background: rgba(31,200,180,0.12); border: 1px solid rgba(31,200,180,0.28);
  color: #1fc8b4; font-size: 12px; font-weight: 600;
  padding: 5px 14px; border-radius: 99px; margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.about-hero-sub {
  font-size: 16px; line-height: 1.75; color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
}

.about-hero-title {
  font-size: 52px; font-weight: 800; line-height: 1.1;
  letter-spacing: -0.02em; margin-bottom: 20px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.about-hero-right { flex-shrink: 0; }
.about-hero-img {
  width: 420px; max-width: 100%;
  border-radius: 18px; object-fit: cover;
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ── STATS BAR ── */
.stats-bar {
  display: flex; align-items: stretch;
  background: #0f2231;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.stat-item {
  flex: 1; display: flex; align-items: center; gap: 18px;
  padding: 32px 40px;
}
.stat-num {
  font-size: 32px; font-weight: 800; color: #1fc8b4;
  white-space: nowrap; flex-shrink: 0;
}
.stat-lbl {
  font-size: 13px; font-weight: 600; color: #fff;
  line-height: 1.5;
}
.stat-lbl span { font-size: 12px; font-weight: 400; color: rgba(255,255,255,0.45); }
.stat-divider { width: 1px; background: rgba(255,255,255,0.06); margin: 16px 0; }

/* ── STORY ── */
.story-section {
  display: flex; gap: 80px; padding: 100px 80px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.story-left { flex-shrink: 0; width: 280px; }
.story-right { flex: 1; max-width: 620px; }

.section-eyebrow {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #1fc8b4; margin-bottom: 16px;
}
.section-eyebrow.center { text-align: center; }

.story-title {
  font-size: 36px; font-weight: 800; line-height: 1.2;
  letter-spacing: -0.01em; color: #fff;
}
.story-body {
  font-size: 15px; line-height: 1.8; color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
}
.story-quote {
  border-left: 3px solid #1fc8b4;
  padding: 16px 24px; margin: 28px 0;
  font-size: 16px; line-height: 1.7; color: rgba(255,255,255,0.8);
  font-style: italic; background: rgba(31,200,180,0.05);
  border-radius: 0 8px 8px 0;
}
.story-quote strong { color: #fff; font-style: normal; }

/* ── CORE VALUES ── */
.values-section {
  padding: 100px 80px;
  background: #091520;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.section-title {
  font-size: 34px; font-weight: 800; color: #fff;
  letter-spacing: -0.01em; margin-bottom: 48px;
}
.section-title.center { text-align: center; }
.values-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.value-card {
  background: #0f2231; border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px; padding: 32px;
  transition: border-color 0.2s;
}
.value-card:hover { border-color: rgba(31,200,180,0.3); }
.value-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(31,200,180,0.1); border: 1px solid rgba(31,200,180,0.2);
  display: flex; align-items: center; justify-content: center;
  color: #1fc8b4; margin-bottom: 18px;
}
.value-icon svg { width: 20px; height: 20px; }
.value-card h3 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.value-card p  { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.55); }

/* ── GUIDING PRINCIPLES ── */
.principles-section {
  display: flex; gap: 80px; padding: 100px 80px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.principles-left { flex-shrink: 0; width: 280px; }
.principles-title {
  font-size: 34px; font-weight: 800; color: #fff;
  letter-spacing: -0.01em; margin-bottom: 16px;
}
.principles-sub {
  font-size: 14px; line-height: 1.75; color: rgba(255,255,255,0.5);
}
.principles-list { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.principle-item {
  display: flex; align-items: flex-start; gap: 20px;
  background: #0f2231; border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; padding: 24px 28px;
  transition: border-color 0.2s;
}
.principle-item:hover { border-color: rgba(31,200,180,0.3); }
.principle-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(31,200,180,0.12); border: 1.5px solid rgba(31,200,180,0.3);
  color: #1fc8b4; font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.principle-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.principle-desc  { font-size: 13.5px; line-height: 1.65; color: rgba(255,255,255,0.5); }

/* ── MISSION & VISION ── */
.mv-section {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  padding: 80px 80px; background: #091520;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mv-card {
  background: linear-gradient(135deg, #0f2231, #0a2218);
  border: 1px solid rgba(31,200,180,0.15);
  border-radius: 20px; padding: 48px 40px;
}
.mv-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: rgba(31,200,180,0.1); border: 1px solid rgba(31,200,180,0.2);
  display: flex; align-items: center; justify-content: center;
  color: #1fc8b4; margin-bottom: 24px;
}
.mv-icon svg { width: 24px; height: 24px; }
.mv-card h3 { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 16px; }
.mv-card p  { font-size: 15px; line-height: 1.8; color: rgba(255,255,255,0.6); }

/* ── TEAM ── */
.team-section {
  padding: 100px 80px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.team-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 48px;
}
.team-title { font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.team-sub   { font-size: 15px; color: rgba(255,255,255,0.5); }
.team-grid  { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

.team-card {
  background: #0f2231; border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px; overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.team-card:hover { border-color: rgba(31,200,180,0.3); transform: translateY(-3px); }
.team-photo {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  display: block;
}
.team-info { padding: 18px 18px 20px; }
.team-name { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.team-role { font-size: 12.5px; font-weight: 600; margin-bottom: 2px; }
.team-subrole { font-size: 11.5px; color: rgba(255,255,255,0.4); margin-bottom: 12px; }
.team-socials { display: flex; gap: 10px; margin-top: 10px; }
.team-social {
  width: 28px; height: 28px; border-radius: 7px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.09);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); text-decoration: none;
  transition: background 0.18s, color 0.18s;
}
.team-social:hover { background: rgba(31,200,180,0.15); color: #1fc8b4; border-color: rgba(31,200,180,0.3); }
.team-social svg { width: 13px; height: 13px; }

/* ── HIRING CTA ── */
.hiring-section {
  padding: 100px 80px; text-align: center;
  background: linear-gradient(135deg, #0d1b2a 0%, #0a2218 100%);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.hiring-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(31,200,180,0.1); border: 1px solid rgba(31,200,180,0.2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 28px;
}
.hiring-icon svg { width: 28px; height: 28px; }
.hiring-title {
  font-size: 40px; font-weight: 800; color: #fff;
  line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 20px;
}
.hiring-sub {
  font-size: 16px; line-height: 1.75; color: rgba(255,255,255,0.6);
  max-width: 560px; margin: 0 auto 36px;
}
.hiring-btns { display: flex; gap: 14px; justify-content: center; }

/* ── FOOTER ── */
footer {
  background: #070f18;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 80px 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; color: #fff;
  margin-bottom: 14px;
}
.footer-tagline { font-size: 13.5px; color: rgba(255,255,255,0.45); line-height: 1.7; }
.footer-col-title { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 16px; }
.footer-link {
  display: flex; align-items: center; gap: 7px;
  font-size: 14px; color: rgba(255,255,255,0.6);
  text-decoration: none; margin-bottom: 10px;
  transition: color 0.18s;
}
.footer-link:hover { color: #1fc8b4; }
.footer-bottom {
  text-align: center; font-size: 13px;
  color: rgba(255,255,255,0.25); padding: 20px 0;
}

/* ── Light mode ── */
[data-theme="light"] body { background: #f8fafc; color: #0f172a; }
[data-theme="light"] ::-webkit-scrollbar-track { background: #f1f5f9; }
/* The background used to be set here too, but it outranked the shared glass rule in
   glass-nav.css and turned the bar opaque again in light mode. The border stays. */
[data-theme="light"] nav { border-bottom-color: rgba(0,0,0,0.08); }
[data-theme="light"] .nav-logo { color: #0f172a; }
[data-theme="light"] .nav-logo-divider { background: rgba(0,0,0,0.12); }
[data-theme="light"] .nav-theme-btn { background: #f1f5f9; border-color: #cbd5e1; color: #475569; }
[data-theme="light"] .nav-theme-btn:hover { border-color: #1fc8b4; color: #1fc8b4; }
[data-theme="light"] .btn-outline { background: #f1f5f9; border-color: #cbd5e1; color: #0f172a; }
[data-theme="light"] .btn-outline:hover { border-color: #94a3b8; }
[data-theme="light"] .about-hero { background: linear-gradient(135deg, #f8fafc 0%, #ecfdf9 100%); border-bottom-color: rgba(0,0,0,0.06); }
[data-theme="light"] .about-hero-title { color: #0f172a; }
[data-theme="light"] .about-hero-sub { color: rgba(0,0,0,0.6); }
[data-theme="light"] .stats-bar { background: #f1f5f9; border-bottom-color: rgba(0,0,0,0.06); }
[data-theme="light"] .stat-lbl { color: #0f172a; }
[data-theme="light"] .stat-lbl span { color: rgba(0,0,0,0.45); }
[data-theme="light"] .stat-divider { background: rgba(0,0,0,0.08); }
[data-theme="light"] .story-section { background: #fff; border-bottom-color: rgba(0,0,0,0.06); }
[data-theme="light"] .story-title { color: #0f172a; }
[data-theme="light"] .story-body { color: rgba(0,0,0,0.6); }
[data-theme="light"] .story-quote { background: rgba(31,200,180,0.06); color: rgba(0,0,0,0.75); border-left-color: #1fc8b4; }
[data-theme="light"] .story-quote strong { color: #0f172a; }
[data-theme="light"] .values-section { background: #f8fafc; border-bottom-color: rgba(0,0,0,0.06); }
[data-theme="light"] .section-title { color: #0f172a; }
[data-theme="light"] .value-card { background: #fff; border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .value-card:hover { border-color: rgba(31,200,180,0.4); }
[data-theme="light"] .value-card h3 { color: #0f172a; }
[data-theme="light"] .value-card p { color: rgba(0,0,0,0.55); }
[data-theme="light"] .principles-section { background: #fff; border-bottom-color: rgba(0,0,0,0.06); }
[data-theme="light"] .principles-title { color: #0f172a; }
[data-theme="light"] .principles-sub { color: rgba(0,0,0,0.5); }
[data-theme="light"] .principle-item { background: #f8fafc; border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .principle-item:hover { border-color: rgba(31,200,180,0.4); }
[data-theme="light"] .principle-title { color: #0f172a; }
[data-theme="light"] .principle-desc { color: rgba(0,0,0,0.5); }
[data-theme="light"] .mv-section { background: #f1f5f9; border-bottom-color: rgba(0,0,0,0.06); }
[data-theme="light"] .mv-card { background: linear-gradient(135deg, #fff, #f0fdf9); border-color: rgba(31,200,180,0.2); }
[data-theme="light"] .mv-card h3 { color: #0f172a; }
[data-theme="light"] .mv-card p { color: rgba(0,0,0,0.6); }
[data-theme="light"] .team-section { background: #fff; border-bottom-color: rgba(0,0,0,0.06); }
[data-theme="light"] .team-title { color: #0f172a; }
[data-theme="light"] .team-sub { color: rgba(0,0,0,0.5); }
[data-theme="light"] .team-card { background: #fff; border-color: rgba(0,0,0,0.14); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
[data-theme="light"] .team-card:hover { border-color: rgba(31,200,180,0.4); }
[data-theme="light"] .team-name { color: #0f172a; }
[data-theme="light"] .team-subrole { color: rgba(0,0,0,0.4); }
[data-theme="light"] .team-social { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.09); color: rgba(0,0,0,0.5); }
[data-theme="light"] .team-social:hover { background: rgba(31,200,180,0.12); color: #1fc8b4; border-color: rgba(31,200,180,0.3); }
[data-theme="light"] .hiring-section { background: linear-gradient(135deg, #f8fafc 0%, #ecfdf9 100%); border-bottom-color: rgba(0,0,0,0.06); }
[data-theme="light"] .hiring-title { color: #0f172a; }
[data-theme="light"] .hiring-sub { color: rgba(0,0,0,0.6); }
[data-theme="light"] footer { background: #f1f5f9; border-top-color: rgba(0,0,0,0.08); }
[data-theme="light"] .footer-logo { color: #0f172a; }
[data-theme="light"] .footer-tagline { color: rgba(0,0,0,0.45); }
[data-theme="light"] .footer-col-title { color: rgba(0,0,0,0.35); }
[data-theme="light"] .footer-link { color: rgba(0,0,0,0.6); }
[data-theme="light"] .footer-link:hover { color: #1fc8b4; }
[data-theme="light"] .footer-bottom { color: rgba(0,0,0,0.3); border-top-color: rgba(0,0,0,0.06); }

@media (max-width: 760px) {
  nav { min-height: 60px; padding: 0 18px; }
  .nav-logo { gap: 7px; font-size: 17px; }
  .nav-catstone-wrap { width: 24px; height: 24px; }
  .nav-logo > img { width: 23px; height: 23px; }
  .nav-logo-divider { height: 18px; }
  .nav-btns .btn-outline,
  .nav-btns .btn-solid { display: none; }

  .about-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    padding: 104px 24px 40px;
  }
  .about-hero-left { max-width: none; }
  .about-hero-title { font-size: clamp(40px, 11vw, 52px); }
  .about-hero-sub { max-width: 38rem; margin-bottom: 0; }
  .about-hero-right { width: 100%; }
  .about-hero-img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: cover; }

  .stats-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-item { min-width: 0; padding: 20px 16px; gap: 12px; }
  .stat-divider { display: none; }
  .stat-num { flex: 0 0 auto; }
  .stat-lbl { min-width: 0; }

  .story-section { display: flex; flex-direction: column; gap: 24px; padding: 48px 24px; }
  .story-left, .story-right { width: 100%; min-width: 0; }
  .story-title { font-size: clamp(34px, 9vw, 46px); }
}

@media (max-width: 420px) {
  .about-hero { padding: 96px 18px 32px; }
  .stats-bar { grid-template-columns: 1fr; }
  .stat-item { padding: 16px 20px; }
  .story-section { padding: 40px 18px; }
}

/* ── Responsive ──────────────────────────────────────────────────────────────
   These must stay at the bottom of the file. They were originally near the top, above the rules
   they correct, so every one of them lost the cascade and the page never responded at all. */

/* Tablets and narrow windows */
@media (max-width: 1024px) {
  .principles-section { padding: 72px 40px; gap: 48px; }
  .values-section, .mv-section, .team-section, .hiring-section { padding: 72px 40px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Phones */
@media (max-width: 760px) {
  /* Guiding Principles: the heading column is a fixed 280px beside a flexible list, which left
     the cards hanging off the right edge. Stack them. */
  .principles-section {
    flex-direction: column;
    gap: 28px;
    padding: 56px 24px;
  }
  .principles-left { width: 100%; }
  .principles-title { font-size: 28px; }

  /* Core values and mission/vision are two-column grids. */
  .values-grid { grid-template-columns: 1fr; }

  /* Centre the whole card once it is full width, the way the landing page cards read.
     The icon is a fixed 44px box, so it needs auto margins rather than text-align. */
  .value-card, .mv-card { text-align: center; }
  .value-icon, .mv-icon { margin-left: auto; margin-right: auto; }
  .mv-section { grid-template-columns: 1fr; }
  .values-section, .mv-section { padding: 56px 24px; }

  /* Team: four across becomes two, and the header stops fighting for one line. */
  .team-section { padding: 56px 24px; }
  .team-header { flex-direction: column; gap: 14px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .hiring-section { padding: 56px 24px; }
  .hiring-btns { flex-direction: column; align-items: stretch; }
}

/* Small phones */
@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .principles-section, .values-section, .mv-section,
  .team-section, .hiring-section { padding: 44px 18px; }
}
