/* AHG Global | Commercial Real Estate Advisors */
:root {
  --navy: #161a1d;
  --navy-2: #23292e;
  --ink: #1b2430;
  --muted: #5d6877;
  --line: #e3e6ea;
  --bg: #ffffff;
  --bg-soft: #f3f4f4;
  --gold: #1d4f5f;
  --gold-dark: #1d4f5f;
  --radius: 4px;
  --max: 1180px;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --accent-light: #8cc0cc;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #d9dee6; }
.section--navy h2, .section--navy h3 { color: #fff; }
.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.section--navy .lead { color: #b7c0cc; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

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

/* Buttons */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: .92rem; letter-spacing: .04em; text-decoration: none;
  border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s; cursor: pointer;
}
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-dark); }
.btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(8px);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.logo img { height: 62px; width: auto; }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a { text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="page"] { border-color: var(--gold); }
.nav-links .btn { padding: 10px 20px; border: 0; color: #fff; }
.nav-links .btn:hover { border: 0; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 78px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
    display: none; align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a { margin-top: 14px; text-align: center; border: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
.hero {
  position: relative; color: #fff; min-height: 640px; display: flex; align-items: center;
  background: var(--navy) center/cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(22,26,29,.92) 0%, rgba(22,26,29,.7) 55%, rgba(22,26,29,.35) 100%); }
.hero .container { position: relative; }
.hero h1 { color: #fff; max-width: 760px; }
.hero p { font-size: 1.2rem; color: #d3d9e2; max-width: 580px; margin-bottom: 34px; }

.page-hero { background: var(--navy); color: #fff; padding: 96px 0 72px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border: 1px solid rgba(140,192,204,.25); border-radius: 50%; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #b7c0cc; font-size: 1.15rem; max-width: 620px; margin: 0; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 40px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--serif); font-size: 2.6rem; color: var(--navy); line-height: 1; margin-bottom: 8px; }
.stat span { font-size: .88rem; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* Grids & cards */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 920px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.split img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 14px 40px rgba(22,26,29,.08); transform: translateY(-2px); }
.card .num { font-family: var(--serif); color: var(--gold); font-size: 1.1rem; margin-bottom: 12px; display: block; }
.card p { color: var(--muted); margin: 0; }

/* CEO framework */
.ceo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: rgba(255,255,255,.1); margin-top: 48px; }
.ceo div { background: var(--navy); padding: 40px 32px; }
.ceo .letter { font-family: var(--serif); font-size: 4rem; color: var(--gold); line-height: 1; }
.ceo h3 { margin: 10px 0 8px; }
.ceo p { color: #b7c0cc; margin: 0; }
@media (max-width: 760px) { .ceo { grid-template-columns: 1fr; } }

/* Testimonial */
.quote { max-width: 860px; margin: 0 auto; text-align: center; }
.quote blockquote { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.35; color: var(--navy); margin: 0 0 24px; }
.quote blockquote::before { content: "\201C"; display: block; font-size: 4rem; color: var(--gold); line-height: .6; margin-bottom: 18px; }
.quote cite { font-style: normal; font-weight: 600; }
.quote cite span { display: block; font-weight: 400; color: var(--muted); font-size: .92rem; }

/* Listings */
.listing { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .2s; }
.listing:hover { box-shadow: 0 14px 40px rgba(22,26,29,.1); }
.listing-img { position: relative; aspect-ratio: 4/3; background: var(--bg-soft); overflow: hidden; }
.listing-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.listing:hover .listing-img img { transform: scale(1.04); }
.tag { position: absolute; top: 14px; left: 14px; background: var(--navy); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 2px; }
.listing-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.listing-body h3 { font-size: 1.35rem; margin-bottom: 4px; }
.listing-body .area { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.listing-body a { font-weight: 600; font-size: .88rem; color: var(--gold-dark); text-decoration: none; letter-spacing: .04em; }
.listing-body a:hover { text-decoration: underline; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filters button { font: inherit; font-size: .88rem; padding: 9px 18px; border: 1px solid var(--line); background: #fff; border-radius: 40px; cursor: pointer; color: var(--ink); }
.filters button.active, .filters button:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Team */
.member { text-align: left; }
.member-img { aspect-ratio: 4/5; background: var(--bg-soft); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.member-img img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { margin-bottom: 2px; }
.member .role { color: var(--gold-dark); font-weight: 600; font-size: .9rem; letter-spacing: .04em; margin-bottom: 10px; }
.member .meta { font-size: .9rem; color: var(--muted); }
.member .meta a { color: var(--navy); }

/* Clients / success */
.client { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.client img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--bg-soft); }
.client div { padding: 20px 24px; }
.client h3 { font-size: 1.25rem; margin: 0; }

/* About */
.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; }
.list-clean li::before { content: ""; flex: 0 0 8px; height: 8px; margin-top: 9px; background: var(--gold); transform: rotate(45deg); }
.section--navy .list-clean li { border-color: rgba(255,255,255,.12); }

/* Contact */
.form { display: grid; gap: 18px; }
.form label { font-size: .85rem; font-weight: 600; display: block; margin-bottom: 6px; color: var(--navy); }
.form input, .form textarea, .form select {
  width: 100%; font: inherit; padding: 14px 16px; border: 1px solid #cfd4db; border-radius: var(--radius); background: #fff;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.form textarea { min-height: 150px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .9rem; color: var(--muted); }
.form-status { font-weight: 600; color: var(--navy); }

/* CTA band */
.cta { background: var(--navy-2); color: #fff; padding: 80px 0; }
.cta .container { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0 0 6px; }
.cta p { color: #b7c0cc; margin: 0; }

/* Footer */
.site-footer { background: var(--navy); color: #9aa5b4; padding: 72px 0 32px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.site-footer img { height: 90px; width: auto; margin-bottom: 18px; }
.site-footer h4 { color: #fff; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 16px; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; color: #c9d0da; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .84rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Accent on dark backgrounds */
.section--navy .eyebrow, .page-hero .eyebrow, .hero .eyebrow, .ceo .letter, .site-footer a:hover { color: var(--accent-light); }
.section--navy .list-clean li::before { background: var(--accent-light); }
.quote blockquote::before { color: var(--gold); }

/* ---------- Dropdown menus ---------- */
.nav-links .has-sub { position: relative; }
.nav-links .has-sub > a { display: inline-flex; align-items: center; gap: 6px; }
.caret { width: 10px; height: 6px; transition: transform .2s; }
.nav-links .sub {
  list-style: none; margin: 0; padding: 10px 0;
  position: absolute; top: 100%; left: -18px; min-width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(22,26,29,.12);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s; z-index: 60;
}
.nav-links .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 22px; } /* hover bridge */
.nav-links .sub a { display: block; padding: 10px 20px; border: 0; font-size: .9rem; white-space: nowrap; }
.nav-links .sub a:hover { background: var(--bg-soft); color: var(--gold); border: 0; }
@media (min-width: 921px) {
  .nav-links .has-sub:hover .sub, .nav-links .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translateY(12px); }
  .nav-links .has-sub:hover .caret, .nav-links .has-sub:focus-within .caret { transform: rotate(180deg); }
}
@media (max-width: 920px) {
  .nav-links .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 16px; min-width: 0; }
  .nav-links .sub::before { display: none; }
  .nav-links .sub a { padding: 10px 0; font-size: .88rem; color: var(--muted); border-bottom: 1px solid var(--line); }
  .nav-links .sub li:last-child a { margin-top: 0; text-align: left; }
  .caret { display: none; }
  .nav-links .has-sub > a { display: flex; }
  .nav-links { max-height: calc(100vh - 78px); overflow-y: auto; }
}

/* ---------- Anchors under the sticky header ---------- */
[id] { scroll-margin-top: 100px; }

/* ---------- Linked cards (home) ---------- */
.card--link { display: block; text-decoration: none; color: inherit; }
.card--link .more { display: inline-block; margin-top: 16px; font-weight: 600; font-size: .88rem; color: var(--gold); }

/* ---------- Service accordions ---------- */
.accordion { display: grid; gap: 16px; }
.acc { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .2s, border-color .2s; }
.acc[open] { border-color: var(--gold); box-shadow: 0 14px 40px rgba(22,26,29,.07); }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; gap: 22px; padding: 28px 32px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .num { font-family: var(--serif); color: var(--gold); font-size: 1.1rem; padding-top: 4px; min-width: 24px; }
.acc-head { flex: 1; }
.acc-head h3 { margin: 0 0 4px; }
.acc-head h4 { margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--navy); }
.acc-sum { color: var(--muted); display: block; }
.acc-icon { position: relative; flex: 0 0 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; margin-top: 4px; transition: background .2s, border-color .2s; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--navy); transform: translate(-50%, -50%); transition: transform .2s, opacity .2s; }
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc[open] > summary .acc-icon { background: var(--gold); border-color: var(--gold); }
.acc[open] > summary .acc-icon::before { background: #fff; }
.acc[open] > summary .acc-icon::after { opacity: 0; }
.acc summary:hover .acc-icon { border-color: var(--gold); }
.acc-body { padding: 0 32px 28px 78px; }
.bullets { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.bullets li { position: relative; padding-left: 22px; color: var(--ink); }
.bullets li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
/* nested (Strategic Implementation categories) */
.acc--sub { border-radius: var(--radius); margin-bottom: 10px; background: var(--bg-soft); border-color: transparent; }
.acc--sub[open] { box-shadow: none; background: #fff; border-color: var(--line); }
.acc--sub summary { padding: 16px 20px; align-items: center; }
.acc--sub .acc-icon { flex-basis: 24px; height: 24px; margin-top: 0; }
.acc--sub .acc-body { padding: 0 20px 18px 20px; }
@media (max-width: 640px) {
  .acc summary { padding: 22px 18px; gap: 14px; }
  .acc-body { padding: 0 18px 22px 18px; }
  .acc--sub summary { padding: 14px 16px; }
  .acc--sub .acc-body { padding: 0 16px 16px; }
}

/* ---------- Success story cards ---------- */
:root { --case-teal: #4290ab; }
.story { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.story:hover { box-shadow: 0 16px 44px rgba(22,26,29,.12); transform: translateY(-3px); }
.story-logo { background: var(--case-teal); height: 96px; display: flex; align-items: center; justify-content: center; padding: 18px 28px; }
.story-logo img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.story-img { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-soft); }
.story-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.story:hover .story-img img { transform: scale(1.04); }
.story-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.story-meta { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.story-body h3 { margin-bottom: 8px; }
.story-body p { color: var(--muted); font-size: .95rem; }
.story-body .more { margin-top: auto; font-weight: 600; font-size: .88rem; color: var(--gold); }

/* ---------- Case study pages ---------- */
.page-hero .back { display: table; color: #b7c0cc; text-decoration: none; font-size: .88rem; margin-bottom: 22px; }
.page-hero .back:hover { color: #fff; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.chips span { border: 1px solid rgba(255,255,255,.3); color: #fff; padding: 6px 14px; border-radius: 40px; font-size: .85rem; }
.case-top { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: stretch; margin-bottom: 64px; }
.case-photo img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); }
.case-side { display: flex; flex-direction: column; gap: 24px; }
.story-logo--lg { height: 150px; border-radius: var(--radius); padding: 28px 36px; }
.facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .88rem; }
.facts dd { margin: 0; font-weight: 600; color: var(--navy); text-align: right; }
.case-side .btn { align-self: flex-start; }
.cas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cas-col { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: #fff; }
.cas-col h2 { font-size: 1.7rem; margin-bottom: 18px; }
.cas-num { display: block; font-family: var(--serif); color: var(--gold); margin-bottom: 6px; }
.cas-col--dark { background: var(--navy); border-color: var(--navy); }
.cas-col--dark h2, .cas-col--dark .bullets li { color: #fff; }
.cas-col--dark .cas-num { color: var(--accent-light); }
.cas-col--dark .bullets li::before { background: var(--accent-light); }
.quote--long blockquote { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.55; text-align: left; }
.quote--long blockquote p { margin: 0 0 1em; }
.quote--long blockquote::before { text-align: center; }
.case-nav-wrap { padding: 56px 0; }
.case-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; }
.case-nav a { text-decoration: none; color: var(--navy); font-family: var(--serif); font-size: 1.3rem; }
.case-nav a span { display: block; font-family: var(--sans); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.case-nav a:hover { color: var(--gold); }
.case-nav .all { font-family: var(--sans); font-size: .9rem; font-weight: 600; border: 1px solid var(--navy); padding: 12px 22px; border-radius: var(--radius); }
.case-nav .next { text-align: right; }
@media (max-width: 920px) {
  .case-top { grid-template-columns: 1fr; }
  .cas { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .case-nav { grid-template-columns: 1fr 1fr; }
  .case-nav .all { grid-column: 1 / -1; grid-row: 2; text-align: center; }
  .case-nav a { font-size: 1.05rem; }
}

/* ---------- Full-width top bar (desktop) ---------- */
@media (min-width: 921px) {
  .site-header .nav.container { max-width: none; padding: 0; height: 84px; justify-content: flex-start; }
  .site-header .logo { height: 100%; display: flex; align-items: center; padding: 0 44px; border-right: 1px solid var(--line); }
  .nav-links { flex: 1; height: 100%; gap: 0; padding-left: 28px; }
  .nav-links > li { height: 100%; display: flex; align-items: center; }
  .nav-links > li > a { height: 100%; display: flex; align-items: center; padding: 0 26px; font-size: 1rem; border-top: 3px solid transparent; border-bottom: 3px solid transparent; }
  .nav-links > li > a:hover { border-bottom-color: var(--line); }
  .nav-links > li > a[aria-current="page"] { border-bottom-color: var(--gold); border-top-color: transparent; }
  .nav-links > li > a:hover { border-top-color: transparent; }
  .nav-links > li.nav-cta { margin-left: auto; padding: 0 32px; border-left: 1px solid var(--line); }
  .nav-links > li.nav-cta > a { height: auto; padding: 15px 30px; border: 0; }
  .nav-links .sub { top: 100%; left: 0; transform: translateY(8px); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
  .nav-links .has-sub:hover .sub, .nav-links .has-sub:focus-within .sub { transform: translateY(0); }
  .nav-links .sub::before { display: none; }
}
@media (min-width: 921px) and (max-width: 1150px) {
  .site-header .logo { padding: 0 28px; }
  .nav-links { padding-left: 8px; }
  .nav-links > li > a { padding: 0 16px; }
  .nav-links > li.nav-cta { padding: 0 20px; }
}

/* ---------- Mega menus (Services, Success Stories) ---------- */
.mega { display: none; }
.nav-links .sub--mobile { display: none; }
.arr { width: 14px; height: 10px; flex: 0 0 14px; transition: transform .2s; }
@media (min-width: 921px) {
  .nav-links > li.has-mega { position: static; }
  .nav-links > li.has-mega > a { gap: 6px; }
  .mega {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: #121619; color: #fff; box-shadow: 0 30px 60px rgba(0,0,0,.25);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease .1s, transform .25s ease .1s, visibility 0s linear .35s;
    z-index: 60;
  }
  .has-mega:hover > .mega, .has-mega:focus-within > .mega {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .25s ease .08s, transform .25s ease .08s, visibility 0s;
  }
  .has-mega:hover > a .caret, .has-mega:focus-within > a .caret { transform: rotate(180deg); }
  .mega-inner { max-width: 1320px; margin: 0 auto; padding: 52px 44px 44px; }
  .mega-grid { display: grid; gap: 44px; }
  .mega-grid--5 { grid-template-columns: repeat(5, 1fr); }
  .mega-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 32px 36px; }
  .mega a { border: 0 !important; height: auto !important; }
  .mega-item, .mega-story { display: block; color: #fff; text-decoration: none; opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .35s ease; }
  .has-mega:hover .mega-item, .has-mega:hover .mega-story, .has-mega:focus-within .mega-item, .has-mega:focus-within .mega-story { opacity: 1; transform: none; }
  .mega-grid > :nth-child(2) { transition-delay: .04s; } .mega-grid > :nth-child(3) { transition-delay: .08s; }
  .mega-grid > :nth-child(4) { transition-delay: .12s; } .mega-grid > :nth-child(5) { transition-delay: .16s; }
  .mega-grid > :nth-child(6) { transition-delay: .2s; } .mega-grid > :nth-child(7) { transition-delay: .24s; }
  .mega-grid > :nth-child(8) { transition-delay: .28s; }
  .mega-icon { width: 36px; height: 36px; color: var(--accent-light); transition: transform .25s, color .25s; }
  .mega-title { display: flex; align-items: center; gap: 10px; margin: 20px 0 12px; font-size: .9rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; line-height: 1.4; color: #fff; }
  .mega-desc { display: block; color: #a3adb8; font-size: .92rem; line-height: 1.6; }
  .mega-item:hover .mega-icon { transform: translateY(-3px); color: #fff; }
  .mega-item:hover .mega-title, .mega-story:hover .mega-title { color: var(--accent-light); }
  .mega-item:hover .arr, .mega-story:hover .arr, .mega-all:hover .arr { transform: translateX(4px); }
  .mega-all { display: inline-flex !important; align-items: center; gap: 12px; margin-top: 40px; color: #fff; text-decoration: none; font-size: 1rem; padding: 0 !important; }
  .mega-all:hover { color: var(--accent-light); }
  /* Success story tiles */
  .mega-logo { display: flex; align-items: center; justify-content: center; height: 76px; padding: 14px 22px; background: var(--case-teal); border-radius: var(--radius); transition: filter .25s; }
  .mega-logo img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
  .mega-story .mega-title { margin: 14px 0 4px; font-size: .82rem; }
  .mega-story .mega-desc { font-size: .85rem; }
  .mega-story:hover .mega-logo { filter: brightness(1.1); }
  .mega-story--all { display: flex !important; flex-direction: column; justify-content: center; border: 1px solid rgba(255,255,255,.15) !important; border-radius: var(--radius); padding: 20px 22px !important; }
  .mega-story--all .mega-title { margin-top: 0; }
}
@media (min-width: 921px) and (max-width: 1250px) {
  .nav-links > li > a { padding: 0 14px; font-size: .93rem; }
  .site-header .logo { padding: 0 26px; }
  .nav-links { padding-left: 6px; }
  .nav-links > li.nav-cta { padding: 0 18px; }
  .nav-links > li.nav-cta > a { padding: 13px 20px; }
  .mega-grid--5 { gap: 28px; }
}
@media (max-width: 920px) {
  .nav-links .sub--mobile { display: block; list-style: none; padding: 0 0 8px 16px; margin: 0; }
  .nav-links .sub--mobile a { display: block; padding: 10px 0; font-size: .88rem; color: var(--muted); border-bottom: 1px solid var(--line); margin: 0; text-align: left; }
  .nav-links .has-mega > a { display: flex; }
}

/* ---------- In the Media page ---------- */
.media-feature-img { position: relative; display: block; border-radius: var(--radius); overflow: hidden; }
.media-feature-img img { width: 100%; height: auto; max-height: none; transition: transform .4s; }
.media-feature-img:hover img { transform: scale(1.03); }
.play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.play::after { content: ""; position: absolute; left: 31px; top: 24px; border-left: 20px solid var(--navy); border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.media-list { display: grid; gap: 0; border-top: 1px solid var(--line); background: #fff; border-radius: var(--radius); }
.media-item { display: grid; grid-template-columns: 130px 1fr 220px 20px; gap: 24px; align-items: center; padding: 22px 26px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background .2s; }
.media-item:hover { background: #fafbfb; }
.media-item:hover .media-title { color: var(--gold); }
.media-item:hover .arr { transform: translateX(4px); }
.media-kind { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.media-title { font-family: var(--serif); font-size: 1.2rem; color: var(--navy); line-height: 1.3; transition: color .2s; }
.media-outlet { color: var(--muted); font-size: .9rem; }
.media-item .arr { color: var(--navy); }
@media (max-width: 760px) {
  .media-item { grid-template-columns: 1fr 20px; gap: 6px 14px; padding: 18px; }
  .media-kind { grid-column: 1; }
  .media-title { grid-column: 1; }
  .media-outlet { grid-column: 1; }
  .media-item .arr { grid-column: 2; grid-row: 1 / span 3; }
}
@media (min-width: 921px) {
  .nav-links .mega a { color: #fff; }
  .nav-links .mega a:hover { color: #fff; }
  .nav-links .mega-all:hover { color: var(--accent-light); }
  .mega-title { display: block; }
  .mega-title .arr { display: inline-block; vertical-align: middle; margin-left: 8px; position: relative; top: -1px; }
}

/* About: headshot shown at its natural proportions */
.split img.portrait { width: 100%; max-width: 460px; height: auto; max-height: none; aspect-ratio: 942 / 1080; object-fit: cover; object-position: center top; justify-self: center; }

/* ---------- Success stories by type ---------- */
.story-img { position: relative; }
.story .tag { z-index: 1; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }
.facts dd a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 921px) {
  .mega-col-head { display: block; }
  .mega-col-head .mega-title { margin-top: 0; }
  .mega-col-head:hover .mega-title { color: var(--accent-light); }
  .mega-col-head:hover .arr { transform: translateX(4px); }
  .mega-list { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(255,255,255,.12); }
  .mega-list a { display: flex !important; justify-content: space-between; gap: 12px; padding: 7px 0 !important; font-size: .95rem; color: #fff; text-decoration: none; transition: color .2s, padding .2s; }
  .mega-list a:hover { color: var(--accent-light) !important; padding-left: 4px !important; }
  .mega-sf { color: #7f8a96; font-size: .85rem; white-space: nowrap; }
  .mega-col { opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .35s ease; }
  .has-mega:hover .mega-col, .has-mega:focus-within .mega-col { opacity: 1; transform: none; }
}

/* Case study: full-width photo with stat bar (no empty side column) */
.case-top { display: block; margin-bottom: 56px; }
.case-photo img { width: 100%; height: 440px; max-height: none; object-fit: cover; object-position: center 35%; border-radius: var(--radius) var(--radius) 0 0; display: block; }
.case-stats { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--navy); border-radius: 0 0 var(--radius) var(--radius); }
.case-stats div { padding: 26px 32px; border-right: 1px solid rgba(255,255,255,.12); }
.case-stats div:last-child { border-right: 0; }
.case-stats dt { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 6px; }
.case-stats dd { margin: 0; font-family: var(--serif); font-size: 1.5rem; color: #fff; line-height: 1.2; }
.case-stats dd a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.case-stats dd a:hover { border-color: #fff; }
@media (max-width: 760px) {
  .case-photo img { height: 260px; }
  .case-stats { grid-template-columns: 1fr; }
  .case-stats div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); padding: 18px 22px; }
}

/* Services: header photo + photo inside each opened service */
.page-hero--photo { background-color: var(--navy); background-size: cover; background-position: center 40%; padding: 120px 0 100px; }
.page-hero--photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(22,26,29,.92) 0%, rgba(22,26,29,.78) 50%, rgba(22,26,29,.45) 100%); }
.page-hero--photo .container { position: relative; z-index: 1; }
.acc-body--photo { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.acc-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; background: var(--bg-soft); }
.acc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.acc[open] > .acc-body .acc-photo img { animation: accPhotoIn .6s ease both; }
@keyframes accPhotoIn { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .acc-body--photo { grid-template-columns: 1fr; gap: 24px; }
  .acc-body--photo .acc-photo { order: -1; }
}

/* ---------- Resume page ---------- */
.resume { display: grid; grid-template-columns: 320px 1fr; gap: 64px; align-items: start; }
.resume-photo { width: 100%; aspect-ratio: 942 / 1080; object-fit: cover; object-position: center top; border-radius: var(--radius); margin-bottom: 24px; }
.resume-contact { margin-bottom: 32px; }
.resume-contact dd a { color: var(--navy); }
.resume-h { font-size: 1.25rem; margin: 0 0 12px; padding-top: 4px; }
.resume-edu { color: var(--ink); margin-bottom: 32px; }
.resume-side .bullets li { font-size: .95rem; }
.resume-profile p { font-size: 1.05rem; line-height: 1.75; }
.resume-profile strong { color: var(--navy); }
.awards { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; border-top: 1px solid var(--line); }
.awards li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.aw-title { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); line-height: 1.3; }
.aw-src { font-size: .85rem; color: var(--muted); }
.deals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; margin-top: 36px; background: #fff; border-radius: var(--radius); padding: 12px 32px; border: 1px solid var(--line); }
.deal { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; padding: 14px 0; border-bottom: 1px solid var(--line); column-gap: 16px; }
.deal-name { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); }
.deal-ind { grid-row: 2; font-size: .82rem; color: var(--muted); }
.deal-sf { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-weight: 600; color: var(--gold); font-variant-numeric: tabular-nums; }
.deals-more { margin-top: 24px; color: var(--muted); }
@media (max-width: 920px) {
  .resume { grid-template-columns: 1fr; gap: 40px; }
  .resume-photo { max-width: 320px; }
}
@media (max-width: 640px) {
  .awards, .deals { grid-template-columns: 1fr; }
  .deals { padding: 8px 18px; }
}
.listing-img img[src$="445-s-beverly.jpg"] { object-position: center 15%; }
