/* Homepage engagement layer: proof strip, merged team and AI sections, collapsible work cards, mobile testimonial carousel
   and a restrained motion system (scroll reveals, count-up figures, step progression, hover states). Homepage only.
   Everything is visible without JavaScript; with prefers-reduced-motion nothing animates. */

/* Proof strip: real figures from the case studies and founder bio */
.proof { padding: 3.25rem 0; border-bottom: 1px solid var(--line-dark);
  background: radial-gradient(60% 160% at 85% 0%, rgba(122,32,40,.22), transparent 70%), var(--ink); }
.proof-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin: 0; padding: 0; list-style: none; }
.proof-list li { display: flex; flex-direction: column; gap: .5rem; padding-left: 1.25rem; border-left: 1px solid var(--line-dark); }
.proof-num { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.proof-num .count { font-variant-numeric: tabular-nums; display: inline-block; text-align: right; }
.proof-list li > span { font-size: .82rem; color: var(--muted-dark); max-width: 17rem; }
.proof-list a { color: #efede7; }
@media (max-width: 62rem) { .proof-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; } }
@media (max-width: 40rem) { .proof { padding: 2.5rem 0; } .proof-list li { padding-left: .9rem; } .proof-list li > span { font-size: .78rem; } }

/* Who you'll work with: the founder and the commercial director side by side */
.team { padding: 5.5rem 0; }
.team-head { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 4rem; align-items: end; margin-bottom: 3.5rem; }
.team-head h2 { max-width: 16ch; }
.team-intro p { font-size: .9rem; color: #d6d4ce; margin: 0 0 1rem; max-width: 34rem; }
.team-intro p:last-child { margin-bottom: 0; }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.team-card { padding-top: 2rem; border-top: 1px solid var(--line-dark); }
.team-card .why-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
.team-card .why-stats li, .team-card .why-stats li:last-child { margin: 0; padding: 0 0 1.25rem; border-bottom: 1px solid var(--line-dark); }
.team-card .why-stats strong { font-size: 1.3rem; }
@media (max-width: 62rem) { .team-head, .team-grid { grid-template-columns: 1fr; } .team-grid { gap: 2.5rem; } }
@media (max-width: 40rem) {
  .team { padding: 3.5rem 0; } .team-head { margin-bottom: 2.25rem; }
  .team-card .why-stats { grid-template-columns: 1fr; gap: 1rem; }
  .team-card .why-stats li, .team-card .why-stats li:last-child { padding-bottom: 1rem; }
  .team-card .why-person .person-photo { width: 6.5rem; }
}

/* AI: the intro now heads the light AI section instead of being a separate dark band */
.ai-head { margin-bottom: 3rem; }
.ai-head h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; max-width: 24ch; }
.ai-cols .ai-lead { max-width: 40rem; margin: 1.5rem 0 0; font-size: 1.05rem; color: var(--muted-light); }
.ai-cols { padding-top: 5rem; }
@media (max-width: 40rem) { .ai-cols { padding-top: 3.5rem; } .ai-head { margin-bottom: 2.25rem; } }

/* Work cards: on tablet and phone, show the challenge and tuck the rest behind a toggle (added by home-motion.js) */
.facts-toggle { display: none; align-items: center; gap: .4rem; margin: -.3rem 0 1.1rem; padding: 0; background: none; border: 0; color: #efede7;
  font: inherit; font-size: .8rem; letter-spacing: .02em; cursor: pointer; text-decoration: underline; text-underline-offset: .25em; }
.facts-toggle::after { content: "+"; font-size: 1rem; line-height: 1; text-decoration: none; }
.facts-toggle[aria-expanded="true"]::after { content: "−"; }
@media (max-width: 62rem) {
  .facts-toggle { display: inline-flex; }
  .card.is-collapsed .facts > div:not(:first-child) { display: none; }
}

/* Testimonials: a swipeable row on phones instead of three long stacked quotes */
@media (max-width: 52rem) {
  .testimonials-home .testimonials-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; gap: 1.25rem;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: 1rem; margin-right: -1.5rem; padding-right: 1.5rem;
    scrollbar-width: thin; }
  .testimonials-home .t-item { scroll-snap-align: start; padding: 1.5rem; background: rgba(255,255,255,.45); border-radius: 6px; }
  .testimonials-home .testimonials-grid .t-quote p { font-size: 1.15rem; }
  .t-swipe { display: block; margin: -.25rem 0 1.25rem; font-size: .75rem; color: #4a4944; letter-spacing: .04em; }
}
.t-swipe { display: none; }

/* Hover: cards lift slightly and their screenshot eases in */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card .shot img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
  .card:hover .shot img { transform: scale(1.035); }
  .services li { transition: transform .35s ease; }
  .services li:hover { transform: translateY(-4px); }
  .proof-list a, .team-card { transition: opacity .2s; }
}

/* How we work: the timeline fills and each step lights up in turn as it scrolls into view */
.steps::after { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(#efede7, #b06a7a);
  transform-origin: top; transform: scaleY(var(--steps-p, 1)); }
.steps li::before { transition: background .4s, box-shadow .4s; }
.steps.is-armed li::before { background: #3a3537; }
.steps.is-armed li > * { opacity: .45; transition: opacity .5s; }
.steps.is-armed li.is-on::before { background: #fff; box-shadow: 0 0 0 4px rgba(176,106,122,.35); }
.steps.is-armed li.is-on > * { opacity: 1; }
.steps.is-armed::after { transition: transform 1.6s cubic-bezier(.3,.6,.2,1); }

/* Scroll reveals: only applied by home-motion.js to content that starts below the fold */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity .7s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
  .rv.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .steps.is-armed li > * { opacity: 1; } .steps.is-armed li::before { background: #fff; } .steps::after { transform: none; }
}
