/* ================================================================
   AJAX Capital Group — Institutional
   Cool ivory + deep navy + muted bronze · private equity real estate
   ================================================================ */

:root {
  --bg:      #eceae4;
  --bg-2:    #e3e1d9;
  --bg-3:    #d3d0c5;
  --paper:   #f4f3ee;
  --ink:     #15212e;
  --ink-2:   #2a384a;
  --ink-3:   #54626f;
  --mute:    #828d98;
  --accent:  #8c6d3b;
  --accent-2:#6f5630;
  --rule:    #c9c5bb;
  --rule-2:  #dad6cc;
  --navy:    #111d2a;

  --display: 'Fraunces', 'Times New Roman', serif;
  --sans:    'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --container: 1380px;
  --gutter: clamp(20px, 4vw, 60px);

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ---- accent themes (toggleable) ---- */
html[data-accent="slate"]  { --accent: #3f6079; --accent-2: #324d61; }
html[data-accent="ink"]    { --accent: #34465b; --accent-2: #1d2c3d; }

/* ---- topographic texture toggle ---- */
html[data-contour="off"] .contour { display: none; }

/* ---- hero photography treatment ---- */
html[data-photo="bold"] .hero__photo { opacity: 0.66; filter: grayscale(0.18) contrast(1.05); }
html[data-photo="off"]  .hero__photo { display: none; }

*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

/* mono micro-label */
.tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.tick {
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--accent);
  vertical-align: middle;
}

/* ======== NAV ======== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--rule); }
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 15px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 30px; height: 30px; display: block; }
.brand__word {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.brand__sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-left: 12px;
  margin-left: 2px;
  border-left: 1px solid var(--rule);
}
.nav__links { display: flex; gap: 34px; justify-content: center; }
.nav__links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 6px 0;
  position: relative;
  transition: color .3s var(--ease);
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .35s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after { width: 100%; }
.nav__cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.nav__cta span { transition: transform .3s var(--ease); }
.nav__cta:hover { background: var(--ink); color: var(--bg); }
.nav__cta:hover span { transform: translateX(3px); }
@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__inner { grid-template-columns: 1fr auto; gap: 14px; }
}

/* ======== HERO ======== */
.hero {
  position: relative;
  padding: 132px var(--gutter) 0;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  filter: grayscale(0.35) contrast(1.02);
  opacity: 0.52;
}
.hero__wash {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      color-mix(in oklab, var(--bg) 55%, transparent) 0%,
      color-mix(in oklab, var(--bg) 30%, transparent) 38%,
      color-mix(in oklab, var(--bg) 72%, transparent) 78%,
      var(--bg) 100%),
    linear-gradient(90deg,
      var(--bg) 0%, color-mix(in oklab, var(--bg) 40%, transparent) 34%, transparent 70%);
  pointer-events: none;
}
.contour {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  color: var(--ink-3);
  opacity: 0.14;
  z-index: -1;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: clamp(28px, 4vw, 56px) 0 0;
  min-height: calc(100vh - 132px);
  align-content: center;
}
.hero__eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 26px;
}
.hero__title {
  font-family: var(--display);
  font-size: clamp(46px, 7.6vw, 116px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  font-weight: 300;
  max-width: 16ch;
  font-variation-settings: "opsz" 144, "SOFT" 0;
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.hero__sub {
  margin-top: 28px;
  font-size: clamp(18px, 1.5vw, 23px);
  color: var(--ink-2);
  max-width: 40ch;
  line-height: 1.45;
  font-weight: 300;
}
/* vertical survey stamp */
.hero__stamp {
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.hero__stamp-rot {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 8px 0;
  border-left: 1px solid var(--rule);
  padding-left: 14px;
}
.hero__stamp-rot b { color: var(--accent); font-weight: 500; }
@media (max-width: 760px) { .hero__stamp { display: none; } }

/* hero ledger row (section index) */
.ledger {
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid var(--ink);
}
.ledger__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.ledger__cell {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 22px 20px 0;
  border-right: 1px solid var(--rule);
  position: relative;
  transition: padding-left .35s var(--ease);
}
.ledger__cell:last-child { border-right: 0; }
.ledger__cell:not(:first-child) { padding-left: 22px; }
.ledger__cell::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .4s var(--ease-out);
}
.ledger__cell:hover::before { width: 42px; }
.ledger__cell:hover { padding-left: 12px; }
.ledger__cell:first-child:hover { padding-left: 12px; }
.ledger__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.ledger__label {
  font-family: var(--display);
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 400;
}
.ledger__arrow {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-3);
  transition: transform .3s var(--ease), color .3s var(--ease);
}
.ledger__cell:hover .ledger__arrow { color: var(--accent); transform: translateY(3px); }
@media (max-width: 680px) {
  .ledger__row { grid-template-columns: 1fr; }
  .ledger__cell { border-right: 0; border-bottom: 1px solid var(--rule); padding-left: 0 !important; }
  .ledger__cell:last-child { border-bottom: 0; }
}

/* ======== SECTION SCAFFOLD ======== */
.section { padding: clamp(64px, 8vw, 118px) 0; }
.section--tight { padding-top: clamp(48px, 6vw, 84px); }
#firm { padding-top: clamp(44px, 5vw, 72px); }
.s-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: start;
  padding-bottom: clamp(36px, 4.5vw, 64px);
}
.s-head__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-top: 1px solid var(--ink);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.s-head__num { color: var(--accent); }
.s-head__title {
  font-family: var(--display);
  font-size: clamp(34px, 4.8vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 300;
  max-width: 20ch;
  font-variation-settings: "opsz" 120, "SOFT" 0;
}
.s-head__title em { font-style: italic; font-weight: 400; color: var(--accent); }
.s-head__lede {
  grid-column: 2;
  margin-top: 22px;
  font-size: clamp(17px, 1.35vw, 21px);
  color: var(--ink-2);
  max-width: 56ch;
  line-height: 1.5;
  font-weight: 300;
}
@media (max-width: 820px) {
  .s-head { grid-template-columns: 1fr; gap: 16px; }
  .s-head__lede { grid-column: 1; }
}

/* ======== FIRM ======== */
.firm__split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(36px, 5vw, 86px);
  align-items: start;
}
@media (max-width: 820px) { .firm__split { grid-template-columns: 1fr; } }
.firm__lede {
  font-family: var(--display);
  font-size: clamp(21px, 2vw, 30px);
  line-height: 1.32;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: pretty;
}
.firm__lede b { color: var(--accent); font-weight: 400; font-style: italic; }
.firm__body {
  font-size: clamp(15px, 1.1vw, 17px);
  color: var(--ink-2);
  line-height: 1.7;
  text-wrap: pretty;
  padding-top: 6px;
}
/* pillars band */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  margin-top: clamp(48px, 6vw, 88px);
}
@media (max-width: 880px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  padding: 26px 24px 30px 0;
  border-right: 1px solid var(--rule);
  position: relative;
}
.pillar:last-child { border-right: 0; }
.pillar:not(:first-child) { padding-left: 24px; }
@media (max-width: 880px) {
  .pillar:nth-child(2n) { border-right: 0; }
  .pillar { border-bottom: 1px solid var(--rule); }
}
.pillar__num {
  font-family: var(--display);
  font-size: clamp(40px, 4vw, 58px);
  line-height: 1;
  font-weight: 300;
  color: var(--bg-3);
  font-variation-settings: "opsz" 100, "SOFT" 0;
  transition: color .4s var(--ease);
  margin-bottom: 18px;
}
.pillar:hover .pillar__num { color: var(--accent); }
.pillar h3 {
  font-family: var(--display);
  font-size: clamp(18px, 1.4vw, 21px);
  font-weight: 400;
  line-height: 1.18;
  margin-bottom: 9px;
  letter-spacing: -0.005em;
}
.pillar p { font-size: 14px; color: var(--ink-3); line-height: 1.55; }
.pillar__bar {
  position: absolute; top: -1px; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width .5s var(--ease-out);
}
.pillar.is-visible .pillar__bar { width: 38px; }

/* ======== STRATEGY (interactive selector) ======== */
.strat {
  display: grid;
  grid-template-columns: 358px 1fr;
  border-top: 1px solid var(--ink);
}
@media (max-width: 820px) { .strat { grid-template-columns: 1fr; } }
.strat__rail { display: flex; flex-direction: column; border-right: 1px solid var(--rule); }
@media (max-width: 820px) {
  .strat__rail { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--rule); overflow-x: auto; }
}
.strat__tab {
  appearance: none; background: transparent; border: 0;
  border-bottom: 1px solid var(--rule); text-align: left;
  font-family: inherit; color: var(--ink-3);
  padding: 26px 26px 26px 22px; cursor: pointer;
  position: relative; display: grid;
  grid-template-columns: 1fr auto; align-items: baseline; gap: 5px 12px;
  transition: color .35s var(--ease), background .35s var(--ease), padding-left .35s var(--ease);
}
.strat__tab:last-child { border-bottom: 0; }
@media (max-width: 820px) {
  .strat__tab { border-bottom: 0; border-right: 1px solid var(--rule); min-width: 210px; flex: 1 0 auto; }
}
.strat__tab::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--accent);
  transform: scaleY(0); transform-origin: top;
  transition: transform .4s var(--ease-out);
}
.strat__tab:hover { color: var(--ink); }
.strat__tab.is-active { color: var(--ink); background: var(--paper); padding-left: 28px; }
.strat__tab.is-active::before { transform: scaleY(1); }
.strat__tab-ey {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--accent); grid-column: 1;
}
.strat__tab-name {
  font-family: var(--display); font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 400; line-height: 1.05; grid-column: 1; letter-spacing: -0.01em;
}
.strat__tab-idx {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  color: var(--mute); grid-column: 2; grid-row: 1 / span 2; align-self: center;
}
.strat__stage {
  position: relative;
  padding: clamp(34px, 4vw, 62px) clamp(28px, 4vw, 62px);
  display: flex; min-height: 380px;
}
.strat__panel { display: none; flex-direction: column; width: 100%; }
.strat__panel.is-active { display: flex; animation: stratIn .5s var(--ease-out) both; }
@keyframes stratIn { from { transform: translateY(12px); } to { transform: none; } }
.strat__chev { width: 30px; height: 25px; color: var(--accent); margin-bottom: 30px; }
.strat__title {
  font-family: var(--display); font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.0; letter-spacing: -0.02em; font-weight: 300;
  margin-bottom: 22px; font-variation-settings: "opsz" 120, "SOFT" 0;
}
.strat__body {
  font-size: clamp(16px, 1.3vw, 20px); color: var(--ink-2);
  line-height: 1.6; max-width: 48ch; font-weight: 300; text-wrap: pretty;
}

/* ======== APPROACH (stepped) ======== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 56px; left: 0; right: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 9px);
}
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
}
.step {
  padding: 26px 26px 40px 0;
  border-right: 1px solid var(--rule);
  position: relative;
  transition: padding-left .35s var(--ease);
}
.step:last-child { border-right: 0; }
.step:not(:first-child) { padding-left: 26px; }
@media (max-width: 820px) {
  .step { border-right: 0; border-bottom: 1px solid var(--rule); padding: 22px 0; }
  .step:last-child { border-bottom: 0; }
}
.step__rom {
  font-family: var(--display);
  font-size: clamp(34px, 3.4vw, 50px);
  line-height: 1;
  font-weight: 300;
  color: var(--accent);
  position: relative;
  display: inline-block;
  background: var(--bg);
  padding-right: 14px;
  margin-bottom: 22px;
  font-variation-settings: "opsz" 100;
}
.step h3 {
  font-family: var(--display);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 300;
  margin-bottom: 12px;
}
.step p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }

/* ======== FOOTER ======== */
.footer {
  background: var(--navy);
  color: color-mix(in oklab, var(--bg) 78%, transparent);
  padding: clamp(48px, 6vw, 80px) 0 40px;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid color-mix(in oklab, var(--bg) 20%, transparent);
}
.footer__word {
  display: flex; align-items: center; gap: 16px;
}
.footer__word img { width: 40px; }
.footer__word span {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 300;
  color: var(--bg);
  letter-spacing: 0.02em;
}
.footer__links { display: flex; gap: 26px; }
.footer__links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color .3s var(--ease);
}
.footer__links a:hover { color: var(--accent); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 24px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--bg) 50%, transparent);
}
.footer__cta {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in oklab, var(--accent) 50%, transparent);
  padding-bottom: 2px;
  transition: border-color .3s var(--ease);
}
.footer__cta:hover { border-color: var(--accent); }

/* ======== REVEAL ======== */
.reveal { opacity: 1; transform: none; }
.reveal--armed { opacity: 0; transform: translateY(20px); }
.reveal--armed.is-visible {
  animation: revealIn .85s var(--ease-out) both;
  animation-delay: calc(var(--d, 0) * 90ms);
}
@keyframes revealIn { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .reveal--armed { opacity: 1; transform: none; }
  .reveal--armed.is-visible { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---- extracted from inline style attributes, so the Content-Security-Policy
       can forbid inline styles entirely ---- */
.section--alt { background: var(--bg-2); }
.footer__mark { width: 40px; height: 40px; display: block; }
.hero__bg picture { display: block; width: 100%; height: 100%; }

