/* =========================================================
   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 { font-size: 36px; line-height: 48px; font-weight: 400; letter-spacing: -1.2px; 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 (desktop and landscape tablet,
   same rule as .screen), inside one continuous gradient band */
.proof__slot { width: 100%; display: flex; flex-direction: column; align-items: center; }
@media (min-width: 810px) and (min-aspect-ratio: 1/1) {
  .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; }

/* 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: 27px; 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__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: 30px; }
.about__square img { width: 100%; height: auto; aspect-ratio: 296 / 294; object-fit: fill; border-radius: var(--radius-lg); }
.about__square--photo img { object-fit: cover; }
.about__text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--block-gap); 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__grid { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
/* 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: 15px; }
  .about__square img { aspect-ratio: 155 / 157; }
  .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; }
  .statement__title { font-size: 28px; line-height: 36px; }
  .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: 16px; max-width: var(--text-max); }
  .about__stack { gap: 16px; }
  .about__square img, .about__square--photo img { aspect-ratio: 1; }


  .voice__grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}
