:root {
  --white: #ffffff;
  --ink: #0e0e0e;
  --text: #2b2b2b;
  --muted: #5c5c5c;          /* 6.6:1 on white */
  --orange: #ffa033;         /* brand orange */
  --red: #e5383b;            /* brand red: bugs, risk, accent pair */
  --red-ink: #b3261e;        /* red for small text on white, 6.5:1 */
  --orange-ink: #a85300;     /* orange for small text/lines on white, 5.2:1 */
  --tint: #fff6ec;           /* hero ground */
  --line: #e9e6e2;
  --wrap: 1200px;
  --font: "Mulish", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; scrollbar-color: #bdbdbd var(--white); }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; caret-color: var(--orange-ink); }
::selection { background: var(--orange); color: var(--ink); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-lg { width: 52px; height: 52px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--white); padding: 10px 16px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; font: 600 .95rem/1 var(--font); padding: 16px 26px; border-radius: 3px; border: 1.5px solid transparent; text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: #f58a1f; box-shadow: 0 8px 20px -10px rgba(168, 83, 0, .55); }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 44px; height: 32px; fill: none; stroke-width: 13; }
.lm-red { stroke: #e3201b; }
.lm-ink { stroke: var(--ink); }
.logo-text { font-weight: 300; letter-spacing: .2em; font-size: .98rem; white-space: nowrap; }
@media (max-width: 400px) { .logo-text { letter-spacing: .12em; font-size: .88rem; } }
.nav { display: flex; gap: 34px; margin-left: auto; }
.nav a { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--text); padding: 26px 0 23px; border-bottom: 3px solid transparent; transition: border-color .2s; }
.nav a:hover, .nav a[aria-current] { border-color: var(--orange); color: var(--ink); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); content: ""; transition: transform .25s var(--ease), opacity .2s; }
.menu-btn span { top: 21px; }
.menu-btn span::before { left: 0; top: -7px; }
.menu-btn span::after { left: 0; top: 7px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
.mnav { display: grid; border-top: 1px solid var(--line); background: var(--white); }
.mnav[hidden] { display: none; }
.mnav a { padding: 16px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; text-decoration: none; border-bottom: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 55fr 45fr; min-height: 640px; }
.hero-copy { background: var(--tint); display: flex; justify-content: flex-end; }
.hero-inner { width: min(100%, 680px); padding: 96px 64px 150px; padding-left: max(24px, calc((100vw - var(--wrap)) / 2)); display: flex; flex-direction: column; justify-content: center; gap: 28px; }
h1 { font-size: clamp(2.4rem, 4.2vw, 3.6rem); line-height: 1.12; letter-spacing: -0.02em; }
.h1-light { display: block; font-weight: 300; }
.h1-bold { display: block; font-weight: 800; }
.lede { font-size: 1.08rem; max-width: 46ch; color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.trusted { margin-top: 20px; }
.trusted-label { font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 34px; }
.logos li { display: flex; align-items: center; height: 30px; }
.logos img { height: 24px; width: auto; filter: brightness(0); opacity: .6; transition: opacity .2s; }
.logos li:hover img { opacity: 1; }
.logos .lg-ts { height: 30px; }
.logos .lg-av { height: 26px; }
.logos .lg-sh { height: 18px; }
.logos .lg-df { height: 24px; }
.logos .lg-ss { height: 24px; }
.logos .lg-po { height: 30px; }
.logos .lg-in { height: 28px; }
.logos .lg-hb { height: 30px; }

.hero-visual { background: var(--ink); position: relative; overflow: hidden; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 55% at 55% 45%, rgba(255, 160, 51, .14), transparent 70%), radial-gradient(40% 40% at 80% 80%, rgba(229, 56, 59, .18), transparent 70%); pointer-events: none; }
#mesh { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- Role cards ---------- */
.roles { position: relative; z-index: 2; margin-top: -96px; }
.cards-scroll { overflow-x: auto; scrollbar-width: none; padding: 0 0 28px; }
.cards-scroll::-webkit-scrollbar { display: none; }
.cards { list-style: none; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: repeat(6, minmax(176px, 1fr)); gap: 14px; width: min(100%, 1360px); }
.card { background: var(--white); border-top: 3px solid; border-image: linear-gradient(90deg, var(--orange) 0 75%, var(--red) 75% 100%) 1; box-shadow: 0 12px 34px -14px rgba(14, 14, 14, .22); padding: 26px 18px 0; display: flex; flex-direction: column; align-items: center; text-align: center; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -16px rgba(14, 14, 14, .3); }
.avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--ink); color: var(--orange); display: grid; place-items: center; margin-bottom: 14px; box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--line); }
.avatar .ico { width: 34px; height: 34px; stroke-width: 1.6; }
.card h3 { font-size: .95rem; font-weight: 700; line-height: 1.3; min-height: 2.6em; display: flex; align-items: center; justify-content: center; }

.pill { white-space: nowrap; margin: 14px 0 18px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); padding: 5px 10px 4px; background: var(--tint); border: 1px solid #ffcf99; border-radius: 2px; }
.card-foot { margin-top: auto; margin-bottom: 0; width: calc(100% + 36px); padding: 12px 10px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 72px 96px; }
.feature { text-align: center; padding: 8px 32px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.feature + .feature { border-left: 1px solid var(--line); }
.feature h3 { font-size: 1.05rem; font-weight: 700; margin-top: 6px; }
.feature p { font-size: .92rem; color: var(--muted); max-width: 30ch; }

/* ---------- Section headings ---------- */
.h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 300; letter-spacing: -0.015em; line-height: 1.15; text-align: center; }
.sub { text-align: center; color: var(--muted); margin: 12px auto 0; max-width: 56ch; font-size: 1.05rem; }
.h2::after { content: ""; display: block; width: 56px; height: 3px; background: linear-gradient(90deg, var(--orange) 0 66%, var(--red) 66% 100%); margin: 18px auto 0; }
.contact .h2 { text-align: left; }
.contact .h2::after { margin-left: 0; }

/* ---------- Services ---------- */
.services { background: #fafafa; border-block: 1px solid var(--line); padding-block: 96px; }
.qa-lead { margin-top: 56px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; background: var(--ink); color: #e6e6e6; padding: 52px 56px; }
.qa-copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.qa-copy h3 { color: var(--white); font-size: 1.8rem; font-weight: 800; letter-spacing: -0.01em; }
.qa-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; align-content: center; }
.qa-list li { display: flex; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid #2c2c2c; font-weight: 600; }
.qa-list .ico { color: var(--orange); }
.svc-grid { margin-top: 2px; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border: 1px solid var(--line); }
.svc { padding: 36px 28px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .25s; }
.svc:nth-child(4n) { border-right: 0; }
.svc:nth-last-child(-n+4) { border-bottom: 0; }
.svc:hover { background: var(--tint); }
.svc .ico-lg { width: 44px; height: 44px; }
.svc h3 { font-size: 1.02rem; font-weight: 700; margin-top: 4px; }
.svc p { font-size: .9rem; color: var(--muted); }

/* ---------- Process ---------- */
.process { padding-block: 96px; }
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.steps::before { content: ""; position: absolute; top: 24px; left: 12%; right: 12%; border-top: 1px dashed #cfcac3; }
.steps li { text-align: center; position: relative; }
.step-n { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 18px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--ink); font-weight: 800; color: var(--ink); position: relative; }
.steps li:last-child .step-n { background: var(--red); border-color: var(--red); }
.steps li:nth-child(3) .step-n { border-color: var(--orange); }
.steps h3 { font-size: 1.02rem; font-weight: 700; }
.steps p { font-size: .92rem; color: var(--muted); margin: 8px auto 0; max-width: 26ch; }

/* ---------- Work ---------- */
.work { background: var(--tint); padding-block: 96px; }
.cases { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case { background: var(--white); padding: 32px 28px; min-height: 260px; display: flex; flex-direction: column; gap: 12px; }
.case-slot { border: 1.5px dashed #e3c9a8; }
.case-tag { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.case h3 { font-size: 1.25rem; font-weight: 700; }
.case p { color: var(--muted); font-size: .94rem; }
.case .case-note { margin-top: auto; color: var(--red-ink); font-weight: 700; font-size: .82rem; }

/* ---------- Contact ---------- */
.contact { padding-block: 96px; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact-copy { display: flex; flex-direction: column; gap: 20px; }
.contact-copy .h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.contact-copy > p { font-size: 1.05rem; color: var(--muted); max-width: 40ch; }
.offices { display: grid; gap: 10px; margin-top: 8px; }
.offices p { display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.offices .ico { color: var(--orange-ink); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: var(--white); padding: 36px; box-shadow: 0 16px 44px -20px rgba(14, 14, 14, .25); border-top: 3px solid var(--orange); }
.field { display: grid; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
label { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
input, select, textarea { font: 400 1rem/1.4 var(--font); color: var(--ink); background: var(--white); border: 1px solid #c9c6c1; border-radius: 3px; padding: 12px 14px; width: 100%; transition: border-color .2s, box-shadow .2s; }
textarea { resize: vertical; min-height: 120px; }
input:hover, select:hover, textarea:hover { border-color: #8f8b85; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 160, 51, .5); }
.err { display: none; font-size: .82rem; font-weight: 600; color: #b3261e; }
.field.invalid input, .field.invalid textarea { border-color: #b3261e; }
.field.invalid .err { display: block; }
.form-done { font-weight: 600; min-height: 1.4em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #bdbdbd; padding-block: 32px; font-size: .88rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 36px; }
.logo-inv { color: var(--white); }
.logo-inv .lm-ink { stroke: var(--white); }
.footer-row p:last-child { margin-left: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-inner { padding: 72px 40px 140px 24px; }
  .features { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .feature:nth-child(3) { border-left: 0; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc:nth-child(4n) { border-right: 1px solid var(--line); }
  .svc:nth-child(2n) { border-right: 0; }
  .svc:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .svc:nth-last-child(-n+2) { border-bottom: 0; }
  .qa-lead { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: repeat(6, 200px); width: max-content; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { min-height: 300px; }
  .hero-inner { padding: 48px 24px 130px; width: 100%; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  .cases { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .features { grid-template-columns: minmax(0, 1fr); padding-block: 48px 64px; }
  .feature + .feature { border-left: 0; border-top: 1px solid var(--line); padding-top: 32px; }
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .svc { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .svc:last-child { border-bottom: 0 !important; }
  .qa-lead { padding: 36px 24px; }
  .qa-list { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .form { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .services, .process, .work, .contact { padding-block: 72px; }
  .actions .btn { flex: 1 1 auto; }
  .footer-row p:last-child { margin-left: 0; }
}

/* ---------- Hero copy: fill the column, align with page grid on wide screens ---------- */
.hero-copy { justify-content: flex-start; }
.hero-inner { width: 100%; padding: 96px 56px 150px max(24px, calc((100vw - var(--wrap)) / 2)); }
.hero-inner > * { max-width: 580px; }

/* ---------- Hero demo overlay ---------- */
.hero-visual { margin: 0; }
.demo-tag { position: absolute; top: 20px; right: 20px; z-index: 1; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #c4c4c4; border: 1px solid #4a4a4a; padding: 5px 9px 4px; border-radius: 2px; }
.hv-card { position: absolute; z-index: 1; background: var(--white); color: var(--ink); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7); }
.hv-title { font-weight: 800; font-size: .9rem; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hv-state { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px 2px; border-radius: 2px; background: #eeeeee; color: var(--muted); transition: background-color .3s, color .3s; }
.hv-state.ok { background: var(--orange); color: var(--ink); }
.hv-release { top: 9%; left: 7%; width: 230px; padding: 16px 18px; border-top: 3px solid var(--orange); }
.hv-checks { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 7px; }
.hv-checks li { display: flex; align-items: center; gap: 9px; font-size: .84rem; color: var(--muted); transition: color .3s; }
.hv-checks .ico { width: 16px; height: 16px; padding: 2px; box-sizing: content-box; border-radius: 50%; border: 1.5px solid #d4d4d4; color: transparent; stroke-width: 3; transition: background-color .3s, border-color .3s, color .3s; }
.hv-checks li.done { color: var(--ink); font-weight: 600; }
.hv-checks li.done .ico { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.hv-count { font-size: .84rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; font-variant-numeric: tabular-nums; }
.hv-count strong { color: var(--ink); font-size: 1.05rem; }
.hv-bug { top: 46%; right: 6%; display: flex; gap: 12px; align-items: center; padding: 14px 18px 14px 14px; opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.hv-bug.show { opacity: 1; transform: none; }
.hv-bug-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: var(--ink); display: grid; place-items: center; flex: none; }
.hv-bug-ico .ico { width: 22px; height: 22px; stroke-width: 1.8; }
.hv-sub { font-size: .82rem; color: var(--muted); }
.hv-cov { bottom: 20%; left: 7%; width: 230px; padding: 16px 18px; }
.hv-label { font-size: .78rem; color: var(--muted); font-weight: 600; }
.hv-big { font-size: 2.2rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hv-bar { display: block; height: 6px; background: #eeeeee; border-radius: 3px; margin: 8px 0 10px; overflow: hidden; }
.hv-fill { display: block; height: 100%; width: 0; background: var(--orange); transition: width .3s linear; }
.hv-caught strong { color: var(--red-ink); }
.hv-bug { border-left: 0; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7), inset 0 3px 0 var(--red); }

@media (max-width: 1100px) {
  .hv-release, .hv-cov { width: 200px; left: 5%; }
  .hv-bug { right: 4%; }
}
@media (max-width: 860px) {
  .hero-visual { min-height: 440px; }
  .hero-inner { padding: 48px 24px 130px; }
  .hv-release { top: 60px; left: 16px; width: 200px; padding: 12px 14px; }
  .hv-checks { gap: 4px; margin: 8px 0; }
  .hv-cov { display: none; }
  .hv-bug { top: auto; bottom: 20px; right: 16px; }
}

/* ================= Motion & hover pass ================= */
/* buttons: fill sweep + arrow nudge */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.btn:hover::before { transform: scaleX(1); }
.btn-primary::before, .btn-outline::before { background: var(--ink); }
.btn-primary:hover { background: var(--orange); color: var(--white); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(14, 14, 14, .55); }
.btn-outline:hover { background: var(--white); color: var(--white); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-arrow { transition: transform .35s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.qa-lead .btn-primary::before { background: var(--white); }
.qa-lead .btn-primary:hover { color: var(--ink); }

/* nav: underline grows from centre */
.nav a { position: relative; border-bottom: 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--orange); transform: scaleX(0); transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }

/* role cards */
.avatar { transition: box-shadow .35s var(--ease), transform .45s var(--ease); }
.card:hover .avatar { box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--orange); transform: scale(1.06); }
.card .avatar .ico { transition: transform .5s var(--ease); }
.card:hover .avatar .ico { transform: rotate(-8deg) scale(1.08); }

/* service tiles, features, lists, cases */
.svc { position: relative; transition: background-color .3s, transform .35s var(--ease), box-shadow .35s var(--ease); }
.svc:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -22px rgba(14, 14, 14, .35); z-index: 1; }
.svc .ico-lg, .feature .ico-lg { transition: stroke .3s, transform .45s var(--ease); }
.svc:hover .ico-lg, .feature:hover .ico-lg { stroke: var(--orange-ink); transform: translateY(-3px); }
.svc h3::after { content: ""; display: block; width: 28px; height: 2px; margin-top: 10px; background: linear-gradient(90deg, var(--orange) 0 66%, var(--red) 66% 100%); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.svc:hover h3::after { transform: scaleX(1); }
.qa-list li { transition: padding-left .3s var(--ease), color .3s; }
.qa-list li:hover { padding-left: 6px; color: var(--white); }
.case { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.case:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -22px rgba(14, 14, 14, .3); }

/* entrance (JS only; without JS everything is visible) */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.js .h1-light, .js .h1-bold, .js .lede, .js .actions, .js .trusted-label, .js .logos li, .js .card, .js .hv-release, .js .hv-cov { animation: rise .9s var(--ease) both; }
.js .h1-bold { animation-delay: .14s; }
.js .lede { animation-delay: .28s; }
.js .actions { animation-delay: .4s; }
.js .trusted-label { animation-delay: .52s; }
.js .logos li { animation-delay: calc(.58s + var(--i, 0) * 60ms); }
.js .hv-release { animation-delay: .45s; }
.js .hv-cov { animation-delay: .65s; }
.js .card { animation-delay: calc(.7s + var(--i, 0) * 70ms); }

/* scroll reveals */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal .ico-lg { stroke-dasharray: 240; stroke-dashoffset: 240; transition: stroke-dashoffset 1.4s var(--ease) calc(var(--d, 0s) + .15s), stroke .3s, transform .45s var(--ease); }
.js .reveal.in .ico-lg { stroke-dashoffset: 0; }
.js .h2.reveal::after { transform: scaleX(0); transition: transform .8s var(--ease) .3s; }
.js .h2.reveal.in::after { transform: scaleX(1); }
.js .steps::before { transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .2s; }
.js .steps.in::before { transform: scaleX(1); }
.js .steps .step-n { transform: scale(.4); opacity: 0; transition: transform .6s cubic-bezier(.34, 1.56, .64, 1), opacity .4s; }
.js .steps.in .step-n { transform: none; opacity: 1; }
.js .steps.in li:nth-child(2) .step-n { transition-delay: .35s; }
.js .steps.in li:nth-child(3) .step-n { transition-delay: .7s; }
.js .steps.in li:nth-child(4) .step-n { transition-delay: 1.05s; }

/* ================= Case studies ================= */
.case-feature { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); background: var(--white); box-shadow: 0 16px 40px -24px rgba(14, 14, 14, .3); }
.cf-copy { padding: 44px 48px; display: flex; flex-direction: column; gap: 14px; }
.cf-copy h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.cf-copy > p:not(.case-tag):not(.case-client):not(.tools) { color: var(--muted); max-width: 58ch; }
.case-client { font-size: .88rem; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.impact { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 8px; }
.impact li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: .95rem; }
.impact .ico { color: var(--orange); margin-top: 3px; }
.tools { font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: auto; }
.cf-quote { margin: 0; background: var(--ink); color: var(--white); padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; gap: 18px; position: relative; }
.cf-quote::before { content: "\201C"; position: absolute; top: 8px; left: 28px; font-size: 7rem; line-height: 1; color: var(--red); font-weight: 800; opacity: .9; }
.cf-quote blockquote { margin: 0; font-size: 1.3rem; line-height: 1.5; font-weight: 300; position: relative; }
.cf-quote figcaption { font-size: .8rem; color: #bdbdbd; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.stars { color: var(--orange); font-weight: 800; letter-spacing: .1em; font-size: .95rem; position: relative; }
.stars-sm { color: var(--red-ink); font-weight: 800; font-size: .8rem; }
.cases { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.case { min-height: 0; padding: 28px 26px; border-top: 3px solid var(--red); }
.case h3 { font-size: 1.12rem; line-height: 1.3; }
.case p { font-size: .92rem; }
.case .case-client { font-size: .82rem; color: var(--ink); }
.case-quote { margin: 4px 0 0; padding-left: 12px; border-left: 2px solid var(--orange); font-size: .9rem; font-style: italic; color: var(--text); }
.case .tools { font-size: .78rem; }
.more-work { margin-top: 28px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; padding-top: 24px; border-top: 1px solid var(--red-line); }
.more-label { font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--red-ink); padding-top: 3px; }
.more-work ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 40px; }
.more-work li { font-size: .9rem; color: var(--muted); }
.more-work strong { color: var(--ink); margin-right: 6px; }
@media (max-width: 1100px) { .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .case-feature { grid-template-columns: minmax(0, 1fr); }
  .cf-copy { padding: 32px 24px; }
  .cf-quote { padding: 48px 24px 32px; }
  .cases { grid-template-columns: minmax(0, 1fr); }
  .more-work { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

/* ================= Red integration ================= */
:root { --red-tint: #fde4e2; --red-line: #f0a3a0; --hl: #ffb15c; }
::selection { background: var(--red); color: var(--ink); }

/* hero headline: marker highlight + red full stop */
.hl { background: none; color: inherit; text-decoration: underline; text-decoration-color: var(--hl); text-decoration-thickness: .12em; text-underline-offset: .14em; text-decoration-skip-ink: none; }
.dot { color: var(--red); }
.hv-bug-ico { color: var(--white); }
.trusted-label { color: var(--red-ink); }

/* buttons: outline sweeps red */
.btn-outline::before { background: var(--red); }
.btn-outline:hover { color: var(--ink); border-color: var(--red); }

/* nav hover red, active stays orange */
.nav a:hover::after { background: var(--red); }
.nav a[aria-current]::after { background: var(--orange); }

/* role cards: red tags, alternating avatar colours */
.pill { background: var(--red-tint); border-color: var(--red-line); }
.card:nth-child(even) .avatar { color: var(--red); }
.card:nth-child(even):hover .avatar { box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--red); }

/* feature + service icons */
.feature:nth-child(even) .ico-lg { stroke: var(--red-ink); }
.svc:hover .ico-lg, .feature:hover .ico-lg { stroke: var(--red-ink); }
.svc:hover { background: var(--red-tint); }

/* QA panel */
.qa-lead { box-shadow: inset 4px 0 0 var(--red); }
.qa-list li:nth-child(4n+1) .ico, .qa-list li:nth-child(4n+4) .ico { color: var(--red); }

/* process: red route line */
.steps::before { border-top: 2px dashed var(--red); }
.steps li:nth-child(2) .step-n { border-color: var(--red); color: var(--red-ink); }

/* work section on light red */
.work { background: var(--red-tint); }
.case-slot { border-color: var(--red-line); }
.case-tag { color: var(--red-ink); }

/* contact */
.form { border-top-color: var(--red); }
.offices .ico { color: var(--red-ink); }
.contact .h1-bold { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: .1em; text-underline-offset: .14em; }

/* footer two-tone bar */
.site-footer { border-top: 4px solid; border-image: linear-gradient(90deg, var(--orange) 0 60%, var(--red) 60% 100%) 1; }
.logo-tech { color: #d32f2f; font-weight: 400; }
.logo-inv .logo-tech { color: var(--red); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js *, .js *::before, .js *::after { animation: none !important; }
  .js .reveal, .js .steps .step-n { opacity: 1 !important; transform: none !important; }
  .js .reveal .ico-lg { stroke-dashoffset: 0 !important; }
  .js .steps::before, .js .h2.reveal::after { transform: none !important; }
}

/* office address */
.offices p { align-items: flex-start; }
.offices .ico { margin-top: 4px; }
.addr { color: var(--muted); font-size: .92rem; }
.dir { font-size: .88rem; font-weight: 700; color: var(--red-ink); text-decoration-color: var(--red-line); }
.dir:hover { text-decoration-color: currentColor; }
