/* ============================================================
   PTSCB — SCB Style Guide implementation
   Primary:   Dark Charcoal  #08080A   /   Snow White   #F1F0EC
   Secondary: Eggnog         #E8E1D4   /   Pavilion Grey #CBC4B7
   Type:      Raleway (display) · Montserrat (sub/eyebrow) · Roboto (body)
   ============================================================ */

:root {
  --charcoal:   #08080A;
  --snow:       #FFFFFF;
  --mist:       #F1F0EC;
  --eggnog:     #E8E1D4;
  --pavilion:   #CBC4B7;

  --bg:        var(--snow);
  --fg:        var(--charcoal);
  --accent:    var(--eggnog);
  --rule:      rgba(8,8,10,0.18);
  --muted:     rgba(8,8,10,0.55);
  --hairline:  rgba(8,8,10,0.12);

  --gutter:    clamp(24px, 5vw, 96px);
  --max:       1480px;

  --f-display: 'Raleway', system-ui, sans-serif;
  --f-sub:     'Montserrat', system-ui, sans-serif;
  --f-body:    'Roboto', system-ui, sans-serif;
}

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

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html { scroll-behavior: smooth; }

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

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

::selection { background: var(--charcoal); color: var(--snow); }

/* ===== Image-slot styling (calm placeholder per style guide) ===== */
image-slot {
  --is-bg: var(--pavilion);
  --is-fg: rgba(8,8,10,0.45);
  --is-border: rgba(8,8,10,0.10);
  display: block;
  background: var(--is-bg);
  position: relative;
  font-family: var(--f-body) !important;
  /* subtle linen-like stripe */
  background-image:
    repeating-linear-gradient(
      135deg,
      transparent 0,
      transparent 14px,
      rgba(8,8,10,0.025) 14px,
      rgba(8,8,10,0.025) 15px
    );
}

/* ===== Typography helpers ===== */
.section-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  max-width: 22ch;
  text-wrap: balance;
}
.section-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--muted);
}
.section-title--inverse { color: var(--snow); }
.section-title--inverse em { color: rgba(241,240,236,0.55); }

.section-tag {
  font-family: var(--f-sub);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.section-tag--inverse { color: rgba(241,240,236,0.6); }

.rule {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
  vertical-align: middle;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--gutter);
  transition: padding .35s ease, background-color .35s ease, backdrop-filter .35s ease;
}
.nav--scrolled {
  padding: 18px var(--gutter);
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.nav__brand {
  display: inline-flex; align-items: center; gap: 14px;
}
.nav__logo {
  width: 56px; height: 56px;
  display: block;
  object-fit: contain;
  transition: width .35s ease, height .35s ease;
}
.nav__wordmark {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: 0.24em;
  font-size: 15px;
  color: var(--fg);
}
.nav--scrolled .nav__logo { width: 44px; height: 44px; }

.nav__links {
  display: flex; gap: clamp(20px, 3vw, 44px);
  font-family: var(--f-sub);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.nav__links a {
  position: relative;
  padding: 6px 0;
  color: var(--fg);
  opacity: 0.7;
  transition: opacity .25s ease;
}
.nav__links a:hover { opacity: 1; }
.nav__links a.is-active { opacity: 1; }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--fg);
}

.nav__cta {
  font-family: var(--f-sub);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--fg);
  transition: background-color .25s ease, color .25s ease;
}
.nav__cta:hover { background: var(--fg); color: var(--snow); }

@media (max-width: 760px) {
  .nav__links { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  padding: clamp(170px, 16vh, 230px) var(--gutter) clamp(60px, 8vw, 120px);
  align-items: end;
  max-width: var(--max);
  margin: 0 auto;
}

.hero__grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-bottom: 40px;
}

.hero__eyebrow {
  font-family: var(--f-sub);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.hero__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--muted);
}

.hero__lede {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.65;
  max-width: 46ch;
  color: rgba(8,8,10,0.78);
}
.hero__lede strong {
  font-weight: 500;
  color: var(--fg);
}

.hero__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  max-width: 540px;
}
.meta__label {
  font-family: var(--f-sub);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.meta__value {
  font-family: var(--f-sub);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--fg);
}

.hero__image {
  position: relative;
  aspect-ratio: 4 / 5;
  align-self: end;
  transform: translateY(-30px);
}
.hero__image-caption {
  position: absolute;
  bottom: -34px;
  left: 0;
  font-family: 'JetBrains Mono', ui-monospace, 'Roboto Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.hero__image-caption .dot {
  width: 6px; height: 6px; background: var(--fg); border-radius: 50%;
}

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; padding-top: 130px; }
  .hero__image { aspect-ratio: 1/1; transform: none; max-height: 70vh; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  background: var(--charcoal);
  color: var(--snow);
  border-top: 0;
  border-bottom: 0;
  padding: 0;
  overflow: hidden;
}
.marquee__inner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  padding: 26px var(--gutter);
}
.marquee__label {
  font-family: var(--f-sub);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(241,240,236,0.55);
  white-space: nowrap;
  display: flex; align-items: center; gap: 14px;
  flex-shrink: 0;
}
.marquee__label .rule {
  background: rgba(241,240,236,0.4);
  opacity: 1;
}
.marquee__track {
  display: flex;
  width: 100%;
  overflow: hidden;
  position: relative;
  /* Soft fade on left/right edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__list {
  display: flex;
  flex-shrink: 0;
  gap: clamp(32px, 4vw, 64px);
  padding-right: clamp(32px, 4vw, 64px);
  font-family: var(--f-sub);
  font-weight: 500;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(241,240,236,0.72);
  white-space: nowrap;
  will-change: transform;
}
.marquee__list span {
  white-space: nowrap;
  cursor: default;
  /* No transform / weight / style changes on hover — only proximity-speed */
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .marquee__track::-webkit-scrollbar { display: none; }
}
@media (max-width: 720px) {
  .marquee__inner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px var(--gutter); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: clamp(80px, 12vw, 180px) var(--gutter);
  background: var(--mist);
  /* full-bleed bg trick while keeping content max-width */
  box-shadow: 0 0 0 100vmax var(--mist);
  clip-path: inset(0 -100vmax);
  max-width: var(--max);
  margin: 0 auto;
}
.about__head { margin-bottom: clamp(60px, 8vw, 120px); max-width: 900px; }

.about__body {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto auto auto;
  gap: clamp(24px, 3vw, 48px) clamp(20px, 2.5vw, 40px);
  align-items: start;
}
.about__image--a {
  grid-column: 1 / span 5;
  grid-row: 1;
  aspect-ratio: 4/5;
  position: relative;
}
.about__copy {
  grid-column: 7 / span 6;
  grid-row: 1 / span 2;
  display: flex; flex-direction: column; gap: 22px;
  max-width: 56ch;
  padding-top: clamp(20px, 5vw, 60px);
  align-self: start;
}
.about__copy .lede {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--fg);
}
.about__copy p {
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.75;
  color: rgba(8,8,10,0.78);
}

.about__image--mid {
  grid-column: 1 / span 5;
  grid-row: 2;
  aspect-ratio: 4/5;
  margin-top: 0;
}

.about__image--b {
  grid-column: 1 / -1;
  grid-row: 3;
  aspect-ratio: 16/5;
  margin-top: clamp(40px, 6vw, 80px);
}

.about__image--b image-slot {
  --is-bg: #FFFFFF;
}

.cap {
  margin-top: 12px;
  font-family: 'JetBrains Mono', ui-monospace, 'Roboto Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.about__pillars {
  grid-column: 1 / -1;
  grid-row: 4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(60px, 8vw, 100px);
  padding-top: clamp(40px, 5vw, 60px);
  border-top: 1px solid var(--hairline);
}
.pillar__num {
  font-family: 'JetBrains Mono', ui-monospace, 'Roboto Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 14px;
}
.pillar__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(18px, 1.4vw, 22px);
  letter-spacing: -0.005em;
  margin-bottom: 12px;
  line-height: 1.25;
}
.pillar p {
  font-size: 15px; line-height: 1.65;
  color: rgba(8,8,10,0.72);
  max-width: 40ch;
}

@media (max-width: 920px) {
  .about__image--a, .about__copy, .about__image--mid, .about__image--b { grid-column: 1 / -1; grid-row: auto; }
  .about__image--mid, .about__image--b { margin-top: 24px; aspect-ratio: 4/3; }
  .about__pillars { grid-template-columns: 1fr; }
}

/* ============================================================
   MISSION
   ============================================================ */
.mission {
  background: var(--charcoal);
  color: var(--snow);
  padding: clamp(80px, 12vw, 160px) var(--gutter);
}
.mission__inner {
  max-width: 1080px;
  margin: 0 auto;
}
.mission .section-tag {
  color: rgba(241,240,236,0.5);
  margin-bottom: clamp(28px, 4vw, 48px);
}
.mission__quote {
  margin: 0;
  padding: 0;
  border: 0;
  max-width: 22ch;
}
.mission__quote p {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--snow);
  text-wrap: balance;
  max-width: 24ch;
}
.mission__quote em {
  font-style: italic;
  font-weight: 400;
  color: rgba(241,240,236,0.6);
}
.mission__caption {
  margin-top: clamp(40px, 5vw, 64px);
  margin-left: auto;
  font-family: var(--f-body);
  font-weight: 300;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.7;
  color: rgba(241,240,236,0.72);
  max-width: 56ch;
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid rgba(241,240,236,0.15);
}
@media (min-width: 920px) {
  .mission__quote { max-width: none; }
  .mission__quote p { font-size: clamp(36px, 4.2vw, 60px); }
  .mission__caption {
    max-width: 56ch;
    width: 56ch;
  }
}

/* ============================================================
   PEOPLE
   ============================================================ */
.people {
  background: #FFFFFF;
  padding: clamp(80px, 10vw, 140px) var(--gutter);
}
.people .section-tag {
  max-width: var(--max);
  margin: 0 auto clamp(50px, 6vw, 80px);
  text-align: center;
}

.people__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.people__photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.people__photo image-slot {
  --is-bg: #FFFFFF;
  width: 100%; height: 100%;
  display: block;
}
.people__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.people__labels {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: clamp(28px, 3vw, 44px);
}

.people__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  padding: 0 clamp(8px, 2vw, 24px);
}

.people__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(22px, 1.9vw, 30px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 4px;
}
.people__role {
  font-family: var(--f-sub);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg);
}
.people__region {
  font-family: var(--f-sub);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 720px) {
  .people__photo { aspect-ratio: 4 / 5; }
  .people__labels {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ============================================================
   TEAM
   ============================================================ */
.team {
  background: var(--eggnog);
  padding: clamp(80px, 10vw, 140px) var(--gutter);
}
.team .section-tag { max-width: var(--max); margin: 0 auto 60px; }

.team__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.team__image {
  aspect-ratio: 16 / 10;
  background: var(--pavilion);
  overflow: hidden;
}
.team__image .team__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.02);
}

.team__roster {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3vw, 44px);
}

.team__card {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: clamp(16px, 2vw, 28px);
  padding-bottom: clamp(20px, 3vw, 32px);
  border-bottom: 1px solid rgba(8,8,10,0.12);
}
.team__card:last-child { border-bottom: none; padding-bottom: 0; }

.team__num {
  font-family: 'JetBrains Mono', ui-monospace, 'Roboto Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding-top: 8px;
}

.team__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(22px, 1.9vw, 30px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.team__role {
  font-family: var(--f-sub);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 6px;
}
.team__region {
  font-family: var(--f-sub);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

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

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: clamp(80px, 12vw, 180px) var(--gutter);
  background: var(--eggnog);
  /* full-bleed bg trick while keeping content max-width */
  box-shadow: 0 0 0 100vmax var(--eggnog);
  clip-path: inset(0 -100vmax);
  max-width: var(--max);
  margin: 0 auto;
}
.services__head { max-width: 900px; margin-bottom: clamp(60px, 8vw, 100px); }
.services__lede {
  margin-top: 28px;
  max-width: 60ch;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.7;
  color: rgba(8,8,10,0.75);
}

.services__list {
  display: flex;
  flex-direction: column;
  gap: clamp(60px, 10vw, 140px);
}

.svc {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  position: relative;
}
.svc__num {
  position: absolute;
  top: 0; left: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(60px, 8vw, 120px);
  line-height: 0.9;
  color: var(--pavilion);
  z-index: 0;
  pointer-events: none;
  letter-spacing: -0.03em;
}
.svc__image {
  grid-column: 1 / span 6;
  aspect-ratio: 5/4;
  position: relative;
  z-index: 1;
}
.svc__body {
  grid-column: 8 / span 5;
  position: relative;
  z-index: 1;
}
.svc--reverse .svc__image { grid-column: 7 / span 6; order: 2; }
.svc--reverse .svc__body  { grid-column: 1 / span 5; order: 1; }
.svc--reverse .svc__num   { left: auto; right: 0; }

.svc__body h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(28px, 2.6vw, 40px);
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.svc__lede {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.7;
  color: rgba(8,8,10,0.75);
  max-width: 44ch;
  margin-bottom: 28px;
}
.svc__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.svc__tags li {
  font-family: var(--f-sub);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
  padding: 8px 14px;
  border: 1px solid var(--hairline);
  background: transparent;
}

@media (max-width: 920px) {
  .svc__image, .svc__body { grid-column: 1 / -1; }
  .svc--reverse .svc__image, .svc--reverse .svc__body { grid-column: 1 / -1; order: initial; }
  .svc__num { font-size: 60px; }
}

/* ============================================================
   MARKETS
   ============================================================ */
.markets {
  padding: clamp(80px, 12vw, 180px) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.markets__head {
  max-width: 900px;
  margin-bottom: clamp(60px, 8vw, 100px);
}
.markets__lede {
  margin-top: 28px;
  max-width: 60ch;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.7;
  color: rgba(8,8,10,0.75);
}

.markets__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px) clamp(40px, 5vw, 80px);
}

.market {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}

.market__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.market__index {
  font-family: 'JetBrains Mono', ui-monospace, 'Roboto Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.market__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(28px, 2.6vw, 40px);
  letter-spacing: -0.015em;
  line-height: 1.05;
  color: var(--fg);
}

.market__body {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: clamp(15px, 1.05vw, 16px);
  line-height: 1.7;
  color: rgba(8,8,10,0.78);
  max-width: 52ch;
}

.market__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.market__tags li {
  font-family: var(--f-sub);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
  padding: 8px 14px;
  border: 1px solid var(--hairline);
}

@media (max-width: 720px) {
  .markets__grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ============================================================
   CAPABILITIES
   ============================================================ */
.capabilities {
  background: var(--snow);
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
}
.capabilities__inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}
.capabilities__head {
  margin-bottom: clamp(50px, 6vw, 80px);
}
.capabilities__head .section-tag { margin-bottom: 28px; }
.capabilities__head .section-title { margin-bottom: clamp(36px, 4vw, 56px); }

/* Stats strip removed */

/* Spotlight caption strip — feels like a photo caption */
.capabilities__caption {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--hairline);
  margin-bottom: clamp(28px, 3vw, 40px);
  font-family: 'JetBrains Mono', ui-monospace, 'Roboto Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  width: 100%;
}
.capabilities__caption-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--fg);
  display: inline-block;
  animation: capdot-pulse 2.4s ease-in-out infinite;
}
.capabilities__caption-idx {
  color: var(--fg);
  font-weight: 500;
  min-width: 2.4em;
}
.capabilities__caption-name {
  color: var(--fg);
  font-family: var(--f-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(14px, 1.1vw, 18px);
  letter-spacing: 0;
  transition: opacity .35s ease;
}
.capabilities__caption-name.is-fading { opacity: 0; }
@keyframes capdot-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.6); opacity: 0.4; }
}

/* Grid */
.capabilities__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  position: relative;
  z-index: 1;
}
.capabilities__grid > div {
  background: var(--snow);
  padding: 28px 24px;
  font-family: var(--f-sub);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--fg);
  position: relative;
  overflow: hidden;
  transition: color .3s ease, background-color .5s ease;
  cursor: default;
}
/* Hairline-draw on hover */
.capabilities__grid > div::after {
  content: "";
  position: absolute;
  left: 24px; right: 24px; bottom: 18px;
  height: 1px;
  background: var(--charcoal);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.capabilities__grid > div:hover::after,
.capabilities__grid > div.is-spotlight::after {
  transform: scaleX(1);
}
/* Spotlight cell — soft eggnog warmth, never breaks the rhythm */
.capabilities__grid > div.is-spotlight {
  background: var(--eggnog);
}
.capabilities__grid > div:hover {
  background: var(--eggnog);
}
@media (max-width: 760px) {
  .capabilities__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--charcoal);
  color: var(--snow);
  padding: clamp(90px, 12vw, 180px) var(--gutter);
}

/* Top: logo + title block, asymmetric but balanced */
.contact__top {
  max-width: var(--max);
  margin: 0 auto clamp(50px, 6vw, 90px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: end;
}
.contact__logo {
  width: clamp(120px, 14vw, 200px);
  height: clamp(120px, 14vw, 200px);
  display: block;
  object-fit: contain;
  filter: invert(1);
  opacity: 0.96;
}
.contact__title-block { max-width: 720px; }
.contact__title-block .section-tag { margin-bottom: 22px; }
.contact__title-block .section-title { margin-bottom: 28px; }
.contact__tag {
  font-family: var(--f-sub);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(241,240,236,0.55);
}

.contact__rule {
  max-width: var(--max);
  margin: 0 auto;
  height: 1px;
  background: rgba(241,240,236,0.18);
}

/* Three balanced columns */
.contact__grid {
  max-width: var(--max);
  margin: clamp(50px, 6vw, 90px) auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}

.contact__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact__label {
  font-family: var(--f-sub);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(241,240,236,0.5);
  margin-bottom: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(241,240,236,0.15);
}

.contact__line {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(15px, 1.1vw, 18px);
  letter-spacing: -0.005em;
  color: rgba(241,240,236,0.78);
  line-height: 1.4;
  transition: color .25s ease;
}
.contact__line--lg {
  font-weight: 500;
  font-size: clamp(18px, 1.6vw, 24px);
  color: var(--snow);
}
a.contact__line:hover { color: var(--pavilion); }

/* Coverage list */
.contact__regions {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
}
.contact__regions li {
  display: grid;
  grid-template-columns: 30px 1fr;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(14px, 1.05vw, 17px);
  letter-spacing: -0.005em;
  color: var(--snow);
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(241,240,236,0.08);
  align-items: baseline;
}
.contact__regions li span {
  font-family: 'JetBrains Mono', ui-monospace, 'Roboto Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(241,240,236,0.45);
}

@media (max-width: 1000px) {
  .contact__grid { grid-template-columns: 1fr 1fr; }
  .contact__col--coverage { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .contact__top { grid-template-columns: 1fr; align-items: start; gap: 28px; }
  .contact__logo { width: 96px; height: 96px; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__col--coverage { grid-column: auto; }
  .contact__regions { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--charcoal);
  color: rgba(241,240,236,0.5);
  padding: 28px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(241,240,236,0.08);
  font-family: var(--f-sub);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.footer__brand {
  color: var(--snow);
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 13px;
}
.footer__logo {
  width: 28px; height: 28px;
  filter: invert(1);
  object-fit: contain;
}

/* ============================================================
   THEME VARIANTS (driven by Tweaks)
   ============================================================ */
body[data-bg="eggnog"]   { --bg: var(--eggnog); }
body[data-bg="pavilion"] { --bg: var(--pavilion); }
body[data-bg="snow"]     { --bg: var(--snow); }

body[data-accent="pavilion"] .team,
body[data-accent="pavilion"] .capabilities { background: var(--pavilion); }
body[data-accent="snow"] .team,
body[data-accent="snow"] .capabilities { background: var(--snow); }

body[data-typecase="display-sans"] .hero__title em,
body[data-typecase="display-sans"] .section-title em { font-style: normal; }

/* ============================================================
   IMAGE TREATMENTS (real photographs)
   ============================================================ */
.hero__photo,
.about__photo,
.svc__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.02);
}
.hero__photo  { object-position: 50% 45%; }
.about__image--a .about__photo { object-position: 30% 50%; }
.about__image--b .about__photo { object-position: 50% 50%; }
.svc__photo { object-position: 50% 45%; }

/* ============================================================
   CAPABILITY STATEMENT CTA
   ============================================================ */
.capstmt {
  background: var(--pavilion);
  padding: clamp(80px, 12vw, 160px) var(--gutter);
}
.capstmt__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.capstmt__lede .section-tag { margin-bottom: 24px; }
.capstmt__lede .section-title { margin-bottom: 24px; }
.capstmt__para {
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.7;
  max-width: 42ch;
  color: rgba(8,8,10,0.78);
}

/* ===== Form ===== */
.capform {
  background: var(--snow);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(8,8,10,0.18);
  position: relative;
  min-height: 260px;
}
.capform__honey {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.capform__step { display: none; }
.capform__step.is-active { display: block; }

.capform__label {
  font-family: var(--f-sub);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 14px;
}
.capform__label strong {
  font-weight: 500;
  color: var(--fg);
  font-family: var(--f-body);
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
  margin-left: 6px;
}

.capform__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  border: 1px solid var(--charcoal);
  background: var(--snow);
}
.capform__row input {
  border: 0;
  background: transparent;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(16px, 1.4vw, 20px);
  letter-spacing: -0.005em;
  padding: 18px 20px;
  color: var(--fg);
  outline: none;
  width: 100%;
}
.capform__row input::placeholder {
  color: rgba(8,8,10,0.32);
  font-weight: 400;
}
.capform__row--code input {
  letter-spacing: 0.32em;
  font-family: 'JetBrains Mono', ui-monospace, 'Roboto Mono', monospace;
  text-align: center;
  font-size: clamp(18px, 1.8vw, 26px);
}

.capform__cta {
  border: 0;
  border-left: 1px solid var(--charcoal);
  background: var(--charcoal);
  color: var(--snow);
  font-family: var(--f-sub);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0 26px;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}
.capform__cta:hover { background: var(--snow); color: var(--charcoal); }

.capform__hint {
  margin-top: 14px;
  font-family: var(--f-body);
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.capform__link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.capform__link:hover { color: var(--muted); }
.capform__toast {
  font-family: var(--f-sub);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--charcoal);
  color: var(--snow);
  padding: 4px 10px;
  margin-left: 6px;
}

.capform__error {
  margin-top: 12px;
  font-family: var(--f-body);
  font-size: 13px;
  color: #8a3a2a;
  min-height: 18px;
}
.capform__error:empty { margin-top: 0; }

.capform__done {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.capform__done-mark {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--snow);
  display: grid; place-items: center;
  font-size: 20px;
}
.capform__done-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: -0.005em;
  margin-bottom: 8px;
}
.capform__done-body {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(8,8,10,0.78);
  max-width: 44ch;
}

/* Demo-mode banner (pinned, non-blocking) */
.capform__demo {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--charcoal);
  color: var(--snow);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: 0.01em;
  z-index: 90;
  box-shadow: 0 12px 32px rgba(8,8,10,0.18);
}
.capform__demo-label {
  font-family: var(--f-sub);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background: rgba(241,240,236,0.16);
  color: var(--snow);
  padding: 4px 10px;
  white-space: nowrap;
}
.capform__demo-body strong {
  font-family: 'JetBrains Mono', ui-monospace, 'Roboto Mono', monospace;
  letter-spacing: 0.18em;
  padding: 0 4px;
}

@media (max-width: 920px) {
  .capstmt__inner { grid-template-columns: 1fr; }
  .capform__row { grid-template-columns: 1fr; }
  .capform__cta { border-left: 0; border-top: 1px solid var(--charcoal); padding: 16px; }
}

/* ============================================================
   VIDEO SECTION
   ============================================================ */
.video {
  padding: clamp(70px, 9vw, 120px) var(--gutter) clamp(80px, 10vw, 140px);
  max-width: var(--max);
  margin: 0 auto;
}
.video__head {
  margin-bottom: clamp(40px, 5vw, 70px);
  max-width: 800px;
}
.video__head .section-tag { margin-bottom: 20px; }
.video__frame {
  position: relative;
  background: var(--charcoal);
  padding: 1px;
}
.video__inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.video__inner iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 2;
}

/* Sound toggle overlay */
.video__sound {
  position: absolute;
  z-index: 4;
  bottom: clamp(20px, 3vw, 40px);
  right: clamp(20px, 3vw, 40px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  background: rgba(8,8,10,0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--snow);
  border: 1px solid rgba(241,240,236,0.22);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--f-sub);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background-color .25s ease, opacity .6s ease, padding .35s ease;
}
.video__sound:hover { background: rgba(8,8,10,0.8); }
.video__sound-icon {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  position: relative;
}
.video__icon {
  position: absolute; inset: 0;
  margin: auto;
  opacity: 0;
  transition: opacity .25s ease;
}
.video__sound.is-muted   .video__icon--muted { opacity: 1; }
.video__sound:not(.is-muted) .video__icon--on { opacity: 1; }
.video__sound-label {
  white-space: nowrap;
  transition: max-width .35s ease, opacity .25s ease, margin .35s ease;
  max-width: 200px;
  overflow: hidden;
}
.video__sound.is-quiet .video__sound-label {
  max-width: 0;
  opacity: 0;
  margin-left: -10px;
}
.video__sound.is-quiet { padding-right: 14px; }
.video__sound.is-quiet:hover .video__sound-label {
  max-width: 200px;
  opacity: 1;
  margin-left: 0;
}
.video__sound.is-quiet:hover { padding-right: 18px; }

@media (max-width: 560px) {
  .video__sound-label { display: none; }
  .video__sound { padding: 12px; }
}
.video__placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--charcoal)
    repeating-linear-gradient(
      135deg,
      transparent 0,
      transparent 24px,
      rgba(241,240,236,0.03) 24px,
      rgba(241,240,236,0.03) 25px
    );
  color: var(--snow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 32px;
}
.video__placeholder-mark {
  width: 64px; height: 64px;
  border: 1.5px solid rgba(241,240,236,0.6);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 20px;
  color: rgba(241,240,236,0.8);
  padding-left: 5px;
}
.video__placeholder-label {
  font-family: var(--f-sub);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(241,240,236,0.6);
}
.video__placeholder-sub {
  font-family: 'JetBrains Mono', ui-monospace, 'Roboto Mono', monospace;
  font-size: 12px;
  color: rgba(241,240,236,0.45);
  max-width: 48ch;
}
.video__placeholder-sub code {
  background: rgba(241,240,236,0.08);
  padding: 1px 6px;
  color: rgba(241,240,236,0.75);
}
/* Hide placeholder once iframe has a real src */
.video__inner iframe:not([src="about:blank"]) + .video__placeholder { display: none; }

/* ============================================================
   TEAM PHOTOS
   ============================================================ */
.team__photo {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.02);
}

/* ============================================================
   SMOOTH SCROLL TRANSITIONS (intersection-driven fade-up)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    translate: 0 32px;
    transition: opacity 1.1s cubic-bezier(.2,.7,.2,1), translate 1.1s cubic-bezier(.2,.7,.2,1);
    will-change: opacity, translate;
  }
  .reveal.is-in {
    opacity: 1;
    translate: 0 0;
  }
  /* Stagger child reveals */
  .reveal-stagger > * {
    opacity: 0;
    translate: 0 16px;
    transition: opacity .9s cubic-bezier(.2,.7,.2,1), translate .9s cubic-bezier(.2,.7,.2,1);
    transition-delay: calc(var(--stagger-i, 0) * 60ms);
  }
  .reveal-stagger.is-in > * {
    opacity: 1;
    translate: 0 0;
  }

  /* Parallax — uses `transform` so it composes with reveal's `translate` */
  [data-parallax] {
    transform: translate3d(0, var(--py, 0px), 0);
    will-change: transform;
  }
}


/* ============================================================
   HARDCODED IMAGES (replace image-slot for production build)
   ============================================================ */
.hardcoded-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.people__photo .hardcoded-img { object-position: center top; }
