/* Webstdio v2 — light studio, liquid motion, work shown as screens in space. */

:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #e9ecf1;
  --ink: #0b0d12;
  --ink-2: #262b35;
  --muted: #565e6d;
  --line: rgba(11, 13, 18, 0.1);
  --line-strong: rgba(11, 13, 18, 0.2);
  --blue: #2350ff;
  --blue-2: #1838d6;
  --blue-soft: #e4eaff;
  --dark: #0b0d12;
  --dark-2: #141821;
  --dark-3: #1c212c;
  --on-dark: #f5f6f8;
  --on-dark-2: rgba(245, 246, 248, 0.68);
  --line-dark: rgba(255, 255, 255, 0.12);
  --live: #22c55e;

  --font: "General Sans", "General Sans Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1360px;
  --gutter: clamp(16px, 4vw, 48px);
  --sp: clamp(96px, 11vw, 168px);
  --r-xl: clamp(22px, 2.6vw, 36px);
  --r-lg: clamp(16px, 1.8vw, 24px);
  --r-md: 14px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --wave: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 12' preserveAspectRatio='none'><path d='M0 6 C 8 0 16 0 24 6 S 40 12 48 6 V12 H0 Z' fill='black'/></svg>");
}

/* Fallback tuned to General Sans metrics, so the swap when the web font lands doesn't move the layout */
@font-face { font-family: "General Sans Fallback"; src: local("Arial"), local("ArialMT"), local("Helvetica"); font-weight: 400; size-adjust: 100.7%; ascent-override: 100.3%; descent-override: 23.8%; line-gap-override: 0%; }
@font-face { font-family: "General Sans Fallback"; src: local("Arial"), local("ArialMT"), local("Helvetica"); font-weight: 500 700; size-adjust: 103.4%; ascent-override: 97.7%; descent-override: 23.2%; line-gap-override: 0%; }

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  scroll-padding-top: calc(var(--nav-h) + 16px);
  scrollbar-color: #b9c0cc var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  caret-color: var(--blue);
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 8px; }
.dark :focus-visible, .cta :focus-visible, .callcard :focus-visible { outline-color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sp); }
.dark { background: var(--dark); color: var(--on-dark); --muted: var(--on-dark-2); --line: var(--line-dark); }

.skip {
  position: fixed; left: 16px; top: 12px; z-index: 200;
  padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 500; text-decoration: none;
  transform: translateY(-160%); transition: transform 0.3s var(--ease);
}
.skip:focus-visible { transform: none; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.todo { color: #b45309; font-weight: 500; }
.dark .todo { color: #fbbf24; }

/* ---------- Type ---------- */

.h-display {
  font-weight: 500;
  font-size: clamp(3rem, 1.25rem + 5.6vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.h-2 {
  font-weight: 500;
  font-size: clamp(2.375rem, 1.5rem + 3.3vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.h-3 {
  font-weight: 500;
  font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.lead {
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.3125rem);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
  max-width: 34em;
}
.body { color: var(--muted); max-width: 36em; text-wrap: pretty; }
.body + .body { margin-top: 1em; }
.link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: text-decoration-color 0.25s, color 0.25s;
}
.link:hover { text-decoration-color: currentColor; }

/* Masked word/line rise (hero words are wrapped in the HTML so they never wait on a script) */
.w { display: inline-block; overflow: clip; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.w > span { display: inline-block; }
.ln { padding-bottom: 0.14em; }
.ln-mask { margin-bottom: -0.14em; }

/* ---------- Buttons: the label rolls up letter by letter, the arrow swaps ---------- */

.btn {
  --b-bg: var(--ink);
  --b-fg: #fff;
  --b-hover: #262b35;
  --chip-bg: #fff;
  --chip-fg: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 56px;
  padding: 0 8px 0 24px;
  border-radius: 999px;
  background: var(--b-bg);
  color: var(--b-fg);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  justify-self: start;
  transition: background-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
  will-change: transform;
}
.btn:hover { background: var(--b-hover); }
.btn--nochip { padding-right: 24px; }
.btn__label { position: relative; display: inline-flex; flex-direction: column; overflow: hidden; height: 1.3em; line-height: 1.3; }
.btn__row { display: flex; }
.btn__row + .btn__row { position: absolute; left: 0; top: 100%; }
.btn__row span { display: inline-block; white-space: pre; transition: transform 0.6s var(--ease); transition-delay: calc(var(--i) * 13ms); }
.btn:hover .btn__row span, .btn:focus-visible .btn__row span { transform: translateY(-100%); }
.btn__chip {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--chip-bg);
  color: var(--chip-fg);
  overflow: hidden;
  flex: none;
  transition: transform 0.5s var(--ease);
}
.btn:hover .btn__chip { transform: scale(1.08); }
.btn__chip svg { width: 15px; height: 15px; transition: transform 0.6s var(--ease); }
.btn__chip svg + svg { position: absolute; transform: translate(-170%, 170%); }
.btn:hover .btn__chip svg:first-child { transform: translate(170%, -170%); }
.btn:hover .btn__chip svg + svg { transform: none; }
.btn__chip--right svg + svg { transform: translateX(-170%); }
.btn:hover .btn__chip--right svg:first-child { transform: translateX(170%); }

.btn--light { --b-bg: #fff; --b-fg: var(--ink); --b-hover: #eef0f4; --chip-bg: var(--ink); --chip-fg: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--white { --b-bg: #fff; --b-fg: var(--ink); --b-hover: #e9edf5; --chip-bg: var(--ink); --chip-fg: #fff; }
.btn--glass { --b-bg: rgba(255, 255, 255, 0.12); --b-fg: #fff; --b-hover: rgba(255, 255, 255, 0.22); --chip-bg: #fff; --chip-fg: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32); }
.btn--sm { height: 46px; padding: 0 6px 0 18px; gap: 10px; font-size: 0.9375rem; }
.btn--sm .btn__chip { width: 34px; height: 34px; }
.btn--sm.btn--nochip { padding-right: 18px; }
.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .btn__row span, .btn__chip, .btn__chip svg { transition: none; }
}

/* Small pills (labels on cards, never above headings) */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--tag-line, var(--line-strong));
  white-space: nowrap;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); flex: none; }
.dot--off { background: #9aa3af; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--nav-h);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.is-solid {
  background: rgba(244, 245, 247, 0.84);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__in { height: 100%; display: flex; align-items: center; gap: 8px; }
.mark {
  display: inline-flex;
  align-items: baseline;
  font-weight: 400;
  font-size: 1.4375rem;
  letter-spacing: -0.045em;
  line-height: 1;
  text-decoration: none;
  margin-right: auto;
  flex: none;
}
.mark b { font-weight: 600; }
.nav__links { display: flex; gap: 2px; margin-right: 12px; }
.nav__links a {
  position: relative;
  padding: 10px 14px;
  font-size: 0.9688rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-2);
  border-radius: 999px;
  transition: color 0.25s, background-color 0.25s;
}
.nav__links a:hover { background: rgba(11, 13, 18, 0.05); }
.nav__links a[aria-current="page"] { color: var(--ink); background: rgba(11, 13, 18, 0.07); }
.nav__menu {
  display: none;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-weight: 500;
  font-size: 0.9375rem;
}
.nav__menu i { display: grid; gap: 4px; }
.nav__menu i::before, .nav__menu i::after { content: ""; width: 16px; height: 1.5px; background: currentColor; border-radius: 2px; }
@media (max-width: 820px) {
  :root { --nav-h: 66px; }
  .nav__links { display: none; }
  .nav__menu { display: inline-flex; }
  .nav .btn--sm { height: 42px; padding: 0 16px; }
  .nav .btn--sm .btn__chip { display: none; }
  .nav .btn--sm { padding-right: 16px; }
}
@media (max-width: 370px) { .nav .btn--sm { display: none; } }

.menu {
  width: 100%; max-width: none; height: 100%; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--bg); color: var(--ink);
}
.menu::backdrop { background: rgba(11, 13, 18, 0.3); }
.menu[open] { display: flex; flex-direction: column; }
.menu__top { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; }
.menu__close { height: 46px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); font-weight: 500; }
.menu__links { display: grid; gap: 4px; padding-block: 32px; }
.menu__links a { font-weight: 500; font-size: clamp(2.5rem, 12vw, 3.5rem); letter-spacing: -0.04em; line-height: 1.12; text-decoration: none; }
.menu__foot { margin-top: auto; padding-block: 24px 32px; display: grid; gap: 18px; border-top: 1px solid var(--line); }
.menu__foot p { color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .menu[open] .menu__links a { animation: menuIn 0.7s var(--ease) both; }
  .menu[open] .menu__links a:nth-child(2) { animation-delay: 0.05s; }
  .menu[open] .menu__links a:nth-child(3) { animation-delay: 0.1s; }
  .menu[open] .menu__links a:nth-child(4) { animation-delay: 0.15s; }
}
@keyframes menuIn { from { opacity: 0; transform: translateY(24px); } }

/* ---------- Intro: the screen fills with water, then lifts away ---------- */

.intro { display: none; background: var(--dark); color: #fff; }
html.show-intro .intro {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--dark);
  cursor: pointer;
  animation: introFailsafe 0s 3.5s forwards;
}
@keyframes introFailsafe { to { visibility: hidden; pointer-events: none; } }
.intro__water { position: absolute; inset: 0; background: var(--blue); transform: translateY(100%); }
.intro__water::before,
.intro__tail::before {
  content: "";
  position: absolute;
  left: 0;
  width: calc(100% + 120px);
  height: 34px;
  background: var(--blue);
  -webkit-mask: var(--wave) repeat-x 0 0 / 120px 34px;
  mask: var(--wave) repeat-x 0 0 / 120px 34px;
  animation: waveBig 1.2s linear infinite;
}
.intro__water::before { bottom: calc(100% - 1px); }
.intro__tail { position: absolute; left: 0; right: 0; top: calc(100% - 1px); height: 34px; overflow: hidden; }
.intro__tail::before { top: 0; animation-name: waveBigFlip; }
@keyframes waveBig { to { transform: translateX(-120px); } }
@keyframes waveBigFlip { from { transform: scaleY(-1); } to { transform: scaleY(-1) translateX(-120px); } }
.intro__mark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: 600;
  font-size: clamp(2.25rem, 6vw, 4rem);
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.intro__hint { position: absolute; left: 0; right: 0; bottom: 28px; text-align: center; font-size: 0.875rem; color: rgba(255, 255, 255, 0.75); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + clamp(32px, 6vh, 80px));
  padding-bottom: clamp(40px, 7vh, 88px);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(38% 48% at 76% 42%, rgba(35, 80, 255, 0.13), transparent 72%),
    radial-gradient(30% 40% at 10% 90%, rgba(35, 80, 255, 0.06), transparent 70%);
}
.hero__in { position: relative; z-index: 2; width: 100%; }
.hero__text { max-width: min(46rem, 52%); display: grid; gap: 30px; }
.hero__text .lead { max-width: 30em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 6px; }
.hero__facts li { display: inline-flex; align-items: center; gap: 9px; font-size: 0.9375rem; color: var(--ink-2); font-weight: 500; }
.hero__facts svg { width: 18px; height: 18px; color: var(--blue); }

@media (prefers-reduced-motion: no-preference) {
  .hero .w > span { animation: wordUp 1s var(--ease) both; animation-delay: calc(var(--d0, 0.05s) + var(--i) * 55ms); }
  .hero__text > :not(h1) { animation: fadeUp 1s var(--ease) both; }
  .hero__text > :nth-child(2) { animation-delay: calc(var(--d0, 0.05s) + 0.38s); }
  .hero__text > :nth-child(3) { animation-delay: calc(var(--d0, 0.05s) + 0.48s); }
  .hero__text > :nth-child(4) { animation-delay: calc(var(--d0, 0.05s) + 0.58s); }
  .wall__plane { animation: wallIn 1.8s var(--ease) both; animation-delay: calc(var(--d0, 0.05s) + 0.15s); }
  html.show-intro { --d0: 0.95s; }
}
@keyframes wordUp { from { transform: translateY(105%) rotate(4deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } }
@keyframes wallIn { from { opacity: 0; translate: 0 80px; } }

/* The wall: real screens drifting in perspective */
.wall {
  position: absolute;
  top: var(--nav-h);
  bottom: 0;
  left: 47%;
  right: 0;
  z-index: 1;
  perspective: 2000px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%), linear-gradient(to bottom, transparent 0, #000 10%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 16%), linear-gradient(to bottom, transparent 0, #000 10%, #000 86%, transparent 100%);
  mask-composite: intersect;
}
.wall__plane {
  position: absolute;
  left: 4%;
  top: -24%;
  width: 118%;
  height: 150%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  transform: rotateX(22deg) rotateY(-16deg) rotateZ(10deg);
  transform-origin: 40% 50%;
}
.wall__col { display: flex; flex-direction: column; gap: 22px; will-change: transform; animation: colUp 54s linear infinite; }
.wall__col:nth-child(2) { animation-name: colDown; animation-duration: 62s; }
.wall__col:nth-child(3) { animation-duration: 70s; }
.wall__col img {
  width: 100%;
  border-radius: 12px;
  background: var(--surface-2);
  box-shadow: 0 34px 60px -34px rgba(11, 13, 18, 0.5), 0 0 0 1px rgba(11, 13, 18, 0.06);
}
.wall__col img.is-phone { width: 64%; margin-inline: auto; border-radius: 20px; }
.wall.is-paused .wall__col { animation-play-state: paused; }
@keyframes colUp { to { transform: translateY(calc(-50% - 11px)); } }
@keyframes colDown { from { transform: translateY(calc(-50% - 11px)); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .wall__col { animation: none; } }

@media (max-width: 900px) {
  .hero { display: block; min-height: 0; padding-bottom: 0; }
  .hero__text { max-width: 40rem; }
  .wall {
    position: relative;
    inset: auto;
    height: clamp(360px, 92vw, 520px);
    margin-top: 40px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 80%, transparent 100%);
  }
  .wall__plane { left: -12%; width: 124%; top: -30%; height: 170%; gap: 14px; transform: rotateX(24deg) rotateZ(10deg); }
  .wall__col { gap: 14px; animation-name: colUpS; }
  .wall__col:nth-child(2) { animation-name: colDownS; }
}
@keyframes colUpS { to { transform: translateY(calc(-50% - 7px)); } }
@keyframes colDownS { from { transform: translateY(calc(-50% - 7px)); } to { transform: translateY(0); } }

/* ---------- Marquee ---------- */

.marquee { overflow: hidden; padding-block: clamp(26px, 3.4vw, 44px); border-block: 1px solid var(--line); }
.marquee__track { display: flex; width: max-content; }
.marquee__set { display: flex; align-items: center; }
.marquee__set span {
  display: inline-flex;
  align-items: center;
  gap: clamp(22px, 2.6vw, 44px);
  padding-right: clamp(22px, 2.6vw, 44px);
  font-weight: 500;
  font-size: clamp(1.875rem, 1.1rem + 3vw, 3.75rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  white-space: nowrap;
}
.marquee__set span::after { content: ""; width: 0.3em; height: 0.3em; border-radius: 50%; background: var(--blue); }
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: marq 48s linear infinite; }
  .marquee.is-js .marquee__track { animation: none; }
}
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- Section heads ---------- */

.head { display: flex; align-items: end; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 72px); }
.head__text { display: grid; gap: 20px; max-width: 48rem; }

/* ---------- Project panels (home) ---------- */

.panels { display: grid; gap: clamp(20px, 2vw, 28px); }
.panel {
  --stage-muted: color-mix(in srgb, var(--stage-ink) 78%, var(--stage));
  position: relative;
  border-radius: var(--r-xl);
  background: var(--stage);
  color: var(--stage-ink);
  overflow: hidden;
  isolation: isolate;
  min-height: min(84vh, 820px);
  transform-origin: 50% 0;
}
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  background: #05060a;
  opacity: var(--dim, 0);
  pointer-events: none;
}
.panel__info {
  position: relative;
  z-index: 3;
  width: min(100%, 36%);
  min-width: 340px;
  padding: clamp(28px, 3.6vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.panel__name { font-weight: 500; font-size: clamp(2.375rem, 1.5rem + 2.8vw, 4.25rem); line-height: 1; letter-spacing: -0.04em; }
.panel__line { font-size: 1.125rem; line-height: 1.5; color: var(--stage-muted); max-width: 24em; }
.panel__tags { display: flex; flex-wrap: wrap; gap: 8px; --tag-line: color-mix(in srgb, var(--stage-ink) 26%, transparent); }
.panel__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.panel .btn { --b-bg: var(--stage-ink); --b-fg: var(--stage); --b-hover: color-mix(in srgb, var(--stage-ink) 84%, var(--stage)); --chip-bg: var(--stage); --chip-fg: var(--stage-ink); }
.panel .btn--light { --b-bg: transparent; --b-fg: var(--stage-ink); --b-hover: color-mix(in srgb, var(--stage-ink) 10%, transparent); --chip-bg: var(--stage-ink); --chip-fg: var(--stage); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--stage-ink) 34%, transparent); }

/* Stage: screens laid out in space. Also the button that opens the full preview. */
.stage {
  position: absolute;
  inset: 0 0 0 33%;
  z-index: 1;
  display: block;
  perspective: 1800px;
  cursor: pointer;
  overflow: hidden;
}
.panel .stage {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%);
  mask-image: linear-gradient(to right, transparent 0, #000 14%);
}
.stage:focus-visible { outline-offset: -6px; border-radius: var(--r-xl); }
.stage__plane {
  position: absolute;
  left: 2%;
  top: -18%;
  width: 118%;
  height: 150%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  transform: rotateX(34deg) rotateZ(-22deg);
  transform-origin: 50% 50%;
}
.stage__col { display: flex; flex-direction: column; gap: 20px; will-change: transform; }
.stage__col:nth-child(2) { margin-top: 18%; }
.stage__col:nth-child(3) { margin-top: 6%; }
.stage__col img {
  width: 100%;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 56px -26px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.stage__col img.is-phone { width: 62%; margin-inline: auto; border-radius: 18px; }

.t-bs { --stage: #e8472b; --stage-ink: #090605; }
.t-brunsy { --stage: #1e7a4c; --stage-ink: #ffffff; }
.t-am { --stage: #dbe3ec; --stage-ink: #0b0d12; }
.t-bs .panel__line { --stage-muted: #1a0c08; }
.panel.t-brunsy { --stage-muted: #ffffff; }

@media (min-width: 900px) and (min-height: 700px) {
  .panels--stack .panel { position: sticky; top: calc(var(--nav-h) + 8px); }
}
@media (max-width: 899px) {
  .panel { min-height: 0; display: flex; flex-direction: column; }
  .panel__info { width: 100%; min-width: 0; }
  .stage { position: relative; inset: auto; height: clamp(320px, 88vw, 480px); }
  .panel .stage { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%); mask-image: linear-gradient(to bottom, transparent 0, #000 14%); }
  .stage__plane { left: -14%; width: 128%; top: -24%; height: 160%; gap: 14px; }
  .stage__col { gap: 14px; }
}

/* Cursor bubble over stages (fine pointers only) */
.bubble {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 90;
  width: 112px;
  height: 112px;
  margin: -56px 0 0 -56px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 500;
  font-size: 0.9375rem;
  pointer-events: none;
  transform: scale(0);
  box-shadow: 0 18px 40px -18px rgba(11, 13, 18, 0.45);
}
.has-bubble .stage { cursor: none; }

/* ---------- Statement with scroll-filled words ---------- */

.fill-text {
  font-weight: 500;
  font-size: clamp(1.875rem, 1.1rem + 3vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 22em;
  text-wrap: pretty;
}
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(64px, 8vw, 112px);
}
.services li { display: grid; gap: 12px; align-content: start; padding-top: 24px; border-top: 1px solid var(--line); }
.services svg { width: 40px; height: 40px; color: var(--blue); margin-bottom: 8px; }
.services h3 { font-weight: 500; font-size: 1.375rem; letter-spacing: -0.02em; }
.services p { color: var(--muted); max-width: 26em; }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } }

/* ---------- Ahmed ---------- */

.person { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px clamp(16px, 2vw, 32px); align-items: center; }
.person__photo {
  grid-column: 1 / span 5;
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  text-align: center;
  isolation: isolate;
}
.person__photo p { font-weight: 500; color: var(--ink-2); padding: 24px; }
.person__water { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: var(--blue-soft); z-index: -1; }
.person__water::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: calc(100% - 1px);
  width: calc(100% + 120px);
  height: 26px;
  background: var(--blue-soft);
  -webkit-mask: var(--wave) repeat-x 0 0 / 120px 26px;
  mask: var(--wave) repeat-x 0 0 / 120px 26px;
}
@media (prefers-reduced-motion: no-preference) { .person__water::before { animation: waveBig 6s linear infinite; } }
.person__text { grid-column: 7 / span 6; display: grid; gap: 28px; }
.facts { display: grid; border-top: 1px solid var(--line); }
.facts li { display: flex; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts svg { width: 22px; height: 22px; color: var(--blue); flex: none; margin-top: 2px; }
.facts strong { display: block; font-weight: 500; }
.facts span { color: var(--muted); font-size: 0.9688rem; }
@media (max-width: 860px) {
  .person__photo, .person__text { grid-column: 1 / -1; }
  .person__photo { max-width: 440px; }
}

/* ---------- Process (dark, horizontal on desktop) ---------- */

.process { overflow: hidden; }
.process__head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 64px); }
.process__head .head__text { max-width: 40rem; }
.progress { position: relative; width: min(100%, 320px); height: 4px; border-radius: 4px; background: var(--line-dark); overflow: hidden; }
.progress i { position: absolute; inset: 0; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); }
.process__pin { position: relative; }
.track {
  display: flex;
  gap: clamp(14px, 1.6vw, 22px);
  padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.track.is-pinned { overflow: visible; scroll-snap-type: none; width: max-content; }
.step {
  flex: none;
  width: clamp(290px, 27vw, 400px);
  min-height: clamp(340px, 30vw, 420px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(24px, 2.4vw, 36px);
  border-radius: var(--r-lg);
  background: var(--dark-2);
  box-shadow: inset 0 0 0 1px var(--line-dark);
}
.step__top { display: flex; justify-content: space-between; align-items: start; }
.step__n { font-weight: 500; font-size: clamp(3.5rem, 2.6rem + 2.5vw, 5rem); line-height: 0.9; letter-spacing: -0.04em; color: #7b96ff; font-variant-numeric: tabular-nums; }
.step__top svg { width: 44px; height: 44px; color: var(--on-dark); }
.step h3 { font-weight: 500; font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.875rem); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 10px; }
.step p { color: var(--on-dark-2); }
.step--own { background: var(--blue); box-shadow: none; }
.step--own .step__n { color: #fff; }
.step--own p { color: rgba(255, 255, 255, 0.9); }
@media (max-width: 899px) {
  .track { display: grid; overflow: visible; scroll-snap-type: none; }
  .step { width: 100%; min-height: 0; gap: 28px; }
}

/* ---------- Call to action (water) ---------- */

.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-xl);
  background: var(--blue);
  color: #fff;
  padding: clamp(48px, 7vw, 112px) clamp(24px, 6vw, 96px) clamp(120px, 14vw, 200px);
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(50% 70% at 85% 10%, rgba(255, 255, 255, 0.16), transparent 70%);
}
.cta__in { display: grid; gap: 28px; justify-items: start; max-width: 54rem; }
.cta .lead { color: rgba(255, 255, 255, 0.9); }
.cta__row { display: flex; flex-wrap: wrap; gap: 12px; }
.waves { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(90px, 11vw, 150px); z-index: -1; pointer-events: none; overflow: hidden; }
.waves i {
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(100% + 360px);
  height: 100%;
  background: #4a6dff;
  -webkit-mask: var(--wave) repeat-x 0 0 / 360px 40px, linear-gradient(#000 0 0) 0 39px / 100% 100% no-repeat;
  mask: var(--wave) repeat-x 0 0 / 360px 40px, linear-gradient(#000 0 0) 0 39px / 100% 100% no-repeat;
}
.waves i:nth-child(2) {
  background: #6f8fff;
  height: 66%;
  width: calc(100% + 260px);
  -webkit-mask: var(--wave) repeat-x 0 0 / 260px 30px, linear-gradient(#000 0 0) 0 29px / 100% 100% no-repeat;
  mask: var(--wave) repeat-x 0 0 / 260px 30px, linear-gradient(#000 0 0) 0 29px / 100% 100% no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
  .waves i { animation: waveSlow 9s linear infinite; }
  .waves i:nth-child(2) { animation: waveSlow2 6s linear infinite reverse; }
}
@keyframes waveSlow { to { transform: translateX(-360px); } }
@keyframes waveSlow2 { to { transform: translateX(-260px); } }

/* ---------- Footer ---------- */

.foot { background: var(--dark); color: var(--on-dark); padding-top: clamp(64px, 8vw, 104px); overflow: hidden; }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px 32px; }
.foot__brand { display: grid; gap: 16px; align-content: start; }
.foot__brand p { color: var(--on-dark-2); max-width: 22em; }
.foot__col { display: grid; gap: 10px; align-content: start; }
.foot__col h2 { font-size: 0.875rem; font-weight: 500; color: var(--on-dark-2); margin-bottom: 6px; }
.foot__col a { text-decoration: none; width: fit-content; }
.foot__col a:hover { text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
.foot__col span { color: var(--on-dark-2); }
.foot__word {
  margin-top: clamp(56px, 7vw, 96px);
  font-weight: 400;
  font-size: clamp(4.5rem, 21vw, 22rem);
  line-height: 0.78;
  letter-spacing: -0.04em;
  text-align: center;
  white-space: nowrap;
  color: var(--on-dark);
  user-select: none;
  transform: translateY(0.06em);
}
.foot__word b { font-weight: 600; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; border-top: 1px solid var(--line-dark); font-size: 0.875rem; color: var(--on-dark-2); position: relative; z-index: 1; background: var(--dark); }
@media (max-width: 860px) {
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}

/* ---------- Page heads ---------- */

.page-head { padding-top: calc(var(--nav-h) + clamp(56px, 10vh, 120px)); padding-bottom: clamp(48px, 6vw, 88px); position: relative; isolation: isolate; }
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(40% 60% at 85% 20%, rgba(35, 80, 255, 0.1), transparent 70%);
}
.page-head__in { display: grid; gap: 26px; }
.page-head__in > * { max-width: 58rem; }
.page-head__in > .lead { max-width: 36em; }
@media (prefers-reduced-motion: no-preference) {
  .page-head .w > span { animation: wordUp 1s var(--ease) both; animation-delay: calc(var(--d0, 0.05s) + var(--i) * 55ms); }
  .page-head__in > :not(h1) { animation: fadeUp 1s var(--ease) both; animation-delay: calc(var(--d0, 0.05s) + 0.35s); }
}

/* ---------- Frames: a soft ring around showcase cards ---------- */

.frame {
  padding: clamp(8px, 0.9vw, 14px);
  border-radius: calc(var(--r-xl) + clamp(8px, 0.9vw, 14px));
  background: #e6e9ee;
}
.frame > * { border-radius: var(--r-xl); overflow: hidden; }

/* ---------- Devices (pure CSS) ---------- */

.laptop { position: relative; width: 100%; }
.laptop__lid {
  position: relative;
  padding: 2.3% 2.3% 0;
  background: #0d0f14;
  border-radius: 3.4% 3.4% 0 0 / 5.2% 5.2% 0 0;
  box-shadow: inset 0 0 0 1px #2b303a;
}
.laptop__lid::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  width: 11%;
  height: 3.6%;
  transform: translateX(-50%);
  background: #0d0f14;
  border-radius: 0 0 8px 8px;
}
.laptop__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 0.6vw 0.6vw 0 0; background: #000; }
.laptop__screen > img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.laptop__track { position: absolute; left: 0; top: 0; width: 100%; will-change: transform; }
.laptop__track img { display: block; width: 100%; height: auto; }
.laptop__base {
  position: relative;
  height: clamp(8px, 1.15vw, 18px);
  margin: 0 -7.5%;
  background: linear-gradient(#eceef2, #b7bcc5 70%, #8f949d);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.laptop__base::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 14%;
  height: 42%;
  transform: translateX(-50%);
  background: #a3a8b1;
  border-radius: 0 0 10px 10px;
}
.phone {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 14% / 6.5%;
  background: #0d0f14;
  box-shadow: inset 0 0 0 1px #2b303a, 0 40px 70px -30px rgba(11, 13, 18, 0.55);
}
.phone__screen { position: absolute; inset: 3.4%; border-radius: 11.5% / 5.3%; overflow: hidden; background: #000; }
.phone__screen img { width: 100%; display: block; }
.phone::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 2.8%;
  left: 50%;
  width: 30%;
  height: 2.7%;
  transform: translateX(-50%);
  background: #000;
  border-radius: 99px;
}

/* ---------- Work page ---------- */

.wk-hero { padding-top: calc(var(--nav-h) + clamp(16px, 3vh, 32px)); }
.wk-hero__card {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: 40px clamp(16px, 2vw, 32px);
  padding: clamp(36px, 5.5vw, 96px);
  background: var(--dark);
  color: var(--on-dark);
  min-height: min(72vh, 680px);
  --muted: var(--on-dark-2);
}
.wk-hero__text { grid-column: 1 / span 5; display: grid; gap: 26px; justify-items: start; }
.wk-hero__devices { grid-column: 7 / -1; position: relative; padding-right: 9%; padding-bottom: 6%; }
.wk-hero__devices .phone { position: absolute; right: 0; bottom: 0; width: 25%; }
.wk-list { display: grid; gap: clamp(18px, 2.2vw, 30px); }
.wk-card {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px clamp(16px, 2vw, 32px);
  align-items: center;
  padding: clamp(12px, 1.4vw, 20px);
  background: var(--surface);
}
.wk-card__media {
  grid-column: 1 / span 6;
  position: relative;
  aspect-ratio: 6 / 5;
  border-radius: calc(var(--r-xl) - 8px);
  overflow: hidden;
  background: var(--stage);
  isolation: isolate;
}
.wk-card__media .stage { inset: 0; }
.wk-card__media .stage__plane { left: -8%; width: 118%; top: -18%; height: 142%; }
.wk-card__info { grid-column: 8 / span 5; display: grid; gap: 20px; align-content: center; padding-block: clamp(8px, 2vw, 32px); }
.wk-card__name { font-weight: 500; font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); line-height: 1.02; letter-spacing: -0.04em; }
.wk-card__desc { color: var(--muted); }
.wk-card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.wk-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
@media (max-width: 899px) {
  .wk-hero__text, .wk-hero__devices { grid-column: 1 / -1; }
  .wk-card__media, .wk-card__info { grid-column: 1 / -1; }
  .wk-card__info { padding: 4px 8px 12px; }
}

/* ---------- Case study ---------- */

.cs-hero { padding-top: calc(var(--nav-h) + clamp(16px, 3vh, 32px)); }
.cs-hero__shot { position: relative; aspect-ratio: 16 / 9.4; background: var(--stage); }
.cs-hero__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transform-origin: 50% 0; }
.cs-intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px clamp(16px, 2vw, 32px);
  padding-block: clamp(64px, 8vw, 120px) clamp(48px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
}
.cs-intro h1 { grid-column: 1 / span 5; font-weight: 500; font-size: clamp(2.75rem, 1.5rem + 4vw, 5rem); line-height: 1; letter-spacing: -0.04em; text-wrap: balance; }
.cs-intro__body { grid-column: 7 / -1; display: grid; gap: 40px; }
.cs-intro__body > p { font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.3125rem); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.cs-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cs-meta div { display: grid; gap: 6px; align-content: start; }
.cs-meta dt { color: var(--muted); font-size: 0.9375rem; }
.cs-meta dd { font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.cs-overview { display: grid; gap: 22px; padding-block: clamp(56px, 7vw, 104px) clamp(40px, 5vw, 64px); }
.cs-overview p { max-width: 64rem; font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.3125rem); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.cs-duo { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(16px, 2vw, 28px); }
.cs-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  min-height: clamp(320px, 40vw, 600px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: clamp(40px, 7vw, 120px) 8% 0;
  background: color-mix(in srgb, var(--stage) 24%, #fff);
}
.cs-panel--deep { background: var(--stage); justify-content: flex-start; padding-right: 0; }
.cs-panel .laptop { width: 100%; }
.cs-panel--deep .laptop { width: 128%; flex: none; }
.cs-phones {
  margin-top: clamp(16px, 2vw, 28px);
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--stage);
  padding: clamp(48px, 7vw, 112px) clamp(20px, 8vw, 140px) 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 4vw, 64px);
  align-items: start;
  height: clamp(420px, 52vw, 820px);
}
.cs-phones .phone:nth-child(2) { margin-top: -6%; }
.cs-phones .phone:nth-child(1), .cs-phones .phone:nth-child(3) { margin-top: 12%; }
.cs-scroll {
  margin-top: clamp(16px, 2vw, 28px);
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: #e6e9ee;
  padding: clamp(48px, 6vw, 96px) clamp(16px, 6vw, 120px) 0;
  text-align: center;
}
.cs-scroll__head { display: grid; gap: 16px; justify-items: center; margin-bottom: clamp(32px, 4vw, 56px); }
.cs-scroll__head .lead { margin-inline: auto; }
.cs-scroll .laptop { max-width: 1120px; margin-inline: auto; }
.cs-scroll__screen { aspect-ratio: 16 / 10; }
.cs-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cs-next {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px clamp(16px, 2vw, 32px);
  align-items: center;
  padding: clamp(12px, 1.4vw, 20px);
  background: var(--surface);
  text-decoration: none;
}
.cs-next__text { grid-column: 1 / span 5; display: grid; gap: 10px; padding: clamp(12px, 3vw, 48px); }
.cs-next__text > span:first-child { color: var(--muted); }
.cs-next__text strong { font-weight: 500; font-size: clamp(2rem, 1.4rem + 2vw, 3.5rem); line-height: 1.02; letter-spacing: -0.04em; }
.cs-next__img { grid-column: 6 / -1; aspect-ratio: 16 / 8; border-radius: calc(var(--r-xl) - 8px); overflow: hidden; background: var(--stage); }
.cs-next__img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.1s var(--ease); }
.cs-next:hover .cs-next__img img { transform: scale(1.04); }
@media (max-width: 899px) {
  .cs-intro h1, .cs-intro__body { grid-column: 1 / -1; }
  .cs-meta { grid-template-columns: 1fr 1fr; }
  .cs-duo { grid-template-columns: 1fr; }
  .cs-phones { height: auto; padding-bottom: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-inline: 16px; }
  .cs-next__text, .cs-next__img { grid-column: 1 / -1; }
}

/* ---------- Full preview dialog ---------- */

.pv {
  width: 100%; max-width: none; height: 100%; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(11, 13, 18, 0.94);
  color: var(--on-dark);
}
.pv::backdrop { background: rgba(11, 13, 18, 0.6); }
.pv[open] { display: flex; flex-direction: column; }
@media (prefers-reduced-motion: no-preference) {
  .pv[open] { animation: pvIn 0.45s var(--ease) both; }
  .pv[open] .pv__frame { animation: pvFrame 0.8s var(--ease) both; }
}
@keyframes pvIn { from { opacity: 0; } }
@keyframes pvFrame { from { opacity: 0; transform: translateY(40px) scale(0.98); } }
.pv__bar { display: flex; align-items: center; gap: 12px; padding: 14px var(--gutter); flex-wrap: wrap; }
.pv__title { display: grid; margin-right: auto; min-width: 0; }
.pv__title strong { font-weight: 500; font-size: 1.125rem; letter-spacing: -0.02em; }
.pv__title span { color: var(--on-dark-2); font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv__seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.pv__seg button { height: 38px; padding: 0 16px; border-radius: 999px; font-size: 0.9375rem; font-weight: 500; color: var(--on-dark-2); transition: background-color 0.25s, color 0.25s; }
.pv__seg button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.pv__close { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-dark); }
.pv__close svg { width: 16px; height: 16px; }
.pv__close:hover { background: rgba(255, 255, 255, 0.08); }
.pv .btn { --b-bg: #fff; --b-fg: var(--ink); --b-hover: #e9edf5; --chip-bg: var(--ink); --chip-fg: #fff; }
.pv__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px var(--gutter) 48px; }
.pv__frame { margin-inline: auto; width: min(1240px, 100%); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.8); }
.pv__frame img { width: 100%; display: block; }
.pv__frame.is-mobile { width: min(392px, 100%); border-radius: 38px; border: 10px solid #000; }
.pv__chrome { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: #eef0f3; }
.pv__chrome i { width: 10px; height: 10px; border-radius: 50%; background: #c9ced6; }
.pv__frame.is-mobile .pv__chrome { display: none; }
@media (max-width: 640px) {
  .pv__bar { gap: 10px; }
  .pv__title { width: calc(100% - 58px); margin-right: 0; order: 1; }
  .pv__close { order: 2; }
  .pv__seg { order: 3; }
  .pv .btn { order: 4; }
}

/* ---------- Contact ---------- */

.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px clamp(16px, 2vw, 32px); align-items: start; }
.contact__side { grid-column: 1 / span 5; display: grid; gap: 24px; }
.contact__main { grid-column: 6 / -1; }
.callcard {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-xl);
  background: var(--blue);
  color: #fff;
  padding: clamp(28px, 3.4vw, 48px) clamp(24px, 3vw, 44px) clamp(104px, 9vw, 132px);
  display: grid;
  gap: 18px;
  justify-items: start;
}
.callcard p { color: rgba(255, 255, 255, 0.9); }
.callcard .waves { height: 84px; }
.contact__facts { display: grid; padding: 4px; }
.contact__facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact__facts dt { color: var(--muted); }
.contact__facts dd a { text-decoration: none; font-weight: 500; }
.contact__facts dd a:hover { text-decoration: underline; text-underline-offset: 0.22em; }
.formcard { border-radius: var(--r-xl); background: var(--surface); padding: clamp(24px, 3.4vw, 52px); box-shadow: 0 1px 0 rgba(11, 13, 18, 0.04), 0 40px 80px -48px rgba(11, 13, 18, 0.35); }
.formcard > h2 { margin-bottom: 8px; }
.formcard > p { color: var(--muted); margin-bottom: 30px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.9375rem; font-weight: 500; line-height: 1.3; }
.field label em { font-style: normal; color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #6b7280; }
.field input:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(35, 80, 255, 0.14); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #c0261a; box-shadow: 0 0 0 4px rgba(192, 38, 26, 0.1); }
.field__err { font-size: 0.875rem; color: #b42318; }
.field__err:empty { display: none; }
.form__foot { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__note { font-size: 0.9375rem; color: var(--muted); }
.form__status { margin-top: 16px; font-size: 0.9375rem; }
.form__status:empty { display: none; }
.form__status.is-error { color: #b42318; }
.form-done { display: grid; gap: 16px; justify-items: start; }
.form-done[hidden] { display: none; }
.next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); margin-top: clamp(40px, 5vw, 64px); }
.next li { display: grid; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); align-content: start; }
.next b { font-weight: 500; color: var(--blue-2); font-size: 1.125rem; }
.next p { color: var(--muted); }
@media (max-width: 960px) { .contact__side, .contact__main { grid-column: 1 / -1; } }
@media (max-width: 640px) { .fields, .next { grid-template-columns: 1fr; } }

/* ---------- Small pages ---------- */

.solo { min-height: 100svh; display: grid; align-items: center; padding-block: calc(var(--nav-h) + 48px) 72px; }
.solo__in { display: grid; gap: 28px; justify-items: start; }
.solo__in > * { max-width: 50rem; }

/* ---------- Page transitions (supporting browsers) ---------- */

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: 0.3s var(--ease) both vtOut; }
  ::view-transition-new(root) { animation: 0.55s var(--ease) both vtIn; }
}
@keyframes vtOut { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(16px); } }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Next-project card: the whole card is the link, so its button reacts to the card hover */
.cs-next-link { display: block; text-decoration: none; color: inherit; }
.cs-next-link .btn { justify-self: start; margin-top: 10px; }
.cs-next-link:hover .btn { background: var(--b-hover); }
.cs-next-link:hover .btn__row span { transform: translateY(-100%); }
.cs-next-link:hover .btn__chip { transform: scale(1.08); }
.cs-next-link:hover .btn__chip svg:first-child { transform: translateX(170%); }
.cs-next-link:hover .btn__chip svg + svg { transform: none; }

/* Studio section visual: the work stands in for a portrait */
.person__visual {
  grid-column: 1 / span 5;
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface-2);
  isolation: isolate;
  display: flex;
  align-items: center;
  padding-left: 12%;
}
.person__visual .laptop { width: 130%; flex: none; margin-top: -18%; }
.person__visual .phone { position: absolute; z-index: 2; left: 9%; bottom: 9%; width: 31%; }
@media (max-width: 860px) {
  .person__visual { grid-column: 1 / -1; aspect-ratio: 5 / 4; max-width: none; }
  .person__visual .phone { width: 24%; }
}

/* ---------- Services: four across ---------- */

.services--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.services--3x2 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: clamp(40px, 5vw, 64px); }
.services a.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-weight: 500; color: var(--ink); text-decoration: none; width: fit-content; }
.services a.more svg { width: 16px; height: 16px; color: var(--ink); margin: 0; transition: transform 0.4s var(--ease); }
.services a.more:hover svg { transform: translateX(4px); }
@media (max-width: 1100px) { .services--4, .services--3x2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .services--4, .services--3x2 { grid-template-columns: 1fr; } }

/* ---------- SEO + AI search demos ---------- */

.seo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px clamp(16px, 2vw, 32px); align-items: center; }
.seo__text { grid-column: 1 / span 5; display: grid; gap: 26px; justify-items: start; }
.seo__demos { grid-column: 7 / -1; display: grid; gap: 18px; }
@media (max-width: 960px) { .seo__text, .seo__demos { grid-column: 1 / -1; } }
.seo-demos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); align-items: start; }
@media (max-width: 900px) { .seo-demos { grid-template-columns: 1fr; } }

.demo {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: clamp(16px, 2vw, 24px);
  box-shadow: 0 1px 0 rgba(11, 13, 18, 0.04), 0 30px 60px -40px rgba(11, 13, 18, 0.35);
  overflow: hidden;
}
.demo__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.demo__kind { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 500; }
.demo__kind svg { width: 18px; height: 18px; color: var(--blue); }
.demo__label { font-size: 0.75rem; font-weight: 500; color: var(--muted); padding: 4px 10px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); }
.demo__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.9688rem;
  white-space: nowrap;
  overflow: hidden;
}
.demo__bar svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.demo__caret { width: 1.5px; height: 1.15em; background: var(--ink); flex: none; }
@media (prefers-reduced-motion: no-preference) { .demo__caret { animation: caret 1s steps(1) infinite; } }
@keyframes caret { 50% { opacity: 0; } }

.serp { --row: 124px; position: relative; height: calc(4 * var(--row)); margin-top: 12px; }
.serp li {
  --pos: var(--p0);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(var(--row) - 10px);
  padding: 10px 14px;
  border-radius: 12px;
  display: grid;
  gap: 4px;
  align-content: center;
  transform: translateY(calc(var(--pos) * var(--row)));
  transition: transform 1s var(--ease), background-color 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.is-ranked .serp li { --pos: var(--p1); }
.serp__url { font-size: 0.8125rem; color: var(--muted); }
.serp__title { font-weight: 500; color: #1a3fd6; line-height: 1.3; }
.serp__desc { font-size: 0.875rem; line-height: 1.45; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.serp__skel { display: block; height: 9px; border-radius: 9px; background: var(--surface-2); }
.serp__skel--t { height: 12px; width: 62%; background: #dfe4ec; }
.serp__skel--s { width: 34%; }
.serp li.is-you { padding-right: 96px; }
.is-ranked .serp li.is-you { background: var(--blue-soft); box-shadow: inset 0 0 0 1px rgba(35, 80, 255, 0.22); }
.serp__rank {
  position: absolute;
  right: 12px;
  top: 50%;
  translate: 0 -50%;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  border-radius: 99px;
  padding: 5px 10px;
  opacity: 0;
  scale: 0.8;
  transition: opacity 0.4s var(--ease) 0.7s, scale 0.6s var(--ease) 0.7s;
}
.is-ranked .serp__rank { opacity: 1; scale: 1; }

.ai__msg { display: grid; gap: 8px; padding: 14px 16px; border-radius: 16px; }
.ai__msg + .ai__msg { margin-top: 12px; }
.ai__msg--q { background: var(--bg); margin-left: 12%; }
.ai__msg--a { box-shadow: inset 0 0 0 1px var(--line); }
.ai__who { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 500; color: var(--muted); }
.ai__who svg { width: 16px; height: 16px; color: var(--blue); }
.ai__msg p { font-size: 0.9688rem; line-height: 1.55; }
.ai__msg strong { font-weight: 600; background: var(--blue-soft); padding: 0 4px; border-radius: 4px; }
.ai__src { display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin-top: 4px; padding: 5px 10px; border-radius: 99px; font-size: 0.8125rem; font-weight: 500; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.ai__src svg { width: 14px; height: 14px; }

/* ---------- FAQ ---------- */

.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px clamp(16px, 2vw, 32px); align-items: start; }
.faq__head { grid-column: 1 / span 4; display: grid; gap: 22px; justify-items: start; }
@media (min-width: 961px) { .faq__head { position: sticky; top: calc(var(--nav-h) + 40px); } }
.faq__list { grid-column: 6 / -1; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  font-weight: 500;
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline-offset: 2px; }
.faq__icon {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  flex: none;
  transition: transform 0.5s var(--ease), background-color 0.3s, color 0.3s;
}
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; translate: -50% -50%; border-radius: 2px; }
.faq__icon::after { rotate: 90deg; }
.faq details[open] .faq__icon { transform: rotate(135deg); background: var(--ink); color: #fff; box-shadow: none; }
.faq summary:hover .faq__icon { box-shadow: inset 0 0 0 1px var(--ink); }
.faq__a { padding: 0 64px 26px 0; color: var(--muted); max-width: 46em; text-wrap: pretty; }
@media (max-width: 960px) { .faq__head, .faq__list { grid-column: 1 / -1; } .faq__a { padding-right: 0; } }
@media (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) {
    .faq { interpolate-size: allow-keywords; }
    .faq details::details-content { block-size: 0; overflow: clip; transition: block-size 0.55s var(--ease), content-visibility 0.55s allow-discrete; }
    .faq details[open]::details-content { block-size: auto; }
  }
}

/* ---------- SEO page ---------- */

.steps5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(40px, 5vw, 64px); }
.steps5 li { display: grid; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); align-content: start; }
.steps5 b { font-weight: 500; color: var(--blue-2); font-size: 1.125rem; }
.steps5 h3 { font-weight: 500; font-size: 1.25rem; letter-spacing: -0.02em; }
.steps5 p { color: var(--muted); }
@media (max-width: 1100px) { .steps5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .steps5 { grid-template-columns: 1fr; } }
.shift { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px clamp(16px, 2vw, 32px); }
.shift .fill-text { grid-column: 1 / span 10; }
.included-note {
  margin-top: clamp(48px, 6vw, 80px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(11, 13, 18, 0.04), 0 30px 60px -44px rgba(11, 13, 18, 0.35);
}
.included-note p { max-width: 40em; font-size: 1.125rem; }
.included-note strong { font-weight: 500; }
@media (max-width: 640px) {
  .serp { --row: 146px; }
  .serp li.is-you { padding: 34px 14px 10px; align-content: start; }
  .serp__rank { top: 10px; right: 10px; translate: none; padding: 4px 9px; }
  .serp__desc { -webkit-line-clamp: 1; }
}
