/* ============================================================
   E2 CONSULTING — Design System
   Institutional energy & power-sector advisory
   Palette: ink navy + warm brass + stone. Type: Fraunces + Inter.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Color */
  --ink:        #0A1C2B;   /* primary dark */
  --ink-800:    #0E2333;
  --ink-700:    #13304492;  /* used as overlay variations elsewhere */
  --ink-grad-a: #0A1C2B;
  --ink-grad-b: #143247;
  --ink-grad-c: #1d4a63;

  --brass:      #C39B5E;   /* accent */
  --brass-deep: #A87E3F;
  --brass-soft: #E6D4B0;

  --stone:      #F5F2EB;   /* light background */
  --stone-2:    #EDE8DD;
  --paper:      #FFFFFF;

  --text:       #16242E;   /* body on light */
  --text-soft:  #4A5A66;
  --text-faint: #7C8A94;
  --on-dark:    #EAF0F4;
  --on-dark-soft:#A9BCC9;

  --line:       #DAD3C5;   /* hairline on light */
  --line-dark:  rgba(255,255,255,0.14);

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing scale */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px;

  /* Layout */
  --maxw: 1240px;
  --maxw-narrow: 880px;
  --radius: 2px;

  --shadow-sm: 0 1px 2px rgba(10,28,43,0.06);
  --shadow-md: 0 18px 50px -24px rgba(10,28,43,0.45);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4 { margin: 0; font-family: var(--serif); font-weight: 380; letter-spacing: -0.01em; line-height: 1.08; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

/* ---------- Typography helpers ---------- */
.display {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.h-xl { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.h-lg { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.h-md { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.h-sm { font-size: 1.25rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-deep);
  display: inline-block;
  margin: 0 0 var(--sp-4);
}
.eyebrow--light { color: var(--brass); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.55; color: var(--text-soft); font-weight: 400; }
.muted { color: var(--text-soft); }
.serif { font-family: var(--serif); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-6); }
.container--narrow { max-width: var(--maxw-narrow); }
.section { padding: var(--sp-9) 0; }
.section--tight { padding: var(--sp-8) 0; }
.section--stone { background: var(--stone); }
.section--ink { background: var(--ink); color: var(--on-dark); }
.section--ink .eyebrow { color: var(--brass); }
.section--ink p { color: var(--on-dark-soft); }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.rule { width: 56px; height: 2px; background: var(--brass); border: 0; margin: 0 0 var(--sp-5); }

.grid { display: grid; gap: var(--sp-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--sans); font-weight: 600; font-size: 0.86rem;
  letter-spacing: 0.04em;
  padding: 0.95em 1.7em; border: 1px solid transparent; border-radius: var(--radius);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--brass { background: var(--brass); color: var(--ink); }
.btn--brass:hover { background: var(--brass-deep); }
.btn--ink { background: var(--ink); color: var(--on-dark); }
.btn--ink:hover { background: var(--ink-800); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost-light { background: transparent; color: var(--on-dark); border-color: var(--line-dark); }
.btn--ghost-light:hover { border-color: var(--brass); color: var(--brass); }

.txtlink {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 600; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brass-deep); border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: border-color .3s var(--ease), gap .3s var(--ease);
}
.txtlink .arr { transition: transform .3s var(--ease); }
.txtlink:hover { border-color: var(--brass); }
.txtlink:hover .arr { transform: translateX(4px); }
.txtlink--light { color: var(--brass); }

/* ============================================================
   NAV
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,28,43,0.0);
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}
/* On dark hero pages the nav starts transparent over the hero */
.topbar--over { position: fixed; left: 0; right: 0; }
.topbar.is-scrolled,
.topbar--solid {
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
  box-shadow: 0 8px 30px -20px rgba(0,0,0,0.6);
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--on-dark); }
.brand__mark { width: auto; height: 38px; flex: none; display: block; }
.brand__logo { height: 40px; width: auto; flex: none; display: block; }
@media (max-width: 760px) { .brand__logo { height: 34px; } }
.brand__type { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--serif); font-size: 1.28rem; letter-spacing: 0.02em; font-weight: 400; }
.brand__name b { color: var(--brass); font-weight: 400; }
.brand__sub { font-family: var(--sans); font-size: 0.58rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--on-dark-soft); margin-top: 5px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; color: var(--on-dark); font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.02em; padding: 10px 16px; opacity: 0.86; transition: opacity .25s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 1px;
  background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { opacity: 1; }
.nav__cta { margin-left: 10px; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--on-dark); }
.nav-toggle svg { width: 26px; height: 26px; }

/* Mobile nav */
@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 84px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: var(--sp-4) var(--sp-6) var(--sp-7);
    border-top: 1px solid var(--line-dark);
    transform: translateY(-130%); transition: transform .4s var(--ease); height: calc(100vh - 84px);
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 16px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line-dark); }
  .nav a::after { display: none; }
  .nav__cta { margin: var(--sp-5) 0 0; }
}

/* ============================================================
   HERO (cinematic dark)
   ============================================================ */
.hero {
  position: relative; background: var(--ink); color: var(--on-dark);
  overflow: hidden; padding: 220px 0 110px;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { /* depth + legibility vignette (no static glow — that follows the cursor) */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(900px 700px at 10% 90%, rgba(29,74,99,0.45), transparent 60%),
    linear-gradient(180deg, rgba(10,28,43,0.30) 0%, rgba(10,28,43,0.0) 30%, rgba(10,28,43,0.55) 100%);
}
/* Cursor-following brass glow over dark hero/pagehero/cta panels */
.cursor-glow {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0; transition: opacity .4s var(--ease);
  background: radial-gradient(circle 340px at var(--mx, 50%) var(--my, 20%),
    rgba(195,155,94,0.12) 0%, rgba(195,155,94,0.045) 35%, rgba(195,155,94,0) 70%);
}
.cursor-glow.is-on { opacity: 1; }
@media (hover: none) { .cursor-glow { display: none; } }
.hero__inner { position: relative; z-index: 3; max-width: 920px; }
.hero__eyebrow { color: var(--brass); letter-spacing: 0.26em; }
.hero h1 { color: #fff; margin: 0 0 var(--sp-5); }
.hero__sub { font-size: clamp(1.1rem, 1.7vw, 1.4rem); color: var(--on-dark-soft); max-width: 660px; line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-7); }
.hero__scroll {
  position: absolute; z-index: 2; bottom: 34px; left: 50%; transform: translateX(-50%);
  color: var(--on-dark-soft); font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero__scroll .line { width: 1px; height: 38px; background: linear-gradient(var(--brass), transparent); animation: scrollpulse 2.4s var(--ease) infinite; }
@keyframes scrollpulse { 0%,100%{opacity:.3; transform:scaleY(.6);} 50%{opacity:1; transform:scaleY(1);} }

/* page hero (interior, lighter) */
.pagehero { position: relative; background: var(--ink); color: var(--on-dark); padding: 188px 0 78px; overflow: hidden; }
.pagehero__bg { position: absolute; inset: 0; z-index: 0; opacity: 0.9; }
.pagehero::after { content:""; position:absolute; inset:0; z-index:1; pointer-events:none; background: linear-gradient(180deg, rgba(10,28,43,0) 55%, rgba(10,28,43,0.4)); }
.pagehero__inner { position: relative; z-index: 3; max-width: 820px; }
.pagehero h1 { color: #fff; margin-bottom: var(--sp-4); }
.pagehero p { color: var(--on-dark-soft); font-size: 1.15rem; max-width: 640px; }
.breadcrumb { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-soft); margin-bottom: var(--sp-5); }
.breadcrumb a { color: var(--brass); }

/* ============================================================
   STAT BAND
   ============================================================ */
.statband { background: var(--ink-800); color: var(--on-dark); border-top: 1px solid var(--line-dark); }
.statband__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: var(--sp-8) var(--sp-6); border-right: 1px solid var(--line-dark); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--serif); font-size: clamp(2.2rem, 3.6vw, 3.1rem); color: #fff; line-height: 1; }
.stat__num .unit { color: var(--brass); }
.stat__label { font-size: 0.8rem; letter-spacing: 0.06em; color: var(--on-dark-soft); margin-top: var(--sp-3); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--sp-6); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  height: 100%; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brass-soft); }
.card__num { font-family: var(--serif); font-size: 0.95rem; color: var(--brass-deep); margin-bottom: var(--sp-4); }
.card__icon { width: 44px; height: 44px; color: var(--brass-deep); margin-bottom: var(--sp-5); }
.card h3 { margin-bottom: var(--sp-3); font-size: 1.3rem; }
.card p { color: var(--text-soft); font-size: 0.96rem; margin-bottom: var(--sp-4); }
.card__foot { margin-top: auto; }

/* link-card (image-led, Moelis style) */
.linkcard { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--ink); min-height: 260px; }
.linkcard__img { position: absolute; inset: 0; }
.linkcard__img .ph { width: 100%; height: 100%; }
.linkcard::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(10,28,43,0.1), rgba(10,28,43,0.82)); transition: background .4s var(--ease); }
.linkcard:hover::after { background: linear-gradient(180deg, rgba(10,28,43,0.2), rgba(10,28,43,0.9)); }
.linkcard__label { position: absolute; left: var(--sp-6); right: var(--sp-6); bottom: var(--sp-6); z-index: 2; color: #fff; }
.linkcard__label h3 { font-size: 1.45rem; color:#fff; }
.linkcard__label .meta { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); margin-bottom: var(--sp-2); }
.linkcard__arrow { position:absolute; top: var(--sp-6); right: var(--sp-6); z-index:2; color:#fff; opacity:.75; transition: transform .35s var(--ease), opacity .35s; }
.linkcard:hover .linkcard__arrow { transform: translate(4px,-4px); opacity:1; }

/* ============================================================
   FEATURE (split text/visual)
   ============================================================ */
.feature { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-8); align-items: center; }
.feature--rev .feature__media { order: -1; }
.feature__media { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px; background: var(--stone-2); }
.feature__body h2 { margin-bottom: var(--sp-4); }

/* ============================================================
   MOAT / credential list
   ============================================================ */
.moat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line-dark); }
.moat__item { padding: var(--sp-7) var(--sp-6); border-bottom: 1px solid var(--line-dark); border-right: 1px solid var(--line-dark); }
.moat__item:nth-child(2n) { border-right: 0; }
.moat__item .n { font-family: var(--serif); color: var(--brass); font-size: 1rem; }
.moat__item h3 { color: #fff; font-size: 1.4rem; margin: var(--sp-3) 0; }
.moat__item p { color: var(--on-dark-soft); font-size: 0.96rem; margin: 0; }

/* ============================================================
   LOGO / institution wall
   ============================================================ */
.logowall { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.logowall__cell {
  background: var(--paper); min-height: 170px; display: flex; flex-direction: column; justify-content: center;
  gap: 12px; padding: var(--sp-5); text-align: center; min-width: 0;
}
.logowall__img { max-width: 72%; max-height: 52px; width: auto; object-fit: contain; margin: 0 auto; }
.logowall__ico { width: 38px; height: 38px; object-fit: contain; border-radius: 4px; margin: 0 auto; }
.logowall__cell span { display: block; font-family: var(--serif); font-size: 1.02rem; color: var(--text); letter-spacing: 0.01em; }
.logowall__cell small { display:block; font-family: var(--sans); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-top: 4px; }

/* ============================================================
   CTA band
   ============================================================ */
.cta {
  position: relative; background: var(--ink); color: var(--on-dark); overflow: hidden;
  padding: var(--sp-9) 0;
}
.cta__bg { position:absolute; inset:0; z-index:0; opacity:.85; }
.cta::after { content:""; position:absolute; inset:0; z-index:1; pointer-events:none; background: linear-gradient(180deg, rgba(10,28,43,0) 60%, rgba(10,28,43,0.35)); }
.cta__inner { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-7); flex-wrap: wrap; }
.cta h2 { color: #fff; max-width: 620px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #07151F; color: var(--on-dark-soft); padding: var(--sp-9) 0 var(--sp-6); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--sp-7); padding-bottom: var(--sp-8); border-bottom: 1px solid var(--line-dark); }
.footer__brand .brand__name { color: #fff; }
.footer__tag { font-size: 0.92rem; max-width: 280px; margin-top: var(--sp-4); line-height: 1.6; }
.footer h4 { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); margin-bottom: var(--sp-4); font-weight: 600; }
.footer ul li { margin-bottom: var(--sp-3); }
.footer ul a { font-size: 0.92rem; opacity: 0.82; transition: opacity .25s, color .25s; }
.footer ul a:hover { opacity: 1; color: var(--brass); }
.footer__contact p { font-size: 0.92rem; margin-bottom: var(--sp-3); line-height: 1.55; }
.footer__contact a { color: var(--brass-soft); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); padding-top: var(--sp-5); font-size: 0.78rem; flex-wrap: wrap; }
.footer__bottom .reg { color: var(--text-faint); }

/* ============================================================
   PROSE (article / detail)
   ============================================================ */
.prose { max-width: 720px; }
.prose p { font-size: 1.08rem; color: var(--text-soft); margin-bottom: 1.3em; }
.prose h2 { font-size: 1.7rem; margin: 1.6em 0 0.5em; }
.prose h3 { font-size: 1.3rem; margin: 1.4em 0 0.4em; }
.prose ul.bullets { margin: 0 0 1.4em; padding-left: 0; list-style: none; }
.prose ul.bullets li { position: relative; padding-left: 26px; margin-bottom: 0.7em; color: var(--text-soft); }
.prose ul.bullets li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; background: var(--brass); }

/* ============================================================
   ANIMATION (reveal on scroll)
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-d="1"] { transition-delay: .08s; }
[data-reveal-d="2"] { transition-delay: .16s; }
[data-reveal-d="3"] { transition-delay: .24s; }
[data-reveal-d="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__scroll .line { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   PLACEHOLDER visuals (marked for client to swap)
   ============================================================ */
.ph {
  position: relative; width: 100%; height: 100%;
  background:
    linear-gradient(135deg, #14324790 0%, #0A1C2B 100%);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.ph[data-kind="photo"]::before {
  content: "PHOTO"; position: absolute; bottom: 10px; right: 12px;
  font-size: 0.6rem; letter-spacing: 0.2em; color: rgba(255,255,255,0.32);
}
.ph__svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.ph__tag { position: relative; z-index: 2; font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(234,240,244,0.5); }

/* avatar placeholder */
.avatar { width: 100%; aspect-ratio: 1/1; background: var(--stone-2); position: relative; overflow: hidden; }
.avatar .ph { background: linear-gradient(160deg, #1d4a63, #0A1C2B); }
.avatar__initials { position: absolute; inset: 0; display:flex; align-items:center; justify-content:center; font-family: var(--serif); font-size: 2.4rem; color: rgba(255,255,255,0.85); z-index:2; }

/* ============================================================
   PAGE MODULE — Service rows (services.html)
   ============================================================ */
.svc { display: grid; grid-template-columns: 272px 1fr; gap: var(--sp-8); padding: var(--sp-7) 0; align-items: start; }
.svc__head { position: sticky; top: 104px; align-self: start; }
.svc__num { font-family: var(--serif); font-weight: 350; font-size: 3rem; color: var(--brass); display: block; line-height: 1; margin-bottom: var(--sp-4); }
.svc__head h2 { margin-bottom: var(--sp-4); font-size: clamp(1.45rem, 2.1vw, 1.9rem); }
.svc__flag { display:inline-block; font-size:0.66rem; letter-spacing:0.18em; text-transform:uppercase; color:var(--brass-deep); border:1px solid var(--brass-soft); border-radius:999px; padding:4px 12px; }
.svc__body .lead { margin-bottom: var(--sp-6); }
.svc__sub { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; margin: 0 0 var(--sp-4); }
/* deliverables — self-contained 2-column bullet grid (no .prose dependency) */
.svc__deliver { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px var(--sp-7); }
.svc__deliver li { position: relative; padding-left: 22px; font-size: 0.94rem; color: var(--text-soft); line-height: 1.5; }
.svc__deliver li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; background: var(--brass); }
.svc__proof { margin-top: var(--sp-6); padding: var(--sp-4) var(--sp-5); background: var(--stone); border-left: 2px solid var(--brass); font-size: 0.95rem; color: var(--text-soft); }
.svc__proof strong { color: var(--text); font-weight: 600; }

/* Service directory (top-of-page overview grid) */
.svc-dir { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: var(--sp-6); }
.svc-dir__card { display: flex; flex-direction: column; gap: 10px; background: var(--paper); padding: var(--sp-6); transition: background .3s var(--ease); }
.svc-dir__card:hover { background: var(--stone); }
.svc-dir__num { font-family: var(--serif); font-size: 0.95rem; color: var(--brass-deep); }
.svc-dir__card h3 { font-size: 1.08rem; line-height: 1.18; }
.svc-dir__card p { font-size: 0.88rem; color: var(--text-soft); margin: 0; flex: 1; }
.svc-dir__go { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-deep); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.svc-dir__go .arr { transition: transform .3s var(--ease); }
.svc-dir__card:hover .svc-dir__go .arr { transform: translateX(3px); }

/* Cluster group header */
.svc-group { padding-top: var(--sp-8); margin-top: var(--sp-8); border-top: 1px solid var(--line); }
.svc-group--first { padding-top: 0; margin-top: var(--sp-6); border-top: 0; }
.svc-group__label { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass-deep); font-weight: 600; }
.svc-group__desc { font-family: var(--serif); font-weight: 350; font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.25; color: var(--ink); margin: var(--sp-3) 0 0; max-width: 740px; }

/* Two-up add-on cards */
.addons { display:grid; grid-template-columns:repeat(2,1fr); gap:var(--sp-6); }

/* ============================================================
   PAGE MODULE — Contact form (contact.html)
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.25fr 0.85fr; gap: var(--sp-8); align-items: start; }
.form { display: grid; gap: var(--sp-5); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.field label { display: block; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85em 1em; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--sans); font-size: 0.96rem; color: var(--text); background: var(--paper);
  -webkit-appearance: none; appearance: none; transition: border-color .25s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); }
.form__note { font-size: 0.82rem; color: var(--text-faint); }
.contact-info { background: var(--ink); color: var(--on-dark); border-radius: var(--radius); padding: var(--sp-7); }
.contact-info h3 { color: #fff; font-size: 1.15rem; margin-bottom: var(--sp-4); }
.contact-info dl { margin: 0; }
.contact-info dt { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); margin: var(--sp-5) 0 6px; }
.contact-info dd { margin: 0; font-size: 0.98rem; color: var(--on-dark-soft); line-height: 1.55; }
.contact-info dd a { color: var(--brass-soft); }

/* ============================================================
   PAGE MODULE — People (people.html)
   ============================================================ */
.person { text-align: left; }
.person__photo { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; margin-bottom: var(--sp-4); position: relative; background: var(--stone-2); }
.person__photo .ph { border-radius: 50%; }
.person__photo .avatar__initials { font-size: 1.6rem; }
.person__role { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass-deep); font-weight: 600; margin: 0 0 var(--sp-3); }
.person h3 { font-size: 1.2rem; margin-bottom: 4px; }
.creds { list-style: none; padding: 0; margin: var(--sp-5) 0 0; }
.creds li { display: flex; gap: var(--sp-4); padding: 12px 0; border-top: 1px solid var(--line-dark); font-size: 0.95rem; color: var(--on-dark-soft); }
.creds li b { color: #fff; font-weight: 600; min-width: 140px; flex: none; }
.creds--light li { border-color: var(--line); color: var(--text-soft); }
.creds--light li b { color: var(--text); }

/* Landscape team rows (photo 1/4 left, content 3/4 right) */
.team-list { display: flex; flex-direction: column; gap: var(--sp-5); }
.person-row {
  display: grid; grid-template-columns: 1fr 3fr; align-items: stretch;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.person-row:hover { box-shadow: var(--shadow-md); border-color: var(--brass-soft); transform: translateY(-2px); }
.person-row__photo { position: relative; min-height: 250px; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #16384f, #0A1C2B 75%); }
/* brass light that blooms behind the figure on hover */
.person-row__photo::before {
  content: ""; position: absolute; left: 50%; bottom: -40%; width: 150%; aspect-ratio: 1 / 1; z-index: 0;
  transform: translateX(-50%) scale(0.5); opacity: 0.4;
  background: radial-gradient(circle, rgba(195,155,94,0.42) 0%, rgba(195,155,94,0) 62%);
  transition: transform .55s var(--ease), opacity .55s var(--ease);
}
/* transparent-PNG cutout, anchored to the top, muted until hover */
.person-row__photo img {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  filter: grayscale(0.14) brightness(0.96);
  transition: transform .55s var(--ease), filter .55s var(--ease);
}
.person-row__photo .pr-initials {
  position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 2.8rem; color: rgba(255,255,255,0.9);
  transition: transform .55s var(--ease);
}
.person-row:hover .person-row__photo::before { transform: translateX(-50%) scale(0.95); opacity: 0.9; }
.person-row:hover .person-row__photo img { transform: scale(1.07) translateY(-5px); filter: grayscale(0) brightness(1.04); }
.person-row:hover .person-row__photo .pr-initials { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) {
  .person-row__photo::before, .person-row__photo img, .person-row__photo .pr-initials { transition: none; }
  .person-row:hover .person-row__photo img { transform: none; }
}
.person-row__body { padding: var(--sp-6) var(--sp-7); }
.person-row__body h3 { font-size: 1.4rem; margin-bottom: 4px; }
.person-row__bio { color: var(--text-soft); font-size: 0.98rem; margin: var(--sp-4) 0 var(--sp-3); }
.person-row__creds { font-size: 0.84rem; color: var(--text-faint); margin: 0 0 var(--sp-4); }
.person-row__ed { list-style: none; padding: 0; margin: 0 0 var(--sp-4); }
.person-row__ed li { position: relative; padding-left: 16px; font-size: 0.84rem; color: var(--text-faint); margin-bottom: 5px; line-height: 1.45; }
.person-row__ed li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; background: var(--brass); border-radius: 50%; }

/* ============================================================
   PAGE MODULE — Services auto-scroll carousel (index.html)
   ============================================================ */
.svc-carousel { margin-top: var(--sp-8); }
.svc-carousel__track {
  display: flex; gap: var(--sp-6); overflow-x: auto; overflow-y: hidden;
  scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none;
  padding: 10px 2px 16px;
}
.svc-carousel__track::-webkit-scrollbar { width: 0; height: 0; display: none; }
.svc-carousel__track { align-items: stretch; }
.svc-carousel__track > .card { flex: 0 0 360px; width: 360px; height: auto; align-self: stretch; }
.svc-carousel__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-top: var(--sp-5); flex-wrap: wrap; }
.svc-carousel__btns { display: flex; gap: var(--sp-3); }
.svc-cbtn {
  width: 46px; height: 46px; border: 1px solid var(--line); background: var(--paper);
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); cursor: pointer;
  transition: border-color .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.svc-cbtn:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.svc-cbtn svg { width: 18px; height: 18px; }
.svc-cbtn .ico-play { display: none; }
.svc-cbtn.is-paused .ico-pause { display: none; }
.svc-cbtn.is-paused .ico-play { display: block; }
@media (max-width: 760px) { .svc-carousel__track > .card { flex: 0 0 82vw; width: 82vw; } }

/* ============================================================
   PAGE MODULE — Transactions database (transactions.html)
   ============================================================ */
.tx-toolbar { position: sticky; top: 84px; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.tx-controls { display: grid; grid-template-columns: 1.7fr repeat(4, 1fr) 1.1fr; gap: var(--sp-3); padding: var(--sp-5) 0; }
.tx-input, .tx-select {
  width: 100%; padding: 0.85em 1em; border: 1px solid var(--line); background: var(--paper);
  font-family: var(--sans); font-size: 0.88rem; color: var(--text); border-radius: var(--radius);
  -webkit-appearance: none; appearance: none; transition: border-color .25s var(--ease);
}
.tx-input:focus, .tx-select:focus { outline: none; border-color: var(--brass); }
.tx-input::placeholder { color: var(--text-faint); }
.tx-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237C8A94' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 2.4em; cursor: pointer;
}
.tx-meta { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-5) 0 var(--sp-3); }
.tx-meta__count { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; }
.tx-clear { background: none; border: 0; color: var(--brass-deep); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em; padding: 6px 0; border-bottom: 1px solid var(--brass-soft); }
.tx-clear:hover { color: var(--ink); }

.tx-list { }
.tx { display: grid; grid-template-columns: 150px 1fr; gap: var(--sp-6); padding: var(--sp-6) 0; border-top: 1px solid var(--line); transition: background .25s var(--ease); }
.tx:hover { background: linear-gradient(90deg, rgba(195,155,94,0.06), rgba(195,155,94,0) 55%); }
.tx__year { padding-top: 4px; }
.tx__yr { font-family: var(--serif); font-size: 1.7rem; color: var(--ink); line-height: 1; display: block; }
.tx__val { display: inline-block; margin-top: 10px; font-size: 0.76rem; letter-spacing: 0.04em; color: var(--brass-deep); font-weight: 600; }
.tx__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--sp-3); }
.tx__tag { font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); border: 1px solid var(--line); padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.tx__tag--sector { color: var(--brass-deep); border-color: var(--brass-soft); }
.tx__title { font-size: 1.3rem; margin-bottom: 8px; line-height: 1.2; }
.tx__star { color: var(--brass); font-size: 0.82em; margin-right: 8px; }
.tx__client { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft); font-weight: 600; margin-bottom: var(--sp-3); }
.tx__desc { color: var(--text-soft); font-size: 0.98rem; margin: 0; max-width: 72ch; }
.tx-empty, .tx-status { display: none; padding: var(--sp-8) 0; text-align: center; color: var(--text-soft); }
.tx-status { color: #9a3b2f; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .svc-dir { grid-template-columns: repeat(2, 1fr); }
  .svc { grid-template-columns: 220px 1fr; gap: var(--sp-6); }
  .statband__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line-dark); }
  .logowall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
  .tx-controls { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: var(--sp-8) 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature--rev .feature__media { order: 0; }
  .feature__media { min-height: 280px; }
  .moat { grid-template-columns: 1fr; }
  .moat__item { border-right: 0; }
  .logowall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: 1fr; }
  .hero { padding: 150px 0 80px; }
  .pagehero { padding: 144px 0 56px; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .svc { grid-template-columns: 1fr; gap: var(--sp-5); }
  .svc__head { position: static; }
  .svc__num { font-size: 2.4rem; margin-bottom: var(--sp-3); }
  .svc__deliver { grid-template-columns: 1fr; gap: 10px; }
  .svc-dir { grid-template-columns: 1fr; }
  .addons { grid-template-columns: 1fr; }
  .tx-controls { grid-template-columns: 1fr 1fr; }
  .tx { grid-template-columns: 1fr; gap: var(--sp-3); }
  .tx__year { display: flex; align-items: baseline; gap: var(--sp-4); padding-top: 0; }
  .tx__val { margin-top: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .person-row { grid-template-columns: 1fr; }
  .person-row__photo { min-height: 240px; }
}

/* Small phones — tighter gutters, less dead space under the fixed header */
@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .hero { padding: 128px 0 60px; }
  .pagehero { padding: 120px 0 44px; }
  .pagehero p { font-size: 1.05rem; }
  .person-row__body { padding: var(--sp-5) var(--sp-5); }
  .contact-info { padding: var(--sp-6); }
}

/* ============================================================
   PAGE MODULE — Full career record (career.html)
   ============================================================ */
/* self-responsive filter bar (search spans the full first row) */
.tx-controls.is-career { grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); }
.tx-controls.is-career .tx-search--full { grid-column: 1 / -1; }
/* firm/employer label inside each engagement's year column */
.tx__firm { display: block; margin-top: 8px; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; }

/* career summary band — employers, periods, counts */
.career-firms { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: var(--sp-6); }
.career-firms__cell { background: var(--paper); padding: var(--sp-5) var(--sp-5) var(--sp-6); }
.career-firms__n { font-family: var(--serif); font-size: 1.9rem; color: var(--ink); line-height: 1; }
.career-firms__n .u { font-size: 0.8rem; color: var(--text-faint); letter-spacing: 0.08em; }
.career-firms__firm { font-size: 0.95rem; color: var(--text); margin-top: 8px; font-weight: 600; font-family: var(--serif); }
.career-firms__period { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-deep); margin-top: 4px; }
/* career glimpse on the People page */
.glimpse { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); margin: var(--sp-6) 0; }
.glimpse__cell { background: var(--ink); padding: var(--sp-5); }
.glimpse__n { font-family: var(--serif); font-size: 2rem; color: #fff; line-height: 1; }
.glimpse__n .u { font-size: 0.78rem; color: var(--brass); }
.glimpse__lbl { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-soft); margin-top: var(--sp-3); }
@media (max-width: 760px) {
  .career-firms { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .glimpse { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ---- Real imagery in media placeholders (hotlinked HD photos) ---- */
.media-img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; filter:saturate(.9) contrast(1.02); }
.media-frame { position:absolute; inset:0; width:100%; height:100%; border:0; display:block; }
.media-tint { position:absolute; inset:0; pointer-events:none; background:linear-gradient(180deg, rgba(10,28,43,.10) 0%, rgba(10,28,43,.12) 45%, rgba(10,28,43,.44) 100%); }

/* contact location banner (reliable replacement for blocked live-map embeds) */
.locmap { position:absolute; inset:0; display:block; }
.locmap__card { position:absolute; left:var(--sp-5); right:var(--sp-5); bottom:var(--sp-5); max-width:540px; z-index:3; display:flex; gap:var(--sp-4); align-items:flex-start; padding:var(--sp-5) var(--sp-6); background:rgba(10,28,43,.84); border:1px solid var(--line-dark); border-radius:var(--radius); color:#fff; }
.locmap__pin { flex:none; color:var(--brass); margin-top:3px; }
.locmap__pin svg { width:22px; height:22px; display:block; }
.locmap__body { display:flex; flex-direction:column; gap:5px; }
.locmap__body strong { font-family:var(--serif); font-weight:400; font-size:1.08rem; }
.locmap__addr { font-size:.86rem; color:var(--on-dark-soft); line-height:1.45; }
.locmap__go { margin-top:6px; font-size:.72rem; letter-spacing:.12em; text-transform:uppercase; font-weight:600; color:var(--brass); display:inline-flex; gap:7px; align-items:center; }
.locmap__go .arr { transition:transform .3s var(--ease); }
.locmap:hover .locmap__go .arr { transform:translateX(4px); }
