/* ============ Tokens ============ */
:root {
  --bg: #0b0b0b;
  --bg-2: #121212;
  --surface: #171717;
  --line: #262626;
  --text: #f2f0ea;
  --muted: #a9a59c;
  --gold: #ffbb00;
  --gold-soft: #d9a017;
  --gold-dark: #9a6b00;
  --navy: #1f3f66;
  --cream: #f4f1ea;
  --ink: #141414;

  --serif: "Cinzel", "Trajan Pro", Georgia, serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.15; text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.gold { color: var(--gold); }
.gold-dark { color: var(--gold-dark); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #000; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 26px; border-radius: 999px;
  font: 600 14px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #111; }
.btn-gold:hover { background: #ffcb3d; }
.btn-ghost { border-color: #3a3a3a; color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 11px 20px; font-size: 12px; }

.link-arrow { color: var(--gold); font-weight: 600; font-size: 14px; letter-spacing: .04em; text-decoration: none; display: inline-flex; gap: .4em; }
.link-arrow span { transition: transform .25s var(--ease); }
a.link-arrow:hover span, .person-card:hover .link-arrow span { transform: translateX(4px); }

/* ============ Header ============ */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(11, 11, 11, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { text-decoration: none; font-size: 14px; font-weight: 500; color: #d6d2c8; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--gold); transition: right .3s var(--ease); }
.nav a:not(.btn):hover, .nav a.active { color: #fff; }
.nav a:not(.btn):hover::after, .nav a.active::after { right: 0; }

.menu-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; transition: transform .3s, top .3s; }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 130px 0 48px; overflow: hidden; isolation: isolate;
}
.arcs { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-inner { max-width: 980px; margin-inline: auto; text-align: center; }
.eyebrow {
  font: 600 12px/1.4 var(--sans); letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(38px, 6.4vw, 84px); letter-spacing: .01em;
}
.impact-line { position: relative; height: 14px; width: min(560px, 80%); margin: 34px auto 30px; }
.impact-line i {
  position: absolute; inset: 0 22px 0 0; background: var(--gold);
  clip-path: polygon(0 45%, 100% 0, 100% 100%);
  transform-origin: left; transform: scaleX(0);
  animation: draw 1.4s .5s var(--ease) forwards;
}
.impact-line b { position: absolute; right: 0; top: 0; width: 14px; height: 14px; background: var(--gold); opacity: 0; animation: pop .4s 1.8s forwards; }
@keyframes draw { to { transform: scaleX(1); } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }

.lead { font-size: clamp(16px, 1.6vw, 19px); color: #cfcabf; max-width: 680px; margin: 0 auto 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.stats {
  list-style: none; margin: 72px 0 0; padding: 28px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border-top: 1px solid var(--line);
}
.stats li { display: flex; flex-direction: column; gap: 4px; }
.stats strong { font: 500 clamp(28px, 3vw, 40px)/1 var(--serif); color: var(--gold); }
.stats span { font-size: 13px; color: var(--muted); letter-spacing: .03em; }

/* ============ Sections ============ */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section h2 { font-family: var(--serif); font-size: clamp(30px, 4vw, 50px); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head .sub, .sub { color: var(--muted); font-size: 17px; margin-top: 18px; }

/* About */
.about { background: var(--bg-2); border-block: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-copy p { color: #cfcabf; font-size: 17px; }
.about-copy .link-arrow { margin-top: 10px; }

/* Leadership */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.person-card {
  all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; height: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .3s, transform .4s var(--ease);
}
.person-card:hover { border-color: #4a3c13; transform: translateY(-4px); }
.person-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.photo { aspect-ratio: 4 / 4.4; overflow: hidden; position: relative; background: #000; }
.photo::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, var(--surface)); }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; transition: transform .8s var(--ease); }
.person-card:hover .photo img { transform: scale(1.04); }
.person-meta { padding: 4px 26px 28px; }
.person-meta h3 { font-family: var(--serif); font-size: 24px; color: var(--gold); }
.role { color: #fff; font-weight: 500; font-size: 14px; margin: 6px 0 14px; }
.summary { color: var(--muted); font-size: 14.5px; line-height: 1.65; }

.bio {
  width: min(920px, calc(100% - 32px)); max-height: calc(100% - 48px);
  padding: 0; border: 1px solid #3a3a3a; border-radius: var(--radius);
  background: var(--surface); color: var(--text); overflow: auto;
}
.bio[open] { display: grid; grid-template-columns: 300px 1fr; animation: fadeUp .35s var(--ease); }
.bio::backdrop { background: rgba(0, 0, 0, .75); backdrop-filter: blur(4px); }
.bio > img { width: 100%; height: 100%; object-fit: cover; object-position: center 10%; }
.bio-body { padding: 40px 40px 32px; }
.bio-body h3 { font-family: var(--serif); font-size: 30px; color: var(--gold); }
.bio-body p:not(.role) { color: #cfcabf; font-size: 15.5px; }
.bio-close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0, 0, 0, .55); border: 1px solid #3a3a3a; color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
}
.bio-close:hover { border-color: var(--gold); color: var(--gold); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Values */
.values { background: var(--bg-2); border-block: 1px solid var(--line); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.value { background: var(--bg-2); padding: 40px 30px 36px; transition: background .3s; }
.value:hover { background: #181818; }
.value svg { width: 46px; height: 46px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 26px; }
.value h3 { font-family: var(--sans); font-weight: 700; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.value p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* Services */
.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 48px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: 0 0 auto; background: none; border: 0; color: var(--muted); cursor: pointer;
  font: 600 14px var(--sans); letter-spacing: .04em; padding: 16px 18px; position: relative; white-space: nowrap;
}
.tabs button em { font-style: normal; font-family: var(--serif); color: #5d5a54; margin-right: 8px; }
.tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .35s var(--ease); }
.tabs button[aria-selected="true"] { color: #fff; }
.tabs button[aria-selected="true"] em { color: var(--gold); }
.tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.tabs button:hover { color: #fff; }

.panel { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 80px); animation: fadeUp .45s var(--ease); }
.panel[hidden] { display: none; }
.num { font: 500 88px/1 var(--serif); color: transparent; -webkit-text-stroke: 1px #4a3c13; display: block; margin-bottom: 8px; }
.panel-intro h3 { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); margin-bottom: 18px; }
.panel-intro p { color: #cfcabf; font-size: 16.5px; margin-bottom: 28px; }
.svc-list { list-style: none; margin: 0; padding: 0; align-self: center; }
.svc-list li {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 4px; border-bottom: 1px solid var(--line);
  font-size: clamp(16px, 1.7vw, 19px); font-weight: 500;
}
.svc-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
.svc-list.two-col { columns: 2; column-gap: 40px; }
.svc-list.two-col li { break-inside: avoid; font-size: 16px; padding: 15px 4px; }

/* Partners */
.partners { background: var(--cream); color: var(--ink); }
.partners .eyebrow { color: var(--gold-dark); }
.partners .sub { color: #5f5a4f; }
.logo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.logo-grid li {
  background: #fff; border: 1px solid #e6e1d4; border-radius: 12px;
  height: 128px; display: grid; place-items: center; padding: 20px 22px;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.logo-grid li:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(60, 45, 0, .1); border-color: #d9cfae; }
.logo-grid img { max-height: 76px; max-width: 100%; width: auto; object-fit: contain; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact-info { margin: 40px 0 0; display: grid; gap: 26px; }
.contact-info dt { font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.contact-info dd { margin: 0; font-size: clamp(17px, 1.8vw, 21px); font-weight: 500; overflow-wrap: anywhere; }
.contact-info a { text-decoration: none; border-bottom: 1px solid #3a3a3a; transition: border-color .25s; }
.contact-info a:hover { border-color: var(--gold); }

.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; color: #d6d2c8; }
.field input, .field select, .field textarea {
  width: 100%; font: 500 15px var(--sans); color: var(--text);
  background: #0f0f0f; border: 1px solid #2f2f2f; border-radius: 10px; padding: 13px 14px;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 187, 0, .15); }
.field .invalid { border-color: #c0533a; }
.contact-form .btn { justify-self: start; }
.form-note { margin: 0; font-size: 14px; color: var(--muted); min-height: 1.4em; }

.map { margin-top: clamp(48px, 7vw, 80px); }
.map iframe { width: 100%; height: 380px; border: 1px solid var(--line); border-radius: var(--radius); filter: grayscale(1) invert(.92) contrast(.9); display: block; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0; background: #070707; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-logo { height: 34px; width: auto; }
.site-footer nav { display: flex; gap: 26px; flex-wrap: wrap; }
.site-footer nav a { text-decoration: none; color: var(--muted); font-size: 14px; }
.site-footer nav a:hover { color: var(--gold); }
.site-footer p { margin: 0; color: #6f6b63; font-size: 13px; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .team { gap: 18px; }
  .person-meta { padding: 4px 20px 24px; }
}

@media (max-width: 860px) {
  .menu-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; background: rgba(8, 8, 8, .97);
    flex-direction: column; justify-content: center; gap: 26px;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav a:not(.btn) { font-family: var(--serif); font-size: 26px; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }

  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 28px; margin-top: 56px; }
  .about-grid, .panel, .contact-grid { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .num { font-size: 64px; }
  .bio[open] { grid-template-columns: 1fr; }
  .bio > img { height: 300px; }
  .bio-body { padding: 28px 24px; }
}

@media (max-width: 560px) {
  .header-inner { height: 66px; }
  .brand img { height: 32px; }
  .hero { padding-top: 110px; }
  .hero-cta .btn { width: 100%; }
  .values-grid { grid-template-columns: 1fr; }
  .svc-list.two-col { columns: 1; }
  .field-row { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .logo-grid li { height: 104px; padding: 16px; }
  .logo-grid img { max-height: 60px; }
  .map iframe { height: 300px; }
  .contact-form .btn { justify-self: stretch; }
}

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