/* Prestige Exits — design system
   Register: brand/marketing (design IS the product).
   Palette v2 (2026-07-31, per Samuel): navy offset replaces the dark browns.
   Deep navy drench for dark sections + warm cream + camel kept as the brand accent.
   Type: Libre Caslon Display (classical serif, echoes the wordmark) + Hanken Grotesk. */

:root {
  /* Brand */
  --camel:        #A9743F;   /* logo tan — now accent only */
  --camel-soft:   #C79A6B;   /* fills, hovers, accents on navy */
  --camel-tint:   #EBDDCB;   /* faint panels on cream */
  --cream:        #F7F2EA;   /* page background (warm, not stark white) */
  --cream-panel:  #FBF7F0;
  --ink:          #1C2230;   /* body text — cool near-black, ~14:1 on cream */
  --ink-soft:     #465062;   /* secondary text, still ≥4.5:1 */
  --navy:         #17273F;   /* dark sections (was espresso) */
  --navy-2:       #1E3252;
  --line:         #D9D2C4;   /* hairlines on cream */
  --line-dark:    #2F4363;   /* hairlines on navy */
  --on-dark:      #EEF2F7;   /* text on navy */
  --on-dark-soft: #A9B6CB;

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;   /* restrained; not the pill-everything look */

  --serif: "Libre Caslon Display", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Fluid type scale, ratio ~1.28 */
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.28rem, 1.2rem + 0.4vw, 1.5rem);
  --step-2:  clamp(1.64rem, 1.5rem + 0.7vw, 2.1rem);
  --step-3:  clamp(2.1rem, 1.85rem + 1.25vw, 3rem);
  --step-4:  clamp(2.7rem, 2.2rem + 2.5vw, 4.4rem);  /* hero — capped well under shouting */
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1rem; max-width: 68ch; }
a { color: inherit; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); scroll-margin-top: 90px; }
.eyebrow {
  font-family: var(--sans); font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--camel);
  margin: 0 0 1rem;
}
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); max-width: 56ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--sans); font-weight: 600; font-size: var(--step-0);
  padding: 0.85em 1.5em; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-primary { background: var(--navy); color: var(--on-dark); }
.btn-primary:hover { background: var(--camel); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--camel); color: var(--camel); }
.btn-on-dark { background: var(--camel); color: #fff; }
.btn-on-dark:hover { background: var(--camel-soft); transform: translateY(-2px); }
.link-arrow { text-decoration: none; font-weight: 600; color: var(--camel); border-bottom: 1.5px solid transparent; transition: border-color 0.2s; }
.link-arrow:hover { border-color: var(--camel); }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand .mark { width: 34px; height: 34px; flex: none; color: var(--camel); }
.brand .wordmark { display: flex; flex-direction: column; line-height: 1; }
.brand .wordmark b { font-family: var(--serif); font-weight: 400; font-size: 1.12rem; letter-spacing: 0.08em; }
.brand .wordmark small { font-family: var(--sans); font-size: 0.54rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--camel); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.nav-links a { text-decoration: none; font-weight: 500; font-size: var(--step--1); letter-spacing: 0.01em; color: var(--ink-soft); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav a.btn-primary { color: #fff; }
.nav a.btn-primary:hover { color: #fff; }
.nav .btn { padding: 0.6em 1.1em; }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.nav-toggle { display: none; }
@media (max-width: 820px) {
  .site-head .wrap { flex-wrap: wrap; padding-block: 0.55rem; min-height: 0; row-gap: 0.15rem; }
  .brand .mark { width: 26px; height: 26px; }
  .brand .wordmark b { font-size: 0.95rem; }
  .brand .wordmark small { font-size: 0.48rem; }
  .nav { flex: 1 1 100%; justify-content: space-between; gap: 0.75rem; }
  .nav-links { gap: 0.9rem; }
  .nav a { font-size: 0.8rem; white-space: nowrap; }
  .nav .btn.nav-cta { padding: 0.5em 0.85em; font-size: 0.8rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero::after { /* subtle warm vignette */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 85% 15%, rgba(255,255,255,0.14), transparent 55%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3.5rem, 9vw, 7rem); }
.hero h1 { color: #fff; max-width: 24ch; font-size: clamp(1.85rem, 1.55rem + 1.55vw, 2.9rem); line-height: 1.16; }
.hero .eyebrow { color: rgba(255,255,255,0.82); }
.hero .lead { color: rgba(255,255,255,0.9); margin-block: 1.5rem 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.hero-visual { position: relative; }
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; }
}

/* Valuation ladder (custom SVG viz) */
.ladder { width: 100%; height: auto; display: block; }
.ladder .bar { transform-box: fill-box; transform-origin: bottom; }
.ladder .bar-label { font-family: var(--sans); font-weight: 600; font-size: 13px; }
.ladder .bar-val { font-family: var(--serif); font-size: 19px; }

/* ---------- Serve ---------- */
.serve { background: var(--cream-panel); border-block: 1px solid var(--line); }
.serve-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.tag { font-size: var(--step--1); padding: 0.4em 0.85em; border: 1px solid var(--line); border-radius: 100px; color: var(--ink-soft); background: var(--cream); }
@media (max-width: 760px) { .serve-grid { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.svc {
  background: var(--cream-panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: 0.75rem;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.svc:hover { border-color: var(--camel-soft); transform: translateY(-3px); box-shadow: 0 18px 40px -28px rgba(36,26,18,0.5); }
.svc .num { font-family: var(--serif); font-size: 1.05rem; color: var(--camel); }
.svc h3 { margin-top: 0.15rem; }
.svc .tm { font-size: 0.7em; vertical-align: super; color: var(--camel); }
.svc p { color: var(--ink-soft); font-size: var(--step-0); margin: 0; }
.svc-note { margin-top: 2rem; font-size: var(--step-1); font-family: var(--serif); color: var(--ink); max-width: 46ch; }
.svc-note span { color: var(--camel); }

/* ---------- Proof / case study ---------- */
.proof { background: var(--navy); color: var(--on-dark); }
.proof .eyebrow { color: var(--camel-soft); }
.proof h2 { color: #fff; }
.proof p { color: var(--on-dark-soft); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; margin: 2.5rem 0; }
.stat { background: var(--navy-2); padding: clamp(1.4rem, 3vw, 2.2rem); }
.stat .k { font-family: var(--serif); font-size: clamp(1.8rem, 1.3rem + 2vw, 2.9rem); color: var(--camel-soft); line-height: 1; }
.stat .l { font-size: var(--step--1); color: var(--on-dark-soft); margin-top: 0.6rem; letter-spacing: 0.02em; }
.proof-line { font-family: var(--serif); font-size: var(--step-1); color: #fff; max-width: 44ch; }
@media (max-width: 620px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Five D's ---------- */
.fived .dlist { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.25rem; }
.fived .d { flex: 1 1 200px; background: var(--cream-panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.35rem; }
.fived .d b { font-family: var(--serif); font-size: var(--step-1); display: block; margin-bottom: 0.3rem; }
.fived .d span { color: var(--ink-soft); font-size: var(--step--1); }

/* ---------- Fees ---------- */
.fees { background: var(--camel-tint); border-block: 1px solid var(--line); }
.fees .wrap { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.fees h2 { max-width: 12ch; }
@media (max-width: 700px) { .fees .wrap { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta { background: var(--navy); color: var(--on-dark); text-align: center; }
.cta h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.cta p { color: var(--on-dark-soft); margin-inline: auto; }
.cta .hero-cta { justify-content: center; margin-top: 2rem; flex-direction: column; align-items: center; gap: 1.1rem; }

/* ---------- Footer ---------- */
.site-foot { background: var(--navy-2); color: var(--on-dark-soft); padding-block: clamp(2.5rem, 5vw, 4rem); }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-foot .brand { color: #fff; margin-bottom: 1rem; }
.site-foot .brand .mark { color: var(--camel-soft); }
.site-foot .brand .wordmark b { color: #fff; }
.site-foot a { color: var(--on-dark-soft); text-decoration: none; }
.site-foot a:hover { color: #fff; }
.foot-col h4 { font-family: var(--sans); font-size: var(--step--1); letter-spacing: 0.16em; text-transform: uppercase; color: var(--camel-soft); margin: 0 0 0.9rem; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.creds { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; flex-wrap: wrap; }
.creds img { height: 34px; width: auto; opacity: 0.92; filter: brightness(0) invert(1); }
.cred-text { font-size: var(--step--1); letter-spacing: 0.06em; color: var(--on-dark-soft); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 0.4em 0.7em; }
.foot-legal { border-top: 1px solid var(--line-dark); margin-top: 2.5rem; padding-top: 1.5rem; font-size: var(--step--1); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: 1fr 1fr; } .site-foot .brand-col { grid-column: 1 / -1; } }

/* ---------- Reveal animation base (progressive enhancement) ----------
   Hidden state applies ONLY when JS confirms animations can run (html.js-anim).
   No JS, no GSAP, or a stalled ticker → content is simply visible. */
.js-anim .reveal { opacity: 0; transform: translateY(18px); }

/* ---------- Inner page hero ---------- */
.page-head { background: var(--navy); color: #fff; }
.page-head .wrap { padding-block: clamp(3rem, 7vw, 5rem); }
.page-head h1 { color: #fff; max-width: 18ch; }
.page-head .lead { color: rgba(255,255,255,0.9); }

/* FAQ */
.faq-list { max-width: 800px; margin-top: 2rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--serif); font-size: var(--step-1); color: var(--ink);
  padding: 1.35rem 3rem 1.35rem 0; position: relative; }
.faq-q::after { content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 1.6rem; color: var(--camel); transition: transform 0.3s; }
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-a p { padding-bottom: 1.4rem; color: var(--ink-soft); margin: 0; }
.faq-item.open .faq-a { max-height: 1600px; }

/* Case study body */
.cs-body { max-width: 760px; }
.cs-body h2 { margin-top: 2.5rem; margin-bottom: 0.75rem; }
.cs-body ul { padding-left: 1.1rem; color: var(--ink-soft); }
.cs-body li { margin-bottom: 0.5rem; }
.cs-ladder { margin: 2.5rem 0; }
.pull { font-family: var(--serif); font-size: var(--step-2); line-height: 1.25; color: var(--camel); border-left: 3px solid var(--camel); padding-left: 1.25rem; margin: 2.5rem 0; max-width: 30ch; }
