/* Stratosphere Capital — site styles */

:root {
  --navy: #00416B;
  --blue: #2E71B9;
  --sky: #92A8D7;
  --deep-navy: #002B47;
  --text: #13293D;
  --muted: #4B5D70;
  --panel: #F2F6FB;
  --hairline: #D2DCE8;
  --white: #FFFFFF;

  --font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --radius-card: 8px;
  --radius-btn: 4px;
  --max: 1200px;
  --gutter: 24px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--navy);
}

p { margin: 0 0 1em; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.panel { background: var(--panel); }
.muted { color: var(--muted); }

/* Eyebrows and labels */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 16px;
}
.eyebrow-on-dark { color: var(--sky); }

.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}

/* Buttons and links */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--navy); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-lg { padding: 16px 28px; font-size: 16px; }

.text-link,
.card-link {
  display: inline-block;
  font-weight: 600;
  color: var(--blue);
}
.text-link::after,
.card-link::after { content: " \2192"; }
.text-link-on-dark { color: var(--white); border-bottom: 1px solid var(--sky); }
.text-link-on-dark:hover { text-decoration: none; color: var(--sky); }

/* Brand */
.brand { display: inline-flex; align-items: center; }
.brand img { height: 36px; width: auto; }
.brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.brand-text-on-dark { color: var(--white); }
.brand:hover { text-decoration: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a:not(.btn) {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:not(.btn):hover { color: var(--blue); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  margin-right: -10px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  background: var(--deep-navy);
  color: var(--white);
  padding: 112px 0 120px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(32px, 5.2vw, 56px);
  max-width: 900px;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--sky);
  max-width: 680px;
  margin: 0;
}

/* Sections */
.section { padding: 96px 0; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); }
.lead { font-size: 19px; color: var(--muted); margin: 0; }
.subsection + .subsection { margin-top: 64px; }
.subhead {
  font-size: 20px;
  font-weight: 600;
  padding-bottom: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 32px;
}
.card-grid { display: grid; gap: 24px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-title { font-size: 20px; }
.card-title-lg { font-size: 28px; }
.card p:last-child { margin-bottom: 0; }

/* Strategy cards */
.strategies { padding: 64px 0; }
.strategy-card {
  display: flex;
  flex-direction: column;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.strategy-card:hover {
  text-decoration: none;
  border-color: var(--blue);
}
.strategy-card p { color: var(--muted); flex: 1; }
.card-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--blue);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.strategy-card .card-link { margin-top: 8px; }
.strategy-card:hover .card-link { text-decoration: underline; }

/* Real estate */
.re-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: start;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 28px;
}
.stat {
  border-top: 2px solid var(--navy);
  padding-top: 12px;
}
.stat dd {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--navy);
  line-height: 1.1;
  margin: 0;
}
.stat dt {
  font-size: 13px;
  color: var(--muted);
  order: 2;
}
.stat { display: flex; flex-direction: column; }
.stat dd { order: 1; }
.subhead-note {
  font-size: 15px;
  color: var(--muted);
  margin: -8px 0 28px;
}
.table-note {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin: 16px 0 0;
}

.property-table-wrap { overflow-x: auto; }
.property-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.property-table th,
.property-table td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid var(--hairline);
}
.property-table thead th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--navy);
}
.property-table tbody th { font-weight: 600; color: var(--text); }
.property-table td { color: var(--muted); }
.property-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.property-table tfoot th,
.property-table tfoot td {
  font-weight: 600;
  color: var(--navy);
  border-bottom: 0;
  border-top: 2px solid var(--navy);
}

.silversphere {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--panel);
  border-color: var(--panel);
}
.silversphere p:not(.label) { color: var(--muted); max-width: 640px; }
.silversphere .btn { flex-shrink: 0; }

/* Photos */
.photo { margin: 0; }
.photo img {
  width: 100%;
  border-radius: var(--radius-card);
}
.photo figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.photo-re img {
  aspect-ratio: 479 / 302;
  object-fit: cover;
}
.photo-pe {
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-headshot img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

/* Venture */
.tile-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tile {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 20px;
}
.tile h4,
.tile h5 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.tile p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}
/* Linked tiles: the whole tile is the link */
.tile.tile-linked { padding: 0; transition: border-color 0.15s ease; }
.tile-link {
  display: block;
  height: 100%;
  padding: 20px;
  color: inherit;
  border-radius: inherit;
}
.tile-link:hover { text-decoration: none; }
.tile-linked:hover,
.tile-linked:focus-within { border-color: var(--blue); }
.tile .ext {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.85em;
  color: var(--blue);
  opacity: 0;
  transform: translate(-2px, 2px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.tile-linked:hover .ext,
.tile-linked:focus-within .ext { opacity: 1; transform: none; }
@media (hover: none) {
  .tile .ext { opacity: 1; transform: none; }
}
/* Company logos: fixed-height box so tiles line up regardless of logo shape */
.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 40px;
  max-width: 140px;
  margin-bottom: 14px;
}
.logo img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}
.logo-lg { height: 48px; max-width: 180px; margin-bottom: 16px; }
/* White or very light logos sit on a small navy chip */
.logo-chip {
  width: fit-content;
  background: var(--navy);
  border-radius: 4px;
  padding: 6px 10px;
}
.fund-card p:not(.label) { color: var(--muted); }
.fund-portfolio-label { margin: 32px 0 16px; }
/* Fund banner: slim single row (logo | text | link) */
.card.fund-banner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 20px 32px;
}
.fund-banner .logo { margin: 0; flex-shrink: 0; }
.fund-banner-text { flex: 1; min-width: 0; }
.fund-banner .label { margin-bottom: 2px; }
.fund-banner .card-title { margin: 0 0 2px; }
.fund-banner-text p:last-child { margin: 0; }
.fund-banner .text-link { flex-shrink: 0; white-space: nowrap; }

/* Private equity */
.pe-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
}
.pe-body p:not(.label) { color: var(--muted); font-size: 18px; }

/* About */
.about {
  background: var(--navy);
  color: var(--white);
}
.about h2 {
  color: var(--white);
  font-size: clamp(26px, 3.2vw, 36px);
  margin-bottom: 24px;
}
.about p:not(.eyebrow) { color: rgba(255, 255, 255, 0.88); max-width: 680px; }
.about-grid {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 64px;
  align-items: center;
}
.about .text-link { margin-top: 8px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: 64px;
  align-items: start;
}
.contact h2 { font-size: clamp(28px, 3.6vw, 40px); }
.contact .lead { margin-bottom: 0; }
.contact-text {
  position: sticky;
  top: 120px;
}
.contact-note {
  font-size: 14px;
  color: var(--muted);
  margin: 16px 0 0;
}
.card.contact-form-card {
  width: 100%;
  max-width: 560px;
  padding: 0;
  overflow: hidden;
}

/* Footer */
.site-footer {
  background: var(--deep-navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 56px 0 40px;
  font-size: 14px;
}
.footer-inner > * + * { margin-top: 16px; }
.footer-contact a { color: var(--white); }
.disclosure {
  max-width: 720px;
  color: var(--sky);
  font-size: 13px;
  line-height: 1.6;
  padding-top: 16px;
  border-top: 1px solid rgba(146, 168, 215, 0.3);
}
.copyright { font-size: 13px; color: rgba(255, 255, 255, 0.6); margin-bottom: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .tile-grid { grid-template-columns: repeat(3, 1fr); }
  .re-grid { grid-template-columns: 1fr; gap: 40px; }
  .photo-re { max-width: 560px; }
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--hairline);
    padding: 8px var(--gutter) 24px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) {
    padding: 14px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--hairline);
  }
  .site-nav .btn { margin-top: 20px; text-align: center; padding: 16px 20px; }

  .card-grid-3 { grid-template-columns: 1fr; }
  .pe-card { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .photo-pe { order: -1; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-text { position: static; }
  .photo-headshot { max-width: 280px; }
  .silversphere { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; --header-h: 64px; }
  body { font-size: 16px; }
  .brand img { height: 30px; }
  .brand-text { font-size: 18px; }
  .hero { padding: 72px 0 80px; }
  .section { padding: 64px 0; }
  .strategies { padding: 40px 0; }
  .section-head { margin-bottom: 36px; }
  .lead { font-size: 17px; }
  .subsection + .subsection { margin-top: 48px; }
  .card { padding: 24px; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .card.fund-banner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px; }
  .tile-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tile { padding: 16px; }
  .tile-link { padding: 16px; }
  .stats { gap: 12px; }
  .property-table { font-size: 14px; }
  .property-table th,
  .property-table td { padding: 10px 4px; }
}

@media (max-width: 400px) {
  .tile-grid { grid-template-columns: 1fr; }
}
