/* Spivak Asset Management — palette drawn from the logo */

:root {
  --navy: #00304f;
  --navy-deep: #00253d;
  --steel: #00578a;
  --mist: #adbfc6;
  --ink: #14222e;
  --muted: #5f6b75;
  --line: #e4e2dc;
  --paper: #f6f4ef;
  --white: #ffffff;
  --shade: 0, 32, 52;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s, background-color .2s, border-color .2s; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--navy); line-height: 1.1; }
h2 { font-size: 44px; }
h3 { font-size: 24px; font-weight: 600; }

.list-title {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  border-radius: 2px;
}
.btn:hover { background: var(--steel); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--mist); }

.link { font-size: 15px; font-weight: 500; }

/* Header: transparent over the hero, solid after scrolling */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  height: var(--header-h);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background-color .35s, border-color .35s;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 40px; width: auto; }
.logo-light { display: none; }

.nav { display: flex; gap: 36px; }
.nav a { font-size: 14px; font-weight: 500; color: var(--muted); }
.nav a:hover { color: var(--navy); }

.js .header.over { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.js .header.over .logo-light { display: block; }
.js .header.over .logo-dark { display: none; }
.js .header.over .nav a { color: rgba(255, 255, 255, .82); }
.js .header.over .nav a:hover { color: var(--white); }
.js .header.over .menu-btn span { background: var(--white); }

.menu-btn { display: none; width: 40px; height: 40px; position: relative; }
.menu-btn span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--navy);
  transition: transform .2s;
}
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 23px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Hero */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: min(100svh, 980px);
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--white);
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 55% 50%;
  animation: settle 14s ease-out both;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(var(--shade), .55) 0, rgba(var(--shade), 0) 180px),
    linear-gradient(90deg, rgba(var(--shade), .88) 0%, rgba(var(--shade), .55) 48%, rgba(var(--shade), .12) 100%),
    linear-gradient(0deg, rgba(var(--shade), .55) 0%, rgba(var(--shade), 0) 55%);
}
.hero-content { position: relative; z-index: 1; width: 100%; padding-top: calc(var(--header-h) + 96px); padding-bottom: 120px; }
.hero h1 { color: var(--white); font-size: clamp(46px, 7.2vw, 96px); line-height: 1.02; letter-spacing: -.01em; max-width: 9.2em; }
.hero-meta { margin-top: 28px; font-size: 15px; color: rgba(255, 255, 255, .75); letter-spacing: .02em; }
.hero-actions { margin-top: 44px; display: flex; align-items: center; gap: 32px; }
.hero .link:hover { color: var(--mist); }

.hero-content > * { animation: rise 1s ease-out both; }
.hero-content > :nth-child(2) { animation-delay: .15s; }
.hero-content > :nth-child(3) { animation-delay: .3s; }

@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Sections */

.section { padding: 128px 0; }
.tint { background: var(--paper); }
.rule { border-top: 1px solid var(--line); }

.split { display: grid; grid-template-columns: 240px 1fr; gap: 64px; }

/* Approach */

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 64px; }
.pillars li { border-top: 1px solid var(--line); padding-top: 24px; }
.num { display: block; margin-bottom: 32px; font-family: var(--serif); font-size: 48px; line-height: 1; color: var(--steel); font-variant-numeric: lining-nums; }
.pillars p { margin-top: 10px; color: var(--muted); }

/* Philosophy */

.dark { background: var(--navy); color: rgba(255, 255, 255, .78); }
.dark h2, .dark h3 { color: var(--white); }

.philosophy-head { position: sticky; top: calc(var(--header-h) + 48px); align-self: start; }
.philosophy { display: grid; gap: 48px; max-width: 640px; }
.philosophy > div { border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 24px; }
.philosophy p { margin-top: 12px; font-size: 17px; }

/* The three squares from the logo */
.squares { position: relative; width: 140px; height: 215px; margin-top: 56px; }
.squares span { position: absolute; }
.squares span:nth-child(1) { left: 2%; top: 0; width: 89%; height: 52%; background: var(--mist); }
.squares span:nth-child(2) { left: 29%; top: 25%; width: 71%; height: 36%; background: var(--navy-deep); }
.squares span:nth-child(3) { left: 0; top: 59%; width: 75%; height: 41%; background: var(--steel); }

/* About */

.about { display: grid; grid-template-columns: 320px 1fr; gap: 72px; align-items: start; }
.portrait-frame { position: relative; isolation: isolate; padding: 28px; }
.portrait-frame::before,
.portrait-frame::after { content: ''; position: absolute; z-index: -1; }
.portrait-frame::before { top: 0; right: 0; width: 62%; height: 46%; background: var(--mist); }
.portrait-frame::after { bottom: 0; left: 0; width: 52%; height: 34%; background: var(--steel); }
.portrait { width: 100%; aspect-ratio: 589 / 832; object-fit: cover; }

.about h2 { font-size: 52px; }
.role { margin-top: 8px; color: var(--muted); }
.about .list-title { margin: 48px 0 8px; }

.rows li {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 7.5em;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.rows li span:first-child { font-weight: 500; }
.rows li span:not(:first-child) { color: var(--muted); }
.rows li span:nth-child(3) { text-align: right; font-variant-numeric: tabular-nums; }
.rows li span:nth-child(2):last-child { grid-column: 2 / -1; }

/* Quotes: Heublein Tower photo beside the quote */

.quotes { display: grid; grid-template-columns: 1fr 1fr; min-height: 680px; background: var(--navy); color: var(--white); }
.quotes-photo { position: relative; overflow: hidden; }
.quotes-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; filter: saturate(.85); }
.quotes-inner { display: flex; flex-direction: column; justify-content: center; max-width: 640px; padding: 112px 72px; }

.quote-mark { display: block; height: 56px; font-family: var(--serif); font-size: 128px; line-height: 1; color: var(--mist); }
.quote-list { display: grid; gap: 64px; margin-top: 16px; }
.quote-list blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(26px, 2.5vw, 36px);
  line-height: 1.28;
  text-wrap: pretty;
}
.quote-list cite {
  display: block;
  margin-top: 28px;
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}

/* With JS: one quote at a time, stacked so the height never jumps */
.js .quote-list li { grid-area: 1 / 1; align-self: center; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.js .quote-list li.active { opacity: 1; visibility: visible; }

.quote-nav { margin-top: 48px; display: flex; align-items: center; gap: 20px; }
.quote-nav button {
  width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%;
  transition: border-color .2s, background-color .2s;
}
.quote-nav button:hover { border-color: var(--white); background: rgba(255, 255, 255, .12); }
.count { min-width: 4em; font-size: 13px; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }

/* Client login */

.links { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.links .list-title { margin-bottom: 8px; }
.links a {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px; font-weight: 500;
}
.links a img { width: 32px; height: 32px; border-radius: 6px; }
.links a span { margin-left: auto; color: var(--muted); transition: transform .2s, color .2s; }
.links a:hover { color: var(--steel); }
.links a:hover span { color: var(--steel); transform: translate(2px, -2px); }

/* Form CRS */

.crs { display: grid; gap: 24px; justify-items: start; align-content: start; }
.crs > p:first-child { font-size: 18px; }
.crs-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; }
.crs-links a { color: var(--muted); }
.crs-links a:hover { color: var(--navy); }

/* Contact */

.contact { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: start; }
.contact address { display: grid; gap: 20px; font-style: normal; font-size: 18px; }
.contact address a:hover { color: var(--steel); }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 2px; filter: grayscale(.85); }

/* Footer */

.footer { background: var(--navy-deep); color: rgba(255, 255, 255, .6); padding: 64px 0 48px; font-size: 13px; }
.footer-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-logo { height: 30px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; }
.footer-links a { color: rgba(255, 255, 255, .8); }
.footer-links a:hover { color: var(--white); }
.disclaimer { margin-top: 32px; max-width: 80ch; line-height: 1.7; }
.copyright { margin-top: 16px; }

/* Fade in on scroll */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.pillars li:nth-child(2) { transition-delay: .1s; }
.pillars li:nth-child(3) { transition-delay: .2s; }
.pillars li:nth-child(4) { transition-delay: .3s; }

/* Tablet */

@media (max-width: 960px) {
  .split, .about { grid-template-columns: 1fr; gap: 40px; }
  .philosophy-head { position: static; }
  .squares { display: none; }
  .pillars { grid-template-columns: 1fr 1fr; gap: 48px 40px; }
  .pillars li { transition-delay: 0s; }
  .about .portrait-frame { max-width: 360px; }
  .contact { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; min-height: 0; }
  .quotes-photo { height: 420px; }
  .quotes-inner { max-width: none; padding: 80px 32px 96px; }
}

/* Mobile */

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .wrap { padding: 0 20px; }
  .logo img { height: 32px; }

  .menu-btn { display: block; margin-right: -8px; }
  .nav {
    display: none;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: 8px 20px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; font-size: 16px; color: var(--ink); }

  .hero { min-height: 92vh; min-height: min(92svh, 820px); }
  .hero-content { padding-bottom: 72px; }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(var(--shade), .5) 0, rgba(var(--shade), 0) 140px),
      linear-gradient(0deg, rgba(var(--shade), .9) 0%, rgba(var(--shade), .45) 60%, rgba(var(--shade), .25) 100%);
  }
  .hero-meta { margin-top: 24px; }
  .hero-actions { margin-top: 36px; gap: 24px; }

  .section { padding: 80px 0; }
  .quotes-photo { height: 320px; }
  .quotes-inner { padding: 64px 20px 80px; }
  h2 { font-size: 36px; }
  .about h2 { font-size: 42px; }
  .num { font-size: 40px; margin-bottom: 20px; }

  .pillars, .links { grid-template-columns: 1fr; gap: 32px; }
  .pillars { margin-top: 40px; }
  .links { gap: 40px; }
  .portrait-frame { padding: 20px; }

  .rows li { grid-template-columns: 1fr auto; gap: 2px 16px; }
  .rows li span:first-child,
  .rows li span:nth-child(2):last-child { grid-column: 1 / -1; }

  .contact address { font-size: 17px; }
}

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