/* ============================================
   ABV & Company — Design System
   Palette: Deep navy + warm paper + ABV orange accent
   Type: Source Serif 4 (display) + Inter (body/UI)
   ============================================ */

:root {
  /* ---- Dark Premium palette ----
     --navy / --navy-soft  : now used as the LIGHT heading + nav-text tones (kept the
                              original variable names so every existing rule below still
                              resolves correctly — only the values changed).
     --surface-deep         : the darkest structural bands (topbar, hero, footer, .section-navy)
     --paper / --paper-deep : the two base section tones content sits on
     --panel                : glass card surface (translucent) — the signature "ledger glass" look
  */
  --navy: #EDEFF3;
  --navy-soft: #C7D0DC;
  --surface-deep: #050B18;
  --paper: #0A1626;
  --paper-deep: #0E2038;
  --orange: #C9973C;
  --orange-deep: #E7C077;
  --ink: #E7E9EC;
  --ink-soft: #93A0B0;
  --line: rgba(255,255,255,0.10);
  --line-dark: rgba(255,255,255,0.16);
  --white: #FFFFFF;

  --panel: rgba(255,255,255,0.045);
  --panel-border: rgba(255,255,255,0.10);
  --gold: #C9973C;
  --gold-bright: #E7C077;

  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --abv-container: 1180px;
  --radius: 2px;
}

/* Best-effort: some WordPress themes automatically render their own
   page title / header banner above the page content. This tries to hide
   the common ones. Harmless if none of these exist on your theme. */
.entry-header,
.wp-block-post-title,
.wp-block-template-part,
h1.entry-title,
.entry-title,
#page-header,
.site-header-title,
.ast-container > .page-header,
.page-title-wrap,
.elementor-location-header {
  display: none !important;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Escape hatch: forces this whole design to span the true viewport width
   even when a WordPress theme wraps page content in a narrower column. */
.abv-page-wrap {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none !important; }

.abv-container {
  max-width: var(--abv-container);
  margin: 0 auto;
  padding: 0 32px;
}

/* Full-width variant used for header, hero and footer per site brief */
.abv-container-wide {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 56px;
}
@media (max-width: 640px) {
  .abv-container-wide { padding: 0 24px; }
}

/* ---------- Typography ---------- */

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

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.08rem; }

p { color: var(--ink-soft); }

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  font-weight: 400;
  max-width: 640px;
  line-height: 1.6;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: var(--orange);
}

/* ---------- Top bar ---------- */

.topbar {
  background: var(--surface-deep);
  color: #C9D2E0;
  font-size: 0.82rem;
  font-family: var(--sans);
}

.topbar .abv-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar a { color: #C9D2E0; }
.topbar a:hover { color: var(--orange); }

.topbar-left { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar-left span { white-space: nowrap; }

/* ---------- Header / Nav ---------- */

header.main {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 42px;
  width: auto;
  display: block;
}

footer .logo img {
  height: 34px;
  filter: brightness(0) invert(1);
}

.logo .mark {
  color: var(--orange);
}

.logo .sub {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-left: 1px solid var(--line);
  padding-left: 10px;
  margin-left: 2px;
}

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

nav.primary a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
  position: relative;
  padding: 4px 0;
}

nav.primary a:hover { color: var(--orange-deep); }

nav.primary a.active {
  color: var(--orange-deep);
}

nav.primary a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
}

.abv-btn-nav {
  background: var(--surface-deep);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

.abv-btn-nav:hover { background: var(--orange-deep); color: var(--white) !important; }

/* dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: -20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  min-width: 320px;
  padding: 14px;
  display: none;
  box-shadow: 0 12px 28px rgba(2,4,7,0.10);
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.has-dropdown:hover .dropdown { display: grid; }
.dropdown a {
  display: block;
  padding: 9px 12px;
  font-size: 0.85rem;
  border-radius: var(--radius);
  color: var(--ink);
}
.dropdown a:hover { background: var(--paper-deep); color: var(--orange-deep); }
.dropdown .cluster-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-deep);
  padding: 10px 12px 4px;
}

/* ---------- Buttons ---------- */

.abv-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.abv-btn-primary {
  background: var(--orange);
  color: var(--white);
}
.abv-btn-primary:hover { background: var(--orange-deep); }

.abv-btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.abv-btn-ghost:hover { background: var(--surface-deep); color: var(--white); }

.abv-btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.abv-btn-ghost-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

/* ---------- Hero ---------- */

.hero {
  background: var(--surface-deep);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 90px 0 70px;
}

.hero::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(224,130,20,0.18);
  border-radius: 50%;
}

.hero::before {
  content: "";
  position: absolute;
  top: -25%;
  right: 4%;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(224,130,20,0.12);
  border-radius: 50%;
}

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

.hero h1 { color: var(--white); max-width: 760px; }

.hero .lede { color: #B9C3D6; max-width: 580px; margin-top: 20px; }

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-eyebrow {
  color: var(--orange);
}
.hero-eyebrow::before { background: var(--orange); }

/* ---------- Page header (non-home) ---------- */

.abv-page-header {
  background: var(--surface-deep);
  color: var(--white);
  padding: 48px 0 40px;
  position: relative;
  overflow: hidden;
}
.abv-page-header::after {
  content: "";
  position: absolute;
  top: -60%;
  right: -8%;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(224,130,20,0.15);
  border-radius: 50%;
}
.abv-page-header .abv-container { position: relative; z-index: 2; }
.abv-page-header h1 { color: var(--white); font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.abv-page-header .lede { color: #B9C3D6; margin-top: 14px; }

.header-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .header-split { grid-template-columns: 1fr; }
}
.header-split-media img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 24px 55px rgba(0,0,0,0.35);
  transition: transform 0.5s ease;
}
.header-split-media:hover img { transform: scale(1.03); }
@media (max-width: 900px) {
  .header-split-media img { height: 200px; margin-top: 8px; }
}
.breadcrumb {
  font-size: 0.8rem;
  color: #8FA0BD;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}
.breadcrumb a { color: #8FA0BD; }
.breadcrumb a:hover { color: var(--orange); }

/* ---------- Sections ---------- */

section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-paper { background: var(--paper); }
.section-deep { background: var(--paper-deep); }
.section-navy { background: var(--surface-deep); color: var(--white); }
.section-navy h2, .section-navy h3, .section-navy h4 { color: var(--white); }
.section-navy p { color: #B9C3D6; }
.section-navy .eyebrow { color: var(--orange); }
.section-navy .eyebrow::before { background: var(--orange); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.section-head h2 { margin-bottom: 0; max-width: 600px; }

/* ---------- Stats band ---------- */

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 56px;
}

.stat-cell {
  background: var(--panel);
  padding: 28px 24px;
  text-align: left;
}

.stat-cell .num {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.stat-cell .num .orange { color: var(--orange); }

.stat-cell .label {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

.stats-band-dark {
  background: var(--line-dark);
  border-color: var(--line-dark);
}
.stats-band-dark .stat-cell { background: var(--navy-soft); }
.stats-band-dark .stat-cell .num { color: var(--white); }
.stats-band-dark .stat-cell .label { color: #B9C3D6; }

/* ---------- Capability Index (signature element) ---------- */

.capability-index {
  border: 1px solid var(--line);
  background: var(--panel);
}

.capability-group {
  border-bottom: 1px solid var(--line);
}
.capability-group:last-child { border-bottom: none; }

.capability-group-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 28px;
  background: var(--paper-deep);
}

.capability-group-head .letter {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--orange);
  width: 36px;
}

.capability-group-head .meta h3 { margin-bottom: 2px; font-size: 1.15rem; }
.capability-group-head .meta span {
  font-size: 0.8rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.capability-rows { }

.capability-row {
  display: grid;
  grid-template-columns: 90px 1fr 1fr 36px;
  gap: 20px;
  align-items: center;
  padding: 18px 28px;
  border-top: 1px solid var(--line);
  transition: background 0.15s ease;
}
.capability-row:hover { background: rgba(255,255,255,0.045); }
.capability-row a.row-link {
  position: absolute; inset: 0;
}
.capability-row { position: relative; }

.capability-row .idx {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.capability-row .name {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.98rem;
}

.capability-row .desc {
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.capability-row .arrow {
  color: var(--orange);
  font-size: 1.1rem;
  text-align: right;
  transition: transform 0.15s ease;
}
.capability-row:hover .arrow { transform: translateX(4px); }

@media (max-width: 820px) {
  .capability-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 20px; }
  .capability-row .idx { display: none; }
  .capability-row .arrow { display: none; }
}

/* ---------- Capability cards (icon + hover animation) ---------- */

.capability-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 26px 28px 30px;
}
@media (max-width: 1024px) {
  .capability-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .capability-cards { grid-template-columns: 1fr; padding: 22px 18px 26px; gap: 16px; }
}

.capability-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 24px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.capability-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,151,60,0.07), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.capability-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(2,4,7,0.14);
  border-color: var(--orange);
}

.capability-card:hover::before { opacity: 1; }

.capability-card .abv-card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.cap-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--paper-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
  transition: transform 0.45s cubic-bezier(.34,1.56,.64,1), background 0.35s ease;
}

.cap-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--orange-deep);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.35s ease;
}

.capability-card:hover .cap-icon {
  background: var(--orange);
  transform: scale(1.14) rotate(-8deg);
}

.capability-card:hover .cap-icon svg { stroke: var(--white); }

.capability-card .idx {
  font-family: var(--serif);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange-deep);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.capability-card .cap-name {
  font-size: 1.04rem;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.capability-card .cap-desc {
  font-size: 0.87rem;
  color: var(--ink-soft);
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

.capability-card .cap-arrow {
  display: inline-flex;
  margin-top: 16px;
  color: var(--orange-deep);
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.capability-card:hover .cap-arrow { transform: translateX(6px); }

/* ---------- Cards ---------- */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Insight cards (Insights / blog listing) ---------- */

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .insight-grid { grid-template-columns: 1fr; } }

.insight-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 28px 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.insight-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--navy-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s ease;
}
.insight-card:hover::before { transform: scaleX(1); }
.insight-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(2,4,7,0.14);
  border-color: transparent;
}

.insight-tag {
  display: inline-block;
  font-family: var(--serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-deep);
  background: var(--paper-deep);
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.insight-card h3 {
  font-size: 1.05rem;
  line-height: 1.42;
  margin-bottom: 12px;
}

.insight-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.insight-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.insight-author {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.insight-readmore {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--orange-deep);
  transition: transform 0.3s ease;
  display: inline-flex;
  white-space: nowrap;
}
.insight-card:hover .insight-readmore { transform: translateX(4px); }

.abv-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: 10px;
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.abv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(2,4,7,0.14);
  border-color: var(--orange);
}

.abv-card .icon-tag {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
  transition: color 0.3s ease;
}

.abv-card:hover .icon-tag { color: var(--orange-deep); }

.abv-card h3 { margin-bottom: 10px; }
.abv-card p { font-size: 0.92rem; }
.abv-card ul { margin-top: 14px; padding-left: 0; list-style: none; font-size: 0.88rem; color: var(--ink-soft); }
.abv-card ul li { padding: 5px 0 5px 18px; position: relative; }
.abv-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 7px; height: 1px;
  background: var(--orange);
}

/* ---------- Service detail page blocks ---------- */

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  padding: 56px 32px;
  border-bottom: 1px solid var(--line);
  border-radius: 12px;
}
.service-block:last-child { border-bottom: none; }
.service-block:nth-child(even) { background: var(--paper-deep); }

@media (max-width: 900px) {
  .service-block { grid-template-columns: 1fr; gap: 28px; padding: 32px 20px; }
}

.service-block .index-num {
  display: inline-block;
  font-family: var(--serif);
  font-size: 0.72rem;
  color: var(--orange-deep);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  font-weight: 700;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 20px;
}
.service-block:nth-child(even) .index-num { background: var(--paper); }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 30px;
  color: var(--navy);
  background: var(--paper);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.tag:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.check-list { list-style: none; padding: 0; }
.check-list li {
  padding: 10px 0 10px 28px;
  position: relative;
  font-size: 0.94rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.3s ease, color 0.3s ease;
}
.check-list li:hover {
  padding-left: 34px;
  color: var(--orange-deep);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 19px;
  width: 12px; height: 1px;
  background: var(--orange);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 5px; top: 14px;
  width: 1px; height: 11px;
  background: var(--orange);
}

.img-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.img-frame img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}
.img-frame:hover img { transform: scale(1.04); }

/* ---------- Team section (homepage leadership grid) ---------- */

.team-section { padding: 84px 0; }

.team-eyebrow {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 14px;
}

.team-heading {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  text-align: center;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.team-subheading {
  max-width: 640px;
  margin: 16px auto 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 52px;
}
@media (max-width: 1024px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }

.associate-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.associate-grid .team-card {
  flex: 0 1 calc(25% - 18px);
  min-width: 220px;
}
@media (max-width: 1024px) { .associate-grid .team-card { flex-basis: calc(33.333% - 16px); } }
@media (max-width: 700px) { .associate-grid .team-card { flex-basis: 100%; } }
@media (max-width: 768px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr; } }

.team-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  aspect-ratio: 3 / 4;
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(2,4,7,0.18);
  border-color: var(--orange);
}

.team-card-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.team-card:hover img { transform: scale(1.07); }

.team-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 18px;
  background: linear-gradient(to top, rgba(2,4,7,0.94), rgba(2,4,7,0.6) 65%, transparent);
  color: var(--white);
  transform: translateY(56%);
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1);
}
.team-card:hover .team-overlay { transform: translateY(0); }

.team-role {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
}

.team-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--white);
  margin: 6px 0 6px;
}

.team-desc {
  font-size: 0.82rem;
  color: #D7E0EC;
  line-height: 1.5;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease 0.1s, max-height 0.3s ease;
}
.team-card:hover .team-desc { opacity: 1; max-height: 100px; }

.team-social {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.3s ease, transform 0.3s ease;
}
.team-social a { color: var(--navy); font-size: 0.9rem; display: flex; }
.team-social:hover { background: var(--orange); transform: scale(1.08); }
.team-social:hover a { color: var(--white); }

.team-cta {
  text-align: center;
  margin-top: 48px;
}

.team-cta-label {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.associate-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ---------- Team modal (bio popup) ---------- */

.team-modal-content {
  display: none;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background: #f8fafc;
}

/* Leadership profile content rendered inside the popup */

.abv-profile-section {
  width: 100%;
  padding: 60px 40px;
  background: #f8fafc;
  font-family: 'Plus Jakarta Sans', sans-serif;
  box-sizing: border-box;
}

.abv-profile-container {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 44px;
  align-items: start;
}

.abv-profile-image { position: relative; }

.abv-profile-image img {
  width: 100%;
  border-radius: 24px;
  display: block;
  object-fit: cover;
  box-shadow: 0 20px 45px rgba(15,23,42,0.14);
}

.abv-badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: linear-gradient(135deg,#C9973C,#E7C077);
  padding: 12px 18px;
  border-radius: 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(201,151,60,0.28);
}

.abv-profile-content h5 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #C9973C;
  margin-bottom: 14px;
}

.abv-profile-content h2 {
  font-size: 2.2rem;
  line-height: 1.15;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.abv-profile-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 22px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.abv-expertise {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.abv-expertise span {
  background: #fff;
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  box-shadow: 0 6px 18px rgba(15,23,42,0.06);
}

.abv-profile-content p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: #475569;
  margin-bottom: 16px;
}

.abv-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg,#C9973C,#E7C077);
  padding: 14px 24px;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  transition: 0.35s ease;
  margin-top: 8px;
  box-shadow: 0 12px 28px rgba(201,151,60,0.22);
}
.abv-profile-btn:hover {
  transform: translateY(-3px);
  color: #fff;
  box-shadow: 0 16px 36px rgba(201,151,60,0.30);
}

@media (max-width: 820px) {
  .abv-profile-container { grid-template-columns: 1fr; }
  .abv-profile-image { max-width: 320px; margin: 0 auto; }
  .abv-profile-content { text-align: center; }
  .abv-expertise { justify-content: center; }
  .abv-profile-content h2 { font-size: 1.8rem; }
}

@media (max-width: 600px) {
  .abv-profile-section { padding: 40px 20px; }
  .abv-profile-content h2 { font-size: 1.5rem; }
  .abv-profile-content h3 { font-size: 0.95rem; }
  .abv-profile-content p { font-size: 0.88rem; line-height: 1.75; }
}

.team-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2,4,7,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
  padding: 24px;
}
.team-modal-overlay.active { opacity: 1; visibility: visible; }

.team-modal-box {
  position: relative;
  width: 100%;
  max-width: 920px;
  height: 82vh;
  background: var(--panel);
  border-radius: 12px;
  overflow: hidden;
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}
.team-modal-overlay.active .team-modal-box { transform: scale(1); }

.team-modal-box iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.team-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-deep);
  color: var(--white);
  border: none;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}
.team-modal-close:hover { background: var(--orange); }

/* ---------- Leadership / People ---------- */

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .people-grid { grid-template-columns: 1fr; } }
@media (min-width: 901px) and (max-width: 1180px) { .people-grid { grid-template-columns: repeat(2, 1fr); } }

.person-card {
  background: var(--panel);
  border: 1px solid var(--line);
}

.person-photo {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: var(--paper-deep);
  border-bottom: 3px solid var(--orange);
}

.person-body { padding: 24px; }
.person-body h3 { margin-bottom: 2px; font-size: 1.15rem; }
.person-cred {
  font-size: 0.8rem;
  color: var(--orange-deep);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.person-role {
  font-size: 0.84rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 12px;
}
.person-body p { font-size: 0.88rem; line-height: 1.6; }

.person-expand {
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-deep);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none; border: none; padding: 0;
}

.person-more { display: none; margin-top: 12px; }
.person-more.open { display: block; }

/* ---------- Timeline ---------- */

.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
  margin-top: 56px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 9px; left: 0; right: 0;
  height: 1px;
  background: var(--line);
}
.timeline-item {
  position: relative;
  padding-top: 32px;
  padding-right: 20px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  top: 4px; left: 0;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--orange);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--orange);
}
.timeline-item .year {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.15rem;
  display: block;
  margin-bottom: 8px;
}
.timeline-item p { font-size: 0.84rem; }

@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 28px; }
  .timeline::before { top: 0; bottom: 0; left: 5px; right: auto; width: 1px; height: auto; }
  .timeline-item { padding-top: 0; padding-left: 28px; }
  .timeline-item::before { top: 6px; left: 0; }
}

/* ---------- Industries / audience ---------- */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 40px;
}
.audience-cell {
  background: var(--panel);
  padding: 36px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}
.audience-cell:hover {
  background: var(--paper);
  box-shadow: inset 3px 0 0 var(--orange);
  z-index: 2;
}
.audience-cell h3 { margin-bottom: 10px; }
.audience-cell p { font-size: 0.92rem; }
@media (max-width: 900px) { .audience-grid { grid-template-columns: 1fr; } }

/* ---------- Quote / testimonial ---------- */

.quote-block {
  border-left: 3px solid var(--orange);
  padding-left: 28px;
  margin: 0;
}
.quote-block p.qtext {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.6;
  margin-bottom: 16px;
}
.quote-block .qauthor {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}
.quote-block .qrole {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ---------- Testimonial slider ---------- */

.testimonial-slider {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.testimonial-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(.65,0,.35,1);
}

.testimonial-slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 4px;
}

.testimonial-slide .abv-card { height: 100%; }

.ts-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.ts-arrow:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  transform: translateY(-50%) scale(1.08);
}
.ts-prev { left: -58px; }
.ts-next { right: -58px; }

@media (max-width: 900px) {
  .ts-prev { left: 4px; }
  .ts-next { right: 4px; }
  .ts-arrow { width: 36px; height: 36px; font-size: 1.2rem; background: rgba(255,255,255,0.85); }
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
}

.ts-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--line);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.ts-dot:hover { background: var(--orange-deep); }
.ts-dot.active {
  background: var(--orange);
  transform: scale(1.35);
}

/* ---------- CTA banner ---------- */

.cta-banner {
  background: var(--orange);
  color: var(--white);
  padding: 56px 0;
}
.cta-banner .abv-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin: 0; max-width: 560px; }
.cta-banner .abv-btn-primary { background: var(--surface-deep); }
.cta-banner .abv-btn-primary:hover { background: var(--ink); }

/* ---------- Footer ---------- */

footer {
  background: var(--surface-deep);
  color: #AEBBD0;
  padding: 64px 0 0;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

footer h4 {
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--sans);
  font-weight: 700;
  margin-bottom: 18px;
}
footer .logo { color: var(--white); margin-bottom: 14px; }
footer .logo .sub { color: #AEBBD0; border-color: var(--line-dark); }
footer p { color: #AEBBD0; font-size: 0.88rem; }
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: 10px; }
footer ul li a:hover { color: var(--orange); }
footer .office {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
footer .office:last-child { border-bottom: none; }
footer .office .city {
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 4px;
  display: block;
}
footer .office p { font-size: 0.82rem; margin: 0; }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #7E8DA8;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: #7E8DA8; }
.footer-bottom a:hover { color: var(--orange); }

/* ---------- Misc ---------- */

.divider { height: 1px; background: var(--line); margin: 0; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- About intro (stats + floating image badge) ---------- */

.about-stats {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.about-stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 20px;
  text-align: center;
  flex: 1;
  min-width: 130px;
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.about-stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(2,4,7,0.12);
  border-color: var(--orange);
}
.about-stat .num {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--orange-deep);
}
.about-stat .label {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

.about-media { position: relative; }
.about-media img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 24px 50px rgba(2,4,7,0.16);
  transition: transform 0.5s ease;
}
.about-media:hover img { transform: scale(1.02); }
.about-badge {
  position: absolute;
  bottom: -28px;
  left: -28px;
  background: var(--panel);
  border-radius: 14px;
  padding: 24px 26px;
  max-width: 260px;
  box-shadow: 0 20px 45px rgba(2,4,7,0.18);
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), box-shadow 0.3s ease;
}
.about-badge:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 52px rgba(2,4,7,0.22);
}
.about-badge .num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--orange-deep);
  display: block;
  margin-bottom: 8px;
}
.about-badge p {
  font-size: 0.87rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
@media (max-width: 900px) {
  .about-badge {
    position: static;
    margin: -40px 20px 0;
    max-width: none;
  }
}

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pill {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px;
  background: var(--paper-deep);
  border-radius: 30px;
  color: var(--navy);
}

.mobile-nav-toggle { display: none; }

@media (max-width: 1260px) and (min-width: 981px) {
  nav.primary { gap: 16px; }
  nav.primary a { font-size: 0.86rem; }
  .abv-btn-nav { padding: 9px 16px; }
}

@media (max-width: 980px) {
  nav.primary {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 24px;
    gap: 14px;
    box-shadow: 0 12px 28px rgba(2,4,7,0.10);
  }
  nav.primary.mobile-open { display: flex; }
  nav.primary .abv-btn-nav { margin-top: 6px; }
  .has-dropdown { width: 100%; }
  .has-dropdown .dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    border-top: none;
    min-width: auto;
    grid-template-columns: 1fr;
    padding: 6px 0 6px 14px;
  }
  .has-dropdown.mobile-open .dropdown { display: grid; }
  .mobile-nav-toggle {
    display: block;
    background: none; border: none;
    font-size: 1.6rem; color: var(--navy);
    cursor: pointer;
  }
}

.numbered-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 40px;
}
@media (max-width: 900px) { .numbered-process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .numbered-process { grid-template-columns: 1fr; } }
.process-step {
  background: var(--panel);
  border-radius: 12px;
  padding: 28px 24px;
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1), box-shadow 0.35s ease;
}
.process-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(0,0,0,0.25);
}
.process-step .step-num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 12px;
  display: block;
}
.process-step h4 { margin-bottom: 8px; color: var(--navy); }
.process-step p { font-size: 0.86rem; color: var(--ink-soft); }

/* ============================================
   CINEMATIC LAYER — motion, depth & atmosphere
   Added on top of the base design system above.
   ============================================ */

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

/* ---------- Scroll reveal system ---------- */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(.16,.84,.44,1), transform 0.9s cubic-bezier(.16,.84,.44,1);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children of revealed groups */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(.16,.84,.44,1), transform 0.8s cubic-bezier(.16,.84,.44,1);
}
.reveal-stagger.in-view > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0.03s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 0.10s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 0.17s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: 0.31s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: 0.38s; }
.reveal-stagger.in-view > *:nth-child(7) { transition-delay: 0.45s; }
.reveal-stagger.in-view > *:nth-child(8) { transition-delay: 0.52s; }
.reveal-stagger.in-view > *:nth-child(9) { transition-delay: 0.59s; }
.reveal-stagger.in-view > *:nth-child(10) { transition-delay: 0.66s; }
.reveal-stagger.in-view > *:nth-child(n+11) { transition-delay: 0.7s; }

/* ---------- Cinematic scroll progress rail ---------- */

.scroll-rail {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--orange-deep), var(--orange) 55%, #F3C878);
  z-index: 1000;
  transition: width 0.08s linear;
  box-shadow: 0 0 12px rgba(201,151,60,0.55);
}

/* ---------- Sticky header — cinematic condense on scroll ---------- */

header.main {
  transition: box-shadow 0.4s ease, background 0.4s ease;
}
header.main.is-scrolled {
  box-shadow: 0 12px 30px rgba(2,4,7,0.10);
}
header.main.is-scrolled .nav-row {
  padding-top: 12px;
  padding-bottom: 12px;
}
.nav-row { transition: padding 0.35s cubic-bezier(.16,.84,.44,1); }

/* ---------- Hero — atmosphere, aurora & film-grain ---------- */

.hero {
  padding: 130px 0 90px;
  isolation: isolate;
}

.hero::after, .hero::before { display: none; }

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-atmosphere .aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  will-change: transform;
}
.hero-atmosphere .aurora-1 {
  width: 640px; height: 640px;
  top: -220px; right: -120px;
  background: radial-gradient(circle at 40% 40%, rgba(201,151,60,0.42), rgba(201,151,60,0) 70%);
  animation: auroraDrift1 22s ease-in-out infinite alternate;
}
.hero-atmosphere .aurora-2 {
  width: 560px; height: 560px;
  bottom: -220px; left: -100px;
  background: radial-gradient(circle at 60% 60%, rgba(37,99,175,0.62), rgba(37,99,175,0) 72%);
  animation: auroraDrift2 26s ease-in-out infinite alternate;
}
.hero-atmosphere .aurora-3 {
  width: 360px; height: 360px;
  top: 30%; right: 22%;
  background: radial-gradient(circle, rgba(231,192,119,0.30), rgba(231,192,119,0) 72%);
  animation: auroraDrift3 18s ease-in-out infinite alternate;
}

@keyframes auroraDrift1 {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(-46px, 38px) scale(1.12); }
}
@keyframes auroraDrift2 {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(38px, -30px) scale(1.08); }
}
@keyframes auroraDrift3 {
  0%   { transform: translate(0,0) scale(0.9); opacity: 0.5; }
  100% { transform: translate(-26px, 22px) scale(1.15); opacity: 0.85; }
}

.hero-atmosphere .orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(224,130,20,0.16);
}
.hero-atmosphere .ring-1 { width: 620px; height: 620px; top: -42%; right: -8%; animation: ringSpin 90s linear infinite; }
.hero-atmosphere .ring-2 { width: 440px; height: 440px; top: -26%; right: 3%; border-color: rgba(224,130,20,0.11); animation: ringSpin 70s linear infinite reverse; }
@keyframes ringSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-atmosphere .grain {
  position: absolute;
  inset: -10%;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

.hero-atmosphere .grid-veil {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 20%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 20%, #000 0%, transparent 72%);
}

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

/* Cinematic title reveal */
.hero-eyebrow.reveal-in {
  opacity: 0;
  animation: cineUp 0.9s cubic-bezier(.16,.84,.44,1) 0.05s forwards;
}
.hero h1 {
  opacity: 0;
  animation: cineUp 1.05s cubic-bezier(.16,.84,.44,1) 0.18s forwards;
}
.hero .lede {
  opacity: 0;
  animation: cineUp 1s cubic-bezier(.16,.84,.44,1) 0.36s forwards;
}
.hero-actions {
  opacity: 0;
  animation: cineUp 1s cubic-bezier(.16,.84,.44,1) 0.52s forwards;
}
.stats-band {
  opacity: 0;
  animation: cineUp 1.1s cubic-bezier(.16,.84,.44,1) 0.68s forwards;
}

@keyframes cineUp {
  from { opacity: 0; transform: translateY(22px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Stat cells: quiet glass + glow-on-view */
.stats-band {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
}
.stat-cell {
  background: rgba(2,4,7,0.35);
  position: relative;
  transition: background 0.4s ease;
}
.stat-cell::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(.16,.84,.44,1);
}
.stat-cell:hover { background: rgba(2,4,7,0.55); }
.stat-cell:hover::after { transform: scaleX(1); }
.stat-cell .num { color: var(--white); }
.stat-cell .label { color: #B9C3D6; }

/* ---------- Cursor-follow spotlight for cards ---------- */

.capability-card, .abv-card, .insight-card, .about-stat, .process-step {
  --mx: 50%;
  --my: 50%;
}
.capability-card::after, .abv-card::after, .insight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(201,151,60,0.10), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}
.capability-card:hover::after, .abv-card:hover::after, .insight-card:hover::after { opacity: 1; }

/* ---------- Buttons: shine sweep + magnetic feel ---------- */

.abv-btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), box-shadow 0.3s ease, background 0.2s ease;
}
.abv-btn::before {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.abv-btn:hover::before { left: 130%; }
.abv-btn-primary:hover, .abv-btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(201,151,60,0.28);
}
.abv-btn-ghost-light:hover { transform: translateY(-2px); }

/* ---------- Section head underline sweep ---------- */

.eyebrow::before {
  transition: width 0.6s cubic-bezier(.16,.84,.44,1);
}

/* ---------- About media ken-burns ---------- */

.about-media { overflow: hidden; border-radius: 16px; }
.about-media img { transition: transform 8s cubic-bezier(.16,.84,.44,1); }
.about-media:hover img { transform: scale(1.08); }

/* ---------- Testimonial slide fade polish ---------- */

.testimonial-slide .abv-card {
  transition: transform 0.6s cubic-bezier(.16,.84,.44,1), box-shadow 0.4s ease, border-color 0.4s ease, opacity 0.6s ease;
}

/* ---------- Reduced motion fallback for hero cinematics ---------- */

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow.reveal-in, .hero h1, .hero .lede, .hero-actions, .stats-band {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
  .aurora, .orbit-ring { animation: none !important; }
}

@media (max-width: 640px) {
  .hero { padding: 100px 0 60px; }
  .hero-atmosphere .aurora-1 { width: 420px; height: 420px; }
  .hero-atmosphere .aurora-2 { width: 320px; height: 320px; }
  .hero-atmosphere .ring-1, .hero-atmosphere .ring-2 { display: none; }
}

/* ============================================
   DARK PREMIUM — signature ledger-glass system
   ============================================ */

::selection { background: rgba(201,151,60,0.35); color: var(--white); }

html { background: var(--paper); }

body {
  background:
    radial-gradient(ellipse 1100px 620px at 82% -8%, rgba(201,151,60,0.09), transparent 60%),
    radial-gradient(ellipse 1000px 780px at -10% 20%, rgba(37,99,175,0.22), transparent 58%),
    radial-gradient(ellipse 900px 700px at 60% 90%, rgba(28,72,140,0.16), transparent 60%),
    var(--paper);
  background-attachment: fixed;
}

/* faint ledger-rule grid across the whole page, like ruled ledger paper turned night-mode */
.abv-page-wrap {
  position: relative;
}
.abv-page-wrap::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 100% 44px;
  opacity: 0.5;
}
header.main, section, footer, .topbar, .cta-banner { position: relative; z-index: 1; }

/* ---------- Glass panels: every card/surface gets frosted depth ---------- */

.dropdown,
.stat-cell,
.capability-index,
.capability-card,
.insight-card,
.abv-card,
.team-card,
.person-card,
.audience-cell,
.about-stat,
.about-badge,
.process-step,
.ts-arrow,
.service-block .index-num,
.tag,
.insight-tag,
.pill {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.capability-card,
.insight-card,
.abv-card,
.about-stat,
.process-step,
.team-card,
.person-card {
  background: var(--panel);
  border-color: var(--panel-border) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset;
}

/* signature: thin gold ledger-rule across the top edge of every panel */
.capability-card, .insight-card, .abv-card, .about-stat, .process-step, .capability-index {
  border-top: 1px solid rgba(201,151,60,0.38) !important;
}

.capability-card:hover, .insight-card:hover, .abv-card:hover {
  box-shadow: 0 24px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(201,151,60,0.18), 0 1px 0 rgba(255,255,255,0.08) inset;
}

.about-stat:hover { box-shadow: 0 18px 34px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,151,60,0.2); }
.process-step:hover { box-shadow: 0 20px 38px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,151,60,0.16); }

.about-badge {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: 0 24px 55px rgba(0,0,0,0.55);
}

.about-media img { box-shadow: 0 30px 70px rgba(0,0,0,0.6); }

/* ---------- Ledger numerals: tabular mono for every figure & index mark ---------- */

.stat-cell .num,
.about-stat .num,
.about-badge .num,
.capability-card .idx,
.capability-row .idx,
.service-block .index-num,
.process-step .step-num,
.capability-group-head .letter {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ---------- Header / nav on dark ---------- */

.logo img { filter: brightness(0) invert(1); }

header.main { background: var(--paper); border-bottom-color: var(--line); }

.abv-btn-nav {
  background: var(--gold);
  color: var(--surface-deep) !important;
  font-weight: 700;
}
.abv-btn-nav:hover { background: var(--gold-bright); color: var(--surface-deep) !important; }

.dropdown {
  background: rgba(10,14,19,0.88);
  border-color: var(--panel-border);
  box-shadow: 0 24px 55px rgba(0,0,0,0.6);
}
.dropdown a:hover { background: rgba(255,255,255,0.05); }

/* ---------- Pills & tags: definition against the dark base ---------- */

.pill, .tag, .insight-tag {
  border: 1px solid var(--panel-border);
  background: var(--panel);
}
.tag:hover { border-color: var(--gold); }

/* ---------- Buttons ---------- */

.abv-btn-primary { background: var(--gold); color: var(--surface-deep); font-weight: 700; }
.abv-btn-primary:hover { background: var(--gold-bright); }
.abv-btn-ghost { color: var(--navy); border-color: var(--panel-border); }
.abv-btn-ghost:hover { background: var(--panel); color: var(--white); border-color: var(--gold); }

/* ---------- Footer / CTA depth ---------- */

footer { background: var(--surface-deep); }
.cta-banner { background: var(--gold); }
.cta-banner h2 { color: var(--surface-deep); }

/* ---------- Testimonial / quote emphasis ---------- */

.quote-block p.qtext { color: var(--navy); }

/* ---------- Scrollbar (webkit) — quiet ledger tone ---------- */

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--surface-deep); }
::-webkit-scrollbar-thumb { background: rgba(201,151,60,0.35); border-radius: 20px; border: 3px solid var(--surface-deep); }
::-webkit-scrollbar-thumb:hover { background: rgba(201,151,60,0.55); }

/* ============================================
   HERO VISUAL — CA-firm skyline image, animated
   ============================================ */

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero-copy { min-width: 0; }

.hero-visual {
  position: relative;
  opacity: 0;
  animation: cineUp 1.1s cubic-bezier(.16,.84,.44,1) 0.62s forwards;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -18px;
  border: 1px solid rgba(201,151,60,0.28);
  border-radius: 28px;
  pointer-events: none;
  animation: ringPulse 6s ease-in-out infinite;
}

.hero-visual-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.08);
  animation: heroFloat 7s ease-in-out infinite;
}

.hero-visual-frame img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) brightness(0.92);
  animation: heroKenBurns 20s ease-in-out infinite;
}

.hero-visual-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(155deg, rgba(10,24,58,0.10), rgba(5,11,24,0.62) 88%),
    linear-gradient(0deg, rgba(5,11,24,0.55), transparent 42%);
  pointer-events: none;
}

.hero-visual-badge {
  position: absolute;
  bottom: -26px;
  left: -26px;
  max-width: 250px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--panel-border);
  border-top: 1px solid rgba(201,151,60,0.5);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 24px 55px rgba(0,0,0,0.55);
  z-index: 3;
}
.hero-visual-badge .num {
  display: block;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 6px;
}
.hero-visual-badge p {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

@media (max-width: 980px) {
  .hero-visual-frame img { height: 380px; }
  .hero-visual-badge { left: 16px; bottom: -20px; max-width: 220px; padding: 16px 18px; }
}
@media (max-width: 640px) {
  .hero-visual::before { display: none; }
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes heroKenBurns {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.07); }
}
@keyframes ringPulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50%      { opacity: 0.9;  transform: scale(1.015); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual { animation: none !important; opacity: 1 !important; }
  .hero-visual-frame, .hero-visual-frame img, .hero-visual::before {
    animation: none !important;
  }
}

/* ============================================
   MEDIA-PREMIUM — reusable premium image treatment
   (used in "Who We Serve" and other split-content sections)
   ============================================ */

.media-premium {
  position: relative;
  max-width: 92%;
  margin-left: auto;
}
.media-premium::before {
  content: "";
  position: absolute;
  inset: -16px;
  border: 1px solid rgba(201,151,60,0.26);
  border-radius: 24px;
  pointer-events: none;
  animation: ringPulse 6s ease-in-out infinite;
}
.media-premium-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 34px 70px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.08);
}
.media-premium-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(155deg, rgba(10,24,58,0.08), rgba(5,11,24,0.58) 90%),
    linear-gradient(0deg, rgba(5,11,24,0.5), transparent 45%);
  pointer-events: none;
}
.media-premium-frame img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) brightness(0.92);
  animation: heroKenBurns 22s ease-in-out infinite;
}

.media-premium-badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  max-width: 240px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--panel-border);
  border-top: 1px solid rgba(201,151,60,0.5);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.55);
  z-index: 3;
}
.media-premium-badge .mp-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(201,151,60,0.14);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-bright);
  font-size: 0.95rem;
}
.media-premium-badge p {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.45;
  margin: 0;
}

@media (max-width: 900px) {
  .media-premium { max-width: 100%; margin-top: 30px; }
  .media-premium-frame img { height: 320px; }
  .media-premium-badge { left: 14px; bottom: -18px; max-width: 210px; padding: 14px 16px; }
}
@media (max-width: 640px) {
  .media-premium::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .media-premium::before, .media-premium-frame img { animation: none !important; }
}
