/* Irosoft — shared styles */
:root {
  --paper: #F4F3F7;
  --paper-2: #E8E6EE;
  --white: #FFFFFF;
  --ink: #17142B;
  --ink-soft: #57536B;
  --brand: #C80066;
  --brand-deep: #9E0050;
  --tint: #F7E3EE;
  --pass: #12805C;
  --pass-tint: #DDF2E9;
  --line: rgba(23, 20, 43, .13);
  --on-dark: #ECEAF3;
  --on-dark-soft: #A9A5BD;

  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, sans-serif;
  --f-code: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --space: clamp(72px, 10vw, 136px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); font-variation-settings: "wdth" 85; letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -.01em; line-height: 1.18; }
p { margin: 0 0 1em; max-width: 64ch; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 50ch; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.45rem/1 var(--f-display); letter-spacing: -.03em; }
.brand svg { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a { text-decoration: none; padding: 8px 13px; border-radius: 999px; font-weight: 500; color: var(--ink-soft); transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--ink); background: var(--paper-2); }
.nav-links a[aria-current="page"] { color: var(--brand); }
.nav-links li.cta-item { margin-left: 10px; }
.nav-links li.lang { display: flex; margin-left: 10px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; font-weight: 600; }
.nav-links li.lang > * { padding: 5px 10px; border-radius: 999px; line-height: 1; }
.nav-links li.lang span { background: var(--ink); color: var(--paper); }
.nav-links li.lang a { color: var(--ink-soft); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font: 600 1rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.nav-links .btn { padding: 10px 18px; font-size: .95rem; color: #fff; }
.nav-links .btn:hover { background: var(--brand-deep); color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 28px; }
.hero .lead { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { margin-top: 40px; color: var(--ink-soft); font-size: .95rem; display: flex; align-items: center; gap: 12px; }
.hero-proof strong { font: 600 1.6rem/1 var(--f-display); color: var(--ink); }

/* Test run panel — the signature element */
.run {
  background: var(--white); border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(23, 20, 43, .35), 0 2px 0 rgba(23, 20, 43, .03);
  overflow: hidden; font-size: .95rem;
}
.run-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.run-title { font-weight: 600; }
.run-title small { display: block; font: 400 .8rem/1.4 var(--f-code); color: var(--ink-soft); margin-top: 2px; }
.run-state { font: 500 .8rem/1 var(--f-code); padding: 7px 12px; border-radius: 999px; background: var(--tint); color: var(--brand-deep); white-space: nowrap; }
.run-state.done { background: var(--pass-tint); color: var(--pass); }
.run-bar { height: 3px; background: var(--paper-2); }
.run-bar span { display: block; height: 100%; width: 0; background: var(--pass); transition: width .5s ease; }
.run ol { list-style: none; margin: 0; padding: 8px 0; }
.run li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 22px; }
.run li + li { border-top: 1px dashed var(--line); }
.run .name { font-family: var(--f-code); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.run .name em { font-style: normal; color: var(--ink-soft); }
.run .time { font: .78rem/1 var(--f-code); color: var(--ink-soft); }
.run .icon { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--paper-2); position: relative; }
.run li.running .icon { border-color: var(--brand); border-right-color: transparent; animation: spin .8s linear infinite; }
.run li.passed .icon { border-color: var(--pass); background: var(--pass); }
.run li.passed .icon::after { content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.run li.queued .name { color: var(--ink-soft); }
.run-foot { display: flex; justify-content: space-between; padding: 14px 22px; background: var(--paper); border-top: 1px solid var(--line); font: .8rem/1.4 var(--f-code); color: var(--ink-soft); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Page hero (sub pages) */
.page-hero { padding-block: clamp(56px, 9vw, 112px) clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); max-width: 18ch; margin-bottom: 24px; }

/* ---------- Sections ---------- */
section { padding-block: var(--space); }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head p { color: var(--ink-soft); margin: 0; }

/* Logos */
.logos-label { color: var(--ink-soft); margin-bottom: 24px; font-size: .98rem; }
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.logos li { background: var(--white); border-radius: 14px; height: 76px; display: grid; place-items: center; padding: 14px 18px; border: 1px solid var(--line); }
.logos img { max-height: 40px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logos li:hover img { filter: none; opacity: 1; }

/* Practice rows */
.practice { border-top: 1.5px solid var(--ink); }
.practice-row {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px); padding-block: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}
.practice-row h3 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.practice-row p { color: var(--ink-soft); margin: 0; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%; background: var(--tint); }
.checks li::after { content: ""; position: absolute; left: 6px; top: calc(.3em + 3px); width: 4px; height: 8px; border: solid var(--brand); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.more { display: inline-block; margin-top: 16px; font-weight: 600; color: var(--brand); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }

/* Process — a real sequence */
.steps { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 0; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps > li { position: relative; padding: 0 clamp(16px, 3vw, 40px) 0 0; }
.steps > li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--ink);
  font: 600 1.15rem/1 var(--f-display); margin-bottom: 24px; position: relative; z-index: 1;
}
.steps > li:first-child::before { background: var(--brand); border-color: var(--brand); color: #fff; }
.steps > li::after { content: ""; position: absolute; top: 24px; left: 48px; right: 0; height: 1.5px; background: var(--ink); opacity: .2; }
.steps > li:last-child::after { display: none; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--ink-soft); font-size: 1rem; }
.steps .free { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--pass); background: var(--pass-tint); padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }

/* Dark band — testimonials */
.band { background: var(--ink); color: var(--on-dark); }
.band h2, .band h3 { color: #fff; }
.band .section-head p { color: var(--on-dark-soft); }
.quotes { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 56px); }
.quote { margin: 0; }
.quote blockquote { margin: 0 0 20px; font-size: 1.05rem; color: var(--on-dark); }
.quote.big blockquote { font: 500 clamp(1.35rem, 2.3vw, 1.85rem)/1.35 var(--f-display); letter-spacing: -.01em; color: #fff; }
.quote.big blockquote::before { content: "“"; display: block; font: 700 5rem/0.6 var(--f-display); color: var(--brand); margin-bottom: 16px; }
.quote figcaption { color: var(--on-dark-soft); font-size: .95rem; }
.quote figcaption strong { color: #fff; display: block; font-weight: 600; }
.quote-stack { display: grid; gap: 40px; align-content: start; }
.quote-stack .quote { border-top: 1px solid rgba(255,255,255,.14); padding-top: 28px; }

/* Split content blocks */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(24px, 5vw, 80px); padding-block: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.split:last-child { border-bottom: 0; }
.split > h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); position: sticky; top: 100px; align-self: start; }
.split .body > p { color: var(--ink-soft); }
.split .body h3 { font-size: 1.2rem; margin: 28px 0 8px; }
.split .body h3:first-child { margin-top: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.tags li { padding: 6px 14px; border-radius: 999px; background: var(--paper-2); font-size: .92rem; font-weight: 500; }

/* Service grid (all services) */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.grid-2 > div { background: var(--paper); padding: clamp(24px, 3vw, 36px); }
.grid-2 h3 { margin-bottom: 10px; font-size: 1.3rem; }
.grid-2 p { color: var(--ink-soft); margin: 0; }
.grid-2 .ai h3::after { content: "AI"; margin-left: 10px; vertical-align: middle; font: 600 .75rem/1 var(--f-body); padding: 4px 8px; border-radius: 6px; background: var(--tint); color: var(--brand-deep); }

/* Feature panel (shared team) */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 5vw, 64px); }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); }
.panel h3 { margin-bottom: 12px; }
.panel p { color: var(--ink-soft); }
.note { border-left: 3px solid var(--brand); padding: 4px 0 4px 18px; color: var(--ink); margin-top: 24px; }

/* Values / benefits */
.values { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.values > div { border-top: 1.5px solid var(--ink); padding-top: 20px; }
.values h3 { margin-bottom: 10px; }
.values p { color: var(--ink-soft); }

/* Big numbers row (about) */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.facts strong { display: block; font: 600 clamp(2.6rem, 5vw, 4rem)/1 var(--f-display); letter-spacing: -.04em; color: var(--brand); margin-bottom: 8px; }
.facts span { color: var(--ink-soft); }

/* CTA */
.cta-box {
  background: var(--brand); color: #fff; border-radius: 28px;
  padding: clamp(40px, 7vw, 88px) clamp(24px, 6vw, 80px);
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px; align-items: end;
}
.cta-box h2 { color: #fff; max-width: 16ch; }
.cta-box p { color: #FAD3E5; margin: 16px 0 0; }
.cta-box .btn { background: #fff; border-color: #fff; color: var(--brand-deep); }
.cta-box .btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Forms ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); }
.contact-grid aside h2 { font-size: 1.6rem; margin-bottom: 24px; }
.mini-steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 22px; }
.mini-steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 14px; }
.mini-steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--ink); font: 600 .95rem/1 var(--f-display); }
.mini-steps strong { display: block; margin-bottom: 2px; }
.mini-steps span { color: var(--ink-soft); font-size: .97rem; }
.person { margin-top: 40px; padding: 20px 22px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.person span { display: block; color: var(--ink-soft); font-size: .92rem; }
.person strong { display: block; font-size: 1.1rem; }
.person a { color: var(--brand); }

form { display: grid; gap: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 40px); }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label { font-weight: 600; font-size: .95rem; }
label .opt { font-weight: 400; color: var(--ink-soft); }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid transparent; border-radius: 12px; padding: 13px 16px; width: 100%;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input:hover, select:hover, textarea:hover { border-color: var(--line); }
input:focus, select:focus, textarea:focus { outline: none; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(200, 0, 102, .12); }
input[type="file"] { padding: 11px 12px; }
textarea { min-height: 150px; resize: vertical; }
.hint { font-size: .87rem; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .93rem; color: var(--ink-soft); }
.consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--brand); }
.consent a { color: var(--brand); }
.form-status { padding: 14px 18px; border-radius: 12px; display: none; margin: 0; }
.form-status.ok { display: block; background: var(--pass-tint); color: var(--pass); }
.form-status.err { display: block; background: #FDE8E8; color: #8A1C1C; }

/* Legal */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.6rem; margin: 48px 0 12px; }
.legal h3 { font-size: 1.15rem; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); }
.placeholder { background: #FFF1C7; padding: 0 4px; border-radius: 4px; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; margin-bottom: 48px; }
.footer-grid h4 { font: 600 1rem/1 var(--f-body); margin: 0 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; color: var(--ink-soft); }
.footer-grid a:hover { color: var(--brand); }
.footer-grid p { color: var(--ink-soft); max-width: 34ch; margin-top: 14px; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--ink-soft); }
.footer-base a { color: var(--ink-soft); }

/* ---------- Load sequence (hero only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lead, .hero-actions, .hero-proof { opacity: 0; transform: translateY(14px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
  .hero .lead { animation-delay: .1s; }
  .hero-actions { animation-delay: .2s; }
  .hero-proof { animation-delay: .3s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav-links a { padding: 8px 9px; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .run { max-width: 560px; }
  .practice-row { grid-template-columns: 1fr 1fr; }
  .practice-row > div:first-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .steps > li:nth-child(2n)::after { display: none; }
  .quotes, .panel-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-box { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-links li.lang a, .nav-links .btn { display: inline-flex; }
  .nav-links li.lang a { border-bottom: 0; }
  .nav-links a:hover { background: none; }
  .nav-links li.cta-item { margin: 16px 0 0; }
  .nav-links li.lang { align-self: flex-start; margin: 16px 0 0; }
  .nav-links li.lang > * { padding: 9px 16px; border: 0; }
  .nav-links .btn { width: 100%; border-radius: 999px; border-bottom: 1.5px solid var(--brand); }
}
@media (max-width: 680px) {
  .section-head, .split, .contact-grid, .grid-2, .facts { grid-template-columns: 1fr; }
  .split > h2 { position: static; }
  .practice-row, .steps, .values { grid-template-columns: 1fr; }
  .steps > li::after { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .run .time { display: none; }
  .run li { grid-template-columns: 22px minmax(0, 1fr); }
}

/* =====================================================================
   Color and motion layer (design v2)
   Deep violet night sections, three service colors, and motion that
   follows scroll and pointer. Everything stops under reduced motion.
   ===================================================================== */
:root {
  --night: #160B2E;
  --violet: #6A3DF0;
  --violet-tint: #ECE6FE;
  --sun: #FF8A3D;
  --sun-ink: #C2410C;
  --sun-tint: #FFEADB;
  --pink: #FF5FA8;
  --glow: linear-gradient(90deg, var(--brand), var(--violet) 55%, var(--sun));
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Header: dark, with a reading-progress line */
.site-header { background: color-mix(in srgb, var(--night) 90%, transparent); color: #fff; }
.site-header.scrolled { border-bottom-color: rgba(255,255,255,.08); }
.site-header::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 3px;
  width: calc(var(--progress, 0) * 100%); background: var(--glow);
}
.brand { color: inherit; }
.nav-links a { color: #CFC8E6; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-links a[aria-current="page"] { color: var(--pink); }
.nav-links li.lang { border-color: rgba(255,255,255,.2); }
.nav-links li.lang span { background: #fff; color: var(--night); }
.nav-links li.lang a { color: #CFC8E6; }
.nav-toggle { color: #fff; }

/* Buttons: lift and glow */
.btn { transition: background .2s, color .2s, border-color .2s, transform .25s var(--ease), box-shadow .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(120deg, var(--brand), #E0157A); border-color: transparent; }
.btn-primary:hover { background: linear-gradient(120deg, var(--brand-deep), var(--violet)); border-color: transparent; box-shadow: 0 12px 28px -10px rgba(200,0,102,.7); }

/* Night sections: drifting color fields, faint grid, light that follows the pointer */
.hero, .page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff; border-bottom: 0;
  background:
    radial-gradient(520px circle at var(--mx, 75%) var(--my, 35%), rgba(255,95,168,.16), transparent 60%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--night);
}
.hero::before, .hero::after, .page-hero::before, .page-hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(30px); pointer-events: none;
}
.hero::before, .page-hero::before {
  width: 640px; height: 640px; top: -260px; right: -140px;
  background: radial-gradient(circle, rgba(200,0,102,.75), transparent 65%);
  animation: drift-a 16s ease-in-out infinite alternate;
}
.hero::after, .page-hero::after {
  width: 560px; height: 560px; bottom: -280px; left: -160px;
  background: radial-gradient(circle, rgba(106,61,240,.8), transparent 65%), radial-gradient(circle at 80% 20%, rgba(255,138,61,.55), transparent 50%);
  animation: drift-b 20s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(-140px, 120px) scale(1.15); } }
@keyframes drift-b { to { transform: translate(180px, -90px) scale(1.1); } }

.hero h1, .page-hero h1 { color: #fff; }
.hero .lead, .page-hero .lead { color: #CDC6E4; }
.hero .btn:not(.btn-primary) { border-color: rgba(255,255,255,.5); color: #fff; }
.hero .btn:not(.btn-primary):hover { background: #fff; border-color: #fff; color: var(--night); }
.hero-proof { color: #CDC6E4; }
.hero-proof strong { color: #fff; font-size: 2rem; }
.hero { padding-block: clamp(56px, 8vw, 104px) clamp(72px, 9vw, 120px); }

/* Test run panel floats and tilts toward the pointer */
.run {
  border: 0; color: var(--ink);
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 40px 90px -30px rgba(0,0,0,.7), 0 0 120px -20px rgba(200,0,102,.55);
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .4s var(--ease);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { translate: 0 -10px; } }
.run-bar span { background: var(--glow); }
.run.is-done .run-bar span { background: var(--pass); }
.run li { transition: background .3s; }
.run li.running { background: linear-gradient(90deg, rgba(200,0,102,.08), transparent); }
.run li.passed .icon { animation: pop .35s var(--ease); }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.15); } 100% { transform: none; } }

/* Logo marquee (JS duplicates the list; without JS the grid stays) */
.logos-viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logos.marquee { display: flex; width: max-content; gap: 14px; animation: marquee 45s linear infinite; }
.logos.marquee li { width: 170px; flex: none; }
.logos-viewport:hover .logos.marquee { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }

/* Services: each practice gets its own color */
.practice { border-top: 0; display: grid; gap: 16px; }
.practice-row {
  --c: var(--brand); --ct: var(--tint);
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(26px, 3.5vw, 44px) clamp(26px, 3.5vw, 44px) clamp(26px, 3.5vw, 44px) calc(clamp(26px, 3.5vw, 44px) + 8px);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s;
}
.practice-row:nth-child(2) { --c: var(--violet); --ct: var(--violet-tint); }
.practice-row:nth-child(3) { --c: var(--sun-ink); --ct: var(--sun-tint); }
.practice-row::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; background: var(--c); transition: width .45s var(--ease); }
.practice-row:hover { transform: translateY(-4px); background: color-mix(in srgb, var(--ct) 55%, #fff); box-shadow: 0 24px 50px -28px color-mix(in srgb, var(--c) 70%, transparent); }
.practice-row:hover::before { width: 14px; }
.practice-row h3, .practice-row .more { color: var(--c); }
.practice-row .checks li::before { background: var(--ct); }
.practice-row .checks li::after { border-color: var(--c); }

/* Steps: colored markers, connector draws in on scroll */
.steps > li:nth-child(1)::before { background: var(--brand); border-color: var(--brand); color: #fff; }
.steps > li:nth-child(2)::before { background: var(--violet); border-color: var(--violet); color: #fff; }
.steps > li:nth-child(3)::before { background: var(--sun-ink); border-color: var(--sun-ink); color: #fff; }
.steps > li::after { height: 2px; opacity: 1; background: linear-gradient(90deg, var(--brand), var(--violet)); transform-origin: left; transition: transform 1s var(--ease) .3s; }
.steps > li:nth-child(2)::after { background: linear-gradient(90deg, var(--violet), var(--sun-ink)); transition-delay: .9s; }
.steps.pending > li::after { transform: scaleX(0); }

/* Testimonials band: night with color light */
.band {
  background:
    radial-gradient(700px 420px at 90% 0%, rgba(200,0,102,.5), transparent 60%),
    radial-gradient(600px 420px at 0% 100%, rgba(106,61,240,.55), transparent 60%),
    var(--night);
}
.quote.big blockquote::before { color: var(--pink); }

/* Numbers and values */
.facts strong { background: var(--glow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.values > div { border-top: 3px solid var(--brand); }
.values > div:nth-child(4n+2) { border-top-color: var(--violet); }
.values > div:nth-child(4n+3) { border-top-color: var(--sun-ink); }
.values > div:nth-child(4n+4) { border-top-color: var(--pass); }

/* Service grid and panel */
.grid-2 > div { transition: background .3s; position: relative; }
.grid-2 > div::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--glow); transition: width .5s var(--ease); }
.grid-2 > div:hover { background: var(--white); }
.grid-2 > div:hover::before { width: 100%; }
.panel { background: linear-gradient(var(--white), var(--white)) padding-box, var(--glow) border-box; border: 2px solid transparent; }
.tags li { transition: background .2s, color .2s; }
.tags li:hover { background: var(--brand); color: #fff; }

/* CTA: slowly flowing gradient */
.cta-box {
  background: linear-gradient(120deg, var(--brand-deep), var(--brand), var(--violet), var(--brand));
  background-size: 300% 300%;
  animation: flow 14s ease-in-out infinite;
  box-shadow: 0 30px 70px -35px rgba(106,61,240,.8);
}
.cta-box p { color: rgba(255,255,255,.88); }
@keyframes flow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Footer: night */
.site-footer { position: relative; background: var(--night); color: var(--on-dark-soft); border-top: 0; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--glow); }
.site-footer .brand, .footer-grid h4 { color: #fff; }
.footer-grid a, .footer-grid p, .footer-base, .footer-base a { color: var(--on-dark-soft); }
.footer-grid a:hover, .footer-base a:hover { color: var(--pink); }

/* Scroll reveal (JS adds it only to elements below the fold) */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .nav-links { background: var(--night); border-bottom-color: rgba(255,255,255,.1); }
  .nav-links a { border-bottom-color: rgba(255,255,255,.1); }
}
@media (max-width: 680px) {
  .practice-row { padding: 26px 22px 26px 30px; }
  .hero::before, .page-hero::before { width: 420px; height: 420px; }
  .hero::after, .page-hero::after { width: 380px; height: 380px; }
}
/* Reduced motion: repeat the stop rule so it wins over this layer */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .run { transform: none; }
}

/* Shared team spotlight (homepage, right below the hero) */
.spot-section { padding-block: clamp(40px, 6vw, 72px) clamp(48px, 6vw, 80px); }
.spot-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.spotlight {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center;
  padding: clamp(32px, 5.5vw, 72px);
  border-radius: 32px; color: #fff;
  background: linear-gradient(135deg, var(--violet) 0%, #4B1FB8 45%, var(--brand) 100%);
  box-shadow: 0 40px 80px -40px rgba(106, 61, 240, .9);
}
.spotlight::before, .spotlight::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(30px); pointer-events: none; }
.spotlight::before { width: 460px; height: 460px; top: -200px; right: -120px; background: radial-gradient(circle, rgba(255, 138, 61, .65), transparent 65%); animation: drift-a 14s ease-in-out infinite alternate; }
.spotlight::after { width: 420px; height: 420px; bottom: -220px; left: -100px; background: radial-gradient(circle, rgba(255, 95, 168, .6), transparent 65%); animation: drift-b 18s ease-in-out infinite alternate; }
.spotlight h2 { color: #fff; font-size: clamp(2rem, 3.8vw, 3.1rem); margin-bottom: 20px; }
.spotlight .spot-text p { color: rgba(255, 255, 255, .88); font-size: 1.12rem; margin-bottom: 32px; }
.btn-light { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--night); }
.spotlight .btn-primary { background: #fff; color: var(--brand-deep); }
.spotlight .btn-primary:hover { background: var(--night); color: #fff; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .5); }

.spot-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.spot-list li {
  padding: 22px 20px; border-radius: 20px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .3s, transform .35s var(--ease);
}
.spot-list li:hover { background: rgba(255, 255, 255, .18); transform: translateY(-4px); }
.spot-list li::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 4px; margin-bottom: 14px; background: #fff; }
.spot-list li:nth-child(2)::before { background: var(--sun); }
.spot-list li:nth-child(3)::before { background: var(--pink); }
.spot-list li:nth-child(4)::before { background: #9DF5D4; }
.spot-list strong { display: block; font: 600 1.15rem/1.2 var(--f-display); margin-bottom: 6px; }
.spot-list span { color: rgba(255, 255, 255, .85); font-size: .96rem; line-height: 1.5; }

/* Services page: shared team panel gets the same color treatment at the top */
#shared-team .panel { box-shadow: 0 30px 70px -40px rgba(106, 61, 240, .7); }

@media (max-width: 960px) {
  .spotlight { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .spot-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .spotlight::before, .spotlight::after { animation: none !important; }
}

/* Turnstile robot check: reserve its height so the form does not jump */
.cf-turnstile { min-height: 65px; }
