/* ════════════════════════════════════════════════════════════
   AI-NATIVE STAFF AUG — Caleb redesign candidate
   Thesis: "The engineer you hire. The company behind them."
   Six normal-flow sections — no pinned scroll, no copy gated
   behind scroll progress. Hero ported from hero-redesign.html
   sa-1 (drifting lattice web). Section styles descend from
   css/services/ai-native-staff-aug.css (et- prefix) reworked
   under the sac- prefix. Rhythm: dark / gray alternating.
   ════════════════════════════════════════════════════════════ */

.sac-wrap {
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: clamp(24px, 6vw, 96px);
}

/* Shared typographic atoms ---------------------------------- */
.sac-h2 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(34px, 4.2vw, 62px);
  line-height: 1;
  color: #F4F4F4;
  margin: 0;
}
.sac-h2 em { font-style: normal; color: #00BDFF; }
.sac-lead {
  /* typography comes from .prose (styles.css) */
  margin: 0;
  max-width: 54ch;
  text-wrap: pretty;
}
.sac-lead strong { font-weight: 500; color: #00BDFF; }
.sac-lead + .sac-lead { margin-top: 18px; }
.sac-aside {
  /* typography comes from .prose (styles.css) */
  max-width: 62ch;
  margin: clamp(28px, 4vh, 44px) 0 0;
}
.sac-aside strong { font-weight: 400; color: #00BDFF; }

/* Entrance reveal — quick fade-in as a section enters the
   viewport; content never depends on scroll progress. */
.sac-rv { opacity: 0; transform: translateY(18px); transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.sac-rv.in { opacity: 1; transform: none; }

/* S01 · HERO — shared services formula: markup rendered by
   /js/svc-heroes.js, styles in /css/services/svc-hero.css */

/* ══════════════════════════════════════════════════════════
   S02 · WHO YOU GET — "Our engineers. Not candidates."
   ══════════════════════════════════════════════════════════ */
.sac-who {
  background: #202124;
  padding: clamp(84px, 11vh, 150px) 0;
}
.sac-who__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.sac-who__copy .sac-h2 { margin-bottom: clamp(24px, 3vh, 34px); max-width: 14ch; }

/* right column — what AI-native means, as a compact ledger */
.sac-facts { border-top: 1px solid rgba(244, 244, 244, 0.12); margin-top: 8px; }
.sac-facts__label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #F4F4F4;
  margin-bottom: 14px;
}
.sac-fact {
  display: grid; grid-template-columns: 38px 1fr; gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(244, 244, 244, 0.12);
}
.sac-fact__i {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.2em;
  color: #00BDFF; padding-top: 3px;
}
.sac-fact__t { margin: 0; }              /* typography from .prose */
.sac-fact__t strong { font-weight: 500; color: #00BDFF; }

/* ══════════════════════════════════════════════════════════
   S03 · THE PEOPLE — "Your best engineers don't need
   hand-holding. Neither do ours."
   Slot-swap carousel: arrow · person · person · pinned stat
   stack · person · person · arrow. Eight team members rotate
   through the four card slots (page script).
   People/roles/stats are showcase data pending confirmation.
   ══════════════════════════════════════════════════════════ */
.sac-people {
  background: #202124;  /* flipped — S02 removed, keeps dark/gray rhythm */
  padding: clamp(84px, 11vh, 150px) 0;
}
.sac-people__head {
  margin-bottom: clamp(20px, 2.4vh, 30px);
}
.sac-people__head .sac-h2 { margin-bottom: clamp(24px, 3vh, 34px); }

.sac-crew {
  display: grid;
  grid-template-columns: 44px 1fr 1fr 0.92fr 1fr 1fr 44px;
  gap: 10px;
  align-items: stretch;
}

/* flanking arrows — slim full-height frames for the strip */
.sac-crew__arrow {
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  border: 1px solid rgba(244, 244, 244, 0.12);
  background: #1a1b1e;
  color: rgba(244, 244, 244, 0.55);
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.sac-crew__arrow svg { width: 20px; height: 20px; }
.sac-crew__arrow:hover { border-color: rgba(0, 189, 255, 0.4); color: #00BDFF; }
.sac-crew__arrow:focus-visible { outline: 2px solid #00BDFF; outline-offset: 2px; }

/* person card */
.sac-person {
  display: flex; flex-direction: column;
  border: 1px solid rgba(244, 244, 244, 0.12);
  background: #1a1b1e;
  transition: border-color 0.3s ease, opacity 0.24s ease, transform 0.24s ease;
}
.sac-person:hover { border-color: rgba(0, 189, 255, 0.4); }
.sac-person__photo {
  position: relative;
  aspect-ratio: 1 / 1.06;
  overflow: hidden;
}
.sac-person__photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: grayscale(35%);
  transition: filter 0.4s ease;
}
.sac-person:hover .sac-person__photo img { filter: none; }
.sac-person__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(22, 23, 25, 0.82), transparent 42%);
}
.sac-person__name {
  position: absolute; left: 14px; bottom: 11px; z-index: 1;
  max-width: calc(100% - 58px);   /* keep clear of the flag */
  font-family: 'Libre Franklin', sans-serif; font-weight: 500;
  font-size: 14px; line-height: 1.25; color: #F4F4F4;
}
.sac-person__body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.sac-person__role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: #00BDFF;
  line-height: 1.35;
  /* reserve two lines so a long title (e.g. Forward Deployed Engineer)
     never makes one card taller than the rest as the roster rotates */
  min-height: 2.7em;
}
.sac-person__flag {
  position: absolute; right: 12px; bottom: 12px; z-index: 1;
  width: 21px; height: 15px;
  border-radius: 2px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(22, 23, 25, 0.55);
}
.sac-person__flag svg { display: block; width: 100%; height: 100%; }
.sac-person__checks {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.sac-person__checks li {
  display: flex; align-items: flex-start; gap: 7px;
  font-family: 'Libre Franklin', sans-serif; font-weight: 300;
  font-size: 12.5px; line-height: 1.35; color: #F4F4F4;
}
.sac-person__checks svg { width: 13px; height: 13px; flex-shrink: 0; color: #00BDFF; margin-top: 2px; }

/* center stat stack */
.sac-crew__stats { display: flex; flex-direction: column; gap: 10px; }
.sac-stattile {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center;
  padding: 18px 12px;
  border: 1px solid rgba(0, 189, 255, 0.22);
  background: rgba(0, 189, 255, 0.04);
}
.sac-stattile__n {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(26px, 2.4vw, 38px); line-height: 1;
  color: #00BDFF;
}
.sac-stattile__l {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase;
  color: #F4F4F4;
}

/* Crew responsive tiers — the strip is redrawn, not squeezed:
   ≥1300px  four cards + centre stats + flanking arrows (default above)
   700–1299 two cards, arrows on the sides, stats lifted to a top row
   ≤699px   one card, arrows on the sides, stats lifted to a top row
   Cards are paged by the page script to match the visible count. */
@media (max-width: 1299px) {
  .sac-crew {
    grid-template-columns: 40px 1fr 1fr 40px;
    column-gap: 10px;
    row-gap: clamp(18px, 3.2vw, 28px);
    align-items: stretch;
  }
  /* stats → full-width row on top, tiles side by side */
  .sac-crew__stats {
    grid-column: 1 / -1; grid-row: 1;
    flex-direction: row; gap: 10px;
  }
  .sac-crew__arrow:first-child { grid-column: 1; grid-row: 2; }
  .sac-crew__arrow:last-child  { grid-column: 4; grid-row: 2; }
  .sac-crew > :nth-child(2) { grid-column: 2; grid-row: 2; } /* slot 0 */
  .sac-crew > :nth-child(3) { grid-column: 3; grid-row: 2; } /* slot 1 */
  .sac-crew > :nth-child(5),                                 /* slot 2 */
  .sac-crew > :nth-child(6) { display: none; }               /* slot 3 */
}

@media (max-width: 699px) {
  .sac-crew {
    grid-template-columns: 34px 1fr 34px;
    row-gap: clamp(16px, 5vw, 22px);
  }
  .sac-crew__stats { grid-column: 1 / -1; grid-row: 1; }
  .sac-crew__arrow:first-child { grid-column: 1; grid-row: 2; }
  .sac-crew__arrow:last-child  { grid-column: 3; grid-row: 2; }
  .sac-crew > :nth-child(2) { grid-column: 2; grid-row: 2; } /* slot 0 */
  .sac-crew > :nth-child(3) { display: none; }               /* slot 1 */
}

/* ══════════════════════════════════════════════════════════
   S04 · HOW THEY EMBED — "Your tools. Your process. Day one."
   ══════════════════════════════════════════════════════════ */
.sac-fit {
  position: relative;
  background: #161719;  /* flipped — S02 removed, keeps dark/gray rhythm */
  padding: clamp(84px, 11vh, 150px) 0;
  overflow: hidden;
}
.sac-fit::before {                       /* fine dot grid, echoes hero */
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(244, 244, 244, 0.04) 1px, transparent 1.5px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(110% 80% at 85% 100%, #000 20%, transparent 72%);
          mask-image: radial-gradient(110% 80% at 85% 100%, #000 20%, transparent 72%);
  pointer-events: none;
}
.sac-fit > .sac-wrap { position: relative; z-index: 2; }
.sac-fit__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.sac-fit__copy .sac-h2 { margin-bottom: clamp(24px, 3vh, 34px); max-width: 13ch; }

/* AI tool tiles (real logos) */
.sac-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sac-tool {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(244, 244, 244, 0.12);
  background: rgba(244, 244, 244, 0.02);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.sac-tool:hover { border-color: rgba(0, 189, 255, 0.45); background: rgba(0, 189, 255, 0.05); }
.sac-tool.wide { grid-column: span 2; }
.sac-tool__ic {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; flex-shrink: 0;
  color: #F4F4F4;
  font-family: 'JetBrains Mono', monospace; font-size: 15px;
}
.sac-tool__ic svg { width: 16px; height: 16px; display: block; }
.sac-tool__n {
  font-family: 'Libre Franklin', sans-serif; font-weight: 500;
  font-size: 13.5px; color: #F4F4F4; line-height: 1.3;
}
.sac-tool__s {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; letter-spacing: 0.06em;
  color: #F4F4F4;
}
/* ══════════════════════════════════════════════════════════
   S04 · THE BACKING — "The company behind them."
   ══════════════════════════════════════════════════════════ */
.sac-backing {
  background: #202124;  /* flipped — S02 removed, keeps dark/gray rhythm */
  padding: clamp(84px, 11vh, 150px) 0;
}
.sac-backing__head { margin-bottom: clamp(40px, 5vh, 64px); max-width: 760px; }
.sac-backing__head .sac-h2 { margin-bottom: clamp(24px, 3vh, 34px); }

/* ledger of backing — word numerals, same discipline as the
   old stats ledger */
.sac-ledger { border-top: 1px solid rgba(244, 244, 244, 0.12); }
.sac-lrow {
  position: relative;
  display: grid;
  grid-template-columns: clamp(40px, 5vw, 72px) minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  padding: clamp(30px, 4.5vh, 48px) 0;
  border-bottom: 1px solid rgba(244, 244, 244, 0.12);
}
.sac-lrow::before {                      /* cyan tick on hover */
  content: "";
  position: absolute; left: 0; top: -1px;
  width: 0; height: 1px;
  background: #00BDFF;
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.sac-lrow:hover::before { width: clamp(48px, 8vw, 96px); }
.sac-lrow__i {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.2em;
  color: #F4F4F4;
  transition: color 0.3s ease;
}
.sac-lrow:hover .sac-lrow__i { color: #00BDFF; }
.sac-lrow__n {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(30px, 3.6vw, 56px);
  line-height: 0.95;
  color: #F4F4F4;
}
.sac-lrow__n em { font-style: normal; color: #00BDFF; }
.sac-lrow__l {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #00BDFF;
  margin-bottom: 10px;
}
.sac-lrow__d {
  /* typography comes from .prose (styles.css) */
  margin: 0; max-width: 42ch;
}

/* ══════════════════════════════════════════════════════════
   S05 · STRUCTURES — three shapes, all visible at once
   ══════════════════════════════════════════════════════════ */
.sac-shapes {
  position: relative;
  background: #161719;  /* flipped — S02 removed, keeps dark/gray rhythm */
  padding: clamp(84px, 11vh, 150px) 0;
}
.sac-shapes__head { margin-bottom: clamp(20px, 2.5vh, 30px); max-width: 760px; }
.sac-shapes__head .sac-h2 { text-wrap: balance; }
.sac-shapes__head .sac-h2 { margin-bottom: clamp(24px, 3vh, 34px); }

.sac-shapes__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.5vw, 34px);
  align-items: start;
}
.sac-shape { display: flex; flex-direction: column; }

/* diagram panel */
.sac-shape__vis {
  position: relative;
  border: 1px solid rgba(244, 244, 244, 0.12);
  background:
    linear-gradient(160deg, rgba(0, 189, 255, 0.05), transparent 55%),
    #1a1b1e;
  margin-bottom: 24px;
  transition: border-color 0.3s ease;
}
.sac-shape:hover .sac-shape__vis { border-color: rgba(0, 189, 255, 0.4); }
.sac-shape__vis::after {                 /* dot texture, echoes case cards */
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(244, 244, 244, 0.05) 1px, transparent 1.5px);
  background-size: 26px 26px;
  pointer-events: none;
}
/* The two engagement animations are canvas-driven (the "Figures"
   treatment from the sandbox bake-off) — glyphs, geometry, and
   timelines live in the page script. 01 · IC (~2.4s): one blue
   engineer arcs from the JG emblem and completes the client
   diamond. 02 · Team (~3.3s): a pod streams out and forms tight
   against the emblem, then a dotted bridge completes into the
   client team. Both loop with a ~2.5s hold; reduced motion gets
   a static end frame. */
.sac-shape__vis canvas { display: block; width: 100%; aspect-ratio: 300 / 190; }

/* column copy */
.sac-shape__k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #00BDFF;
  margin-bottom: 12px;
}
.sac-shape__h {
  font-family: 'Anton', sans-serif; font-weight: 400; text-transform: uppercase;
  font-size: clamp(21px, 1.9vw, 27px);
  line-height: 1.08;
  color: #F4F4F4;
  margin: 0 0 12px;
}
.sac-shape__p { margin: 0 0 8px; }       /* typography from .prose */
.sac-shape__best { margin: 0 0 16px; }   /* typography from .prose */
.sac-shape__best strong {
  font-weight: 500; color: #00BDFF;
}
.sac-shape__list { list-style: none; margin: 0; padding: 0; }
.sac-shape__list li {
  /* typography comes from .prose (styles.css) */
  position: relative;
  padding: 9px 0 9px 22px;
  border-top: 1px solid rgba(244, 244, 244, 0.08);
}
.sac-shape__list li::before {
  content: "";
  position: absolute; left: 2px; top: 22px;
  width: 8px; height: 1px;
  background: #00BDFF;
}

/* ══════════════════════════════════════════════════════════
   S06 · TECH STACK — "Name your stack. We're already in it."
   Five-layer ledger: Anton category header + chip-style tech
   names (brand logos where we have them), same hairline/
   cyan-tick discipline as the backing ledger.
   ══════════════════════════════════════════════════════════ */
.sac-stack {
  background: #202124;  /* flipped — S02 removed, keeps dark/gray rhythm */
  padding: clamp(84px, 11vh, 150px) 0;
}
.sac-stack__head { margin-bottom: clamp(40px, 5vh, 64px); max-width: 760px; }
.sac-stack__head .sac-h2 { margin-bottom: clamp(24px, 3vh, 34px); }

.sac-stack__ledger { border-top: 1px solid rgba(244, 244, 244, 0.12); }
.sac-stack__row {
  position: relative;
  display: grid;
  grid-template-columns: clamp(150px, 18vw, 230px) 1fr;
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
  padding: clamp(22px, 3vh, 32px) 0;
  border-bottom: 1px solid rgba(244, 244, 244, 0.12);
}
.sac-stack__row::before {                /* cyan tick on hover */
  content: "";
  position: absolute; left: 0; top: -1px;
  width: 0; height: 1px;
  background: #00BDFF;
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.sac-stack__row:hover::before { width: clamp(48px, 8vw, 96px); }
.sac-stack__cat {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.1;
  color: #F4F4F4;
  margin: 0;
}
.sac-stack__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
  gap: 8px;
}
.sac-stack__list li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(244, 244, 244, 0.14);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: #F4F4F4;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.sac-stack__list li:hover { color: #00BDFF; border-color: rgba(0, 189, 255, 0.45); }
.sac-stack__ic { display: flex; flex-shrink: 0; }
.sac-stack__ic svg { width: 14px; height: 14px; display: block; }

/* ══════════════════════════════════════════════════════════
   S08 · MADE REAL — shared template: css/case-studies-section.css
   + js/case-studies-section.js (config lives in the page HTML)
   ══════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════
   S08 · CTA
   ══════════════════════════════════════════════════════════ */
.sac-cta {
  background: #161719;  /* flipped — case studies removed, keeps dark/gray rhythm (S143) */
  padding: clamp(90px, 13vh, 160px) 0;
  text-align: center;
}
.sac-cta__h2 {
  font-family: 'Anton', sans-serif; font-weight: 400; text-transform: uppercase;
  font-size: clamp(34px, 4.2vw, 62px);
  line-height: 1;
  color: #F4F4F4;
  margin: 0 0 20px;
}
.sac-cta__h2 em { font-style: normal; color: #00BDFF; }
.sac-cta__body {
  /* typography comes from .prose (styles.css) */
  margin: 0 auto 34px; max-width: 52ch;
  text-wrap: pretty;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .sac-who__grid { grid-template-columns: 1fr; gap: 44px; }
  .sac-stack__row { grid-template-columns: 1fr; gap: 14px; }
  .sac-fit__grid { grid-template-columns: 1fr; gap: 44px; }
  .sac-shapes__grid { grid-template-columns: 1fr; gap: 44px; }
  .sac-shape__vis { max-width: 440px; }
  .sac-lrow { grid-template-columns: clamp(36px, 8vw, 48px) 1fr; row-gap: 14px; }
  .sac-lrow__meta { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .sac-rv { opacity: 1; transform: none; transition: none; }
  /* engagement canvases draw a single static end frame (page script) */
}
