/* ==========================================================================
   Web Spell — site styles
   Palette and layout follow the reference videos (cream page, pale-yellow
   section cards, near-black buttons, purple italic serif accents from the logo, floating
   pill navigation that condenses on scroll).
   ========================================================================== */

:root {
  --bg: #fcfcf3;
  --cream: #fef5d6;
  --cream-deep: #fbeec2;
  --white: #fffffd;
  --ink: #171614;
  --ink-2: #4b4a44;
  --ink-3: #807e74;
  --brand: #2d187c;        /* deep purple from the logo */
  --brand-2: #e86d55;      /* orange from the logo */
  --gold: #f7a262;         /* warm orange, hero accent and switch */
  --line: rgba(23, 22, 20, 0.08);
  --line-strong: rgba(23, 22, 20, 0.16);
  --shadow-sm: 0 1px 2px rgba(23, 22, 20, 0.04), 0 8px 24px rgba(23, 22, 20, 0.06);
  --shadow-md: 0 14px 44px rgba(23, 22, 20, 0.12);
  --r-xl: 24px;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --container: 1280px;
  --gutter: 24px;
  --frame: 12px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
img { height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button, a, [role="button"] { touch-action: manipulation; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; hyphens: none; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.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: -120px; z-index: 200; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; font-weight: 500; font-size: 14px; }
.skip-link:focus { top: 16px; }
main:focus { outline: none; }
.btn.is-loading { opacity: 0.7; pointer-events: none; }
svg.ico { display: inline-block; width: 1em; height: 1em; flex: none; vertical-align: -0.15em; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 80px 0; }
.section--tight { padding: 64px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin-top: 16px; }
.section-head p { max-width: 46ch; margin: 16px auto 0; font-size: 15.5px; }
.split-head { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 40px; align-items: end; margin-bottom: 40px; }
.split-head h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin-top: 16px; }
.split-head p { max-width: 42ch; font-size: 15.5px; padding-bottom: 6px; }

.accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--brand);
  letter-spacing: 0;
  font-size: 1.06em;
}

.tag {
  display: inline-block;
  background: var(--cream);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  padding: 7px 10px;
  border-radius: var(--r-sm);
}
.tag--light { background: var(--white); border: 1px solid var(--line); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2b2a26; }
.btn--light { background: var(--white); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--light:hover { border-color: var(--line-strong); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--block { width: 100%; }
.btn--sm { padding: 10px 14px; font-size: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--ink); font-size: 15px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header (floating pills) ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: var(--frame) var(--frame) 0;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: calc(var(--container) - var(--gutter) * 2 + var(--frame) * 2);
  margin: 0 auto;
  transition: max-width 0.7s var(--ease);
}
.site-header.is-scrolled .nav { max-width: 880px; }
.pill {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
}
.nav__brand { justify-self: start; padding: 8px 16px 8px 10px; gap: 9px; font-weight: 600; font-size: 15.5px; color: var(--ink); letter-spacing: -0.01em; line-height: 1; }
.nav__brand svg, .nav__brand img { width: 38px; height: 38px; object-fit: contain; display: block; }
.nav__links { justify-self: center; padding: 6px; gap: 2px; }
.nav__links a { position: relative; display: block; padding: 10px 16px; font-size: 14px; font-weight: 500; color: var(--ink); border-radius: 10px; transition: background-color 0.2s, color 0.2s; }
.nav__links a:hover { background: var(--cream); }
.nav__links a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.nav__links a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); transform: translateX(-50%); }
.nav__cta { justify-self: end; padding: 6px; gap: 6px; }
.nav__cta .btn { padding: 11px 16px; font-size: 14px; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #f3f2ea; color: var(--ink); transition: background-color 0.2s; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--cream); }
.nav__toggle { display: none; }
.nav__toggle .i-close { display: none; }
.site-header.is-open .nav__toggle .i-menu { display: none; }
.site-header.is-open .nav__toggle .i-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin: var(--frame);
  border-radius: var(--r-xl);
  overflow: hidden;
  height: min(calc(100svh - 24px), 780px);
  min-height: 560px;
  display: flex;
  background: #17121f;
  color: #fff;
}
.hero__bg { position: absolute; inset: -6% 0; background: #17121f; }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 18, 31, 0.55) 0%, rgba(23, 18, 31, 0.15) 55%, rgba(23, 18, 31, 0) 100%),
    linear-gradient(0deg, rgba(23, 18, 31, 0.5) 0%, rgba(23, 18, 31, 0) 45%);
}
.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 112px 56px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}
.hero__badge svg { color: var(--gold); width: 16px; height: 16px; }
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
  max-width: 18ch;
  margin-top: 16px;
}
.hero h1 .accent { color: var(--gold); }
.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.hero__card { flex: none; }
.hero__text { max-width: 44ch; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, 0.85); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero .btn--ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.hero__card {
  background: var(--white);
  border-radius: 14px;
  padding: 10px 10px 10px;
  width: 240px;
  text-align: center;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  transform: none;
  transition: transform 0.35s var(--ease);
  flex: none;
}
.hero__card:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35); }
.hero__card span { display: block; padding: 4px 0 10px; }
.hero__card img, .hero__card video { display: block; border-radius: 9px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; height: auto; background: #eee; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero__inner > * { animation: rise 0.9s var(--ease) both; }
.hero__inner > *:nth-child(2) { animation-delay: 0.15s; }

/* ---------- About ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: var(--cream); border-radius: 14px; padding: 18px 18px 16px; }
.stat__num { display: block; font-size: 30px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { display: block; font-size: 12px; color: var(--ink-3); margin-top: 8px; }

/* ---------- Logos marquee ---------- */
.logos { padding: 8px 0 56px; }
.logos__label { text-align: center; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 24px; }
.logos__label strong { color: var(--ink); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; gap: 16px; padding-right: 16px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 28px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-2);
  white-space: nowrap;
}
.logo-card svg { width: 20px; height: 20px; color: var(--ink-2); }
.logo-card--img { padding: 12px 22px; }
.logo-card--img img { height: 30px; width: auto; max-width: 150px; object-fit: contain; }
.logo-card--dark { background: var(--ink); border-color: var(--ink); }

/* ---------- Work ---------- */
.feature {
  background: var(--cream);
  border-radius: 20px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.feature__text { padding: 8px 8px 8px 12px; }
.badge-light { display: inline-flex; align-items: center; gap: 6px; background: var(--white); border-radius: 7px; padding: 6px 10px; font-size: 12px; font-weight: 500; color: var(--ink); }
.badge-light svg { width: 13px; height: 13px; color: var(--brand); }
.feature h3 { font-size: 22px; margin: 22px 0 10px; }
.feature p { font-size: 14.5px; max-width: 44ch; margin-bottom: 22px; }
.feature__media { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.feature__caption {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  background: var(--white);
  border-radius: 11px;
  padding: 13px 16px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.work-card {
  position: relative;
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px 8px 4px;
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
.work-card:hover, .work-card:focus-visible { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.work-card__frame { position: relative; display: block; border-radius: 10px; overflow: hidden; background: #ecebe4; }
.work-card__bar { display: flex; gap: 5px; align-items: center; height: 20px; padding: 0 9px; background: #f3f2ea; border-bottom: 1px solid var(--line); }
.work-card__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(23, 22, 20, 0.18); }
.work-card__bar i:first-child { background: #f97066; } .work-card__bar i:nth-child(2) { background: #f7bf4f; } .work-card__bar i:nth-child(3) { background: #62c96b; }
.work-card__shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.work-card__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: object-position 6s linear; }
.work-card:hover .work-card__shot img, .work-card:focus-visible .work-card__shot img { object-position: bottom; }
.work-card__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.16) 50%, transparent 58%); transform: translateX(-110%); transition: transform 0.9s var(--ease); pointer-events: none; }
.work-card:hover .work-card__frame::after { transform: translateX(110%); }
.work-card__body { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 6px 8px; }
.work-card__name { display: block; font-size: 15px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.work-card__meta { display: block; font-size: 12.5px; color: var(--ink-3); line-height: 1.35; margin-top: 2px; }
.work-card__go { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); flex: none; transition: background-color 0.3s, color 0.3s, transform 0.4s var(--ease); }
.work-card__go svg { width: 14px; height: 14px; }
.work-card:hover .work-card__go { background: var(--brand); color: #fff; border-color: var(--brand); transform: rotate(-45deg); }
.feature__media img { object-fit: cover; object-position: top; transition: object-position 7s linear; }
.feature:hover .feature__media img { object-position: bottom; }

/* ---------- Services (tabs) ---------- */
.services { margin: 0 var(--frame); background: var(--cream); border-radius: var(--r-xl); padding: 72px 0; }
.tabs {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: grid;
  grid-template-columns: 250px 1fr;
  overflow: hidden;
}
.tabs__list { background: #f6f6f0; padding: 14px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); }
.tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-align: left;
  border: 1px solid transparent;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.tab svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.tab:hover { background: rgba(255, 255, 253, 0.7); color: var(--ink); }
.tab.is-active { background: var(--white); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.tab.is-active svg { color: var(--brand); }
.tabs__panel { padding: 28px; }
.tabs__panel[hidden] { display: none; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tabs__panel.is-active { animation: fade 0.4s var(--ease); }
.tabs__panel h3 { font-size: 21px; margin-bottom: 10px; }
.tabs__panel > p { font-size: 15px; max-width: 58ch; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; font-size: 13px; font-weight: 500; color: var(--ink); }
.chip--cream { background: var(--cream); border-color: transparent; }
.tabs__media { position: relative; margin-top: 22px; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; background: #ddd; }
.tabs__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tools-card {
  position: absolute;
  left: 16px; bottom: 16px;
  max-width: min(380px, calc(100% - 32px));
  background: var(--white);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  box-shadow: var(--shadow-md);
}
.tool { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 7px; background: #f6f6f0; color: var(--ink); font-size: 11.5px; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.tool i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--brand)); flex: none; }
.tool img { width: 14px; height: 14px; object-fit: contain; }
.tool--more { color: var(--ink-3); }


/* ---------- Services: fold-in animation when a tab opens ---------- */
@keyframes fold-in { from { opacity: 0; transform: translateY(10px) scaleY(0.9); transform-origin: top; } to { opacity: 1; transform: none; } }
.tabs__panel.is-active .chip, .tabs__panel.is-active .tool { animation: fold-in 0.45s var(--ease) both; }
.tabs__panel.is-active .chip:nth-child(2), .tabs__panel.is-active .tool:nth-child(2) { animation-delay: 0.05s; }
.tabs__panel.is-active .chip:nth-child(3), .tabs__panel.is-active .tool:nth-child(3) { animation-delay: 0.1s; }
.tabs__panel.is-active .chip:nth-child(4), .tabs__panel.is-active .tool:nth-child(4) { animation-delay: 0.15s; }
.tabs__panel.is-active .chip:nth-child(5), .tabs__panel.is-active .tool:nth-child(5) { animation-delay: 0.2s; }
.tabs__panel.is-active .chip:nth-child(6), .tabs__panel.is-active .tool:nth-child(6) { animation-delay: 0.25s; }
.tabs__panel.is-active .chip:nth-child(n+7), .tabs__panel.is-active .tool:nth-child(n+7) { animation-delay: 0.3s; }
.tabs__panel.is-active .tabs__media { animation: fade 0.6s var(--ease) both; animation-delay: 0.1s; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.toolbar__label { font-size: 12.5px; color: var(--ink-3); margin-right: 4px; }
.toolbar .tool { background: var(--white); border: 1px solid var(--line); font-size: 12px; padding: 6px 10px; }

/* ---------- Pillars: design to security, flip cards ---------- */
.pillars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 24px; }
.flip { perspective: 1000px; height: 190px; outline: none; cursor: pointer; }
.flip__inner { position: relative; width: 100%; height: 100%; transition: transform 0.7s var(--ease); transform-style: preserve-3d; }
.flip:hover .flip__inner, .flip:focus-visible .flip__inner, .flip.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip__face { position: absolute; inset: 0; border-radius: 16px; padding: 18px 16px; display: flex; flex-direction: column; justify-content: space-between; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.flip__front { background: var(--white); border: 1px solid var(--line); color: var(--ink); }
.flip__front .flip__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.flip__front .flip__icon svg { width: 22px; height: 22px; }
.flip__front h3 { font-size: 15.5px; margin: 0; }
.flip__front small { font-size: 12px; color: var(--ink-3); }
.flip__back { background: var(--brand); color: #fff; transform: rotateY(180deg); justify-content: center; }
.flip__back p { font-size: 13.5px; line-height: 1.45; color: rgba(255, 255, 255, 0.92); }
.flip__back span { display: block; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; font-weight: 600; }
.pillars__title { text-align: center; margin-top: 44px; }
.pillars__title h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.pillars__title p { font-size: 14.5px; margin-top: 8px; }

/* ---------- Move to Shopify ---------- */
.migrate { background: var(--cream); border-radius: var(--r-xl); padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.migrate h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); line-height: 1.12; margin-top: 14px; }
.migrate > div > p { font-size: 15.5px; max-width: 46ch; margin-top: 14px; }
.migrate__list { margin-top: 18px; }
.migrate__list li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 14.5px; }
.migrate__list svg { width: 16px; height: 16px; color: var(--brand); flex: none; margin-top: 4px; }
.migrate__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.migrate__svg { width: 100%; display: block; overflow: visible; }
.migrate__from rect { fill: var(--white); stroke: rgba(23, 22, 20, 0.1); }
.migrate__from text { fill: var(--ink); font-family: var(--font-sans); font-size: 14px; font-weight: 500; }
.migrate__path { fill: none; stroke: var(--brand); stroke-opacity: 0.35; stroke-width: 1.5; stroke-dasharray: 5 7; animation: migrate-flow 1.6s linear infinite; }
@keyframes migrate-flow { to { stroke-dashoffset: -24; } }
.migrate__to { fill: var(--brand); }
.migrate__to-ring { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 4 6; transform-origin: 430px 190px; animation: net-spin 40s linear infinite; }
.migrate__label { fill: var(--ink); font-family: var(--font-sans); font-size: 15px; font-weight: 600; }
.migrate__sub { fill: var(--ink-3); font-family: var(--font-sans); font-size: 12px; }

/* ---------- About: centre column animates in with a stagger ---------- */
.js .stagger > * { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .stagger.is-visible > * { opacity: 1; transform: none; }
.stagger > *:nth-child(2) { transition-delay: 0.08s; }
.stagger > *:nth-child(3) { transition-delay: 0.16s; }
.stagger > *:nth-child(4) { transition-delay: 0.24s; }
.stagger > *:nth-child(5) { transition-delay: 0.32s; }
.stagger > *:nth-child(6) { transition-delay: 0.4s; }
.stagger > *:nth-child(n+7) { transition-delay: 0.48s; }
.countries { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.countries__label { width: 100%; font-size: 12px; color: var(--ink-3); }
.countries span:not(.countries__label) { font-size: 12.5px; font-weight: 500; padding: 6px 10px; border-radius: 8px; background: var(--white); border: 1px solid var(--line); color: var(--ink); }

/* ---------- Testimonials: initials instead of stock photos ---------- */
.t-card__avatar { width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; flex: none; }

/* ---------- Platform and tool logos marquee ---------- */
.brands { padding: 0 0 64px; }
.brands .logo-card img { width: 22px; height: 22px; }

/* ---------- Process ---------- */
.process__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; max-width: 1080px; margin: 0 auto; }
.steps { padding-left: 32px; }
.step { padding: 30px 0; }
.step:first-child { padding-top: 16px; }
.step__num { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; transition: color 0.3s; }
.step.is-active .step__num { color: var(--brand); font-weight: 600; }
.step h3 { font-size: 18px; margin: 8px 0 8px; }
.step p { max-width: 36ch; font-size: 14.5px; }
.steps__cta { display: flex; align-items: center; gap: 14px; padding: 8px 0 24px; font-size: 13px; color: var(--ink-3); }
.process__visual {
  position: sticky;
  top: 120px;
  background: var(--cream);
  border-radius: 20px;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}
.tiles { display: flex; gap: 10px; background: var(--white); padding: 8px; border-radius: 16px; box-shadow: var(--shadow-sm); }
.tile {
  width: 56px; height: 56px;
  border-radius: 13px;
  background: #f4f3ec;
  color: #b9b7ae;
  display: grid;
  place-items: center;
  transition: transform 0.45s var(--ease), background-color 0.45s, color 0.45s, box-shadow 0.45s;
}
.tile svg { width: 22px; height: 22px; }
.tile.is-active { transform: translateY(-12px) scale(1.14); color: #fff; box-shadow: var(--shadow-md); }
.tile[data-tile="1"].is-active { background: #7a4a22; }
.tile[data-tile="2"].is-active { background: #2c4c8c; }
.tile[data-tile="3"].is-active { background: #7a2d4b; }
.tile[data-tile="4"].is-active { background: #8a8a3a; }
.tile[data-tile="5"].is-active { background: #4e6a76; }

/* ---------- Testimonials ---------- */
.t-marquee .marquee__track { animation-duration: 60s; }
.t-card {
  width: 330px;
  flex: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.t-card__stars { background: var(--cream); padding: 12px 20px; display: flex; gap: 3px; color: var(--ink); }
.t-card__stars svg { width: 12px; height: 12px; }
.t-card__body { padding: 18px 20px 20px; }
.t-card__quote { font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.t-card__author { display: flex; gap: 10px; align-items: center; margin-top: 18px; }
.t-card__author img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.t-card__name { font-size: 13px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.t-card__role { font-size: 12px; color: var(--ink-3); line-height: 1.3; }
.count-line { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 32px; font-size: 13.5px; }
.count-line strong { background: var(--cream); padding: 4px 8px; border-radius: 6px; color: var(--ink); }

/* ---------- Call CTA (book a call or get a call back) ---------- */
.call { max-width: 980px; margin: 0 auto; background: var(--cream); border-radius: var(--r-xl); padding: 52px 48px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.call h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.1; margin-top: 14px; }
.call > div > p { font-size: 15.5px; max-width: 42ch; margin-top: 14px; }
.call__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.call__form { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.call__form h3 { font-size: 17px; margin-bottom: 4px; }
.call__form > p { font-size: 13.5px; margin: 0 0 16px; }
.call__form .field { margin-bottom: 12px; }
.call__form .btn { width: 100%; }
.call__note { font-size: 12px; color: var(--ink-3); margin-top: 10px; text-align: center; }
.call__success { text-align: center; padding: 16px 0; }
.call__success h3 { font-size: 18px; margin-bottom: 6px; }
.work__more { text-align: center; margin-top: 32px; }
.team--single { grid-template-columns: 320px; justify-content: center; }
.member a { text-decoration: underline dotted; text-underline-offset: 3px; }

/* ---------- FAQ ---------- */
.faq { max-width: 600px; margin: 0 auto; }
.faq__item { background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; font-size: 15px; font-weight: 500; color: var(--ink); text-align: left; }
.faq__q svg { width: 16px; height: 16px; flex: none; color: var(--ink-3); transition: transform 0.3s var(--ease); }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 18px 18px; font-size: 14px; color: var(--ink-2); max-width: 60ch; }
.faq__cta { background: var(--cream); border-radius: 12px; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; }
.faq__cta strong { display: block; font-size: 14px; color: var(--ink); font-weight: 500; }
.faq__cta span { font-size: 12.5px; color: var(--ink-2); }

/* ---------- CTA footer ---------- */
.cta-footer { margin: var(--frame); border-radius: var(--r-xl); overflow: hidden; position: relative; background: var(--cream); color: var(--ink); }
.cta-footer__bg { position: absolute; inset: 0; background: url("../img/cta-bg.jpg") center 60% / cover no-repeat; }
.cta-footer__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--cream) 0%, rgba(254, 245, 214, 0.92) 22%, rgba(254, 245, 214, 0.55) 40%, rgba(254, 245, 214, 0) 62%);
}
.cta-footer__inner { position: relative; padding: 84px 24px 28px; text-align: center; }
.cta-footer__brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; color: var(--ink); }
.cta-footer__brand svg, .cta-footer__brand img { width: 32px; height: 32px; object-fit: contain; }
.cta-footer h2 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); line-height: 1.04; letter-spacing: -0.03em; margin-top: 22px; }
.cta-footer__text { max-width: 44ch; margin: 18px auto 0; font-size: 15px; color: var(--ink-2); }
.cta-footer__actions { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.footer-panel {
  display: inline-block;
  margin-top: 72px;
  background: rgba(255, 255, 253, 0.6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 253, 0.6);
  border-radius: 16px;
  padding: 28px 36px 24px;
  text-align: left;
}
.footer-cols { display: grid; grid-template-columns: repeat(4, auto); gap: 48px 64px; }
.footer-cols h4 { font-size: 12px; font-weight: 500; color: var(--ink-3); margin-bottom: 10px; letter-spacing: 0; }
.footer-cols li { margin-bottom: 4px; }
.footer-cols a { display: inline-block; padding: 4px 0; min-height: 24px; font-size: 14px; color: var(--ink); text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(23, 22, 20, 0.4); }
.footer-cols a:hover { text-decoration-style: solid; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(23, 22, 20, 0.1); font-size: 12.5px; color: var(--ink-2); }

/* ---------- Inner page hero ---------- */
.page-hero { padding: 168px 0 44px; text-align: center; }
.page-hero h1 { font-size: clamp(2.75rem, 6vw, 4.5rem); letter-spacing: -0.03em; line-height: 1.02; }
.page-hero p { max-width: 48ch; margin: 18px auto 0; font-size: 16px; }
.filters { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 4px; margin-top: 26px; }
.filters button { padding: 7px 12px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--ink-2); transition: background-color 0.2s, color 0.2s; }
.filters button:hover { color: var(--ink); }
.filters button.is-active { background: var(--cream); color: var(--ink); }

/* ---------- Services page ---------- */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 48px 0; }
.svc:nth-of-type(even) .svc__media { order: 2; }
.svc__media { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; }
.svc__media img { width: 100%; height: 100%; object-fit: cover; }
.svc h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); margin: 16px 0 12px; line-height: 1.12; }
.svc > div > p { font-size: 15.5px; max-width: 52ch; margin-bottom: 18px; }
.svc__list li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 14.5px; color: var(--ink-2); }
.svc__list svg { width: 16px; height: 16px; color: var(--brand); flex: none; margin-top: 4px; }
.svc .btn { margin-top: 20px; }
.svc--featured { background: var(--cream); border-radius: var(--r-xl); padding: 48px; margin: 0 0 16px; }
.callout { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-top: 20px; }
.callout strong { display: block; font-size: 14px; color: var(--ink); margin-bottom: 8px; font-weight: 500; }
.callout .chips { margin-top: 10px; }

/* ---------- About page ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.story img { border-radius: 20px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.story h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); margin: 16px 0 16px; line-height: 1.12; }
.story p { font-size: 15.5px; margin-bottom: 14px; max-width: 54ch; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { background: var(--cream); border-radius: 16px; padding: 28px; }
.value svg { width: 22px; height: 22px; color: var(--brand); }
.value h3 { font-size: 18px; margin: 18px 0 8px; }
.value p { font-size: 14.5px; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.member img { border-radius: 16px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.member h3 { font-size: 16px; margin: 14px 0 2px; }
.member p { font-size: 13.5px; color: var(--ink-3); }
.stats--row { grid-template-columns: repeat(4, 1fr); }

/* ---------- Contact page ---------- */
.contact { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.form-card h2 { font-size: 22px; margin-bottom: 6px; }
.form-card > p { font-size: 14.5px; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(59, 30, 158, 0.14); }
.form-note { font-size: 12.5px; color: var(--ink-3); margin-top: 12px; }
.form-success { background: var(--cream); border-radius: 14px; padding: 28px; text-align: center; }
.form-success a, .call__success a, .info-list a { display: inline-block; padding: 3px 0; }
.form-success h3 { font-size: 20px; margin-bottom: 8px; }
.info-card { background: var(--cream); border-radius: 20px; padding: 28px; margin-bottom: 20px; }
.info-card h3 { font-size: 17px; margin-bottom: 14px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: 14.5px; }
.info-list svg { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 3px; }
.info-list strong { display: block; font-size: 13px; color: var(--ink-3); font-weight: 500; }
.info-list a { color: var(--ink); }
.next-steps li { display: flex; gap: 12px; padding: 8px 0; font-size: 14.5px; }
.next-steps b { width: 24px; height: 24px; border-radius: 7px; background: var(--white); display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--brand); flex: none; }

/* ---------- Blog page ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { display: block; }
.post__media { border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.post:hover .post__media img { transform: scale(1.04); }
.post__meta { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }
.post h3 { font-size: 18px; margin: 8px 0 6px; line-height: 1.3; }
.post p { font-size: 14px; color: var(--ink-2); }
.notice { background: var(--cream); border-radius: 14px; padding: 16px 20px; font-size: 14px; color: var(--ink-2); max-width: 720px; margin: 0 auto 40px; text-align: center; }

/* ---------- Work cards: water ripple on click, soft sheen on hover ---------- */
.ripple { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 253, 0.55) 0%, rgba(255, 255, 253, 0.25) 45%, rgba(255, 255, 253, 0) 70%); transform: translate(-50%, -50%) scale(0); animation: ripple 0.8s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }

/* ---------- Network: everything connected (dark section, centered logo) ---------- */
.net { margin: 0 var(--frame); background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: 72px 0 60px; position: relative; overflow: hidden; }
.net h2 { color: #fff; }
.net .tag { background: rgba(255, 255, 255, 0.1); color: #fff; }
.net .section-head p { color: rgba(255, 255, 255, 0.7); }
.net__svg { display: block; width: 100%; max-width: 960px; margin: 0 auto; overflow: visible; }
.net__orbit { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-dasharray: 3 9; }
.net__spin { transform-origin: 500px 320px; animation: net-spin 70s linear infinite; }
.net__spin circle { fill: rgba(255, 255, 255, 0.6); }
@keyframes net-spin { to { transform: rotate(360deg); } }
.net__pulse { fill: none; stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.5; transform-origin: 500px 320px; animation: net-pulse 3.4s ease-out infinite; }
.net__pulse--2 { animation-delay: 1.7s; }
@keyframes net-pulse { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(2.2); opacity: 0; } }
.net__core { fill: #fff; }
.net__line { fill: none; stroke: rgba(255, 255, 255, 0.28); stroke-width: 1.5; stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400); transition: stroke 0.3s, stroke-width 0.3s; }
.net__node { opacity: 0; cursor: pointer; outline: none; }
.net__node circle { fill: #2a2926; stroke: rgba(255, 255, 255, 0.2); stroke-width: 1.5; transition: fill 0.3s, stroke 0.3s, transform 0.3s var(--ease); transform-origin: center; transform-box: fill-box; }
.net__node use { color: #fff; }
.net__node text { fill: rgba(255, 255, 255, 0.9); font-family: var(--font-sans); font-size: 14px; font-weight: 500; transition: fill 0.3s; }
.net__node .sub { fill: rgba(255, 255, 255, 0.5); font-size: 12px; font-weight: 400; }
.net__node:hover circle, .net__node:focus-visible circle { fill: var(--c); stroke: var(--c); transform: scale(1.12); }
.net__node:hover .net__line, .net__node:focus-visible .net__line { stroke: var(--c); stroke-width: 2.5; }
.net__node:hover .sub, .net__node:focus-visible .sub { fill: rgba(255, 255, 255, 0.9); }
.net.is-visible .net__line { animation: net-draw 1.4s var(--ease) both; animation-delay: var(--d, 0s); }
.net.is-visible .net__node { animation: net-fade 0.7s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes net-draw { from { stroke-dashoffset: var(--len, 400); } to { stroke-dashoffset: 0; } }
@keyframes net-fade { from { opacity: 0; } to { opacity: 1; } }
.net__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn--ghost { border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }
.net__center { display: none; }
.net__list { display: none; }
@media (max-width: 760px) {
  .net { padding: 64px 0 56px; }
  .net__svg { display: none; }
  .net__center { display: grid; place-items: center; width: 92px; height: 92px; margin: 0 auto 20px; border-radius: 50%; background: #fff; }
  .net__center svg, .net__center img { width: 64px; height: 64px; object-fit: contain; }
  .net__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .net__item { display: flex; gap: 10px; align-items: center; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; padding: 12px; color: #fff; min-height: 60px; }
  .net__item i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; display: block; }
  .net__item span { display: block; font-size: 14px; font-weight: 500; line-height: 1.3; }
  .net__item small { display: block; color: rgba(255, 255, 255, 0.55); font-size: 12px; }
}


/* ---------- Buttons: shine on hover, press feedback ---------- */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%); transform: translateX(-120%); transition: transform 0.7s var(--ease); pointer-events: none; }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: scale(0.98); }
.icon-btn:hover svg { transform: scale(1.1); }
.nav__brand:hover img { transform: rotate(-6deg) scale(1.06); }
.nav__brand img { transition: transform 0.4s var(--ease); }
.icon-btn svg { transition: transform 0.25s var(--ease); }

/* ---------- Headline word reveal on scroll ---------- */
.js .words .w { display: inline-block; opacity: 0; transform: translateY(0.55em) rotate(1.5deg); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); transition-delay: var(--wd, 0s); }
.js .words.is-visible .w { opacity: 1; transform: none; }

/* ---------- Opening loader ---------- */
.loader { position: fixed; inset: 0; z-index: 400; background: var(--bg); display: grid; place-items: center; transition: opacity 0.55s var(--ease), visibility 0.55s; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.loader__mark { width: 96px; height: 96px; object-fit: contain; animation: loader-pop 0.9s var(--ease) both; }
.loader__text { font-weight: 600; font-size: 17px; color: var(--ink); letter-spacing: -0.01em; animation: loader-fade 0.9s var(--ease) 0.25s both; }
.loader__bar { width: 120px; height: 3px; border-radius: 999px; background: rgba(23, 22, 20, 0.08); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 40%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); animation: loader-bar 1s var(--ease) infinite; }
@keyframes loader-pop { from { opacity: 0; transform: scale(0.6) rotate(-20deg); } to { opacity: 1; transform: none; } }
@keyframes loader-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes loader-bar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ---------- Timed call-back nudge ---------- */
.nudge { position: fixed; left: 18px; bottom: 18px; z-index: 240; width: min(340px, calc(100vw - 36px)); background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 16px; box-shadow: var(--shadow-md); animation: nudge-in 0.55s var(--ease) both; }
.nudge[hidden] { display: none; }
.nudge__close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-3); }
.nudge__close:hover { background: var(--cream); color: var(--ink); }
.nudge__close svg { width: 16px; height: 16px; }
.nudge strong { display: block; font-size: 15px; color: var(--ink); font-weight: 500; padding-right: 28px; }
.nudge p { font-size: 13.5px; margin-top: 6px; }
.nudge__actions { display: flex; gap: 8px; margin-top: 14px; }
.nudge__actions .btn { padding: 10px 14px; font-size: 14px; }
@keyframes nudge-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Ask Web Spell assistant ---------- */
.ai-launch { position: fixed; right: 18px; bottom: 18px; z-index: 250; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px 12px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 500; font-size: 14px; box-shadow: var(--shadow-md); transition: transform 0.3s var(--ease), background-color 0.3s; }
.ai-launch::before { content: ""; position: absolute; inset: -4px; border-radius: 999px; border: 2px solid var(--brand); opacity: 0; animation: ai-ring 3.2s ease-out infinite; }
.ai-launch:hover { transform: translateY(-2px); background: var(--brand); }
.ai-launch svg { width: 18px; height: 18px; color: var(--gold); }
@keyframes ai-ring { 0% { transform: scale(0.9); opacity: 0.7; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
.ai { position: fixed; right: 18px; bottom: 78px; z-index: 260; width: min(380px, calc(100vw - 36px)); height: min(580px, calc(100vh - 110px)); background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-md); display: flex; flex-direction: column; overflow: hidden; animation: ai-pop 0.35s var(--ease) both; }
.ai[hidden] { display: none; }
@keyframes ai-pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.ai__head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-bottom: 1px solid var(--line); background: var(--cream); }
.ai__head > div { flex: 1; min-width: 0; }
.ai__head strong { display: block; font-size: 14px; color: var(--ink); font-weight: 600; }
.ai__head small { display: block; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai__avatar { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: var(--gold); display: grid; place-items: center; flex: none; }
.ai__avatar svg { width: 18px; height: 18px; }
.ai__speak, .ai__close { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--ink-2); flex: none; }
.ai__speak:hover, .ai__close:hover { background: rgba(255, 255, 253, 0.8); color: var(--ink); }
.ai__speak svg, .ai__close svg { width: 16px; height: 16px; }
.ai__speak.is-off { color: var(--ink-3); text-decoration: line-through; }
.ai__log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.ai__msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5; animation: ai-msg 0.3s var(--ease) both; }
.ai__msg--bot { background: var(--cream); color: var(--ink); border-bottom-left-radius: 5px; align-self: flex-start; }
.ai__msg--me { background: var(--ink); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
@keyframes ai-msg { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ai__thinking { display: flex; gap: 5px; padding: 12px 14px; }
.ai__thinking i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); opacity: 0.5; animation: ai-dot 1s ease-in-out infinite; }
.ai__thinking i:nth-child(2) { animation-delay: 0.15s; } .ai__thinking i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ai-dot { 0%, 100% { transform: translateY(0); opacity: 0.4; } 50% { transform: translateY(-4px); opacity: 1; } }
.ai__actions { display: flex; gap: 6px; margin-top: 8px; }
.ai__act { font-size: 12.5px; font-weight: 500; padding: 6px 10px; border-radius: 8px; background: var(--white); border: 1px solid var(--line); color: var(--ink); }
.ai__act:hover { border-color: var(--brand); color: var(--brand); }
.ai__chips { display: flex; gap: 6px; overflow-x: auto; padding: 0 14px 10px; scrollbar-width: none; }
.ai__chips::-webkit-scrollbar { display: none; }
.ai__chip { flex: none; font-size: 12.5px; font-weight: 500; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink-2); white-space: nowrap; transition: border-color 0.2s, color 0.2s; }
.ai__chip:hover { border-color: var(--brand); color: var(--brand); }
.ai__form { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); }
.ai__form input { flex: 1; min-width: 0; font: inherit; font-size: 14px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); color: var(--ink); }
.ai__form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(59, 30, 158, 0.14); }
.ai__mic, .ai__send { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; color: var(--ink); background: #f3f2ea; transition: background-color 0.2s, color 0.2s; }
.ai__send { background: var(--ink); color: #fff; }
.ai__send:hover { background: var(--brand); }
.ai__mic:hover { background: var(--cream); }
.ai__mic.is-live { background: var(--brand-2); color: #fff; animation: ai-live 1s ease-in-out infinite; }
@keyframes ai-live { 50% { box-shadow: 0 0 0 6px rgba(240, 112, 44, 0.25); } }
.ai__mic svg, .ai__send svg { width: 17px; height: 17px; }
.ai__note { font-size: 11px; color: var(--ink-3); padding: 0 14px 10px; text-align: center; }
@media (max-width: 640px) {
  .ai-launch span { display: none; }
  .ai-launch { padding: 14px; }
  .ai { right: 12px; left: 12px; width: auto; bottom: 74px; height: min(560px, calc(100vh - 100px)); }
  .nudge { left: 12px; right: 84px; width: auto; }
}


/* ---------- Fold reveal (3D fold-in from the top edge) ---------- */
.js .reveal.fold { transform: perspective(1100px) rotateX(-14deg) translateY(28px); transform-origin: top center; }
.js .reveal.fold.is-visible { transform: none; }

/* ---------- Scroll progress bar ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 500; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 0 3px 3px 0; pointer-events: none; transition: width 0.1s linear; }

/* ---------- Tilt cards and magnetic buttons (set by main.js) ---------- */
[data-tilt] { transition: transform 0.35s var(--ease); transform-style: preserve-3d; will-change: transform; }
.is-magnet { transition: transform 0.25s var(--ease); }

/* ---------- Spotlight that follows the pointer on the dark section ---------- */
.net::before { content: ""; position: absolute; inset: 0; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 40%), rgba(240, 112, 44, 0.16), rgba(59, 30, 158, 0.10) 40%, transparent 70%); opacity: 0; transition: opacity 0.6s; pointer-events: none; }
.net:hover::before { opacity: 1; }
.net .container { position: relative; }

/* ---------- AI strip under the hero ---------- */
.ai-strip { padding: 8px 0 0; }
.ai-strip__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ai-strip__item { display: flex; gap: 12px; align-items: flex-start; background: var(--cream); border-radius: 14px; padding: 16px 18px; transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.ai-strip__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.ai-strip__item svg { width: 20px; height: 20px; color: var(--brand); flex: none; margin-top: 2px; }
.ai-strip__item strong { display: block; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.ai-strip__item span { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.about__img { transition: transform 0.7s var(--ease); }
.about__img:hover { transform: scale(1.02); }


/* ---------- Hero video ---------- */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ai-strip { padding: 0 0 8px; }

/* ---------- Work page: intro band ---------- */
.work-intro { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: stretch; margin: 8px 0 40px; }
.work-intro__story { background: var(--cream); border-radius: 20px; padding: 28px 30px; }
.work-intro__story h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 12px; }
.work-intro__story p { font-size: 14.5px; margin-bottom: 10px; }
.work-intro__see { display: grid; gap: 12px; }
.work-intro__see li { display: flex; gap: 12px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 14px; }
.work-intro__see svg { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 2px; }
.work-intro__see strong { display: block; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.work-intro__see span { color: var(--ink-2); font-size: 13.5px; }
.stats--three { grid-template-columns: repeat(3, 1fr); margin-bottom: 12px; }
.filters button { padding: 9px 14px; font-size: 13.5px; }

/* ---------- Services page: stacked fold-over screens ---------- */
.svc-stack { display: grid; gap: 20px; padding-bottom: 40px; }
.svc-stack .svc { position: sticky; top: 96px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 40px; min-height: min(72vh, 680px); box-shadow: 0 -8px 30px rgba(23, 22, 20, 0.06); margin: 0; }
.svc-stack .svc.svc--featured { background: var(--cream); }
.svc-stack .svc:nth-child(1) { z-index: 1; } .svc-stack .svc:nth-child(2) { z-index: 2; } .svc-stack .svc:nth-child(3) { z-index: 3; }
.svc-stack .svc:nth-child(4) { z-index: 4; } .svc-stack .svc:nth-child(5) { z-index: 5; } .svc-stack .svc:nth-child(6) { z-index: 6; }
.svc__num { position: absolute; top: 22px; right: 26px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); letter-spacing: 0.06em; }
.svc-stack .svc__media { aspect-ratio: 16 / 11; }
@media (max-width: 900px) {
  .work-intro { grid-template-columns: 1fr; }
  .stats--three { grid-template-columns: 1fr 1fr 1fr; }
  .svc-stack .svc { top: 84px; padding: 22px; min-height: 0; }
  .svc__num { top: 14px; right: 18px; }
}
@media (max-width: 640px) { .stats--three { grid-template-columns: 1fr; } }
.migrate__mobile { display: none; }
@media (max-width: 640px) {
  .migrate__svg { display: none; }
  .migrate__mobile { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
  .migrate__mobile-to { width: 100%; display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 12px 14px; border-radius: 12px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 500; }
  .migrate__mobile-to svg { color: var(--gold); }
}



/* ---------- Hover layer: custom cursor, glare, lifts, pops ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 600; pointer-events: none; display: none; }
.cursor__ring { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 1.5px solid rgba(69, 32, 140, 0.55); transition: width 0.25s var(--ease), height 0.25s var(--ease), margin 0.25s var(--ease), border-color 0.25s, background-color 0.25s; }
.cursor__dot { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--brand); }
.cursor.is-link .cursor__ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: rgba(240, 112, 44, 0.7); background: rgba(240, 112, 44, 0.08); }
.cursor.is-down .cursor__ring { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
@media (hover: hover) and (pointer: fine) { .has-cursor .cursor { display: block; } }

.work-card__frame::before { content: ""; position: absolute; inset: 0; z-index: 2; background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.28), transparent 60%); opacity: 0; transition: opacity 0.35s; pointer-events: none; }
.work-card:hover .work-card__frame::before { opacity: 1; }

.stat { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.35s; }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); background: var(--cream-deep); }
.stat:hover .stat__num { color: var(--brand); }
.stat__num { transition: color 0.3s; }

.logo-card { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s, color 0.3s; }
.logo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--brand); color: var(--brand); }

.t-card { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.t-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.t-card__stars svg { transition: transform 0.3s var(--ease), color 0.3s; }
.t-card:hover .t-card__stars svg { color: var(--brand-2); animation: star-pop 0.5s var(--ease) both; }
.t-card:hover .t-card__stars svg:nth-child(2) { animation-delay: 0.06s; } .t-card:hover .t-card__stars svg:nth-child(3) { animation-delay: 0.12s; }
.t-card:hover .t-card__stars svg:nth-child(4) { animation-delay: 0.18s; } .t-card:hover .t-card__stars svg:nth-child(5) { animation-delay: 0.24s; }
@keyframes star-pop { 0% { transform: scale(1); } 45% { transform: scale(1.5) rotate(12deg); } 100% { transform: scale(1); } }

.chip, .countries span:not(.countries__label), .tool { transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease); }
.chip:hover, .countries span:not(.countries__label):hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-2px); }
.tool:hover { transform: translateY(-2px); border-color: var(--brand); }

.tab svg { transition: transform 0.3s var(--ease), color 0.3s; }
.tab:hover svg { transform: rotate(-12deg) scale(1.15); color: var(--brand); }

.tile:hover { transform: translateY(-6px) scale(1.06); background: #eae8df; color: var(--brand); }

.footer-cols a { position: relative; text-decoration: none; }
.footer-cols a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transform: scaleX(0.35); transform-origin: left; opacity: 0.5; transition: transform 0.3s var(--ease), opacity 0.3s; }
.footer-cols a:hover::after { transform: scaleX(1); opacity: 1; }

.btn svg { transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.pill { transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.nav__brand:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.nav__brand svg { transition: transform 0.5s var(--ease); }
.nav__brand:hover svg { transform: rotate(15deg) scale(1.1); }

.value, .flip__front, .work-intro__see li, .ai-strip__item, .info-card { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.value:hover, .work-intro__see li:hover, .info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.value:hover svg { animation: star-pop 0.5s var(--ease) both; }

.post { transition: transform 0.35s var(--ease); }
.post:hover { transform: translateY(-4px); }
.post:hover h3 { color: var(--brand); }
.post h3 { transition: color 0.3s; }

.feature__caption { transition: transform 0.35s var(--ease), background-color 0.3s, color 0.3s; }
.feature:hover .feature__caption { transform: translateY(-4px); background: var(--brand); color: #fff; }


/* ---------- About: pinned side images that change with each step ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 28px; align-items: start; }
.about__side { position: sticky; top: 96px; height: min(calc(100svh - 128px), 620px); }
.about__pic { position: absolute; inset: 0; margin: 0; border-radius: 20px; overflow: hidden; opacity: 0; transform: scale(1.04); transition: opacity 0.7s var(--ease), transform 1s var(--ease); background: var(--cream); }
.about__pic img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 8s var(--ease); }
.about__side:hover .about__pic img { transform: scale(1.06); }
.about__pic.is-active { opacity: 1; transform: none; }
.about__pic figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(255, 255, 253, 0.92); color: var(--ink); font-size: 12.5px; font-weight: 500; padding: 6px 10px; border-radius: 8px; }
.about__text { padding: 0 8px; }
.about__step { min-height: min(calc(100svh - 128px), 620px); display: flex; flex-direction: column; justify-content: center; padding: 20px 8px; }
.about__step h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.12; margin: 14px 0 12px; }
.about__step p { font-size: 14.5px; line-height: 1.6; margin-bottom: 12px; }
.about__step .stats { margin-top: 8px; }
.about__step .countries { margin-top: 10px; }
.about__step .tag { align-self: flex-start; }
@media (max-width: 1100px) {
  .about__grid { grid-template-columns: 220px 1fr; }
  .about__grid .about__side--r { display: none; }
}
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: 12px; }
  .about__side--l { position: relative; top: 0; height: 220px; margin-bottom: 4px; }
  .about__step:first-child { padding-top: 8px; }
  .about__pic { border-radius: 14px; }
  .about__step { min-height: 0; padding: 26px 0 8px; }
}

/* ---------- Reveal on scroll ---------- */
/* Only hidden when JavaScript is running (the html element gets a "js" class in <head>),
   so content is never invisible if a script fails to load. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .process__grid { gap: 40px; }
  .steps { padding-left: 0; }
}
@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .ai-strip__grid { grid-template-columns: 1fr; gap: 10px; }
  .nav { display: flex; justify-content: space-between; max-width: none; }
  .site-header.is-scrolled .nav { max-width: none; }
  .nav__links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    width: auto;
    justify-self: stretch;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    display: none;
  }
  .site-header.is-open .nav__links { display: flex; }
  .nav__links a { padding: 14px 16px; min-height: 44px; }
  .nav__toggle { display: grid; }
  /* Touch targets of at least 44 px on touch layouts (Fitts's law) */
  .icon-btn { width: 44px; height: 44px; }
  .nav__cta .btn { min-height: 44px; }
  .tab { padding: 12px 14px; min-height: 44px; }
  .filters button { padding: 10px 14px; min-height: 40px; }
  .faq__q { padding: 16px 18px; min-height: 52px; }
  .footer-cols li { margin-bottom: 10px; }
  .footer-cols a { display: inline-block; padding: 4px 0; }
  .hero { height: auto; min-height: 0; }
  .hero__inner { padding: 104px 24px 24px; gap: 28px; }
  .hero__bottom { flex-direction: column; align-items: flex-start; }
  .hero__card { width: 220px; }
  .split-head { grid-template-columns: 1fr; gap: 16px; }
  .split-head p { padding-bottom: 0; }
  .tabs { grid-template-columns: 1fr; }
  .tabs__list { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .tabs__list::-webkit-scrollbar { display: none; }
  .process__grid { grid-template-columns: 1fr; }
  .process__visual { position: relative; top: 0; aspect-ratio: 16 / 7; order: -1; }
  .work-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .step { padding: 24px 0; }
  .svc, .story, .contact, .call, .migrate { grid-template-columns: 1fr; gap: 28px; }
  .migrate { padding: 28px 22px; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .call { padding: 32px 24px; }
  .team--single { grid-template-columns: 1fr; }
  .svc:nth-of-type(even) .svc__media { order: 0; }
  .svc--featured { padding: 28px; }
  .values, .team, .posts { grid-template-columns: 1fr 1fr; }
  .stats--row { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: repeat(2, auto); gap: 24px 48px; }
  .footer-panel { display: block; padding: 24px; }
}
@media (max-width: 640px) {
  :root { --gutter: 18px; --frame: 8px; }
  body { padding-bottom: 72px; }
  .nudge { display: none !important; }
  .hero__badge-more { display: none; }
  .hero { height: auto; min-height: min(calc(100svh - 16px), 720px); }
  .hero h1 { font-size: clamp(1.9rem, 8.4vw, 2.5rem); }
  .hero__text { font-size: 15.5px; }
  .section-head h2, .split-head h2 { font-size: clamp(1.7rem, 7.6vw, 2.2rem); }
  .about__step h2 { font-size: 1.5rem; }
  .logo-card { padding: 12px 16px; font-size: 14px; }
  .logo-card--img img { height: 24px; max-width: 120px; }
  .t-card { width: 280px; }
  .feature__text { padding: 12px 6px 4px; }
  .feature__media { aspect-ratio: auto; overflow: visible; border-radius: 0; }
  .feature__media img { aspect-ratio: 16 / 10; height: auto; border-radius: 14px; }
  .feature__caption { position: static; margin-top: 10px; font-size: 13px; padding: 10px 12px; box-shadow: none; border: 1px solid var(--line); }
  .net__actions .btn, .call__actions .btn, .cta-footer__actions .btn, .migrate__actions .btn { width: 100%; }
  .work-card__body { padding: 10px 4px 6px; }
  .footer-panel { padding: 20px 16px; }
  .footer-cols { gap: 18px 24px; }
  /* Keep the primary action reachable on phones; the chat icon is the one that hides */
  .nav__cta .icon-btn:not(.nav__toggle) { display: none; }
  .nav__cta .btn { padding: 11px 12px; }
  .hero__inner { padding: 96px 18px 18px; }
  .hero h1 { max-width: none; font-size: 1.9rem; }
  .hero__card { width: 200px; }
  .feature { grid-template-columns: 1fr; padding: 16px; }
  .feature__text { padding: 8px 4px; }
  .work-grid { grid-template-columns: 1fr; gap: 16px; }
  .values, .team, .posts { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .flip { height: 170px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .faq__cta { flex-direction: column; align-items: flex-start; }
  .cta-footer__actions { flex-direction: column; align-items: stretch; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .services { padding: 64px 0; }
  .tabs__panel { padding: 18px; }
  .page-hero { padding-top: 140px; }
  .section-head h2 br, .split-head h2 br, .page-hero h1 br, .cta-footer h2 br { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track, .hero__inner > *, .hero--split .hero__copy > *, .hero__media, .hero__frame, .net__spin, .net__pulse { animation: none; }
  .net__line, .net.is-visible .net__line { stroke-dashoffset: 0; animation: none; }
  .net__node, .net.is-visible .net__node { opacity: 1; animation: none; }
  .tile, .work-card img, .btn, .hero__card, .flip__inner { transition: none; }
  .migrate__path, .migrate__to-ring, .ripple { animation: none; }
  .tabs__panel.is-active .chip, .tabs__panel.is-active .tool, .tabs__panel.is-active .tabs__media { animation: none; }
  .js .stagger > * { opacity: 1; transform: none; transition: none; }
  .js .words .w { opacity: 1; transform: none; transition: none; }
  .js .reveal.fold { transform: none; }
  [data-tilt], .is-magnet { transition: none; transform: none !important; }
  .cursor { display: none !important; }
  .t-card:hover .t-card__stars svg, .value:hover svg { animation: none; }
  .progress { display: none; }
  .ai-launch::before, .loader__mark, .loader__text, .loader__bar i, .nudge, .ai, .ai__msg, .ai__thinking i { animation: none; }
  .btn::after { display: none; }
}


/* ---------- Mobile optimisation (2026-09-05) ---------- */
@media (max-width: 640px) {
  /* Compact two-column work grids: half the scroll length on phones, browser frame kept */
  .work-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .work-card__shot { aspect-ratio: 4 / 3; }
  .work-card__body { padding: 8px 2px 4px; gap: 6px; }
  .work-card__name { font-size: 13.5px; }
  .work-card__meta { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .work-card__go { display: none; }
  /* Tap targets of at least 40 px without changing the layout */
  .footer-cols a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 0; }
  .footer-cols li { margin-bottom: 0; }
  .link-arrow { padding: 8px 0; min-height: 40px; }
  .info-list a, main p > a:not(.btn) { padding-top: 8px; padding-bottom: 8px; }
  .info-list li { padding: 4px 0; }
  /* Nothing below 12 px on small screens */
  .logos__label { font-size: 12px; letter-spacing: 0.06em; }
  .tool { font-size: 12px; }
  .product__status { font-size: 12px; }
  .svc__num { font-size: 12px; }
}
@media (max-width: 400px) {
  /* Narrow phones: keep the brand pill and the CTA pill inside the screen */
  .nav { gap: 8px; }
  .nav__brand { padding: 6px 12px 6px 8px; font-size: 14px; gap: 7px; }
  .nav__brand svg, .nav__brand img { width: 34px; height: 34px; }
  .nav__cta { padding: 5px; gap: 4px; }
  .nav__cta .btn { padding: 9px 10px; font-size: 12.5px; min-height: 40px; }
  .icon-btn { width: 40px; height: 40px; }
}


/* ---------- Phone hero: one clear message, then the actions (2026-09-07) ---------- */
@media (max-width: 640px) {
  .hero { height: auto; min-height: min(calc(100svh - 16px), 760px); }
  .hero__bg::after { background: linear-gradient(0deg, rgba(23, 18, 31, 0.82) 0%, rgba(23, 18, 31, 0.5) 45%, rgba(23, 18, 31, 0.28) 100%); }
  .hero__inner { padding: 92px 20px 20px; justify-content: center; gap: 0; }
  .hero__inner > div, .hero__bottom { display: contents; }
  .hero__badge { order: 1; font-size: 12px; }
  .hero h1 { order: 2; font-size: clamp(2.15rem, 9.8vw, 2.7rem); line-height: 1.04; margin-top: 14px; max-width: none; }
  .hero__text { order: 3; margin-top: 14px; max-width: none; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, 0.92); }
  .hero__text-more { display: none; }
  .hero__actions { order: 4; flex-direction: column; gap: 8px; margin-top: 20px; }
  .hero__actions .btn { width: 100%; justify-content: center; min-height: 50px; font-size: 15.5px; }
  .hero__actions .btn + .btn { display: none; } /* the work strip below does this job on phones */
  .hero__card { order: 5; width: 100%; margin-top: 18px; display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; text-align: left; border-radius: 12px; }
  .hero__card img, .hero__card video { width: 96px; height: 60px; aspect-ratio: auto; flex: none; border-radius: 7px; }
  .hero__card span { padding: 0; font-size: 14px; flex: 1; }
  .hero__card span::after { content: " \2192"; }
  .hero__badge, .hero h1, .hero__text, .hero__actions, .hero__card { animation: rise 0.9s var(--ease) both; }
  .hero h1 { animation-delay: 0.05s; } .hero__text { animation-delay: 0.15s; } .hero__actions { animation-delay: 0.25s; } .hero__card { animation-delay: 0.35s; }
}

/* ---------- Same motion on phones as on desktop (2026-09-07) ---------- */
/* Network diagram: drawn on phones too (main.js crops the viewBox); labels bigger, sub-labels off */
@media (max-width: 760px) {
  .net__svg { display: block; max-width: 420px; }
  .net__center, .net__list { display: none; }
  .net__node text { font-size: 22px; }
  .net__node .sub { display: none; }
  .net__node circle { r: 40px; }
}
/* Migration flow: chips plus the animated flow drawing (main.js crops the viewBox) */
@media (max-width: 640px) {
  .migrate__svg { display: block; margin-top: 14px; }
  .migrate__from { display: none; }
  .migrate__label { font-size: 17px; }
  .migrate__sub { font-size: 13px; }
}
/* Touch screens: cards pan and shine while on screen, the dark section's spotlight drifts */
@property --mx { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --my { syntax: "<percentage>"; inherits: true; initial-value: 40%; }
@keyframes card-pan { from { object-position: top; } to { object-position: bottom; } }
@keyframes card-sheen { from { transform: translateX(-110%); } to { transform: translateX(110%); } }
@keyframes spot-drift { from { --mx: 15%; --my: 25%; } to { --mx: 85%; --my: 75%; } }
@media (hover: none) {
  .work-card.is-inview .work-card__shot img, .feature.is-inview .feature__media img { animation: card-pan 12s ease-in-out infinite alternate; }
  .work-card.is-inview .work-card__frame::after { animation: card-sheen 1.1s var(--ease) 0.3s both; }
  .net.is-visible::before { opacity: 1; animation: spot-drift 14s ease-in-out infinite alternate; }
}
@media (prefers-reduced-motion: reduce) {
  .work-card.is-inview .work-card__shot img, .feature.is-inview .feature__media img, .work-card.is-inview .work-card__frame::after, .net.is-visible::before { animation: none; }
}

/* ---------- Header: breathing room above the pills, equal pill heights (2026-09-07) ---------- */
.site-header { padding-top: calc(var(--frame) + 12px); }
.pill { min-height: 56px; }
@media (max-width: 900px) { .pill { min-height: 58px; } .site-header { padding-top: calc(var(--frame) + 10px); } }
@media (max-width: 640px) { .site-header { padding-top: calc(var(--frame) + 8px); } .hero__inner { padding-top: 100px; } }
@media (max-width: 400px) { .pill { min-height: 52px; } }

/* ---------- Phone hero: content-fit height, content anchored under the header (2026-09-07) ---------- */
@media (max-width: 640px) {
  .hero { min-height: 0; height: auto; }
  .hero__inner { justify-content: flex-start; padding: 100px 20px 22px; }
  .hero__text { margin-top: 12px; }
  .hero__actions { margin-top: 18px; }
  .hero__card { margin-top: 14px; padding: 8px 12px 8px 8px; gap: 12px; }
  .hero__card img, .hero__card video { order: -1; width: 88px; height: 58px; }
  .hero__card span { font-size: 14.5px; font-weight: 600; line-height: 1.25; }
  .hero__card span::after { content: "Client sites, live  \2192"; display: block; margin-top: 3px; font-weight: 400; font-size: 12.5px; color: var(--ink-3); }
}

/* ---------- Phone hero: paragraph hidden, headline and actions only (2026-09-07) ---------- */
@media (max-width: 640px) {
  .hero__text { display: none; }
  .hero__actions { margin-top: 22px; }
}
