/* Practice pages and the branding portfolio. */

/* ---------- hero: full-width headline, photo revealed by a clip, motion loop inset ---------- */
.phero { padding-block: clamp(28px, 5vw, 64px) clamp(64px, 8vw, 110px); overflow: clip; }
.phero .crumbs { margin-bottom: 28px; }
.phero h1 { max-width: 16ch; font-size: clamp(2.6rem, 6.4vw, 6rem); font-weight: 800; letter-spacing: -.04em; line-height: .98; animation: up .9s var(--ease) both; }
.phero__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: end; margin-top: clamp(32px, 4vw, 56px); }
.phero__copy { padding-bottom: 12px; animation: up .9s var(--ease) .12s both; }
.phero__copy .lede { margin-top: 0; }
.phero .btn-row { margin-top: 30px; }
.phero__media { position: relative; aspect-ratio: 16 / 10; border-radius: 32px; overflow: hidden; background-color: #F5F3F1; animation: reveal 1.3s var(--ease-io) .15s both; }
.phero__media > img { width: 100%; height: 100%; object-fit: cover; animation: settle 1.8s var(--ease) .15s both; }
.phero__loop { position: absolute; left: 18px; bottom: 18px; width: 34%; aspect-ratio: 4 / 3; border: 3px solid var(--bg-2); border-radius: 20px; box-shadow: 0 18px 40px rgba(10, 12, 14, .35); }
.phero__loop video { filter: none; }
.phero__loop .vid-toggle { right: 6px; bottom: 6px; width: 36px; height: 36px; }
.phero__globe { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; max-width: none; }
.phero__badge { --ico-paint: url(#ig) #F2A526; --ico-cast: rgba(0, 0, 0, .75); position: absolute; right: 22px; top: 22px; display: inline-flex; animation: pop .8s var(--ease) .9s both; }
.phero__badge svg { width: 110px; height: 110px; }
@keyframes up { from { transform: translateY(30px); filter: opacity(0); } }
@keyframes reveal { from { clip-path: inset(100% 0 0 0 round 32px); } to { clip-path: inset(0 0 0 0 round 32px); } }
@keyframes settle { from { transform: scale(1.18); } }
@keyframes pop { from { transform: scale(.9) rotate(-12deg); filter: opacity(0); } }
.phero--solo h1 { margin-top: 0; }

/* ---------- offers: sticky heading, list rows light up as they pass the middle ---------- */
.offers-sec__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.offers-sec__head { position: sticky; top: 110px; }
.offers-sec__head .link { margin-top: 26px; }
.offers li { padding-block: clamp(26px, 3.4vw, 40px); border-top: 1px solid var(--line); transition: filter .4s var(--ease); }
.offers li:last-child { border-bottom: 1px solid var(--line); }
.offers.is-live li:not(.is-on) { filter: opacity(.35); }
.offers h3 { font-size: clamp(1.8rem, 3.4vw, 3rem); font-weight: 800; letter-spacing: -.035em; transition: transform .5s var(--ease); }
.offers li.is-on h3 { transform: translateX(10px); }
.offers p { margin-top: 12px; max-width: 46ch; font-size: 1.1rem; color: var(--muted); }

/* ---------- who it is for (people band, see base.css) ---------- */
.fit { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.fit__list { margin-top: 32px; }
.fit__list li { display: flex; gap: 14px; align-items: flex-start; font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 600; }
.fit__list li + li { margin-top: 18px; }
.fit__list svg { width: 46px; height: 46px; flex: none; margin-top: -2px; }
.note { padding: clamp(26px, 3.4vw, 40px); }
.note h2 { margin-top: 22px; font-size: 1.7rem; }
.note p { margin-top: 12px; color: var(--muted); }
.note .link { margin-top: 22px; }

/* ---------- the rest of the ecosystem: big rows, a photo follows the pointer ---------- */
.rows { margin-top: clamp(32px, 4vw, 56px); }
.rows a { display: grid; grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1fr) auto; align-items: center; gap: 24px; padding-block: 26px; border-top: 1px solid var(--line); transition: padding .5s var(--ease); }
.rows li:last-child a { border-bottom: 1px solid var(--line); }
.rows__ico { display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; transition: transform .45s var(--ease); }
.rows__ico svg { width: 67px; height: 67px; }
.rows__name { font-family: var(--display); font-size: clamp(1.7rem, 4vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.rows__line { color: var(--muted); max-width: 40ch; }
.rows__go { width: 30px; height: 30px; color: var(--gold); transition: transform .45s var(--ease); }
.rows a:is(:hover, :focus-visible) .rows__ico { transform: translateY(-4px) rotate(-8deg) scale(1.08); }
.rows a:is(:hover, :focus-visible) .rows__go { transform: translateX(8px) rotate(-45deg); }
.peek { position: fixed; left: 0; top: 0; z-index: 50; width: 320px; height: 213px; object-fit: cover; border-radius: 20px; box-shadow: 0 30px 60px rgba(10, 12, 14, .3); pointer-events: none; filter: opacity(0); scale: .9; transition: filter .25s var(--ease), scale .35s var(--ease); }
.peek.is-on { filter: none; scale: 1; }

/* ---------- closing band ---------- */
.cta-band { background-color: var(--bg); color: var(--text); padding-block: clamp(72px, 9vw, 120px); }
.cta-band__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band h2 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 800; letter-spacing: -.04em; }

/* ---------- portfolio page ---------- */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.case { overflow: hidden; background-color: var(--bg); }
.case img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.case__body { padding: 26px; }
.case h2 { margin-top: 10px; font-size: 1.7rem; }
.case p { margin-top: 10px; color: var(--muted); }
.slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-block: clamp(36px, 5vw, 56px); }
.slots li { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; aspect-ratio: 3 / 4; padding: 20px; border: 1px dashed var(--field); border-radius: var(--r); background-color: var(--bg); }
.slots__name { font-family: var(--display); font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.slots__note { font-size: .88rem; color: var(--muted); }

@media (max-width: 900px) {
  .phero__grid, .fit, .offers-sec__grid { grid-template-columns: minmax(0, 1fr); }
  .offers-sec__head { position: static; }
  .rows a { grid-template-columns: auto minmax(0, 1fr) auto; }
  .rows__line { grid-column: 2; }
  .rows__go { grid-row: 1; grid-column: 3; }
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cases { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .btn-row .btn { width: 100%; }
  .phero__badge svg { width: 72px; height: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .phero h1, .phero__copy, .phero__media, .phero__media > img, .phero__badge { animation: none; }
}
.bl-still :is(.phero h1, .phero__copy, .phero__media, .phero__media > img, .phero__badge) { animation: none; }

/* ---------- portfolio tiles (bright generated artwork, label on a white chip) ---------- */
.work__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 20vw, 260px); gap: 16px; margin-top: clamp(36px, 5vw, 56px); }
.bento__cell { position: relative; overflow: hidden; border-radius: 24px; background-color: var(--bg); }
.bento__cell--big { grid-column: span 2; grid-row: span 2; }
.bento__cell a { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 22px; color: var(--text); }
.bento__cell img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.bento__cell a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(10, 12, 14, .85)); }
.bento__name { font-family: var(--display); font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.bento__cell--big .bento__name { font-size: clamp(2rem, 4vw, 3.4rem); }
.bento__note { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.bento__note svg { width: 18px; height: 18px; color: var(--amber); transition: transform .4s var(--ease); }
.bento__cell { isolation: isolate; }
@media (hover: hover) and (pointer: fine) {
  .bento__cell a:hover img { transform: scale(1.07); }
  .bento__cell a:hover .bento__note svg { transform: translateX(5px); }
}

.bento__cell { background-color: var(--bg-2); }
.bento__cell a { color: var(--text); }
.bento__name { width: fit-content; max-width: calc(100% - 8px); padding: 8px 16px; border-radius: 14px; background-color: var(--bg-2); box-shadow: 0 10px 24px rgba(94, 58, 0, .12); }
.bento__note { width: fit-content; margin-top: 6px; padding: 4px 12px; border-radius: 99px; background-color: var(--bg-2); color: var(--muted); }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bento__cell--big { grid-column: span 2; grid-row: span 1; } }
.section--raised .bento + .btn-row { margin-top: 32px; }
