/* Palladian Asset Management — shared stylesheet
   Institutional / quiet-money aesthetic. Dark, restrained, sans-serif. */

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

/* ---------- Tokens ---------- */
:root {
  --bg: #B9D1D5;
  --bg-elev: #F2E5BC;
  --bg-card: #E9DAA8;
  --line: rgba(18, 22, 22, 0.08);
  --line-2: rgba(18, 22, 22, 0.14);
  --text: #121616;
  --text-2: rgba(18, 22, 22, 0.62);
  --text-3: rgba(18, 22, 22, 0.40);
  --text-4: rgba(18, 22, 22, 0.22);
  --accent: #4C211B;

  --ff-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --ff-sans: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ff-mono: "DM Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --max-w: 1440px;
  --gutter: clamp(20px, 4vw, 64px);

  --section-pad: clamp(64px, 9vw, 140px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in: cubic-bezier(0.6, 0, 0.8, 0.2);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1;
}
.eyebrow .dot { color: var(--text-4); margin: 0 0.5em; }

.display {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(52px, 7.5vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}
.display .muted { color: var(--text-3); }

.h-section {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
}

.h-3 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.15;
  letter-spacing: 0;
  margin: 0;
}

.body, p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0;
  text-wrap: pretty;
}
.body--lg { font-size: 19px; line-height: 1.55; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-pad);
  position: relative;
}
.section--tight { padding-block: clamp(64px, 9vw, 128px); }

.rule {
  height: 1px;
  background: var(--line);
  width: 100%;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px var(--gutter) 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: #121616;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(18, 22, 22, 0.95);
  border-bottom-color: rgba(249, 247, 241, 0.08);
}
.site-header .brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.site-header .brand-mark {
  height: 40px;
  width: auto;
}
.site-header .brand-name {
  font-family: var(--ff-mono);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}

/* Nav inline row */
.site-nav {
  display: flex;
  align-items: center;
  gap: 48px;
}
.site-nav a {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  transition: color 0.2s var(--ease);
}
.site-nav a:hover { color: var(--text-2); }
.site-nav a.is-active { color: var(--text); }
.nav-toggle { display: none; }

/* ---------- Dark sections (header + footer stay dark on light body) ---------- */
.site-header,
.site-footer {
  --bg: #121616;
  --bg-elev: #181e1e;
  --text: #B9D1D5;
  --text-2: rgba(185, 209, 213, 0.62);
  --text-3: rgba(185, 209, 213, 0.40);
  --text-4: rgba(185, 209, 213, 0.22);
  --line: rgba(185, 209, 213, 0.08);
  --line-2: rgba(185, 209, 213, 0.14);
  color: var(--text);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  font-size: 14px;
  letter-spacing: 0.02em;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  cursor: pointer;
}
.btn:hover { background: var(--accent); color: #F9F7F1; border-color: var(--accent); }
.btn .arrow {
  width: 14px; height: 14px;
  transition: transform 0.25s var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }

.btn--ghost {
  border-color: transparent;
  padding-inline: 0;
}
.btn--ghost:hover { background: transparent; color: var(--text); }
.btn--ghost::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--text);
  width: 100%;
  margin-top: 2px;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }

/* Hero headline staggered word reveal */
.headline-words {
  display: inline;
}
.headline-words .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.05em;
}
.headline-words .word-inner {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 1.1s var(--ease), opacity 0.9s var(--ease);
}
.headline-words.is-in .word-inner {
  transform: translateY(0);
  opacity: 1;
}
.headline-words .word:nth-child(1) .word-inner { transition-delay: 0.05s; }
.headline-words .word:nth-child(2) .word-inner { transition-delay: 0.12s; }
.headline-words .word:nth-child(3) .word-inner { transition-delay: 0.19s; }
.headline-words .word:nth-child(4) .word-inner { transition-delay: 0.26s; }
.headline-words .word:nth-child(5) .word-inner { transition-delay: 0.33s; }
.headline-words .word:nth-child(6) .word-inner { transition-delay: 0.40s; }
.headline-words .word:nth-child(7) .word-inner { transition-delay: 0.47s; }
.headline-words .word:nth-child(8) .word-inner { transition-delay: 0.54s; }
.headline-words .word:nth-child(9) .word-inner { transition-delay: 0.61s; }
.headline-words .word:nth-child(10) .word-inner { transition-delay: 0.68s; }
.headline-words .word:nth-child(11) .word-inner { transition-delay: 0.75s; }

/* ---------- Splash screen ---------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #121616;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease-out;
}
.splash-logo {
  width: clamp(200px, 28vw, 380px);
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}
.splash.is-zooming .splash-logo {
  animation: splash-zoom 1.6s cubic-bezier(0.4, 0, 1, 1) forwards;
}
@keyframes splash-zoom {
  0%   { transform: scale(1);  opacity: 1; }
  55%  { opacity: 1; }
  100% { transform: scale(18); opacity: 0; }
}
.splash.is-fading {
  opacity: 0;
  pointer-events: none;
}
.splash.is-removed { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 96px var(--gutter) 40px;
}
.site-footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--line);
}
.footer-brand .footer-logo {
  width: 180px;
  height: auto;
  display: block;
  margin-bottom: 24px;
  opacity: 0.85;
}
.footer-brand p { max-width: 340px; font-size: 15px; }
.footer-col h4 {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 400;
  margin: 0 0 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 15px; color: var(--text-2); transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--text); }

.site-footer-bottom {
  max-width: var(--max-w);
  margin: 32px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-3);
}

.site-footer-disclaimer {
  max-width: var(--max-w);
  margin: 32px auto 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-3);
}

@media (max-width: 860px) {
  .site-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}
@media (max-width: 520px) {
  .site-footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  position: relative;
  max-width: 100%;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/rotunda.jpg');
  background-size: cover;
  background-position: center top;
  filter: grayscale(100%);
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 6, 0.48);
  z-index: 1;
}
.hero-top {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(40px, 5.5vw, 72px);
  padding-block: clamp(40px, 8vw, 96px);
}
.hero .eyebrow,
.hero .eyebrow .dot,
.hero h1,
.hero-meta p,
.hero-meta .btn {
  color: #F9F7F1;
}
.hero-meta .btn {
  border-color: rgba(249, 247, 241, 0.35);
}
.hero-meta .btn:hover {
  background: #F9F7F1;
  color: #121616;
  border-color: #F9F7F1;
}
.hero-headline-block {
  max-width: 100%;
}
.hero-headline-block .eyebrow {
  margin-bottom: 28px;
}
.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-bottom: 8px;
  max-width: 480px;
}
.hero-meta p { max-width: 380px; font-size: 17px; }
.hero-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 28px);
  aspect-ratio: 16 / 7;
}
.hero-image {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
}
.hero-image image-slot {
  width: 100%;
  height: 100%;
}
.hero-image .img-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 860px) {
  .hero-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-images { aspect-ratio: 4 / 3; }
}

/* ---------- Image strips ---------- */
.img-strip {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.img-strip img {
  width: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(20%);
  transition: transform 0.8s var(--ease);
}
.img-strip--wide img  { height: clamp(180px, 30vw, 480px); }
.img-strip--medium img { height: clamp(220px, 38vw, 560px); }
.img-strip:hover img { transform: scale(1.02); }

/* ---------- Page hero (image behind text) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  border-bottom: 1px solid rgba(249,247,241,0.12);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,13,13,0.25) 0%, rgba(10,13,13,0.6) 45%, rgba(10,13,13,0.88) 100%);
}
.page-hero-content {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  z-index: 1;
  padding: 0 var(--gutter) clamp(56px, 8vw, 100px);
  max-width: var(--max-w);
  margin: 0 auto;
}
.page-hero-content h1 {
  color: #B9D1D5;
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(52px, 7.5vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 16ch;
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
}
.page-hero-content .lede {
  color: rgba(185,209,213,0.85);
  margin-top: 28px;
  max-width: 560px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}

/* ---------- Page header (subpages) ---------- */
.page-header {
  padding-top: 200px;
  padding-bottom: clamp(64px, 10vw, 140px);
  border-bottom: 1px solid var(--line);
}
.page-header .eyebrow { margin-bottom: 24px; }
.page-header h1 {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(52px, 7.5vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 16ch;
}
.page-header .lede {
  margin-top: 32px;
  max-width: 580px;
  font-size: 19px;
}

/* ---------- Two-column section helper ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Forms ---------- */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 28px;
}
.form .full { grid-column: 1 / -1; }
.field {
  display: flex;
  flex-direction: column;
  position: relative;
}
.field label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}
.field input,
.field textarea,
.field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  padding: 10px 0 14px;
  font-size: 17px;
  color: var(--text);
  outline: none;
  transition: border-color 0.25s var(--ease);
  width: 100%;
  font-family: var(--ff-sans);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-bottom-color: var(--text);
}
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; cursor: pointer; }
.field .select-wrap { position: relative; }
.field .select-wrap::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 8px; height: 8px;
  border-right: 1px solid var(--text-2);
  border-bottom: 1px solid var(--text-2);
  transform: translateY(-75%) rotate(45deg);
  pointer-events: none;
}
.form-submit-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 8px;
}
.form-submit-row p { font-size: 13px; color: var(--text-3); max-width: 360px; }

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

/* ---------- Generic card list (services, blog, awards) ---------- */
.list-row {
  display: grid;
  grid-template-columns: 1.5fr 2fr auto;
  gap: 40px;
  align-items: center;
  padding: 36px 24px;
  border-top: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}
.list-row:last-child { border-bottom: 1px solid var(--line); }
.list-row .num {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
}
.list-row .title {
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.list-row .desc { color: var(--text-2); font-size: 16px; }
.list-row .cta {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color 0.2s var(--ease);
}
.list-row:hover { background: rgba(140, 61, 69, 0.04); }
.list-row:hover .cta { color: var(--accent); }
@media (max-width: 720px) {
  .list-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 28px 20px;
  }
  .list-row .cta { margin-top: 12px; }
}

/* ---------- Stat row ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 56px 32px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat .num {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(52px, 5.5vw, 80px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat .num .unit { color: var(--text-3); font-weight: 400; }
.stat .label {
  margin-top: 18px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
@media (max-width: 720px) {
  .stat-row {
    grid-template-columns: 1fr 1fr;
  }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .stat { padding: 36px 20px; }
}

/* ---------- Values ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.value {
  padding: 56px 0;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: baseline;
}
.value:nth-child(odd) { padding-right: 48px; }
.value:nth-child(even) { padding-left: 48px; }
.value .num {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-3);
  text-transform: uppercase;
}
.value h3 {
  font-size: 26px;
  font-weight: 500;
  margin: 0 0 12px;
  letter-spacing: -0.015em;
}
.value p { font-size: 16px; }
@media (max-width: 860px) {
  .values-grid { grid-template-columns: 1fr; }
  .value:nth-child(odd) { padding-right: 0; border-right: 0; }
  .value:nth-child(even) { padding-left: 0; }
}

/* ---------- CTA banner ---------- */
.cta-banner {
  padding-block: clamp(96px, 14vw, 180px);
  border-top: 1px solid var(--line);
}
.cta-banner h2 {
  font-size: clamp(40px, 6.4vw, 88px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 40px;
  max-width: 16ch;
}

/* ---------- Utility ---------- */
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 48px; }
.mt-xl { margin-top: 96px; }
