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

:root {
  --navy: #0d1b2a;
  --navy-mid: #16293d;
  --gold: #8a6a2a;
  --gold-light: #b8966a;
  --bg: #ffffff;
  --bg-soft: #f7f7f5;
  --text-primary: #0d1b2a;
  --text-muted: rgba(13,27,42,0.45);
  --text-body: rgba(13,27,42,0.65);
  --border-light: rgba(13,27,42,0.1);
  --border-gold: rgba(138,106,42,0.2);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', sans-serif;
  --space-sm: 48px;
  --space-md: 80px;
  --space-lg: 96px;
  --space-xl: 120px;
  --app-height: 100vh;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  background: var(--navy);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; display: flex; flex-direction: column; }
.home main { flex: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* INNER PAGES: one section per page, filling the space between nav and footer */
.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 168px 64px var(--space-lg);
  min-height: 72vh;
}
.page-light { background: var(--bg); }
.page-soft { background: var(--bg-soft); }
.page-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.1;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 64px;
}
.page-title em { font-style: italic; color: var(--gold); }

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 64px;
  background: rgba(13,27,42,0.85);
  backdrop-filter: blur(14px);
  transition: background 0.4s, padding 0.4s;
}
nav.scrolled {
  background: rgba(13,27,42,0.97);
  padding: 18px 64px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo svg { opacity: 0.9; }
nav.solid { background: var(--navy); }
.nav-links { display: flex; gap: 36px; list-style: none; align-items: center; }
.nav-links a { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.25s; }
.nav-links a:hover { color: rgba(255,255,255,0.9); }
.nav-links a.active:not(.btn-pitch) { color: rgba(255,255,255,0.95); box-shadow: 0 1px 0 var(--gold-light); padding-bottom: 4px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  padding: 8px;
  margin-right: -8px;
}
.nav-toggle span { display: block; height: 1px; background: rgba(255,255,255,0.85); transition: transform 0.25s, opacity 0.25s; }
.nav-toggle span + span { margin-top: 6px; }
nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.btn-pitch {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  background: transparent;
  border: 0.5px solid rgba(255,255,255,0.3);
  padding: 10px 22px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn-pitch:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); color: white; }

/* HERO */
#hero {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 190px 64px 120px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 60%, rgba(138,106,42,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 15% 25%, rgba(138,106,42,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 680px; }
h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 28px;
}
h1 em { font-style: italic; color: var(--gold); }
.hero-sub {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-body);
  max-width: 500px;
  margin: 0 auto;
}
.hero-sectors {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 28px;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-sectors .sep { opacity: 0.4; }
/* Stats sit on the right, centred on the hero content (which is offset by the nav) */
.hero-stats {
  position: absolute;
  right: 64px;
  top: calc(50% + 35px);
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 28px;
  text-align: right;
}
.hero-stat { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.hero-stat-num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 64px;
  line-height: 0.9;
  font-variant-numeric: lining-nums;
  color: var(--text-primary);
}
.hero-stat-label {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-stats .divider { width: 44px; height: 0.5px; background: var(--gold); opacity: 0.5; }


/* PORTFOLIO */
.portfolio-inner { max-width: 900px; margin: 0 auto; width: 100%; }
.portfolio-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 64px;
  row-gap: 72px;
}
.section-label {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.section-label::before, .section-label::after { content: ''; flex: 1; height: 0.5px; background: var(--border-light); max-width: 80px; }
.portfolio-item {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: opacity 0.25s;
  width: 180px;
}
.portfolio-item:hover { opacity: 0.6; }
.portfolio-item .logo-wrap {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portfolio-item img {
  max-height: 48px;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.75;
  mix-blend-mode: multiply;
  transition: opacity 0.25s;
}
.portfolio-item.spacex img { max-width: 260px; }
.portfolio-item.piqenergy img { max-width: 240px; }
.portfolio-item.allgoodhr img { max-height: 64px; }
.portfolio-item.revimo img { max-height: 36px; }
.portfolio-item.scout img { height: 52px; max-width: none; width: auto; }
.portfolio-item.volantis img { position: relative; top: 2px; }
.portfolio-item.invert img { mix-blend-mode: normal; filter: invert(1); opacity: 0.7; }
.portfolio-item.invert:hover img { opacity: 1; }
.portfolio-item.aurelius img { max-height: 68px; max-width: 240px; position: relative; top: 2px; }
@media (min-width: 901px) {
  .portfolio-item.hinalea img {
    position: relative;
    top: 4px;
  }
}
.portfolio-item:hover img { opacity: 1; }
.portfolio-item { position: relative; }
.portfolio-item .ipo-tag {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 14px;
  padding: 5px 12px 4px 14px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(138,106,42,0.08);
  border: 1px solid rgba(138,106,42,0.45);
  border-radius: 999px;
  white-space: nowrap;
}
.portfolio-item .company-sector {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* NEWS */
.news-inner { max-width: 820px; margin: 0 auto; width: 100%; }
.news-search-wrap {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 0 auto 48px;
}
.news-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.news-search {
  width: 100%;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  background: transparent;
  border: 0.5px solid rgba(13,27,42,0.18);
  border-radius: 999px;
  padding: 9px 16px 8px 36px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s, background 0.2s;
}
.news-search::placeholder { color: var(--text-muted); letter-spacing: 0.2em; text-transform: uppercase; font-size: 10px; }
.news-search:hover { border-color: rgba(13,27,42,0.3); }
.news-search:focus { border-color: rgba(138,106,42,0.45); background: rgba(138,106,42,0.05); }
.news-search::-webkit-search-cancel-button { cursor: pointer; }
.news-list { list-style: none; border-top: 0.5px solid var(--border-light); }
.news-item { border-bottom: 0.5px solid var(--border-light); }
.news-link {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: baseline;
  gap: 8px 32px;
  padding: 28px 4px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}
.news-link:hover { background: var(--bg-soft); }
.news-date {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-variant-numeric: lining-nums tabular-nums;
}
.news-body { display: flex; flex-direction: column; gap: 8px; }
.news-company {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.news-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.3;
  font-variant-numeric: lining-nums;
  color: var(--text-primary);
}
.news-source { font-size: 12px; color: var(--text-muted); letter-spacing: 0.04em; }
.news-arrow { width: 14px; height: 14px; color: var(--text-muted); transition: transform 0.25s, color 0.25s; }
.news-link:hover .news-arrow { transform: translate(2px, -2px); color: var(--gold); }
.news-empty { text-align: center; color: var(--text-muted); font-size: 14px; padding: 48px 0; }
.news-note { margin-top: 40px; text-align: center; font-size: 11px; color: var(--text-muted); line-height: 1.7; }

/* FOOTER */
footer {
  background: var(--navy);
  padding: var(--space-lg) 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}
.footer-cta-label {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  letter-spacing: -0.01em;
}
.footer-cta-label em { font-style: italic; color: var(--gold-light); }
.btn-pitch-light {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(255,255,255,0.9);
  border: none;
  padding: 14px 32px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.25s, color 0.25s;
}
.btn-pitch-light:hover { background: white; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 32px;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.2); letter-spacing: 0.06em; }
footer h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 3.5vw, 48px); color: rgba(255,255,255,0.9); line-height: 1.15; }
footer h2 em { font-style: italic; color: var(--gold-light); }

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(13,27,42,0.6);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: white;
  width: 100%;
  max-width: 500px;
  padding: 52px;
  position: relative;
  box-shadow: 0 16px 80px rgba(13,27,42,0.25);
}
.modal-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: var(--text-muted);
  line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--navy); }
.modal h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 32px;
}
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.form-input, .form-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 0.5px solid rgba(13,27,42,0.18);
  padding: 10px 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 14px;
  color: var(--navy);
  outline: none;
  transition: border-color 0.25s;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-input:focus, .form-textarea:focus { border-bottom-color: var(--gold); }
.form-textarea { resize: none; height: 80px; }
.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: white;
  background: var(--navy);
  border: none;
  padding: 14px 28px;
  cursor: pointer;
  transition: background 0.25s, gap 0.3s;
}
.form-submit:hover { background: var(--gold); gap: 18px; }
.form-submit svg { width: 13px; height: 13px; }
.form-success-msg { display: none; padding: 48px 0; text-align: center; }
.form-success-msg p:first-child { font-family: var(--serif); font-size: 24px; font-weight: 400; color: var(--navy); margin-bottom: 10px; }
.form-success-msg p:last-child { font-size: 13.5px; color: var(--text-muted); line-height: 1.7; }

.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.hero-stats.fade-in { transform: translateY(calc(-50% + 20px)); }
.hero-stats.fade-in.visible { transform: translateY(-50%); }
@media (max-width: 1200px) {
  .hero-stats, .hero-stats.fade-in, .hero-stats.fade-in.visible {
    position: static;
    transform: none;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    text-align: center;
    margin-top: 44px;
  }
  .hero-stat { align-items: center; }
  .hero-stat-num { font-size: 48px; }
  .hero-stats .divider { width: 0.5px; height: 56px; }
}

@media (max-width: 900px) {
  nav, nav.scrolled { padding: 20px 28px; }
  #hero { padding: 140px 28px var(--space-md); }
  .page { padding: 128px 28px var(--space-md); }
  .portfolio-grid { column-gap: 36px; row-gap: 64px; }
  .news-link { grid-template-columns: 1fr auto; gap: 10px 20px; padding: 24px 0; }
  .news-date { grid-column: 1 / -1; }
  .news-title { font-size: 20px; }
  .portfolio-item.logo-lg img { height: 48px; min-width: 160px; max-width: 220px; }
  footer { padding: var(--space-sm) 28px; }
  .footer-bottom { flex-direction: column; gap: 16px; }
  .modal { padding: 36px 24px; margin: 16px; }
}
@media (max-width: 760px) {
  .nav-logo { font-size: 14px; letter-spacing: 0.05em; }
  .nav-logo img { height: 24px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 12px 28px 28px;
    background: rgba(13,27,42,0.97);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
  }
  nav.menu-open { background: rgba(13,27,42,0.97); }
  nav.menu-open .nav-links { display: flex; }
  .nav-links a { font-size: 12px; }
  .btn-pitch { padding: 10px 18px; letter-spacing: 0.14em; }
}
