/* The living layer: PP Mori, the liquid gradient moving inside the type, counts, entrances. */
@font-face { font-family: "PP Mori"; src: url("fonts/PPMori-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PP Mori"; src: url("fonts/PPMori-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root { --bg: #000; --bg-2: #000; --bg-3: #000; --txt: #fff; --muted: #A6A6A6; --line: rgba(255, 255, 255, .22); --ease: cubic-bezier(.23, 1, .32, 1); --ease-in-out: cubic-bezier(.77, 0, .175, 1); }
html { font-synthesis: none; }

/* Palette has no dark greys: panels on black are drawn by a hairline. */
.quote:not(.quote--big), .contact form { box-shadow: inset 0 0 0 1px var(--line); }

.nav { background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

/* Type as a window: black box, white letters multiplied over the live canvas behind. */
.liquid-text { position: relative; display: block; isolation: isolate; font-style: normal; background: url("brand/liquid3.jpg") center / cover; overflow: hidden; }
.liquid-text canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.liquid-text > span { position: relative; display: block; background: #000; color: #fff; mix-blend-mode: multiply; padding-bottom: .13em; }
.hero h1 em.liquid-text { padding-bottom: 0; }
.contact h2.liquid-text { background: url("brand/liquid4.jpg") center / cover; color: inherit; -webkit-background-clip: border-box; background-clip: border-box; padding-bottom: 0; }
.contact { background: #000; }

/* Full-bleed band of the live liquid; the shader keeps the slogan's corner dark. */
.manifest { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 78svh; padding: var(--gut); background: #000 url("brand/liquid3.jpg") right top / auto 60% no-repeat; }
.manifest canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.manifest p { position: relative; color: #fff; font: 600 clamp(44px, 9vw, 172px)/.98 var(--display); letter-spacing: -.04em; max-width: 11em; text-wrap: balance; }

/* Numbers: a black band; only the figures carry the gradient, so the liquid keeps its weight in the hero, the manifest and contact. */
.numbers { margin-top: 0; background: transparent; color: var(--txt); border-top: 1px solid var(--line); }
.numbers div { border-top: 1px solid var(--line); }
.numbers dt { width: fit-content; padding-bottom: .06em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.numbers dd { color: var(--muted); }

/* Footer: copyright beside the policy links */
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 32px; margin-top: 24px; }
.footer__bottom .footer__legal { margin-top: 0; }
.footer__policies { display: flex; flex-wrap: wrap; gap: 0 24px; font-size: 14px; color: var(--muted); }
.footer__policies a { padding-block: 14px; text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .footer__policies a { transition: color 160ms ease; } .footer__policies a:hover { color: var(--txt); } }

/* Sky: logo stars behind the black sections. Colour blocks cover it, so the stars live only in the dark. */
body { position: relative; }
.services, .quotes, .contact { background: transparent; }
.sky { position: absolute; top: 0; left: 0; width: 100%; z-index: -1; overflow: hidden; pointer-events: none; }
.sky i { position: absolute; display: block; background: currentColor; opacity: var(--o); -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; }

/* Services on touch screens: no hover, so the row crossing the middle of the screen fills with its colour. */
.svc li.is-lit { color: #000; }
.svc li.is-lit::before { transform: none; transition-duration: 420ms; }

/* Film: our own player. The sound button is a pill until sound is on, then a small round control. */
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #000; cursor: pointer; }
.reel__sound { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; background: var(--grad-btn); color: #000; font: 600 15px/1 var(--display); cursor: pointer; transition: transform 160ms var(--ease), background-color 200ms ease, padding 200ms var(--ease); }
.reel__sound svg { width: 22px; height: 22px; flex: none; }
.reel__icon-on, .reel__icon-play, .reel__say-play { display: none; }
.reel__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: opacity 300ms ease; }
.reel.is-playing .reel__poster { opacity: 0; }
.reel.is-blocked .reel__icon-off, .reel.is-blocked .reel__say-sound { display: none; }
.reel.is-blocked .reel__icon-play, .reel.is-blocked .reel__say-play { display: block; }
.reel.is-sound .reel__sound { padding: 0 15px; background: rgba(0, 0, 0, .6); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.reel.is-sound .reel__sound span, .reel.is-sound .reel__icon-off { display: none; }
.reel.is-sound .reel__icon-on { display: block; }
.reel__sound:active { transform: scale(.96); }


/* Hero proof: one gradient block, everything on it in black. Growth % is the headline; bars show before against after. */
.proof { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; padding: clamp(20px, 2.6vw, 40px); border-radius: var(--radius); background: var(--grad); color: #000; }
.proof__h { font: 600 clamp(32px, 4.2vw, 76px)/.95 var(--display); letter-spacing: -.04em; }
.proof__icons { display: flex; flex-wrap: wrap; gap: 8px; align-self: start; justify-content: flex-end; }
.chip { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: #000; }
.chip img { width: 28px; height: 28px; object-fit: contain; }
.chip--wide img { width: 34px; }
.proof__stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid #000; }
.proof__stats li + li { border-left: 2px solid #000; }
.proof__stats a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr auto; column-gap: 16px; height: 100%; padding: 20px clamp(16px, 2vw, 32px) 0; }
.proof__stats li:first-child a { padding-left: 0; }
.proof__stats li:last-child a { padding-right: 0; }
.proof__stats li { container-type: inline-size; }
/* Size from the column's own width, minus the chart beside it, so the figure never runs into the bars. */
.proof__pct { align-self: end; font: 600 clamp(44px, calc(32cqi - 48px), 128px)/.9 var(--display); letter-spacing: -.055em; white-space: nowrap; }
.proof__pct b { font-weight: inherit; }
.proof__stats small { grid-row: 2; margin-top: 10px; font: 600 clamp(15px, 1.2vw, 19px)/1.25 var(--display); text-decoration: underline transparent 2px; text-underline-offset: 4px; transition: text-decoration-color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .proof__stats a:hover small { text-decoration-color: #000; } }
.proof__bars { grid-column: 2; grid-row: 1 / 3; display: grid; grid-template-columns: repeat(2, clamp(50px, 3.6vw, 60px)); gap: 2px; align-items: end; height: clamp(124px, 11vw, 176px); }
.proof__bar { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; height: 100%; text-align: center; }
.proof__bar > span { font: 600 clamp(12px, .95vw, 15px)/1 var(--display); letter-spacing: -.01em; margin-bottom: 6px; white-space: nowrap; }
.proof__bar i { --h: 1; display: block; flex: 0 0 calc(var(--h) * (100% - 44px)); border-radius: 4px 4px 0 0; background: #000; }
.proof__bar--before i { --h: var(--r); background: rgba(0, 0, 0, .3); }
.proof__bar em { margin-top: 6px; font: 500 11px/1 var(--text); font-style: normal; white-space: nowrap; }
@media (min-width: 1181px) { .proof__h br { display: none; } } /* one line on wide screens keeps the hero inside the first screen */
@media (max-width: 1180px) {
  .proof__stats { grid-template-columns: 1fr; }
  .proof__stats li + li { border-left: 0; border-top: 2px solid #000; }
  .proof__stats a, .proof__stats li:first-child a, .proof__stats li:last-child a { padding: 18px 0; }
}
/* Phone: the block stays within about one screen. Smaller chips on one line, lower rows, shorter bars. */
@media (max-width: 760px) {
  .proof { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .proof__h { font-size: 30px; }
  .proof__icons { justify-content: flex-start; gap: 6px; }
  .proof__icons .chip { width: 36px; height: 36px; border-radius: 10px; }
  .proof__icons .chip img { width: 22px; height: 22px; }
  .proof__icons .chip--wide img { width: 26px; }
  .proof__stats li + li { border-left: 0; border-top: 2px solid #000; }
  .proof__stats a, .proof__stats li:first-child a, .proof__stats li:last-child a { padding: 12px 0; }
  .proof__pct { font-size: 44px; }
  .proof__stats small { margin-top: 4px; font-size: 14px; }
  .proof__bars { height: 78px; grid-template-columns: repeat(2, 44px); }
  .proof__bar i { flex-basis: calc(var(--h) * (100% - 34px)); }
  .proof__bar > span { font-size: 11px; margin-bottom: 4px; }
  .proof__bar em { margin-top: 4px; font-size: 10px; }
}

.sky .tw { animation: twinkle 5s ease-in-out infinite alternate; }

/* Hero arrives once, line by line. CSS only, so nothing depends on the script to appear. */
.hero h1 > span, .hero h1 > em, .hero__pitch, .proof { animation: rise 900ms var(--ease) both; }
.hero h1 > em { animation-delay: 80ms; }
.hero__pitch { animation-delay: 200ms; }
.proof { animation-delay: 280ms; }
/* Bars grow from the baseline as the percentages count up. */
.proof__bar i { transform-origin: bottom; animation: grow 1100ms var(--ease) both; }
.proof__stats li:nth-child(1) .proof__bar i { animation-delay: 650ms; }
.proof__stats li:nth-child(2) .proof__bar i { animation-delay: 740ms; }
.proof__stats li:nth-child(3) .proof__bar i { animation-delay: 830ms; }
.proof__stats .proof__bar + .proof__bar i { animation-delay: 900ms; } /* after rises once before has landed */

/* Scroll entrances, armed by the script only. */
.js-reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease) var(--d, 0ms), transform 900ms var(--ease) var(--d, 0ms); }
.js-reveal.is-in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes twinkle { from { opacity: calc(var(--o) * .25); } to { opacity: var(--o); } }

