/* =========================================================================
   ACCLIVIS LEGAL — DESIGN SYSTEM
   Navy / Off-white / Refined Gold — editorial, partner-led, premium.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. FONT FACES
   Trajan Pro 3 (display) and Rustica Medium (secondary) are the licensed
   brand faces. Local @font-face declarations are wired up and ready — drop
   the licensed files into /assets/fonts/ using the filenames below and
   they will be used automatically. Until then, Cinzel (an inscriptional
   capitals serif in the same family as Trajan) and Jost (a clean geometric
   sans in the spirit of Rustica) are loaded as faithful fallbacks.
   ------------------------------------------------------------------------- */

@font-face {
  font-family: 'Trajan Pro 3';
  src: url('../fonts/TrajanPro3-Regular.woff2') format('woff2'),
       url('../fonts/TrajanPro3-Regular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Trajan Pro 3';
  src: url('../fonts/TrajanPro3-Bold.woff2') format('woff2'),
       url('../fonts/TrajanPro3-Bold.woff') format('woff');
  font-weight: 600;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Rustica Medium';
  src: url('../fonts/RusticaMedium.woff2') format('woff2'),
       url('../fonts/RusticaMedium.woff') format('woff');
  font-weight: 500;
  font-display: swap;
  font-style: normal;
}

/* -------------------------------------------------------------------------
   2. DESIGN TOKENS
   ------------------------------------------------------------------------- */

:root {
  /* Brand colour */
  --navy: #02294f;
  --navy-deep: #01192f;
  --navy-soft: #0c3a68;
  --gold-1: #a2790d;
  --gold-2: #b48811;
  --gold-3: #bb9b49;
  --gold-gradient: linear-gradient(135deg, #a2790d 0%, #b48811 50%, #bb9b49 100%);

  --white: #ffffff;
  --off-white: #f7f6f2;
  --off-white-deep: #efece3;
  --text: #1b2430;
  --text-muted: #57616f;
  --text-on-navy: #eef1f5;
  --text-on-navy-muted: #a9b7c8;
  --line: #e2ded2;
  --line-on-navy: rgba(255, 255, 255, 0.14);

  /* Type */
  --font-display: 'Trajan Pro 3', 'Cinzel', 'Times New Roman', serif;
  --font-heading: 'Cormorant Garamond', 'Trajan Pro 3', Georgia, serif;
  --font-body: 'Rustica Medium', 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container-max: 1240px;
  --container-pad: clamp(20px, 5vw, 64px);
  --section-pad-y: clamp(64px, 10vw, 128px);
  --radius-sm: 2px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------------------------------------------------------------
   3. RESET
   ------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, textarea, select { font: inherit; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
}

::selection { background: var(--gold-3); color: var(--navy-deep); }

:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
}

/* -------------------------------------------------------------------------
   4. TYPE SCALE
   ------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold-2);
  display: inline-block;
}

.eyebrow--center { justify-content: center; }
.eyebrow--on-navy { color: var(--gold-3); }

h1, .h1 {
  font-size: clamp(2.4rem, 4.6vw, 4.4rem);
}

h2, .h2 {
  font-size: clamp(1.9rem, 3.2vw, 3rem);
}

h3, .h3 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

h4, .h4 {
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

p { color: var(--text-muted); }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 56ch;
}

.on-navy { color: var(--text-on-navy); }
.on-navy p, .on-navy .lede { color: var(--text-on-navy-muted); }
.on-navy h1, .on-navy h2, .on-navy h3, .on-navy h4 { color: var(--white); }

/* Brand wordmark treatment — used sparingly for standalone text lockups */
.brand-word {
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tagline {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

/* -------------------------------------------------------------------------
   5. LAYOUT PRIMITIVES
   ------------------------------------------------------------------------- */

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--section-pad-y);
}

.section--navy { background: var(--navy); }
.section--off-white { background: var(--off-white); }
.section--white { background: var(--white); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-head--center { margin-inline: auto; text-align: center; }

.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 18px; }

.divider {
  height: 1px;
  background: var(--line);
  border: none;
}

.divider--on-navy { background: var(--line-on-navy); }

.gold-rule {
  width: 64px;
  height: 2px;
  background: var(--gold-gradient);
  border: none;
}

/* Signature ascent motif — a rising diagonal line echoing the Acclivis
   logomark. Used as a recurring structural device rather than decoration. */
.ascent-line {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

/* -------------------------------------------------------------------------
   6. BUTTONS
   ------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: background var(--ease) 0.25s, color var(--ease) 0.25s, border-color var(--ease) 0.25s, transform var(--ease) 0.25s;
  white-space: nowrap;
}

.btn svg { width: 14px; height: 14px; flex-shrink: 0; transition: transform var(--ease) 0.25s; }

.btn-primary {
  background: var(--gold-gradient);
  color: var(--navy-deep);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.06); }

.btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-outline-navy {
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

.btn-text {
  padding: 0;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--gold-2);
  border-radius: 0;
  padding-bottom: 3px;
}
.btn-text:hover svg { transform: translateX(4px); }
.btn-text.on-navy { color: var(--white); }

.btn:hover svg { transform: translateX(3px); }

/* -------------------------------------------------------------------------
   7. NAVIGATION
   ------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 200;
  padding-block: 22px;
  transition: background var(--ease) 0.35s, padding var(--ease) 0.35s, box-shadow var(--ease) 0.35s;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header.is-scrolled,
.site-header.is-solid {
  background: var(--navy);
  padding-block: 14px;
  box-shadow: 0 8px 30px rgba(1, 15, 30, 0.18);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo img {
  height: 54px;
  width: auto;
  transition: height var(--ease) 0.35s;
}

.site-header.is-scrolled .brand-logo img,
.site-header.is-solid .brand-logo img { height: 44px; }

.main-nav { display: flex; align-items: center; gap: 40px; }

.nav-links { display: flex; align-items: center; gap: 34px; }

.nav-links a {
  position: relative;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  padding-bottom: 6px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold-gradient);
  transition: width var(--ease) 0.3s;
}

.nav-links a:hover::after,
.nav-links a.is-active::after { width: 100%; }

.nav-links a.is-active { color: var(--gold-3); }

.nav-cta { display: flex; align-items: center; gap: 24px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  z-index: 200;
}
.nav-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: transform var(--ease) 0.3s, opacity var(--ease) 0.3s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* -------------------------------------------------------------------------
   8. HERO
   ------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
  padding-top: 140px;
  padding-bottom: 100px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(180deg, rgba(1,17,33,0.55) 0%, rgba(1,17,33,0.35) 45%, rgba(1,25,47,0.88) 100%),
    linear-gradient(90deg, rgba(1,15,29,0.78) 0%, rgba(2,26,50,0.4) 55%, rgba(2,26,50,0.15) 100%),
    var(--hero-image, none);
  background-size: cover;
  background-position: center;
}

.hero-ascent {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 760px;
}

.hero-copy .eyebrow { margin-bottom: 22px; }

.hero-copy h1 {
  color: var(--white);
  margin-bottom: 26px;
}

.hero-copy h1 em {
  font-style: normal;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy .lede {
  color: var(--text-on-navy-muted);
  margin-bottom: 40px;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* -------------------------------------------------------------------------
   9. INNER PAGE HERO (Team / Capabilities / About)
   ------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  background: var(--navy);
  padding-top: clamp(150px, 20vw, 220px);
  padding-bottom: clamp(70px, 10vw, 110px);
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 800px 500px at 90% 0%, rgba(180, 136, 17, 0.14), transparent 60%),
    linear-gradient(200deg, #01192f 0%, #02294f 60%);
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 { color: var(--white); margin-top: 16px; max-width: 16ch; }
.page-hero .lede { margin-top: 22px; }

.page-hero-foot {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line-on-navy);
}

.page-hero-foot div span { display: block; }
.page-hero-foot .stat-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--gold-3);
}
.page-hero-foot .stat-label {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-navy-muted);
  margin-top: 4px;
}

.page-hero--compact {
  padding-top: clamp(120px, 16vw, 170px);
  padding-bottom: clamp(48px, 6vw, 64px);
}

.breadcrumb-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-on-navy-muted);
  margin-bottom: 24px;
  transition: color var(--ease) 0.2s;
}
.breadcrumb-back:hover { color: var(--gold-3); }

/* -------------------------------------------------------------------------
   10. HOME — INTRODUCTION
   ------------------------------------------------------------------------- */

.intro-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}

.intro-figure {
  position: sticky;
  top: 120px;
}

.intro-figure .figure-num {
  font-family: var(--font-heading);
  font-size: 5rem;
  line-height: 1;
  color: var(--off-white-deep);
  -webkit-text-stroke: 1.5px var(--gold-3);
  color: transparent;
}

.intro-figure-photo {
  margin-top: 28px;
  position: relative;
  padding: 10px;
  background: var(--white);
  box-shadow: 0 20px 50px -20px rgba(2, 41, 79, 0.28);
}

.intro-figure-photo .photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.intro-figure-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.intro-figure-photo::after {
  content: '';
  position: absolute;
  left: -12px;
  bottom: -12px;
  width: 56px;
  height: 56px;
  border-left: 2px solid var(--gold-2);
  border-bottom: 2px solid var(--gold-2);
  z-index: -1;
}

.intro-body p + p { margin-top: 20px; }

.intro-quote {
  margin-top: 36px;
  padding-left: 24px;
  border-left: 2px solid var(--gold-2);
}

.intro-quote p {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--navy);
  font-style: italic;
  line-height: 1.5;
}

/* -------------------------------------------------------------------------
   11. APPROACH GRID (Why Acclivis)
   ------------------------------------------------------------------------- */

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.approach-card {
  background: var(--white);
  padding: clamp(28px, 3vw, 40px);
  transition: background var(--ease) 0.3s;
}

.approach-card:hover { background: var(--off-white); }

.approach-card .approach-index {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--gold-2);
  margin-bottom: 18px;
  display: block;
}

.approach-card h3 { margin-bottom: 12px; }
.approach-card p { font-size: 0.95rem; }

/* -------------------------------------------------------------------------
   12. CAPABILITIES — PREVIEW (home) & FULL (capabilities page)
   ------------------------------------------------------------------------- */

.capability-list { border-top: 1px solid var(--line); }

.capability-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 28px;
  align-items: center;
  padding-block: clamp(26px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
  transition: background var(--ease) 0.3s;
}

.capability-row:hover { background: rgba(180, 136, 17, 0.05); }

.capability-num {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--gold-2);
}

.capability-row h3 { margin-bottom: 6px; }
.capability-row p { font-size: 0.95rem; max-width: 60ch; }

.capability-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--ease) 0.3s, background var(--ease) 0.3s, transform var(--ease) 0.3s;
  flex-shrink: 0;
}

.capability-row:hover .capability-arrow {
  background: var(--gold-gradient);
  border-color: transparent;
  transform: rotate(45deg);
}

.capability-arrow svg { width: 14px; height: 14px; }

/* Full capabilities page — editorial numbered blocks */

.capability-block {
  padding-block: clamp(46px, 6vw, 76px);
  border-bottom: 1px solid var(--line);
}

.capability-block-inner {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: clamp(24px, 4vw, 60px);
}

.capability-block .capability-num {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold-3);
  line-height: 1;
}

.capability-block h3 { margin-bottom: 16px; }

.capability-sub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 40px;
  margin-top: 26px;
}

.capability-sub-grid li {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.capability-sub-grid li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 1px;
  background: var(--gold-2);
}

/* Industries grid */

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.industry-card {
  background: var(--white);
  padding: clamp(26px, 3vw, 34px);
}

.industry-card h4 { margin-bottom: 8px; }
.industry-card p { font-size: 0.9rem; }

/* -------------------------------------------------------------------------
   13. TEAM
   ------------------------------------------------------------------------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3vw, 44px);
}

.team-card { position: relative; display: block; }

.team-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--navy);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
  filter: grayscale(0.15) contrast(1.02);
}

.team-card:hover .team-photo img { transform: scale(1.05); filter: grayscale(0); }

.team-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2,41,79,0.55) 0%, rgba(2,41,79,0) 40%);
}

.team-photo .team-photo-meta {
  position: absolute;
  left: 20px;
  bottom: 16px;
  right: 20px;
  z-index: 2;
  color: var(--white);
}

.team-photo-meta .eyebrow { color: var(--gold-3); margin-bottom: 6px; }

.team-info { padding-top: 20px; }
.team-info h3 { margin-bottom: 4px; }
.team-info .team-role {
  font-size: 0.85rem;
  color: var(--gold-2);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}
.team-info p { font-size: 0.94rem; }

.team-focus {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.team-focus span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.team-focus ul { display: flex; flex-wrap: wrap; gap: 8px; }
.team-focus li {
  font-size: 0.78rem;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--navy);
}

/* Team preview strip (home) */

.team-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 36px);
}

/* Individual partner profile page */

.partner-profile {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}

.partner-profile-photo {
  position: sticky;
  top: 120px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.partner-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partner-profile-body p {
  font-size: 1.02rem;
}
.partner-profile-body p + p { margin-top: 20px; }

/* -------------------------------------------------------------------------
   14. BRAND STATEMENT BAND
   ------------------------------------------------------------------------- */

.brand-band {
  position: relative;
  background: var(--navy);
  padding-block: clamp(40px, 6vw, 64px);
  overflow: hidden;
  text-align: center;
}

.brand-band-inner { position: relative; z-index: 1; }

.brand-band .tagline-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.6vw, 2.1rem);
  letter-spacing: 0.06em;
  color: var(--white);
  text-transform: uppercase;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 22px);
  white-space: nowrap;
}

.brand-band .tagline-display span:nth-child(2) {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-band .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-2); flex-shrink: 0; }

/* -------------------------------------------------------------------------
   15. ABOUT PAGE SPECIFIC
   ------------------------------------------------------------------------- */

.value-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 8px; }
.value-item { background: var(--white); padding: clamp(26px, 3vw, 36px); display: flex; gap: 20px; }
.value-item .value-mark {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--gold-2);
  flex-shrink: 0;
}
.value-item h4 { margin-bottom: 8px; }
.value-item p { font-size: 0.92rem; }

.firms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 40px);
  margin-top: 8px;
}

.firm-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(32px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.firm-card img { max-height: 64px; width: auto; }
.firm-card p { font-size: 0.94rem; }
.firm-card .firm-role { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; }

.timeline-approach { display: grid; gap: 0; margin-top: 8px; }
.timeline-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding-block: 26px;
  border-top: 1px solid var(--line);
}
.timeline-row:last-child { border-bottom: 1px solid var(--line); }
.timeline-row h4 { color: var(--navy); }
.timeline-row p { font-size: 0.94rem; margin-top: 6px; }

/* -------------------------------------------------------------------------
   16. FINAL CTA
   ------------------------------------------------------------------------- */

.final-cta {
  position: relative;
  background: var(--off-white-deep);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.final-cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.final-cta h2 { max-width: 14ch; }
.final-cta .lede { margin-top: 20px; }

.cta-contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(28px, 3vw, 40px);
}

.cta-contact-row {
  display: flex;
  gap: 16px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
.cta-contact-row:last-child { border-bottom: none; }
.cta-contact-row .icon { color: var(--gold-2); flex-shrink: 0; width: 18px; margin-top: 3px; }
.cta-contact-row .label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.cta-contact-row a, .cta-contact-row span.value { color: var(--navy); font-size: 0.98rem; }
.cta-contact-row a:hover { color: var(--gold-1); }

/* -------------------------------------------------------------------------
   17. FOOTER
   ------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy-deep);
  color: var(--text-on-navy-muted);
  padding-top: clamp(56px, 7vw, 84px);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr 1fr;
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-on-navy);
}

.footer-brand img { height: 42px; margin-bottom: 18px; }
.footer-brand p { font-size: 0.88rem; max-width: 32ch; color: var(--text-on-navy-muted); }

.footer-col h4 {
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col ul li { margin-bottom: 11px; }
.footer-col a { font-size: 0.9rem; transition: color var(--ease) 0.2s; }
.footer-col a:hover { color: var(--gold-3); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 26px;
  font-size: 0.8rem;
}

.footer-bottom .legal-links { display: flex; gap: 22px; }

.footer-credit { color: var(--text-on-navy-muted); }
.footer-credit a { color: var(--text-on-navy-muted); transition: color var(--ease) 0.2s; }
.footer-credit a:hover { color: var(--gold-3); }

/* -------------------------------------------------------------------------
   17b. LEGAL DOCUMENT PAGES (Privacy Policy / Terms)
   ------------------------------------------------------------------------- */

.legal-doc {
  max-width: 780px;
}

.legal-doc > p {
  margin-bottom: 20px;
  font-size: 1rem;
}

.legal-doc h2 {
  font-size: 1.4rem;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.legal-doc h2:first-of-type {
  margin-top: 40px;
  padding-top: 0;
  border-top: none;
}

.legal-doc code {
  background: var(--off-white-deep);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
  color: var(--navy);
}

.legal-list {
  margin: 0 0 20px;
  padding-left: 0;
  list-style: none;
}

.legal-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.legal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 1px;
  background: var(--gold-2);
}

.legal-list strong {
  color: var(--navy);
}

/* -------------------------------------------------------------------------
   18. FADE-IN / REVEAL ANIMATIONS
   ------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="stagger"] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
[data-reveal="stagger"].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="stagger"].is-visible > *:nth-child(1) { transition-delay: 0.03s; }
[data-reveal="stagger"].is-visible > *:nth-child(2) { transition-delay: 0.1s; }
[data-reveal="stagger"].is-visible > *:nth-child(3) { transition-delay: 0.17s; }
[data-reveal="stagger"].is-visible > *:nth-child(4) { transition-delay: 0.24s; }
[data-reveal="stagger"].is-visible > *:nth-child(5) { transition-delay: 0.31s; }
[data-reveal="stagger"].is-visible > *:nth-child(6) { transition-delay: 0.38s; }
[data-reveal="stagger"].is-visible > *:nth-child(7) { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal="stagger"] > * { opacity: 1; transform: none; }
}

/* -------------------------------------------------------------------------
   19. MOBILE NAV OVERLAY
   ------------------------------------------------------------------------- */

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--navy-deep);
  z-index: 150;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--container-pad);
  transform: translateY(-100%);
  transition: transform 0.45s var(--ease);
}
.mobile-nav.is-open { transform: translateY(0); }

.mobile-nav ul { display: flex; flex-direction: column; gap: 8px; }
.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  color: var(--white);
  padding-block: 12px;
  border-bottom: 1px solid var(--line-on-navy);
  display: block;
}
.mobile-nav a.is-active { color: var(--gold-3); }
.mobile-nav-foot { margin-top: 40px; }
.mobile-nav-foot a { font-family: var(--font-body); font-size: 1rem; border: none; color: var(--text-on-navy-muted); padding-block: 6px; }

/* -------------------------------------------------------------------------
   20. RESPONSIVE
   ------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-figure { position: static; }
  .partner-profile { grid-template-columns: 1fr; }
  .partner-profile-photo { position: static; aspect-ratio: 16/10; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .team-grid, .team-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
  .final-cta-inner { grid-template-columns: 1fr; }
  .value-list { grid-template-columns: 1fr; }
  .firms-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .main-nav .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .capability-block-inner { grid-template-columns: 1fr; gap: 16px; }
  .capability-sub-grid { grid-template-columns: 1fr; }
  .timeline-row { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 640px) {
  .brand-band .tagline-display {
    white-space: normal;
    flex-wrap: wrap;
    font-size: clamp(1.1rem, 5vw, 1.6rem);
  }
}

@media (max-width: 720px) {
  .team-grid, .team-preview-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .capability-row { grid-template-columns: 44px 1fr; }
  .capability-arrow { display: none; }
  .industries-grid { grid-template-columns: 1fr; }
  .page-hero-foot { gap: 20px 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
