/* Liftup Technologies — dark studio theme.
   Black canvas, condensed uppercase headlines (Anton) over a clean sans
   body (Geist), hairline cards that glow Liftup blue on hover. Motion sticks to opacity and
   transforms so it stays on the compositor. */

:root {
  color-scheme: dark;
  --bg: #050506;
  --bg-alt: #0a0a0c;
  --surface: #0f0f12;
  --surface-2: #16161a;
  --ink: #f4f4f6;
  --body: #a3a3ad;
  --muted: #7d7d88;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #6d84ff;
  --accent-strong: #2440ff;
  --accent-soft: rgba(84, 112, 255, 0.14);
  --good: #7ee2ac;
  --good-soft: rgba(126, 226, 172, 0.1);

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Anton", "Arial Narrow", Impact, sans-serif;

  --r-card: 20px;
  --r-pill: 999px;
  --glow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 24px 70px -24px rgba(36, 64, 255, 0.55);

  --wrap: 1240px;
  --gutter: 24px;
  --header-h: 64px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; background: var(--bg); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  color: var(--body);
  font: 400 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  margin: 0; color: var(--ink); font-family: var(--display); font-weight: 400; line-height: 1.05;
  letter-spacing: .01em; text-transform: uppercase; text-wrap: balance;
}
/* Headings that read as small labels stay in the body sans */
.eyebrow, .spotlight__kicker, .logos__label, .footer-col h2 { font-family: var(--font); text-transform: none; letter-spacing: 0; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent-strong); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; background: #fff; color: #000; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 920px; }
.icon { width: 1em; height: 1em; flex: none; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 22px; padding: 7px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink); font: 500 13px/1.2 var(--font); letter-spacing: 0;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.display {
  font-size: clamp(44px, 6.6vw, 100px);
  line-height: 1;
  letter-spacing: .005em;
}
.display--accents { line-height: 1.24; }
.h2 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.02; letter-spacing: .005em; }
.h3 { font-size: 19px; line-height: 1.15; letter-spacing: .015em; }
.lead { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.7; color: var(--body); }

.section-head { text-align: center; max-width: 780px; margin: 0 auto clamp(40px, 5vw, 64px); }
.section-head .lead { margin-top: 18px; }
.split-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.split-head .h2 { max-width: 720px; }
.split-head .lead { max-width: 440px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  font: 500 15px/1 var(--font); letter-spacing: -0.01em; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn .icon { width: 16px; height: 16px; transition: transform .25s var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn--primary { background: #fff; color: #050506; }
.btn--primary:hover { background: #dfe3ff; }
.btn--ghost,
.btn--white { background: rgba(255, 255, 255, 0.04); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover,
.btn--white:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.3); }
.btn--sm { min-height: 38px; padding: 9px 16px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 500; }
.text-link .icon { width: 15px; height: 15px; transition: transform .2s ease; }
.text-link:hover { color: var(--accent); }
.text-link:hover .icon { transform: translate(2px, -2px); }

/* ---------- Header (floating bar) ---------- */

.site-header {
  position: fixed; top: 14px; left: 50%; z-index: 100;
  width: min(1180px, calc(100% - 28px)); transform: translateX(-50%);
  border-radius: 18px; background: #0c0c0f;
  border: 1px solid var(--line);
}
.site-header::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.9); border: 1px solid var(--line-strong);
  opacity: 0; transition: opacity .25s ease; will-change: opacity;
}
.site-header.is-scrolled::after { opacity: 1; }
.site-header .wrap { display: flex; align-items: center; height: var(--header-h); gap: 20px; padding-inline: 18px 12px; max-width: none; }

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 26px; width: auto; }

.nav { margin-inline: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__trigger,
.nav__link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 13px; border: 0; background: none; border-radius: 10px;
  color: var(--body); font: 400 14.5px/1 var(--font);
  transition: color .2s ease, background-color .2s ease;
}
.nav__trigger .icon { width: 13px; height: 13px; transition: transform .2s ease; }
.nav__trigger:hover,
.nav__link:hover,
.nav__item.is-open > .nav__trigger,
.nav__trigger.is-current,
.nav__link.is-current { color: var(--ink); }
.nav__item.is-open > .nav__trigger .icon { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 16px); left: 50%;
  min-width: 290px; padding: 8px;
  background: #111114; border: 1px solid var(--line-strong); border-radius: 16px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.dropdown::before { content: ""; position: absolute; inset: -18px 0 auto; height: 18px; }
.nav__item.is-open > .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.dropdown--wide { min-width: 540px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.dropdown a {
  display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: var(--ink); font: 500 14px/1.35 var(--font);
  transition: background-color .15s ease;
}
.dropdown a:hover { background: rgba(255, 255, 255, 0.05); }
.dropdown a small { display: block; margin-top: 2px; color: var(--muted); font: 400 12.5px/1.4 var(--font); }
.dropdown .dd-icon {
  display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent);
}
.dropdown .dd-icon .icon { width: 16px; height: 16px; }
.dropdown .dd-all { grid-column: 1 / -1; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; color: var(--accent); align-items: center; }

.header-cta { flex: none; }
.menu-toggle {
  display: none; place-items: center; width: 42px; height: 42px; border: 0;
  border-radius: 12px; background: #fff; color: #050506;
}
.menu-toggle .icon { width: 20px; height: 20px; }

.drawer {
  position: fixed; inset: 0; z-index: 99; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); padding: 100px var(--gutter) 40px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary,
.drawer .drawer__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 2px; list-style: none; cursor: pointer;
  color: var(--ink); font: 500 22px/1.2 var(--font); letter-spacing: -0.02em;
}
.drawer .drawer__link { border-bottom: 1px solid var(--line); }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary .icon { width: 18px; height: 18px; transition: transform .2s ease; }
.drawer details[open] summary .icon { transform: rotate(180deg); }
.drawer details ul { padding: 0 0 14px; }
.drawer details a { display: block; padding: 9px 2px; color: var(--body); font-size: 16px; }
.drawer .btn { width: 100%; margin-top: 24px; }
body.menu-open { overflow: hidden; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(80px, 10vw, 140px); background: transparent; position: relative; }
.section--white { background: rgba(255, 255, 255, 0.015); }
.section-cta { margin-top: clamp(40px, 5vw, 56px); text-align: center; }

/* ---------- Home: hero spotlight ----------
   A deck of project cards in 3D. main.js gives every card a slot (-2…2)
   relative to the active one; the slot decides where CSS puts it. */

.spotlight {
  --cw: min(56vw, 84vh, 940px);     /* active card width */
  --cy: 44%;                        /* deck centre, from the top */
  position: relative; isolation: isolate; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 640px; max-height: 1100px;
  color: #fff;
}
.spotlight__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #0b0b10; }
/* The incoming tint fades in on top; the outgoing one drops out once covered */
.spotlight__tint {
  position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(120% 80% at 50% 100%, var(--c2), transparent 70%), linear-gradient(180deg, var(--c1) 10%, var(--c2));
  transition: opacity 0s linear 1.2s;
}
.spotlight__tint.is-active { z-index: 1; opacity: 1; transition: opacity 1.2s ease; }
.spotlight__lines {
  position: absolute; z-index: 2; left: 56%; top: 30%;
  width: 190vmax; height: 190vmax; max-width: none; margin: -95vmax 0 0 -95vmax;
  opacity: .28; rotate: var(--spin, 0deg); transition: rotate 1.6s var(--ease-expo);
}
/* Shade under the copy, and a fade into the page below */
.spotlight::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(0deg, var(--bg), rgba(5, 5, 6, 0) 150px),
    radial-gradient(75% 60% at 0% 100%, rgba(0, 0, 0, .6), transparent 70%),
    linear-gradient(180deg, rgba(0, 0, 0, .3), transparent 22%);
}

.spotlight__scene { position: absolute; inset: 0; perspective: 1300px; perspective-origin: 50% var(--cy); touch-action: pan-y; }
.spotlight__deck {
  position: absolute; left: calc(50% - var(--cw) / 2); top: calc(var(--cy) - var(--cw) * .3125);
  width: var(--cw); height: calc(var(--cw) * .625);
  transform-style: preserve-3d; transform: rotateZ(-3deg) translate3d(0, 0, 0) rotateY(0deg);
}
.spotlight__card {
  --x: 0; --z: 0; --ry: -7deg;
  position: absolute; inset: 0; overflow: hidden; border-radius: 18px; background: #111;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .75);
  transform: translate3d(calc(var(--cw) * var(--x)), 0, calc(var(--cw) * var(--z))) rotateY(var(--ry));
  transition: transform 1.1s var(--ease-expo), opacity .6s ease, visibility 0s;
}
.spotlight__card img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: scale .8s var(--ease-out); }
.spotlight__card::after { content: ""; position: absolute; inset: 0; background: #000; opacity: .5; pointer-events: none; transition: opacity .8s ease; }
.spotlight__card[data-slot="0"]::after { opacity: 0; }
.spotlight__card[data-slot="0"]:hover img { scale: 1.03; }
.spotlight__card[data-slot="1"] { --x: .97; --z: .2; --ry: -42deg; }
.spotlight__card[data-slot="-1"] { --x: -.97; --z: .2; --ry: 42deg; }
.spotlight__card[data-slot="2"] { --x: 1.55; --z: .5; --ry: -62deg; }
.spotlight__card[data-slot="-2"] { --x: -1.55; --z: .5; --ry: 62deg; }
.spotlight__card[data-slot="2"],
.spotlight__card[data-slot="-2"] {
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform 1.1s var(--ease-expo), opacity .6s ease, visibility 0s linear .6s;
}

.spotlight__info {
  position: absolute; left: 0; right: 0; bottom: clamp(36px, 6vh, 72px); z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  pointer-events: none;
}
.spotlight__info a, .spotlight__info button { pointer-events: auto; }
.spotlight__main { width: min(800px, 64vw); }
.spotlight__top { position: absolute; left: 0; right: 0; top: calc(var(--header-h) + 38px); z-index: 2; }
.spotlight__kicker { display: flex; align-items: center; gap: 9px; margin: 0; color: rgba(255, 255, 255, .78); font: 500 13px/1.3 var(--font); letter-spacing: 0; }
.spotlight__kicker .dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; }
.spotlight__copy { display: grid; align-items: end; text-shadow: 0 1px 14px rgba(0, 0, 0, .4); }
.spotlight__item { grid-area: 1 / 1; visibility: hidden; transition: visibility 0s linear .5s; }
.spotlight__item.is-active { visibility: visible; transition-delay: 0s; }
.spotlight__item > :not(.spotlight__title) { opacity: 0; translate: 0 14px; transition: opacity .3s ease, translate .4s ease; }
.spotlight__item.is-active > :not(.spotlight__title) { opacity: 1; translate: none; transition: opacity .7s ease .5s, translate 1s var(--ease-expo) .5s; }
.spotlight__item.is-active > .spotlight__desc { transition-delay: .58s; }
.spotlight__item.is-active > .spotlight__cta { transition-delay: .66s; }
.spotlight__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font: 500 12px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; }
.spotlight__count { font-variant-numeric: tabular-nums; }
.spotlight__tag { padding: 6px 10px; border-radius: 6px; background: rgba(8, 8, 12, .62); border: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .9); letter-spacing: .08em; }
.spotlight__title {
  overflow: hidden; padding-bottom: .02em;
  color: #fff; font: 400 clamp(48px, min(6.6vw, 11.5vh), 116px)/.94 var(--display);
  letter-spacing: .005em; text-transform: uppercase;
}
.spotlight__title span { display: block; translate: 0 105%; transition: translate .45s cubic-bezier(.5, 0, .75, 0); }
.spotlight__item.is-active .spotlight__title span { translate: none; transition: translate 1.1s var(--ease-expo) .38s; }
.spotlight__desc { max-width: 430px; margin-top: 16px; color: rgba(255, 255, 255, .84); font: 500 13px/1.6 var(--font); letter-spacing: .06em; text-transform: uppercase; }
.spotlight__desc b { color: #b9f5d0; font-weight: 600; }
.spotlight__cta { margin-top: 24px; }

.spotlight__side { display: none; flex: none; justify-items: end; gap: 14px; }
.js .spotlight__side { display: grid; }
.spotlight__all { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .82); font: 500 12px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; }
.spotlight__all:hover { color: #fff; }
.spotlight__all .icon { width: 9px; height: 9px; }
.spotlight__thumbs { display: flex; gap: 8px; }
.spotlight__thumb {
  width: 54px; height: 54px; padding: 0; overflow: hidden;
  border: 2px solid transparent; border-radius: 10px; background: #000; opacity: .55;
  transition: opacity .3s ease, border-color .3s ease, transform .4s var(--ease-expo);
}
.spotlight__thumb img { width: 100%; height: 100%; object-fit: cover; }
.spotlight__thumb:hover { opacity: 1; }
.spotlight__thumb[aria-pressed="true"] { opacity: 1; border-color: #fff; transform: translateY(-4px); }

.spotlight__nav { position: absolute; right: clamp(16px, 2.6vw, 40px); top: 50%; z-index: 2; display: none; flex-direction: column; gap: 14px; translate: 0 -50%; }
.js .spotlight__nav { display: flex; }
.spotlight__btn {
  display: grid; place-items: center; width: 52px; height: 52px; padding: 0;
  border: 1.5px solid rgba(255, 255, 255, .75); border-radius: 50%; background: rgba(0, 0, 0, .18); color: #fff;
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .2s ease;
}
.spotlight__btn .icon { width: 13px; height: 13px; }
.spotlight__btn--prev .icon { rotate: 180deg; }
.spotlight__btn:hover { background: var(--accent-strong); border-color: #fff; box-shadow: 0 0 0 4px rgba(36, 64, 255, .35), 0 0 32px rgba(36, 64, 255, .85); }
.spotlight__btn:active { transform: scale(.93); }

/* ---------- Home: client logos ---------- */

.logos { padding: clamp(56px, 6vw, 84px) 0; border-block: 1px solid var(--line); }
.logos__label { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 30px; }
.logo-wall { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logo-wall li { display: grid; place-items: center; height: 110px; padding: 20px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-wall img { max-height: 42px; width: auto; max-width: 100%; object-fit: contain; opacity: .88; transition: opacity .25s ease, scale .35s var(--ease-out); }
.logo-wall li:hover img { opacity: 1; scale: 1.06; }
/* Stacked logos (icon above the name) need more height to read at the same size */
.logo-wall li.is-big img, .logo-grid li.is-big img { max-height: 70px; }

/* ---------- Home: intro with tilted project wall ---------- */

.intro { position: relative; display: flex; align-items: center; min-height: 100vh; padding: clamp(100px, 12vw, 160px) 0; overflow: hidden; }
.intro__wall {
  position: absolute; top: 0; bottom: 0; left: 47%; right: 0; perspective: 1500px; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%), linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 30%), linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
  mask-composite: intersect;
}
.intro__plane {
  position: absolute; top: 50%; left: 4%; display: grid; gap: 14px;
  transform: translateY(-50%) rotateY(-18deg) rotateX(7deg) rotateZ(-3deg); transform-origin: left center;
}
.intro__row { display: flex; gap: 14px; }
.intro__row:nth-child(2) { margin-left: -60px; }
.intro__row img {
  flex: none; width: clamp(220px, 21vw, 330px); aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface);
}
.intro__inner { position: relative; z-index: 1; }
.intro__copy { max-width: 520px; }
.intro__copy .lead { margin: 20px 0 30px; }
.intro__copy .btn-row { justify-content: flex-start; }
.intro .stats { margin-top: clamp(48px, 6vw, 72px); max-width: 540px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(110px, 1fr)); gap: 0; margin: 0; }
.stat { padding: 0 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat strong { display: block; color: var(--ink); font: 400 clamp(36px, 3.6vw, 54px)/1 var(--display); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }

/* ---------- Home: services ---------- */

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc {
  position: relative; display: flex; flex-direction: column;
  padding: 28px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .25s ease, transform .3s var(--ease-out);
}
.svc::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: var(--glow); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.svc:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.svc:hover::after { opacity: 1; }
.svc__icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 26px;
  border-radius: 14px; color: #fff;
  background: linear-gradient(150deg, rgba(109, 132, 255, 0.5), rgba(36, 64, 255, 0.15));
  border: 1px solid rgba(109, 132, 255, 0.4);
}
.svc__icon .icon { width: 22px; height: 22px; }
.svc h3 { font-size: 21px; }
.svc p { margin-top: 10px; font-size: 15px; }
.svc__list { margin: 20px 0 26px; display: grid; gap: 8px; }
.svc__list li { display: flex; gap: 10px; color: var(--ink); font-size: 14.5px; }
.svc__list .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--accent); }
.svc__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.svc__foot b { color: var(--ink); font-weight: 500; }
.svc__arrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--ink); transition: background-color .25s ease, color .25s ease; }
.svc__arrow .icon { width: 15px; height: 15px; }
.svc:hover .svc__arrow { background: #fff; color: #050506; }

.included { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.included li { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border-radius: 16px; border: 1px dashed var(--line-strong); }
.included .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }
.included strong { display: block; color: var(--ink); font-weight: 500; font-size: 15px; }
.included span { display: block; font-size: 13.5px; color: var(--muted); }

/* ---------- Keyword ticker ---------- */

.ticker { overflow: hidden; padding: 26px 0; border-block: 1px solid var(--line); background: var(--bg-alt); }
.ticker__track { display: flex; width: max-content; animation: tick 60s linear infinite; }
.ticker__set { display: flex; align-items: center; gap: 36px; padding-right: 36px; }
.ticker__set span { color: var(--ink); font: 400 clamp(28px, 3.2vw, 48px)/1.1 var(--display); letter-spacing: .01em; text-transform: uppercase; white-space: nowrap; }
.ticker__set span:nth-child(4n + 3) { color: var(--accent); }
.ticker__set i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); flex: none; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Process stages ---------- */

.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stage { position: relative; padding: 30px 28px 32px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.stage::before {
  content: ""; position: absolute; right: -30%; bottom: -60%; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 64, 255, 0.28), transparent 70%); pointer-events: none;
}
.stage__num { display: block; margin-bottom: 70px; font-family: var(--display); font-size: 64px; line-height: .9; color: var(--accent); }
.stage h3 { font-size: 23px; }
.stage p { margin-top: 10px; font-size: 15px; }

/* ---------- Pricing ---------- */

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 32px 30px;
  border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line);
}
.plan--featured { border-color: rgba(109, 132, 255, 0.5); background: linear-gradient(180deg, rgba(36, 64, 255, 0.14), rgba(36, 64, 255, 0) 45%), var(--surface); box-shadow: 0 30px 90px -40px rgba(36, 64, 255, 0.8); }
.plan__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.plan__icon .icon { width: 20px; height: 20px; }
.plan h3 { font-size: 19px; }
.plan__ideal { margin-top: 10px; font-size: 14.5px; min-height: 3.3em; }
.plan__price { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 6px; color: var(--ink); font: 400 clamp(40px, 4vw, 56px)/1 var(--display); letter-spacing: .01em; }
.plan__price small { color: var(--muted); font-size: 14px; font-weight: 400; letter-spacing: 0; }
.plan__note { color: var(--muted); font-size: 13px; }
.plan .checklist { margin: 24px 0 30px; flex: 1; gap: 0; }
.plan .checklist li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.plan > .btn { width: 100%; }
.plan--featured > .btn { background: #fff; color: #050506; border-color: #fff; }
.pricing-note { margin-top: 28px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- Cards (inner pages) ---------- */

.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); transition: border-color .2s ease, transform .25s var(--ease-out); }
a.card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
a.card::after,
a.frame::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; box-shadow: var(--glow); opacity: 0; transition: opacity .3s ease; }
a.card:hover::after,
a.frame:hover::after { opacity: 1; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.feature { display: flex; gap: 20px; padding: 30px; }
.feature__icon {
  display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(150deg, rgba(109, 132, 255, 0.45), rgba(36, 64, 255, 0.12));
  border: 1px solid rgba(109, 132, 255, 0.35); color: #fff;
}
.feature__icon .icon { width: 21px; height: 21px; transition: transform .4s var(--ease-out); }
a.feature:hover .feature__icon .icon { transform: rotate(-8deg) scale(1.08); }
.feature h3 { margin-bottom: 8px; }
.feature p { font-size: 15px; }
.feature__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 16px; font-size: 14px; }
.feature--stack { flex-direction: column; gap: 18px; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--ink); font: 500 13px/1.2 var(--font); }
.chip--result { background: var(--good-soft); border-color: rgba(126, 226, 172, 0.2); color: var(--good); }
.chip--result .icon { width: 14px; height: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* Showcase rows (service pages: related work) */
.showcase { display: grid; gap: clamp(64px, 8vw, 110px); }
.showcase__row { display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: clamp(36px, 6vw, 90px); }
.showcase__row:nth-child(even) .showcase__media { order: -1; }
.showcase__client { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; color: var(--accent); font-size: 14.5px; font-weight: 500; }
.showcase__client .icon { width: 15px; height: 15px; }
.showcase__statement { color: var(--ink); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.4; letter-spacing: -0.025em; }
.showcase__row .chips { margin-top: 22px; }
.showcase__credit { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.showcase__logo { display: grid; place-items: center; min-width: 52px; height: 48px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); }
.showcase__logo img { height: 20px; width: auto; max-width: 104px; object-fit: contain; }
.showcase__credit strong { display: block; color: var(--ink); font-weight: 500; }
.showcase__credit span { display: block; color: var(--muted); font-size: 14px; }

.frame { position: relative; display: block; padding: 10px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 24px; transition: transform .3s var(--ease-out); }
.frame img { width: 100%; aspect-ratio: 16 / 10.4; object-fit: cover; background: var(--bg-alt); }
a.frame:hover { transform: translateY(-4px); }
.frame--wide img { aspect-ratio: 16 / 9; }
.frame--natural { width: fit-content; max-width: min(100%, 1100px); margin-inline: auto; }
.frame--natural img { aspect-ratio: auto; width: auto; max-width: 100%; }
.frame__clip { display: block; overflow: hidden; border-radius: 16px; isolation: isolate; }
.frame__clip img { scale: var(--ps, 1); transition: scale 1.6s var(--ease-expo); }
.frame__clip img[data-parallax] { --ps: 1.1; }

/* ---------- Inner page hero ---------- */

.page-hero { position: relative; padding: clamp(150px, 15vw, 190px) 0 clamp(56px, 6vw, 80px); text-align: center; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(55% 60% at 50% 0%, rgba(36, 64, 255, 0.28), transparent 70%); }
.page-hero > * { position: relative; }
.page-hero .display { max-width: 1000px; margin: 0 auto 22px; font-size: clamp(40px, 5.6vw, 84px); }
.page-hero .lead { max-width: 700px; margin: 0 auto; }
.page-hero .btn-row { margin-top: 32px; }
.page-hero .chips { justify-content: center; margin-top: 26px; }
.breadcrumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; color: var(--muted); font-size: 13.5px; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs span[aria-hidden] { opacity: .5; }
.page-media { padding-bottom: clamp(56px, 7vw, 96px); }
.page-media .frame { max-width: 1100px; margin-inline: auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.split--top { align-items: start; }
.prose > * + * { margin-top: 18px; }
.prose .eyebrow { margin-bottom: 4px; }

.checklist { display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); line-height: 1.55; }
.checklist .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }

.steps { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 16px; }
.step { padding: 28px 26px 30px; }
.step__num { display: block; margin-bottom: 30px; font-family: var(--display); font-size: 46px; line-height: 1; color: var(--accent); }
.step h3 { margin-bottom: 8px; }
.step p { font-size: 15px; }

/* Work index */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 44px; }
.filter { padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: transparent; color: var(--body); font-size: 14.5px; transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.filter:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.3); }
.filter[aria-pressed="true"] { background: #fff; border-color: #fff; color: #050506; }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.work-grid--3 { grid-template-columns: repeat(3, 1fr); } /* homepage: selected work */
.work-grid--3 .work-card h3 { font-size: 21px; }
.work-card { display: flex; flex-direction: column; padding: 10px 10px 24px; }
.work-card__img { aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--bg-alt); }
.work-card__img img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease-out); }
.work-card:hover .work-card__img img { scale: 1.07; }
.work-card__body { padding: 20px 12px 0; }
.work-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.work-card__tag { color: var(--muted); font-size: 13.5px; }
.work-card h3 { font-size: 24px; }
.work-card p { margin-top: 4px; font-size: 15px; }
.work-card .chips { margin-top: 16px; }
.work-card .text-link .icon { transition: transform .25s var(--ease-out); }
.work-card:hover .text-link .icon { transform: translate(3px, -3px); }
.work-card[hidden] { display: none; }

/* Case study */
.meta-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); }
.meta-grid > div { padding: 20px 24px; }
.meta-grid > div + div { border-left: 1px solid var(--line); }
.meta-grid dt { color: var(--muted); font-size: 13px; }
.meta-grid dd { margin: 4px 0 0; color: var(--ink); font-weight: 500; }
.result-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.result-stat { padding: 28px; }
.result-stat strong { display: block; color: var(--ink); font: 400 54px/1 var(--display); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.result-stat span { display: block; margin-top: 10px; color: var(--body); font-size: 15px; }
.result-stat--text strong { font-size: 32px; line-height: 1.15; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager a { display: flex; flex-direction: column; gap: 6px; padding: 24px 28px; }
.pager a:last-child { text-align: right; align-items: flex-end; }
.pager small { color: var(--muted); font-size: 13.5px; }
.pager strong { color: var(--ink); font: 400 21px/1.1 var(--display); letter-spacing: .01em; text-transform: uppercase; }

/* Team & clients */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.member { padding: 10px 10px 22px; text-align: center; }
.member img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: center 25%; border-radius: 14px; filter: grayscale(.25); }
.member h3 { margin-top: 18px; font-size: 21px; }
.member p { margin-top: 2px; color: var(--muted); font-size: 14.5px; }
.logo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.logo-grid li { display: grid; place-items: center; height: 104px; padding: 18px 22px; }
.logo-grid img { max-height: 46px; width: auto; max-width: 100%; object-fit: contain; opacity: .88; transition: opacity .25s ease, scale .35s var(--ease-out); }
.logo-grid li:hover img { opacity: 1; scale: 1.06; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 20px; align-items: start; }
.form-card { padding: clamp(26px, 4vw, 42px); }
.form-card h2 { font-size: 30px; margin-bottom: 8px; }
.form-card > p { margin-bottom: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { color: var(--ink); font-size: 14px; font-weight: 500; }
.field label span { color: var(--muted); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: #0a0a0d; color: var(--ink); font: 400 15.5px/1.4 var(--font);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field select {
  appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #5c5c66; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.form-actions p { color: var(--muted); font-size: 14px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--good-soft); color: var(--good); font-size: 15px; }
.form-status[hidden] { display: none; }
.contact-list { display: grid; gap: 12px; }
/* Step form: one question at a time (main.js adds .is-stepped; without
   JavaScript every step shows as one long form) */
/* Anti-spam field: off screen for people, still filled in by bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.step-form__top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; color: var(--muted); font-size: 13.5px; }
.step-form__top [data-step-label] { color: var(--ink); font-variant-numeric: tabular-nums; }
.step-form__progress { height: 3px; margin-bottom: 30px; overflow: hidden; border-radius: 3px; background: var(--line); }
.step-form__progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(.2); transform-origin: left; transition: transform .6s var(--ease-expo); }
.step { min-width: 0; margin: 0; padding: 0; border: 0; }
.step + .step { margin-top: 40px; }
.is-stepped .step + .step { margin-top: 0; }
.is-stepped .step:not([hidden]) { animation: step-in .5s var(--ease-expo) both; }
@keyframes step-in { from { opacity: 0; transform: translateX(18px); } }
.step legend { padding: 0; color: var(--ink); font: 400 clamp(26px, 2.6vw, 34px)/1.05 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.step__hint { margin: 8px 0 22px; color: var(--muted); font-size: 15px; }
.step__error { margin-top: 12px; color: #ff9d9d; font-size: 14px; }
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choice {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 12px 14px 12px 16px;
  border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(255, 255, 255, .02);
  color: var(--ink); font-size: 15.5px; font-weight: 500; line-height: 1.3; cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, transform .15s ease;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:hover { border-color: rgba(255, 255, 255, .34); }
.choice:active { transform: scale(.985); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice__icon { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.choice__icon .icon { width: 17px; height: 17px; }
.choice__check { display: grid; flex: none; place-items: center; width: 22px; height: 22px; margin-left: auto; border: 1.5px solid var(--line-strong); border-radius: 50%; color: transparent; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.choice__check .icon { width: 13px; height: 13px; stroke-width: 3; }
.choice:has(input:checked) .choice__check { border-color: var(--accent); background: var(--accent); color: #fff; }
.step-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.step-form__actions [data-next], .step-form__actions [data-send] { margin-left: auto; }
.step-form__actions [hidden], .step-form__actions[hidden] { display: none; }
.icon--back { rotate: 180deg; }
.form-done { padding: 12px 0 4px; text-align: center; }
.form-done [hidden] { display: none !important; }
.form-done:focus { outline: none; }
.form-done:not([hidden]) { animation: rise .6s var(--ease-expo) both; }
.form-done__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px; border-radius: 50%; background: var(--good-soft); color: var(--good); }
.form-done__icon .icon { width: 30px; height: 30px; stroke-width: 2.5; }
.form-done h2 { margin-bottom: 12px; font-size: clamp(30px, 3vw, 40px); }
.form-done p { max-width: 460px; margin: 0 auto 22px; }
.form-done strong { color: var(--ink); }

.contact-item { display: flex; gap: 16px; padding: 22px; }
.contact-item h3 { font-size: 16px; margin-bottom: 4px; }
.contact-item a,
.contact-item p { display: block; color: var(--body); font-size: 15px; line-height: 1.6; }
.contact-item a:hover { color: var(--ink); }
.contact-item .socials a { display: grid; color: var(--ink); line-height: 1; }

/* Legal */
.legal { max-width: 800px; margin-inline: auto; }
.legal h2 { font-size: 24px; margin: 44px 0 12px; }
.legal h3 { font-size: 18px; margin: 28px 0 10px; }
.legal p + p { margin-top: 14px; }
.legal ul { list-style: disc; padding-left: 22px; margin: 12px 0; display: grid; gap: 6px; }
.legal a { color: var(--accent); word-break: break-word; }

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

.faq { display: grid; gap: 10px; max-width: 880px; margin-inline: auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s ease; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 24px; cursor: pointer; list-style: none;
  color: var(--ink); font-size: 17px; font-weight: 500; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease-out), color .2s ease; }
.faq details[open] summary .icon { transform: rotate(45deg); color: var(--accent); }
.faq .faq__a { padding: 0 24px 22px; }
.faq .faq__a p + p { margin-top: 12px; }
.faq .faq__a a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.faq-split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.faq-split .faq { max-width: none; margin: 0; }
.faq-split__intro { position: sticky; top: 120px; }
.faq-split__intro .lead { margin: 18px 0 28px; }
.faq-split__intro .btn-row { justify-content: flex-start; }

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

.site-footer { position: relative; overflow: hidden; }
.cta-final { position: relative; padding: clamp(110px, 13vw, 180px) 0; text-align: center; border-top: 1px solid var(--line); }
.cta-final::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: min(1100px, 120vw); aspect-ratio: 2 / 1; translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(36, 64, 255, 0.42), rgba(36, 64, 255, 0.08) 60%, transparent);
  pointer-events: none;
}
.cta-final > * { position: relative; }
.cta-final h2 { max-width: 1000px; margin: 0 auto 22px; font-size: clamp(44px, 7vw, 108px); line-height: .98; }
.cta-final .lead { max-width: 560px; margin: 0 auto 34px; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr 1fr; gap: 40px; padding: clamp(56px, 6vw, 80px) 0 clamp(40px, 5vw, 56px); border-top: 1px solid var(--line); }
.footer-brand img { height: 30px; width: auto; margin-bottom: 22px; }
.footer-about { max-width: 360px; color: var(--body); font-size: 15px; line-height: 1.65; }
.socials { display: flex; gap: 8px; margin-top: 22px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--ink); transition: background-color .2s ease, color .2s ease; }
.socials a:hover { background: #fff; color: #050506; }
.socials .icon { width: 17px; height: 17px; }
.footer-col h2 { color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col li a { display: inline-flex; align-items: center; gap: 8px; padding: 5px 0; color: var(--ink); font-size: 15px; transition: color .15s ease; }
.footer-col li a .icon { display: none; }
.footer-col li a:hover { color: var(--accent); }
.footer-col li .footer-col__cta { margin-top: 6px; color: var(--accent); font-weight: 500; }
.footer-col li .footer-col__cta .icon { display: block; width: 15px; height: 15px; transition: transform .2s ease; }
.footer-col li .footer-col__cta:hover .icon { transform: translateX(3px); }
.offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 32px 0; border-top: 1px solid var(--line); }
.office h3 { color: var(--ink); font-size: 15px; margin-bottom: 8px; letter-spacing: .03em; }
.office p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.office .tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; vertical-align: 2px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-bottom a:hover { color: var(--ink); }
.wordmark {
  margin: 0 0 -0.03em; padding-inline: var(--gutter); text-align: center; user-select: none;
  font: 400 clamp(110px, 30vw, 460px)/.8 var(--display); letter-spacing: .01em; text-transform: uppercase;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02) 75%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

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

.gallery + .gallery { margin-top: clamp(56px, 6vw, 88px); }
.gallery__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 20px; }
.gallery__head .h3 { font-size: clamp(22px, 2vw, 28px); }
.gallery-grid { display: grid; gap: 16px; align-items: start; }
.gallery-grid--2 { grid-template-columns: repeat(2, 1fr); }
.gallery-grid--3 { grid-template-columns: repeat(3, 1fr); }
.gallery-grid--4 { grid-template-columns: repeat(4, 1fr); }
.gallery-grid--4 .shot { padding: 6px; border-radius: 14px; }
.gallery-grid--4 .shot img { border-radius: 9px; }
.gallery-grid--insta { grid-template-columns: 2.4fr 1fr; }
.shot { margin: 0; padding: 8px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; }
.shot img { width: 100%; height: auto; border-radius: 12px; background: var(--bg-alt); }
.shot figcaption { padding: 10px 6px 2px; color: var(--muted); font-size: 13.5px; }
.scroll-frame { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface); }
.scroll-frame__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.scroll-frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a2a31; }
.scroll-frame__bar span { margin-left: auto; color: var(--muted); font-size: 13px; }
.scroll-frame__view { height: min(75vh, 720px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.scroll-frame__view img { display: block; width: 100%; height: auto; }
.scroll-frame__view:focus-visible { outline-offset: -3px; }
.gallery__note { margin-top: 12px; color: var(--muted); font-size: 13.5px; text-align: center; }

/* ---------- Blog ---------- */

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-card__img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-alt); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: scale .6s var(--ease-out); }
.post-card:hover .post-card__img img { scale: 1.07; }
.post-card__topic {
  position: absolute; left: 14px; top: 14px; padding: 6px 11px; border-radius: 8px;
  background: rgba(8, 8, 12, .78); border: 1px solid rgba(255, 255, 255, .14);
  color: #fff; font: 500 12px/1 var(--font); letter-spacing: .1em; text-transform: uppercase;
}
.post-card__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 22px 24px 26px; }
.post-card__meta { color: var(--muted); font-size: 13px; }
.post-card h2, .post-card h3 { font-size: 21px; line-height: 1.12; }
.post-card__excerpt { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; color: var(--body); font-size: 15px; line-height: 1.6; }
.post-card .text-link { margin-top: auto; padding-top: 6px; font-size: 14.5px; }
.post-card:hover .text-link { color: var(--accent); }
.post-card:hover .text-link .icon { transform: translate(2px, -2px); }
/* Newest article: a wide card across the top of the list */
.post-card--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; }
.post-card--feature .post-card__img { aspect-ratio: auto; min-height: 340px; }
.post-card--feature .post-card__topic { left: 20px; top: 20px; }
.post-card--feature .post-card__body { justify-content: center; gap: 14px; padding: clamp(28px, 4vw, 52px); }
.post-card--feature h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.04; }
.post-card--feature .post-card__excerpt { font-size: 16.5px; -webkit-line-clamp: 4; }
.post-card--feature .text-link { margin-top: 8px; }

.page-hero--post .display { max-width: 980px; font-size: clamp(34px, 4.6vw, 68px); }
.page-hero--post .lead { max-width: 720px; }
.post-section { padding-top: clamp(24px, 4vw, 48px); }
.post-cover { padding-bottom: 0; }
.post-body { max-width: 740px; margin-inline: auto; color: var(--body); font-size: 17.5px; line-height: 1.78; }
.post-body > * + * { margin-top: 1.1em; }
.post-body > :first-child { margin-top: 0; }
.post-body h2 { margin-top: 2em; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; }
.post-body h3 { margin-top: 1.7em; font-size: 22px; line-height: 1.15; }
.post-body h4 { margin-top: 1.5em; font-size: 18px; }
.post-body h2 + *, .post-body h3 + *, .post-body h4 + * { margin-top: .6em; }
.post-body strong { color: var(--ink); font-weight: 600; }
.post-body a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; word-break: break-word; }
.post-body a:hover { color: var(--ink); }
.post-body ul, .post-body ol { display: grid; gap: .45em; padding-left: 1.3em; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li::marker { color: var(--accent); }
.post-body blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--accent); color: var(--ink); }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.2em; }
.post-body img { width: 100%; height: auto; margin-block: 1.8em; border-radius: 16px; border: 1px solid var(--line); }
.post-body table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.post-body th, .post-body td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.post-body th { color: var(--ink); background: var(--surface); }
.post-body > p:first-child { color: var(--ink); font-size: 19px; }

/* ---------- Motion ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes word-up { from { transform: translateY(110%); } to { transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes dd-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes num-pop { 0% { opacity: 0; transform: scale(.4); } 70% { transform: scale(1.1); } 100% { opacity: 1; transform: none; } }
@keyframes parallax { from { translate: 0 -4%; } to { translate: 0 4%; } }

/* Entrance: copy rises in order; headline words slide up out of a mask */
.page-hero .wrap > * { animation: rise .9s var(--ease-expo) both; }
.page-hero .wrap > :nth-child(2) { animation-delay: 60ms; }
.page-hero .wrap > :nth-child(3) { animation-delay: 360ms; }
.page-hero .wrap > :nth-child(4) { animation-delay: 440ms; }
.page-hero .wrap > :nth-child(5) { animation-delay: 520ms; }
.page-hero .wrap > .display { animation: none; }

/* Hero spotlight: the deck swings in (transform only, so it stays 3D), the copy rises */
@keyframes deck-in { from { transform: rotateZ(-8deg) translate3d(14%, 4%, -520px) rotateY(-24deg); } }
@keyframes fade-in { from { opacity: 0; } }
.spotlight__scene { animation: fade-in 1s ease both; }
.spotlight__deck { animation: deck-in 1.8s var(--ease-expo) both; }
.spotlight__top, .spotlight__side, .spotlight__nav { animation: rise 1s var(--ease-expo) .5s both; }
.spotlight__nav { animation-name: fade-in; }

.display .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .16em 0 .14em; margin: -.16em 0 -.14em; } /* top room keeps accents like Ā visible */
.display .w > span { display: inline-block; animation: word-up 1s var(--ease-expo) both; animation-delay: calc(100ms + var(--i) * 45ms); }

/* Scroll reveals (main.js adds .is-in, staggers grid siblings, then removes the hooks) */
.js [data-reveal] {
  opacity: 0;
  transform: translate(var(--rx, 0), var(--ry, 28px)) scale(var(--rs, 1));
  transition: opacity .8s ease var(--rd, 0ms), transform 1s var(--ease-expo) var(--rd, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="scale"] { --ry: 18px; --rs: .96; }
.js [data-reveal="media"] { --ry: 40px; --rs: .97; }
.js [data-reveal="media"]:not(.is-in) .frame__clip img { scale: calc(var(--ps, 1) * 1.15); }
.js [data-reveal="side"] { --ry: 0px; --rx: -48px; }
.showcase__row:nth-child(even) [data-reveal="side"] { --rx: 48px; }
.js [data-reveal="stagger"] { opacity: 1; transform: none; }
.js [data-reveal="stagger"] > * { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform 1s var(--ease-expo); }
.js [data-reveal="stagger"].is-in > * { opacity: 1; transform: none; }
.js [data-reveal="stagger"].is-in > :nth-child(2) { transition-delay: 90ms; }
.js [data-reveal="stagger"].is-in > :nth-child(3) { transition-delay: 180ms; }
.js [data-reveal="stagger"].is-in > :nth-child(4) { transition-delay: 270ms; }
.js [data-reveal].is-in .step__num,
.js [data-reveal].is-in .stage__num { animation: num-pop .6s var(--ease-out) calc(var(--rd, 0ms) + 220ms) both; }

/* Scroll-linked effects on the compositor where supported */
@supports (animation-timeline: view()) {
  .frame__clip { view-timeline-name: --frame; }
  .frame__clip img[data-parallax] { animation: parallax linear both; animation-timeline: --frame; animation-range: cover; }
}

/* Menus */
.nav__item.is-open .dropdown a { animation: dd-in .35s var(--ease-out) both; }
.nav__item.is-open .dropdown a:nth-child(2) { animation-delay: 25ms; }
.nav__item.is-open .dropdown a:nth-child(3) { animation-delay: 50ms; }
.nav__item.is-open .dropdown a:nth-child(4) { animation-delay: 75ms; }
.nav__item.is-open .dropdown a:nth-child(5) { animation-delay: 100ms; }
.nav__item.is-open .dropdown a:nth-child(6) { animation-delay: 125ms; }
.nav__item.is-open .dropdown a:nth-child(7) { animation-delay: 150ms; }
.drawer.is-open > * { animation: rise .5s var(--ease-expo) both; }
.drawer.is-open > :nth-child(2) { animation-delay: 40ms; }
.drawer.is-open > :nth-child(3) { animation-delay: 80ms; }
.drawer.is-open > :nth-child(4) { animation-delay: 120ms; }
.drawer.is-open > :nth-child(5) { animation-delay: 160ms; }

/* Accordions animate where ::details-content is supported */
:root { interpolate-size: allow-keywords; }
.faq details::details-content,
.drawer details::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease-expo), content-visibility .45s allow-discrete; }
.faq details[open]::details-content,
.drawer details[open]::details-content { block-size: auto; }
.faq .faq__a { opacity: 0; transform: translateY(-6px); transition: opacity .35s ease .05s, transform .45s var(--ease-expo); }
.faq details[open] .faq__a { opacity: 1; transform: none; }

.work-card.is-pop { animation: pop .55s var(--ease-expo) both; }
.form-status:not([hidden]) { animation: rise .5s var(--ease-expo) both; }

/* Cross-page fade where supported */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out .2s ease both; }
::view-transition-new(root) { animation: vt-in .45s var(--ease-expo) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0ms !important;
  }
  .js [data-reveal], .js [data-reveal] > * { opacity: 1 !important; transform: none !important; }
  .frame__clip img { scale: 1 !important; translate: none !important; animation: none !important; }
  .ticker__track { animation: none !important; }
  @view-transition { navigation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .nav__trigger, .nav__link { padding-inline: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .intro { flex-direction: column; align-items: stretch; min-height: 0; }
  .intro__wall { position: relative; left: auto; right: auto; height: 380px; order: 2; margin-top: 48px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
  .intro__plane { left: -6%; }
  .nav, .header-cta { display: none; }
  .menu-toggle { display: grid; margin-left: auto; }
  .svc-grid, .grid-3, .pricing, .team, .work-grid--3, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid--3, .gallery-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .post-card--feature { grid-template-columns: 1fr; }
  .post-card--feature .post-card__img { aspect-ratio: 16 / 9; min-height: 0; }
  .stages { grid-template-columns: 1fr; }
  .stage__num { margin-bottom: 30px; }
  .included { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .showcase__row, .split, .faq-split { grid-template-columns: 1fr; }
  .showcase__row:nth-child(even) .showcase__media { order: 0; }
  .showcase__media { order: -1; }
  .faq-split__intro { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .plan__ideal { min-height: 0; }
  .spotlight { --cw: min(72vw, 95vh); }
  .js .spotlight__side { display: none; }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .js [data-reveal="side"],
  .showcase__row:nth-child(even) [data-reveal="side"] { --rx: 0px; --ry: 24px; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }

  .site-header { top: 10px; width: calc(100% - 20px); }
  .svc-grid, .grid-2, .grid-3, .pricing, .work-grid, .work-grid--3, .post-grid, .offices, .pager, .steps, .included { grid-template-columns: 1fr; }
  .gallery-grid--2, .gallery-grid--insta { grid-template-columns: 1fr; }
  .scroll-frame__bar span { display: none; }
  .post-body { font-size: 16.5px; }
  .post-body > p:first-child { font-size: 17.5px; }
  .team { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .member h3 { font-size: 17px; margin-top: 12px; }
  .member p { font-size: 13px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .feature { padding: 24px 20px; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .choices { grid-template-columns: 1fr; }
  .choice { min-height: 54px; }
  .step-form__actions .btn { flex: 1; }
  .meta-grid { grid-template-columns: 1fr 1fr; }
  .meta-grid > div + div { border-left: 0; }
  .meta-grid > div:nth-child(even) { border-left: 1px solid var(--line); }
  .meta-grid > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .faq summary { padding: 18px; font-size: 16px; }
  .faq .faq__a { padding: 0 18px 18px; }
  .pager a:last-child { text-align: left; align-items: flex-start; }
  .spotlight { --cw: 84vw; --cy: 42%; min-height: 620px; max-height: 740px; }
  .spotlight__scene { perspective: 900px; }
  .spotlight__card[data-slot="1"] { --x: .93; }
  .spotlight__card[data-slot="-1"] { --x: -.93; }
  .spotlight__card { border-radius: 12px; }
  .spotlight__info { bottom: 28px; }
  .spotlight__main { width: 100%; }
  .spotlight__top { top: calc(var(--header-h) + 26px); }
  .spotlight__kicker { font-size: 12px; }
  .spotlight__title { font-size: clamp(38px, 12vw, 60px); }
  .spotlight__desc { max-width: 300px; font-size: 12px; }
  .spotlight__cta { margin-top: 18px; }
  .spotlight__nav { top: auto; bottom: 28px; right: var(--gutter); translate: none; flex-direction: row-reverse; gap: 10px; }
  .spotlight__btn { width: 46px; height: 46px; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .logo-wall li { height: 88px; }
  .logo-wall li.is-big img { max-height: 58px; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .btn { white-space: normal; text-align: center; }
  .frame { padding: 7px; border-radius: 18px; }
  .frame__clip { border-radius: 12px; }
}
