/* ==========================================================================
   Assist — service micro-sites (one template, twelve personalities)
   ========================================================================== */

/* ---------- Hero ---------------------------------------------------------- */
.shero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; }
.shero__stage { position: absolute; inset: 0; }
.shero__media { position: absolute; inset: 0; overflow: hidden; will-change: clip-path; }
.shero__media img { width: 100%; height: 100%; object-fit: cover; }
.shero__fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.shero__shade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(0deg, color-mix(in srgb, var(--bg) 92%, transparent) 0%, color-mix(in srgb, var(--bg) 40%, transparent) 34%, transparent 58%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 55%, transparent) 0%, transparent 24%);
}
.shero__top {
  position: absolute; inset: calc(var(--header-h) + 14px) 0 auto; z-index: 3;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 14px;
}
.shero__kicker { opacity: .75; text-align: right; }
.shero__bottom { position: absolute; inset: auto 0 0; z-index: 3; padding-bottom: 100px; }
.shero__title {
  max-width: 11ch; font-size: clamp(62px, 12.5vw, 240px); font-weight: 600; line-height: .82; letter-spacing: -.05em;
  text-transform: uppercase;
}
.shero__title.is-long { max-width: 14ch; font-size: clamp(48px, 8.4vw, 168px); }
.shero__foot { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-top: clamp(16px, 2vw, 28px); font-size: 14px; }
.shero__line { max-width: 26ch; font-size: clamp(20px, 2.1vw, 34px); font-weight: 500; line-height: 1.15; letter-spacing: -.025em; }

/* Shared cell grid used by tiles, scan, render, eq and layers */
.cells { position: absolute; inset: 0; }
.cell { position: absolute; background-repeat: no-repeat; will-change: transform, opacity, clip-path; }

/* focus: a reticle closes in while the picture comes into focus */
.reticle { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.reticle span { position: absolute; width: 34px; height: 34px; border: 0 solid var(--accent); }
.reticle span:nth-child(1) { left: 0; top: 0; border-width: 2px 0 0 2px; }
.reticle span:nth-child(2) { right: 0; top: 0; border-width: 2px 2px 0 0; }
.reticle span:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 2px 2px; }
.reticle span:nth-child(4) { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
.reticle__tag {
  position: absolute; left: 0; top: calc(100% + 12px); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 7px 10px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600;
}

/* deck: a dull slide gets struck through, then becomes the window */
.deck {
  position: absolute; left: 50%; top: 50%; width: min(64vw, 900px); aspect-ratio: 16 / 9; translate: -50% -50%;
  display: grid; align-content: start; gap: 5%; padding: 5% 6%; border-radius: 14px;
  background: #F3F1EA; color: #1b1b1b; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7);
}
.deck__title { height: clamp(14px, 2.4vw, 34px); width: 58%; margin-bottom: 2%; border-radius: 6px; background: #1b1b1b; }
.deck__row { position: relative; display: flex; align-items: center; gap: 3%; height: clamp(10px, 1.6vw, 22px); }
.deck__row::before { content: ""; width: 1.6%; aspect-ratio: 1; border-radius: 50%; background: #1b1b1b; flex: none; }
.deck__row b { height: 46%; border-radius: 4px; background: #c9c6bd; }
.deck__row s { position: absolute; left: -1%; right: 30%; top: 50%; height: 3px; margin-top: -1.5px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.deck__foot { position: absolute; inset: auto 6% 5% 6%; display: flex; justify-content: space-between; font-size: clamp(10px, .9vw, 13px); color: #8a877f; }
.deck__stamp {
  position: absolute; right: 6%; top: 8%; padding: 6px 12px; border: 2px solid var(--accent); border-radius: 6px; rotate: -8deg;
  color: var(--accent); font-weight: 700; font-size: clamp(12px, 1.3vw, 18px); letter-spacing: .04em; text-transform: uppercase; scale: 0;
}

/* flow: nodes and edges of a workflow draw over the image */
.flow { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flow path { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.flow .flow__node { fill: var(--bg); stroke: var(--accent); stroke-width: 2; }
.flow .flow__pulse { fill: #fff; filter: drop-shadow(0 0 6px var(--accent)); }

/* phone: the picture lives in a phone, then fills the screen */
.phone__notch { position: absolute; left: 50%; top: 0; width: 84px; height: 24px; translate: -50% 0; border-radius: 99px; background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.14); }

/* windows: app panes stack, the top one opens out */
.shero__back { position: absolute; inset: 0; pointer-events: none; }
.win {
  position: absolute; border-radius: 12px; overflow: hidden;
  background: color-mix(in srgb, #fff 55%, transparent); box-shadow: 0 30px 60px -24px rgba(10,20,40,.45), inset 0 0 0 1px rgba(255,255,255,.7);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.win::before { content: ""; position: absolute; inset: 0 0 auto; height: 30px; background: rgba(255,255,255,.55); border-bottom: 1px solid rgba(10,20,40,.08); }
.win i { position: absolute; top: 11px; width: 9px; height: 9px; border-radius: 50%; background: #FF5F57; }
.win i:nth-of-type(2) { background: #FEBC2E; }
.win i:nth-of-type(3) { background: #28C840; }
.win b { position: absolute; left: 18px; height: 8px; border-radius: 4px; background: rgba(14,20,32,.14); }

/* render: a viewport grid, then buckets render in from the centre */
.render-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(color-mix(in srgb, var(--accent) 45%, transparent) 1px, transparent 1px),
                    linear-gradient(90deg, color-mix(in srgb, var(--accent) 45%, transparent) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center;
}
.cell--bucket::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1.5px var(--accent); opacity: var(--edge, 0); }

/* letterbox: bars open to scope, timecode runs */
.lb__bar { position: absolute; left: 0; right: 0; height: 50%; background: #050303; z-index: 1; }
.lb__bar--top { top: 0; }
.lb__bar--bottom { bottom: 0; }
.lb__hud { position: absolute; inset: 0; z-index: 2; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: #fff; font-variant-numeric: tabular-nums; }
.lb__hud > span { position: absolute; display: inline-flex; align-items: center; gap: 8px; }
.lb__rec { left: var(--gutter); }
.lb__rec i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: blink 1s steps(2) infinite; }
.lb__tc { right: var(--gutter); }
@keyframes blink { 50% { opacity: 0; } }
.lb__thirds { position: absolute; inset: 0; opacity: .0; }
.lb__thirds::before, .lb__thirds::after { content: ""; position: absolute; inset: 0; }
.lb__thirds::before { background: linear-gradient(90deg, transparent calc(33.33% - .5px), rgba(255,255,255,.28) 33.33%, transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255,255,255,.28) 66.66%, transparent calc(66.66% + .5px)); }
.lb__thirds::after { background: linear-gradient(180deg, transparent calc(33.33% - .5px), rgba(255,255,255,.28) 33.33%, transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255,255,255,.28) 66.66%, transparent calc(66.66% + .5px)); }

/* bloom: paint blooms open through a gooey mask */
.bloom { position: absolute; inset: 0; width: 100%; height: 100%; }

/* render (3D Design): the companion device's eyes, drawn over the screen in the picture.
   The script places the screen box and each eye from the picture's own pixels. */
.eyes { position: absolute; inset: 0; pointer-events: none; transform-origin: 50% 50%; }
.eyes__screen { position: absolute; overflow: hidden; }
.eyes__pair { position: absolute; inset: 0; }
.eyes__pair i { position: absolute; border-radius: 999px; background: #161C04; }

/* layers: a nozzle lays the picture down line by line */
.nozzle { position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: color-mix(in srgb, var(--accent) 60%, transparent); }
.nozzle i { position: absolute; top: -5px; left: 0; width: 22px; height: 12px; margin-left: -11px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 22px 6px color-mix(in srgb, var(--accent) 70%, transparent); }

/* ---------- Overview ------------------------------------------------------ */
.overview { display: grid; gap: clamp(36px, 5vw, 70px); }
.overview__text { max-width: 28ch; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 0; }
.facts > div { display: grid; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.facts dt { font-size: 13px; opacity: .55; }
.facts dd { margin: 0; font-size: clamp(17px, 1.4vw, 21px); font-weight: 500; line-height: 1.35; letter-spacing: -.01em; }

/* ---------- Capabilities -------------------------------------------------- */
.caps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(20px, 3vw, 48px); }
.cap {
  position: relative; display: grid; grid-template-columns: 48px 1fr 28px; gap: 6px 16px; align-items: start;
  padding: 28px 0 32px; border-top: 1px solid var(--line);
}
.cap::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .8s var(--ease); }
.cap:hover::before { transform: none; }
.cap__num { grid-row: span 2; font-size: 13px; padding-top: 6px; opacity: .5; font-variant-numeric: tabular-nums; }
.cap__title { font-size: clamp(22px, 2vw, 32px); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; }
.cap__text { grid-column: 2; font-size: 15px; opacity: .65; max-width: 40ch; }
.cap__plus { grid-column: 3; grid-row: 1; position: relative; width: 16px; height: 16px; margin-top: 8px; transition: rotate .6s var(--ease); }
.cap__plus::before, .cap__plus::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 1.5px; background: var(--accent); }
.cap__plus::after { rotate: 90deg; }
.cap:hover .cap__plus { rotate: 90deg; }

/* ---------- Band ---------------------------------------------------------- */
.band { position: relative; height: 110vh; height: 110svh; overflow: hidden; display: grid; place-items: center; color: #fff; }
.band__media { position: absolute; inset: -12% 0; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band__shade { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,.35), rgba(0,0,0,.65)); }
.band__quote {
  position: relative; margin: 0; padding: 0 var(--gutter); max-width: 18ch; text-align: center;
  font-size: clamp(42px, 6.6vw, 120px); font-weight: 600; line-height: .96; letter-spacing: -.045em;
}

/* ---------- Steps --------------------------------------------------------- */
.steps__rail { position: relative; height: 2px; margin-bottom: 40px; background: var(--line); }
.steps__rail b { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.step { display: grid; gap: 14px; align-content: start; }
.step__n {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; margin-bottom: 10px;
  box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; transition: background .5s, color .5s, box-shadow .5s;
}
.step.is-on .step__n { background: var(--accent); color: var(--on, #fff); box-shadow: none; }
.step p { font-size: 16px; opacity: .65; max-width: 30ch; }

/* ---------- Related work -------------------------------------------------- */
.swork__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px clamp(16px, 2vw, 28px); }
.swork__grid--one { grid-template-columns: minmax(0, 1fr); max-width: 1100px; }
.swork__grid--empty { grid-template-columns: 1fr; }
.swork__grid:not(.swork__grid--one) > .wcard:nth-child(3) { grid-column: 1 / -1; }
.wempty {
  display: grid; justify-items: start; gap: 28px; padding: clamp(28px, 5vw, 72px); border-radius: var(--r);
  background: var(--accent); color: var(--on, #fff); --accent: var(--fg);
}
.wempty .label::before { background: currentColor; }
.wempty .h2 { max-width: 20ch; }

/* ---------- CTA ----------------------------------------------------------- */
.scta { display: grid; justify-items: center; text-align: center; gap: 28px; padding-block: clamp(110px, 12vw, 190px); }
.scta__title { font-size: clamp(60px, 11vw, 220px); font-weight: 600; line-height: .82; letter-spacing: -.05em; text-transform: uppercase; }
.scta__sub { max-width: 36ch; opacity: .75; }
.scta__actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 18px 30px; }
.scta__alt { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.scta__btn { --bb: var(--accent); --bt: var(--on, #fff); }
.scta__btn::before { background: var(--fg); }
.scta__btn:hover { color: var(--bg); }

/* ---------- Next micro-site ---------------------------------------------- */
.next { position: relative; display: grid; place-items: center; height: 88vh; height: 88svh; min-height: 520px; overflow: hidden; }
.next__media {
  position: absolute; inset: 0; overflow: hidden;
  clip-path: inset(26% 22% 26% 22% round 18px); transition: clip-path 1.2s var(--ease);
}
.next__media img { width: 100%; height: 100%; object-fit: cover; scale: 1.15; transition: scale 1.4s var(--ease); }
.next:hover .next__media { clip-path: inset(0 0 0 0 round 0); }
.next:hover .next__media img { scale: 1; }
.next__label { position: absolute; inset: 28px 0 auto; display: flex; justify-content: space-between; gap: 20px; font-size: 14px; }
.next__short { opacity: .7; }
.next__title {
  position: relative; padding: 0 var(--gutter); text-align: center; mix-blend-mode: difference; color: #fff;
  font-size: clamp(58px, 11vw, 210px); font-weight: 600; line-height: .84; letter-spacing: -.05em; text-transform: uppercase;
}
.next__title.is-long { font-size: clamp(46px, 8vw, 160px); }

/* ---------- Responsive ---------------------------------------------------- */
@media (max-width: 900px) {
  .caps__list { grid-template-columns: 1fr; }
  .steps__grid { grid-template-columns: 1fr; }
  .steps__rail { display: none; }
  .facts { grid-template-columns: 1fr; }
  .swork__grid { grid-template-columns: 1fr; }
  .shero__kicker { display: none; }
  .next__label { flex-direction: column; }
}
@media (max-width: 560px) {
  .shero__title { font-size: clamp(48px, 14vw, 120px); }
  .shero__foot .scroll-cue { display: none; }
  .deck { width: 84vw; }
}
