@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 700; font-display: swap; src: url("/fonts/BarlowCondensed-700i.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 800; font-display: swap; src: url("/fonts/BarlowCondensed-800i.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 900; font-display: swap; src: url("/fonts/BarlowCondensed-900i.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/fonts/Inter.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Fallback sized to match Barlow Condensed so the swap barely moves the layout */
@font-face { font-family: "Barlow Condensed Fallback"; src: local("Arial Narrow"), local("Arial"); size-adjust: 88%; ascent-override: 92%; descent-override: 22%; }

/* MD Solutions — static rebuild of mdsolutions.uk
   Brand: near-black + electric blue, heavy italic condensed headings (from the MD logo). */

:root {
  --bg: #05060a;
  --surface: #0c0f17;
  --surface-2: #121725;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --muted: #a3abbd;
  --blue: #0a74f6;
  --blue-deep: #0369d9;
  --blue-light: #1d93f5;
  --glow: rgba(10, 116, 246, 0.45);
  --white-card: #ffffff;

  --font-display: "Barlow Condensed", "Barlow Condensed Fallback", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --wrap: 1240px;
  --gutter: 16px;
  --section: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section: 104px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 600;
}
.skip-link:focus { top: 16px; }
.skip-link { background: var(--blue-deep); }
.marquee.big:focus-visible, .skip-link:focus-visible, .btn-primary:focus-visible { outline-color: #fff; }

.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;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.01em;
}
.h2 { font-size: clamp(44px, 11vw, 120px); }
.h3 { font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 30px; line-height: 1; letter-spacing: 0.01em; }
.eyebrow {
  font-family: var(--font-display); font-weight: 700; font-style: italic; text-transform: uppercase;
  font-size: 18px; letter-spacing: 0.06em; color: var(--muted);
}
.blue { color: var(--blue); }
.grad {
  background: linear-gradient(180deg, var(--blue-light) 0%, var(--blue) 55%, var(--blue-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 0.08em; /* stop italic last letter clipping */
}
.muted { color: var(--muted); }
.lead { font-size: 17px; color: var(--muted); max-width: 34em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border-radius: 999px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s;
}
.btn-primary { background: var(--blue-deep); color: #fff; box-shadow: 0 8px 28px -8px var(--glow), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { background: #0256b5; transform: translateY(-2px); box-shadow: 0 14px 36px -8px var(--glow), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-ghost { border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--blue); background: rgba(10,116,246,.1); }
.btn .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.btn-primary .dot { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.2); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Letter roll-up on hover (recreates the Framer nav effect) */
.roll { display: inline-block; position: relative; overflow: hidden; vertical-align: top; line-height: 1.25; }
.roll > span { display: block; transition: transform 0.45s var(--ease); }
.roll > span + span { position: absolute; inset: 100% 0 auto 0; }
a:hover .roll > span, a:focus-visible .roll > span, button:hover .roll > span { transform: translateY(-100%); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 6, 10, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 22px; text-transform: uppercase; letter-spacing: .01em; }
.brand img { width: 44px; height: 44px; }
.brand b { color: var(--blue); font-weight: 900; }
.nav-links { display: none; gap: 32px; font-weight: 500; font-size: 15px; color: var(--muted); }
.nav-links a { padding: 8px 0; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"] { position: relative; }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--blue); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-cta { display: none; }
.socials { display: none; gap: 4px; }
.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--muted); transition: color .2s, background-color .2s;
}
.icon-btn:hover { color: var(--text); background: rgba(255,255,255,.06); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; position: relative; transition: transform .3s var(--ease), background-color .2s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { border-top: 1px solid var(--line); padding: 8px var(--gutter) 24px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 30px; }
.mobile-menu .btn { margin-top: 20px; width: 100%; justify-content: center; }

@media (min-width: 900px) {
  .nav-links, .socials, .nav-cta { display: flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: 12px; }

/* Grid backdrop with ✦ markers (nod to the Framer layout) */
.gridlines { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.gridlines::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.spark { position: absolute; width: 14px; height: 14px; color: var(--blue-light); opacity: .8; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 72px; position: relative; overflow: hidden; text-align: center; }
.hero::after {
  content: ""; position: absolute; left: 50%; top: 38%; width: 900px; height: 520px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(10,116,246,.32), transparent);
  pointer-events: none; z-index: -1;
}
.hero .wrap { position: relative; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-strong);
  font-size: 14px; font-weight: 500;
}
.pill img { width: 28px; height: 28px; border-radius: 50%; background: #fff; }
.pill .live { width: 8px; height: 8px; border-radius: 50%; background: #2bd96b; box-shadow: 0 0 0 4px rgba(43,217,107,.18); }
.hero-title {
  margin: 28px auto 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 0.18em; row-gap: 0.06em;
  font-size: clamp(64px, 15vw, 200px);
}
.hero-title .word { display: inline-block; }
.hero-avatar {
  width: 0.92em; height: 0.92em; flex: none;
  border-radius: 0.2em; overflow: hidden; background: var(--white-card);
  box-shadow: 0 0 0 0.04em #fff, 0 0 0 0.075em var(--blue), 0 20px 60px -10px var(--glow);
  transform: rotate(-4deg);
}
.hero-avatar video, .hero-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero .lead { margin: 28px auto 0; text-align: center; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Free demo strip */
.demo-strip { margin: 56px auto 0; max-width: 920px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: left; }
.demo-strip li { background: var(--surface); padding: 18px 20px; display: flex; gap: 14px; align-items: center; }
.demo-strip svg { width: 28px; height: 28px; color: var(--blue-light); flex: none; }
.demo-strip strong { display: block; font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 21px; line-height: 1.1; letter-spacing: .01em; }
.demo-strip span { font-size: 14px; color: var(--muted); }
@media (min-width: 720px) { .demo-strip { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Projects ---------- */
.project-card { display: block; }
.project-card .thumb {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong);
  background: #0c0f17; aspect-ratio: 4 / 3;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.project-card:hover .thumb, .project-card:focus-visible .thumb { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 24px 60px -20px var(--glow); transform: translateY(-4px); }
.project-card:hover .thumb img { transform: scale(1.03); }
.project-meta { display: flex; align-items: center; gap: 10px; padding: 16px 4px 0; }
.project-meta h3 { font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 26px; line-height: 1; }
.project-meta p { font-size: 13px; color: var(--muted); }
.project-meta .arrow { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); transition: background-color .3s, border-color .3s, transform .3s var(--ease); flex: none; }
.project-card:hover .arrow { background: var(--blue); border-color: var(--blue); transform: rotate(-45deg); }
.arrow svg { width: 16px; height: 16px; }

.project-grid { display: grid; gap: 40px 24px; }
@media (min-width: 720px) { .project-grid { grid-template-columns: 1fr 1fr; } }
/* Home page: all four projects visible at once, 2x2 on phone/tablet, one row on desktop */
.project-grid.row { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
.project-grid.row .project-meta { padding-top: 12px; }
.project-grid.row .project-meta h3 { font-size: 20px; }
.project-grid.row .project-meta p { font-size: 12px; }
.project-grid.row .project-meta .arrow { display: none; }
@media (min-width: 720px) { .project-grid.row { gap: 40px 24px; } .project-grid.row .project-meta h3 { font-size: 24px; } .project-grid.row .project-meta .arrow { display: grid; } }
@media (min-width: 1100px) { .project-grid.row { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

/* ---------- About ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.speech { position: relative; display: inline-block; background: #fff; color: #05060a; font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 14px 14px 14px 4px; }
.speech em { font-style: normal; color: var(--blue); }
.sticker { background: var(--white-card); border-radius: var(--radius); overflow: hidden; }
.badge { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--blue-deep); color: #fff; font-size: 11px; font-weight: 600; font-style: normal; vertical-align: 2px; }

/* Cut-out avatars: a soft blue halo behind, a little float */
.avatar { display: block; width: 100%; height: auto; position: relative; z-index: 1; filter: drop-shadow(0 24px 30px rgba(0,0,0,.55)); }
.halo { position: absolute; left: 50%; top: 55%; width: 90%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10,116,246,.45), rgba(10,116,246,.12) 60%, transparent); pointer-events: none; }
.floaty { animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-8px); } }

.about { display: grid; gap: 40px; align-items: center; }
.about-copy > * + * { margin-top: 16px; }
.about-copy .h2 { margin-top: 10px; }
.about-lead { font-size: clamp(20px, 2.4vw, 24px); line-height: 1.4; font-weight: 500; color: var(--text); max-width: 30em; }
.about-copy .muted { max-width: 36em; }
.trusted { margin-top: 28px !important; padding-top: 20px; border-top: 1px solid var(--line); }
.trusted ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.trusted a { display: inline-block; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; font-weight: 500; transition: border-color .3s, background-color .3s; }
.trusted a:hover { border-color: var(--blue); background: rgba(10,116,246,.12); }
.about-art { position: relative; max-width: 460px; width: 100%; margin: 0 auto; padding-top: 24px; }
.about-art .speech { position: absolute; top: 12%; right: -4%; z-index: 2; }
@media (max-width: 899px) { .about-art .speech { display: none; } }
@media (min-width: 900px) { .about { grid-template-columns: 1.1fr 1fr; gap: 64px; } }

.gets-head { display: block; margin: 80px 0 24px; }
.gets-head .muted { margin-top: 8px; max-width: 34em; }
.h3-big { font-size: clamp(40px, 7vw, 72px); }
.gets-grid { display: grid; gap: 12px; }
.get { position: relative; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); }
.get:hover { border-color: rgba(10,116,246,.6); transform: translateY(-3px); }
.get svg { width: 32px; height: 32px; color: var(--blue-light); margin-bottom: 18px; }
.get strong { display: block; font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 24px; line-height: 1.05; letter-spacing: .01em; }
.get p { margin-top: 8px; font-size: 14px; color: var(--muted); }
.get.feature { background: linear-gradient(160deg, rgba(10,116,246,.28), rgba(10,116,246,.06) 60%), var(--surface); border-color: rgba(10,116,246,.55); }
@media (min-width: 600px) { .gets-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .gets-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; user-select: none; }
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee-item { display: flex; align-items: center; gap: 28px; padding-right: 28px; white-space: nowrap; }
.marquee-item .display { font-size: clamp(56px, 9vw, 120px); }
.marquee-item .sub { font-size: 14px; color: var(--muted); line-height: 1.2; }
.marquee-item .star { width: 28px; height: 28px; color: var(--blue); flex: none; }
.marquee.big { padding: 28px 0; border: 0; background: var(--blue); color: #fff; display: block; transition: background-color .3s; }
.marquee.big:hover { background: var(--blue-deep); }
.marquee.big .star { color: #fff; }
.marquee.big .marquee-track { animation-duration: 22s; }
.marquee.big:hover .marquee-track { animation-play-state: paused; }
.outline-text { -webkit-text-stroke: 2px #fff; color: transparent; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track, .marquee:focus-visible .marquee-track, .ticker:hover .marquee-track,
.paused .marquee-track { animation-play-state: paused; }
.paused *, .paused *::before, .paused *::after { animation-play-state: paused !important; }
.motion-toggle { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; padding: 10px 0; min-height: 44px; }
.icon-btn.motion-toggle { padding: 0; }
.icon-btn.motion-toggle[aria-pressed="true"] { color: var(--blue-light); }
.motion-toggle:hover { color: var(--text); }
.motion-toggle svg { width: 14px; height: 14px; }

/* ---------- Services ---------- */
.services { margin-top: 48px; border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px 20px;
  padding: 24px 0; border-bottom: 1px solid var(--line); position: relative;
}
.service .num { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 20px; color: var(--blue); width: 32px; }
.service h3 { font-size: clamp(34px, 5vw, 56px); transition: transform .4s var(--ease), color .3s; }
.service .tag { grid-column: 2 / 4; justify-self: start; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13px; color: var(--muted); transition: border-color .3s, color .3s, background-color .3s; }
.service .ico { display: none; width: 72px; height: 72px; object-fit: contain; transition: transform .5s var(--ease); }
.service:hover h3 { transform: translateX(8px); color: var(--blue-light); }
.service:hover .tag { border-color: var(--blue); background: rgba(10,116,246,.12); color: #fff; }
.service:hover .ico { transform: rotate(-8deg) scale(1.1); }
@media (min-width: 720px) {
  .service { grid-template-columns: 56px 1fr auto auto; padding: 28px 0; }
  .service .tag { grid-column: auto; justify-self: end; }
  .service .ico { display: block; }
}

/* ---------- Process ---------- */
.process { display: grid; gap: 20px; }
.step {
  position: sticky; top: 96px;
  display: grid; gap: 24px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 -20px 50px -20px rgba(0,0,0,.8);
}
.step:nth-child(2) { top: 112px; }
.step:nth-child(3) { top: 128px; }
.step .n { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 88px; line-height: .8; color: transparent; -webkit-text-stroke: 1.5px var(--blue); }
.step h3 { font-size: clamp(36px, 5vw, 56px); margin: 16px 0 12px; }
.step p { color: var(--muted); max-width: 30em; }
.step { overflow: hidden; }
.step-art { position: relative; max-width: 300px; width: 100%; margin: 0 auto; }
.step-art .halo { top: 60%; }
.avatar.tall { width: auto; max-width: 100%; height: 340px; margin: 0 auto; }
/* Green-screen video avatars: the still shows until the video is keyed and playing */
.avatar-live { display: block; position: relative; z-index: 1; }
.avatar-live > canvas { display: block; width: 100%; height: auto; filter: drop-shadow(0 24px 30px rgba(0,0,0,.55)); }
.avatar-live.live > img { display: none; }
.avatar-live.tall { width: 100%; max-width: 300px; margin: 0 auto; display: flex; justify-content: center; }
.avatar-live.tall > canvas, .avatar-live.tall > img { width: auto; height: 340px; max-width: 100%; }
.about-art .avatar-live, .step-art .avatar-live, .testi-art .avatar-live, .faq-art .avatar-live, .page-hero-art .avatar-live { animation: bob 6s ease-in-out infinite; }
/* Still avatars get a slow bob so they feel alive */
.about-art .avatar, .step-art .avatar, .testi-art .avatar, .faq-art .avatar, .page-hero-art .avatar { animation: bob 6s ease-in-out infinite; }
.step-art .avatar { animation-delay: -2s; }
.faq-art .avatar { animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (min-width: 820px) {
  .step { grid-template-columns: 1.1fr 1fr; padding: 40px; gap: 40px; }
}

/* ---------- Testimonial ---------- */
/* Avatar sits to the left and points right, at the heading (phone) or the quote (desktop) */
.testimonial { display: grid; grid-template-columns: minmax(96px, 30%) 1fr; grid-template-areas: "art head" "card card"; gap: 20px 16px; align-items: end; }
.testi-art { grid-area: art; position: relative; }
.testi-head { grid-area: head; padding-bottom: 12%; min-width: 0; }
.testi-head .h2 { font-size: clamp(36px, 11vw, 120px); margin-top: 8px; }
@media (max-width: 899px) { .testi-head .eyebrow { font-size: 15px; } }
.testi-card { grid-area: card; padding: 28px; position: relative; }
.testi-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, var(--blue), transparent 45%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.stars { display: flex; gap: 4px; color: #ffc93c; }
.stars svg { width: 22px; height: 22px; }
blockquote { margin: 20px 0 28px; font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -.005em; }
blockquote .q { color: var(--blue); }
.author { display: flex; align-items: center; gap: 14px; }
.author strong { display: block; font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 22px; line-height: 1.1; }
.author span { font-size: 13px; color: var(--muted); }
.author .initial { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue-light), var(--blue-deep)); font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 22px; }
@media (min-width: 900px) {
  .testimonial { grid-template-columns: 300px 1fr; grid-template-areas: "head head" "art card"; gap: 24px 56px; align-items: end; }
  .testi-art { align-self: end; }
  .testi-head { padding-bottom: 0; }
  .testi-card { padding: 40px; }
}

/* ---------- FAQ ---------- */
.faq-layout { display: grid; gap: 32px; }
.faq-art { position: relative; max-width: 240px; margin-top: 28px; }
@media (max-width: 899px) { .faq-side { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 16px; } .faq-side > p, .faq-side > h2 { grid-column: 1; } .faq-art { grid-column: 2; grid-row: 1 / span 2; width: 130px; margin: 0; } }
.faq details { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); margin-bottom: 12px; transition: border-color .3s; }
.faq details[open] { border-color: rgba(10,116,246,.6); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 600; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; flex: none; transition: transform .35s var(--ease), background-color .3s, border-color .3s; }
.faq summary .plus svg { width: 14px; height: 14px; }
.faq details[open] .plus { transform: rotate(45deg); background: var(--blue); border-color: var(--blue); }
.faq .answer { padding: 0 22px 22px; color: var(--muted); max-width: 46em; }
@media (min-width: 900px) { .faq-layout { grid-template-columns: 1fr 1.4fr; gap: 64px; } }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 32px; align-items: stretch; }
.contact-main .h3 { font-size: clamp(34px, 10vw, 64px); margin-bottom: 16px; }
.contact-cards { display: grid; gap: 12px; margin-top: 32px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); transition: border-color .3s, transform .3s var(--ease); }
.contact-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.contact-card .ci { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: rgba(10,116,246,.14); color: var(--blue-light); flex: none; }
.contact-card .ci svg { width: 22px; height: 22px; }
.contact-card small { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.contact-card strong { font-weight: 600; word-break: break-word; }
.contact-card .arrow { margin-left: auto; }
/* Avatar stands at the end of the intro line, feet on the text baseline */
.contact { margin-top: 72px; }
#contact .section-head { margin-bottom: 24px; }
.contact-main { position: relative; overflow: visible; padding: 32px 24px; }
.stand { --av-h: 150px; display: flex; align-items: flex-end; gap: 14px; }
.stand-words { min-width: 0; }
.stander { position: relative; flex: none; width: calc(var(--av-h) * 406 / 726); height: 1em; pointer-events: none; }
.stander > * { position: absolute; left: 0; bottom: .3em; width: auto; height: var(--av-h); max-width: none; }
@media (min-width: 720px) { .contact { margin-top: 96px; } .contact-main { padding: 48px; } .stand { --av-h: 190px; gap: 24px; } }
@media (min-width: 720px) { .contact-cards { grid-template-columns: 1fr 1fr; } .contact-cards .wide { grid-column: 1 / -1; } }


/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand img { width: 88px; height: 88px; }
.footer-brand p { margin-top: 12px; color: var(--muted); font-size: 14px; max-width: 22em; }
.footer-col h4 { font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 18px; letter-spacing: .04em; color: var(--muted); margin-bottom: 12px; }
.footer-col a { display: block; padding: 6px 0; color: var(--muted); font-weight: 500; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 30px -6px rgba(37,211,102,.55);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
@media (max-width: 719px) { .wa-float { width: 48px; height: 48px; right: 12px; bottom: 12px; } .wa-float svg { width: 24px; height: 24px; } .demo-strip li:last-child { padding-right: 64px; } }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Projects page ---------- */
.page-hero { padding: 56px 0 48px; position: relative; overflow: hidden; }
.page-hero .wrap { display: grid; gap: 32px; align-items: end; }
.page-hero h1 { font-size: clamp(56px, 17vw, 220px); }
.page-hero-art { position: relative; max-width: 340px; width: 100%; padding-top: 28px; }
.page-hero-art .speech { position: absolute; left: 0; top: 0; z-index: 2; }
@media (min-width: 820px) { .page-hero .wrap { grid-template-columns: 1fr 340px; } }
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding: 16px 0; }
.ticker .marquee-track { animation-duration: 36s; }
.ticker .marquee-item { gap: 10px; padding-right: 40px; font-size: 14px; color: var(--muted); }
.ticker svg { width: 16px; height: 16px; color: var(--blue-light); }

/* ---------- Project detail ---------- */
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; font-size: 14px; }
.back:hover { color: var(--text); }
.back svg { width: 16px; height: 16px; transform: rotate(180deg); }
.detail { display: grid; gap: 32px; margin-top: 24px; }
.detail h1 { font-size: clamp(64px, 11vw, 140px); }
.detail .lead { margin-top: 20px; }
.detail .btn { margin-top: 28px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 32px; }
.facts div { background: var(--surface); padding: 16px; }
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 600; font-size: 15px; }
.detail .thumb { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 30px 80px -30px var(--glow); background: #0c0f17; }
@media (min-width: 960px) { .detail { grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
/* Section headings slide in from the left; cards in the same row fan in one after another (--d set by script.js) */
.js .section-head.reveal:not(.in) { transform: translateX(-36px); }
.js .project-card.reveal:not(.in) { transform: translateY(40px) scale(.97); }
/* Light parallax: --py set by script.js from scroll position */
.js [data-parallax] { transform: translateY(var(--py, 0px)); will-change: transform; }
.js .hero.ready .hero-avatar[data-parallax] { transform: translateY(var(--py, 0px)) rotate(-4deg); }
/* Header tightens up once you scroll; thin blue progress line along its bottom edge */
.site-header { transition: background-color .3s, box-shadow .3s; }
.site-header.scrolled { background: rgba(5, 6, 10, 0.9); box-shadow: 0 12px 32px -12px rgba(0,0,0,.7); }
.scroll-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.js .hero-title .word, .js .hero-avatar { opacity: 0; transform: translateY(40%); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .hero-avatar { transform: scale(.4) rotate(-20deg); }
.js .hero.ready .hero-title .word, .js .hero.ready .hero-avatar { opacity: 1; transform: none; }
.js .hero.ready .hero-avatar { transform: rotate(-4deg); transition-delay: .15s; }
.js .hero.ready .hero-title .word:last-child { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .marquee-track { animation: none; }
  .js .reveal, .js .hero-title .word, .js .hero-avatar, .js [data-parallax] { opacity: 1; transform: none; }
  .step { position: static; }
}
