/* =========================================================
   BSC Accounting — Design System
   Palette: deep navy + warm brass/gold accent on cream
   Type: Fraunces (display) + Inter (body/UI)
   ========================================================= */

:root {
  /* ---- Color ---- */
  --navy-950: #081527;
  --navy-900: #0E2237;
  --navy-800: #16324D;
  --navy-700: #1F4265;
  --navy-600: #2B527A;

  --cream-50:  #FBF8F2;
  --cream-100: #F5EFE3;
  --cream-200: #ECE2CD;

  --ink-900: #1A2230;
  --ink-700: #3D485A;
  --ink-500: #6B7686;
  --ink-300: #A7AFB9;

  --gold-300: #E7C989;
  --gold-500: #C08A34;
  --gold-600: #8A5E1A;

  --white: #FFFFFF;
  --line: rgba(26, 34, 48, 0.10);
  --line-invert: rgba(255, 255, 255, 0.14);

  /* ---- Type ---- */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* ---- Spacing (8px scale, spacious/marketing) ---- */
  --space-3xs: 4px;
  --space-2xs: 8px;
  --space-xs: 12px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 136px;

  /* ---- Radius ---- */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* ---- Shadow ---- */
  --shadow-sm: 0 1px 2px rgba(8, 21, 39, 0.06), 0 1px 1px rgba(8, 21, 39, 0.04);
  --shadow-md: 0 12px 28px rgba(8, 21, 39, 0.10), 0 3px 8px rgba(8, 21, 39, 0.06);
  --shadow-lg: 0 30px 70px rgba(8, 21, 39, 0.18), 0 10px 24px rgba(8, 21, 39, 0.08);
  --shadow-gold: 0 14px 30px rgba(192, 138, 52, 0.35);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur-base: 360ms;
  --dur-slow: 640ms;

  --container: 1180px;
  --container-narrow: 780px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body, h1, h2, h3, h4, p, figure { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }

body {
  font-family: var(--font-body);
  background: var(--cream-50);
  color: var(--ink-900);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Focus visibility (accessibility) ---- */
:focus-visible {
  outline: 2px solid var(--gold-600);
  outline-offset: 3px;
  border-radius: 4px;
}

a, button { touch-action: manipulation; }

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: -60px;
  background: var(--navy-900);
  color: var(--white);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--dur-fast) var(--ease-out);
}

.skip-link:focus { top: var(--space-sm); }

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.container-narrow { max-width: var(--container-narrow); }

section { position: relative; }

.section {
  padding-block: var(--space-3xl);
}

/* Mobile: less vertical breathing room between sections */
@media (max-width: 720px) {
  .section { padding-block: var(--space-2xl); }
}

.section-tight { padding-block: var(--space-2xl); }

.section-navy {
  background: var(--navy-900);
  color: var(--cream-50);
}

.section-cream { background: var(--cream-100); }

/* ---- Typography ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-700);
  margin-bottom: var(--space-sm);
}

.section-navy .eyebrow,
.hero .eyebrow {
  color: var(--gold-300);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy-950);
  line-height: 1.15;
  text-wrap: balance;
}

.section-navy h1,
.section-navy h2,
.section-navy h3 {
  color: var(--white);
}

h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  font-weight: 600;
}

h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-700);
  line-height: 1.65;
  max-width: 46ch;
}

.section-navy .lede { color: var(--cream-200); }

.text-center { text-align: center; }
.text-center .lede { margin-inline: auto; }

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-2xl);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  min-height: 48px;
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500));
  color: var(--navy-950);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(192, 138, 52, 0.42);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--navy-950);
}

.btn-outline:hover {
  border-color: var(--navy-900);
  background: rgba(14, 34, 55, 0.04);
}

.section-navy .btn-outline,
.on-navy.btn-outline {
  border-color: var(--line-invert);
  color: var(--white);
}

.section-navy .btn-outline:hover,
.on-navy.btn-outline:hover {
  border-color: var(--gold-300);
  background: rgba(255,255,255,0.06);
}

.btn-ghost {
  padding-inline: 4px;
  color: var(--navy-900);
  border-bottom: 1.5px solid var(--line);
  border-radius: 0;
  min-height: auto;
}

.section-navy .btn-ghost {
  color: var(--white);
  border-color: var(--line-invert);
}

.btn-ghost:hover {
  border-color: var(--navy-900);
  color: var(--navy-950);
}

.section-navy .btn-ghost:hover,
.on-navy.btn-ghost:hover {
  border-color: var(--gold-300);
  color: var(--gold-300);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
  min-height: 40px;
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 242, 0.86);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 24px rgba(8, 21, 39, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  height: 132px;
  transition: height var(--dur-base) var(--ease-out);
}

.site-header.is-scrolled .header-inner { height: 92px; }

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--navy-950);
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  height: 112px;
  width: auto;
  transition: height var(--dur-base) var(--ease-out);
}

.site-header.is-scrolled .brand-logo { height: 76px; }

.brand-name em {
  font-style: italic;
  color: var(--gold-600);
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-700);
  padding-block: 4px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--gold-500);
  transition: right var(--dur-base) var(--ease-out);
}

.nav-link:hover { color: var(--navy-950); }

.nav-link:hover::after,
.nav-link.is-active::after {
  right: 0;
}

.nav-link.is-active { color: var(--navy-950); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy-950);
  border-radius: 2px;
  transition:
    transform var(--dur-base) var(--ease-out),
    opacity var(--dur-fast);
}

.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);
}

/* =========================================================
   MOBILE NAV BAR (hamburger menu) — screens ≤780px
   ========================================================= */

@media (max-width: 780px) {

  .header-inner,
  .site-header.is-scrolled .header-inner {
    height: 68px;
  }

  .brand-logo,
  .site-header.is-scrolled .brand-logo {
    height: 40px;
  }

  /*
   * FIXED MOBILE MENU
   *
   * The header uses backdrop-filter. A fixed descendant inside
   * that stacking/containing context can become constrained to
   * the header instead of covering the viewport.
   *
   * Therefore the mobile menu is absolutely positioned from
   * the bottom of the 68px header and given the remaining
   * viewport height.
   */

  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    bottom: auto;

    width: 100%;
    height: calc(100vh - 68px);

    z-index: 200;

    background: var(--navy-900);

    flex-direction: column;
    align-items: flex-start;
    gap: 0;

    padding: var(--space-md);

    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
      opacity var(--dur-fast) var(--ease-out),
      transform var(--dur-fast) var(--ease-out),
      visibility var(--dur-fast);
  }

  .site-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav .nav-link {
    width: 100%;
    padding: var(--space-sm) 4px;
    border-bottom: 1px solid var(--line-invert);
    font-size: 17px;
    color: var(--cream-100);
  }

  .site-nav .nav-link:hover,
  .site-nav .nav-link.is-active {
    color: var(--gold-300);
  }

  .header-actions .btn-primary.btn-sm span.long {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  background:
    radial-gradient(
      120% 140% at 82% -10%,
      var(--navy-700) 0%,
      var(--navy-900) 42%,
      var(--navy-950) 100%
    );
  color: var(--cream-50);
  overflow: hidden;
  padding-block: var(--space-3xl) var(--space-2xl);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      1px 1px at 20% 30%,
      rgba(231, 201, 137, 0.35) 0,
      transparent 60%
    ),
    radial-gradient(
      1px 1px at 60% 70%,
      rgba(231, 201, 137, 0.25) 0,
      transparent 60%
    ),
    radial-gradient(
      1px 1px at 80% 20%,
      rgba(231, 201, 137, 0.3) 0,
      transparent 60%
    );
  opacity: 0.6;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

.hero h1 { color: var(--white); }

.hero .lede {
  color: var(--cream-200);
  margin-block: var(--space-md) var(--space-xl);
}

.hero-badges {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: 13.5px;
  color: var(--cream-200);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  color: var(--gold-300);
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
  display: grid;
  gap: var(--space-md);
}

/* Three-photo hero collage */
.hero-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-photo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 3 / 4;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      200deg,
      transparent 55%,
      rgba(8, 21, 39, 0.32) 100%
    );
}

.hero-chip {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  justify-self: start;
  background: var(--white);
  color: var(--navy-950);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.hero-chip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.hero-chip span {
  font-size: 12.5px;
  color: var(--ink-500);
}

.hero-chip .stars {
  color: var(--gold-500);
  letter-spacing: 1px;
}

/* =========================================================
   Industry strip (home)
   ========================================================= */

.industry-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 860px) {
  .industry-strip {
    grid-template-columns: 1fr;
  }
}

.industry-card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-base) var(--ease-out);
}

.industry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.industry-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      0deg,
      rgba(8,21,39,0.88) 0%,
      rgba(8,21,39,0.35) 46%,
      rgba(8,21,39,0.05) 70%
    );
}

.industry-card:hover {
  box-shadow: var(--shadow-lg);
}

.industry-card:hover img {
  transform: scale(1.06);
}

.industry-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: var(--space-lg);
  color: var(--white);
}

.industry-card-body .eyebrow {
  color: var(--gold-300);
  margin-bottom: var(--space-2xs);
}

.industry-card-body h3 {
  color: var(--white);
  margin-bottom: var(--space-2xs);
}

.industry-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-300);
  margin-top: var(--space-sm);
}

.industry-card-link svg {
  width: 15px;
  height: 15px;
  transition: transform var(--dur-fast) var(--ease-out);
}

.industry-card:hover .industry-card-link svg {
  transform: translateX(4px);
}

/* =========================================================
   Reviews
   ========================================================= */

.reviews-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.rating-summary {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.rating-summary .stars {
  color: var(--gold-500);
  font-size: 20px;
  letter-spacing: 2px;
}

.rating-summary .rating-number {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--navy-950);
}

.rating-summary .rating-source {
  font-size: 13.5px;
  color: var(--ink-500);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 900px) {
  .review-grid {
    grid-template-columns: 1fr;
  }
}

.review-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.review-card .stars {
  color: var(--gold-500);
  font-size: 15px;
  letter-spacing: 2px;
  margin-bottom: var(--space-sm);
}

.review-card p {
  color: var(--ink-700);
  font-size: 15px;
  margin-bottom: var(--space-md);
}

.review-card footer {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.review-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-300);
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 700;
  flex-shrink: 0;
}

.review-who strong {
  display: block;
  font-size: 13.5px;
  color: var(--navy-950);
}

.review-who span {
  font-size: 12.5px;
  color: var(--ink-500);
}

.review-google-badge {
  margin-left: auto;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.85;
}

.reviews-cta {
  margin-top: var(--space-2xl);
  text-align: center;
}

/* =========================================================
   CTA banners
   ========================================================= */

.cta-banner {
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      80% 140% at 100% 0%,
      var(--navy-700),
      transparent 60%
    );
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: var(--space-2xs);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.cta-banner p {
  color: var(--cream-200);
}

.cta-banner-text {
  max-width: 480px;
}

.cta-final {
  text-align: center;
  padding-block: var(--space-3xl);
}

.cta-final .section-head {
  margin-inline: auto;
}

.cta-final .btn-row {
  justify-content: center;
}

/* =========================================================
   Value props / trio
   ========================================================= */

.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 860px) {
  .trio {
    grid-template-columns: 1fr;
  }
}

.trio-item {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  overflow: hidden;
  isolation: isolate;
}

.trio-item .numeral-mark {
  top: -0.3em;
  left: auto;
  right: -0.08em;
}

.trio-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--navy-900);
  color: var(--gold-300);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-md);
}

.trio-icon svg {
  width: 22px;
  height: 22px;
}

.trio-item h4 {
  margin-bottom: var(--space-2xs);
}

.trio-item p {
  color: var(--ink-500);
  font-size: 14.5px;
}

/* =========================================================
   Industries page — detail sections
   ========================================================= */

.industry-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

@media (max-width: 900px) {
  .industry-detail {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

.industry-detail-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  box-shadow: var(--shadow-md);
}

.industry-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.industry-detail-body {
  position: relative;
  z-index: 1;
}

.industry-detail-body p {
  color: var(--ink-700);
  margin-block: var(--space-md) var(--space-lg);
  max-width: 50ch;
}

/* Ghost numeral — the editorial signature motif */
.numeral-mark {
  position: absolute;
  top: -0.42em;
  left: -0.03em;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(5.5rem, 11vw, 9.5rem);
  line-height: 1;
  color: rgba(14, 34, 55, 0.07);
  pointer-events: none;
  user-select: none;
  z-index: -1;
  white-space: nowrap;
}

.section-navy .numeral-mark {
  color: rgba(255, 255, 255, 0.07);
}

.industry-detail-body .numeral-mark {
  top: -0.55em;
}

@media (max-width: 640px) {
  .numeral-mark {
    font-size: clamp(4rem, 22vw, 6rem);
  }
}

.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  margin-bottom: var(--space-lg);
}

.industry-tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-800);
  background: var(--cream-200);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

.industry-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin-block: var(--space-3xl);
}

/* =========================================================
   About page
   ========================================================= */

.about-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-3xl);
  align-items: center;
}

@media (max-width: 900px) {
  .about-hero {
    grid-template-columns: 1fr;
  }
}

.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3.3;
  box-shadow: var(--shadow-md);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 860px) {
  .people-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .people-grid {
    grid-template-columns: 1fr;
  }
}

.people-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
}

.people-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto var(--space-md);
  display: block;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.people-avatar--initials {
  display: grid;
  place-items: center;
  background: linear-gradient(
    160deg,
    var(--navy-800),
    var(--navy-950)
  );
  color: var(--gold-300);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.people-card h4 {
  margin-bottom: 2px;
}

.people-card span {
  font-size: 13.5px;
  color: var(--navy-700);
  font-weight: 600;
}

/* =========================================================
   Legal / policy pages
   ========================================================= */

.legal-content {
  display: grid;
  gap: var(--space-xl);
}

.legal-content h2 {
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
}

.legal-content p {
  color: var(--ink-700);
  margin-bottom: var(--space-sm);
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.25em;
  display: grid;
  gap: var(--space-2xs);
  color: var(--ink-700);
}

.legal-content .legal-updated {
  color: var(--ink-500);
  font-size: 13.5px;
}

/* =========================================================
   Contact page
   ========================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-xl);
  align-items: start;
}

@media (max-width: 980px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .contact-info-card {
    position: static;
    min-height: auto;
  }
}

.contact-info-card {
  background: var(--navy-900);
  color: var(--cream-50);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: sticky;
  top: 100px;
}

.contact-info-card h3 {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.contact-info-card p {
  color: var(--cream-200);
  font-size: 14.5px;
  margin-bottom: var(--space-lg);
}

.contact-phone-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--white);
  margin-bottom: var(--space-lg);
  transition: color var(--dur-fast) var(--ease-out);
}

.contact-phone-link:hover {
  color: var(--gold-300);
}

.contact-phone-link .icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-phone-link svg {
  width: 20px;
  height: 20px;
  color: var(--gold-300);
}

.contact-detail-list {
  display: grid;
  gap: var(--space-md);
  border-top: 1px solid var(--line-invert);
  padding-top: var(--space-lg);
}

.contact-detail-list li {
  display: flex;
  gap: var(--space-sm);
  font-size: 14.5px;
}

.contact-detail-list svg {
  width: 18px;
  height: 18px;
  color: var(--gold-300);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-detail-list a:hover {
  color: var(--gold-300);
}

.scheduler-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.scheduler-card-head {
  margin-bottom: var(--space-md);
}

.meetings-iframe-container {
  flex: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.scheduler-fallback {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-md);
  padding: var(--space-2xl) var(--space-lg);
  background: var(--cream-100);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.scheduler-fallback[hidden] {
  display: none;
}

.scheduler-fallback .trio-icon {
  margin-bottom: 0;
}

.scheduler-fallback h4 {
  max-width: 32ch;
}

.scheduler-fallback p {
  color: var(--ink-500);
  max-width: 40ch;
  font-size: 14.5px;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  background: var(--navy-950);
  color: var(--cream-200);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--space-xl);
  padding-block: var(--space-2xl) var(--space-xl);
}

@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

.footer-brand .brand {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  font-size: 14px;
  color: var(--ink-300);
  max-width: 32ch;
}

.footer-nav,
.footer-contact {
  display: grid;
  gap: var(--space-sm);
  font-size: 14.5px;
}

.footer-col-title {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-300);
  margin-bottom: var(--space-2xs);
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--gold-300);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding-block: var(--space-lg);
  border-top: 1px solid var(--line-invert);
  font-size: 13px;
  color: var(--ink-300);
}

.footer-bottom a:hover {
  color: var(--gold-300);
}

/* =========================================================
   Scroll reveal
   ========================================================= */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-group] > * {
  transition-delay: calc(var(--stagger-index, 0) * 90ms);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .industry-card img,
  .btn,
  .nav-link::after {
    transition: none !important;
  }
}

/* ---- Page hero (interior pages) ---- */

.page-hero {
  background: var(--navy-900);
  color: var(--cream-50);
  padding-block: var(--space-2xl);
}

.page-hero h1 {
  color: var(--white);
}

.page-hero .lede {
  color: var(--cream-200);
  margin-top: var(--space-sm);
}

.breadcrumb-eyebrow {
  color: var(--gold-300);
}

/* =========================================================
   Unified photo tone
   ========================================================= */

.hero-photo img,
.industry-card img,
.industry-detail-media img,
.about-photo img {
  filter:
    saturate(0.82)
    sepia(0.08)
    contrast(1.04)
    brightness(0.98);
}

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

/* =========================================================
   Hero headline reveal
   ========================================================= */

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(16px);
    clip-path: inset(0 0 100% 0);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0% 0);
  }
}

.hero h1 {
  animation: heroReveal 820ms var(--ease-out) both;
}

@media (prefers-reduced-motion: reduce) {
  .hero h1 {
    animation: none;
  }
}

/* =========================================================
   Native cross-document view transitions
   ========================================================= */

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

/* =========================================================
   Mobile "Book a Call" bar
   ========================================================= */

.mobile-cta-bar {
  display: none;
}

body.has-mobile-cta {
  padding-bottom: 0;
}

@media (max-width: 640px) {

  body.has-mobile-cta {
    padding-bottom: 78px;
  }

  .mobile-cta-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding:
      10px
      var(--space-md)
      calc(10px + env(safe-area-inset-bottom));
    background: rgba(251, 248, 242, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 28px rgba(8, 21, 39, 0.10);
    transition: transform var(--dur-base) var(--ease-out);
  }

  .mobile-cta-bar.is-hidden {
    transform: translateY(100%);
  }

  .mobile-cta-book {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: var(--radius-pill);
    background: linear-gradient(
      180deg,
      var(--gold-300),
      var(--gold-500)
    );
    color: var(--navy-950);
    font-weight: 700;
    font-size: 15px;
    box-shadow: var(--shadow-gold);
  }
}

@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .mobile-cta-bar {
    transition: none;
  }
}

/* =========================================================
   Mobile-specific treatments
   ========================================================= */

@media (max-width: 640px) {

  /* Industries page: photos bleed edge-to-edge */
  .industry-detail-media {
    border-radius: 0;
    margin-inline: calc(-1 * var(--space-md));
    box-shadow: none;
  }
}