/**
 * BOOM Interactive — Homepage Styles
 * main.css · v2.0 · Imports tokens.css first
 *
 * All colour, spacing, and type values via CSS custom properties.
 * Never hardcode hex, px sizes, or font names directly.
 */

/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body-md);
  font-weight: var(--weight-regular);
  color: var(--color-charcoal);
  background-color: var(--color-warm-white);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-gold-dark);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-charcoal);
}

ul {
  list-style: none;
}

/* ============================================================
   LAYOUT — Container
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--container-gutter-sm);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--container-gutter-md);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: var(--container-gutter-lg);
  }
}

/* ============================================================
   TYPOGRAPHY — Global
   ============================================================ */

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-overline);
  font-weight: var(--weight-semibold);
  color: var(--color-gold);
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-light);
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-display);
  color: var(--color-charcoal);
}

h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-heading);
  line-height: var(--leading-heading);
}

.lead {
  font-size: var(--text-body-lg);
  color: var(--color-slate);
  line-height: var(--leading-body);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  font-size: var(--text-label);
  letter-spacing: var(--tracking-label);
  border-radius: var(--radius-md);
  padding: var(--padding-btn-md);
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background var(--transition-base),
              color var(--transition-base),
              border-color var(--transition-base),
              transform var(--transition-fast);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--color-gold);
  color: var(--color-charcoal);
  border-color: var(--color-gold);
}

.btn--primary:hover {
  background: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
  color: var(--color-warm-white);
}

.btn--ghost {
  background: transparent;
  color: var(--color-gold-dark);
  border-color: var(--color-gold);
}

.btn--ghost:hover {
  background: var(--color-gold);
  color: var(--color-charcoal);
}

.btn--ghost-dark {
  background: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.btn--ghost-dark:hover {
  background: var(--color-gold);
  color: var(--color-charcoal);
}

.btn--link {
  background: transparent;
  border-color: transparent;
  color: var(--color-gold-dark);
  padding-inline: 0;
  font-size: var(--text-label);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn--link:hover {
  color: var(--color-charcoal);
}

.btn--lg {
  padding: var(--padding-btn-lg);
  font-size: var(--text-body-sm);
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: transparent;
  padding: var(--space-4) 0;
  transition: background var(--transition-base),
              border-color var(--transition-base);
}

.site-nav.scrolled {
  background: var(--color-warm-white);
  border-bottom: 1px solid var(--color-cream-dark);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.site-nav__logo {
  text-decoration: none;
  flex-shrink: 0;
}

.site-nav__wordmark {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: var(--weight-light);
  color: var(--color-charcoal);
  letter-spacing: var(--tracking-display);
  line-height: 1;
}

.site-nav__links {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

@media (min-width: 900px) {
  .site-nav__links {
    display: flex;
  }
}

/* Contact always last-right in the nav, separated from other links */
.site-nav__links .nav-contact {
  margin-left: auto;
}

/* Contact last at the bottom of the footer pages list */
.footer-col__links .footer-contact {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.site-nav__links .nav-link {
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  color: var(--color-slate);
  text-decoration: none;
  letter-spacing: var(--tracking-label);
  transition: color var(--transition-base);
}

.site-nav__links .nav-link:hover {
  color: var(--color-charcoal);
}

.site-nav__cta {
  display: none;
}

@media (min-width: 900px) {
  .site-nav__cta {
    display: inline-flex;
  }
}

/* Hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

@media (min-width: 900px) {
  .nav-hamburger {
    display: none;
  }
}

.nav-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--color-charcoal);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-warm-white);
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.nav-overlay .nav-link {
  font-family: var(--font-display);
  font-size: var(--text-display-sm);
  font-weight: var(--weight-light);
  color: var(--color-charcoal);
  letter-spacing: var(--tracking-display);
}

.nav-overlay .nav-link:hover {
  color: var(--color-gold);
}

.nav-overlay__close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-slate);
}

/* ============================================================
   SECTION — Common
   ============================================================ */

.section {
  padding-block: var(--section-padding-md);
}

.section--sm {
  padding-block: var(--section-padding-sm);
}

.section--lg {
  padding-block: var(--section-padding-lg);
}

.section--parchment { background: var(--color-warm-white); }
.section--linen     { background: var(--color-cream); }
.section--dark      { background: var(--color-charcoal); }
.section--gold-tint { background: var(--color-gold-subtle); }

.section-header {
  margin-bottom: var(--space-8);
}

.section-header--center {
  text-align: center;
}

.section-header h2 {
  font-size: var(--text-display-md);
  margin-bottom: var(--space-4);
}

/* ============================================================
   SECTION 1 — Hero
   ============================================================ */

.hero {
  min-height: 100svh;
  background: var(--color-warm-white);
  display: flex;
  align-items: center;
  padding-block: var(--space-10) var(--space-9);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 58fr 42fr;
    gap: var(--space-9);
  }
}

.hero__copy {
  max-width: 640px;
}

.hero__headline {
  font-size: clamp(2.75rem, 5.5vw, 4.75rem);
  font-weight: var(--weight-light);
  color: var(--color-charcoal);
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-display);
  margin-bottom: var(--space-5);
}

.hero__sub {
  font-size: var(--text-body-lg);
  color: var(--color-slate);
  line-height: var(--leading-body);
  max-width: 52ch;
  margin-bottom: var(--space-7);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5);
}

.hero__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--color-cream);
}

@media (min-width: 900px) {
  .hero__image {
    aspect-ratio: 3 / 4;
  }
}

.hero__image-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: linear-gradient(
    160deg,
    var(--color-cream) 0%,
    var(--color-cream-dark) 100%
  );
  min-height: 360px;
}

/* Show placeholder text only when no image is present */
.hero__image-placeholder:not(:has(img)) {
  display: flex;
  align-items: flex-end;
  padding: var(--space-5);
}

.hero__image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md);
}

.hero__image-placeholder span {
  font-family: var(--font-body);
  font-size: var(--text-caption);
  color: var(--color-slate);
  font-style: italic;
  line-height: 1.4;
}

/* ============================================================
   SECTION 2 — Trust bar
   ============================================================ */

.trust-bar {
  background: var(--color-cream);
  padding-block: var(--space-6);
  border-block: 1px solid var(--color-cream-dark);
}

.trust-bar__label {
  font-size: var(--text-caption);
  color: var(--color-slate);
  text-align: center;
  margin-bottom: var(--space-5);
  letter-spacing: var(--tracking-label);
}

.trust-bar__logos {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-7);
  overflow: hidden;
}

.trust-bar__client {
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  color: var(--color-slate);
  opacity: 0.6;
  letter-spacing: var(--tracking-label);
}

/* ============================================================
   SECTION 3 — Who BOOM is
   ============================================================ */

.who-we-are {
  background: var(--color-warm-white);
}

.who-we-are__inner {
  max-width: var(--container-md);
  margin-inline: auto;
  text-align: center;
}

.who-we-are h2 {
  font-size: var(--text-display-md);
  margin-bottom: var(--space-6);
  max-width: 22ch;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}

.who-we-are__body {
  display: grid;
  gap: var(--space-5);
  text-align: left;
  max-width: 680px;
  margin-inline: auto;
  margin-top: var(--space-6);
}

.who-we-are__body p {
  font-size: var(--text-body-lg);
  color: var(--color-slate);
  line-height: var(--leading-body);
}

.who-we-are__body p strong {
  color: var(--color-charcoal);
  font-weight: var(--weight-medium);
}

/* ============================================================
   SECTION 4 — Methodology
   ============================================================ */

.methodology {
  background: var(--color-cream);
}

.methodology h2 {
  font-size: var(--text-display-md);
  max-width: 22ch;
  margin-bottom: var(--space-4);
}

.methodology__sub {
  font-size: var(--text-body-lg);
  color: var(--color-slate);
  max-width: 50ch;
  margin-bottom: var(--space-8);
}

.methodology__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .methodology__cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.method-card {
  background: var(--color-warm-white);
  border: 1px solid var(--color-cream-dark);
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-6);
  border-left: 3px solid var(--color-gold);
  transition: box-shadow var(--transition-base);
}

.method-card:hover {
  box-shadow: var(--shadow-md);
}

.method-card__num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: var(--weight-light);
  color: var(--color-gold);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: var(--space-4);
  letter-spacing: var(--tracking-display);
}

.method-card__title {
  font-size: var(--text-heading-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-charcoal);
  margin-bottom: var(--space-3);
  line-height: var(--leading-heading);
}

.method-card__body {
  font-size: var(--text-body-sm);
  color: var(--color-slate);
  line-height: var(--leading-body);
}

/* ============================================================
   Tech card grid (used inside .what-we-build dark section)
   ============================================================ */

.tech-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-6);
  margin-bottom: var(--space-8);
}

@media (min-width: 640px) {
  .tech-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .tech-cards {
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-5);
  }
  /* Row 1: cards 1-3 each span 2 of 6 columns */
  .tech-card:nth-child(1) { grid-column: 1 / 3; }
  .tech-card:nth-child(2) { grid-column: 3 / 5; }
  .tech-card:nth-child(3) { grid-column: 5 / 7; }
  /* Row 2: cards 4 and 5 centred — offset by half a column-unit */
  .tech-card:nth-child(4) { grid-column: 2 / 4; }
  .tech-card:nth-child(5) { grid-column: 4 / 6; }
}

.tech-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  border-left: 3px solid var(--color-gold);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: background var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

.tech-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.tech-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: var(--text-body-xs);
  text-align: center;
  padding: 0;
  overflow: hidden;
}

/* Show dashed border only when slot is empty (no img child) */
.tech-card__img:not(:has(img)) {
  border: 1px dashed rgba(255, 255, 255, 0.18);
  padding: var(--space-3);
}

.tech-card__img img,
.tech-card__img svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-sm);
}

.tech-card__title {
  font-family: var(--font-display);
  font-weight: var(--weight-light);
  font-size: var(--text-heading-sm);
  color: #fff;
  line-height: var(--leading-heading);
  margin: 0;
}

.tech-card__body {
  font-size: var(--text-body-sm);
  color: rgba(255, 255, 255, 0.78);
  line-height: var(--leading-body);
  margin: 0;
}

/* ============================================================
   SECTION 5 — What BOOM builds
   ============================================================ */

.what-we-build {
  background: var(--color-warm-white);
}

.what-we-build__inner {
  display: block;
}

.what-we-build h2 {
  font-size: var(--text-display-md);
  margin-bottom: var(--space-4);
}

.what-we-build__intro {
  font-size: var(--text-body-md);
  color: var(--color-slate);
  line-height: var(--leading-body);
  margin-bottom: var(--space-6);
}

.tech-pillars {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.tech-pillar {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-body-sm);
  color: var(--color-charcoal);
  line-height: var(--leading-tight);
}

.tech-pillar::before {
  content: '→';
  color: var(--color-gold);
  font-weight: var(--weight-medium);
  flex-shrink: 0;
  line-height: 1.5;
}

.mcp-note {
  background: var(--color-cream);
  border: 1px solid var(--color-cream-dark);
  border-left: 3px solid var(--color-gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-body-sm);
  color: var(--color-slate);
  line-height: var(--leading-body);
}

/* Hub diagram */
.hub-diagram {
  background: var(--color-cream);
  border: 1px solid var(--color-cream-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}

.hub-diagram__svg {
  width: 100%;
  max-width: 400px;
}

/* ============================================================
   SECTION 6 — CoreSpec 3D
   ============================================================ */

.corespec {
  background: var(--color-gold-subtle);
}

.corespec__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 900px) {
  .corespec__inner {
    grid-template-columns: 5fr 7fr;
    gap: var(--space-9);
  }
}

.corespec__image {
  order: 1;
}

.corespec__img-placeholder {
  background: var(--color-cream);
  border: 1px solid var(--color-cream-dark);
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.corespec__img-placeholder:not(:has(img)) {
  display: flex;
  align-items: flex-end;
  padding: var(--space-5);
}

.corespec__img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
}

.corespec__img-placeholder span {
  font-size: var(--text-caption);
  color: var(--color-slate);
  font-style: italic;
}

.corespec h2 {
  font-size: var(--text-display-md);
  margin-bottom: var(--space-5);
}

.corespec__body {
  font-size: var(--text-body-md);
  color: var(--color-slate);
  line-height: var(--leading-body);
  margin-bottom: var(--space-6);
}

.outcome-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.outcome-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-warm-white);
  border: 1px solid var(--color-cream-dark);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  color: var(--color-charcoal);
}

.outcome-pill::before {
  content: '✦';
  color: var(--color-gold);
  font-size: 0.6em;
}

.corespec__cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.corespec__cta-note {
  font-size: var(--text-caption);
  color: var(--color-slate);
}

/* ============================================================
   SECTION 7 — FM 2.0
   ============================================================ */

.fm-section {
  background: var(--color-warm-white);
}

.fm-section__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 900px) {
  .fm-section__inner {
    grid-template-columns: 7fr 5fr;
    gap: var(--space-9);
  }
}

.fm-section__img-placeholder {
  background: var(--color-cream);
  border: 1px solid var(--color-cream-dark);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-end;
  padding: var(--space-5);
  min-height: 280px;
  order: -1;
}

@media (min-width: 900px) {
  .fm-section__img-placeholder {
    order: 0;
  }
}

.fm-section__img-placeholder span {
  font-size: var(--text-caption);
  color: var(--color-slate);
  font-style: italic;
}

.fm-section h2 {
  font-size: var(--text-display-md);
  margin-bottom: var(--space-5);
}

.fm-section__body {
  font-size: var(--text-body-md);
  color: var(--color-slate);
  line-height: var(--leading-body);
  margin-bottom: var(--space-5);
}

.outcomes-list {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.outcomes-list li {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-body-sm);
  color: var(--color-charcoal);
  line-height: var(--leading-tight);
}

.outcomes-list li::before {
  content: '→';
  color: var(--color-gold);
  font-weight: var(--weight-medium);
  flex-shrink: 0;
  line-height: 1.5;
}

/* ============================================================
   SECTION 8 — How BOOM works (dark)
   ============================================================ */

.how-we-work {
  background: var(--color-charcoal);
}

.how-we-work .eyebrow {
  color: var(--color-gold);
}

.how-we-work__inner {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.how-we-work h2 {
  font-size: var(--text-display-md);
  color: var(--color-dark-text);
  margin-bottom: var(--space-5);
}

.how-we-work__body {
  font-size: var(--text-body-lg);
  color: var(--color-slate);
  line-height: var(--leading-body);
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: var(--space-9);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  margin-bottom: var(--space-8);
  text-align: left;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
}

.step {
  padding-inline: var(--space-6);
  position: relative;
}

@media (min-width: 768px) {
  .step + .step {
    border-left: 1px solid var(--color-charcoal-mid);
  }
}

.step__num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: var(--weight-light);
  color: var(--color-gold);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: var(--space-4);
  letter-spacing: var(--tracking-display);
}

.step__title {
  font-size: var(--text-heading-sm);
  font-weight: var(--weight-medium);
  color: var(--color-dark-text);
  margin-bottom: var(--space-3);
  line-height: var(--leading-heading);
}

.step__body {
  font-size: var(--text-body-sm);
  color: var(--color-slate);
  line-height: var(--leading-body);
}

/* ============================================================
   SECTION 9 — The team
   ============================================================ */

.team-section {
  background: var(--color-warm-white);
}

.team-section__header {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

.team-section h2 {
  font-size: var(--text-display-sm);
  margin-bottom: var(--space-4);
}

.team-section__sub {
  font-size: var(--text-body-lg);
  color: var(--color-slate);
  line-height: var(--leading-body);
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4) var(--space-6);
  margin-bottom: var(--space-7);
}

.team-card {
  flex: 0 0 calc(50% - var(--space-6) / 2);
  max-width: calc(50% - var(--space-6) / 2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .team-card {
    flex: 0 0 calc(25% - var(--space-6) * 3 / 4);
    max-width: calc(25% - var(--space-6) * 3 / 4);
  }
}

.team-card__photo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-pill);
  background: var(--color-cream);
  border: 1px solid var(--color-cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-body-sm);
  color: var(--color-slate);
  flex-shrink: 0;
  overflow: hidden;
}

.team-card__photo svg {
  width: 32px;
  height: 32px;
  color: var(--color-slate);
}

.team-card__name {
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-charcoal);
  line-height: var(--leading-heading);
}

.team-card__title {
  font-size: var(--text-caption);
  color: var(--color-slate);
  line-height: var(--leading-tight);
}

.team-card__bio {
  font-size: var(--text-caption);
  color: var(--color-slate);
  font-style: italic;
  line-height: var(--leading-tight);
}

.team-section__cta {
  text-align: center;
}

/* ============================================================
   SECTION 10 — Social proof
   ============================================================ */

.social-proof {
  background: var(--color-cream);
}

.social-proof__quote-wrap {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--space-8);
  position: relative;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--color-gold);
  opacity: 0.35;
  display: block;
  margin-bottom: calc(-1 * var(--space-4));
}

.quote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--color-charcoal);
  line-height: var(--leading-tight);
  font-weight: var(--weight-light);
}

.quote-attribution {
  margin-top: var(--space-5);
  font-size: var(--text-caption);
  color: var(--color-slate);
}

.quote-attribution strong {
  display: block;
  font-size: var(--text-label);
  font-weight: var(--weight-semibold);
  color: var(--color-charcoal);
  margin-bottom: var(--space-1);
}

.stat-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .stat-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-card {
  background: var(--color-warm-white);
  border: 1px solid var(--color-cream-dark);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  text-align: center;
}

.stat-card__number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: var(--weight-light);
  color: var(--color-gold);
  letter-spacing: var(--tracking-display);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-card__label {
  font-size: var(--text-caption);
  color: var(--color-slate);
  line-height: var(--leading-tight);
}

/* ============================================================
   SECTION 11 — The Closer
   ============================================================ */

.closer {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (max-width: 767px) {
  .closer {
    min-height: 360px;
  }
}

.closer__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--color-cream) 0%,
    var(--color-cream-dark) 50%,
    var(--color-slate) 100%
  );
  z-index: 0;
}

/* Comment marks in HTML indicate image directions */
.closer__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-charcoal);
  opacity: 0.4;
  z-index: 1;
}

.closer__text {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  padding-inline: var(--space-6);
}

.closer__headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: var(--weight-light);
  color: var(--color-dark-text);
  letter-spacing: var(--tracking-display);
  line-height: 1.3;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--color-charcoal);
  padding-block: var(--space-10) var(--space-7);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-charcoal-mid);
}

@media (min-width: 768px) {
  .site-footer__top {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-8);
  }
}

.footer-brand__wordmark {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: var(--weight-light);
  color: var(--color-gold);
  letter-spacing: var(--tracking-display);
  display: block;
  margin-bottom: var(--space-4);
}

.footer-brand__desc {
  font-size: var(--text-body-sm);
  color: var(--color-slate);
  line-height: var(--leading-body);
  max-width: 28ch;
}

.footer-col__title {
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  color: var(--color-dark-text);
  letter-spacing: var(--tracking-overline);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.footer-col__links {
  display: grid;
  gap: var(--space-3);
}

.footer-col__links a {
  font-size: var(--text-body-sm);
  color: var(--color-slate);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-col__links a:hover {
  color: var(--color-dark-text);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

.footer-legal {
  font-size: var(--text-caption);
  color: var(--color-slate);
}

.footer-linkedin {
  font-size: var(--text-caption);
  color: var(--color-slate);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: color var(--transition-base);
}

.footer-linkedin:hover {
  color: var(--color-dark-text);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

.animate-fade-up.delay-1 { animation-delay: 0.1s; }
.animate-fade-up.delay-2 { animation-delay: 0.2s; }
.animate-fade-up.delay-3 { animation-delay: 0.35s; }
.animate-fade-up.delay-4 { animation-delay: 0.5s; }

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   UTILITIES
   ============================================================ */

.text-center { text-align: center; }
.text-gold    { color: var(--color-gold); }
.text-slate   { color: var(--color-slate); }

.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-7 { margin-bottom: var(--space-7); }
.mb-8 { margin-bottom: var(--space-8); }

/* ============================================================
   INLINE IMAGES (within body text / paragraphs)
   ============================================================ */

/* Any <img> inside a paragraph or inline context gets sensible
   vertical alignment so it sits flush with the text baseline.
   Only applies when the img has no display override already set. */
p > img, li > img {
  display: inline !important;
  vertical-align: middle !important;
  width: auto;
  margin: 0 0.25em;
}

/* Signature / handwriting style inline images */
img.inline-sig {
  display: inline;
  vertical-align: middle;
  max-height: 1.6em;
  width: auto;
  margin: 0 0.3em;
  opacity: 0.9;
}

/* ============================================================
   SCROLLING GALLERY
   ============================================================ */

.scroll-gallery {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-gold) transparent;
  padding-bottom: var(--space-3);
}
.scroll-gallery::-webkit-scrollbar { height: 4px; }
.scroll-gallery::-webkit-scrollbar-track { background: transparent; }
.scroll-gallery::-webkit-scrollbar-thumb { background: var(--color-gold); border-radius: 99px; }

.scroll-gallery__track {
  display: flex;
  gap: var(--space-4);
  width: max-content;
}

/* Default item size — 4:3 landscape */
.scroll-gallery__item {
  flex-shrink: 0;
  width: 380px;
  aspect-ratio: 4 / 3;
  background: var(--color-cream);
  border: 1px solid var(--color-cream-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-slate);
  font-style: italic;
  font-size: var(--text-body-sm);
  cursor: pointer;
  transition: transform 300ms cubic-bezier(.22,.61,.36,1), box-shadow 300ms ease;
}
.scroll-gallery__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -10px rgba(33,30,26,0.18);
}
.scroll-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Size variants */
.scroll-gallery__item--wide  { width: 560px; }
.scroll-gallery__item--narrow { width: 260px; aspect-ratio: 3/4; }
.scroll-gallery__item--square { width: 320px; aspect-ratio: 1/1; }
.scroll-gallery__item--xl    { width: 720px; }

/* Caption below item */
.scroll-gallery__item figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--space-2) var(--space-3);
  background: linear-gradient(0deg, rgba(33,30,26,.6) 0%, transparent 100%);
  color: var(--color-warm-white);
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-caption);
  opacity: 0;
  transition: opacity 200ms ease;
}
.scroll-gallery__item:hover figcaption { opacity: 1; }

/* Lightbox */
.sg-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(33,30,26,.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 250ms ease;
}
.sg-lightbox.open { opacity: 1; pointer-events: all; }
.sg-lightbox img {
  max-width: 90vw; max-height: 88vh;
  object-fit: contain; display: block;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.sg-lightbox__close {
  position: absolute; top: 20px; right: 24px;
  background: transparent; border: none;
  color: var(--color-warm-white); font-size: 2rem;
  cursor: pointer; line-height: 1; opacity: .7;
  transition: opacity 150ms ease;
}
.sg-lightbox__close:hover { opacity: 1; }

/* ============================================================
   END OF main.css — BOOM Interactive v2.0
   ============================================================ */
