/* Home — Kakadu home template rhythm on the FWRD kernel. */

/* ---------- hero ---------- */
/* bottom = --sec-y so hero -> services is 240/160/80 like every other section boundary */
.hm-hero { padding: 100px 0 var(--sec-y); text-align: center; }
.hm-title { display: flex; flex-direction: column; align-items: center; margin-inline: auto; max-width: 84%; }
.hm-line { display: block; text-wrap: balance; }
/* the rotating word sits alone on line 2; long words scale down to the line on phones */
.hm-title .rot { font-size: min(1em, calc((100vw - 40px) / (var(--rot-chars, 10) * .92))); margin-top: .02em; }
.hm-ctas { margin-top: 40px; }
.hm-chev { display: flex; justify-content: center; margin-top: 80px; }
.hm-hero-media { position: relative; margin: 20px 0 0; }
.hm-hero-media img, .hm-hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hm-tag {
  position: absolute; left: 40px; bottom: 40px; margin: 0; padding: 10px 20px; border-radius: 40px;
  background: var(--ink-glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: var(--font-body-strong); font-weight: 700; font-size: 15px; letter-spacing: .1em; text-transform: uppercase;
}
@media (max-width: 1279.98px) {
  .hm-hero { padding-top: 60px; }
  .hm-title { max-width: 92%; }
  .hm-chev { margin-top: 60px; }
  .hm-tag { left: 24px; bottom: 24px; }
}
@media (max-width: 767.98px) {
  .hm-hero { padding-top: 60px; }
  .hm-title { max-width: 100%; }
  .hm-ctas { margin-top: 20px; }
  .hm-chev { display: none; }
  .hm-hero-media { margin-top: 80px; }
  .hm-tag { left: 12px; bottom: 12px; padding: 8px 16px; font-size: 12px; }
}

/* ---------- services bento (Kakadu bento, extended to 4 cards) ---------- */
.hm-head { margin-inline: auto; max-width: 80%; }
.hm-head .line { display: block; }
.hm-head + .hm-bento { margin-top: 80px; }
.hm-card {
  border-radius: var(--r-card); padding: 40px; background: var(--cream-2); color: var(--ink); overflow: clip;
  display: flex; flex-direction: column; cursor: pointer;
}
.hm-card.noise::before { display: none; }
.hm-name { margin: 0; padding-right: 72px; }
.hm-text { margin-top: 10px; max-width: 520px; }
.hm-more { display: grid; grid-template-rows: 0fr; flex: 1; min-height: 0; }
.hm-more-in { overflow: hidden; min-height: 0; display: flex; flex-direction: column; }
.hm-more-in > .checklist { margin-top: 40px; max-width: 520px; }
.hm-cta { margin-top: 40px; }
.hm-img { margin-top: 40px; flex: 1; min-height: 200px; border-radius: var(--r-inner); overflow: hidden; }
.hm-img img { width: 100%; height: 100%; object-fit: cover; }
.hm-plus { position: absolute; right: 40px; bottom: 40px; }
.hm-card { position: relative; }

/* expanded card: gradient swaps instantly, content shows, "+" hides */
.hm-bento[data-state="concepting"] [data-card="concepting"],
.hm-bento[data-state="creators"] [data-card="creators"],
.hm-bento[data-state="video"] [data-card="video"],
.hm-bento[data-state="digital"] [data-card="digital"] { background: var(--card-g); cursor: auto; }
.hm-bento[data-state="concepting"] [data-card="concepting"].noise::before,
.hm-bento[data-state="creators"] [data-card="creators"].noise::before,
.hm-bento[data-state="video"] [data-card="video"].noise::before,
.hm-bento[data-state="digital"] [data-card="digital"].noise::before { display: block; }
.hm-bento[data-state="concepting"] [data-card="concepting"] .hm-more,
.hm-bento[data-state="creators"] [data-card="creators"] .hm-more,
.hm-bento[data-state="video"] [data-card="video"] .hm-more,
.hm-bento[data-state="digital"] [data-card="digital"] .hm-more { grid-template-rows: 1fr; }
.hm-bento[data-state="concepting"] [data-card="concepting"] .hm-plus,
.hm-bento[data-state="creators"] [data-card="creators"] .hm-plus,
.hm-bento[data-state="video"] [data-card="video"] .hm-plus,
.hm-bento[data-state="digital"] [data-card="digital"] .hm-plus { display: none; }
.hm-bento[data-state="concepting"] [data-card="concepting"] .hm-img img,
.hm-bento[data-state="creators"] [data-card="creators"] .hm-img img,
.hm-bento[data-state="video"] [data-card="video"] .hm-img img,
.hm-bento[data-state="digital"] [data-card="digital"] .hm-img img { animation: hm-img-in 400ms var(--ease-framer) both; }
@keyframes hm-img-in { from { opacity: .001; } to { opacity: 1; } }

/* desktop: 2 fixed columns (concepting + video left, creators + digital right). The hovered
   card grows in place to 72% of its column, so it stays under the pointer (no hover ping-pong);
   the other column rests at 50/50. Spring k400/c40 on top/height (Kakadu bento motion). */
@media (min-width: 1280px) {
  .hm-bento { --g: 20px; --big: 72%; --small: 28%; position: relative; height: 1100px; }
  .hm-bento > .hm-card {
    position: absolute; width: calc(50% - var(--g) / 2); top: 0; height: calc(50% - var(--g) / 2);
    transition: top 500ms var(--spring-k400c40), height 500ms var(--spring-k400c40);
  }
  .hm-bento [data-card="concepting"], .hm-bento [data-card="video"] { left: 0; }
  .hm-bento [data-card="creators"], .hm-bento [data-card="digital"] { left: calc(50% + var(--g) / 2); }
  .hm-bento [data-card="video"], .hm-bento [data-card="digital"] { top: calc(50% + var(--g) / 2); }
  .hm-bento .hm-card .hm-text { padding-right: 72px; }
  /* only a card squeezed into the small (28%) slot truncates its text */
  .hm-bento[data-state="concepting"] [data-card="video"] .hm-text, .hm-bento[data-state="creators"] [data-card="digital"] .hm-text,
  .hm-bento[data-state="video"] [data-card="concepting"] .hm-text, .hm-bento[data-state="digital"] [data-card="creators"] .hm-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  /* expanded top card */
  .hm-bento[data-state="concepting"] [data-card="concepting"], .hm-bento[data-state="creators"] [data-card="creators"] { height: calc(var(--big) - var(--g) / 2); }
  .hm-bento[data-state="concepting"] [data-card="video"], .hm-bento[data-state="creators"] [data-card="digital"] { top: calc(var(--big) + var(--g) / 2); height: calc(var(--small) - var(--g) / 2); }
  /* expanded bottom card */
  .hm-bento[data-state="video"] [data-card="concepting"], .hm-bento[data-state="digital"] [data-card="creators"] { height: calc(var(--small) - var(--g) / 2); }
  .hm-bento[data-state="video"] [data-card="video"], .hm-bento[data-state="digital"] [data-card="digital"] { top: calc(var(--small) + var(--g) / 2); height: calc(var(--big) - var(--g) / 2); }
  .hm-bento[data-state="concepting"] [data-card="concepting"] .hm-text, .hm-bento[data-state="creators"] [data-card="creators"] .hm-text,
  .hm-bento[data-state="video"] [data-card="video"] .hm-text, .hm-bento[data-state="digital"] [data-card="digital"] .hm-text { padding-right: 0; }
  /* 200 overflowed the expanded card at 1280-1440 (image cut flat inside .hm-more-in); 120 keeps it inside the 40 padding */
  .hm-img { min-height: 120px; }
}
@media (min-width: 1280px) and (max-width: 1439.98px) { .hm-bento { height: 1060px; } }
@media (min-width: 1920px) { .hm-bento { height: 1180px; } }

/* tablet / phone: vertical stack; the expanded card opens with a spring */
@media (max-width: 1279.98px) {
  .hm-head { max-width: none; }
  .hm-head + .hm-bento { margin-top: 60px; }
  .hm-bento { display: flex; flex-direction: column; gap: 20px; }
  .hm-more { transition: grid-template-rows 450ms var(--spring-k400c30); }
  .hm-img { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .hm-card { padding-bottom: 116px; }
  .hm-bento[data-state="concepting"] [data-card="concepting"],
  .hm-bento[data-state="creators"] [data-card="creators"],
  .hm-bento[data-state="video"] [data-card="video"],
  .hm-bento[data-state="digital"] [data-card="digital"] { padding-bottom: 40px; }
}
@media (max-width: 767.98px) {
  .hm-head + .hm-bento { margin-top: 40px; }
  .hm-bento { gap: 10px; }
  .hm-card { padding: 20px 20px 96px; }
  .hm-plus { right: 20px; bottom: 20px; }
  .hm-name { padding-right: 0; }
  .hm-bento[data-state="concepting"] [data-card="concepting"],
  .hm-bento[data-state="creators"] [data-card="creators"],
  .hm-bento[data-state="video"] [data-card="video"],
  .hm-bento[data-state="digital"] [data-card="digital"] { padding-bottom: 20px; }
  .hm-more-in > .checklist, .hm-cta, .hm-img { margin-top: 30px; }
  .hm-img { aspect-ratio: 31 / 20; }
}

/* ---------- platform (heading + wide image + split) ---------- */
.hm-platform-title { gap: 0; }
.hm-platform-title .rot { margin-top: .02em; }
.hm-image-block { margin-top: 80px; }
.hm-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.hm-value { aspect-ratio: 1; display: flex; flex-direction: column; align-items: flex-start; }
.hm-value .btn { margin-top: 40px; }
@media (max-width: 1279.98px) {
  .hm-image-block { margin-top: 60px; }
  .hm-value .t-h5 { font-size: 28px; }
  .hm-value .btn { margin-top: 20px; }
}
@media (max-width: 767.98px) {
  .hm-image-block { margin-top: 40px; }
  .hm-wide { aspect-ratio: 1.499; }
  .hm-split { grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
  .hm-square { order: -1; }
  .hm-value { aspect-ratio: auto; justify-content: center; padding: 20px 20px 40px; }
  .hm-value .t-h5 { font-size: 22.08px; }
}

/* ---------- selected work ---------- */
.hm-row-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.hm-row-head .t-eyebrow { margin-bottom: 20px; }
.hm-work-grid { list-style: none; margin: 80px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hm-work-img { aspect-ratio: 1; }
.hm-work-meta { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.hm-work-meta .t-body { opacity: .8; }
@media (max-width: 1279.98px) { .hm-work-grid { margin-top: 60px; grid-template-columns: repeat(2, minmax(0, 1fr)); } .hm-work-grid > :nth-child(3) { display: none; } }
/* phone: the wrapped button sits 20 under its title, 40 above the grid */
@media (max-width: 767.98px) { .hm-row-head { row-gap: 20px; } }
@media (max-width: 767.98px) { .hm-work-grid { margin-top: 40px; grid-template-columns: 1fr; gap: 10px; } .hm-work-grid > :nth-child(3) { display: block; } .hm-work-meta { padding: 10px; } }

/* ---------- creators teaser ---------- */
.hm-creators-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.hm-creators-card { display: flex; flex-direction: column; align-items: flex-start; }
.hm-creators-card .t-eyebrow { margin-bottom: 20px; }
.hm-creators-text { margin-top: 20px; max-width: 593px; }
.hm-creators-card .checklist { margin-top: 40px; align-self: stretch; }
.hm-creators-card .btn { margin-top: 40px; }
.hm-faces { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hm-face { display: block; aspect-ratio: 1; height: 100%; }
.hm-face img { transition: none; }
@media (max-width: 1279.98px) { .hm-creators-grid { grid-template-columns: 1fr; } .hm-faces { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .hm-faces { grid-template-columns: 1fr 1fr; gap: 10px; } .hm-creators-grid { gap: 10px; } }
/* desktop: equal columns; the face grid is a square sized by its column (not by the row height, which made
   the 1fr tracks grow cyclically and pushed the faces past the container into the clients section) */
@media (min-width: 1280px) {
  .hm-creators-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-faces { width: 100%; aspect-ratio: 1; align-self: stretch; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .hm-face { aspect-ratio: auto; contain: size; }
}

/* ---------- clients ---------- */
.hm-clients .t-h6 { margin-bottom: 60px; }
/* same logo strip as About's partners (bigger logos that fill the tile; edge-bleed on phone) */
.hm-clients .ticker-logo { grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
.hm-clients .ticker-logo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767.98px) {
  .hm-clients .t-h6 { margin-bottom: 40px; }
  .hm-clients .ticker { margin-right: calc(-1 * var(--gutter)); }
}

/* ---------- team split ---------- */
.hm-team { padding-bottom: 200px; }
.hm-team-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.hm-team-copy { padding-left: 80px; display: flex; flex-direction: column; align-items: flex-start; }
.hm-team-copy .btn { margin-top: 40px; }
@media (min-width: 1920px) { .hm-team { padding-bottom: 240px; } }
@media (max-width: 1279.98px) { .hm-team { padding-bottom: 160px; } .hm-team-copy { padding-left: 40px; } }
@media (max-width: 767.98px) { .hm-team { padding-bottom: 80px; } .hm-team-row { grid-template-columns: 1fr; gap: 40px; } .hm-team-copy { padding-left: 0; } }

/* very narrow phones (<375): long service names must fit the card */
@media (max-width: 374.98px) { .hm-name { font-size: 26px; } }
