/* ==========================================================================
   Assist — home
   ========================================================================== */

/* ---------- Hero: framed image that grows to full bleed ------------------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; }
.hero__media {
  position: absolute; inset: 0; z-index: 2; overflow: hidden;
  clip-path: inset(var(--ft, 58%) var(--gutter) 24px var(--gutter) round 16px);
  will-change: clip-path;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 45%; }
.hero__shade { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  background: linear-gradient(0deg, rgba(248,248,248,.82) 0%, rgba(248,248,248,.35) 30%, rgba(248,248,248,0) 55%); }
.hero__top {
  position: absolute; inset: calc(var(--header-h) + 18px) var(--gutter) auto; z-index: 1;
  display: grid; justify-items: center; text-align: center; gap: clamp(14px, 2vw, 26px);
}
.hero__meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 14px; font-size: 14px; }
.hero__meta > span:not(.chip) { opacity: .7; }
.hero__word { position: relative; white-space: nowrap; }
.hero__by { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; }
.hero__by-text { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.hero__over {
  position: absolute; inset: 0; z-index: 4; display: grid; align-content: end; gap: clamp(26px, 4vw, 56px);
  padding: 0 var(--gutter) 96px; color: var(--fg); pointer-events: none;
}
.hero__claim {
  max-width: 13ch; font-size: clamp(48px, 7.6vw, 136px); font-weight: 600; line-height: .92; letter-spacing: -.045em;
  visibility: hidden;
}
.hero__claim span { font-style: italic; font-weight: 300; }
.hero__foot { display: flex; justify-content: space-between; gap: 20px; font-size: 14px; visibility: hidden; }
.hero__foot > span { flex: 1; }
.hero__foot > span:nth-child(2) { justify-content: center; }
.hero__foot > span:last-child { text-align: right; }

/* ---------- Statement ---------------------------------------------------- */
.statement { display: grid; gap: clamp(36px, 5vw, 72px); }
.statement__text { max-width: 26ch; font-size: clamp(30px, 4.3vw, 72px); line-height: 1.04; }
.statement__quote { justify-self: end; max-width: 18ch; text-align: right; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: clamp(20px, 4vw, 60px); }
.stat { display: grid; gap: 16px; align-content: start; padding-top: 22px; border-top: 1px solid var(--line); }
.stat__num { font-size: clamp(84px, 11vw, 190px); font-weight: 600; line-height: .82; letter-spacing: -.06em; }
.stat p { max-width: 24ch; font-size: 15px; opacity: .65; }
.odo { display: inline-flex; overflow: hidden; height: 1em; line-height: 1; vertical-align: top; }
.odo__digit { display: inline-block; height: 1em; overflow: hidden; }
.odo__strip { display: flex; flex-direction: column; }
.odo__strip > span { display: block; height: 1em; text-align: center; }

/* ---------- Advise / Demo / Deliver stacking cards ------------------------ */
.stack { position: relative; background: var(--night); }
.stack__card { position: relative; height: 100vh; height: 100svh; }
.stack__inner { position: relative; height: 100%; overflow: hidden; color: #fff; background: #000; transform-origin: 50% 0; will-change: transform; }
.stack__media { position: absolute; inset: 0; }
.stack__media img { width: 100%; height: 100%; object-fit: cover; }
.stack__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,8,10,.82) 0%, rgba(8,8,10,.45) 45%, rgba(8,8,10,.05) 75%); }
.stack__card:first-child .stack__shade { background: linear-gradient(90deg, rgba(20,4,12,.86) 0%, rgba(20,4,12,.4) 50%, rgba(20,4,12,0) 80%); }
.stack__content {
  position: relative; height: 100%; display: grid; grid-template-rows: auto 1fr auto; gap: 30px;
  padding-top: calc(var(--header-h) + 30px); padding-bottom: 110px; --accent: var(--c);
}
.stack__top { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.stack__num { font-variant-numeric: tabular-nums; opacity: .6; }
.stack__word {
  align-self: center; font-size: clamp(88px, 17vw, 330px); font-weight: 600; line-height: .8; letter-spacing: -.055em;
  text-transform: uppercase;
}
.stack__word::first-letter { color: var(--c); }
.stack__body { display: grid; gap: 24px; justify-items: start; max-width: 520px; }
.stack__body .btn { --c: var(--c); }

/* ---------- Live demos: horizontal gallery ------------------------------- */
.demos { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.demos__ghost {
  position: absolute; left: 0; bottom: -0.12em; z-index: 0; white-space: nowrap; pointer-events: none;
  font-size: clamp(140px, 24vw, 420px); font-weight: 700; letter-spacing: -.06em; line-height: 1; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--fg) 14%, transparent);
}
.demos__head {
  position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 24px 48px;
  padding-top: calc(var(--header-h) + 34px);
}
.demos__head .h2 { max-width: 16ch; }
.demos__hint { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; opacity: .7; }
.demos__track { position: relative; z-index: 1; display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); width: max-content; padding: 0 var(--gutter); }
.dcard { --dw: min(48vw, calc((100vh - 400px) * 1.7), 860px); width: max(300px, var(--dw)); display: grid; gap: 18px; }
.dcard__frame { display: block; aspect-ratio: 16 / 9.4; border-radius: 16px; }
.dcard__frame .zoom img { width: 100%; height: 100%; object-fit: cover; }
.dcard__live {
  position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px;
  border-radius: 8px; background: rgba(255,255,255,.92); color: #111; font-size: 12px; font-weight: 600;
}
.dcard__live i { width: 7px; height: 7px; border-radius: 50%; background: #22C55E; animation: ping 2.2s infinite; }
.dcard__meta { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: start; }
.dcard__num { font-size: 14px; opacity: .5; padding-top: 6px; }
.dcard__meta p { margin-top: 6px; font-size: 15px; opacity: .65; max-width: 44ch; }
.dcard--cta { width: max(280px, calc(var(--dw) * .66)); }
.dcard__yours {
  display: grid; align-content: space-between; justify-items: start; gap: 30px; padding: clamp(22px, 3vw, 40px);
  background: var(--grad); color: #fff; aspect-ratio: auto; height: calc(max(300px, var(--dw)) * 9.4 / 16);
  --accent: #fff;
}
.dcard__big { font-size: clamp(64px, 9vw, 160px); font-weight: 600; line-height: .82; letter-spacing: -.055em; text-transform: uppercase; }
.dcard__yours .btn { --c: #111; }
.dcard__yours .btn:hover { color: #fff; }

/* ---------- Services index ----------------------------------------------- */
.services { position: relative; }
.services__head .body-xl { max-width: 40ch; }
.slist { display: grid; gap: clamp(36px, 4vw, 60px); }
.slist__group { display: grid; grid-template-columns: 160px 1fr; gap: 18px; }
.slist__head { padding-top: 26px; font-size: 14px; font-weight: 500; opacity: .5; }
.slist__rows { border-top: 1px solid var(--line); }
.srow {
  position: relative; display: grid; grid-template-columns: 56px minmax(0, 1.15fr) minmax(0, 1fr) 40px; align-items: center; gap: 20px;
  padding: clamp(18px, 2vw, 26px) 16px; border-bottom: 1px solid var(--line); isolation: isolate; overflow: hidden;
  transition: color .5s var(--ease);
}
.srow::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .6s var(--ease); }
.srow:hover { color: var(--on); }
.srow:hover::before { transform: none; }
.srow__num { font-size: 14px; font-variant-numeric: tabular-nums; opacity: .5; }
.srow__name { font-size: clamp(28px, 3.6vw, 58px); font-weight: 600; line-height: 1; letter-spacing: -.04em; transition: transform .6s var(--ease); }
.srow:hover .srow__name { transform: translateX(10px); }
.srow__short { font-size: 15px; opacity: .65; }
.srow__go { justify-self: end; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); }
.slist__preview {
  position: absolute; top: 0; left: 0; z-index: 5; width: clamp(220px, 22vw, 340px); aspect-ratio: 4 / 3;
  border-radius: 12px; overflow: hidden; pointer-events: none; visibility: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
}
.slist__preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); }

/* ---------- Work --------------------------------------------------------- */
.work__title {
  position: relative; font-size: clamp(90px, 16vw, 300px); font-weight: 600; line-height: .8; letter-spacing: -.05em; text-transform: uppercase;
}
.work__more { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 22px; margin-top: clamp(60px, 7vw, 110px); font-size: 15px; }
.wgrid .wcard:nth-child(even) { margin-top: clamp(0px, 8vw, 140px); }

/* ---------- One brief ---------------------------------------------------- */
.combine { position: relative; height: 100vh; height: 100svh; min-height: 680px; overflow: hidden; color: #fff; }
.combine__media { position: absolute; inset: 0; }
.combine__media img { width: 100%; height: 100%; object-fit: cover; }
.combine__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,12,.92) 0%, rgba(10,10,12,.7) 40%, rgba(10,10,12,.2) 100%); }
.combine__ui {
  position: relative; height: 100%; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px;
  padding-top: var(--header-h); padding-bottom: 96px;
}
.combine__lines { font-size: clamp(38px, 5.2vw, 88px); font-weight: 600; line-height: .98; letter-spacing: -.045em; }
.combine__line { display: flex; align-items: baseline; gap: .2em; overflow: hidden; padding-bottom: .26em; margin-bottom: -.22em; }
.combine__word .char-mask { padding-bottom: .26em; margin-bottom: -.26em; }
.combine__line .plus { display: inline-block; color: var(--c); font-weight: 400; }
.combine__line .combine__word { display: inline-block; }
.combine__line:not(:first-child) .combine__word { color: var(--c); }
.combine__side {
  display: grid; gap: 36px; align-self: end; padding: clamp(22px, 2.4vw, 34px); border-radius: 18px;
  background: rgba(12, 12, 14, .58); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.combine__intro { max-width: 30ch; }
.combine__steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 22px; }
.cstep { display: grid; gap: 4px; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.22); }
.cstep b { font-size: 12px; font-weight: 500; opacity: .5; }
.cstep span { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.cstep p { font-size: 14px; opacity: .65; }

/* ---------- Responsive ---------------------------------------------------- */
@media (max-width: 960px) {
  .combine__ui { grid-template-columns: 1fr; align-content: center; gap: 36px; }
  .combine__side { align-self: start; }
  .slist__group { grid-template-columns: 1fr; gap: 0; }
  .slist__head { padding: 0 0 14px; }
  .srow { grid-template-columns: 40px 1fr 40px; }
  .srow__short { display: none; }
  .demos__head { grid-template-columns: 1fr; }
  .demos__hint { display: none; }
}
@media (max-width: 820px) {
  .wgrid .wcard:nth-child(even) { margin-top: 0; }
  .stats { grid-template-columns: 1fr; }
  .statement__quote { justify-self: start; text-align: left; }
  .stack__shade, .stack__card:first-child .stack__shade { background: linear-gradient(0deg, rgba(8,8,10,.9) 0%, rgba(8,8,10,.5) 55%, rgba(8,8,10,.2) 100%); }
  .hero__foot > span:first-child, .hero__foot > span:last-child { display: none; }
  .dcard { --dw: 82vw; }
  .dcard__meta { grid-template-columns: auto 1fr; }
  .dcard__meta .wcard__tags { display: none; }
  .dcard--cta { width: 82vw; }
}
