/* MGSCreative. Tokens first, then parts in page order. */

:root {
  --ink: #070a18;
  --ink-2: #0f1330;
  --ink-line: rgba(255, 255, 255, 0.1);
  --paper: #f3f4fa;
  --white: #fff;
  --text: #0c1024;
  --muted: #565d78;
  --line: #e1e4f0;
  --blue: #3b49ff;
  --blue-deep: #2a36d9;
  --iris: #a3adff;
  --ember: #ffb020;
  --display: "Funnel Display", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .nav :focus-visible, .foot :focus-visible, .band :focus-visible, .why :focus-visible { outline-color: var(--iris); }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.ico { width: 22px; height: 22px; flex: none; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--white); color: var(--text); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.link { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.025em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.7vw, 3.15rem); line-height: 1.05; }
h3 { font-size: 1.3rem; line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; }
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font: 500 12.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 20px;
}
.eyebrow.on-dark { color: var(--iris); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--iris); box-shadow: 0 0 0 4px rgba(163, 173, 255, 0.18); }
.eyebrow .slash { opacity: 0.45; }
.eyebrow a:hover { color: var(--white); }
.lead { color: var(--muted); font-size: 1.12rem; margin-top: 18px; max-width: 60ch; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  font: 600 15.5px/1 var(--body); white-space: nowrap;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.btn .ico { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 8px 28px -8px rgba(59, 73, 255, 0.7); }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: #e9ebff; }
.btn-ghost-dark { background: none; box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost-dark:hover { background: var(--paper); }
.btn-wide { width: 100%; }

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

.nav { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--white); transition: background 0.3s, box-shadow 0.3s; }
.nav.scrolled, .nav.open { background: rgba(7, 10, 24, 0.86); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--ink-line); }
.nav-row { display: flex; align-items: center; gap: 32px; height: 76px; }
.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { display: block; width: auto; height: 36px; max-width: none; }
.nav-links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-links > a, .drop-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px;
  border: 0; background: none; border-radius: 999px;
  font: 500 15px/1 var(--body); color: rgba(255, 255, 255, 0.74); transition: color 0.2s, background 0.2s;
}
.nav-links > a:hover, .drop-btn:hover, .nav-links > a[aria-current] { color: var(--white); }
.drop-btn svg { width: 12px; height: 12px; transition: transform 0.2s; }
.drop { position: relative; }
.drop-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; width: 360px; padding: 8px;
  background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 18px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.drop-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.drop:hover .drop-menu, .drop:focus-within .drop-menu, .drop.open .drop-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.drop:hover .drop-btn svg, .drop.open .drop-btn svg { transform: rotate(180deg); }
.drop-menu a { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px; transition: background 0.15s; }
.drop-menu a:hover, .drop-menu a[aria-current] { background: rgba(255, 255, 255, 0.07); }
.drop-menu .ico { color: var(--iris); }
.drop-menu b { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.drop-menu small { display: block; font-size: 13px; line-height: 1.35; color: rgba(255, 255, 255, 0.55); }
.nav-cta { height: 44px; padding: 0 20px; font-size: 14.5px; }
.burger { display: none; width: 44px; height: 44px; margin-left: auto; border: 0; background: none; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--white); transition: transform 0.25s, top 0.25s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.phone-menu { padding: 8px 24px 28px; }
.phone-menu[hidden] { display: none; }
.phone-menu > a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--ink-line); font: 500 1.25rem/1.2 var(--display); }
.phone-menu .btn { margin-top: 22px; width: 100%; }

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

.hero { position: relative; background: var(--ink); color: var(--white); padding-top: 168px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(52% 44% at 50% 0%, rgba(59, 73, 255, 0.42), transparent 72%),
    radial-gradient(30% 30% at 88% 30%, rgba(163, 173, 255, 0.1), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000, transparent 75%); mask-image: radial-gradient(70% 60% at 50% 20%, #000, transparent 75%);
}
.hero-inner { position: relative; text-align: center; }
.hero-inner .eyebrow { justify-content: center; }
.hero h1 { font-size: clamp(2.6rem, 6.6vw, 5.7rem); line-height: 0.98; letter-spacing: -0.04em; max-width: 15ch; margin-inline: auto; }
.hero h1 em { font-style: normal; color: var(--iris); }
.hero-lead { margin: 28px auto 0; max-width: 62ch; font-size: 1.16rem; color: rgba(255, 255, 255, 0.74); }
.hero-lead.dim { margin-top: 14px; font-size: 1.02rem; color: rgba(255, 255, 255, 0.56); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }
.rating { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 26px; font-size: 14.5px; color: rgba(255, 255, 255, 0.66); }
.stars { display: inline-flex; gap: 2px; color: var(--ember); }
.stars svg { width: 16px; height: 16px; }

/* The plan-to-build comparison */
.compare {
  position: relative; max-width: 1080px; margin: 72px auto 0; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14); background: #0a0e27; text-align: left;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.03), 0 60px 120px -30px rgba(59, 73, 255, 0.55);
  user-select: none; touch-action: pan-y;
}
.frame-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #eceef7; }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #c9cde0; }
.frame-bar span { margin-left: 10px; padding: 4px 12px; border-radius: 99px; background: var(--white); font: 400 11px/1.3 var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compare .frame-bar, .hero .frame-bar { background: #141938; }
.compare .frame-bar i, .hero .frame-bar i { background: rgba(255, 255, 255, 0.2); }
.compare .frame-bar span, .hero .frame-bar span { background: rgba(255, 255, 255, 0.07); color: rgba(255, 255, 255, 0.6); }
.mock { position: relative; aspect-ratio: 16 / 9; container-type: inline-size; cursor: ew-resize; }
.mock-layer { position: absolute; inset: 0; padding: 2.6cqw 4cqw 3cqw; display: flex; flex-direction: column; gap: 2.2em; font-size: 1.3cqw; line-height: 1.5; overflow: hidden; }
.mock-layer.done { background: var(--white); color: var(--text); clip-path: inset(0 0 0 var(--split)); }
.mock-layer.wire {
  color: var(--iris);
  background-color: #0a0e27;
  background-image: linear-gradient(rgba(163, 173, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(163, 173, 255, 0.07) 1px, transparent 1px);
  background-size: 4cqw 4cqw;
}
.m-nav { display: flex; align-items: center; gap: 2.4em; }
.m-logo { font: 700 1.35em/1.2 var(--display); letter-spacing: -0.02em; }
.m-links { display: flex; gap: 2em; margin-left: auto; font-weight: 500; }
.m-links i { font-style: normal; }
.m-btn { display: inline-block; padding: 0.65em 1.3em; border-radius: 99px; background: var(--blue); color: var(--white); font-weight: 600; }
.m-ghost { background: none; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.m-hero { flex: 1; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 3.4em; align-items: center; min-height: 0; }
.m-eyebrow { font: 500 0.85em/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.m-h { display: block; margin: 0.28em 0 0.32em; font: 500 3.6em/1.02 var(--display); letter-spacing: -0.035em; }
.m-p { display: block; max-width: 25em; font-size: 1.18em; color: var(--muted); }
.m-cta { display: flex; gap: 0.8em; margin-top: 1.5em; }
.m-img { height: 100%; border-radius: 1.3em; background: url("img/hero-desk.jpg") center / cover; }
.m-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2em; }
.m-card { display: grid; grid-template-columns: auto 1fr; column-gap: 1em; align-items: center; padding: 1em 1.2em; border: 1px solid var(--line); border-radius: 1em; }
.m-ico { grid-row: span 2; width: 2.5em; height: 2.5em; border-radius: 0.7em; background: rgba(59, 73, 255, 0.12); }
.m-card strong { font-weight: 600; line-height: 1.3; }
.m-card span { font-size: 0.9em; color: var(--muted); line-height: 1.3; }
.anno { position: absolute; display: none; font: 400 0.82em/1 var(--mono); letter-spacing: 0.04em; color: rgba(163, 173, 255, 0.75); }

.wire .anno { display: block; }
.wire .a1 { left: 4cqw; top: 0.9cqw; }
.wire .a2 { left: 4cqw; top: 12.4cqw; }
.wire .a3 { right: 4cqw; top: 10.2cqw; }
.wire .a4 { left: 4cqw; bottom: 0.9cqw; }
.wire .t { color: transparent; background: rgba(163, 173, 255, 0.24); border-radius: 0.3em; }
.wire .m-h { background: repeating-linear-gradient(to bottom, rgba(163, 173, 255, 0.34) 0 0.7em, transparent 0.7em 1.02em); border-radius: 0; }
.wire .m-p { background: repeating-linear-gradient(to bottom, rgba(163, 173, 255, 0.2) 0 0.55em, transparent 0.55em 1.5em); border-radius: 0; }
.wire .m-btn { background: none; box-shadow: inset 0 0 0 1px rgba(163, 173, 255, 0.8); }
.wire .m-img {
  border: 1px dashed rgba(163, 173, 255, 0.6);
  background:
    linear-gradient(to top right, transparent calc(50% - 0.5px), rgba(163, 173, 255, 0.45) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(to bottom right, transparent calc(50% - 0.5px), rgba(163, 173, 255, 0.45) 50%, transparent calc(50% + 0.5px));
}
.wire .m-card { border: 1px dashed rgba(163, 173, 255, 0.5); }
.wire .m-ico { background: none; border: 1px solid rgba(163, 173, 255, 0.7); }

.handle { position: absolute; top: 38px; bottom: 0; left: var(--split); width: 44px; margin-left: -22px; cursor: ew-resize; outline: 0; }
.handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 21px; width: 2px; background: var(--white); box-shadow: 0 0 24px 2px rgba(59, 73, 255, 0.9); }
.handle span {
  position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); color: var(--ink);
  box-shadow: 0 10px 30px rgba(7, 10, 24, 0.45), 0 0 0 6px rgba(255, 255, 255, 0.16); transition: transform 0.2s var(--ease);
}
.handle:hover span, .compare.dragging .handle span { transform: scale(1.08); }
.handle:focus-visible span { box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px var(--iris); }
.handle svg { width: 20px; height: 20px; }
.compare-hint { margin-top: 20px; font: 400 12.5px/1.4 var(--mono); letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.5); }

.trust { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 72px; border-top: 1px solid var(--ink-line); }
.trust li { display: flex; gap: 14px; padding: 30px 24px 34px; }
.trust li + li { border-left: 1px solid var(--ink-line); }
.trust .ico { color: var(--iris); margin-top: 2px; }
.trust b { display: block; font: 600 1.05rem/1.3 var(--display); }
.trust span { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.4; color: rgba(255, 255, 255, 0.58); }

/* Service and contact heroes */
.hero-svc, .hero-contact { padding-bottom: 104px; }
.svc-hero { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.svc-hero h1, .contact-grid h1 { font-size: clamp(2.5rem, 4.9vw, 4.2rem); line-height: 1; letter-spacing: -0.035em; max-width: 14ch; margin: 0; }
.svc-hero .hero-lead, .contact-grid .hero-lead { margin-inline: 0; }
.svc-hero .hero-actions { justify-content: flex-start; }
.frame { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.frame img { width: 100%; }
.svc-shot .frame { border-color: rgba(255, 255, 255, 0.14); box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.03), 0 50px 100px -30px rgba(59, 73, 255, 0.6); transform: perspective(1400px) rotateY(-7deg) rotateX(2deg); transform-origin: left center; }
.svc-others { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.svc-others a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 99px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.7); box-shadow: inset 0 0 0 1px var(--ink-line); transition: color 0.2s, background 0.2s; }
.svc-others a:hover { color: var(--white); background: rgba(255, 255, 255, 0.07); }
.svc-others .ico { width: 16px; height: 16px; color: var(--iris); }

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

.sec { padding-block: clamp(72px, 9vw, 128px); }
.sec-paper { background: var(--paper); }
.sec-tight { padding-top: 0; }
.head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.split-head { position: sticky; top: 112px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 11px; border: 1px solid var(--line); border-radius: 99px; font: 400 12px/1.2 var(--mono); color: var(--muted); }

/* Services list */
.svc-list { border-bottom: 1px solid var(--line); }
.svc-row {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.25fr) 56px; gap: 32px; align-items: center;
  padding: 34px 28px; margin-inline: -28px; border-top: 1px solid var(--line); border-radius: 0;
  transition: background 0.3s var(--ease), color 0.3s, border-radius 0.3s, border-color 0.3s;
}
.svc-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--paper); color: var(--blue); transition: background 0.3s, color 0.3s; }
.svc-row h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.svc-text p { color: var(--muted); margin-bottom: 14px; transition: color 0.3s; }
.svc-go { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease); }
.svc-row:hover, .svc-row:focus-visible { background: var(--ink); color: var(--white); border-radius: 24px; border-color: transparent; }
.svc-row:hover + .svc-row { border-color: transparent; }
.svc-row:hover .svc-ico { background: rgba(255, 255, 255, 0.08); color: var(--iris); }
.svc-row:hover .svc-text p { color: rgba(255, 255, 255, 0.7); }
.svc-row:hover .chips li { border-color: var(--ink-line); color: rgba(255, 255, 255, 0.7); }
.svc-row:hover .svc-go { background: var(--blue); border-color: var(--blue); transform: rotate(-45deg); }

/* Work */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.work-grid + .work-grid { margin-top: 28px; }
.work-grid-3 { grid-template-columns: repeat(3, 1fr); }
.work-card { display: block; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 24px; transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s; }
.sec:not(.sec-paper) .work-card { background: var(--paper); border-color: transparent; }
a.work-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(12, 16, 36, 0.35); border-color: transparent; }
.work-card .frame img { aspect-ratio: 800 / 506; object-fit: cover; object-position: top; }
.work-body { padding: 22px 10px 10px; }
.kind { font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.work-body h3 { display: flex; align-items: center; gap: 8px; font-size: 1.6rem; font-weight: 500; letter-spacing: -0.025em; }
.work-body h3 .ico { width: 18px; height: 18px; color: var(--muted); transition: transform 0.25s var(--ease), color 0.25s; }
a.work-card:hover h3 .ico { transform: translate(2px, -2px); color: var(--blue); }
.work-body > p:not(.kind) { color: var(--muted); margin: 10px 0 16px; font-size: 16px; }
.work-card.small h3 { font-size: 1.3rem; }
.work-card.small .work-body > p:not(.kind) { font-size: 15px; }

/* Why */
.why { position: relative; overflow: hidden; background: var(--ink); color: var(--white); border-radius: 32px; padding: clamp(32px, 5.5vw, 80px); }
.why::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 100% 0%, rgba(59, 73, 255, 0.4), transparent 70%); pointer-events: none; }
.why > * { position: relative; }
.why-top { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: end; }
.why-intro p { color: rgba(255, 255, 255, 0.72); }
.why-intro p + p { margin-top: 14px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(36px, 5vw, 64px) 0; border-block: 1px solid var(--ink-line); }
.stats div { padding: 34px 24px 30px 0; }
.stats div + div { padding-left: 28px; border-left: 1px solid var(--ink-line); }
.stats dt { font: 500 clamp(2.6rem, 5.4vw, 4.6rem)/1 var(--display); letter-spacing: -0.04em; }
.stats dt small { font-size: 0.5em; color: var(--iris); margin-left: 2px; }
.stats dd { margin-top: 10px; font: 400 12.5px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.reasons li { display: flex; gap: 12px; }
.reasons .ico { color: var(--iris); margin-top: 2px; }
.reasons b { display: block; font: 600 1.05rem/1.3 var(--display); }
.reasons span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, 0.62); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card { padding: 30px 28px 32px; border-radius: 22px; background: var(--paper); }
.sec-paper .card { background: var(--white); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; }
.card p + p { margin-top: 10px; }
.card-ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 22px; border-radius: 14px; background: var(--white); color: var(--blue); }
.sec-paper .card-ico { background: var(--paper); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(var(--n), 1fr); counter-reset: step; }
.steps li { position: relative; padding: 30px 28px 0 0; border-top: 2px solid var(--line); }
.steps li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px var(--white); }
.sec-paper .steps li::before { box-shadow: 0 0 0 5px var(--paper); }
.step-n { display: block; font: 500 12.5px/1 var(--mono); letter-spacing: 0.1em; color: var(--blue); margin-bottom: 14px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 16px; }

/* Reviews */
.proof { display: flex; flex-wrap: wrap; gap: 8px; }
.proof li { padding: 9px 14px; border-radius: 99px; background: var(--paper); font: 500 12.5px/1.2 var(--mono); }
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.review { display: flex; flex-direction: column; padding: 34px 34px 30px; border-radius: 24px; background: var(--paper); }
.review blockquote { margin: 18px 0 26px; font: 400 1.22rem/1.45 var(--display); letter-spacing: -0.01em; }
.review figcaption { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14.5px; }
.review figcaption span { color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-photo img { width: 100%; border-radius: 28px; }
.about-photo p { margin-top: 16px; display: flex; flex-direction: column; }
.about-photo b { font: 600 1.05rem/1.3 var(--display); }
.about-photo span { font-size: 14.5px; color: var(--muted); }
.about-text h2 { margin-bottom: 24px; }
.about-text > p:not(.eyebrow) { color: var(--muted); max-width: 64ch; }
.about-text > p + p { margin-top: 14px; }
.about-text > p:nth-of-type(2) { color: var(--text); font-size: 1.15rem; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; cursor: pointer; list-style: none; font: 600 1.14rem/1.35 var(--display); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--blue); transition: transform 0.3s var(--ease); }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details p { padding: 0 44px 26px 0; color: var(--muted); }

/* Prose blocks on service pages */
.prose > p { color: var(--muted); font-size: 1.08rem; }
.prose > p + p { margin-top: 16px; }
.prose > p:first-of-type { color: var(--text); font-size: 1.2rem; line-height: 1.5; }
.prose h2 { margin-bottom: 22px; }
.ticks { display: grid; gap: 12px 28px; margin-top: 28px; }
.ticks-2 { grid-template-columns: repeat(2, 1fr); }
.ticks li { display: flex; gap: 12px; font-size: 16px; line-height: 1.45; }
.ticks .ico { width: 20px; height: 20px; padding: 3px; margin-top: 1px; border-radius: 50%; background: rgba(59, 73, 255, 0.1); color: var(--blue); stroke-width: 2.4; }
.prose > .note, .note { margin-top: 26px; padding-left: 16px; border-left: 2px solid var(--blue); font-size: 15.5px; color: var(--muted); }
.tech > div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.tech > div:first-child { border-top: 1px solid var(--line); }
.tech dt { font: 600 1rem/1.3 var(--display); }
.tech .chips li { color: var(--text); background: var(--white); }
.example { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.example .frame { box-shadow: 0 40px 80px -40px rgba(12, 16, 36, 0.4); }

/* Closing band */
.band { padding-bottom: clamp(72px, 9vw, 128px); }
.sec-paper + .band { background: linear-gradient(var(--paper) 50%, var(--white) 50%); }
.band-box { position: relative; overflow: hidden; text-align: center; background: var(--ink); color: var(--white); border-radius: 32px; padding: clamp(48px, 8vw, 104px) clamp(24px, 6vw, 96px); }
.band-glow { position: absolute; inset: 0; background: radial-gradient(60% 90% at 50% 120%, rgba(59, 73, 255, 0.75), transparent 70%); pointer-events: none; }
.band-box > *:not(.band-glow) { position: relative; }
.band-box h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); letter-spacing: -0.035em; line-height: 1; max-width: 16ch; margin-inline: auto; }
.band-box p { margin: 22px auto 0; max-width: 58ch; color: rgba(255, 255, 255, 0.74); font-size: 1.1rem; }
.band-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; margin-top: 36px; }
.band-mail { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: rgba(255, 255, 255, 0.85); }
.band-mail:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.band-mail .ico { width: 18px; height: 18px; color: var(--iris); }

/* Contact */
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-copy { padding-top: 24px; }
.contact-facts { margin-top: 40px; border-top: 1px solid var(--ink-line); }
.contact-facts li { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--ink-line); }
.contact-facts .ico { color: var(--iris); }
.contact-facts span { display: block; font: 400 11.5px/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.contact-facts a, .contact-facts b { font-weight: 500; font-size: 1.05rem; overflow-wrap: anywhere; }
.contact-facts a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-copy .rating { justify-content: flex-start; }
.form-card { background: var(--white); color: var(--text); border-radius: 28px; padding: clamp(24px, 3.4vw, 44px); box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.04), 0 60px 120px -40px rgba(59, 73, 255, 0.6); }
.form-card h2 { font-size: 1.9rem; letter-spacing: -0.03em; }
.form-intro { color: var(--muted); margin: 10px 0 26px; font-size: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper);
  font: 400 16px/1.4 var(--body); color: var(--text); transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(59, 73, 255, 0.14); }
.field.bad input, .field.bad textarea { border-color: #d92d3a; }
.field em { display: block; font-style: normal; font-size: 13.5px; color: #c4222f; }
.field em:not(:empty) { margin-top: 6px; }
.form-small { margin-top: 14px; text-align: center; font-size: 13.5px; color: var(--muted); }
.form-error { margin-top: 12px; font-size: 14.5px; line-height: 1.45; color: #c4222f; }
.form-error[hidden] { display: none; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn:disabled { opacity: 0.6; cursor: default; }
.form-done { text-align: center; padding: 24px 0; outline: 0; }
.form-done[hidden] { display: none; }
.form-done p { color: var(--muted); margin-top: 12px; }
.form-done .btn { margin-top: 26px; }
.done-ico { display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 20px; border-radius: 50%; background: rgba(59, 73, 255, 0.1); color: var(--blue); }

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

.foot { background: var(--ink); color: rgba(255, 255, 255, 0.64); padding: 80px 0 32px; font-size: 15.5px; }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 48px; }
.foot-about p { margin-top: 18px; max-width: 36ch; }
.foot-rating { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.foot h3 { margin-bottom: 16px; font: 500 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
.foot-grid > div:not(.foot-about) > a, .foot-grid > div:not(.foot-about) > span { display: block; padding: 6px 0; overflow-wrap: anywhere; }
.foot-grid a:hover { color: var(--white); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--ink-line); font-size: 14px; }

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

@media (prefers-reduced-motion: no-preference) {
  .js:not(.still) [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .js:not(.still) [data-reveal].in { opacity: 1; transform: none; }
  .js:not(.still) .load { animation: rise 0.9s var(--ease) both; }
  .js:not(.still) .l2 { animation-delay: 0.08s; }
  .js:not(.still) .l3 { animation-delay: 0.16s; }
  .js:not(.still) .l4 { animation-delay: 0.24s; }
  .js:not(.still) .l5 { animation-delay: 0.36s; }
  @keyframes rise { from { opacity: 0; transform: translateY(26px); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---------- Smaller screens ---------- */

@media (max-width: 1020px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust li:nth-child(3) { border-left: 0; }
  .trust li:nth-child(n + 3) { border-top: 1px solid var(--ink-line); }
  .svc-hero, .contact-grid, .example { grid-template-columns: 1fr; }
  .svc-shot .frame { transform: none; }
  .split { grid-template-columns: 1fr; }
  .split-head { position: static; }
  .svc-row { grid-template-columns: 56px 1fr 56px; row-gap: 16px; }
  .svc-text { grid-column: 1 / -1; grid-row: 2; }
  .work-grid-3, .cards { grid-template-columns: repeat(2, 1fr); }
  .why-top { grid-template-columns: 1fr; align-items: start; }
  .stats, .reasons { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats div:nth-child(n + 3) { border-top: 1px solid var(--ink-line); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: minmax(0, 240px) 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .nav-row { height: 64px; }
  .nav .logo img { height: 32px; }
  .hero { padding-top: 120px; }
  .hero-actions .btn { width: 100%; }
  .rating { flex-direction: column; gap: 6px; }
  .contact-copy .rating { align-items: flex-start; }
  .compare { margin-top: 48px; border-radius: 14px; }
  .mock { aspect-ratio: 1 / 1.02; }
  .mock-layer { font-size: 2.5cqw; padding: 4cqw 5cqw; gap: 1.6em; }
  .m-links { display: none; }
  .m-nav .m-btn { margin-left: auto; }
  .m-hero { grid-template-columns: 1fr; gap: 1.4em; }
  .m-h { font-size: 2.9em; }
  .m-img { min-height: 9em; }
  .m-cards { grid-template-columns: 1fr 1fr 1fr; gap: 0.7em; }
  .m-card { grid-template-columns: 1fr; padding: 0.8em; row-gap: 0.5em; }
  .m-card span, .wire .a2, .wire .a3 { display: none; }
  .m-ico { grid-row: auto; width: 1.8em; height: 1.8em; }
  .trust { grid-template-columns: 1fr; margin-top: 48px; }
  .trust li { padding: 20px 0; }
  .trust li + li { border-left: 0; border-top: 1px solid var(--ink-line); }
  .hero-svc, .hero-contact { padding-bottom: 64px; }
  .svc-row { grid-template-columns: 48px 1fr 44px; gap: 16px; padding: 26px 16px; margin-inline: -16px; }
  .svc-ico { width: 48px; height: 48px; border-radius: 14px; }
  .svc-go { width: 44px; height: 44px; }
  .work-grid, .work-grid-3, .cards, .cards-2, .reviews, .ticks-2, .field-row, .about { grid-template-columns: 1fr; }
  .work-card { padding: 10px; border-radius: 20px; }
  .why { border-radius: 24px; }
  .stats div { padding: 24px 12px 22px 0; }
  .stats div + div { padding-left: 16px; }
  .stats div:nth-child(3) { padding-left: 0; }
  .reasons { grid-template-columns: 1fr; gap: 22px; }
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .steps li { padding: 0 0 32px 30px; border-top: 0; border-left: 2px solid var(--line); }
  .steps li:last-child { padding-bottom: 0; }
  .steps li::before { top: 0; left: -7px; }
  .review { padding: 26px 22px 22px; }
  .about-photo { max-width: 220px; }
  .faq details p { padding-right: 0; }
  .tech > div { grid-template-columns: 1fr; gap: 10px; }
  .band-box { border-radius: 24px; }
  .band-actions .btn { width: 100%; }
  .foot { padding-top: 56px; }
  .foot-grid { grid-template-columns: 1fr; gap: 36px; }
  .foot-base { margin-top: 40px; }
}

@media (max-width: 680px) {
  .hero-inner .eyebrow { font-size: 10.5px; letter-spacing: 0.06em; white-space: nowrap; }
  .field-row { gap: 0; }
}
