/*
  ============================================================
  CORREA PUBLIC INVESTMENTS — Elite Institutional Design System
  ============================================================
  Typography: Cormorant Garamond (serif) + Inter (sans)
  Palette:    Deep Navy · Warm White · Restrained Gold
  Philosophy: Minimal, disciplined, precise — like the firm itself
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --navy:         #07090F;
  --navy2:        #0D1220;
  --navy3:        #111827;
  --panel:        rgba(255,255,255,0.03);
  --panel2:       rgba(255,255,255,0.055);

  --text:         #F0EDE6;
  --text2:        #BEB9AF;
  --muted:        #737880;

  --gold:         #C49A3A;
  --gold2:        #D4AA4E;
  --gold-dim:     rgba(196,154,58,0.18);
  --gold-line:    rgba(196,154,58,0.4);

  --border:       rgba(255,255,255,0.07);
  --border2:      rgba(255,255,255,0.12);

  --max:          1340px;
  --max-narrow:   880px;
  --max-wide:     1540px;

  --serif:        'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:         'Inter', system-ui, -apple-system, sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--navy);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
img, video { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul { list-style: none; }

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap        { width: 100%; max-width: var(--max);        margin: 0 auto; padding: 0 48px; }
.wrap-narrow { width: 100%; max-width: var(--max-narrow); margin: 0 auto; padding: 0 48px; }
.wrap-wide   { width: 100%; max-width: var(--max-wide);   margin: 0 auto; padding: 0 48px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr;       gap: 64px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.serif { font-family: var(--serif); }

.overline {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 6.5vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--text);
}
h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 4.5vw, 60px);
  line-height: 1.1;
  color: var(--text);
}
h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.25;
  color: var(--text);
}
h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text2);
}

.lead {
  font-size: 17px;
  font-weight: 300;
  color: var(--text2);
  line-height: 1.75;
  max-width: 680px;
}
.body-sm { font-size: 14px; color: var(--muted); line-height: 1.75; }
.caption  { font-size: 12px; color: var(--muted); line-height: 1.6; }

em.serif { font-family: var(--serif); font-style: italic; color: var(--gold); }

/* ============================================================
   DIVIDERS
   ============================================================ */
.rule         { display: block; width: 100%; height: 1px; background: var(--border); border: none; }
.rule-gold    { display: block; width: 48px;  height: 1px; background: var(--gold); }
.rule-gold-sm { display: block; width: 28px;  height: 1px; background: var(--gold); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 30px;
  transition: background 0.22s, color 0.22s, border-color 0.22s, opacity 0.22s;
  white-space: nowrap;
  cursor: pointer;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border: 1px solid var(--gold);
}
.btn-gold:hover { background: var(--gold2); border-color: var(--gold2); }

.btn-outline {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border2);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.28); color: var(--text); }

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-line);
}
.btn-ghost:hover { background: var(--gold-dim); color: var(--gold2); }

.btn-white {
  background: var(--text);
  color: var(--navy);
  border: 1px solid var(--text);
}
.btn-white:hover { opacity: 0.9; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background 0.35s, border-color 0.35s;
}
.site-nav.scrolled {
  background: rgba(7,9,15,0.90);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.nav-brand-logo {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 3px;
}
.nav-brand-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text2);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.nav-login-link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-login-link:hover { color: var(--text2); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  color: var(--text2);
  padding: 4px;
}

/* Mobile overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 199;
  background: var(--navy);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.mobile-nav-overlay.open { display: flex; }
.mobile-nav-overlay a {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  color: var(--text);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.mobile-nav-overlay a:hover { color: var(--gold); }
.mobile-nav-close {
  position: absolute;
  top: 28px; right: 32px;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-nav-close:hover { color: var(--text); }

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: 112px 0; }
section.alt { background: var(--navy2); }
section.dark { background: var(--navy3); }

.section-head { margin-bottom: 64px; }
.section-head .overline { margin-bottom: 16px; }
.section-head h2 { margin-top: 12px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 152px 0 108px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 70% at 75% 30%, rgba(196,154,58,0.045), transparent 65%),
    radial-gradient(ellipse 60% 90% at 10% 90%, rgba(13,18,32,0.7), transparent 70%);
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.013) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.013) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}
.hero-content { position: relative; z-index: 2; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-stats-row {
  display: flex;
  gap: 0;
  margin: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.hero-stat {
  padding: 36px 48px 36px 0;
  margin-right: 48px;
  flex-shrink: 0;
}
.hero-stat:first-child { padding-left: 0; }
.hero-stat-val {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 300;
  color: var(--text);
  line-height: 1;
}
.hero-stat-label {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
}

.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* ============================================================
   PILLARS (3-col bordered grid)
   ============================================================ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
}
.pillar-item {
  padding: 52px 44px;
  border-right: 1px solid var(--border);
  transition: background 0.28s;
}
.pillar-item:last-child { border-right: none; }
.pillar-item:hover { background: var(--panel); }
.pillar-num {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 300;
  color: rgba(196,154,58,0.16);
  line-height: 1;
  margin-bottom: 20px;
}
.pillar-item h3 { margin-bottom: 14px; }
.pillar-item p { font-size: 14px; color: var(--muted); line-height: 1.8; }

/* ============================================================
   STAT ROW (4-col)
   ============================================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
}
.stat-cell {
  padding: 44px 40px;
  border-right: 1px solid var(--border);
}
.stat-cell:last-child { border-right: none; }
.stat-num {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 300;
  color: var(--text);
  line-height: 1;
}
.stat-label {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
}
.stat-desc { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.6; }

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.process-list { display: flex; flex-direction: column; }
.process-item {
  display: flex;
  gap: 44px;
  align-items: flex-start;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.process-item:first-child { border-top: 1px solid var(--border); }
.process-roman {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 300;
  color: var(--gold);
  min-width: 52px;
  line-height: 1.15;
  flex-shrink: 0;
}
.process-item h3 { font-size: 20px; margin-bottom: 10px; }
.process-item p { font-size: 14px; color: var(--muted); line-height: 1.8; }

/* ============================================================
   CALLOUT / BLOCKQUOTE
   ============================================================ */
.callout-block {
  border-left: 2px solid var(--gold);
  padding: 28px 40px;
  background: rgba(196,154,58,0.04);
}
.callout-block blockquote {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 300;
  font-style: italic;
  color: var(--text2);
  line-height: 1.5;
}
.callout-attribution {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 18px;
}

/* ============================================================
   INFO PANEL (key-value pairs)
   ============================================================ */
.info-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}
.info-cell {
  padding: 22px 28px;
  background: var(--navy2);
}
.info-label {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.info-value { font-size: 14px; color: var(--text2); }

/* ============================================================
   REQUIREMENT LIST
   ============================================================ */
.req-list { display: flex; flex-direction: column; gap: 18px; }
.req-item { display: flex; gap: 18px; align-items: flex-start; }
.req-item .rule-gold-sm { margin-top: 9px; flex-shrink: 0; }
.req-item p { font-size: 13.5px; color: var(--text2); line-height: 1.65; }

/* ============================================================
   DISCLOSURE PANEL
   ============================================================ */
.disclosure-panel {
  background: var(--navy3);
  border: 1px solid var(--border);
  padding: 36px 44px;
}
.disclosure-panel .overline { display: block; margin-bottom: 18px; }
.disclosure-panel p { font-size: 12.5px; color: var(--muted); line-height: 1.85; }
.disclosure-panel strong { color: var(--text2); }

/* ============================================================
   TEAM CARD
   ============================================================ */
.team-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 48px;
  align-items: start;
  padding: 52px;
  border: 1px solid var(--border);
}
.team-photo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  object-position: top center;
  border-radius: 2px;
  filter: grayscale(15%) contrast(1.05);
}
.team-name {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 6px;
}
.team-title {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.team-bio { font-size: 14px; color: var(--muted); line-height: 1.85; max-width: 680px; }

/* ============================================================
   CARDS (generic)
   ============================================================ */
.card {
  padding: 36px 40px;
  border: 1px solid var(--border);
  background: var(--panel);
  transition: background 0.25s, border-color 0.25s;
}
.card:hover { background: var(--panel2); border-color: var(--border2); }
.card h4 { margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.75; }

/* ============================================================
   VALUE PROPS (numbered cards)
   ============================================================ */
.value-card {
  padding: 44px;
  border: 1px solid var(--border);
  background: var(--panel);
}
.value-num {
  font-family: var(--serif);
  font-size: 72px;
  font-weight: 300;
  color: rgba(196,154,58,0.12);
  line-height: 1;
  margin-bottom: 8px;
}
.value-card h3 { margin-bottom: 14px; font-size: 22px; }
.value-card p { font-size: 14px; color: var(--muted); line-height: 1.8; }

/* ============================================================
   HORIZONTAL RULE SECTION DIVIDER
   ============================================================ */
.section-rule {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 16px 0 40px;
}
.section-rule .rule-gold { flex-shrink: 0; }
.section-rule hr { flex: 1; height: 1px; background: var(--border); border: none; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text2);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border2);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  padding: 14px 18px;
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--muted); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold-line);
  background: rgba(196,154,58,0.04);
}
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23737880' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 44px; }
.form-select option { background: var(--navy3); color: var(--text); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: 12px; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-check { display: flex; align-items: flex-start; gap: 12px; }
.form-check input[type="checkbox"] { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--gold); flex-shrink: 0; }
.form-check label { font-size: 13px; color: var(--text2); line-height: 1.6; }

/* ============================================================
   INVESTOR PORTAL — LAYOUT
   ============================================================ */
.portal-wrap {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--navy2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-brand img { width: 32px; height: 32px; border-radius: 3px; object-fit: cover; }
.sidebar-brand-name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.sidebar-nav { flex: 1; padding: 24px 16px; }
.sidebar-section-label {
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 12px;
  margin-top: 24px;
  margin-bottom: 8px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 0;
  font-size: 13px;
  color: var(--text2);
  transition: background 0.18s, color 0.18s;
}
.sidebar-link:hover { background: var(--panel); color: var(--text); }
.sidebar-link.active { background: var(--gold-dim); color: var(--gold); }
.sidebar-link svg { opacity: 0.6; flex-shrink: 0; }
.sidebar-link.active svg { opacity: 1; }
.sidebar-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.portal-main {
  flex: 1;
  min-width: 0;
  overflow: auto;
}
.portal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 10;
}
.portal-topbar-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
}
.portal-content { padding: 48px; }
.portal-page-head { margin-bottom: 40px; }
.portal-page-head .overline { display: block; margin-bottom: 10px; }
.portal-page-head h2 { font-size: clamp(26px, 3vw, 38px); }

/* Portal metric cards */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: var(--border);
  margin-bottom: 40px;
}
.metric-card {
  background: var(--navy2);
  padding: 28px 32px;
}
.metric-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.metric-val {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 300;
  color: var(--text);
  line-height: 1;
}
.metric-val.positive { color: #4CAF87; }
.metric-val.negative { color: #D9534F; }
.metric-sub { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* Portal tables */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 12px 20px;
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.data-table td {
  padding: 16px 20px;
  font-size: 13.5px;
  color: var(--text2);
  border-bottom: 1px solid var(--border);
}
.data-table tbody tr:hover td { background: var(--panel); }
.data-table td.num { font-family: var(--serif); font-size: 16px; font-weight: 300; color: var(--text); }
.data-table td.pos { color: #4CAF87; }
.data-table td.neg { color: #D9534F; }

/* ============================================================
   LOGIN / FORM PAGES (centered)
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  background:
    radial-gradient(ellipse 70% 60% at 60% 20%, rgba(196,154,58,0.04), transparent 60%),
    var(--navy);
}
.auth-card {
  width: 100%;
  max-width: 480px;
  border: 1px solid var(--border);
  padding: 52px 52px 48px;
  background: var(--navy2);
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}
.auth-brand img { width: 34px; height: 34px; border-radius: 3px; object-fit: cover; }
.auth-brand-name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 72px 0 44px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 64px;
}
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.footer-brand-row img { width: 30px; height: 30px; border-radius: 3px; object-fit: cover; }
.footer-brand-row span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.footer-desc { font-size: 13px; color: var(--muted); line-height: 1.75; max-width: 300px; }
.footer-col-title {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 13px; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text2); }

.footer-bottom {
  padding-top: 36px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
}
.footer-legal { font-size: 11.5px; color: var(--muted); line-height: 1.85; }
.footer-legal strong { color: var(--text2); }
.footer-copy { font-size: 11.5px; color: var(--muted); white-space: nowrap; margin-top: 4px; }

/* ============================================================
   BADGE / PILL
   ============================================================ */
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid var(--border2);
  color: var(--muted);
}
.badge-gold {
  border-color: var(--gold-line);
  color: var(--gold);
  background: var(--gold-dim);
}
.badge-green {
  border-color: rgba(76,175,135,0.35);
  color: #4CAF87;
  background: rgba(76,175,135,0.08);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .wrap, .wrap-narrow, .wrap-wide { padding: 0 32px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar-item { border-right: none; border-bottom: 1px solid var(--border); }
  .pillar-item:last-child { border-bottom: none; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(3) { border-top: 1px solid var(--border); }
  .stat-cell:nth-child(4) { border-right: none; border-top: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .metric-card:nth-child(2) { border-right: 0; }
}

@media (max-width: 900px) {
  section { padding: 80px 0; }
  .hero { padding: 120px 0 80px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 48px; }
  .team-card { grid-template-columns: 1fr; gap: 24px; padding: 32px; }
  .sidebar { display: none; }
  .portal-content { padding: 28px; }
  .portal-topbar { padding: 16px 28px; }
}

@media (max-width: 768px) {
  .wrap, .wrap-narrow { padding: 0 20px; }
  .nav-links, .nav-login-link { display: none; }
  .nav-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  section { padding: 64px 0; }
  .hero { padding: 100px 0 64px; }
  .hero-stats-row { flex-direction: column; gap: 0; border: none; border-top: 1px solid var(--border); }
  .hero-stat { border-bottom: 1px solid var(--border); padding: 24px 0; margin-right: 0; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat-cell { border-right: none; border-top: 1px solid var(--border); padding: 28px 20px; }
  .stat-cell:first-child { border-top: none; }
  .pillar-item { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { grid-template-columns: 1fr; gap: 16px; }
  .auth-card { padding: 36px 28px; }
  .form-row { grid-template-columns: 1fr; }
  .disclosure-panel { padding: 24px 20px; }
  .callout-block { padding: 20px 24px; }
  .callout-block blockquote { font-size: 20px; }
  .metric-grid { grid-template-columns: 1fr; background: none; gap: 1px; }
  .process-item { gap: 24px; padding: 28px 0; }
  .process-roman { font-size: 28px; min-width: 36px; }
  .team-card { padding: 28px 24px; }

  /* Collapse inline 2-col and 3-col grids */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:repeat(2,1fr)"],
  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .info-panel { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

/* ============================================================
   PORTAL MOBILE — SLIDE-IN SIDEBAR & RESPONSIVE LAYOUT
   ============================================================ */

/* Hamburger button — hidden on desktop */
.portal-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text2);
  padding: 4px;
  flex-shrink: 0;
  line-height: 1;
  margin-right: 12px;
}

/* Full-screen overlay behind sidebar */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 199;
}
.sidebar-overlay.open { display: block; }

@media (max-width: 900px) {
  /* Sidebar becomes a fixed slide-in panel instead of disappearing */
  .sidebar {
    display: flex !important;
    position: fixed;
    top: 0;
    left: -260px;
    z-index: 200;
    height: 100vh;
    transition: left 0.25s ease;
    overflow-y: auto;
  }
  .sidebar.open { left: 0; }
  .portal-menu-btn { display: flex; align-items: center; }
  .portal-content { padding: 24px 20px; }
  .portal-topbar { padding: 14px 20px; }
  /* Holdings table scrollable on mobile */
  .holdings-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 768px) {
  /* Collapse 3-col inline grids */
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* Notice banner — stack on small screens */
  #noticeBanner { flex-wrap: wrap; padding: 12px 20px; }
  /* Reduce portal heading size */
  .portal-page-head h2 { font-size: clamp(22px, 5vw, 32px); }
}

@media (max-width: 480px) {
  .portal-content { padding: 16px; }
  .portal-topbar-title { font-size: 14px; }
  .metric-card { padding: 20px 20px; }
}
