/*
Theme Name: Properfy
Theme URI: https://properfyhomes.com
Author: Properfy
Description: Properfy production theme — full-fidelity port of the approved mock-up.
Version: 1.0.0
License: GPL v2 or later
Text Domain: properfy-theme
*/

/* --- MOCK-UP css/site.css BELOW, VERBATIM --- */
/* ==========================================================================
   Properfy — Design Tokens
   Sourced from the Properfy Brand & Content Kit Style Guide
   ========================================================================== */

:root {
  /* Brand palette (per style guide) */
  --midnight: #250F3C;
  --midnight-90: rgba(37, 15, 60, 0.92);
  --midnight-70: rgba(37, 15, 60, 0.70);
  --midnight-40: rgba(37, 15, 60, 0.40);
  --midnight-deep: #1B0B2C;
  --midnight-lift: #34194E;

  --silver-05: #FBFBFA;
  --silver-10: #F5F5F5;   /* White #F5F5F5 */
  --silver-15: #EAE9E7;   /* White #EAE9E7 */
  --silver-30: #D8D6D2;
  --silver-50: #9D9E99;   /* Gray #9D9E99 */
  --silver-70: #6C6D69;
  --ink-90: #1B1A1F;
  --ink-70: #3D3B44;

  /* Accents used sparingly — plum highlight derived from midnight */
  --plum: #7A4EA0;
  --plum-soft: rgba(122, 78, 160, 0.18);

  /* Backgrounds */
  --bg: #FFFFFF;
  --bg-alt: var(--silver-10);
  --bg-elev: var(--silver-15);
  --bg-dark: var(--midnight);
  --bg-deep: var(--midnight-deep);

  /* Text roles */
  --text: var(--ink-90);
  --text-muted: var(--silver-70);
  --text-onDark: rgba(255, 255, 255, 0.92);
  --text-onDark-muted: rgba(255, 255, 255, 0.60);

  /* Border */
  --border: rgba(37, 15, 60, 0.12);
  --border-strong: rgba(37, 15, 60, 0.24);
  --border-onDark: rgba(255, 255, 255, 0.14);

  /* Typography */
  --font-sans: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Merriweather', 'Georgia', 'Times New Roman', serif;

  /* Type scale (per style guide: 36px+ hero, 22-24px section heads, 16-17px body serif) */
  --fs-hero: clamp(2.75rem, 5.2vw, 4.5rem);   /* 44–72 */
  --fs-h1: clamp(2.25rem, 3.8vw, 3.25rem);
  --fs-h2: clamp(1.75rem, 2.6vw, 2.375rem);
  --fs-h3: 1.5rem;
  --fs-h4: 1.25rem;
  --fs-lg: 1.125rem;
  --fs-body: 1rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-eyebrow: 0.75rem;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;

  /* Layout */
  --container: 1240px;
  --container-narrow: 880px;
  --radius: 4px;
  --radius-lg: 10px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 640ms;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(37, 15, 60, 0.06), 0 1px 3px rgba(37, 15, 60, 0.04);
  --shadow-md: 0 6px 20px rgba(37, 15, 60, 0.08), 0 2px 6px rgba(37, 15, 60, 0.04);
  --shadow-lg: 0 24px 60px rgba(37, 15, 60, 0.14);
}
/* ==========================================================================
   Properfy — Base styles
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

a { color: var(--midnight); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--plum); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--midnight);
  line-height: 1.15;
  margin: 0 0 var(--sp-4) 0;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-h1); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.015em; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-weight: 600; }

p { margin: 0 0 var(--sp-4) 0; }

.serif { font-family: var(--font-serif); }
.mono-num { font-variant-numeric: tabular-nums lining-nums; }

.eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--plum);
  display: inline-block;
  margin-bottom: var(--sp-4);
}
.eyebrow.on-dark { color: rgba(255,255,255,0.7); }

/* Layout containers */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.25rem);
}
.container-narrow { max-width: var(--container-narrow); }

section { padding: clamp(4rem, 8vw, 7rem) 0; }
section.tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
section.dark { background: var(--bg-dark); color: var(--text-onDark); }
section.dark h1, section.dark h2, section.dark h3, section.dark h4 { color: #fff; }
section.alt { background: var(--bg-alt); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  text-decoration: none;
  line-height: 1;
}
.btn-primary { background: var(--midnight); color: #fff; }
.btn-primary:hover { background: var(--midnight-lift); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; color: var(--midnight); border-color: var(--midnight); }
.btn-outline:hover { background: var(--midnight); color: #fff; }

.btn-onDark { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-onDark:hover { background: #fff; color: var(--midnight); }

.btn-ghost { background: transparent; color: var(--midnight); padding: 0.6rem 0; }
.btn-ghost:hover { color: var(--plum); }

.btn .arrow { display: inline-block; transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Utility */
.rule { border: 0; height: 1px; background: var(--border); margin: 0; }
.rule-on-dark { border: 0; height: 1px; background: var(--border-onDark); }

.grid { display: grid; gap: var(--sp-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 640px) and (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Selection */
::selection { background: var(--midnight); color: #fff; }
/* ==========================================================================
   Properfy — Components
   ========================================================================== */

/* ---------- Splash / Loader ---------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: radial-gradient(ellipse at center, var(--midnight-lift) 0%, var(--midnight) 40%, var(--midnight-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 900ms var(--ease), visibility 0s linear 900ms;
}
.splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 50% 45%, rgba(255,255,255,0.06), transparent 60%),
    linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}
.splash-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}
.splash-logo {
  width: min(280px, 44vw);
  animation: splash-in 1400ms var(--ease) both;
}
.splash-tagline {
  color: rgba(255,255,255,0.8);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: fade-up 900ms var(--ease) 500ms forwards;
  text-align: center;
  max-width: 24rem;
}
.splash-progress {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.14);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.5rem;
  opacity: 0;
  animation: fade-up 600ms var(--ease) 800ms forwards;
}
.splash-progress::before {
  content: "";
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.85), transparent);
  animation: progress 1600ms var(--ease) 900ms forwards;
}

/* Vertical light rays that fade in behind the logo */
.splash-rays {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 0.55;
}
.splash-rays span {
  position: absolute;
  top: 8%;
  bottom: 30%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.32), transparent);
  transform-origin: bottom center;
  opacity: 0;
  animation: ray-in 1600ms var(--ease) forwards;
}

@keyframes splash-in {
  0% { opacity: 0; transform: scale(0.94) translateY(6px); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes progress {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes ray-in {
  0% { opacity: 0; transform: scaleY(0.4); }
  100% { opacity: 1; transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .splash-logo, .splash-tagline, .splash-progress, .splash-rays span {
    animation: none;
    opacity: 1;
  }
  .splash-progress::before { animation: none; width: 100%; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(37, 15, 60, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.nav.solid { background: rgba(37, 15, 60, 0.94); }
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.85rem clamp(1.25rem, 4vw, 2.25rem);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  color: #fff;
  line-height: 0;
}
.nav-brand img {
  width: 72px;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.08));
  transition: transform var(--dur) var(--ease);
}
.nav-brand:hover img { transform: scale(1.03); }
@media (max-width: 720px) {
  .nav-brand img { width: 56px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-left: auto;
  list-style: none;
  padding: 0;
}
.nav-links a {
  color: rgba(255,255,255,0.86);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  padding: 0.4rem 0;
  position: relative;
  transition: color var(--dur) var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: rgba(255,255,255,0.8);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  padding: 0.6rem 1.05rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius);
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  font-weight: 500;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav-cta:hover { background: #fff; color: var(--midnight); border-color: #fff; }
.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-mobile-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--midnight);
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.35rem;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-mobile-open .nav-links a { padding: 0.7rem 0; }
  .nav-mobile-open .nav-cta { display: inline-flex; margin-top: 0.75rem; align-self: flex-start; }
}

/* Give body room so sticky nav doesn't overlap page content */
main { padding-top: 76px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(85vh, 780px);
  color: var(--text-onDark);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: clamp(6rem, 12vw, 10rem) 0 clamp(3rem, 6vw, 5rem);
  background: var(--bg-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: saturate(0.9) contrast(1.05);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(37,15,60,0.55) 0%, rgba(37,15,60,0.30) 45%, rgba(27,11,44,0.92) 100%),
    linear-gradient(90deg, rgba(37,15,60,0.55), transparent 55%);
}
.hero-content { position: relative; z-index: 1; }
.hero-title {
  font-size: var(--fs-hero);
  line-height: 1.05;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.025em;
  max-width: 20ch;
  margin: 0 0 var(--sp-5);
}
.hero-title em { font-style: normal; color: rgba(255,255,255,0.68); }
.hero-lede {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255,255,255,0.86);
  max-width: 58ch;
  margin: 0 0 var(--sp-6);
}
.hero-cta {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(255,255,255,0));
  animation: line-drop 2.4s var(--ease) infinite;
}
@keyframes line-drop {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Section header ---------- */
.section-head {
  max-width: 60ch;
  margin: 0 0 var(--sp-7);
}
.section-head p {
  color: var(--text-muted);
  font-size: var(--fs-lg);
  font-family: var(--font-serif);
  line-height: 1.55;
}
section.dark .section-head p { color: rgba(255,255,255,0.72); }

/* ---------- Cards ---------- */
.card {
  padding: var(--sp-6);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card h3 { font-size: 1.2rem; margin-bottom: 0.65rem; }
.card p { color: var(--text-muted); font-size: 0.96rem; margin: 0; }
.card .num {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--plum);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.card-dark {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.1);
  color: var(--text-onDark);
}
.card-dark p { color: rgba(255,255,255,0.75); }
.card-dark:hover { background: rgba(255,255,255,0.05); }

/* ---------- Stat grid ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-onDark);
  border-bottom: 1px solid var(--border-onDark);
}
.stat {
  padding: 2.5rem 1.5rem;
  text-align: left;
  border-right: 1px solid var(--border-onDark);
}
.stat:last-child { border-right: 0; }
.stat .value {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat .label {
  color: rgba(255,255,255,0.6);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 0.9rem;
}
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--border-onDark); }
  .stat:nth-child(2n) { border-right: 0; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; }
}

/* ---------- Process rail ---------- */
.rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.rail::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 3%;
  right: 3%;
  height: 1px;
  background: var(--border);
}
.rail-step {
  padding: 0 1.25rem;
  position: relative;
}
.rail-step .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--midnight);
  margin: 20px 0 1.5rem;
  position: relative;
  z-index: 1;
}
.rail-step h4 { margin-bottom: 0.5rem; letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.9rem; color: var(--plum); }
.rail-step p { color: var(--text-muted); font-size: 0.95rem; }

@media (max-width: 900px) {
  .rail { grid-template-columns: 1fr; }
  .rail::before { display: none; }
  .rail-step { padding: 0; border-left: 1px solid var(--border); padding-left: 1.5rem; }
  .rail-step .dot { position: absolute; left: -6px; top: 4px; margin: 0; }
}

/* ---------- Fund cards ---------- */
.fund-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.fund {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 1.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--dur) var(--ease);
  text-decoration: none;
  color: inherit;
}
.fund:hover {
  border-color: var(--midnight);
  background: linear-gradient(180deg, #fff, #FBFAFE);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.fund .roman {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--plum);
  font-style: italic;
  line-height: 1;
}
.fund .fund-body h3 { font-size: 1.15rem; margin: 0 0 0.35rem; }
.fund .fund-body p { color: var(--text-muted); font-size: 0.94rem; margin: 0; }
.fund .fund-meta {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.fund .fund-meta .val { color: var(--midnight); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; }
.fund .fund-meta .lbl { color: var(--text-muted); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 0.2rem; }

@media (max-width: 720px) {
  .fund { grid-template-columns: 1fr; text-align: left; }
  .fund .fund-meta { text-align: left; }
}

/* ---------- Founder ---------- */
.founder {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.founder-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  position: relative;
}
.founder-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.95);
}
.founder-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(37,15,60,0.28));
  pointer-events: none;
}
.founder-body h2 { margin-bottom: 1.25rem; }
.founder-body .role {
  color: var(--plum);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}
.founder-body p { font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.65; color: var(--text); }
.founder-body p + p { margin-top: 1rem; }
@media (max-width: 900px) {
  .founder { grid-template-columns: 1fr; }
  .founder-photo { max-width: 420px; }
}

/* ---------- Pillars ---------- */
.pillar {
  padding: var(--sp-6);
  border-top: 2px solid var(--midnight);
  background: transparent;
}
.pillar h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.pillar p { color: var(--text-muted); font-size: 0.98rem; margin: 0; }
section.dark .pillar { border-top-color: rgba(255,255,255,0.55); }
section.dark .pillar p { color: rgba(255,255,255,0.72); }

/* ---------- Callout / CTA band ---------- */
.cta-band {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--midnight);
  color: var(--text-onDark);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 90% 20%, rgba(122,78,160,0.28), transparent 60%),
              radial-gradient(600px 300px at 10% 80%, rgba(122,78,160,0.18), transparent 60%);
  pointer-events: none;
}
.cta-band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  position: relative;
}
.cta-band h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: #fff; margin: 0; max-width: 34ch; }
.cta-band .btn { flex-shrink: 0; }

/* ---------- Footer ---------- */
footer {
  background: var(--midnight-deep);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img { width: 96px; margin-bottom: 1rem; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.85rem; max-width: 34ch; margin-top: 1rem; }
.footer-col h5 { color: #fff; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.18em; margin: 0 0 1.25rem; font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: rgba(255,255,255,0.66); font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }

/* Address block — spec: same font as the design reference (Roboto sans), Suite 2000 on its own line */
.footer-address {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
}
.footer-address .street,
.footer-address .suite,
.footer-address .city,
.footer-address .contact,
.footer-address .contact + .contact { display: block; }

/* Office grid on Contact page */
.office-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.office-card {
  padding: 1.4rem 1.4rem 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.office-card:hover {
  border-color: rgba(37,15,60,0.28);
  transform: translateY(-2px);
}
.office-card .office-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.office-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
  color: var(--text);
}
.office-card .footer-address {
  font-size: 0.88rem;
  line-height: 1.65;
}
.office-card a { color: var(--accent); text-decoration: none; }
.office-card a:hover { text-decoration: underline; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.6); margin-left: 1.25rem; }
.footer-bottom a:hover { color: #fff; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom .footer-legal a { margin-left: 0; margin-right: 1rem; }
}

/* ---------- Page banner (interior pages) ---------- */
.page-banner {
  background: var(--midnight);
  color: var(--text-onDark);
  padding: clamp(5rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 85% 30%, rgba(122,78,160,0.22), transparent 60%);
}
.page-banner h1 { color: #fff; margin: 0 0 1rem; font-size: var(--fs-h1); }
.page-banner .breadcrumbs {
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  position: relative;
}
.page-banner .breadcrumbs a { color: rgba(255,255,255,0.6); }
.page-banner .breadcrumbs a:hover { color: #fff; }
.page-banner .lede {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  max-width: 60ch;
  margin: 0;
  position: relative;
}
.page-banner .lede a {
  color: rgba(255,255,255,0.92);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--dur) var(--ease);
}
.page-banner .lede a:hover { text-decoration-color: #fff; color: #fff; }

/* Prose (long-form legal etc.) */
.prose { max-width: 72ch; font-size: 1rem; line-height: 1.75; color: var(--text); }
.prose h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.75rem; margin-bottom: 0.6rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.35rem; }
.prose strong { color: var(--midnight); }

/* Two-column content */
.two-col {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* Data list */
.dlist {
  border-top: 1px solid var(--border);
}
.dlist > div {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}
.dlist dt { color: var(--text-muted); font-size: 0.88rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0; }
.dlist dd { margin: 0; color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .dlist > div { grid-template-columns: 1fr; gap: 0.15rem; } }

/* Notice banner */
.notice {
  background: var(--silver-15);
  border-left: 3px solid var(--plum);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.notice strong { color: var(--midnight); font-weight: 600; }

/* LP portal specific */
.portal-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  max-width: 460px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}
.portal-panel h1 { font-size: 1.6rem; margin-bottom: 0.35rem; text-align: center; }
.portal-panel .sub { text-align: center; color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2rem; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.4rem; }
.field input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  background: #fff;
  transition: border-color var(--dur) var(--ease);
}
.field input:focus { outline: 0; border-color: var(--midnight); box-shadow: 0 0 0 3px var(--plum-soft); }
.field-row { display: flex; justify-content: space-between; font-size: 0.85rem; }
.field-row a { color: var(--plum); }

.portal-features {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.portal-feature h4 { font-size: 0.95rem; margin: 0 0 0.4rem; }
.portal-feature p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }
@media (max-width: 800px) { .portal-features { grid-template-columns: 1fr; } }

/* Table of Contents (legal pages) */
.toc {
  background: var(--bg-alt);
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
  font-size: 0.92rem;
}
.toc h5 { margin: 0 0 0.75rem; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.toc ol { columns: 2; column-gap: 2rem; padding-left: 1.25rem; margin: 0; }
.toc li { break-inside: avoid; margin-bottom: 0.25rem; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* ---------- Fund Cards ---------- */
.fund-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.fund-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.fund-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.fund-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}
.fund-head .rn {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.6rem;
  color: var(--plum);
  line-height: 1;
  min-width: 2ch;
}
.fund-head h3 { margin: 0; font-size: 1.15rem; line-height: 1.3; color: var(--midnight); }
.fund-card p { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 1.25rem; }
.fund-terms { display: grid; grid-template-columns: max-content 1fr; column-gap: 1.25rem; row-gap: 0.5rem; margin: 0; border-top: 1px solid var(--border); padding-top: 1rem; }
.fund-terms dt { color: var(--text-muted); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0; }
.fund-terms dd { color: var(--text); font-size: 0.92rem; margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- Check List ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--plum);
  border-radius: 50%;
  transform: translateY(-50%);
}

/* ---------- Form Status ---------- */
.form-status {
  min-height: 1.25rem;
  font-size: 0.9rem;
  color: var(--plum);
  margin: 0.5rem 0 0;
}
.form-status.success { color: #2f7a3d; }
.form-status.error { color: #a83a3a; }

/* ---------- On-Light Address ---------- */
.footer-address.on-light { color: var(--text); }
.footer-address.on-light .street,
.footer-address.on-light .suite,
.footer-address.on-light .city,
.footer-address.on-light .contact { color: var(--text); }

/* ---------- Stack Form ---------- */
.stack { display: flex; flex-direction: column; gap: 0.5rem; }
.stack label { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-top: 0.9rem; font-weight: 500; }
.stack label:first-of-type { margin-top: 0; }
.stack input, .stack select, .stack textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.stack input:focus, .stack select:focus, .stack textarea:focus {
  outline: none;
  border-color: var(--plum);
  box-shadow: 0 0 0 3px rgba(122, 78, 160, 0.15);
}
.stack textarea { resize: vertical; min-height: 6rem; font-family: inherit; }
.stack button[type="submit"] { margin-top: 1.25rem; align-self: flex-start; }

/* ---------- Section Variants ---------- */
section.alt { background: var(--bg-alt); }
section.dark { background: var(--midnight); color: #fff; }
section.dark h1, section.dark h2, section.dark h3, section.dark p { color: #fff; }
section.tight { padding-top: 3rem; padding-bottom: 3rem; }

/* ---------- Utilities ---------- */
.arrow { display: inline-block; transition: transform 180ms var(--ease); }
.btn:hover .arrow, a:hover .arrow { transform: translateX(4px); }

.footnote {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 0.75rem;
}

/* .lede — default on light backgrounds; page-banner overrides on dark hero */
.lede {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 48rem;
}
.page-banner .lede { color: rgba(255,255,255,0.85); }
.hero-lede { max-width: 48rem; }

/* ---------- Grid variants ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Vintage blocks (fund lineup) ---------- */
.vintage-heading {
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.35rem;
  color: var(--midnight);
  margin: 0 0 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.005em;
}
.vintage-block + .vintage-block { margin-top: 2.5rem; }

/* ---------- Tier headings within a vintage ---------- */
.tier-heading {
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-muted);
  margin: 2.25rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--border);
  letter-spacing: 0.005em;
}

/* ---------- Operations & Reserve fund card accents ---------- */
.fund-card-ops { border-left: 3px solid var(--midnight-lift); }
.fund-card-reserve { border-left: 3px solid var(--midnight); }
.fund-card-ops .rn,
.fund-card-reserve .rn {
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

/* ---------- Responsive constraints for tier sub-grids and office grid ---------- */
/* Ops/Reserve sub-grids always cap at 2 columns so 2 cards fill the row cleanly. */
.fund-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 720px) {
  .fund-grid-two { grid-template-columns: 1fr; }
}

/* Office grid on Contact page: force 2×2 on desktop even inside the narrow right column,
   so all four office cards read as a balanced tile group. */
@media (min-width: 901px) {
  .office-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
