/* =========================================================
   Home page only — hero, logo strip, statements, testimonial + case-study bands,
   recent work cards, about. (Why me / voice styles are kept for the previous layout.)
   Shared pieces (case cards, steps, testimonials, FAQ, CTA) are in components.css.
   ========================================================= */

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--header-h) + 64px) var(--gutter) var(--section-pad);
  display: grid;
  grid-template-columns: 1fr 345px;
  gap: 72px;
  align-items: center;
}
.hero__text { display: flex; flex-direction: column; gap: var(--block-gap); max-width: var(--text-max); }
.hero__hi { color: var(--black); font-size: 20px; line-height: 1.4; letter-spacing: 1.5px; }
.hero__title { font-size: 64px; line-height: 1.1; }
.hero__lede { font-size: 24px; line-height: 1.4; letter-spacing: 0.2px; }
.hero__title em { font-style: italic; }
.hero__title strong { font-weight: 700; }
.hero__art img { width: 100%; height: auto; aspect-ratio: 345 / 332; object-fit: contain; }
.hero__art figcaption {
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-align: center;
  color: var(--black);
}

/* ---------- Client logo strip ---------- */
.ticker {
  height: 79px;
  overflow: hidden;
  display: flex;
  align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12.5%, #000 87.5%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 12.5%, #000 87.5%, transparent 100%);
  animation: fade-in 0.6s var(--ease) 0.2s both;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 40s linear infinite;
}
.ticker__set { display: flex; align-items: center; gap: 72px; padding-right: 72px; }
.ticker__set li { flex-shrink: 0; }
.ticker__set img { max-width: none; height: auto; object-fit: cover; }
.ticker__set img.contain { object-fit: contain; }
/* Full-colour logos shown like the others: solid black at 50% opacity */
.ticker__set img.mono { filter: brightness(0) opacity(0.5); }
@keyframes ticker { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .ticker, .ticker__track { animation: none; }
}

/* ---------- Statements (big line left, paragraphs right) ---------- */
.statement { display: grid; grid-template-columns: minmax(0, var(--text-max)) minmax(0, var(--text-max)); justify-content: space-between; gap: 64px; align-items: center; }
/* Eyebrow tag above a statement's headline */
.statement__head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.statement__title { max-width: none; }
.statement__text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.statement__text .btn { margin-top: calc(var(--block-gap) - 16px); }   /* 24px above the button, like every content block */

/* ---------- Testimonial + case-study band ---------- */
.proof { padding: var(--section-pad) 0; }
/* proof--split: the quote and the case-study card each fill the screen (every screen size, same as .screen),
   inside one continuous gradient band */
.proof__slot { width: 100%; display: flex; flex-direction: column; align-items: center; }
.proof--split { padding: 0; }
.proof--split .proof__inner { gap: 0; }
.proof--split .proof__slot { min-height: 100vh; min-height: 100svh; justify-content: center; padding: 64px 0; }
.proof__inner { display: flex; flex-direction: column; align-items: center; gap: var(--section-pad); }   /* quote and card are as far apart as two sections */
.proof__label { font-family: var(--font-mono); font-size: 14px; line-height: 18px; letter-spacing: 1.5px; text-transform: uppercase; }
.proof__quote { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; max-width: var(--text-max); }
.proof__quote blockquote { margin: 0; font-size: 32px; line-height: 44px; letter-spacing: -1.2px; }
/* Company logo under the person's name and title */
.proof__person .proof__logo { width: auto; height: 24px; border-radius: 0; object-fit: contain; margin-top: 12px; }
.proof__person .proof__logo--wide { height: 14px; }   /* long flat wordmarks (Wildflower): shorter so they read the same size as the others */

/* Eyebrow tags: 20px tall. On the light page background they use a brand colour
   (tag--purple or tag--green; pink is reserved for buttons); on the gradient bands they're white. */
.proof__tag { height: 20px; padding: 0 14px; border-radius: 6px; color: var(--black); }
.band .proof__tag, .band--alt .proof__tag { background: var(--white); }
.proof__quote blockquote p + p { margin-top: 0.75em; }   /* space between paragraphs of a longer quote */
.proof__quote figcaption { font-family: var(--font-mono); font-size: 16px; line-height: 26px; }
/* Person who said it: headshot centred above name and title */
.proof__quote .proof__person { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; font-family: var(--font); font-size: var(--body-size); line-height: 1.4; }
.proof__person img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.proof__person > span { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.proof__person strong { font-weight: 600; }
.proof__person > span > span { font-family: var(--font-mono); font-size: var(--caption-size); letter-spacing: 0.04em; text-transform: uppercase; color: var(--gray); }

/* Case-study block: sits straight on the gradient band (no white card) */
.story { width: 100%; display: flex; flex-direction: column; gap: 24px; }
.story__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.story__bar img { height: 24px; width: auto; }
.story__body { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.story__text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--block-gap); max-width: var(--text-max); }
.story__image { display: block; border-radius: var(--radius-md); overflow: hidden; }
.story__image--placeholder { aspect-ratio: 3 / 2; background: var(--placeholder); }   /* grey stand-in for a card image that doesn't exist yet */
.story .coming-soon { color: var(--gray); }
.story__image { order: -1; }   /* image comes first: above the text when stacked, on the left when side by side */
.story__image img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
/* story__image--flip: two photos stacked, fading between them every few seconds (like a GIF).
   Framed a little taller than 3:2 so the laptop screen fits with the top of the phone below it. */
.story__image--flip { display: grid; }
.story__image--flip img { grid-area: 1 / 1; aspect-ratio: 6 / 5; object-position: 50% 58%; }
.story__image--flip img + img { animation: story-flip 8s var(--ease) infinite; }
@keyframes story-flip { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .story__image--flip img + img { animation: none; opacity: 0; } }

/* ---------- Recent work cards ---------- */
.news { padding: var(--section-pad) 0; }
.news__quote { margin-bottom: 64px; }
.news__quote:last-child { margin-bottom: 0; }   /* no extra space when the cards below are hidden */
.news__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; max-width: calc(682px + var(--gutter) * 2); margin: 0 auto; }   /* two coming-soon cards, same card size as before, centred */
.news-card { display: flex; flex-direction: column; gap: 16px; padding: var(--card-pad); background: var(--white); border-radius: var(--radius-lg); }
.news-card__image { display: block; height: 170px; background: var(--placeholder); border-radius: 10px 10px 0 0; }   /* placeholder until project images exist */
.news-card__label { font-family: var(--font-mono); font-size: 14px; line-height: 26px; letter-spacing: 1.5px; text-transform: uppercase; }
.news-card__title { font-size: 18px; line-height: 1.4; font-weight: 600; letter-spacing: -0.5px; }
.news-card__meta { font-family: var(--font-mono); font-size: 13px; line-height: 26px; font-style: italic; letter-spacing: 0.02em; text-transform: uppercase; color: var(--gray); }
.news-card__link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 15px; line-height: 26px; letter-spacing: 0.02em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, var(--text-max)) minmax(0, var(--text-max));
  justify-content: center;
  gap: 64px;
  align-items: center;
}
.about__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
/* The tall photo fills exactly the height of the two stacked photos, so tops and bottoms line up */
.about__photos { align-items: stretch; }
.about__tall { position: relative; }
.about__tall img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.about__stack { display: flex; flex-direction: column; gap: 24px; }
.about__square img { width: 100%; height: auto; border-radius: var(--radius-lg); }   /* illustration keeps its own shape, never stretched */
.about__square--photo img { aspect-ratio: 296 / 294; object-fit: cover; }   /* photo is cropped to fit, never stretched */
.about__text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--block-gap); max-width: var(--text-max); }
/* Desktop: photos on the left, text on the right. Tablet and phone: one column, text above the photos. */
@media (min-width: 1200px) { .about__photos { order: -1; } }
@media (max-width: 1199px) { .about { grid-template-columns: minmax(0, var(--text-max)); } .about__photos { max-width: var(--text-max); } }

/* ---------- Why me ---------- */
.why-me { display: grid; grid-template-columns: 428px minmax(0, var(--text-max)); gap: 64px; align-items: start; }
.why-me h2 { position: sticky; top: calc(var(--header-h) + 40px); }
.why-list li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 24px 0; }
.why-list li:first-child { padding-top: 0; }
.why-list .caption { color: var(--gray); padding-top: 5px; }
.why-list h4 + p { margin-top: 4px; }

/* ---------- Voice (articles and talks, as blog cards) ---------- */
.voice { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.voice__intro { max-width: var(--text-max); text-align: center; }
.voice__intro p { margin-top: var(--block-gap); }
/* Voice carousel: a row of cards that scrolls sideways. --per-view cards fit at once (4 desktop, 3 tablet, 2 phone). */
.voice__carousel { --per-view: 4; --gap: 24px; width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "prev track next"; align-items: center; }   /* arrows sit left and right of the cards */
.voice__grid { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - var(--gap) * (var(--per-view) - 1)) / var(--per-view)); gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.voice__grid::-webkit-scrollbar { display: none; }
.voice__grid > * { scroll-snap-align: start; }
.voice__grid { grid-area: track; }
.voice__nav { display: contents; }
.voice__nav[hidden] { display: none; }
.voice__btn[data-scroller-prev] { grid-area: prev; margin-right: 16px; }
.voice__btn[data-scroller-next] { grid-area: next; margin-left: 16px; }
.voice__btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-pill); border: 1.5px solid var(--black); background: var(--white); color: var(--black); }
.voice__btn:hover { background: var(--hover-gray); }
.voice__btn:disabled { visibility: hidden; }   /* an arrow with nowhere to go stays out of sight until it works (space is kept, so nothing shifts) */
.voice__btn .icon.flip { transform: scaleX(-1); }
@media (max-width: 1199px) { .voice__carousel { --per-view: 2; } }   /* tablet: two cards at once */
@media (max-width: 599px) {
  /* phone: one card at a time, with the next one just peeking in from the right edge of the screen; swipe instead of arrows */
  .voice__carousel { --per-view: 1.08; --gap: 24px; }
  .voice__carousel > .voice__nav .voice__btn { display: none; }
  .voice__carousel > .voice__grid { margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
}
@media (max-width: 599px) { .voice__btn { width: 36px; height: 36px; } .voice__btn[data-scroller-prev], .ba__nav .voice__btn[data-ba-prev] { margin-right: 8px; } .voice__btn[data-scroller-next], .ba__nav .voice__btn[data-ba-next] { margin-left: 8px; } }
/* Compact blog cards: small image, short text, one link each */
.post { gap: 8px; }
/* Card colours repeat pink, purple, green at 25% */
.post:nth-child(3n+1) { --card-rgb: var(--pink-rgb); }
.post:nth-child(3n+2) { --card-rgb: var(--purple-rgb); }
.post:nth-child(3n) { --card-rgb: var(--green-rgb); }
.post { background: rgba(var(--card-rgb), var(--tint)); }
.post .news-card__image { height: 110px; margin-bottom: 8px; }
img.news-card__image { width: 100%; object-fit: cover; }   /* real images fill the same box as the grey placeholder */
.post .news-card__label { font-size: 12px; line-height: 18px; }
.post .news-card__title { font-size: 16px; line-height: 22px; }
.post .news-card__meta { font-size: 11px; line-height: 16px; }
.post { position: relative; transition: box-shadow 0.25s var(--ease); }
/* The whole card is clickable: the title link stretches over the card */
.post .news-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post:hover { box-shadow: inset 0 0 0 2px rgb(var(--card-rgb)); }   /* hover: 2px stroke in the card's own colour at full strength (same on every clickable card) */
.post .news-card__title a:focus-visible { outline: none; }
.post:has(a:focus-visible) { outline: 2px solid var(--black); outline-offset: 2px; }


/* =========================================================
   Tablet
   ========================================================= */
@media (max-width: 1199px) {
  .hero { grid-template-columns: 1fr minmax(200px, 300px); gap: 40px; align-items: center; }
  .hero__title { font-size: var(--h1-size); line-height: var(--h1-line); }
  .hero__hi { font-size: 16px; }
  .hero__lede { font-size: 20px; }

  .statement { grid-template-columns: 1fr; gap: 24px; }
  .statement__title { max-width: var(--text-max); }
  .statement__text { max-width: var(--text-max); }
  .proof__quote blockquote { font-size: 26px; line-height: 36px; }
  .news__grid { gap: 24px; }
  .story__body { gap: 32px; }   /* text and image stay side by side on tablet */
  .hero__art img { aspect-ratio: 240 / 233; }

  .about { gap: 40px; }
  .about__stack { gap: 24px; }
  .about__square--photo img { aspect-ratio: 155 / 175; }


  .why-me { grid-template-columns: 1fr; gap: 32px; }
  .why-me h2 { position: static; }

}

/* =========================================================
   Phone
   ========================================================= */
@media (max-width: 809px) {
  .story__body { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; gap: 40px; }
  /* Small tablets in portrait (600–809px) keep the two-column hero */
  @media (min-width: 600px) { .hero { grid-template-columns: 1fr 220px; gap: 32px; } }
  .hero__lede { font-size: 18px; }
  .proof__quote blockquote { font-size: 22px; line-height: 32px; letter-spacing: -0.6px; }
  /* Phone: the three cards stack, one under another */
  .news__grid { grid-template-columns: 1fr; gap: 24px; }
  .hero__art img { aspect-ratio: 358 / 235; }

  .about { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
  /* Two equal columns with a normal gap, no wider than the text below */
  .about__photos { grid-template-columns: 1fr 1fr; gap: 24px; max-width: var(--text-max); }
  .about__stack { gap: 24px; }
  .about__square--photo img { aspect-ratio: 1; }


}

/* Two call-to-action boxes side by side; stacked on small tablets and phones */
.cta-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cta-pair .cta { justify-content: space-between; }   /* buttons line up at the bottom */
@media (max-width: 809px) { .cta-pair { grid-template-columns: 1fr; } }

/* ---------- Before & after carousel ---------- */
.ba { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.ba__intro { max-width: var(--text-max); text-align: center; }
.ba__intro p { margin-top: 16px; }
.ba__carousel { width: 100%; max-width: 1040px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "prev viewport next" ". count ."; align-items: center; row-gap: 24px; }   /* arrows left and right of the slide, count 24px below */
.ba__viewport { grid-area: viewport; overflow: hidden; }   /* as tall as the tallest slide, so nothing jumps between slides */   /* arrows move the slides, so dragging a slider never swipes the carousel */
.ba__track { display: flex; align-items: center; transition: transform 0.5s var(--ease); }
.ba__slide { flex: 0 0 100%; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.ba__slide .cs-compare { width: 100%; max-width: 760px; }
.ba__slide .cs-compare--phone { max-width: 250px; }
.ba__slide figcaption { font-weight: 600; }
.ba__nav { display: contents; }
.ba__nav .voice__btn[data-ba-prev] { grid-area: prev; margin-right: 16px; }
.ba__nav .voice__btn[data-ba-next] { grid-area: next; margin-left: 16px; }
.ba__count { grid-area: count; justify-self: center; color: var(--gray); min-width: 40px; text-align: center; }
/* Seat Connect: before → two after screens, side by side (no slider) */
.ba__flow { display: flex; align-items: center; justify-content: center; gap: 24px; width: 100%; max-width: 760px; }
.ba__phone { flex: 1 1 0; max-width: 200px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ba__phone img { width: 100%; height: auto; }
.ba__label { padding: 2px 10px; border-radius: 6px; background: var(--white); border: 1px solid var(--screen-stroke); color: var(--black); }
.ba__label--blank { visibility: hidden; }
.ba__arrow { flex: none; color: var(--gray); }
@media (max-width: 599px) { .ba__flow { gap: 8px; } .ba__arrow { width: 16px; height: 16px; } }
@media (prefers-reduced-motion: reduce) { .ba__track { transition: none; } }
@media (max-width: 599px) {
  body .ba { align-items: flex-start; }
  body .ba__intro { text-align: left; }
}

/* ---------- Research-led workshop boards ---------- */
.research__carousel { grid-column: 1 / -1; --per-view: 3; }
.research__shot { width: 100%; height: auto; box-sizing: border-box; border: 1px solid var(--screen-stroke); border-radius: var(--radius-md); }   /* gray outline like other screenshots */
@media (max-width: 1199px) { .research__carousel { --per-view: 2; } }
@media (max-width: 599px) { .research__carousel { --per-view: 1; } }

/* Phone-in-hand photos are 4:3, so the phone fills more of the card */
.story__image--43 img { aspect-ratio: 4 / 3; }

/* Images that sit on the gradient bands get a 2px white stroke so they lift off the colour */
.band .story__image, .band--alt .story__image { box-sizing: border-box; border: 2px solid var(--white); }
.band .proof__person img:not(.proof__logo), .band--alt .proof__person img:not(.proof__logo) { box-sizing: border-box; border: 2px solid var(--white); }

/* Icon in the three statement tags: small black icon before the words */
.proof__tag { gap: 6px; }
.proof__tag .icon { width: 14px; height: 14px; color: var(--black); }
