:root {
  --navy: #0d1b2a;
  --navy-2: #13273d;
  --navy-3: #1b3a5c;
  --gold: #c9a227;
  --gold-light: #e3c265;
  --ink: #1a2430;
  --muted: #5c6b7a;
  --paper: #f7f5f0;
  --white: #ffffff;
  --line: rgba(13, 27, 42, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 27, 42, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.5px;
}

.brand-name {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--white);
  font-size: 18px;
  letter-spacing: 0.06em;
}

.brand-name span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--gold-light); }

.nav-cta {
  border: 1px solid var(--gold);
  padding: 9px 20px;
  color: var(--gold-light) !important;
}

.nav-cta:hover { background: rgba(201, 162, 39, 0.12); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(201, 162, 39, 0.16), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  padding: 128px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  border-bottom: 1px solid rgba(201, 162, 39, 0.4);
  padding-bottom: 8px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  max-width: 760px;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin-bottom: 40px;
}

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.05em;
  padding: 14px 32px;
  transition: all 0.2s;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
}

.btn-gold:hover { background: var(--gold-light); }

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }

/* ---------- Sections ---------- */
section { padding: 96px 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head .eyebrow {
  color: var(--navy-3);
  border-color: rgba(201, 162, 39, 0.6);
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  color: var(--navy);
  margin-bottom: 16px;
}

.section-head p { color: var(--muted); font-size: 16px; }

/* ---------- Approach ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.pillar {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 36px 30px;
}

.pillar h3 { font-size: 20px; color: var(--navy); margin-bottom: 12px; }

.pillar p { color: var(--muted); font-size: 15px; }

.pillar .num {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 18px;
}

/* ---------- Portfolio ---------- */
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.port-card {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.port-card.featured {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-3) 100%);
  color: var(--white);
  border: none;
}

.port-tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.port-card h3 { font-size: 24px; }

.port-card.featured h3 { color: var(--white); }

.port-card p { font-size: 15px; color: var(--muted); }

.port-card.featured p { color: rgba(255, 255, 255, 0.78); }

.port-meta {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(201, 162, 39, 0.35);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.port-card.featured .port-meta { color: var(--gold-light); }

.port-card.pipeline {
  border-style: dashed;
  border-color: rgba(13, 27, 42, 0.25);
  align-items: flex-start;
  justify-content: center;
}

.port-card.pipeline h3 { color: var(--navy-3); font-size: 20px; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 36px 30px;
  text-align: center;
}

.team-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.team-avatar.placeholder {
  background: var(--paper);
  border: 2px dashed rgba(13, 27, 42, 0.25);
  color: rgba(13, 27, 42, 0.3);
}

.team-card h3 { font-size: 19px; color: var(--navy); margin-bottom: 4px; }

.team-role {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
}

.team-card p { font-size: 14px; color: var(--muted); }

/* ---------- Careers strip ---------- */
.careers-strip {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  text-align: center;
}

.careers-strip h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 16px; }

.careers-strip p { color: rgba(255,255,255,0.72); max-width: 520px; margin: 0 auto 36px; }

/* ---------- Careers page ---------- */
.page-hero {
  background:
    radial-gradient(900px 400px at 85% -20%, rgba(201, 162, 39, 0.15), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  padding: 96px 0 80px;
}

.page-hero h1 { font-size: clamp(34px, 4.6vw, 52px); margin-bottom: 18px; }

.page-hero p { color: rgba(255, 255, 255, 0.75); max-width: 580px; font-size: 17px; }

.job-list { display: flex; flex-direction: column; gap: 24px; }

.job-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 36px 38px;
}

.job-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.job-card h3 { font-size: 23px; color: var(--navy); }

.job-tags { display: flex; gap: 10px; flex-wrap: wrap; }

.job-tag {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--navy-3);
  background: rgba(201, 162, 39, 0.14);
  border: 1px solid rgba(201, 162, 39, 0.4);
  padding: 5px 12px;
}

.job-card > p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }

.job-card h4 {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-3);
  margin: 18px 0 10px;
}

.job-card ul { padding-left: 20px; color: var(--muted); font-size: 15px; }

.job-card li { margin-bottom: 6px; }

.job-apply {
  display: inline-block;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 3px;
}

.job-apply:hover { color: var(--gold); }

/* ---------- Contact / Footer ---------- */
.contact { text-align: center; }

.contact .section-head { margin: 0 auto 40px; }

footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.6);
  padding: 48px 0;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-inner .brand-name { font-size: 15px; }

footer a { color: rgba(255, 255, 255, 0.7); text-decoration: none; margin-left: 24px; }

footer a:hover { color: var(--gold-light); }

@media (max-width: 720px) {
  .nav-links { gap: 18px; }
  .nav-links a:not(.nav-cta):not(.keep) { display: none; }
  section { padding: 64px 0; }
  .hero { padding: 88px 0 80px; }
  .job-card { padding: 28px 24px; }
}
