/* home.css — Home page: hero render field, showreel, how it works, services menu, selected work, the closing banner. */

/* ---------- Hero: the render field ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: max(34rem, calc(100svh - var(--header-h) - env(safe-area-inset-top, 0px)));   /* fills the screen at any size */ padding-block: 8rem 3.5rem; }
.hero { background: var(--hero-stage); }
.hero__render { position: absolute; inset: 0; z-index: -1; display: block; width: 100%; height: 100%; touch-action: pan-y; }
.hero__inner { display: grid; row-gap: 2.25rem; }
.hero__title { max-width: 12ch; font-size: clamp(3.75rem, 12.5vw, 11.5rem); font-weight: 500; line-height: .92; letter-spacing: -0.06em; color: var(--fg-strong); }
@media (min-width: 1024px) { .hero__title { max-width: none; white-space: nowrap; } }   /* one line on desktop */
.hero__title .hl { display: inline-block; padding: 0 .07em .02em; border-radius: .07em; background: var(--accent); color: var(--ink); line-height: .95; }
.hero__intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.75rem 2.5rem; }
.hero__lead { max-width: 33rem; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.6; color: var(--fg-soft); }
.hero__lead .brand-name { font-size: 1.15em; color: var(--fg-strong); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.topics { display: flex; flex-wrap: wrap; align-items: center; row-gap: .5rem; font-size: .875rem; color: var(--fg-muted); }
.topics li { display: inline-flex; align-items: center; }
.topics li + li::before { content: ""; width: 1px; height: .875rem; margin-inline: 1rem; background: var(--line-strong); }
.js .hero__title, .js .hero__rest { visibility: hidden; animation: failsafe-show 0s 3s forwards; }
@keyframes failsafe-show { to { visibility: visible; } }
/* ---------- Showreel: full-bleed screen ---------- */
.reel2 { position: relative; padding-block: 1rem 7rem; }
.reel2__stage { position: relative; isolation: isolate; height: min(56.25vw, 92svh); cursor: pointer; }
.reel2__ambient { position: absolute; top: 6%; left: 8%; z-index: -1; width: 84%; height: 88%; filter: blur(90px) saturate(1.15); opacity: calc(.08 + .22 * var(--e, 1)); pointer-events: none; }
.reel2__frame { position: absolute; inset: 0; overflow: hidden; background: #000; clip-path: inset(calc((1 - var(--e, 1)) * 7%) calc((1 - var(--e, 1)) * 11%) round calc(22px * (1 - var(--e, 1)) + 1px)); }
.reel2__video { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.07 - .07 * var(--e, 1))); }
.reel2__bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 1.5rem; margin-top: 2rem; }
.reel2__toggle { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--fg-strong); transition: box-shadow .25s, background-color .25s; }
.reel2__toggle:hover { box-shadow: inset 0 0 0 1px var(--fg-strong); }
.reel2__toggle .icon { width: .875rem; height: .875rem; }
.reel2__time { padding-top: 1.05rem; font-size: .8125rem; color: var(--fg-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 639.98px) { .reel2__time { display: none; } .reel2__bar { grid-template-columns: auto minmax(0, 1fr); } }
/* Timeline-style list (used by reel chapters and selected work tabs) */
.chapters2 { display: flex; gap: 1.75rem; overflow-x: auto; scrollbar-width: none; }
.chapters2::-webkit-scrollbar { display: none; }
.chapter2 { position: relative; flex: none; padding-top: 1.05rem; font-size: .875rem; line-height: 1.375rem; color: var(--fg-muted); white-space: nowrap; transition: color .3s; }
.chapter2::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line-strong); }
.chapter2__fill { position: absolute; top: 0; left: 0; height: 1px; width: calc(var(--k, 0) * 100%); background: var(--line-grad); background-size: calc(100% / max(var(--k, 0), .001)) 100%; }
.chapter2:hover, .chapter2.is-active, .chapter2[aria-selected="true"] { color: var(--fg-strong); }
.chapter2__t { display: block; margin-bottom: .125rem; font-size: .6875rem; line-height: 1rem; color: var(--fg-dim); font-variant-numeric: tabular-nums; }
.chapter2 .hl { color: inherit; }
.chapter2 .brand-name { font-size: 1.1em; }
.chapter2__sub { color: var(--fg-muted); }
/* ---------- How it works ---------- */
.process2 { display: grid; gap: 3.5rem 5rem; }
@media (min-width: 1024px) { .process2 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.assure { display: grid; gap: 1rem; margin-top: 3rem; }
.assure li { display: flex; gap: .875rem; max-width: 30rem; font-size: .9375rem; line-height: 1.55; color: var(--fg-soft); }
.assure .icon { margin-top: .2rem; color: var(--fg-strong); }
.step2 { position: relative; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); column-gap: 1rem; padding-block: 1.75rem; border-bottom: 1px solid var(--line); }
.step2__n { font-size: .8125rem; line-height: 2.25rem; color: var(--fg-dim); font-variant-numeric: tabular-nums; transition: color .5s; }
.step2__title { font-size: clamp(1.375rem, 2.4vw, 2rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; color: var(--fg-strong); transition: color .5s; }
.step2__title button { text-align: left; }
.step2__body { grid-column: 2; max-width: 34rem; margin-top: .75rem; color: var(--fg-soft); }
.step2__body > span { display: block; min-height: 0; overflow: hidden; }
.step2__bar { position: absolute; left: 0; bottom: -1px; height: 1px; width: calc(var(--k, 0) * 100%); background: var(--line-grad); background-size: calc(100% / max(var(--k, 0), .001)) 100%; }
.steps2.is-live .step2:not(.is-on) .step2__title { color: var(--fg-dim); }
.steps2.is-live .step2.is-on .step2__n { color: var(--fg-strong); }
.steps2.is-live .step2__body { display: grid; grid-template-rows: 0fr; margin-top: 0; opacity: 0; transition: grid-template-rows .25s var(--ease-out), margin-top .25s var(--ease-out), opacity .2s; }
.steps2.is-live .step2.is-on .step2__body { grid-template-rows: 1fr; margin-top: .75rem; opacity: 1; }
/* ---------- Services menu (+ build your brief) ---------- */
.menu__row { position: relative; border-bottom: 1px solid var(--line); }
.menu__head { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; align-items: center; gap: .5rem 1.25rem; padding-block: 1.625rem; }
@media (min-width: 900px) { .menu__head { grid-template-columns: 3.5rem minmax(0, 5fr) minmax(0, 6fr) auto; } }
.menu__n { font-size: .8125rem; color: var(--fg-dim); font-variant-numeric: tabular-nums; }
.menu__title { font-size: clamp(1.375rem, 2.6vw, 2.25rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.035em; color: var(--fg-strong); transition: color .35s, transform .35s var(--ease-in-out); }
.menu__short { grid-column: 2 / -1; font-size: .9375rem; line-height: 1.55; color: var(--fg-muted); }
@media (min-width: 900px) { .menu__short { grid-column: auto; } }
.menu:not(.menu--detail):not(.menu--fold):hover .menu__row:not(:hover) .menu__title { color: var(--fg-dim); }
.menu:not(.menu--detail):not(.menu--fold) .menu__row:hover .menu__title { transform: translateX(.5rem); }
/* Home services: pick what you need (it goes into the brief); hover or focus shows what you get */
.picker { display: grid; gap: 2.5rem 4rem; }
@media (min-width: 1024px) { .picker { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.picker__choices { display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; }
.picker__list { display: flex; flex-wrap: wrap; gap: .625rem; }
.pick { display: inline-flex; align-items: center; gap: .75rem; padding: .9375rem 1.375rem; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: clamp(1rem, 1.35vw, 1.1875rem); font-weight: 500; letter-spacing: -0.015em; color: var(--fg); transition: background-color .3s, color .3s, box-shadow .3s; }
.pick:hover, .pick.is-focus { box-shadow: inset 0 0 0 1px var(--fg-strong); color: var(--fg-strong); }
.pick[aria-pressed="true"] { background: var(--fg-strong); color: var(--bg); box-shadow: none; }
.pick[aria-pressed="true"] .add__icon::before { width: 45%; transform: translate(-92%, 60%) rotate(45deg); }
.pick[aria-pressed="true"] .add__icon::after { width: 85%; transform: translate(-38%, -25%) rotate(-50deg); }
.picker__alt { max-width: 30rem; font-size: .9375rem; color: var(--fg-muted); }
.picker__alt strong { display: block; margin-bottom: .25rem; font-weight: 500; color: var(--fg-strong); }
.picker__alt .link { margin-top: .875rem; }
.picker__panel { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: 2rem; border-radius: var(--r-stage); background: var(--layer); box-shadow: inset 0 0 0 1px var(--hairline); }
@media (min-width: 1024px) { .picker__panel { min-height: 31rem; padding: 2.5rem; } }
.picker__lead { font-size: clamp(1.25rem, 1.9vw, 1.625rem); line-height: 1.4; font-weight: 500; letter-spacing: -0.02em; color: var(--fg-soft); }
.picker__title { margin-bottom: .625rem; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.035em; color: var(--fg-strong); }
.picker__text { max-width: 32rem; margin-bottom: 1.5rem; color: var(--fg-soft); }
.picker__fit { margin-top: 1rem; font-size: .875rem; color: var(--fg-muted); }
.picker__fit strong { font-weight: 500; color: var(--fg-soft); }
.picker__hint { display: none; }
@media (max-width: 1023.98px) {
  .picker__panel { order: -1; }   /* the card sits above the services, so it stays in view while you tap */
  .picker__hint { display: flex; align-items: center; gap: .5rem; margin-top: 1.25rem; font-size: .875rem; font-weight: 500; color: var(--fg-strong); }
  .picker__hint::before { content: ""; flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgb(253 187 45 / .18); }
}
.picker__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.picker__foot p { display: flex; align-items: center; gap: .625rem; min-width: 0; font-size: .875rem; color: var(--fg-soft); }
.picker__count { display: grid; place-items: center; flex: none; min-width: 1.375rem; height: 1.375rem; padding-inline: .375rem; border-radius: var(--r-pill); background: var(--accent); color: var(--ink); font-size: .6875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.menu__head .add, .menu__head .link { grid-row: 1; grid-column: 3; }
@media (min-width: 900px) { .menu__head .add, .menu__head .link { grid-column: 4; } }
.menu__more { display: grid; gap: 1.5rem 3rem; padding-bottom: 2.25rem; }
@media (min-width: 900px) { .menu__more { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; padding-left: 4.5rem; } .menu--detail .menu__more { margin-top: -.5rem; } }
.menu__fit { font-size: .9375rem; color: var(--fg-soft); }
.deliv li { display: flex; gap: .625rem; padding-block: .3125rem; font-size: .9375rem; color: var(--fg-soft); }
.deliv .icon { margin-top: .3rem; color: var(--fg-muted); }
.menu--detail .menu__row { scroll-margin-top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 1rem); }
.add {
  display: inline-flex; align-items: center; gap: .5rem; padding: .5625rem .9375rem; border-radius: var(--r-pill); white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--line-strong); font-size: .8125rem; line-height: 1.25rem; font-weight: 500; color: var(--fg-soft);
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.add:hover { box-shadow: inset 0 0 0 1px var(--fg-strong); color: var(--fg-strong); }
.add[aria-pressed="true"] { background: var(--fg-strong); color: var(--bg); box-shadow: none; }
.add__icon { position: relative; width: .75rem; height: .75rem; flex: none; }
.add__icon::before, .add__icon::after { content: ""; position: absolute; top: 50%; left: 50%; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform .25s var(--ease-out), width .25s var(--ease-out); }
.add__icon::before { width: 100%; transform: translate(-50%, -50%); }
.add__icon::after { width: 100%; transform: translate(-50%, -50%) rotate(90deg); }
.add[aria-pressed="true"] .add__icon::before { width: 45%; transform: translate(-92%, 60%) rotate(45deg); }
.add[aria-pressed="true"] .add__icon::after { width: 85%; transform: translate(-38%, -25%) rotate(-50deg); }
@media (max-width: 539.98px) { .add [data-add-label] { display: none; } .add { padding: .625rem; } }
/* ---------- Selected work: brief → result ---------- */
.story { display: grid; gap: 2rem; }
.story__stage { position: relative; overflow: hidden; aspect-ratio: 21 / 9; border-radius: var(--r-stage); background: var(--layer); cursor: pointer; }
@media (max-width: 767.98px) { .story__stage { aspect-ratio: 4 / 3; } }
.story__media { position: absolute; inset: 0; clip-path: inset(0 0 0 100%); transition: clip-path 1.15s var(--ease-io); }
.story__media.is-active { z-index: 1; clip-path: inset(0 0 0 0); }
.story__media.is-leaving { z-index: 0; clip-path: inset(0 0 0 0); transition: none; }
.story__media > img, .story__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story__media > img { scale: 1.1; transition: scale 2.6s var(--ease-out); }
.story__media.is-active > img { scale: 1; }
.story__media video { opacity: 0; transition: opacity .6s; }
.story__media.has-film video { opacity: 1; }
.story__shade { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(to top, rgb(10 10 10 / .82), transparent 55%), linear-gradient(to right, rgb(10 10 10 / .45), transparent 55%); }
.story__cap { position: absolute; z-index: 3; left: clamp(1.25rem, 3vw, 2.75rem); right: 25%; bottom: clamp(1.25rem, 3vw, 2.5rem); }
.story__kind { display: block; margin-bottom: .625rem; font-size: .8125rem; color: rgb(255 255 255 / .78); }
.story__title { font-size: clamp(1.75rem, 4.4vw, 4rem); font-weight: 500; line-height: 1; letter-spacing: -0.05em; color: #FFFFFF; }
.story__panels { display: grid; gap: 2rem 3rem; }
@media (min-width: 768px) { .story__panels { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); } }
.story__panel { padding-top: 1.25rem; border-top: 1px solid var(--line); }
.story__panel .label { margin-bottom: .75rem; }
.story__panel p { font-size: .9375rem; line-height: 1.65; color: var(--fg-soft); }
.story__delivered li { padding-block: .3125rem; font-size: .9375rem; color: var(--fg-soft); }
.story__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }
/* ---------- Close ---------- */
.cta2 { position: relative; isolation: isolate; overflow: hidden; padding-block: 8rem; border-top: 1px solid var(--line); background: var(--hero-stage); }
@media (min-width: 1024px) { .cta2 { padding-block: 11rem; } }
.cta2__field { position: absolute; inset: 0; z-index: -1; display: block; width: 100%; height: 100%; }
.cta2__tag { position: absolute; left: 0; top: 0; z-index: 3; display: inline-flex; align-items: center; gap: .5rem; padding: .375rem .75rem .375rem .375rem; border-radius: var(--r-pill); background: var(--fg-strong); color: var(--bg); font-size: .75rem; font-weight: 600; white-space: nowrap; pointer-events: none; opacity: 0; transform: translate(-50%, calc(-100% - 18px)) scale(.95); transform-origin: 50% 100%; transition: opacity .16s var(--ease-in), transform .16s var(--ease-in); }
.cta2__tag.is-on { opacity: 1; transform: translate(-50%, calc(-100% - 18px)) scale(1); transition: opacity .2s var(--ease-out), transform .2s var(--ease-out); }
.cta2__tag.is-below { transform: translate(-50%, 18px) scale(.95); transform-origin: 50% 0; }
.cta2__tag.is-below.is-on { transform: translate(-50%, 18px) scale(1); }
.cta2__tag b { display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: var(--r-pill); background: var(--accent); color: var(--ink); font-size: .8125rem; line-height: 1; }
.cta2.is-pointing { cursor: pointer; }
.cta2__inner { display: grid; gap: 2rem; justify-items: start; }
.cta2__title { max-width: 15ch; font-size: clamp(2.5rem, 6.4vw, 6rem); font-weight: 500; line-height: .98; letter-spacing: -0.05em; color: var(--fg-strong); }
.cta2__body { max-width: 34rem; font-size: 1.0625rem; color: var(--fg-soft); }
