
:root {
  --bg: #0f1114;
  --bg-elev: #1a1d23;
  --bg-soft: #24272d;
  --text: #f4f4f5;
  --muted: #b0b4bc;
  --line: rgba(255,255,255,.08);
  --accent: #c5a46e;
  --accent-2: #e8d5a8;
  --brand-blue: #4a90e0;
  --brand-blue-hover: #6aa8eb;
  --max: 1120px;
  --header-h: 72px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --note: #ff6b6b;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text);
  background: var(--bg); line-height: 1.65; font-size: 17px;
  min-height: 100dvh; display: flex; flex-direction: column;
}
#main { flex: 1 0 auto; padding-bottom: 5.5rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: #fff; }
.container { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: .5rem 1rem; z-index: 1000; }
.skip:focus { left: .5rem; top: .5rem; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,17,20,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 1rem;
}
.logo img, .logo svg {
  height: 40px; width: auto; display: block;
}
.nav { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.nav a {
  color: var(--muted); font-size: .92rem; letter-spacing: .06em;
  text-transform: uppercase; font-weight: 600;
  padding: .35rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--brand-blue); }
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--line);
  color: #fff; padding: .45rem .7rem; border-radius: 6px; cursor: pointer;
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--bg-elev); flex-direction: column; padding: 1rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--line); gap: .75rem;
  }
  .nav.open { display: flex; }
}

.hero {
  position: relative; min-height: min(72vh, 620px);
  display: grid; place-items: center; text-align: center;
  background: #111 center/cover no-repeat; isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15,17,20,.35), rgba(15,17,20,.78)), rgba(36,39,45,.45);
}
.hero-inner { padding: 5rem 1rem; max-width: 900px; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem); margin: 0 0 .6rem; font-weight: 600;
}
.hero p.lead {
  margin: 0 auto 1.75rem; color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem); max-width: 34em;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .85rem 1.4rem; border-radius: 2px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; font-size: .82rem;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary {
  background: var(--brand-blue); color: #fff; border-color: var(--brand-blue);
}
.btn-primary:hover {
  background: var(--brand-blue-hover); color: #fff; border-color: var(--brand-blue-hover);
}
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.ext-hint {
  display: inline; font-size: .75em; font-weight: 600; letter-spacing: .04em;
  text-transform: none; opacity: .85; margin-left: .35em;
}

section { padding: 4.25rem 0; }
/* Same gap under page banner on every tab */
main > .page-hero + section {
  padding-top: 2.75rem;
  padding-bottom: 4.25rem;
}
section.alt { background: var(--bg-elev); }
.section-kicker {
  color: var(--brand-blue); text-transform: uppercase; letter-spacing: .18em;
  font-size: .75rem; font-weight: 700; margin: 0 0 .5rem;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 1rem;
  font-weight: 600; letter-spacing: .02em;
}
h3 { font-size: 1.15rem; margin: 0 0 .5rem; letter-spacing: .04em; text-transform: uppercase; }
a.section-title-link { color: #fff; text-decoration: none; transition: color .15s ease; }
a.section-title-link:hover { color: var(--accent); }
.muted { color: var(--muted); }
.prose p { margin: 0 0 1rem; color: var(--muted); }
.prose p:last-child { margin-bottom: 0; }
.center { text-align: center; }
.stack { display: grid; gap: 1.25rem; }
.grid-2 { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
.grid-3 { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); }
.grid-4 { display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden; display: flex; flex-direction: column; height: 100%;
  transition: transform .2s ease, border-color .2s ease, color .15s ease;
}
a.card { color: #fff; }
a.card:hover {
  transform: translateY(-3px); border-color: rgba(197,164,110,.55); color: var(--accent);
}
a.card:hover .card-body h3 { color: var(--accent); }
.card-media { aspect-ratio: 4/3; background: #000 center/cover no-repeat; }
.card-body { padding: 1.1rem 1.15rem 1.25rem; }
.card-body h3 {
  margin-bottom: .35rem; font-size: 1rem; color: inherit; transition: color .15s ease;
}
.card-body p { margin: 0; color: var(--muted); font-size: .95rem; }

.service-tile {
  position: relative; min-height: 260px; border-radius: 4px; overflow: hidden;
  display: flex; align-items: flex-end; padding: 1.25rem;
  background: #222 center/cover no-repeat; border: 1px solid var(--line); color: #fff;
  transition: border-color .2s ease, transform .2s ease, color .15s ease;
}
a.service-tile { color: #fff; }
a.service-tile:hover {
  color: var(--accent); border-color: rgba(197,164,110,.55); transform: translateY(-2px);
}
a.service-tile:hover h3 { color: var(--accent); }
.service-tile::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.78));
}
.service-tile > * { position: relative; z-index: 1; }
.service-tile h3 { color: inherit; margin: 0; font-size: 1.05rem; transition: color .15s ease; }

.value {
  padding: 1.25rem; border: 1px solid var(--line); border-radius: 4px;
  background: rgba(255,255,255,.02);
}
.value h3 { color: var(--accent-2); }

/* Team index: compact card grid (photo + name + title), above the fold.
   Wide: two centered rows (4 + 5) with equal card width.
   Narrow: one continuous grid so forced desktop rows do not orphan cards. */
.team-grid {
  display: flex; flex-direction: column; gap: 1rem;
}
.team-row {
  display: flex; flex-wrap: nowrap; justify-content: center; gap: 1rem;
}
/* Card width matches a 5-across row so row-of-4 cards are the same size */
a.team-card {
  display: flex; flex-direction: column;
  flex: 0 1 calc((100% - 4rem) / 5);
  width: calc((100% - 4rem) / 5);
  max-width: calc((100% - 4rem) / 5);
  min-width: 0;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden; color: #fff;
  transition: transform .2s ease, border-color .2s ease, color .15s ease;
}
a.team-card:hover {
  transform: translateY(-3px); border-color: rgba(197,164,110,.55); color: var(--accent);
}
a.team-card:hover .team-card-name { color: var(--accent); }
.team-card-media {
  aspect-ratio: 3/4; background: #111 center/cover no-repeat; border-bottom: 1px solid var(--line);
}
.team-card-body { padding: .85rem .9rem 1rem; flex: 1; }
.team-card-name {
  margin: 0 0 .3rem; font-size: .95rem; font-weight: 600;
  letter-spacing: .01em; text-transform: none; color: inherit; transition: color .15s ease;
  line-height: 1.25;
}
.team-card-role {
  margin: 0; color: var(--muted); font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; font-weight: 700; line-height: 1.35;
}
/* Below desktop: flatten rows into one even grid (order unchanged) */
@media (max-width: 1000px) {
  .team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
  .team-row { display: contents; }
  a.team-card {
    flex: unset; width: auto; max-width: none;
  }
}
@media (max-width: 760px) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
  }
}
@media (max-width: 520px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
  }
}

/* Team person detail */
.person-layout {
  display: grid; grid-template-columns: minmax(200px, 320px) 1fr;
  gap: 2rem 2.5rem; align-items: start;
}
.person-photo {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 4px;
  border: 1px solid var(--line); background: #111;
}
.team-bio h1, .team-bio h2 {
  margin: 0 0 .35rem; font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  text-transform: none; letter-spacing: .01em; font-weight: 600;
}
.team-bio .role {
  color: var(--accent); font-size: .82rem; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 700; margin: 0 0 1rem;
}
.reviewer-note {
  color: var(--note); font-weight: 700; font-size: .95rem;
  border: 1px solid rgba(255,107,107,.45); background: rgba(255,107,107,.08);
  padding: .5rem .75rem; border-radius: 4px; margin: 0 0 1rem;
}
@media (max-width: 640px) {
  .person-layout { grid-template-columns: 1fr; gap: 1.25rem; }
  .person-photo { max-width: 320px; margin-inline: auto; }
}

.gallery {
  display: grid; gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.gallery img {
  width: 100%; height: 220px; object-fit: cover; border-radius: 3px;
  border: 1px solid var(--line);
}
.scope { color: var(--text); font-weight: 600; margin: 0 0 1rem; }
.outcomes { margin: 0 0 1.25rem; padding-left: 1.2rem; color: var(--muted); }
.outcomes li { margin: .35rem 0; }

/* Same bar height + title position on every tab (matches former team compact bar) */
.page-hero {
  position: relative; display: flex; align-items: center;
  box-sizing: border-box;
  min-height: 120px; height: 120px; padding: 0;
  background-color: var(--bg-soft); background-position: center center;
  background-size: cover; background-repeat: no-repeat;
  border-bottom: 1px solid var(--line); overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,17,20,.28) 0%, rgba(15,17,20,.48) 50%, var(--bg) 100%);
  pointer-events: none; z-index: 0;
}
.page-hero .container {
  position: relative; z-index: 1;
  width: min(var(--max), calc(100% - 2rem)); margin-inline: auto;
  display: flex; align-items: center; min-height: 120px;
}
.page-hero h1 {
  margin: 0; font-size: clamp(1.5rem, 3.2vw, 2rem); line-height: 1.2;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden;
}

.quote { border-left: 3px solid var(--accent); padding: .25rem 0 .25rem 1.1rem; margin: 0; }
.quote p { color: var(--text); font-size: 1.05rem; margin: 0 0 .75rem; }
.quote footer { color: var(--muted); font-size: .92rem; }

.page-cta {
  margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  border-top: 1px solid var(--line);
  background: rgba(11, 12, 14, .96); backdrop-filter: blur(10px);
  padding: .85rem 0;
  width: 100%;
}
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .75rem 1.25rem; justify-content: space-between;
}
.footer-meta {
  color: var(--muted); font-size: .88rem;
  display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; align-items: center;
}
.footer-inner .btn { flex-shrink: 0; }

.contact-layout {
  display: grid; gap: 2rem; grid-template-columns: 1fr 1.15fr; align-items: stretch;
}
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-map {
  min-height: 360px; border-radius: 4px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-soft);
}
.contact-map iframe { display: block; width: 100%; height: 100%; min-height: 400px; border: 0; }
/* Contact page: brand blue instead of gold accents */
.contact-page a { color: var(--brand-blue); }
.contact-page a:hover { color: #fff; }
.contact-page .value h3 { color: var(--brand-blue); }
.contact-page .social-icon { color: var(--brand-blue); }
.contact-page .social-icon:hover {
  background: var(--brand-blue); border-color: var(--brand-blue); color: #fff;
}
.social-icons { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid var(--line); color: var(--accent-2);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.social-icon:hover { background: var(--accent); border-color: var(--accent); color: #1a140a; }
.social-icon svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }

.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; } .mt-2 { margin-top: 2rem; }
.narrow { max-width: 720px; }
.wide-media {
  width: 100%; max-height: 420px; object-fit: cover; border-radius: 4px;
  border: 1px solid var(--line);
}
ul.check { list-style: none; padding: 0; margin: .75rem 0 0; }
ul.check li {
  position: relative; padding-left: 1.25rem; margin: .35rem 0; color: var(--muted);
}
ul.check li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: .45rem; height: .45rem; border-radius: 50%; background: var(--accent);
}
