@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600;6..72,700&display=swap');

/* ── Self-hosted DM Sans (variable, weights 100–1000) ── */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: optional;  /* don't reflow text after first paint — prevents nav flicker on navigation */
  src: url('../fonts/DMSans.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 100 1000;
  font-display: optional;
  src: url('../fonts/DMSans-Italic.woff2') format('woff2');
}

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

:root {
  /* Deep-blue theme — deep blue page, white contour lines, white cards (provisional blues) */
  --navy: #103c66;            /* page background — deep blue */
  --navy-deep: #0b2c4d;       /* deeper blue for gradients/scrims */
  --surface: #14406b;
  --surface-container-low: #16456f;
  --surface-container: #1b4d79;
  --surface-container-high: #245a86;
  --on-surface: #e7eef6;      /* light body text on the blue page */
  --on-surface-variant: #b9cbde; /* secondary light text on the blue page */
  --outline: #7d97b2;
  --outline-variant: rgba(255, 255, 255, 0.18);
  --primary: #9cc2e6;
  --secondary: #7fb0dd;
  --tertiary: #7fb0dd;
  --silver: #9db4cc;          /* labels on the blue page */
  --electric: #5aa0e0;        /* bright blue accent (reads on blue page and white cards) */
  --glass: #ffffff;           /* white cards */
  --glass-border: rgba(255, 255, 255, 0.16);
  --white: #ffffff;           /* white headings / high-emphasis on the blue page */
  --container-max: 1280px;
  --font-futura: 'DM Sans', sans-serif;
  --font-headline: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll;        /* always reserve the scrollbar track... */
  scrollbar-gutter: stable;  /* ...so page width stays constant and the nav doesn't shift */
}

body {
  font-family: var(--font-body);
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--on-surface);
  background: var(--navy);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Background ── */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('../img/contours.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.14;
}

.bg-paths {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-paths svg { width: 100%; height: 100%; }

@keyframes pathDraw {
  from { stroke-dashoffset: 2000; }
  to { stroke-dashoffset: 0; }
}

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-headline); color: var(--white); }

.display-hero {
  font-size: clamp(2.5rem, 1.72rem + 3.48vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.display-lg {
  font-size: clamp(2rem, 1.41rem + 2.61vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.headline-lg {
  font-size: clamp(1.625rem, 1.28rem + 1.52vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
}

.headline-md {
  font-size: clamp(1.25rem, 1.05rem + 0.87vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
}

.headline-sm {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.label-sm {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
}

.label-md {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver);
}

.body-lg {
  font-size: 18px;
  line-height: 1.7;
  color: var(--on-surface-variant);
}

.text-accent { color: var(--electric); }
.text-silver { color: var(--silver); }

/* ── Layout ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

.page-wrap { position: relative; z-index: 1; }

section { padding: clamp(3.5rem, 3.1rem + 1.74vw, 4.5rem) 0; }
.section-sm { padding: clamp(3rem, 2.7rem + 1.3vw, 4rem) 0; }

/* ── Liquid Glass SVG (hidden) ── */
.liquid-glass-svg {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.75rem 0;
  --glass-reflex-light: 1;
  --glass-reflex-dark: 1;
  background-color: rgba(22, 32, 14, 0.25);
  backdrop-filter: blur(12px) url(#liquid-glass-nav) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 1.8px 3px 0px -2px rgba(255, 255, 255, 0.10),
    inset -2px -2px 0px -2px rgba(255, 255, 255, 0.08),
    inset -3px -8px 1px -6px rgba(255, 255, 255, 0.05),
    inset -0.3px -1px 4px 0px rgba(0, 0, 0, 0.10),
    inset -1.5px 2.5px 0px -2px rgba(0, 0, 0, 0.12),
    inset 0px 3px 4px -2px rgba(0, 0, 0, 0.12),
    inset 2px -6.5px 1px -4px rgba(0, 0, 0, 0.06),
    0px 1px 5px 0px rgba(0, 0, 0, 0.08),
    0px 6px 16px 0px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.nav-logo img {
  height: 52px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--white);
  white-space: nowrap;
}

.nav-logo-text sup {
  font-size: 0.55em;
  vertical-align: super;
  margin-left: 0.1em;
  opacity: 0.8;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--on-surface-variant);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--electric);
  transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--navy) !important;
  background: var(--white);
  padding: 0.5rem 1.25rem;
  border-radius: 0.25rem;
  transition: background 0.3s, transform 0.2s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--electric) !important; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero {
  display: flex;
  align-items: flex-start;
  padding-top: 9rem;
  padding-bottom: clamp(3.5rem, 3.1rem + 1.74vw, 4.5rem);
  position: relative;
}

.hero-page {
  display: flex;
  align-items: flex-start;
  padding-top: 9rem;
  padding-bottom: clamp(3.5rem, 3.1rem + 1.74vw, 4.5rem);
}

.hero-short {
  display: flex;
  align-items: flex-start;
  padding-top: 9rem;
  padding-bottom: clamp(3.5rem, 3.1rem + 1.74vw, 4.5rem);
}

/* Hero backdrop logo (desktop): anchored to the page CENTRE (not the right edge),
   so it tracks the centred content at any window width and zooms with the text. */
@media (min-width: 769px) {
  .hero img[aria-hidden="true"] {
    width: 2100px !important;
    left: 50% !important;
    right: auto !important;
    transform: translate(calc(-50% + 430px), -50%) !important;
  }
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy-deep);
  background: var(--electric);
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 0.25rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}
.btn-primary:hover { background: var(--tertiary); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--silver);
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 0.875rem 2rem;
  border-radius: 0.25rem;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.3s, border-color 0.3s;
}
.btn-ghost:hover { color: var(--white); border-color: var(--white); }

.btn-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--electric);
  text-decoration: none;
  transition: color 0.3s;
}
.btn-link:hover { color: var(--white); }

/* ── Glass Card ── */
.glass {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 0.25rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.2), transparent);
}

.glass-hover {
  transition: border-color 0.3s, transform 0.3s;
}
.glass-hover:hover { border-color: rgba(148, 163, 184, 0.25); transform: translateY(-2px); }

/* ── Dividers ── */
.divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--silver), transparent);
  opacity: 0.12;
}

.hairline {
  border: none;
  height: 0.5px;
  background: var(--silver);
  opacity: 0.15;
}

/* ── Stats ── */
.stats-row {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.stat-item {}

.stat-value {
  font-family: var(--font-headline);
  font-size: clamp(2.25rem, 1.76rem + 2.17vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
  margin-top: 0.5rem;
}

/* ── Section Header ── */
.section-hdr { margin-bottom: 3.5rem; }
.section-hdr .label-sm { margin-bottom: 0.75rem; }
.section-hdr h2 { margin-bottom: 0.75rem; }
.section-hdr p:not(.label-sm) { max-width: 600px; color: var(--on-surface-variant); font-size: 16px; line-height: 1.7; }

/* ── Split ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.split-center { align-items: center; }

/* ── Card Grid ── */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

/* Market-thesis tiles: 3 across, then the remaining 2 centred underneath */
.thesis-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}
.thesis-grid > .glass {
  flex: 0 1 calc((100% - 2.5rem) / 3);
  min-width: 0;
}
/* Forces the remaining tiles onto a new row → 3 on top, 2 below */
.thesis-grid .row-break {
  flex-basis: 100%;
  height: 0;
  margin: 0;
  padding: 0;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(95, 201, 110, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--electric);
}

.card-title {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--on-surface-variant);
  font-size: 14px;
  line-height: 1.7;
}

/* ── Sector Cards (with images) ── */
.sector-card {
  position: relative;
  border-radius: 0.25rem;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  background: var(--surface-container-low);
}

.sector-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  filter: grayscale(100%) blur(2px);
  transition: opacity 0.4s, transform 0.4s, filter 0.4s;
}

.sector-card:hover .sector-card-bg {
  opacity: 0.55;
  filter: grayscale(100%) blur(2px);
  transform: scale(1.03);
}

.sector-card-content {
  position: relative;
  z-index: 1;
}

.sector-card h3 {
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.sector-card p {
  font-size: 15px;
  color: var(--on-surface-variant);
  line-height: 1.6;
}

/* Criteria — "Example investment arcs": keep all three titles on one line
   and on a shared baseline by reserving equal description height. */
.sector-arcs .sector-card h3 {
  font-size: 21px;
  white-space: nowrap;
}
.sector-arcs .sector-card p {
  min-height: 4.8em; /* 3 lines @ line-height 1.6 — equalises title baseline */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* ── Petal Ring (5 square cards in a circular / star layout) ── */
.petal-ring {
  --size: clamp(190px, 21vw, 290px);   /* circle diameter */
  --radius: clamp(175px, 19vw, 255px); /* distance from centre to card centre */
  position: relative;
  width: calc(2 * var(--radius) + var(--size));
  max-width: 100%;
  aspect-ratio: 1;
  margin: 2.5rem auto 0;
}

.petal-ring .sector-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--size);
  height: var(--size);
  min-height: 0;
  border-radius: 50%;
  /* pull the card back by half its size so its centre sits on the ring centre,
     then rotate out to its slot (72deg apart) and counter-rotate to stay upright */
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform:
    rotate(calc(var(--i) * 72deg))
    translateY(calc(-1 * var(--radius)))
    rotate(calc(var(--i) * -72deg));
}

.petal-ring .sector-card h3 {
  font-size: clamp(16px, 1.3vw, 20px);
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.petal-ring .sector-card p {
  font-size: clamp(12px, 0.95vw, 14px);
  line-height: 1.45;
}

/* Below the point where a 5-card circle stops fitting, fall back to a grid */
@media (max-width: 640px) {
  .petal-ring {
    position: relative;
    width: 100%;
    max-width: 340px;            /* keep the cluster centred and on-screen */
    margin: 1.5rem auto 0 !important;
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* minmax(0,…) lets columns shrink so they don't overflow */
    justify-items: center;        /* centre each card in its cell (and the top one) */
    gap: 0.9rem;
  }
  .petal-ring .sector-card {
    position: relative; /* each card is its own positioning context so its bg image stays inside it */
    inset: auto;        /* clear the desktop top:50%/left:50% so cards sit in normal grid flow */
    width: 100%;
    min-width: 0;       /* allow the card to shrink inside its grid track */
    max-width: 170px;
    height: auto;
    aspect-ratio: auto;
    min-height: 150px;
    margin: 0;
    padding: 1rem !important;
    transform: none;
    border-radius: 14px;          /* rounded squares — fit the full text */
    text-align: center;
    justify-content: center;
  }
  /* top point sits centred on its own row, above the 2×2 grid */
  .petal-ring .sector-card:first-child {
    grid-column: 1 / -1;
  }
}

/* ── Team ── */
.team-card { text-align: center; display: flex; flex-direction: column; }

.team-photo {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 3/4;
  border-radius: 0.25rem;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  position: relative;
  background: var(--surface-container-low);
  border-top: 1px solid var(--glass-border);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
  transition: filter 0.4s;
}

.team-card:hover .team-photo img {
  filter: grayscale(60%) contrast(1.05);
}

.team-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--surface-container-low), var(--surface-container-high));
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-name {
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.team-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--electric);
  margin-bottom: 1rem;
}

.team-bio {
  font-size: 14px;
  color: var(--on-surface-variant);
  line-height: 1.7;
  max-width: 340px;
  margin: 0 auto 1rem;
}

/* ── Quote ── */
.quote-block {
  border-left: 2px solid var(--tertiary);
  padding-left: 1.5rem;
}

.quote-text {
  font-family: var(--font-headline);
  font-size: clamp(1.125rem, 0.98rem + 0.65vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.quote-attr {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver);
}

/* ── Chips ── */
.chip {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.08);
  color: var(--silver);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.chip-accent {
  background: rgba(95, 201, 110, 0.08);
  color: var(--electric);
  border-color: rgba(95, 201, 110, 0.15);
}

.chip-group { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ── Logo Cloud ── */
.logo-cloud {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--glass-border);
  border-right: 1px solid var(--glass-border);
}

.logo-cloud::before,
.logo-cloud::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  pointer-events: none;
}

.logo-cloud::before { top: -1px; border-top: 1px solid var(--glass-border); }
.logo-cloud::after { bottom: -1px; border-bottom: 1px solid var(--glass-border); }

.logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 152px;   /* uniform box height so every cell matches, logos centred inside */
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  position: relative;
  background: var(--navy);
  transition: background 0.3s;
}

.logo-cell:nth-child(3n) { border-right: none; }
.logo-cell:nth-last-child(-n+3) { border-bottom: none; }

.logo-cell-tinted { background: rgba(34, 46, 22, 0.4); }

.logo-cell:hover { background: rgba(34, 46, 22, 0.6); }

.logo-cell img {
  height: 70px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.3s;
  opacity: 0.85;
}

.logo-cell img.logo-invert {
  filter: brightness(0) invert(1);
}

.logo-cell:hover img { opacity: 1; }

.logo-cell-plus {
  position: absolute;
  width: 25px;
  height: 25px;
  z-index: 10;
  color: var(--silver);
}

.logo-cell-plus--br { right: -12.5px; bottom: -12.5px; }
.logo-cell-plus--bl { left: -12.5px; bottom: -12.5px; }

@media (max-width: 768px) {
  .logo-cloud { grid-template-columns: repeat(2, 1fr); }
  .logo-cell:nth-child(3n) { border-right: 1px solid var(--glass-border); }
  .logo-cell:nth-child(2n) { border-right: none; }
  .logo-cell:nth-last-child(-n+3) { border-bottom: 1px solid var(--glass-border); }
  .logo-cell:last-child { border-bottom: none; grid-column: 1 / -1; }
  .logo-cell:nth-last-child(2) { border-bottom: none; }
}

/* ── Params Table ── */
.params-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--glass-border);
  border-radius: 0.25rem;
  overflow: hidden;
}

.param-cell {
  background: var(--navy);
  padding: 1.5rem;
}

.param-cell .label-sm { margin-bottom: 0.5rem; }
.param-cell .value {
  font-size: 16px;
  color: var(--white);
  font-weight: 500;
}

/* ── Contact Form ── */
.form-group { margin-bottom: 1.5rem; }

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--white);
  background: rgba(22, 32, 14, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 0.25rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--outline); }

.form-input:focus,
.form-textarea:focus { border-color: var(--electric); }

.form-textarea { resize: vertical; min-height: 100px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ── World Map ── */
.map-section {
  padding: 5rem 0;
  position: relative;
}

.map-overlay {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  opacity: 0.15;
}

/* ── Client Logos ── */
.client-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 2rem 0;
  opacity: 0.5;
  filter: grayscale(100%);
}

.client-logos img {
  height: 28px;
  width: auto;
}

/* ── Image Block ── */
.img-block {
  width: 100%;
  border-radius: 0.25rem;
  overflow: hidden;
}

.img-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Imagery shown in full colour (Aspiring uses colour photography).
   Greyscale is a per-client signature-layer option, off by default here. */

/* Company logos stay in full colour */
.logo-cloud img {
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

/* Colour / container logos: keep internal detail as soft greyscale instead of a flat white blob */
.logo-cloud img.logo-depth {
  filter: grayscale(1) brightness(1.2) contrast(0.92);
  opacity: 0.95;
}

/* Pre-coloured logos (already styled in the file): show as-is, no filter */
.logo-cloud img.logo-raw {
  filter: none;
  opacity: 0.95;
}

/* ── Pillar Cards ── */
.pillar-num {
  font-family: var(--font-headline);
  font-size: 48px;
  font-weight: 700;
  color: rgba(95, 201, 110, 0.12);
  line-height: 1;
  margin-bottom: 1rem;
}

/* ── Footer ── */
.footer {
  padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.06);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand p {
  color: var(--on-surface-variant);
  font-size: 13px;
  line-height: 1.6;
  max-width: 320px;
  margin-top: 0.75rem;
}

.footer-nav {
  display: flex;
  gap: 3rem;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  font-size: 13px;
  color: var(--on-surface-variant);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.06);
}

.footer-bottom p,
.footer-bottom a {
  font-size: 12px;
  color: var(--outline);
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--white); }

.footer-legal { display: flex; gap: 1.5rem; }

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr !important; gap: 3rem; }
  .thesis-grid > .glass { flex-basis: calc((100% - 1.25rem) / 2); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .params-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { gap: 2.5rem; }
}

@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: -8px 0 30px rgba(20, 44, 70, 0.08);
    backdrop-filter: blur(20px);
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.3s;
  }
  .nav-links.open { right: 0; }
  .nav-toggle { display: flex; }

  .hero, .hero-page, .hero-short { min-height: auto; padding-top: 7rem; padding-bottom: 3rem; }
  .thesis-grid > .glass { flex-basis: 100%; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .params-grid { grid-template-columns: 1fr; }
  .stats-row { flex-direction: column; gap: 1.5rem; }
  .footer-inner { flex-direction: column; }
  .footer-nav { flex-direction: column; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}

/* ── Mobile: collapse inline-styled grids that bypass the queries above ── */
@media (max-width: 768px) {
  .sector-arcs { grid-template-columns: 1fr !important; }
  .sector-arcs .sector-card h3 { white-space: normal; }
  .sector-arcs .sector-card p { min-height: 0; }
  .hero img[aria-hidden="true"] {
    display: block !important;
    width: 170% !important;
    right: -55% !important;
    opacity: 0.22 !important;
  }

  /* Criteria "In Scope": full width, single-column list on mobile */
  .scope-grid .glass { width: 100% !important; }
  .scope-grid ul { columns: 1 !important; }

  /* People logo wall: keep every logo inside its cell, no overflow */
  .logo-cell { padding: 1.5rem 1rem; }
  .logo-cell img {
    height: auto !important;
    max-height: 42px;
    max-width: 100% !important;
  }
}

/* ── Cookie / Consent Notice ── */
.cookie-bar {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 0.5rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  z-index: 200;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cookie-bar.show { opacity: 1; transform: translateY(0); }
.cookie-bar p { font-size: 13px; line-height: 1.55; color: var(--on-surface-variant); margin: 0; }
.cookie-bar a { color: var(--electric); text-decoration: none; }
.cookie-bar a:hover { color: var(--white); }
.cookie-accept {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--white);
  border: none;
  border-radius: 0.3rem;
  padding: 0.6rem 1.35rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.cookie-accept:hover { background: var(--electric); color: var(--white); }
@media (max-width: 560px) {
  .cookie-bar { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .cookie-accept { width: 100%; }
}

/* Balfour Beatty wordmark: now cropped tight, so bring it back in line with the
   other logos on desktop (mobile already caps logo height). */
@media (min-width: 769px) {
  .logo-cell img[src*="Balfour"] { height: 34px !important; max-width: 185px !important; }
}


/* ── Aspiring differentiation overrides ── */
.glass { border-radius: 16px; }
.img-block { border-radius: 14px; }
/* serif headings sit slightly tighter and lighter than the sans defaults */
.display-hero, .display-lg { letter-spacing: -0.015em; font-weight: 600; }
h3.card-title { letter-spacing: -0.01em; }

/* ── Deep-blue theme (deep blue page, white Mt-Aspiring contours, white cards) ── */

/* Background: Mt-Aspiring contour lines in white, faint */
.bg-paths { display: none; }
.bg-grid {
  display: block;
  background-image: url('../img/aspiring-topo.webp');   /* real Mt Aspiring contour lines (LINZ Topo50) */
  background-size: cover; background-position: center; background-repeat: no-repeat;
  opacity: 0.13;
}

/* Nav: frosted deep-blue bar, white content */
.nav {
  background-color: rgba(13, 46, 78, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 6px 22px rgba(4, 20, 40, 0.25);
}

/* Liquid-glass cards floating on the contour canvas; dark text forced inside */
.glass {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px) saturate(160%) url(#glass-distortion);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    inset 2px 2px 1px rgba(255, 255, 255, 0.55),
    inset -1px -1px 1px rgba(255, 255, 255, 0.45),
    0 12px 32px rgba(4, 20, 40, 0.20);
  color: #33475a;
}
.glass p, .glass li, .glass .card-text { color: #45596c !important; }
.glass h3, .glass .card-title, .glass .display-lg, .glass .display-hero { color: #10233b !important; }
.glass .label-sm { color: #6c8093 !important; }
.glass .text-accent { color: #1f6fb2 !important; }
.glass-hover:hover { transform: none; border-color: rgba(31, 111, 178, 0.35); }

/* Buttons */
.btn-primary { color: #ffffff; background: var(--electric); }
.btn-primary:hover { background: #4a90d9; }

/* Form inputs (inside white cards) */
.form-input, .form-textarea { color: #20303f; background: #f3f7fb; border: 1px solid #d4e0ec; }
.form-input::placeholder, .form-textarea::placeholder { color: #94a6b6; }

/* Footer as a white band */
.footer { background: #ffffff; border-top: 1px solid rgba(20, 44, 70, 0.08); position: relative; z-index: 1; }
.footer p, .footer a, .footer .footer-brand p { color: #45596c !important; }
.footer .footer-col-title { color: #10233b !important; }
.footer a:hover { color: #1f6fb2 !important; }
.footer-bottom { border-top: 1px solid rgba(20, 44, 70, 0.08); }

/* Bold-lead bullet list (Investment Philosophy / Value Creation style) */
.lead-list { list-style: none; margin-top: 1.25rem; }
.lead-list li { position: relative; padding-left: 1.35rem; margin-bottom: 1rem; line-height: 1.75; }
.lead-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--electric); }
.lead-list strong { font-weight: 600; color: var(--white); }
.band .lead-list strong, .band-full .lead-list strong { color: #10233b; }

/* Overlapping image + text-box cards (Preservation-style) */
.overlap { display: grid; align-items: center; }
.overlap-media { border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(4, 20, 40, 0.25); }
.overlap-media img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 340px; max-height: 460px; }
.overlap-box { position: relative; z-index: 2; background: #ffffff; border: 1px solid rgba(20, 44, 70, 0.06); border-radius: 18px; padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); box-shadow: 0 24px 60px rgba(4, 20, 40, 0.20); }
.overlap.left { grid-template-columns: 1.55fr 1fr; }
.overlap.left .overlap-box { margin-left: -20%; }
.overlap.right { grid-template-columns: 1fr 1.55fr; }
.overlap.right .overlap-media { order: 2; }
.overlap.right .overlap-box { order: 1; margin-right: -20%; }
@media (max-width: 900px) {
  .overlap.left, .overlap.right { grid-template-columns: 1fr; }
  .overlap .overlap-media { order: 0; }
  .overlap .overlap-box { order: 0; margin: -2.5rem 1.25rem 0; }
  .overlap-media img { min-height: 240px; max-height: 320px; }
}

/* Key numbers stat row */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 1rem + 2vw, 3rem); margin-top: 2.5rem; }
.stat .num { font-family: var(--font-headline); font-size: clamp(2.1rem, 1.5rem + 2vw, 3.1rem); font-weight: 600; line-height: 1; color: #1f6fb2; letter-spacing: -0.01em; }
.stat .lbl { margin-top: 0.65rem; color: #45596c; font-size: 14px; line-height: 1.5; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }

/* Text over photographic bands stays light */
.hero-with-img .display-hero,
.hero-with-img .body-lg,
.parallax-band h2 { color: #F8FAFC; }
.hero-with-img .label-sm { color: #cfe0f2; }

/* Cookie bar + mobile menu on the dark theme */
.cookie-bar {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px) saturate(160%) url(#glass-distortion);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  box-shadow:
    inset 2px 2px 1px rgba(255, 255, 255, 0.55),
    inset -1px -1px 1px rgba(255, 255, 255, 0.45),
    0 12px 32px rgba(4, 20, 40, 0.22);
}
.cookie-bar p { color: #20303f; }
@media (max-width: 768px) {
  .nav-links { background: rgba(13, 46, 78, 0.98); box-shadow: -8px 0 30px rgba(4, 20, 40, 0.35); }
}

/* Navbar — top of page: solid white bar; on scroll: liquid-glass pill */
.nav {
  background: #ffffff;
  border-bottom: 1px solid rgba(20, 44, 70, 0.08);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
}
.nav-inner {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  max-width: var(--container-max);
  padding: 0.9rem 2rem;
  transition: background 0.4s ease, border-radius 0.4s ease, max-width 0.4s ease,
              padding 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.nav.scrolled { background: transparent; border-bottom-color: transparent; padding: 0.9rem 0; }
.nav.scrolled .nav-inner {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(11px) saturate(165%) url(#glass-distortion);
  -webkit-backdrop-filter: blur(10px) saturate(165%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 0.5rem 0.75rem 0.5rem 1.4rem;
  max-width: 1320px;
  box-shadow:
    inset 2px 2px 1px rgba(255, 255, 255, 0.6),
    inset -1px -1px 1px rgba(255, 255, 255, 0.5),
    0 10px 30px rgba(4, 20, 40, 0.22);
}
.nav-logo-text { color: #10233b; }
.nav-links a { color: #34495e; }
.nav-links a:hover, .nav-links a.active { color: #1f6fb2; }
.nav-toggle span { background: #34495e; }

/* Mobile slide-out menu sits on a dark navy panel — force light link text so it's legible */
@media (max-width: 768px) {
  .nav-links a { color: #e7eef6; }
  .nav-links a:hover, .nav-links a.active { color: #ffffff; }
}

/* White surfaces on the contour canvas — rounded panels (.band) or full-width bands (.band-full). Dark text inside. */
.band { background: transparent; }
.band > .container {
  background: #ffffff;
  border: 1px solid rgba(20, 44, 70, 0.06);
  border-radius: 28px;
  padding: clamp(2rem, 1.3rem + 3vw, 3.5rem);
  box-shadow: 0 16px 40px rgba(4, 20, 40, 0.16);
  max-width: 1140px;
}
.band-full { background: #ffffff; box-shadow: 0 -26px 46px -30px rgba(4, 20, 40, 0.38), 0 26px 46px -30px rgba(4, 20, 40, 0.38); }
.band, .band-full { position: relative; z-index: 1; color: #45596c; }
.band p, .band li, .band-full p, .band-full li { color: #45596c !important; }
.band h1, .band h2, .band h3, .band h4, .band .display-hero, .band .display-lg,
.band-full h1, .band-full h2, .band-full h3, .band-full h4, .band-full .display-hero, .band-full .display-lg { color: #10233b !important; }
.band .label-sm, .band-full .label-sm { color: #6c8093; }
.band .text-accent, .band-full .text-accent { color: #1f6fb2 !important; }
/* glass cards keep their frosted-glass look even when they sit on a white band */
.band .glass p, .band .glass li, .band-full .glass p, .band-full .glass li { color: #45596c !important; }
.band .glass h3, .band .glass .card-title, .band-full .glass h3, .band-full .glass .card-title { color: #10233b !important; }
/* timeline reads on a white surface */
.band .step-num, .band-full .step-num { background: #eef4fb; border-color: #d4e0ec; }
.band .timeline::before, .band-full .timeline::before { background: linear-gradient(#1f6fb2, rgba(31, 111, 178, 0.08)); }
