/* ==========================================================================
   Homepage concepts A / B / C (labs/home). Review builds, not the live site: they share the site's tokens,
   base, style, case-study and reel stylesheets and add only what each concept changes. Semantic tokens only,
   no new colour values (governance v1.1). Scoped to body[data-variant] so nothing here leaks into production.
   ========================================================================== */

/* ---- Shared by all three concepts ---- */

/* Tighter hero: the first viewport reaches the actions (and, in B and C, the proof) at 1366×768 and on phones */
.hero--labs,
.hero--labs:has(.intro) {
  padding-block: clamp(2rem, 1.25rem + 3vw, 4rem) clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
}
.hero--labs h1 {
  margin-top: 1rem;
}
.hero--labs .hero__lede {
  margin-top: 1.2rem;
}
.hero--labs .hero__cta {
  margin-top: 1.6rem;
}
.hero--labs .stats {
  margin-top: clamp(1.75rem, 1.25rem + 2vw, 3rem);
}

/* Light theme, non-text contrast: the secondary button's edge, the contact card's edge and the stats grid read as
   boundaries (WCAG 1.4.11 asks 3:1; production has 1.8:1 and 1.1:1). One edge tint derived from the tokens, 70 % of
   the muted text colour over the page (3.3:1), a neutral tint of the palette (governance v1.1, EX-08): no new hex. */
:root[data-theme="light"] body[data-variant] {
  --labs-edge: color-mix(in srgb, var(--color-text-muted) 70%, var(--color-bg));
}
:root[data-theme="light"] body[data-variant] .btn--ghost {
  border-color: var(--labs-edge);
}
:root[data-theme="light"] body[data-variant] .card.contact {
  background: var(--color-surface-2);
  border-color: var(--labs-edge);
}
:root[data-theme="light"] body[data-variant] .stats {
  border-color: var(--labs-edge);
  background: var(--labs-edge);
}

/* The concept label in the footer */

/* ---- B: Work First ---- */
.hero--b,
.hero--b:has(.intro) {
  padding-bottom: 1.5rem;
}
.hero--b h1 {
  font-size: var(--fs-h1);
  max-width: 26ch;
}
.hero--b .hero__lede {
  max-width: 44rem;
}
/* "Watch intro" sits in the action row, after the two buttons, instead of on its own line above the eyebrow */
.hero--b .hero__cta {
  align-items: center;
}
.hero--b .hero__cta .intro-replay {
  margin: 0 0 0 0.5rem;
  min-height: 44px;
}
.hero--b + .section .section-head {
  margin-bottom: 1.5rem;
}
/* The four numbers as one quiet line in the Approach section, under the story, instead of a four-cell band */
.stats--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border: 0;
  border-top: 1px solid var(--labs-edge, var(--color-border-strong));
  border-radius: 0;
  background: none;
}
:root[data-theme="light"] body[data-variant] .stats--inline {
  background: none;
}
.stats--inline > div {
  flex-direction: row;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0;
  background: none;
}
.stats--inline dd {
  font-size: 1.35rem;
}
.stats--inline dt {
  font-size: var(--fs-small);
}
/* "About the work" follows the cards in B, as a note under them */
.cs-about--after {
  margin: 2.25rem 0 0;
}

/* ---- C: Human-Led Story ---- */
.hero--c .hero__lede strong {
  display: block;
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h3);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}
/* Three principles from Design Foundations, each with the brand dot */
.principles {
  display: grid;
  gap: 1rem 2rem;
  margin-top: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border-strong);
}
.principles li {
  position: relative;
  display: grid;
  gap: 0.25rem;
  padding-left: 1.1rem;
  color: var(--color-text-muted);
  font-size: var(--fs-small);
}
.principles li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-orange);
}
.principles strong {
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.principles__more {
  margin-top: 1.25rem;
}
@media (min-width: 760px) {
  .principles {
    grid-template-columns: repeat(3, 1fr);
  }
}
.about-copy--lead {
  margin-bottom: clamp(1.75rem, 1.25rem + 2vw, 3rem);
}
#leadership .stats {
  margin-top: 0;
}
#leadership .cs-subhead {
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
}
/* The AI comparison table folds away; the three "How I work with AI" cards stay open */
.ai-era__details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
}
.ai-era__details summary::-webkit-details-marker {
  display: none;
}
.ai-era__details summary::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: rotate(-45deg);
  transition: transform 0.2s var(--ease);
}
.ai-era__details[open] summary::before {
  transform: rotate(45deg);
}
.ai-era__details summary .meta-label {
  margin: 0;
}
.ai-era__details .table-wrap {
  margin-top: 1rem;
}

/* ---- B and C: the work starts sooner. The case-study band that follows the hero loses half its top padding ---- */
.hero--b + .section,
.hero--c + .section {
  --section-pt: clamp(2.5rem, 2rem + 2vw, 4rem);
  padding-top: var(--section-pt);
}
/* Anchor stop for that band (Work, View case studies, #case-studies): style.css subtracts a whole --space-section from
   the stop so the eyebrow lands about 48px under the sticky header; with half the padding above the eyebrow the same
   subtraction landed it under the header. Subtract this band's own top padding instead, same 48px as every other section. */
.hero--b + .section[id],
.hero--c + .section[id] {
  scroll-margin-top: calc(32px - var(--section-pt));
}
.hero--b + .section .section-head,
.hero--c + .section .section-head {
  margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
}

/* Maintenance #26 (2026-10-27): a discreet résumé text link closes Experience, after the roles. A text link in the
   muted colour, not a button: the hero keeps its two actions and the approved hierarchy stands. */
.bc-resume {
  margin-top: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
  font-size: var(--fs-small);
}
.bc-resume a {
  color: var(--color-text-muted);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bc-resume a:hover,
.bc-resume a:focus-visible {
  color: var(--color-accent);
}
