/* DevStudios — prototype site
   Vanilla CSS, no build step (Vercel static hosting). */

:root {
  --ink: #0d0d0d;
  --ink-soft: #2c2c2c;
  --gray: #575757;
  --gray-mid: #a3a3a3;
  --gray-line: #cbcdcd;
  --bg-light: #f5f5f5;
  --bg-lighter: #f1f1f1;
  --white: #ffffff;
  --accent: #c41e3a;
  --accent-deep: #9e1830;
  --accent-alt: #f97316;
  --red: #f40000;

  --font-display: "TASA Orbiter", "TASA Orbiter Placeholder", serif;
  --font-body: "Geist", "Geist Placeholder", "Inter", sans-serif;

  --container: 1200px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --header-h: 88px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
button, input, textarea { font-family: inherit; font-size: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.section {
  padding: 96px 0;
  background: var(--white);
}
.section--tight { padding: 64px 0; }
.section--zoom-out { overflow: hidden; }
.section--zoom-out > .container {
  transform-origin: 50% 50%;
  will-change: transform;
}
/* whole-section version: the section itself (image + content) grows from a
   small rounded card up to full-bleed as it scrolls in, driven by
   initZoomInSections() in main.js */
.section--zoom-in {
  overflow: hidden;
  transform-origin: 50% 50%;
  will-change: transform, opacity, border-radius;
}
.section--dark {
  background: var(--ink);
  color: var(--white);
}
.section--dark .eyebrow { color: var(--gray-mid); }
.section--light {
  background: var(--bg-light);
}
.section-stack-wrap { position: relative; }
/* Cards rest flat and full-strength (no shrink/dim on the one behind) — the
   next card simply rises and covers it edge-to-edge, like a real card being
   laid on top of another. A fixed shadow is enough to read as a stack; see
   initSectionStack() in main.js for the peek/resting-offset math. */
.section.is-stacked {
  position: sticky;
  width: calc(100% - 64px);
  max-width: 1560px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.35);
}

/* ---------- standalone card section (excluded from stacking, never touches its neighbours) ---------- */
.section--card {
  width: calc(100% - 64px);
  max-width: 1560px;
  margin: 48px auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.35);
}
@media (max-width: 640px) {
  .section--card { width: calc(100% - 32px); margin: 32px auto; }
}

.section__head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section__head--center { max-width: 700px; margin-left: auto; margin-right: auto; text-align: center; }
.section__title {
  font-size: clamp(32px, 4vw, 50px);
  margin-top: 12px;
}
.section__sub {
  margin-top: 16px;
  color: var(--gray);
  font-size: 19px;
}
.section--dark .section__sub { color: #b5b5b5; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 17px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.btn:hover::after { left: 130%; }
.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-alt) 100%); transform: translateY(-2px); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-alt) 100%); color: var(--white); transform: translateY(-2px); }
.btn--outline { background: transparent; border-color: currentColor; }
.btn--outline:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--block { width: 100%; }
.btn--sm { padding: 11px 20px; font-size: 16px; }

/* ---------- gradient text (accent -> orange), slow animated shift ---------- */
.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-alt) 50%, var(--accent) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 5s ease-in-out infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- split-word heading reveal ---------- */
.split-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em) rotate(4deg);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 45ms);
}
.is-split-in .split-word { opacity: 1; transform: translateY(0) rotate(0deg); }

/* ---------- tilt-on-hover cards ---------- */
.tilt {
  transition: transform 0.15s ease-out, box-shadow 0.2s ease, border-color 0.2s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

/* ---------- custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: transform;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  transition: opacity 0.2s ease;
}
.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1.5px solid #fff;
  opacity: 0.6;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), height 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}
.cursor-ring.is-active {
  width: 74px;
  height: 74px;
  opacity: 0.9;
}
body.cursor-active, body.cursor-active a, body.cursor-active button, body.cursor-active [data-magnetic] {
  cursor: none;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: transform 0.35s ease, background 0.3s ease, border-color 0.3s ease;
}
.site-header--scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(13, 13, 13, 0.08);
}
.site-header--hidden { transform: translateY(-100%); }
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  display: block;
}
.brand__word {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  color: var(--white);
  transition: color 0.3s ease;
}
.site-header--scrolled .brand__word { color: var(--ink); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  position: relative;
}
.main-nav a {
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: color 0.2s ease;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--accent); }
.site-header--scrolled .main-nav a { color: var(--ink); text-shadow: none; }
.main-nav__indicator {
  position: absolute;
  bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0;
  transition: left 0.3s cubic-bezier(0.65, 0, 0.35, 1), width 0.3s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.2s ease;
  pointer-events: none;
}
.main-nav__indicator.is-visible { opacity: 1; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: none;
  cursor: pointer;
  position: relative;
  transition: border-color 0.3s ease;
}
.site-header--scrolled .burger { border-color: var(--gray-line); }
.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.3s ease;
}
.site-header--scrolled .burger span { background: var(--ink); }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 26px; }
.burger.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  display: flex;
  flex-direction: column;
  padding: 24px;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav__top { display: flex; justify-content: space-between; align-items: center; }
.mobile-nav__close { background: none; border: none; color: var(--white); font-size: 32px; cursor: pointer; }
.mobile-nav__links { margin-top: 48px; display: flex; flex-direction: column; gap: 8px; }
.mobile-nav__links a { font-family: var(--font-display); font-size: 36px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-nav__cta { margin-top: 32px; }
.mobile-nav__foot { margin-top: auto; color: var(--gray-mid); font-size: 16px; }

body.nav-open { overflow: hidden; }

/* ---------- hero ---------- */
.hero {
  background: #0a0a0b;
  color: var(--white);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform-origin: 50% 50%;
  will-change: transform, opacity, filter;
}
.hero__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  position: relative;
  z-index: 4;
}
.hero__menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.hero__book {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 8px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.2s ease;
}
.hero__book:hover { transform: translateY(-2px); }
.hero__book img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.hero__book span { padding-right: 8px; }

.hero__stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 120px 0 100px;
  z-index: 2;
}
.hero__robot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 40%;
  animation: heroFloat 12s ease-in-out infinite;
  filter: brightness(1.45) saturate(1.2);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(10,10,11,0.62) 0%, rgba(10,10,11,0.5) 40%, rgba(10,10,11,0.28) 62%, rgba(10,10,11,0.08) 78%, rgba(10,10,11,0) 90%),
    linear-gradient(180deg, rgba(10,10,11,0.05) 0%, rgba(10,10,11,0) 25%, rgba(10,10,11,0.2) 78%, rgba(10,10,11,0.65) 100%);
}
.hero__flare {
  position: absolute;
  inset: -10% -5% auto auto;
  width: 90%;
  max-width: 1100px;
  opacity: 0.6;
  mix-blend-mode: screen;
  pointer-events: none;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.hero__content { position: relative; z-index: 3; width: 100%; }
.hero__headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(54px, 9vw, 144px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  -webkit-text-stroke: 0;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,0.5));
}
.hero__headline .is-solid { color: var(--white); -webkit-text-stroke: 0; }
.hero__line {
  display: block;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero__line--1 {
  background: linear-gradient(180deg, #fbfbfb 0%, #d2d2d2 45%, #8f8f8f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__line--2 { transition-delay: 0.15s; }
.hero__headline.is-wiped-in .hero__line { clip-path: inset(0 0 0 0); }
.hero__ai-badge {
  position: absolute;
  top: 8%;
  right: 4%;
  z-index: 3;
  text-align: right;
}
.hero__ai-badge .hero__ai-num {
  font-family: var(--font-display);
  font-size: clamp(54px, 8vw, 122px);
  line-height: 1;
  color: var(--white);
  text-shadow: 0 6px 28px rgba(0,0,0,0.6);
}
.hero__ai-badge .hero__since { color: var(--gray-mid); font-size: 15px; margin-top: 8px; text-shadow: 0 2px 12px rgba(0,0,0,0.7); }

.hero__rating {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
}
.hero__rating-avatars { display: flex; }
.hero__rating-avatars img {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  border: 2px solid #0a0a0b; margin-left: -10px;
}
.hero__rating-avatars img:first-child { margin-left: 0; }
.hero__rating-stars { color: #ffb63d; font-size: 15px; letter-spacing: 1px; }
.hero__rating-label { font-size: 15px; color: var(--gray-mid); margin-top: 2px; }

.hero__sub {
  color: #d7d7d7;
  font-size: 20px;
  max-width: 460px;
  margin-top: 24px;
  line-height: 1.5;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
.hero__sub em { color: var(--white); font-style: normal; }
.hero__actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

.hero__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px 26px;
  font-size: 14px;
  color: var(--gray-mid);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-top: 1px solid rgba(255,255,255,0.14);
  flex-wrap: wrap;
  gap: 8px;
}
.hero__social {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 3;
}
.hero__social a {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--gray-mid);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.hero__social a:hover { color: var(--white); border-color: rgba(255,255,255,0.5); }

@media (max-width: 980px) {
  .hero__stage { flex-direction: column; align-items: flex-start; padding: 100px 0 140px; }
  .hero__robot { opacity: 0.4; object-position: 60% 50%; }
  .hero__ai-badge { position: static; text-align: left; margin-top: 16px; order: -1; }
  .hero__social { display: none; }
  .hero__meta { flex-direction: column; align-items: flex-start; }
}

/* ---------- trusted-by strip ---------- */
.trusted {
  padding: 40px 0;
  border-bottom: 1px solid var(--gray-line);
}
.trusted__label { font-size: 15px; color: var(--gray); text-align: center; margin-bottom: 24px; }
.trusted__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  opacity: 0.6;
}
.trusted__row img { height: 26px; width: auto; }

/* ---------- key advantages / feature list ---------- */
.advantages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.advantage {
  padding: 24px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  transition: box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.advantage:hover { box-shadow: 0 16px 32px -20px rgba(13,13,13,0.16); }
.advantage__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.advantage__icon img { width: 22px; height: 22px; filter: invert(1); }
.advantage__title { font-size: 18px; font-weight: 600; }
.advantage__desc { color: var(--gray); font-size: 16px; margin-top: 6px; }

/* scroll-triggered entrance (spring pop + staggered icon/title/desc cascade) */
.advantage.reveal {
  opacity: 0;
  transform: translateY(64px) scale(0.92);
  transition: opacity 0.7s cubic-bezier(0.19, 1.28, 0.32, 1), transform 0.7s cubic-bezier(0.19, 1.28, 0.32, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: transform, opacity;
}
.advantage.reveal.is-in { opacity: 1; transform: translateY(0) scale(1); }
.advantage.reveal.is-in:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 48px -24px rgba(13,13,13,0.22);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.advantage.reveal .advantage__icon,
.advantage.reveal .advantage__title,
.advantage.reveal .advantage__desc {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.advantage.reveal .advantage__icon {
  transform: translateY(10px) scale(0.55) rotate(-8deg);
  transition-delay: calc(var(--reveal-delay, 0s) + 0.08s);
}
.advantage.reveal .advantage__title { transition-delay: calc(var(--reveal-delay, 0s) + 0.16s); }
.advantage.reveal .advantage__desc { transition-delay: calc(var(--reveal-delay, 0s) + 0.24s); }
.advantage.reveal.is-in .advantage__icon {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0deg);
}
.advantage.reveal.is-in .advantage__title,
.advantage.reveal.is-in .advantage__desc {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .advantage.reveal,
  .advantage.reveal .advantage__icon,
  .advantage.reveal .advantage__title,
  .advantage.reveal .advantage__desc {
    opacity: 1; transform: none; transition: none;
  }
  .advantage.reveal.is-in:hover { transform: none; transition: box-shadow 0.4s ease; }
}

/* ---------- stat band ---------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-band__num { font-family: var(--font-display); font-size: 54px; }
.stat-band__label { color: var(--gray); font-size: 16px; margin-top: 8px; }
.section--dark .stat-band__label { color: var(--gray-mid); }

/* dropped in from above, landing with one light bounce — driven by
   initStatDrop() in main.js, which (unlike the generic .reveal system) only
   triggers once the section is actually entering the viewport, so the drop
   plays out on-screen instead of finishing before you scroll to it */
.stat-band-drop {
  opacity: 0;
  transform: translateY(-180px);
  will-change: transform, opacity;
}
.stat-band-drop.is-in {
  animation: stat-band-drop 1.05s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
@keyframes stat-band-drop {
  0%   { transform: translateY(-180px); opacity: 0; }
  50%  { transform: translateY(0); opacity: 1; }
  68%  { transform: translateY(-16px); }
  85%  { transform: translateY(3px); }
  100% { transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .stat-band-drop { opacity: 1; transform: none; }
  .stat-band-drop.is-in { animation: none; }
}

/* ---------- expertise / services deep dive ---------- */
.expertise-list { border-top: 1px solid var(--gray-line); }
.expertise-item {
  border-bottom: 1px solid var(--gray-line);
  padding: 32px 0;
  display: grid;
  grid-template-columns: 80px 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}
.expertise-item__index { font-family: var(--font-display); color: var(--gray-mid); font-size: 17px; }
.expertise-item__title { font-size: 27px; }
.expertise-item__desc { color: var(--gray); margin-top: 12px; font-size: 17px; max-width: 480px; }
.expertise-item__includes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.expertise-item__includes li {
  font-size: 16px;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
}
.expertise-item__includes li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

/* ---------- services grid (new section) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-tile {
  padding: 28px;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.service-tile:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(13,13,13,0.08);
}
.service-tile__num { font-family: var(--font-display); color: var(--gray-mid); font-size: 15px; }
.service-tile__title { font-size: 21px; margin-top: 14px; }
.service-tile__desc { color: var(--gray); font-size: 16px; margin-top: 8px; }
.services-grid__toggle { display: none; margin: 24px auto 0; }

/* ---------- case studies ---------- */
.case-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.case-featured img { border-radius: var(--radius-md); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.case-featured__tag { font-size: 15px; color: var(--gray); }
.case-featured__title { font-size: 34px; margin-top: 12px; }
.case-featured__desc { color: var(--gray); margin-top: 12px; }
.case-featured__meta { display: flex; gap: 32px; margin-top: 24px; flex-wrap: wrap; }
.case-featured__meta div { font-size: 15px; }
.case-featured__meta strong { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 500; }

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-line);
  box-shadow: 0 10px 24px -8px rgba(13,13,13,0.14), 0 2px 6px rgba(13,13,13,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.case-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -10px rgba(13,13,13,0.18), 0 4px 10px rgba(13,13,13,0.08); }
.case-card__img { aspect-ratio: 4/3; overflow: hidden; }
.case-card__img img { width: 100%; height: 100%; object-fit: cover; }
.case-card__body { padding: 20px; }
.case-card__tag { font-size: 14px; color: var(--gray); text-transform: uppercase; letter-spacing: 0.04em; }
.case-card__title { font-size: 20px; margin-top: 8px; }

/* ---------- process steps ---------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-step {
  padding: 28px 24px;
  border-radius: var(--radius-md);
  background: var(--bg-light);
}
.process-step__num { font-family: var(--font-display); font-size: 17px; color: var(--gray-mid); }
.process-step__title { font-size: 21px; margin-top: 14px; }
.process-step__desc { color: var(--gray); font-size: 16px; margin-top: 10px; }
.process-step__list { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.process-step__list li { font-size: 15px; color: var(--ink-soft); padding-left: 16px; position: relative; }
.process-step__list li::before { content: "—"; position: absolute; left: 0; color: var(--gray-mid); }
.process-step__period { margin-top: 16px; font-size: 14px; color: var(--gray-mid); border-top: 1px solid var(--gray-line); padding-top: 12px; }

/* scroll-highlight: steps in the pinned list dim until they cross the
   viewport's centre band, then spotlight — see initProcessHighlight() */
.process-list--pinned .process-step {
  opacity: 0.45;
  transform: scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s ease, background-color 0.35s ease;
}
.process-list--pinned .process-step.is-active {
  opacity: 1;
  transform: scale(1);
  background: var(--white);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.process-list--pinned .process-step.is-active .process-step__num { color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .process-list--pinned .process-step { transition: opacity 0.2s ease; transform: none; }
  .process-list--pinned .process-step.is-active { transform: none; }
}

/* ---------- why choose us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.why-card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--ink-soft);
  color: var(--white);
}
.why-card__title { font-size: 21px; }
.why-card__desc { color: var(--gray-mid); font-size: 16px; margin-top: 10px; }
.why-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.why-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -22px rgba(13,13,13,0.35); }

/* thrown-in scroll animation: transform/opacity are driven continuously by
   initWhyThrow() in main.js (progress tied directly to scroll position, not
   a triggered transition), so each card is only given a will-change hint
   here — see main.js for the actual motion. */
.why-grid--throw .why-card { will-change: transform, opacity; backface-visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  .why-grid--throw .why-card { transform: none !important; opacity: 1 !important; }
}

/* ---------- timeline ---------- */
.timeline { display: flex; gap: 24px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
.timeline::-webkit-scrollbar { display: none; }
.timeline-item {
  min-width: 260px;
  flex: 1;
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--bg-light);
}
.timeline-item__year { font-family: var(--font-display); font-size: 34px; }
.timeline-item__title { font-size: 19px; margin-top: 10px; font-weight: 600; }
.timeline-item__desc { color: var(--gray); font-size: 16px; margin-top: 8px; }

/* ---------- team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.team-grid--founders {
  grid-template-columns: repeat(2, minmax(0, 360px));
  max-width: 820px;
  margin: 0 auto;
  gap: 48px;
}
.team-card__img { aspect-ratio: 3/4; border-radius: var(--radius-md); overflow: hidden; }
.team-card__img img { width: 100%; height: 100%; object-fit: cover; }
.team-card__name { font-size: 22px; margin-top: 14px; font-weight: 600; }
.team-card__role { color: var(--gray); font-size: 17px; margin-top: 2px; }
.team-card__tags { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.team-card__tags li { font-size: 16px; color: var(--gray-mid); }

/* ---------- pricing ---------- */
.pricing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-light);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin: 0 auto 48px;
}
.pricing-toggle button {
  border: none; background: none; padding: 10px 20px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 16px; cursor: pointer; color: var(--gray);
}
.pricing-toggle button.is-active { background: var(--ink); color: var(--white); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.pricing-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-line);
  display: flex;
  flex-direction: column;
}
.pricing-card--featured { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pricing-card__name { font-size: 22px; }
.pricing-card__desc { color: var(--gray); font-size: 16px; margin-top: 8px; min-height: 42px; }
.pricing-card--featured .pricing-card__desc { color: var(--gray-mid); }
.pricing-card__price { font-family: var(--font-display); font-size: 45px; margin-top: 20px; }
.pricing-card__price span { font-size: 16px; font-family: var(--font-body); color: var(--gray); }
.pricing-card__price-note { font-size: 15px; color: var(--gray-mid); margin-top: 4px; }
.pricing-card--featured .pricing-card__price-note { color: var(--gray-mid); }
.pricing-card__features { margin: 24px 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pricing-card__features li { font-size: 16px; padding-left: 22px; position: relative; }
.pricing-card__features li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ---------- testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--bg-light);
}
.testimonial-card__quote { font-size: 17px; color: var(--ink-soft); }
.testimonial-card__who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.testimonial-card__who img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.testimonial-card__name { font-size: 16px; font-weight: 600; }
.testimonial-card__role { font-size: 14px; color: var(--gray); }
.rating-badge { display: flex; align-items: center; gap: 10px; }
.rating-badge__num { font-family: var(--font-display); font-size: 36px; }
.rating-badge__label { font-size: 15px; color: var(--gray); }

/* ---------- blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.blog-card__img { aspect-ratio: 16/10; border-radius: var(--radius-md); overflow: hidden; }
.blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}
.blog-grid > a:hover .blog-card__img img { transform: scale(1.08); filter: blur(2px); }
.blog-card__title { font-size: 22px; margin-top: 16px; }
.blog-card__date { color: var(--gray); font-size: 15px; margin-top: 8px; }

/* ---------- contact / CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band__title { font-size: clamp(27px, 3vw, 38px); max-width: 520px; }
.cta-band__sub { color: var(--gray-mid); margin-top: 10px; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info__item { padding: 20px; border-radius: var(--radius-md); background: var(--bg-light); }
.contact-info__label { font-size: 15px; color: var(--gray); text-transform: uppercase; letter-spacing: 0.05em; }
.contact-info__value { font-size: 19px; margin-top: 6px; font-weight: 600; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.form-field input, .form-field textarea, .form-field select {
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 17px;
  background: var(--white);
  color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--accent);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 15px; color: var(--gray); margin-top: 12px; }
.form-success { display: none; padding: 16px; border-radius: var(--radius-sm); background: #e8f8ee; color: #146c34; font-size: 16px; margin-top: 16px; }
.form-success.is-visible { display: block; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--gray-line); }
.faq-item { border-bottom: 1px solid var(--gray-line); }
.faq-item__q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0; cursor: pointer; font-size: 19px; font-weight: 500;
}
.faq-item__icon { font-size: 22px; color: var(--gray-mid); transition: transform 0.2s ease; }
.faq-item.is-open .faq-item__icon { transform: rotate(45deg); }
.faq-item__a {
  max-height: 0; overflow: hidden; color: var(--gray); font-size: 17px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.is-open .faq-item__a { max-height: 240px; padding-bottom: 24px; }

/* ---------- awards ---------- */
.awards-table { border-top: 1px solid var(--gray-line); }
.awards-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  padding: 18px 0; border-bottom: 1px solid var(--gray-line); font-size: 16px;
}
.awards-row--head { color: var(--gray); font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  background: var(--ink);
  color: var(--white);
  padding: 140px 0 64px;
}
.page-hero__eyebrow { color: var(--gray-mid); font-size: 16px; }
.page-hero__title { font-size: clamp(36px, 5vw, 63px); margin-top: 16px; max-width: 720px; }
.page-hero__sub { color: var(--gray-mid); margin-top: 16px; max-width: 560px; font-size: 19px; }

/* ---------- shelf (case study detail "more cases") ---------- */
.shelf-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 72px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand__desc { color: var(--gray-mid); font-size: 16px; margin-top: 16px; max-width: 280px; }
.footer-col__title { font-size: 15px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-mid); margin-bottom: 16px; }
.footer-col a, .footer-col address { display: block; font-size: 16px; color: #d9d9d9; margin-bottom: 10px; font-style: normal; }
.footer-col a:hover { color: var(--accent); }
.newsletter-form { display: flex; gap: 8px; margin-top: 12px; }
.newsletter-form input {
  flex: 1; border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05); color: var(--white); padding: 12px 18px; font-size: 16px;
}
.newsletter-form button {
  width: 42px; height: 42px; border-radius: 50%; border: none; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-alt) 100%); color: var(--white); cursor: pointer;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; padding-top: 24px; flex-wrap: wrap; gap: 12px;
  font-size: 15px; color: var(--gray-mid);
}
.footer-credit { color: var(--gray-mid); }
.footer-credit:hover { color: var(--accent); }
.footer-social { display: flex; gap: 14px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a:hover { color: var(--white); }

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(48px) scale(0.96);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-in { opacity: 1; transform: translateY(0) scale(1); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 160px 0 120px; }
.error-page__code { font-family: var(--font-display); font-size: clamp(90px, 16vw, 180px); line-height: 1; }
.error-page__title { font-size: 27px; margin-top: 8px; }
.error-page__desc { color: var(--gray); margin-top: 12px; }
.error-page__action { margin-top: 32px; }

/* ---------- prose (privacy policy, blog body) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 25px; margin-top: 36px; margin-bottom: 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); margin-bottom: 14px; }
.prose ul { margin-bottom: 14px; }
.prose li { color: var(--ink-soft); padding-left: 20px; position: relative; margin-bottom: 6px; }
.prose li::before { content: "—"; position: absolute; left: 0; color: var(--gray-mid); }
.prose strong { font-weight: 600; }

/* ---------- marquee (client logos + oversized background headline) ---------- */
.marquee {
  display: flex;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img { height: 26px; width: auto; opacity: 0.7; filter: grayscale(1); }
.section--dark .marquee__track img { opacity: 0.85; filter: grayscale(1) invert(1); }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee--text {
  padding: 8px 0;
}
.marquee--text .marquee__track {
  gap: 0.4em;
  animation-duration: 26s;
}
.marquee--text .marquee__track span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(72px, 12vw, 180px);
  line-height: 1;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(13,13,13,0.14);
  padding-right: 0.4em;
  white-space: nowrap;
}
.section--dark .marquee--text .marquee__track span { -webkit-text-stroke: 1px rgba(255,255,255,0.16); }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ---------- scroll image reveal (motion-blur → sharp) ---------- */
.reveal-image {
  position: relative;
  overflow: hidden;
}
.reveal-image img {
  filter: blur(18px) saturate(1.4);
  transform: scale(1.15);
  opacity: 0;
  transition: filter 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}
.reveal-image.is-in img {
  filter: blur(0) saturate(1);
  transform: scale(1);
  opacity: 1;
}
.service-tile:hover .reveal-image img { transform: scale(1.08); filter: blur(2px); }
@media (prefers-reduced-motion: reduce) {
  .reveal-image img { filter: none; transform: none; opacity: 1; transition: none; }
  .service-tile:hover .reveal-image img { transform: none; filter: none; }
}

.split-wide-narrow .reveal-image,
.split-narrow-wide .reveal-image {
  box-shadow: 0 24px 48px -16px rgba(13,13,13,0.2), 0 4px 14px rgba(13,13,13,0.08);
}

/* ---------- sticky panel (pinned column) ---------- */
.sticky-panel {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
}

/* ---------- timeline stepper (Previous/Next year cards) ---------- */
.timeline-stepper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.timeline-stepper__cards { position: relative; min-height: 220px; }
.timeline-stepper__card {
  display: none;
  padding: 32px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--white);
}
.timeline-stepper__card.is-active { display: block; }
.timeline-stepper__year { font-size: 15px; color: var(--gray-mid); text-transform: uppercase; letter-spacing: 0.05em; }
.timeline-stepper__title { font-size: 25px; margin-top: 10px; }
.timeline-stepper__desc { color: var(--gray-mid); margin-top: 12px; font-size: 17px; }
.timeline-stepper__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.timeline-stepper__nav button {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 1px solid var(--gray-line); border-radius: var(--radius-pill);
  padding: 10px 18px; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: border-color 0.2s ease;
}
.timeline-stepper__nav button:hover { border-color: var(--ink); }
.timeline-stepper__nav button:disabled { opacity: 0.35; cursor: not-allowed; }
.timeline-stepper__media { border-radius: var(--radius-lg); overflow: hidden; position: relative; aspect-ratio: 4/5; }
.timeline-stepper__media img { width: 100%; height: 100%; object-fit: cover; }
.timeline-stepper__media-caption {
  position: absolute; left: 20px; right: 20px; bottom: 20px;
  background: rgba(13,13,13,0.6); backdrop-filter: blur(6px);
  border-radius: var(--radius-md); padding: 16px 18px; color: var(--white);
}
.timeline-stepper__media-caption strong { display: block; font-size: 17px; }
.timeline-stepper__media-caption span { font-size: 14px; color: var(--gray-mid); }

/* ---------- testimonial carousel ---------- */
.testimonial-carousel { max-width: 640px; }
.testimonial-carousel__track { position: relative; min-height: 200px; }
.testimonial-carousel__slide {
  display: none;
  padding: 32px;
  border-radius: var(--radius-md);
  background: var(--bg-light);
}
.testimonial-carousel__slide.is-active { display: block; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.testimonial-carousel__quote { font-size: 20px; color: var(--ink-soft); }
.testimonial-carousel__who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.testimonial-carousel__who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial-carousel__name { font-size: 16px; font-weight: 600; }
.testimonial-carousel__role { font-size: 14px; color: var(--gray); }
.testimonial-carousel__controls { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.testimonial-carousel__controls button {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gray-line);
  background: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s ease;
}
.testimonial-carousel__controls button:hover { border-color: var(--ink); }
.testimonial-carousel__progress { flex: 1; height: 2px; background: var(--gray-line); border-radius: 2px; overflow: hidden; }
.testimonial-carousel__progress-bar { height: 100%; width: 0; background: var(--ink); transition: width 0.4s ease; }
.testimonial-carousel__avatars { display: flex; gap: 10px; margin-top: 24px; }
.testimonial-carousel__avatars button {
  width: 44px; height: 44px; border-radius: 50%; padding: 0; border: 2px solid transparent;
  background: none; cursor: pointer; overflow: hidden; opacity: 0.5;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.testimonial-carousel__avatars button img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-carousel__avatars button.is-active { opacity: 1; border-color: var(--ink); }

@media (max-width: 980px) {
  .timeline-stepper { grid-template-columns: 1fr; }
  .timeline-stepper__media { order: -1; aspect-ratio: 16/9; }
}

/* ---------- ad-hoc split layouts used inline across the homepage
   (kept as classes, not inline styles, so the responsive rules below
   can actually collapse them — inline style="" always outranks a
   media-query rule targeting a class, no matter the viewport) ---------- */
.why-grid--4col, .stat-row-3, .split-2, .split-wide-narrow, .split-narrow-wide, .split-offer, .countries-grid {
  display: grid;
}
.why-grid--4col { grid-template-columns: repeat(4, 1fr); }
.contact-grid--even { grid-template-columns: 1fr 1fr; }
.process-list--pinned { grid-template-columns: repeat(2, 1fr); }
.stat-row-3 { grid-template-columns: repeat(3, auto); gap: 48px; text-align: left; }
.split-2 { grid-template-columns: 1fr 1fr; gap: 48px; }
.split-wide-narrow { grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.split-narrow-wide { grid-template-columns: 0.9fr 1.4fr; gap: 40px; align-items: start; }
.split-offer { grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.countries-grid { grid-template-columns: repeat(6, 1fr); gap: 32px; text-align: center; }
.country-chip { display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0.75; transition: opacity 0.2s ease; }
.country-chip:hover { opacity: 1; }
.country-chip__flag {
  font-size: 45px;
  line-height: 1;
  display: inline-block;
}
.country-chip__name { font-size: 15px; color: var(--gray-mid); }

/* ============ responsive ============ */
@media (max-width: 480px) {
  .header-actions .btn { display: none; }
}
@media (max-width: 980px) {
  .main-nav { display: none; }
  .burger { display: block; }
  .advantages, .stat-band, .process-list, .services-grid, .case-grid, .why-grid,
  .testimonial-grid, .blog-grid, .team-grid, .shelf-track, .pricing-grid,
  .why-grid--4col {
    grid-template-columns: repeat(2, 1fr);
  }
  .case-featured, .contact-grid, .split-2, .split-wide-narrow, .split-narrow-wide, .split-offer {
    grid-template-columns: 1fr;
  }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .expertise-item { grid-template-columns: 1fr; gap: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .countries-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-row-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .advantages, .stat-band, .process-list, .services-grid, .case-grid, .why-grid,
  .testimonial-grid, .blog-grid, .team-grid, .footer-top, .shelf-track, .pricing-grid,
  .why-grid--4col, .process-list--pinned, .stat-row-3 {
    grid-template-columns: 1fr;
  }
  .stat-row-3 { gap: 20px; text-align: center; }
  .team-grid--founders { grid-template-columns: 1fr; max-width: 280px; }
  .service-tile--more { display: none; }
  .services-grid.is-expanded .service-tile--more { display: block; }
  .services-grid__toggle { display: block; }
  .section { padding: 64px 0; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 32px; }
}

/* ---------- new motion: touch / reduced-motion safety ---------- */
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .text-gradient { animation: none; }
  .split-word { opacity: 1; transform: none; transition: none; }
  .hero__line { clip-path: none; transition: none; }
  .btn::after { display: none; }
  .cursor-dot, .cursor-ring { display: none; }
  .tilt { transition: none; }
}
