*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--bamcis-ink);
  background: var(--bamcis-white);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  transform: translateY(-180%);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bamcis-white);
  color: var(--bamcis-navy-950);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(16, 40, 75, 0.1);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--bamcis-navy-950);
  text-decoration: none;
}

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand-text {
  display: grid;
  gap: 0.05rem;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1.08rem;
  letter-spacing: 0.12em;
}

.brand-text span {
  color: var(--bamcis-silver-600);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.primary-nav a {
  color: var(--bamcis-navy-900);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 650;
}

.primary-nav a:not(.button):hover,
.primary-nav a:not(.button):focus-visible {
  color: var(--bamcis-navy-700);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.5rem;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 26px;
  height: 2px;
  margin: 5px 0;
  background: var(--bamcis-navy-900);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.82rem 1.25rem;
  border: 1px solid var(--bamcis-navy-900);
  border-radius: var(--radius-sm);
  background: var(--bamcis-navy-900);
  color: var(--bamcis-white);
  text-decoration: none;
  font-weight: 750;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  background: var(--bamcis-navy-800);
  border-color: var(--bamcis-navy-800);
}

.button-small {
  min-height: 40px;
  padding: 0.62rem 1rem;
}

.button-secondary {
  background: transparent;
  color: var(--bamcis-navy-900);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: var(--bamcis-white);
}

.button-light {
  border-color: var(--bamcis-white);
  background: var(--bamcis-white);
  color: var(--bamcis-navy-950);
}

.button-light:hover,
.button-light:focus-visible {
  background: var(--bamcis-silver-100);
  border-color: var(--bamcis-silver-100);
  color: var(--bamcis-navy-950);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 9vw, 8rem) 0;
  background:
    radial-gradient(circle at 82% 28%, rgba(157, 167, 179, 0.18), transparent 32%),
    linear-gradient(135deg, var(--bamcis-white) 0%, var(--bamcis-silver-100) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -15% -55% auto;
  width: 58rem;
  aspect-ratio: 1;
  border: 1px solid rgba(16, 40, 75, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 6rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--bamcis-navy-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: var(--bamcis-silver-300);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--bamcis-navy-950);
  line-height: 1.12;
}

h1 {
  max-width: 820px;
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 7vw, 5.8rem);
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.22rem;
}

.hero-summary,
.lead {
  color: #3d4a5d;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.hero-summary {
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 2rem 0 1.5rem;
}

.attribute-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.attribute-row span {
  padding: 0.4rem 0.72rem;
  border: 1px solid var(--bamcis-silver-300);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--bamcis-navy-800);
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-identity {
  position: relative;
  padding: 2rem;
  border: 1px solid rgba(16, 40, 75, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-md);
}

.hero-identity::before {
  content: "";
  position: absolute;
  inset: 11%;
  border: 1px solid rgba(16, 40, 75, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.hero-identity img {
  position: relative;
  width: min(100%, 430px);
  margin-inline: auto;
}

.identity-copy {
  position: relative;
  display: grid;
  gap: 0.2rem;
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--bamcis-silver-200);
}

.identity-copy span {
  color: var(--bamcis-silver-600);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.identity-copy strong {
  color: var(--bamcis-navy-950);
  font-size: 1.08rem;
}

.section {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.section-tight {
  padding-block: clamp(3.5rem, 6vw, 5rem);
}

.section-muted {
  background: var(--bamcis-silver-100);
}

.section-dark {
  background: var(--bamcis-navy-950);
  color: var(--bamcis-white);
}

.section-dark h2,
.section-dark h3,
.section-dark strong {
  color: var(--bamcis-white);
}

.section-dark p {
  color: var(--bamcis-silver-300);
}

.section-accent {
  background: var(--bamcis-navy-800);
  color: var(--bamcis-white);
}

.section-accent h2 {
  color: var(--bamcis-white);
}

.intro-grid,
.section-heading,
.experience-grid,
.why-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.section-heading {
  align-items: end;
  margin-bottom: 2.5rem;
}

.section-heading > p {
  margin-bottom: 0.35rem;
  color: #536174;
}

.section-heading-light > p {
  color: var(--bamcis-silver-300);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  min-height: 245px;
  padding: 1.5rem;
  border: 1px solid var(--bamcis-silver-200);
  border-radius: var(--radius-md);
  background: var(--bamcis-white);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--bamcis-silver-300);
  box-shadow: var(--shadow-sm);
}

.card-number {
  display: inline-block;
  margin-bottom: 2.4rem;
  color: var(--bamcis-silver-500);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.card p {
  color: #566476;
}

.experience-grid {
  align-items: start;
}

.experience-list,
.why-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--bamcis-silver-200);
}

.experience-list > div,
.why-list > div {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--bamcis-silver-200);
}

.experience-list strong,
.why-list strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--bamcis-navy-950);
  font-size: 1.05rem;
}

.experience-list p,
.why-list p {
  margin-bottom: 0;
  color: #566476;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.industry-grid span {
  min-height: 90px;
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--bamcis-white);
  font-weight: 700;
}

.contact-grid {
  align-items: center;
}

.contact-grid p {
  max-width: 720px;
  color: var(--bamcis-silver-200);
}

.contact-grid .button {
  justify-self: end;
}

.site-footer {
  padding: 3.5rem 0;
  background: #071425;
  color: var(--bamcis-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr;
  gap: 3rem;
}

.brand-footer {
  color: var(--bamcis-white);
}

.brand-footer .brand-text span {
  color: var(--bamcis-silver-500);
}

.footer-copy,
.footer-meta {
  color: var(--bamcis-silver-500);
  font-size: 0.9rem;
}

.footer-copy {
  max-width: 420px;
  margin-top: 1.25rem;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--bamcis-silver-200);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--bamcis-white);
}

.footer-meta {
  text-align: right;
}

.footer-meta p {
  margin-bottom: 0.2rem;
}

:focus-visible {
  outline: 3px solid #7fa6d4;
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 1rem;
    left: 1rem;
    display: none;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid var(--bamcis-silver-200);
    border-radius: var(--radius-md);
    background: var(--bamcis-white);
    box-shadow: var(--shadow-md);
  }

  .primary-nav.is-open {
    display: grid;
  }

  .primary-nav .button {
    margin-top: 0.4rem;
  }

  .hero-grid,
  .intro-grid,
  .section-heading,
  .experience-grid,
  .why-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-identity {
    max-width: 600px;
  }

  .card-grid,
  .industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid .button {
    justify-self: start;
  }

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .header-inner {
    min-height: 74px;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .brand-text span {
    display: none;
  }

  .hero {
    padding-top: 4.5rem;
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .card-grid,
  .industry-grid {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: auto;
  }

  .attribute-row {
    display: grid;
  }

  .attribute-row span {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
/* WD-001-005: Header and hero sizing correction */
.site-header .brand-logo {
  width: 56px !important;
  height: 56px !important;
  max-width: 56px;
  object-fit: contain;
  flex: 0 0 56px;
}

.header-inner {
  min-height: 80px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.hero {
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}