/* =========================================================================
   Top by Ten: reusable section patterns (see docs/components.md for markup).
   ========================================================================= */

/* ---------- Hero (full-height rounded image with centred heading) ---------- */
.hero { position: relative; height: calc(100svh - 2.5rem); padding: .5rem; }
.hero__frame { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: var(--r-3xl); }
.hero__bg { display: grid; width: 100%; height: 100%; overflow: hidden; background: var(--grey-900); border-radius: var(--r-3xl); transform: scale(1.05); }
.hero__bg > * { grid-area: 1 / 1; }
.hero__img { position: relative; overflow: hidden; filter: blur(4px); }
@media (min-width: 1024px) { .hero__img { filter: blur(12px); } }
.hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__content { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; background: rgba(17,18,18,.3); color: var(--white); text-align: center; padding-inline: var(--gutter); }
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.hero__eyebrow { text-transform: uppercase; font-size: .75rem; font-weight: 500; letter-spacing: var(--tracking-tightish); line-height: 1.25; max-width: 13rem; text-wrap: balance; margin-bottom: .5rem; }
.hero__badges { display: flex; gap: .5rem; margin-bottom: 1.25rem; }
.hero__badges span { display: grid; place-items: center; width: 3rem; aspect-ratio: 20/9; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; font-size: .5625rem; font-weight: 600; letter-spacing: .02em; }
.hero h1 { margin-top: 1rem; }
.hero__sub { margin-top: 1rem; }
.hero__platforms { display: none; justify-content: center; gap: 3.5rem; margin-top: 3rem; font-size: .875rem; font-weight: 600; letter-spacing: -.02em; opacity: .9; }
@media (min-width: 1280px) { .hero__platforms { display: flex; } }
.hero__foot { position: absolute; z-index: 30; left: 0; bottom: 0; width: 100%; padding: 1.75rem; display: flex; align-items: flex-end; justify-content: space-between; color: var(--white); font-size: .875rem; line-height: 1.5; }
@media (min-width: 1024px) { .hero__foot { font-size: 1rem; } }
.hero__foot strong { font-weight: 500; }
.hero__foot > :first-child { display: none; text-align: left; }
@media (min-width: 768px) { .hero__foot > :first-child { display: block; } .hero__foot > :last-child { text-align: right; } }
.hero__foot > :last-child { width: 100%; text-align: center; }
@media (min-width: 768px) { .hero__foot > :last-child { width: auto; } }

/* Light page hero (inner pages): centred heading on the grey background */
.page-hero { padding: 9rem var(--gutter) 3rem; text-align: center; }
@media (min-width: 1024px) { .page-hero { padding-top: 11rem; } }
.page-hero .crumbs { display: flex; justify-content: center; gap: .5rem; font-size: .75rem; color: var(--grey-300); margin-bottom: 2rem; }
.page-hero h1 { margin-inline: auto; max-width: 18ch; }
.page-hero p { margin: 1.75rem auto 0; max-width: 28rem; font-size: 1.125rem; line-height: 1.25; font-weight: 500; letter-spacing: var(--tracking-tight); }

/* ---------- Logo / sector strip ---------- */
.logos { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); row-gap: .5rem; }
.logos__label { grid-column: span 20; display: flex; align-items: center; font-weight: 500; letter-spacing: var(--tracking-tight); line-height: 1.25; }
.logos__track { position: relative; grid-column: span 20; overflow: hidden; }
@media (min-width: 768px) { .logos__label { grid-column: span 4; } .logos__track { grid-column: span 16; } }
@media (min-width: 1024px) { .logos__label { grid-column: span 3; } .logos__track { grid-column: span 17; } }
.logos__drift { display: flex; width: 120vw; overflow: hidden; }
.logo-slot { width: 5rem; padding-block: 1.25rem; }
@media (min-width: 1024px) { .logo-slot { width: 6rem; } }
.logo-slot span { display: grid; place-items: center; aspect-ratio: 20/9; font-size: .875rem; font-weight: 700; letter-spacing: -.03em; white-space: nowrap; color: var(--grey-900); }

/* ---------- Intro split (small statement left, big heading + buttons right) ---------- */
.intro-split { display: flex; flex-direction: column-reverse; justify-content: space-between; align-items: flex-start; gap: .75rem; }
@media (min-width: 768px) { .intro-split { flex-direction: row; gap: 1.25rem; } }
.intro-split__text { width: 100%; max-width: 24rem; margin-bottom: .25rem; }
@media (min-width: 768px) { .intro-split__text { margin: .5rem 0 0; } }
@media (min-width: 1280px) { .intro-split__text { max-width: 36rem; } }
.intro-split__main { width: 100%; display: grid; gap: .75rem; max-width: 24rem; }
@media (min-width: 768px) { .intro-split__main { max-width: 40rem; gap: 1.75rem; } }
@media (min-width: 1280px) { .intro-split__main { max-width: 36rem; } }
@media (min-width: 1536px) { .intro-split__main { max-width: 42rem; } }
@media (min-width: 1920px) { .intro-split__main { max-width: 52rem; } }
.intro-split .btn-row--mobile { width: 100%; }
.intro-split .btn-row--mobile .btn { width: 100%; }
@media (min-width: 768px) { .intro-split .btn-row--mobile { display: none; } }
.intro-split .btn-row--desktop { display: none; }
@media (min-width: 768px) { .intro-split .btn-row--desktop { display: flex; } }

/* ---------- Featured work (sticky dark panel) ---------- */
.fw { position: relative; display: flex; margin-block: -1.75rem; overflow: hidden; }
@media (pointer: fine) { .fw { overflow: visible; } }
.fw__sticky { width: 100%; padding-block: 1.75rem; top: 0; }
@media (pointer: fine) and (min-width: 1024px) { .fw__sticky { position: sticky; height: 100svh; } }
.fw__panel { height: 100%; overflow: hidden; padding-inline: 1.25rem; border-radius: var(--r-3xl); background: var(--grey-900); color: var(--white); }
@media (min-width: 1024px) { .fw__panel { padding-inline: 2rem; } }
@media (min-width: 1280px) { .fw__panel { padding-inline: 2.5rem; } }
.fw__left { position: relative; grid-column: span 12; display: none; }
@media (min-width: 1024px) { .fw__left { display: flex; align-items: center; grid-column: span 6; height: 96svh; } }
.fw__left-inner { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: flex-start; height: 100%; padding: 6rem 0 8rem; gap: 5rem; }
.fw__list-wrap { position: relative; flex: 1; overflow: hidden; padding-right: 1.25rem; width: 100%; }
.fw__list-wrap::before, .fw__list-wrap::after { content: ""; position: absolute; left: 0; width: 100%; height: 33%; z-index: 20; pointer-events: none; }
.fw__list-wrap::before { top: 0; background: linear-gradient(to bottom, var(--grey-900), rgba(17,18,18,0)); }
.fw__list-wrap::after { bottom: 0; background: linear-gradient(to top, var(--grey-900), rgba(17,18,18,0)); }
.fw__list { position: relative; z-index: 10; display: grid; gap: .5rem; }
@media (min-width: 1536px) { .fw__list { gap: 3rem; } }
.fw__head { transition: opacity .4s; }
.fw__head a { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.fw__head small { font-size: .75rem; font-weight: 500; }
.fw.is-hovering .fw__head:not(.is-active) { opacity: .3; }
.fw__right { grid-column: span 12; display: grid; padding: 1.75rem 0 3.5rem; }
@media (min-width: 1024px) { .fw__right { grid-column: 7 / span 6; } }
@media (min-width: 1920px) { .fw__right { grid-column: 8 / span 5; } }
.fw__images { display: block; }
.work-card { margin-bottom: 1.25rem; color: var(--grey-900); }
@media (min-width: 1024px) { .work-card { margin-bottom: 1.75rem; } }
.work-card__media { position: relative; overflow: hidden; aspect-ratio: 3/2; }
.work-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-smooth); }
@media (pointer: fine) { .work-card:hover .work-card__media img { transform: scale(1.05); } }
.work-card__chip { position: relative; z-index: 30; display: flex; justify-content: flex-end; align-items: flex-start; padding: .75rem; }
@media (min-width: 1024px) { .work-card__chip { align-items: flex-end; padding: 1.25rem; } }
.work-card__mobile { position: relative; z-index: 30; display: flex; align-items: flex-end; padding: .75rem; color: var(--white); }
.work-card__mobile::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 8rem; background: linear-gradient(to top, #000, transparent); opacity: .7; z-index: -1; }
@media (min-width: 1024px) { .work-card__mobile { display: none; } }
.work-card__mobile small { display: block; font-size: .75rem; font-weight: 500; margin-bottom: .25rem; }
.work-card__mask { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: .75rem; background: var(--c, var(--mint)); color: var(--grey-900); }
@media (min-width: 1024px) { .work-card__mask { padding: 1.25rem; } }
.work-card__mask .t-h3 { max-width: 16ch; text-align: left; }
.work-card__mask .row { width: 100%; display: flex; align-items: flex-end; justify-content: space-between; }
.work-card__mask .chip { background: rgba(255,255,255,.4); color: var(--grey-900); }

/* ---------- Service rows (hover: black pill with image, arrow slides in) ---------- */
.svc-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .75rem var(--gap); }
@media (min-width: 768px) { .svc-head { border-bottom: 1px solid var(--grey-200); padding-bottom: 1.25rem; } }
.svc-head > :first-child { grid-column: span 11; display: flex; align-items: flex-end; }
.svc-head > :last-child { display: none; }
@media (min-width: 768px) { .svc-head > :first-child { grid-column: span 9; } .svc-head > :last-child { grid-column: span 3; display: flex; align-items: center; justify-content: flex-end; } }
.svc-list { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: .5rem; }
.svc-list > * { grid-column: span 12; margin-block: -1px; }
@media (min-width: 768px) { .svc-list > * { grid-column: span 6; } }
.svc-row { position: relative; }
.svc-row__line { position: absolute; left: 0; bottom: 0; width: 100%; z-index: 0; }
@media (pointer: fine) { .svc-row__line { padding-inline: 3rem; } }
.svc-row__line i { display: block; height: 1px; background: var(--grey-200); }
.svc-row a { display: grid; position: relative; z-index: 1; }
.svc-row a > * { grid-area: 1 / 1; }
.svc-row__content { position: relative; z-index: 20; display: flex; align-items: center; gap: .75rem; padding-block: 1rem; color: var(--black); transition: color .5s; }
@media (min-width: 1024px) { .svc-row__content { padding-block: 1.5rem; } }
.svc-row__thumb { position: relative; width: 3rem; height: 3rem; border-radius: var(--r-lg); overflow: hidden; flex: none; }
@media (min-width: 768px) { .svc-row__thumb { width: 4rem; height: 4rem; border-radius: var(--r-xl); } }
.svc-row__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (pointer: fine) { .svc-row__thumb { display: none; } }
.svc-row__title { position: relative; transition: transform .5s var(--ease-smooth); }
@media (pointer: fine) { .svc-row__title { transform: translateX(2.5rem); } }
.svc-row__arrow { position: absolute; top: 0; left: 0; padding-right: .5rem; overflow: hidden; display: none; }
@media (pointer: fine) { .svc-row__arrow { display: block; } }
.svc-row__arrow span { display: block; transform: translate(-100%, 100%) rotate(-45deg); transition: transform .5s var(--ease-smooth); }
.svc-row__label { transition: transform .5s var(--ease-smooth); }
.svc-row__bg { position: relative; z-index: 10; border-radius: 999px; overflow: hidden; background: var(--black); opacity: 0; transition: opacity .5s; }
.svc-row__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .6; transform: scale(1.1); transition: transform .7s var(--ease-smooth); }
@media (pointer: fine) {
  .svc-row:hover .svc-row__content { color: var(--white); }
  .svc-row:hover .svc-row__bg { opacity: 1; }
  .svc-row:hover .svc-row__bg img { transform: scale(1); }
  .svc-row:hover .svc-row__title { transform: translateX(3.5rem); }
  .svc-row:hover .svc-row__arrow span { transform: none; }
  .svc-row:hover .svc-row__title > .svc-row__label { transform: translateX(.5rem); }
}

/* ---------- Big marquee (words + images) ---------- */
.marquee { overflow: hidden; }
.marquee a { display: block; width: 100%; position: relative; overflow: hidden; }
.marquee__drift { display: flex; width: 120vw; position: relative; overflow: hidden; }
.marquee__item { flex: none; display: flex; align-items: center; gap: 1rem; padding: 0 .5rem .75rem; }
@media (min-width: 1024px) { .marquee__item { gap: 2.5rem; padding: 1.25rem 1.25rem 2.5rem; } }
.marquee__item .t { white-space: nowrap; text-wrap: nowrap; }
.marquee__img { flex: none; width: 20vw; aspect-ratio: 4/5; border-radius: var(--r-2xl); overflow: hidden; position: relative; }
@media (min-width: 768px) { .marquee__img { width: 15vw; } }
@media (min-width: 1024px) { .marquee__img { width: 12vw; border-radius: var(--r-3xl); margin-bottom: 2.5rem; } }
.marquee__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Stacked value cards ---------- */
.stack-card { width: 100%; display: grid; align-items: center; gap: 1.5rem; text-align: center; padding: 1.75rem; border-radius: var(--r-2xl); }
@media (min-width: 1024px) { .stack-card { aspect-ratio: 1; border-radius: var(--r-3xl); } }
@media (min-width: 1280px) { .stack-card { padding: 2.5rem 3.5rem; } }
.stack-card--black { background: var(--black); color: var(--white); }
.stack-card--mint { background: var(--mint); color: var(--grey-900); }
.stack-card--white { background: var(--white); color: var(--grey-900); }
.stack-card__img { position: relative; width: 100%; aspect-ratio: 4/3; border-radius: var(--r-xl); overflow: hidden; margin-inline: auto; }
@media (min-width: 1024px) { .stack-card__img { width: 12rem; aspect-ratio: 1; border-radius: var(--r-2xl); } }
@media (min-width: 2560px) { .stack-card__img { width: 14rem; } }
.stack-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stack-card p { font-size: .875rem; line-height: 1.45; max-width: 26rem; margin-inline: auto; }
@media (min-width: 1280px) { .stack-card p { font-size: 1rem; } }
.stack-card p + p { margin-top: .75rem; }
.stack-mobile { display: block; }
@media (min-width: 1024px) { .stack-mobile { display: none; } }
.stack { position: relative; display: none; height: 300vh; }
@media (min-width: 1024px) { .stack { display: flex; } }
.stack__sticky { position: sticky; top: 0; width: 100%; height: 100svh; overflow: hidden; }
.stack__label { position: absolute; top: 0; left: 0; width: 100%; display: flex; justify-content: center; margin-top: 2.5rem; }
.stack__item { position: absolute; left: 0; top: 2rem; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.stack__item > div { width: 100%; max-width: 32rem; transform: rotate(var(--r, 0deg)); }
@media (min-width: 1280px) { .stack__item > div { max-width: 36rem; } }
.stack__item:nth-child(2) { --r: 3deg; } .stack__item:nth-child(3) { --r: -4deg; } .stack__item:nth-child(4) { --r: 5deg; }
@media (prefers-reduced-motion: reduce), (pointer: coarse) {
  .stack { height: auto; } .stack__sticky { position: static; height: auto; overflow: visible; padding-top: 6rem; }
  .stack__item { position: relative; top: 0; height: auto; padding-block: 1rem; }
}

/* ---------- Post cards (blog) ---------- */
.post-card { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; transition: transform .5s var(--ease-smooth); }
@media (pointer: fine) { .post-card:hover { transform: translateY(-.5rem); } }
.post-card__media { width: 100%; }
.post-card__media .media { aspect-ratio: 1; border-radius: var(--r-2xl); }
@media (min-width: 1024px) { .post-card__media .media, .post-card__media.cm-card { border-radius: var(--r-3xl); } }
.post-card__tag { position: relative; z-index: 30; padding: .75rem; align-self: start; justify-self: start; }
.post-card__mask { display: flex; align-items: flex-end; justify-content: space-between; padding: 1.25rem; background: var(--mint); color: var(--grey-900); }
.post-card__meta { display: flex; flex-wrap: wrap; gap: .25rem; }
.post-card__title { font-size: 1.375rem; line-height: 1.1; font-weight: 500; letter-spacing: var(--tracking-tight); text-wrap: balance; }
@media (min-width: 1280px) { .post-card__title { font-size: 1.5rem; } }

/* ---------- Section heading row with button ---------- */
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--grey-200); margin-bottom: 1.75rem; }
.head-row--plain { border-bottom: 0; padding-bottom: 0; }
.only-desktop { display: none; }
@media (min-width: 768px) { .only-desktop { display: inline-flex; } .only-mobile { display: none !important; } }

/* ---------- Big closing heading (scroll-heading) ---------- */
.big-line { display: flex; height: 35vh; overflow: hidden; }
@media (min-width: 1024px) { .big-line { height: 100vh; } }
.big-line__text { flex: none; font-size: 30vw; font-weight: 500; letter-spacing: var(--tracking-tight); line-height: 1.25; white-space: nowrap; }
@media (min-width: 1024px) { .big-line__text { font-size: 16vw; } }
@media (min-width: 2560px) { .big-line__text { font-size: 14vw; } }
@media (prefers-reduced-motion: reduce) { .big-line { height: auto; padding-block: 3rem; } .big-line__text { font-size: 12vw; white-space: normal; padding-inline: var(--gutter); } }

/* ---------- Cursor-follow image and trail images ---------- */
.follow { position: fixed; left: 0; top: 0; z-index: 45; width: 16rem; aspect-ratio: 4/5; border-radius: var(--r-3xl); overflow: hidden; pointer-events: none; opacity: 0; scale: .8; transition: opacity .3s, scale .3s; }
.follow.is-on { opacity: 1; scale: 1; }
.follow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.follow img.is-active { opacity: 1; }
.trail-img { position: absolute; z-index: 40; width: 15rem; aspect-ratio: 4/5; border-radius: var(--r-3xl); overflow: hidden; pointer-events: none; }
.trail-img img { width: 100%; height: 100%; object-fit: cover; }
