/* ==========================================================
   SSB Soft — redesign
   ========================================================== */
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; 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: "Plus Jakarta Sans"; src: url("../assets/fonts/jakarta-latin.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; 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; }

:root {
  --red: #dc2626;
  --red-600: #b91c1c;
  --red-700: #991b1b;
  --ink: #0b0f19;
  --ink-2: #111827;
  --ink-3: #1f2937;
  --text: #1f2937;
  --muted: #5b6474;
  --faint: #9aa1ad;
  --line: #e6e8ec;
  --bg: #ffffff;
  --tint: #f7f7f9;
  --surface: #ffffff;
  --chip: #eceef2;
  --nav-bg: rgba(255, 255, 255, .82);
  --photo-bg: linear-gradient(160deg, #fee2e2, #fff);
  --accent: #dc2626;          /* red that reads on the current background */
  --dur-1: .2s; --dur-2: .45s; --dur-3: .8s;   /* motion scale: micro, move, reveal */
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow: 0 12px 40px -12px rgba(16, 24, 40, .18);
  --grad: linear-gradient(120deg, #ef4444 0%, #b91c1c 55%, #7f1d1d 100%);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  color-scheme: light dark;
}
/* Dark theme: follows the OS unless the visitor picked one */
@supports (color: light-dark(#000, #fff)) {
  :root {
    --text: light-dark(#1f2937, #cdd2db);
    --ink-2: light-dark(#111827, #f3f4f6);
    --ink-3: light-dark(#1f2937, #e5e7eb);
    --muted: light-dark(#5b6474, #98a1b0);
    --faint: light-dark(#9aa1ad, #667085);
    --line: light-dark(#e6e8ec, rgba(255, 255, 255, .09));
    --bg: light-dark(#ffffff, #10141f);
    --tint: light-dark(#f7f7f9, #0c1019);
    --surface: light-dark(#ffffff, #161c2a);
    --chip: light-dark(#eceef2, #1d2433);
    --nav-bg: light-dark(rgba(255, 255, 255, .82), rgba(16, 20, 31, .8));
    --accent: light-dark(#dc2626, #f87171);
    --shadow-sm: light-dark(0 1px 2px rgba(16, 24, 40, .06), 0 1px 2px rgba(0, 0, 0, .4));
    --shadow: light-dark(0 12px 40px -12px rgba(16, 24, 40, .18), 0 16px 40px -12px rgba(0, 0, 0, .6));
  }
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font: 16px/1.65 var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-kerning: normal; font-optical-sizing: auto; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink-2); margin: 0; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 700; letter-spacing: -.028em; line-height: 1.08; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.012em; }
p { margin: 0 0 1rem; text-wrap: pretty; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Buttons ---------- */
.btn {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1 var(--font-body); cursor: pointer; white-space: nowrap;
  transform: translate(var(--mx), var(--my));
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
  overflow: hidden; isolation: isolate;
}
.btn svg { transition: transform .3s var(--ease); }
.btn:hover > .btn__arrow { animation: arrowLoop .55s var(--ease); }
@keyframes arrowLoop { 45% { transform: translateX(12px); opacity: 0; } 46% { transform: translateX(-10px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.btn--sm { padding: .6rem 1.1rem; font-size: .88rem; }
.btn--lg { padding: 1rem 1.8rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px -8px rgba(220, 38, 38, .6); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.35) 50%, transparent 80%);
  display: none;
}
.btn--primary:hover { box-shadow: 0 14px 34px -10px rgba(220, 38, 38, .75); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.04); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.1); }
.btn--light { background: #fff; color: var(--red-700); }
.btn--light:hover { box-shadow: 0 14px 34px -10px rgba(0,0,0,.4); }
.btn--outline-light { color: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background .35s, box-shadow .35s, backdrop-filter .35s, transform .4s var(--ease);
}
.nav__inner { display: flex; align-items: center; gap: 2rem; height: 92px; transition: height .35s var(--ease); }
.nav.is-scrolled .nav__inner { height: 74px; }
.nav__brand { position: relative; display: block; height: 60px; transition: height .35s var(--ease), opacity .4s var(--ease); }
.nav.is-scrolled .nav__brand { height: 50px; }
.nav.at-hero .nav__brand { opacity: 0; pointer-events: none; }
.nav__logo { height: 100%; width: auto; transition: opacity .35s; }
.nav__logo--color { position: absolute; inset: 0; opacity: 0; }
.nav.is-scrolled .nav__logo--light, .nav.is-open .nav__logo--light { opacity: 0; }
.nav.is-scrolled .nav__logo--color, .nav.is-open .nav__logo--color { opacity: 1; }
.nav__links { position: relative; display: flex; gap: .25rem; margin-left: auto; }
.nav__links a {
  position: relative; z-index: 1; padding: .5rem .9rem; border-radius: 999px;
  font-size: .93rem; font-weight: 500; color: rgba(255,255,255,.8); transition: color .25s;
}
.nav__links a:hover, .nav__links a.is-active { color: #fff; }
.nav__indicator {
  position: absolute; top: 0; left: 0; height: 100%; border-radius: 999px;
  background: rgba(255,255,255,.1); opacity: 0;
  transition: transform .45s cubic-bezier(.3, .7, .2, 1), width .45s cubic-bezier(.3, .7, .2, 1), opacity .25s;
}
.nav__links a { transition: color .3s var(--ease); }
.nav__dot {
  position: absolute; left: 0; bottom: -3px; width: 4px; height: 4px; border-radius: 50%;
  background: #f87171; box-shadow: 0 0 8px rgba(248, 113, 113, .8); opacity: 0; pointer-events: none;
  transition: transform .55s cubic-bezier(.3, .7, .2, 1), opacity .3s;
}
.nav.is-scrolled .nav__dot { background: var(--accent); box-shadow: none; }
.nav.is-scrolled { background: var(--nav-bg); backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav.is-scrolled .nav__links a { color: var(--muted); }
.nav.is-scrolled .nav__links a:hover, .nav.is-scrolled .nav__links a.is-active { color: var(--ink-2); }
.nav.is-scrolled .nav__indicator { background: rgba(220, 38, 38, .08); }
.nav__toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px; transition: transform .35s var(--ease), background .3s; }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav.is-scrolled .nav__toggle span, .nav.is-open .nav__toggle span { background: var(--ink-2); }
.nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav__mobile {
  display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: .25rem; padding: 0 20px 20px; box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .35);
  background: var(--surface); clip-path: inset(0 0 100% 0); transition: clip-path .45s var(--ease);
}
.nav__mobile a { padding: .9rem .25rem; font-weight: 600; font-family: var(--font-head); border-bottom: 1px solid var(--line); color: var(--ink-2); }
.nav__mobile .btn { margin-top: 1rem; border: 0; color: #fff; }
.nav.is-open { background: var(--surface); }
.nav.is-open .nav__brand { opacity: 1; pointer-events: auto; }
.nav.is-open .nav__mobile { clip-path: inset(0 0 0 0); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(1200px 600px at 80% -10%, #3b0d0d 0%, transparent 60%), var(--ink);
  color: #fff; padding: 104px 0 72px;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__glow {
  position: absolute; width: 640px; height: 640px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(220, 38, 38, .28), transparent 65%);
  left: 72%; top: 55%; transform: translate(-50%, -50%); filter: blur(10px); animation: breathe 9s ease-in-out infinite;
}
.hero__content { position: relative; text-align: center; max-width: 980px; }
.hero__logo {
  width: clamp(76px, min(8vw, 12vh), 116px); height: auto;
  opacity: 0; transform: translateY(12px) scale(.96);
  animation: logoIn 1.1s cubic-bezier(.16, 1, .3, 1) .05s forwards;
  filter: drop-shadow(0 18px 40px rgba(220, 38, 38, .25));
}
@keyframes logoIn { to { opacity: 1; transform: none; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; padding: .45rem 1rem; margin-bottom: 1.8rem;
  border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(255,255,255,.04);
  font-size: .85rem; color: rgba(255,255,255,.8); backdrop-filter: blur(6px);
}
.hero .eyebrow { margin-bottom: 1.4rem; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2s infinite; }
@keyframes breathe { 50% { opacity: .6; transform: translate(-50%, -50%) scale(1.12); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

.hero__title { color: #fff; font-size: clamp(2.4rem, min(6.2vw, 8.4vh), 5.2rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; margin-bottom: 1.4rem; text-wrap: initial; }
.hero__title .dot { margin-left: -.06em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__title .line > * { display: inline-block; }
.js .hero__title .line > * { transform: translateY(105%); transition: transform 1.1s cubic-bezier(.16, 1, .3, 1) var(--ld, 0s); }
.js .hero__title.is-in .line > * { transform: none; }
.rotator {
  display: inline-block; position: relative; vertical-align: bottom;
}
.rotator__word { display: inline-block; padding-bottom: .06em; background: linear-gradient(120deg, #fca5a5, #ef4444 45%, #f87171); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rotator__word.out { animation: wordOut .45s var(--ease) forwards; }
.rotator__word.in { animation: wordIn .55s var(--ease) forwards; }
@keyframes wordOut { to { transform: translateY(-80%); opacity: 0; filter: blur(6px); } }
@keyframes wordIn { from { transform: translateY(80%); opacity: 0; filter: blur(6px); } to { transform: none; opacity: 1; filter: none; } }

.hero__sub { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: rgba(255,255,255,.72); max-width: 700px; margin: 0 auto 1.9rem; }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__chips { list-style: none; padding: 0; margin: 2.2rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2.2rem; color: rgba(255,255,255,.6); font-size: .92rem; }
.hero__chips strong { color: #fff; font-weight: 600; margin-right: .25rem; }
.hero__chips li { position: relative; }
.hero__chips li + li::before { content: ""; position: absolute; left: -1.1rem; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--red); transform: translateY(-50%); }
.hero__scroll { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.3); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Logos marquee ---------- */
.logos { padding: 56px 0; border-bottom: 1px solid var(--line); }
.logos__label { text-align: center; text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; font-weight: 600; color: var(--muted); margin-bottom: 28px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 80px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img { height: var(--h, 32px); width: auto; transition: transform .35s cubic-bezier(.34,1.56,.64,1); cursor: pointer; }
.marquee__track img:hover { transform: scale(1.04); }
@keyframes marquee { to { transform: translateX(calc(-50% - 40px)); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 130px) 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--ink); color: rgba(255,255,255,.72); overflow: hidden; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { max-width: 720px; margin: 0 auto clamp(48px, 6vw, 72px); text-align: center; }
.section__head--split { max-width: none; display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px 64px; align-items: end; text-align: left; }
.section__head--split h2 { max-width: 15ch; }
.section__head--split .section__lede { margin: 0 0 .4rem; max-width: 46ch; justify-self: end; }
.section--dark .section__lede { color: rgba(255,255,255,.62); }
.section__lede { color: var(--muted); font-size: 1.08rem; margin-top: 1rem; }
.kicker { display: inline-flex; align-items: center; gap: .5rem; font: 600 .8rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.kicker::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: width .7s var(--ease) .25s; }
.js .kicker::before { width: 0; }
.js .kicker.is-in::before, .js .is-in .kicker::before { width: 18px; }
.section--dark .kicker { color: #f87171; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Spotlight cards ---------- */
.spotlight { --sx: 50%; --sy: 50%; position: relative; isolation: isolate; }
.spotlight::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--sx) var(--sy), rgba(220, 38, 38, .09), transparent 45%);
}
.spotlight:hover::before { opacity: 1; }

/* ---------- Cases ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case {
  display: flex; flex-direction: column; padding: 32px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s, opacity .9s var(--ease);
}
.case.is-in:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(220, 38, 38, .25); }
.case__logo { height: var(--h, 32px); width: auto; align-self: flex-start; margin-bottom: 26px; }
.case__metric { font: 700 1.5rem/1.2 var(--font-head); letter-spacing: -.02em; margin-bottom: .75rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.case p:not(.case__metric) { color: var(--muted); font-size: .96rem; flex: 1; }
.case__tag { align-self: flex-start; margin-top: .5rem; padding: .35rem .75rem; border-radius: 999px; background: var(--tint); font-size: .78rem; font-weight: 500; color: var(--muted); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: stretch; }
.services__tabs { position: relative; display: flex; flex-direction: column; gap: 8px; }
.services__tab {
  position: relative; z-index: 1; display: flex; gap: 16px; align-items: flex-start; text-align: left;
  padding: 22px 22px; border: 0; background: transparent; border-radius: 14px; cursor: pointer; font: inherit; color: var(--muted);
  transition: color .3s;
}
.services__tab strong { display: block; font: 700 1.05rem/1.3 var(--font-head); color: var(--ink-3); transition: color .3s; }
.services__tab small { font-size: .88rem; }
.services__num { font: 700 .85rem/1.6 var(--font-head); color: var(--faint); transition: color .3s; }
.services__tab.is-active .services__num, .services__tab.is-active strong { color: var(--accent); }
.services__tab:not(.is-active):hover strong { color: var(--ink-2); }
.services__bar {
  position: absolute; left: 0; top: 0; width: 100%; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow);
  transition: transform .5s var(--ease), height .5s var(--ease);
}
.services__bar::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 3px; background: var(--grad); }
.services__panels { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(28px, 4vw, 52px); overflow: hidden; }
.services__panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.services__panel[hidden] { display: none; }
.services__panel.is-active > * { animation: panelIn .6s var(--ease) both; }
.services__panel.is-active > *:nth-child(2) { animation-delay: .1s; }
@keyframes panelIn { from { opacity: 0; transform: translateY(18px); } }
.services__panel h3 { font-size: 1.75rem; margin-bottom: 1rem; }
.services__panel p { color: var(--muted); margin-bottom: 1.8rem; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding: 14px 16px 14px 50px; border-radius: 12px; background: var(--tint); font-weight: 500; font-size: .95rem; color: var(--ink-3); }
.checks li::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: var(--grad) ;
}
.checks li::after {
  content: ""; position: absolute; left: 23px; top: 50%; width: 5px; height: 10px; margin-top: -7px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.services__panel.is-active .checks li { animation: panelIn .5s var(--ease) both; }
.services__panel.is-active .checks li:nth-child(1) { animation-delay: .15s; }
.services__panel.is-active .checks li:nth-child(2) { animation-delay: .22s; }
.services__panel.is-active .checks li:nth-child(3) { animation-delay: .29s; }
.services__panel.is-active .checks li:nth-child(4) { animation-delay: .36s; }

/* ---------- Process ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.process__line { position: absolute; top: 32px; left: 16.66%; width: 66.66%; height: 4px; overflow: visible; }
.process__line line { stroke: var(--red); stroke-width: 2; stroke-dasharray: 1000; stroke-dashoffset: calc(1000 - var(--p, 0) * 1000); vector-effect: non-scaling-stroke; }
.process::before { content: ""; position: absolute; top: 33px; left: 16.66%; width: 66.66%; border-top: 2px dashed var(--line); }
.step { position: relative; text-align: center; padding: 0 12px; }
.step__num {
  display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 28px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line); font: 800 1.1rem/1 var(--font-head); color: var(--muted); position: relative; z-index: 1;
  transition: border-color .5s, color .5s, box-shadow .5s, transform .5s var(--ease);
}
.step.is-lit .step__num { border-color: var(--red); color: var(--red); box-shadow: 0 0 0 6px rgba(220, 38, 38, .06); }
.step h3 { margin-bottom: .75rem; font-size: 1.3rem; }
.step p { color: var(--muted); max-width: 320px; margin-inline: auto; }

/* ---------- Why us / dark ---------- */
.grid-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.section--dark .container { position: relative; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  padding: 30px 26px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); backdrop-filter: blur(4px);
  transition: transform .45s var(--ease), border-color .3s, opacity .9s var(--ease);
}
.feature.spotlight::before { background: radial-gradient(360px circle at var(--sx) var(--sy), rgba(239, 68, 68, .18), transparent 50%); }
.feature.is-in:hover { transform: none; border-color: rgba(239, 68, 68, .35); }
.feature__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--grad); margin-bottom: 22px; box-shadow: 0 10px 24px -8px rgba(220,38,38,.6); }
.feature h3 { margin-bottom: .6rem; }
.feature p { font-size: .95rem; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: clamp(64px, 8vw, 96px); border-top: 1px solid rgba(255,255,255,.1); }
.stat { padding: 40px 12px 0; text-align: center; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.08); }
.stat__value { display: block; font: 800 clamp(2.2rem, 4vw, 3.3rem)/1 var(--font-head); color: #fff; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat__label { display: block; margin-top: .75rem; font-size: .9rem; }

/* ---------- Testimonials ---------- */
.slider { position: relative; max-width: 880px; margin: 0 auto; text-align: center; }
.slider__quote { width: 56px; height: 56px; fill: rgba(220, 38, 38, .15); margin: 0 auto 24px; }
.slider__viewport { display: grid; }
.slide { margin: 0 0 40px; }
.js .slide { grid-area: 1 / 1; align-self: center; margin: 0; opacity: 0; visibility: hidden; transform: translateX(40px); transition: opacity .6s var(--ease), transform .6s var(--ease), visibility 0s linear .6s; }
.js .slide.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.slide blockquote { margin: 0 0 36px; font: 500 clamp(1.15rem, 2.2vw, 1.55rem)/1.55 var(--font-head); color: var(--ink-2); letter-spacing: -.01em; }
.slide figcaption { display: inline-flex; align-items: center; gap: 14px; text-align: left; }
.slide figcaption img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); box-shadow: var(--shadow-sm); }
.slide figcaption strong { display: block; color: var(--ink-2); font-family: var(--font-head); }
.slide figcaption span { font-size: .9rem; color: var(--muted); }
.slider__controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 40px; }
.slider__btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .3s, transform .3s var(--ease), background .3s; }
.slider__btn svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.slider__btn:hover { border-color: var(--red); }
.slider__dots { display: flex; gap: 8px; }
.slider__dot { position: relative; width: 34px; height: 4px; border: 0; padding: 0; border-radius: 4px; background: var(--line); cursor: pointer; overflow: hidden; }
.slider__dot i { position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(0); }
.slider__dot.is-active i { animation: fill var(--dur, 7s) linear forwards; }
.slider.is-paused .slider__dot.is-active i { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.about__photo { position: relative; }
.about__frame { border-radius: 28px; overflow: hidden; background: var(--photo-bg); box-shadow: var(--shadow); transform-style: preserve-3d; transition: transform .4s var(--ease); max-width: 440px; }
.about__frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.about__badge {
  position: absolute; right: 0; bottom: 36px; display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-radius: 16px;
  background: var(--surface); box-shadow: var(--shadow); max-width: 240px;
}
.about__badge strong { font: 800 1.9rem/1 var(--font-head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about__badge span { font-size: .85rem; color: var(--muted); line-height: 1.35; }
@keyframes float { 50% { transform: translateY(-10px); } }
.about__text h2 { margin-bottom: 1.5rem; }
.about__text p { color: var(--muted); font-size: 1.05rem; }
.about__sign { margin-top: 2rem; padding-left: 16px; border-left: 3px solid var(--red); }
.about__sign strong { display: block; color: var(--ink-2); font-family: var(--font-head); }
.about__sign span { font-size: .9rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.contact__form-wrap h2 { margin-bottom: .25rem; }
.form { display: grid; gap: 18px; margin-top: 2rem; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 24px 18px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--tint);
  font: inherit; color: var(--ink-2); resize: vertical; transition: border-color .25s, background .25s, box-shadow .25s;
}
.field textarea { min-height: 140px; }
.field label { position: absolute; left: 18px; top: 17px; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform .25s var(--ease), color .25s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); background: var(--surface); box-shadow: 0 0 0 4px rgba(220, 38, 38, .1); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.78); color: var(--red); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--red); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.btn__spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-loading .btn__spinner { display: inline-block; }
.btn.is-loading .btn__label { opacity: .7; }
.form__status { min-height: 1.5em; margin: 0; font-size: .95rem; font-weight: 500; }
.form__status.ok { color: #15803d; }
.form__status.err { color: var(--red); }
.contact__mail { color: var(--muted); font-size: .95rem; }
.contact__mail a { color: var(--accent); font-weight: 600; }

.faq { background: var(--tint); border-radius: 24px; padding: clamp(24px, 4vw, 44px); }
.faq h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  list-style: none; position: relative; cursor: pointer; padding: 20px 40px 20px 0;
  font: 600 1.02rem/1.4 var(--font-head); color: var(--ink-2);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: var(--shadow-sm); transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq__body { overflow: hidden; }
.faq__body p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.6); padding: 64px 0 28px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__brand img { height: 64px; width: auto; margin-bottom: 14px; }
.footer__brand p, .footer__address { margin: 0; font-size: .92rem; font-style: normal; line-height: 1.6; opacity: .75; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer__links a, .footer__top { transition: color .25s; }
.footer__links a:hover, .footer__top:hover, .footer__mail:hover { color: #fff; }
.footer__mail { color: #f87171; font-weight: 600; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cases { grid-template-columns: repeat(2, 1fr); }
  .section__head--split { grid-template-columns: 1fr; }
  .section__head--split .section__lede { justify-self: start; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); row-gap: 8px; }
  .stat:nth-child(4) { border-left: 0; }
  .services { grid-template-columns: 1fr; }
  .services__tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .services__tab { flex: 1; min-width: 200px; }
  .services__bar::before { left: 18%; right: 18%; top: auto; bottom: 0; width: auto; height: 3px; }
}
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__mobile { display: flex; }
  .services__panel { grid-template-columns: 1fr; gap: 28px; }
  .process { grid-template-columns: 1fr; gap: 48px; }
  .process::before, .process__line { display: none; }
  .about, .contact { grid-template-columns: 1fr; }
  .about__photo { max-width: 440px; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .cases, .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0 !important; }
  .stat:last-child { grid-column: 1 / -1; }
  .hero__chips li + li::before { display: none; }
  .hero__chips { flex-direction: column; gap: .5rem; }
  .services__tabs { overflow: visible; gap: 4px; padding: 4px; background: var(--chip); border-radius: 16px; }
  .services__tab { flex: 1; min-width: 0; padding: 12px 6px; justify-content: center; text-align: center; }
  .services__tab strong { font-size: .82rem; }
  .services__tab small, .services__num { display: none; }
  .services__bar { box-shadow: var(--shadow-sm); }
  .about__badge { right: 12px; }
  .hero__actions .btn { width: 100%; }
}

/* ==========================================================
   Delight layer — small reactions at every interaction point
   ========================================================== */

/* Buttons: light follows the pointer, presses feel physical */
.btn { --bx: 50%; --by: 50%; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .3s;
  background: radial-gradient(110px circle at var(--bx) var(--by), rgba(255,255,255,.3), transparent 65%);
}
.btn--light::before { background: radial-gradient(110px circle at var(--bx) var(--by), rgba(220,38,38,.14), transparent 65%); }
.btn:hover::before { opacity: 1; }
.btn:active { transform: scale(.97); transition-duration: .08s; }

/* Form submit: morphs into a confirmation */
.btn__check { display: none; width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; }
.btn.is-done { background: linear-gradient(120deg, #16a34a, #15803d); box-shadow: 0 10px 28px -10px rgba(22,163,74,.6); }
.btn.is-done .btn__check { display: inline-block; animation: draw .45s var(--ease) .1s both; }
@keyframes draw { from { stroke-dashoffset: 22; } to { stroke-dashoffset: 0; } }
.burst { position: fixed; z-index: 300; pointer-events: none; }

/* Cards: a thin edge of light under the cursor */
.glow { position: relative; --gx: 50%; --gy: 50%; }
.glow::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(240px circle at var(--gx) var(--gy), rgba(239, 68, 68, .8), transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .4s;
}
.glow:hover::after { opacity: 1; }
.case .case__logo { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.case:hover .case__logo { transform: translateY(-2px) scale(1.04); }

/* Hero logo wrapper */
.hero__logo-wrap { position: relative; display: block; width: fit-content; margin: 0 auto 1.4rem; }

/* Rotating word: underline draws, holds, then hands over */
.rotator::after {
  content: ""; position: absolute; left: 3%; right: 3%; bottom: .04em; height: .055em; border-radius: 1em;
  background: linear-gradient(90deg, #ef4444, #fca5a5); transform: scaleX(0); transform-origin: left;
}
.rotator.draw::after { animation: underline 2.5s var(--ease) both; }
@keyframes underline {
  0% { transform: scaleX(0); transform-origin: left; }
  28% { transform: scaleX(1); transform-origin: left; }
  78% { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* Services: checkmarks pop and draw in */
.checks.has-ticks li::before, .checks.has-ticks li::after { display: none; }
.tick { position: absolute; left: 16px; top: 50%; width: 22px; height: 22px; margin-top: -11px; overflow: visible; }
.tick circle { fill: var(--red); transform-box: fill-box; transform-origin: center; }
.tick path { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; }
.services__panel.is-active .tick circle { animation: pop .5s cubic-bezier(.34, 1.56, .64, 1) var(--td, 0s) both; }
.services__panel.is-active .tick path { animation: tickDraw .4s ease-out calc(var(--td, 0s) + .18s) both; }
@keyframes pop { from { transform: scale(0); } }
@keyframes tickDraw { from { stroke-dashoffset: 16; } to { stroke-dashoffset: 0; } }
.services__tab { transition: color .3s, transform .3s var(--ease); }
.services__tab:active { transform: scale(.98); }

/* Process: each step announces itself with one ring */
.step__num::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--red); opacity: 0; pointer-events: none; }
.step.is-lit .step__num::after { animation: ring 1.1s ease-out; }
@keyframes ring { from { opacity: .55; transform: scale(1); } to { opacity: 0; transform: scale(1.8); } }

/* Numbers: settle with a small breath when they land */
.stat__value.settled { animation: settle .6s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes settle { 40% { transform: scale(1.07); text-shadow: 0 0 28px rgba(239, 68, 68, .55); } }

/* Testimonials: the quote mark nods at each new voice */
.slider__quote { transform-origin: 50% 70%; }
.slider__quote.nod { animation: nod .7s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes nod { 0% { transform: scale(.7) rotate(-8deg); opacity: .3; } 100% { transform: none; opacity: 1; } }
.slider__btn:active { transform: scale(.92); }
.slide figcaption img { transition: transform .5s var(--ease); }
.slide.is-active figcaption img { animation: popIn .6s cubic-bezier(.34, 1.56, .64, 1) .15s both; }
@keyframes popIn { from { transform: scale(.6); opacity: 0; } }

/* Founder photo: subtle depth on scroll */
.about__frame img { transform: translateY(var(--py, 0px)) scale(1.08); will-change: transform; }

/* Contact: the email field confirms itself */
.field__ok { position: absolute; right: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; fill: none; stroke: #16a34a; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; opacity: 0; transition: opacity .2s; }
.field.is-valid .field__ok { opacity: 1; animation: draw2 .4s var(--ease) forwards; }
@keyframes draw2 { to { stroke-dashoffset: 0; } }
.field.is-valid input { border-color: rgba(22, 163, 74, .45); }

/* Copy email */
.copy { position: relative; display: inline-grid; place-items: center; width: 30px; height: 30px; margin-left: 6px; vertical-align: middle; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; transition: background .2s, transform .2s var(--ease); }
.copy:hover { background: rgba(220, 38, 38, .08); }
.footer .copy:hover { background: rgba(255,255,255,.08); }
.copy:active { transform: scale(.9); }
.copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.copy__tip {
  position: absolute; bottom: calc(100% + 8px); left: 50%; padding: .35rem .6rem; border-radius: 8px; white-space: nowrap;
  background: var(--ink-2); color: #fff; font: 600 .75rem/1 var(--font-body); pointer-events: none;
  opacity: 0; transform: translate(-50%, 6px) scale(.9);
}
.copy.is-copied .copy__tip { animation: tip 1.6s cubic-bezier(.34, 1.56, .64, 1) forwards; }
@keyframes tip { 15%, 80% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, -4px) scale(.96); } }

/* Footer: back-to-top arrow lifts */
.footer__top { display: inline-block; transition: color .25s, transform .3s var(--ease); }
.footer__top:hover { transform: translateY(-3px); }

/* ==========================================================
   Craft layer — brand language, details, themes
   ========================================================== */

/* ---- Brand mark: the ribbon's outline draws itself, colour sweeps in, the word settles ---- */
.hero__logo-wrap .mark { display: block; width: clamp(76px, min(8vw, 12vh), 116px); height: auto; overflow: visible; filter: drop-shadow(0 18px 40px rgba(220, 38, 38, .22)); }
.mark .f--l { fill: #e74439; }
.mark .f--m { fill: #bd2f29; }
.mark .f--d { fill: #9b383a; }
.mark__word { fill: #fff; }
.mark__lines .o { fill: none; stroke: #fca5a5; stroke-width: 1.1; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 0; }
.js .mark__lines .o { animation: outline 1.7s cubic-bezier(.6, 0, .2, 1) both; animation-delay: calc(.08s + var(--i) * 18ms); }
@keyframes outline {
  0% { stroke-dashoffset: 1; opacity: 1; }
  45% { stroke-dashoffset: 0; opacity: 1; }
  75% { opacity: .9; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
.js .mark__word { opacity: 0; animation: wordIn2 .9s cubic-bezier(.16, 1, .3, 1) 1.15s forwards; }
@keyframes wordIn2 { from { opacity: 0; transform: translateY(10px); letter-spacing: .2em; } to { opacity: 1; transform: none; } }
/* hover: light traces the ribbon's edges once */
.hero__logo-wrap { cursor: default; }
.hero__logo-wrap.trace .mark__lines .o { animation: trace 1.2s cubic-bezier(.5, 0, .2, 1) both; animation-delay: calc(var(--i) * 22ms); stroke: #fff; }
@keyframes trace { 0% { stroke-dashoffset: 1; opacity: .95; } 60% { stroke-dashoffset: 0; opacity: .95; } 100% { stroke-dashoffset: 0; opacity: 0; } }

/* ---- Feature icons: one consistent line set with a soft red fill ---- */
.feature__icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(150deg, rgba(239, 68, 68, .2), rgba(239, 68, 68, .04) 70%);
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, .28), inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 24px -14px rgba(239, 68, 68, .7);
}
.ico { width: 28px; height: 28px; overflow: visible; fill: none; stroke: #fde8e8; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico .ico__fill { fill: rgba(239, 68, 68, .45); stroke: none; }
.ico .ico__ticks { stroke: #f87171; }
/* one small gesture each, on card hover */
.ico__second, .ico__needle, .ico__keygroup { transform-box: fill-box; transition: transform .6s var(--spring); }
.ico__second { transform-origin: 50% 100%; }
.feature:hover .ico__second { transform: translate(-1.2px, -1.2px); }
.ico__needle { transform-box: view-box; transform-origin: 12px 17px; transform: rotate(-70deg); }
.feature:hover .ico__needle { transform: rotate(0deg); transition-duration: .9s; }
.ico__check { stroke-dasharray: 1; stroke-dashoffset: 0; }
.feature:hover .ico__check { animation: icoCheck .55s var(--ease); }
@keyframes icoCheck { from { stroke-dashoffset: 1; } }
.ico__keygroup { transform-origin: 8px 15.5px; transform-box: view-box; }
.feature:hover .ico__keygroup { transform: rotate(-22deg); }

/* isometric cube (404 page) */
.iso .t { fill: #f87171; }
.iso .l { fill: #dc2626; }
.iso .r { fill: #7f1d1d; }

/* ---- Testimonials: left-aligned with hanging punctuation ---- */
.slider { text-align: left; max-width: 900px; }
.slider__quote { margin: 0 0 20px -6px; }
.slide blockquote { text-indent: -.42em; hanging-punctuation: first last; }
.slider__controls { justify-content: flex-start; }

/* ---- Founder's note ---- */
.note { margin: 2rem 0 0; padding: 0; }
.note p { position: relative; font: 500 1.12rem/1.65 var(--font-head); color: var(--ink-3); letter-spacing: -.005em; text-indent: -.45em; }
.note p::before { content: "“"; }
.note p::after { content: "”"; }
.note__sign { display: flex; align-items: center; gap: 18px; margin-top: 1.25rem; }
.note__sign span { font-size: .9rem; color: var(--muted); line-height: 1.4; }
.note__sign strong { display: block; color: var(--ink-2); font-family: var(--font-head); }
/* ---- Form hints ---- */
.field__hint { margin: .5rem 2px 0; font-size: .84rem; color: var(--muted); }

/* ---- Focus, selection, scrollbar ---- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; animation: focusIn .25s var(--ease); }
@keyframes focusIn { from { outline-offset: 7px; } }
.section--dark :focus-visible, .hero :focus-visible, .footer :focus-visible { outline-color: #fca5a5; }
::selection { background: rgba(220, 38, 38, .18); }
.hero ::selection, .section--dark ::selection, .footer ::selection { background: rgba(248, 113, 113, .35); color: #fff; }
html { scrollbar-width: thin; scrollbar-color: rgba(127, 135, 150, .45) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(127, 135, 150, .45); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(220, 38, 38, .6); }

/* ---- Skip link ---- */
.skip { position: fixed; left: 16px; top: 12px; z-index: 400; padding: .7rem 1rem; border-radius: 10px; background: var(--ink-2); color: #fff; font-weight: 600; transform: translateY(-160%); transition: transform .25s var(--ease); }
.skip:focus-visible { transform: none; }
main:focus { outline: none; }

/* ---- Theme toggle ---- */
.theme { position: relative; display: grid; place-items: center; width: 40px; height: 40px; margin-left: -1rem; border: 0; border-radius: 50%; background: transparent; color: rgba(255, 255, 255, .85); cursor: pointer; transition: background .25s, color .25s, transform .3s var(--ease); }
.theme:hover { background: rgba(255, 255, 255, .1); }
.theme:active { transform: scale(.9); }
.nav.is-scrolled .theme, .nav.is-open .theme { color: var(--ink-3); }
.nav.is-scrolled .theme:hover { background: var(--chip); }
.theme svg { position: absolute; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--spring), opacity .3s; }
.theme__moon { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-theme="dark"] .theme__sun { opacity: 0; transform: rotate(90deg) scale(.5); }
:root[data-theme="dark"] .theme__moon { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme__sun { opacity: 0; transform: rotate(90deg) scale(.5); }
  :root:not([data-theme="light"]) .theme__moon { opacity: 1; transform: none; }
}
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---- Dark theme specifics (logos and images) ---- */
:root[data-theme="dark"] .marquee__track img,
:root[data-theme="dark"] .case__logo { filter: brightness(0) invert(1); opacity: .62; }
:root[data-theme="dark"] .marquee__track img:hover { opacity: .95; }
:root[data-theme="dark"] .nav.is-scrolled .nav__logo--light { opacity: 1; }
:root[data-theme="dark"] .nav.is-scrolled .nav__logo--color { opacity: 0; }
:root[data-theme="dark"] .nav.is-open .nav__logo--light { opacity: 1; }
:root[data-theme="dark"] .nav.is-open .nav__logo--color { opacity: 0; }
:root[data-theme="dark"] { --photo-bg: linear-gradient(160deg, #3b1212, #161c2a); }
:root[data-theme="dark"] .btn--light { background: #fff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .marquee__track img,
  :root:not([data-theme="light"]) .case__logo { filter: brightness(0) invert(1); opacity: .62; }
  :root:not([data-theme="light"]) .nav.is-scrolled .nav__logo--light,
  :root:not([data-theme="light"]) .nav.is-open .nav__logo--light { opacity: 1; }
  :root:not([data-theme="light"]) .nav.is-scrolled .nav__logo--color,
  :root:not([data-theme="light"]) .nav.is-open .nav__logo--color { opacity: 0; }
  :root:not([data-theme="light"]) { --photo-bg: linear-gradient(160deg, #3b1212, #161c2a); }
}

/* ---- Mobile: thumb-reach booking button ---- */
.dock { display: none; }
@media (max-width: 860px) {
  .dock {
    display: inline-flex; position: fixed; z-index: 90; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom));
    padding: 1rem 1.4rem; font-size: 1rem; box-shadow: 0 16px 40px -12px rgba(127, 29, 29, .7);
    transform: translateY(160%); transition: transform .5s var(--spring);
  }
  .dock.is-shown { transform: none; }
  .theme { margin-left: auto; }
  .nav__toggle { margin-left: 4px; }
  .nav.is-open .nav__mobile a { animation: menuIn .45s var(--ease) both; }
  .nav.is-open .nav__mobile a:nth-child(2) { animation-delay: .04s; }
  .nav.is-open .nav__mobile a:nth-child(3) { animation-delay: .08s; }
  .nav.is-open .nav__mobile a:nth-child(4) { animation-delay: .12s; }
  .nav.is-open .nav__mobile a:nth-child(5) { animation-delay: .16s; }
  .nav.is-open .nav__mobile a:nth-child(6) { animation-delay: .2s; }
  .hero__content { text-align: left; }
  .hero__logo-wrap { margin: 0 0 1.4rem; }
  .hero__sub { margin-left: 0; }
  .hero__actions, .hero__chips { justify-content: flex-start; }
  .slider__quote { width: 40px; height: 40px; }
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---- Without JavaScript everything is still readable ---- */
html:not(.js) .services__tabs { display: none; }
html:not(.js) .services__panels { display: grid; gap: 48px; }
html:not(.js) .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; row-gap: 28px; }
html:not(.js) .slider__controls, html:not(.js) .theme, html:not(.js) .hero__scroll { display: none; }

/* ==========================================================
   Flow — continuous, scroll-linked motion
   ========================================================== */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* fluid gutters and type that scale continuously with the window */
.container { width: min(1200px, 100% - clamp(32px, 5vw, 80px)); }
body { font-size: clamp(15.5px, .9rem + .15vw, 17px); }

.hero__content { will-change: transform, opacity; transform-origin: 50% 0; }
.marquee__track { will-change: transform; }

/* images fade in as they arrive */
img { transition: opacity .6s var(--ease); }
:where(.js) img[loading="lazy"]:not(.is-loaded) { opacity: 0 !important; }

/* Scroll-linked reveals: content rises with your scroll and rewinds when you scroll back.
   Browsers without scroll timelines keep the one-time reveal above. */
@supports (animation-timeline: view()) {
  .js main > section:not(.hero) .reveal {
    opacity: 1; transform: none; transition: none;
    animation: flowIn linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }
  .js .section__head .reveal, .js .about__text .reveal { animation-range: entry 0% cover 22%; }
  .js .cases .case:nth-child(3n + 2), .js .features .feature:nth-child(4n + 2) { animation-range: entry 4% cover 31%; }
  .js .cases .case:nth-child(3n + 3), .js .features .feature:nth-child(4n + 3) { animation-range: entry 8% cover 34%; }
  .js .features .feature:nth-child(4n + 4) { animation-range: entry 12% cover 37%; }
  .js .stat { animation-range: entry 0% cover 20%; }
  /* the founder photo and section headings drift a little slower than the page */
  .js main .about .about__photo.reveal { animation: drift linear both; animation-timeline: view(); animation-range: cover; }
}
@keyframes flowIn { from { opacity: 0; transform: translateY(44px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: translateY(40px); } to { transform: translateY(-40px); } }

/* ==========================================================
   Breeze — text flows in word by word with the scroll
   ========================================================== */
.breeze .w { display: inline-block; text-indent: 0; }
/* containers that hold breezing text stay still, so the words carry the motion */
.js .contact__form-wrap.reveal, .js .note.reveal { opacity: 1; transform: none; animation: none; transition: none; }

@supports (animation-timeline: view()) {
  /* headings: each word lifts a little and comes into focus, left to right */
  .js .breeze--head .w {
    animation: breezeHead linear both;
    animation-timeline: view();
    animation-range: cover calc(4% + var(--p) * 14%) cover calc(20% + var(--p) * 14%);
  }
  /* paragraphs: words brighten in reading order as the text moves up the screen */
  .js .breeze--text .w {
    animation: breezeText linear both;
    animation-timeline: view();
    animation-range: cover calc(8% + var(--p) * 22%) cover calc(16% + var(--p) * 22%);
  }
}
@keyframes breezeHead { from { opacity: 0; transform: translateY(.38em); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes breezeText { from { opacity: .16; } to { opacity: 1; } }

/* same motion, played once, where scroll timelines aren't available */
@supports not (animation-timeline: view()) {
  .js .breeze--head .w { opacity: 0; transform: translateY(.38em); filter: blur(5px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: calc(var(--p) * .45s); }
  .js .breeze--text .w { opacity: .16; transition: opacity .8s var(--ease); transition-delay: calc(var(--p) * .9s); }
  .js .breeze.is-in .w { opacity: 1; transform: none; filter: none; }
}

/* ==========================================================
   Code field — faint code behind "Engineering partners",
   brought up by a soft light that follows the pointer
   ========================================================== */
.codefield {
  --mx: 70%; --my: 40%; --r: 0px;
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  font: 400 12.5px/1.75 ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color: rgba(203, 210, 222, .62);
  /* faint everywhere, brighter inside the light, soft at the top and bottom */
  -webkit-mask-image:
    radial-gradient(circle var(--r) at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, .5) 45%, rgba(0, 0, 0, .085) 100%),
    linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(circle var(--r) at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, .5) 45%, rgba(0, 0, 0, .085) 100%),
    linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  mask-composite: intersect;
}
.codefield__inner { position: absolute; inset: -60px -40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 56px; padding: 0 24px; }
.codefield__col { display: flex; flex-direction: column; gap: 52px; will-change: transform; }
.codefield__col:nth-child(2) { padding-top: 120px; }
.codefield__col:nth-child(3) { padding-top: 40px; }
.codefield__col:nth-child(4) { padding-top: 180px; }
.codefield pre { margin: 0; font: inherit; white-space: pre; tab-size: 2; }
.codefield i { font-style: normal; }
.codefield .k { color: #f87171; }
.codefield .s { color: #fca5a5; }
.codefield .n { color: #fdba74; }
.codefield .a { color: #fb7185; }
.codefield .f { color: #f3f4f6; }
.codefield .c { color: #6b7280; font-style: italic; }
@media (max-width: 1024px) {
  .codefield__inner { grid-template-columns: repeat(2, 1fr); }
  .codefield__col:nth-child(n + 3) { display: none; }
}
@media (max-width: 600px) {
  .codefield { font-size: 11px; }
  .codefield__inner { grid-template-columns: 1fr; }
  .codefield__col:nth-child(n + 2) { display: none; }
}

/* ==========================================================
   Testimonials — a moment of recognition on hover
   ========================================================== */
.avatar { position: relative; z-index: 2; display: inline-grid; place-items: center; flex: none; transition: transform .8s var(--spring); }
.avatar img { position: relative; z-index: 1; transition: box-shadow .8s var(--ease); }
.avatar__ring { position: absolute; inset: -7px; width: calc(100% + 14px); height: calc(100% + 14px); overflow: visible; transform: rotate(-90deg); pointer-events: none; }
.avatar__ring circle {
  fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .9;
  transition: stroke-dashoffset .6s var(--ease);
}
.slide figcaption { cursor: default; }
.slide figcaption strong { position: relative; width: fit-content; transition: color .5s var(--ease); }
.slide figcaption strong::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.slide figcaption > span:not(.avatar) { transition: transform .7s var(--ease); }

.slide figcaption:hover .avatar { transform: scale(1.14); }
.slide figcaption:hover .avatar img { box-shadow: 0 14px 30px -10px rgba(220, 38, 38, .55); }
.slide figcaption:hover .avatar__ring circle { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s cubic-bezier(.65, 0, .25, 1); }
.slide figcaption:hover strong { color: var(--accent); }
.slide figcaption:hover strong::after { transform: scaleX(1); transition-delay: .35s; }
.slide figcaption:hover > span:not(.avatar) { transform: translateX(4px); }

/* sparkles: pop out once the ring is drawn, then twinkle while hovered */
.sparks { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.spark { position: absolute; display: block; opacity: 0; transform: scale(0) rotate(-60deg); }
.spark svg { display: block; width: 100%; height: 100%; fill: #f59e0b; filter: drop-shadow(0 0 2px rgba(251, 191, 36, 1)) drop-shadow(0 0 7px rgba(245, 158, 11, .75)); }
.spark--1 { width: 20px; height: 20px; top: -13px; right: -13px; }
.spark--2 { width: 11px; height: 11px; bottom: -12px; left: -12px; }
.spark--3 { width: 8px; height: 8px; top: -18px; left: 6px; }
.slide figcaption:hover .spark { animation: sparkIn .55s var(--spring) forwards, twinkle 1.8s ease-in-out infinite; }
.slide figcaption:hover .spark--1 { animation-delay: 1.05s, 1.6s; }
.slide figcaption:hover .spark--2 { animation-delay: 1.25s, 1.9s; }
.slide figcaption:hover .spark--3 { animation-delay: 1.4s, 2.2s; }
@keyframes sparkIn { to { opacity: 1; transform: scale(1) rotate(0deg); } }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); } 50% { opacity: .7; transform: scale(.78) rotate(25deg); } }

/* founder portrait: a line traces the frame and the photo lifts */
.portrait { position: relative; max-width: 440px; }
.portrait__line { position: absolute; inset: -10px; width: calc(100% + 20px); height: calc(100% + 20px); overflow: visible; pointer-events: none; }
.portrait__line rect {
  width: calc(100% - 2px); height: calc(100% - 2px);
  fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .7s var(--ease);
}
.portrait .about__frame { transition: transform .9s var(--spring), box-shadow .9s var(--ease); }
.portrait:hover .about__frame, .about:has(.note__sign:hover) .about__frame { transform: scale(1.025); box-shadow: 0 30px 60px -24px rgba(220, 38, 38, .45); }
.portrait:hover .portrait__line rect, .about:has(.note__sign:hover) .portrait__line rect { stroke-dashoffset: 0; transition: stroke-dashoffset 2s cubic-bezier(.65, 0, .25, 1); }
.about__badge { z-index: 3; }

/* ==========================================================
   Buttons with personality — one small gesture each
   ========================================================== */
.bi { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }

/* Label roll: the words lift away and a friendlier line rolls in */
.roll { display: inline-grid; overflow: hidden; line-height: 1.25; padding-block: .1em; margin-block: -.1em; }
.roll > span, .roll::after { grid-area: 1 / 1; transition: transform .55s cubic-bezier(.7, 0, .2, 1), opacity .4s; }
.roll::after { content: attr(data-alt); content: attr(data-alt) / ""; text-align: center; transform: translateY(105%); opacity: 0; }
.btn:hover .roll > span { transform: translateY(-105%); opacity: 0; }
.btn:hover .roll::after { transform: none; opacity: 1; }

/* Book a call: the calendar flips a page */
.btn__cal { width: 16px; height: 16px; }
.btn__cal-top { transform-box: fill-box; transform-origin: 50% 100%; }
.btn--cal:hover .btn__cal-top { animation: pageFlip .6s cubic-bezier(.5, 0, .2, 1); }
@keyframes pageFlip { 50% { transform: scaleY(-1); } }

/* See our work: a fine line traces the edge, an arrow slips out and back */
.btn--work { gap: .55rem; }
.btn__trace { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.btn__trace rect { width: calc(100% - 2px); height: calc(100% - 2px); fill: none; stroke: #fca5a5; stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .5s var(--ease); }
.btn--work:hover .btn__trace rect { stroke-dashoffset: 0; transition: stroke-dashoffset 1s cubic-bezier(.65, 0, .25, 1); }
.btn--work:hover { border-color: transparent; }
.btn__out { width: 16px; height: 16px; }
.btn--work:hover .btn__out { animation: slipOut .6s var(--ease); }
@keyframes slipOut { 45% { transform: translate(9px, -9px); opacity: 0; } 46% { transform: translate(-9px, 9px); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* Plan my MVP: lift-off */
.btn__rocket { transition: transform .5s var(--spring); }
.btn__flame { fill: #fde68a; stroke: none; opacity: 0; transform-box: fill-box; transform-origin: 100% 0; transition: opacity .2s; }
.btn--rocket:hover .btn__rocket { transform: translate(3px, -3px); animation: hover-shake .5s ease-in-out .35s 2; }
.btn--rocket:hover .btn__flame { opacity: 1; animation: flame .18s linear infinite alternate; }
@keyframes hover-shake { 50% { translate: .6px -.6px; } }
@keyframes flame { to { transform: scale(1.35); } }

/* Meet our engineers: three teammates pop in */
.btn__team { display: inline-flex; margin-left: 2px; }
.btn__team i { width: 12px; height: 12px; border-radius: 50%; background: #fecaca; border: 2px solid #b91c1c; margin-left: -4px; transform: scale(.82); transition: transform .45s var(--spring), background .3s; }
.btn__team i:nth-child(2) { background: #fca5a5; }
.btn__team i:nth-child(3) { background: #fff; }
.btn--team:hover .btn__team i { transform: scale(1.12) translateY(-2px); }
.btn--team:hover .btn__team i:nth-child(2) { transition-delay: .07s; }
.btn--team:hover .btn__team i:nth-child(3) { transition-delay: .14s; }

/* Plan a modernization: old turns into new */
.btn__cycle { transition: transform .7s var(--spring); }
.btn--cycle:hover .btn__cycle { transform: rotate(180deg); }

/* Send message: the paper plane hops forward */
.btn__plane { width: 17px; height: 17px; transition: transform .5s var(--spring); }
.btn:hover .btn__plane { animation: hop .7s var(--ease); }
@keyframes hop { 40% { transform: translate(8px, -8px) rotate(8deg); opacity: 0; } 41% { transform: translate(-8px, 8px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.btn.is-done .btn__plane, .btn.is-loading .btn__plane { display: none; }

/* Testimonial arrows: fill and nudge in their direction */
.slider__btn svg { transition: transform .35s var(--spring), stroke .25s; }
.slider__btn:hover { background: var(--red); border-color: var(--red); }
.slider__btn:hover svg { stroke: #fff; }
.slider__btn[data-dir="1"]:hover svg { transform: translateX(3px); }
.slider__btn[data-dir="-1"]:hover svg { transform: translateX(-3px); }

/* Theme switch: rays turn, moon rocks */
.theme:hover .theme__sun { transform: rotate(45deg); }
:root[data-theme="dark"] .theme:hover .theme__moon { transform: rotate(-18deg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme:hover .theme__moon { transform: rotate(-18deg); } }

/* ==========================================================
   Contact form — personality
   ========================================================== */
/* 1. a thin line draws around the field on focus; the label floats with a bounce */
.field__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.field__line rect { width: calc(100% - 2px); height: calc(100% - 2px); fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .35s var(--ease); }
.field:focus-within .field__line rect { stroke-dashoffset: 0; transition: stroke-dashoffset .75s cubic-bezier(.65, 0, .25, 1); }
.field input:focus, .field textarea:focus { border-color: transparent; }
.field label { transition: transform .45s var(--spring), color .25s; }

/* 2. greeting under the email */
.form > .field:has(+ .field__note) { margin-bottom: -18px; } /* the note shares this row gap until it appears */
.field__note { display: grid; grid-template-rows: 0fr; margin-top: 0; transition: grid-template-rows .45s var(--ease), margin .45s var(--ease); }
.field__note > p { overflow: hidden; min-height: 0; margin: 0; padding-left: 4px; font-size: .88rem; font-weight: 500; color: var(--ink-3); opacity: 0; transform: translateY(-4px); transition: opacity .35s var(--ease), transform .45s var(--spring); }
.field__note.is-on { grid-template-rows: 1fr; margin-top: 14px; }
.field__note.is-on > p { opacity: 1; transform: none; }

/* 4. quick-start chips */
.msg-aids { margin-top: -6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip {
  padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font: 500 .82rem/1 var(--font-body); color: var(--ink-3); cursor: pointer;
  transition: border-color .25s, background .25s, color .25s, transform .35s var(--spring);
}
.chip:hover { border-color: rgba(220, 38, 38, .45); color: var(--accent); transform: translateY(-2px); }
.chip:active { transform: scale(.95); }
.chip.is-on { background: rgba(220, 38, 38, .08); border-color: var(--accent); color: var(--accent); }

/* 5. encouraging hint and typed examples */
.msg-aids .field__hint { margin: 0 2px; transition: opacity .16s, transform .25s var(--ease), color .3s; }
.field__hint.is-swapping { opacity: 0; transform: translateY(3px); }
.field__hint.is-good { color: #15803d; }
.field__ghost { position: absolute; left: 19px; right: 18px; top: 24px; pointer-events: none; font: inherit; color: var(--faint); white-space: pre-wrap; line-height: 1.65; }
.field__ghost:not(:empty)::after { content: ""; display: inline-block; width: 1px; height: 1em; margin-left: 1px; vertical-align: -.15em; background: var(--faint); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* 6. send button: muted until ready, one shine when it wakes */
.btn.is-sleepy { filter: saturate(.55) brightness(1.05); box-shadow: none; }
.btn.wake::after { display: block; animation: wakeShine .9s var(--ease); }
@keyframes wakeShine { from { transform: translateX(-120%); } to { transform: translateX(120%); } }

/* ==========================================================
   FAQ — polished list
   ========================================================== */
.faq details { position: relative; margin: 0 -14px; padding: 0 14px; border-bottom: 1px solid var(--line); border-radius: 14px; transition: background .4s var(--ease), border-color .4s; }
.faq details::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--grad); transform: scaleY(0); transform-origin: top; transition: transform .45s var(--ease); }
.faq details[open] { background: rgba(220, 38, 38, .05); border-bottom-color: transparent; }
.faq details[open]::before { transform: scaleY(1); }
.faq summary { display: flex; align-items: baseline; gap: 14px; }
.faq__num { flex: none; font: 700 .78rem/1 var(--font-head); color: var(--faint); letter-spacing: .06em; transition: color .3s; }
.faq details[open] .faq__num, .faq summary:hover .faq__num { color: var(--accent); }
.faq__q { transition: color .3s, transform .35s var(--ease); }
.faq summary:hover .faq__q { color: var(--accent); transform: translateX(3px); }
.faq summary::after { transition: transform .45s var(--spring), background-color .3s; }
.faq details[open] summary::after { transform: rotate(135deg); background-color: rgba(220, 38, 38, .1); }
.faq__body p { padding-left: calc(.78rem + 24px); }
.js .faq details[open] .faq__s { display: inline-block; animation: faqLine .55s var(--ease) both; animation-delay: calc(.08s + var(--s) * .12s); }
@keyframes faqLine { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; animation: none !important; }
  .js .about__photo { animation: none !important; }
  .js .hero__title .line > * { transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .js .mark__word { opacity: 1; transform: none; }
  .js .mark__lines .o { opacity: 0; }
}
#testimonials .section__head { max-width: 900px; text-align: left; }

/* ==========================================================
   Mobile pass — no sideways scroll, comfortable touch targets
   ========================================================== */
html, body { overflow-x: clip; }
.footer__mailwrap { display: inline-flex; align-items: center; }

/* bigger hit area for the slim slider dashes, without changing how they look */
.slider__dot { overflow: visible; }
.slider__dot i { border-radius: inherit; overflow: hidden; }
.slider__dot::before { content: ""; position: absolute; inset: -18px -4px; }

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 36px; }
  .case { padding: 24px; }
  .feature { padding: 24px 22px; }

  /* founder photo: a portrait, not a full screen */
  .about__photo { max-width: none; }
  .portrait { max-width: 320px; margin-inline: auto; }
  .about__frame { max-width: none; }
  /* whole photo, no zoom or parallax crop on a small screen */
  .about__frame img { height: auto; aspect-ratio: 4 / 5; object-position: center top; transform: none; }

  /* code behind "What sets us apart" stays out of the way of the text */
  .codefield { opacity: .55; }

  /* FAQ answers wrap as normal sentences on a narrow screen */
  .js .faq details[open] .faq__s { display: inline; animation-name: faqFade; }
  .faq__body p { padding-left: 0; }

  /* touch targets */
  .chip { padding: .6rem .95rem; }
  .footer__links { gap: 4px 24px; }
  .footer__links a, .footer__top { display: inline-block; padding: 8px 0; }
  .footer__bottom { align-items: center; }
  .copy { width: 40px; height: 40px; }
}
@keyframes faqFade { from { opacity: 0; } }

/* the hero logo hands over to the nav logo: never two on screen */
.hero__logo-wrap { transition: opacity .3s var(--ease); }
.hero__logo-wrap.is-handed-off { opacity: 0; }

/* ==========================================================
   Mobile content — shorter hero line, swipeable stories,
   founder story that opens on request. Desktop unchanged.
   ========================================================== */
.hero__sub-short, .cases__dots, .about__more { display: none; }
@media (max-width: 860px) {
  .hero__sub-long { display: none; }
  .hero__sub-short { display: inline; }

  /* success stories: one card at a time, swipe for the next */
  .cases {
    display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    /* bleed to the screen edges whatever the side gutter */
    --g: calc(clamp(32px, 5vw, 80px) / 2); /* the page side gutter, from .container */
    margin-inline: calc(var(--g) * -1); padding: 4px var(--g) 12px; scroll-padding-inline: var(--g);
  }
  .cases::-webkit-scrollbar { display: none; }
  .cases .case { flex: 0 0 86%; scroll-snap-align: start; }
  .js .cases .case { opacity: 1; transform: none; animation: none; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
  .cases__dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
  .cases__dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width .4s var(--ease), background .3s; }
  .cases__dots i.is-on { width: 22px; background: var(--accent); }

  /* founder story: first lines, then "Read more" */
  .about__story {
    max-height: 7.6em; overflow: clip; transition: max-height .6s var(--ease);
    -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent);
  }
  .about__story.is-open { -webkit-mask-image: none; mask-image: none; }
  .about__more {
    display: inline-flex; align-items: center; gap: 6px; margin: .25rem 0 0; padding: 10px 0;
    border: 0; background: none; font: 600 .95rem var(--font-body); color: var(--accent); cursor: pointer;
  }
  .about__more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
  .about__more[aria-expanded="true"] svg { transform: rotate(180deg); }
}

/* phones and tablets: the hero is centred, like desktop */
@media (max-width: 860px) {
  .hero__content { text-align: center; }
  .hero__logo-wrap { margin: 0 auto 1.4rem; }
  .hero__sub { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__chips { justify-content: center; align-items: center; }
}

/* ==========================================================
   Mobile-first layer
   Thumb reach, one idea per screen, touch feedback instead of
   hover. Phones and small tablets only; desktop is untouched.
   ========================================================== */
html { -webkit-tap-highlight-color: transparent; }
.sheet-backdrop { display: none; }

/* ---- Menu: a bottom sheet ---- */
@media (max-width: 860px) {
  .sheet-backdrop {
    display: block; position: fixed; inset: 0; z-index: 140; background: rgba(9, 11, 17, .5);
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
  }
  .nav__mobile {
    display: flex; position: fixed; z-index: 150; top: auto; left: 0; right: 0; bottom: 0;
    max-height: 85svh; overflow-y: auto; overscroll-behavior: contain;
    padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0; background: var(--surface); clip-path: none;
    box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .45);
    transform: translateY(105%); transition: transform .5s cubic-bezier(.32, .72, 0, 1); visibility: hidden;
  }
  .sheet__handle { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 0 10px; }
  .nav__mobile a:not(.btn) {
    display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 4px;
    font-size: 1.15rem; border-bottom: 1px solid var(--line);
  }
  .nav__mobile a:not(.btn)::after {
    content: ""; width: 8px; height: 8px; margin-right: 6px; border: solid var(--faint); border-width: 2px 2px 0 0; transform: rotate(45deg);
  }
  .nav__mobile a:not(.btn):active { color: var(--accent); }
  .nav__mobile .btn { margin-top: 18px; min-height: 56px; font-size: 1.05rem; }
  html.menu-open { overflow: hidden; }
  html.menu-open .sheet-backdrop { opacity: 1; pointer-events: auto; }
  html.menu-open .nav__mobile { transform: none; visibility: visible; transition: transform .5s cubic-bezier(.32, .72, 0, 1), visibility 0s; }
  html:not(.menu-open) .nav__mobile { transition: transform .4s cubic-bezier(.32, .72, 0, 1), visibility 0s linear .4s; }
  html.menu-open .nav__mobile a { animation: menuIn .45s var(--ease) both; }
  html.menu-open .nav__mobile a:nth-of-type(2) { animation-delay: .04s; }
  html.menu-open .nav__mobile a:nth-of-type(3) { animation-delay: .08s; }
  html.menu-open .nav__mobile a:nth-of-type(4) { animation-delay: .12s; }
  html.menu-open .nav__mobile a:nth-of-type(5) { animation-delay: .16s; }
  html.menu-open .nav__mobile a:nth-of-type(6) { animation-delay: .2s; }
  html.menu-open .dock { transform: translateY(160%); }

  /* the booking bar respects the iPhone home bar and the screen edges */
  .dock { left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); bottom: max(16px, calc(env(safe-area-inset-bottom) + 8px)); min-height: 54px; }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@keyframes menuIn { from { opacity: 0; transform: translateY(10px); } }

@media (max-width: 860px) {
  /* ---- Slimmer top bar ---- */
  .nav__inner { height: 68px; }
  .nav.is-scrolled .nav__inner { height: 60px; }
  .nav__brand { height: 46px; }
  .nav.is-scrolled .nav__brand { height: 40px; }
  html { scroll-padding-top: 68px; }

  /* ---- Hero: exactly one screen, actions in thumb reach ---- */
  .hero { min-height: 100svh; padding: 84px 0 calc(32px + env(safe-area-inset-bottom)); }
  .hero__logo-wrap { margin-bottom: 1rem; }
  .hero__logo-wrap .mark { width: 96px; }
  .hero .eyebrow { margin-bottom: 1.1rem; padding: .35rem .85rem; font-size: .8rem; }
  .hero__title { font-size: clamp(2.2rem, 10.6vw, 2.8rem); margin-bottom: 1rem; }
  .hero__sub { margin-bottom: 1.6rem; }
  .hero__actions { gap: .7rem; }
  .hero__actions .btn { min-height: 54px; }
  .hero__chips {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 1.8rem;
    padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .1);
  }
  .hero__chips li { padding: 0 6px; font-size: .74rem; line-height: 1.35; color: rgba(255, 255, 255, .6); }
  .hero__chips li + li { border-left: 1px solid rgba(255, 255, 255, .1); }
  .hero__chips strong { display: block; margin: 0 0 .2rem; font: 700 1.12rem/1.2 var(--font-head); }
  .hero__scroll { display: none; }

  /* ---- Success stories: the result leads ---- */
  .cases .case { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; column-gap: 12px; align-items: center; }
  .case__metric { grid-column: 1 / -1; grid-row: 1; font-size: 1.7rem; margin-bottom: .6rem; }
  .case p:not(.case__metric) { grid-column: 1 / -1; grid-row: 2; align-self: start; margin-bottom: 0; }
  .case__logo { grid-column: 1; grid-row: 3; height: calc(var(--h, 32px) * .8); margin: 20px 0 0; }
  .case__tag { grid-column: 2; grid-row: 3; margin: 20px 0 0; }

  /* ---- Services: the switch stays pinned while you read ---- */
  .services__tabs {
    position: sticky; top: 68px; z-index: 5;
    background: var(--chip);
    /* the section colour fills the gap under the top bar, so nothing peeks through */
    box-shadow: 0 -12px 0 4px var(--tint), 0 10px 24px -14px rgba(15, 23, 42, .35);
  }
  .services__tab { min-height: 48px; }

  /* ---- Process: a vertical timeline ---- */
  .process { gap: 0; }
  .step { display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; text-align: left; padding: 0 0 36px; }
  .step:last-child { padding-bottom: 0; }
  .step__num { grid-row: 1 / span 2; width: 52px; height: 52px; margin: 0; font-size: .95rem; }
  .step h3 { margin: 12px 0 .4rem; font-size: 1.15rem; }
  .step p { margin: 0; max-width: none; }
  .step:not(:last-child)::before {
    content: ""; position: absolute; left: 25px; top: 52px; bottom: 0; border-left: 2px dashed var(--line);
  }
  .step:not(:last-child)::after {
    content: ""; position: absolute; left: 25px; top: 52px; bottom: 0; width: 2px; background: var(--red);
    transform: scaleY(0); transform-origin: top; transition: transform .6s var(--ease);
  }
  .step:has(+ .step.is-lit)::after { transform: none; }

  /* ---- Why us: a compact 2×2 ---- */
  .features { grid-template-columns: 1fr 1fr; gap: 12px; }
  .feature { padding: 18px 16px; }
  .feature__icon { width: 42px; height: 42px; border-radius: 12px; margin-bottom: 14px; }
  .feature__icon .ico { width: 24px; height: 24px; }
  .feature h3 { font-size: 1rem; line-height: 1.3; margin-bottom: .4rem; }
  .feature p { font-size: .85rem; line-height: 1.5; }

  /* ---- Testimonials: swipe ---- */
  .slider__viewport { touch-action: pan-y; }
  .slider__btn { width: 48px; height: 48px; }

  /* ---- Form: no iPhone zoom, big send button ---- */
  .field input, .field textarea { font-size: 16px; }
  .form .btn--lg { min-height: 56px; }
}

/* ---- Touch: a crisp press instead of hover ---- */
@media (hover: none) {
  .btn, .chip, .slider__btn, .services__tab, .faq summary { -webkit-user-select: none; user-select: none; }
  .btn:active, .chip:active, .slider__btn:active { transform: scale(.97); transition-duration: .08s; }
  .case:active, .feature:active { transform: scale(.985); transition-duration: .12s; }
  .faq summary:active { opacity: .7; }
}

/* short phones (iPhone SE, mini): the hero still fits one screen */
@media (max-width: 600px) and (max-height: 740px) {
  .hero { padding-top: 68px; padding-bottom: 16px; }
  .hero__logo-wrap { margin-bottom: .7rem; }
  .hero__logo-wrap .mark { width: 64px; }
  .hero .eyebrow { margin-bottom: .8rem; }
  .hero__title { font-size: clamp(2rem, 9.6vw, 2.5rem); margin-bottom: .75rem; }
  .hero__sub { margin-bottom: 1.15rem; }
  .hero__actions .btn { min-height: 50px; padding-block: .8rem; }
  .hero__chips { margin-top: 1.15rem; padding-top: .9rem; }
}

/* ---- Tablets (iPad portrait): the same mobile design, sized for the larger screen ---- */
@media (min-width: 601px) and (max-width: 860px) {
  .hero__logo-wrap .mark { width: 112px; }
  .hero__title { font-size: clamp(3rem, 7.4vw, 3.6rem); max-width: 560px; margin-inline: auto; }
  .hero__sub { max-width: 520px; font-size: 1.1rem; }
  .hero__actions .btn { min-width: 220px; }
  .hero__chips { max-width: 560px; margin-inline: auto; }
  .hero__chips li { font-size: .82rem; }
  .hero__chips li + li::before { display: none; }
  .hero__chips strong { font-size: 1.3rem; }

  .cases .case { flex-basis: 46%; }

  /* the same compact service switch as on phones */
  .services__tabs { overflow: visible; gap: 4px; padding: 4px; background: var(--chip); border-radius: 16px; }
  .services__tab { flex: 1; min-width: 0; padding: 12px 8px; justify-content: center; text-align: center; }
  .services__tab small, .services__num { display: none; }

  .process { max-width: 620px; margin-inline: auto; }
  .about__photo { max-width: 380px; margin-inline: auto; }
}
