/* ============================================================
   Даниил Карацапов — лендинг. Dark + single blue accent.
   Layered on Aperture tokens.css. No decorative gradients,
   one product-shadow, sentence case, scale(.95) press.
   ============================================================ */

:root {
  /* Dark canvas rhythm — harmonious extensions of the token dark tiles */
  --pg:       #08080a;   /* page void */
  --tile-a:   #0d0d0f;   /* section A */
  --tile-b:   #151517;   /* section B (one micro-step up) */
  --tile-c:   #1c1c1e;   /* raised cards */
  --tile-card:#161618;

  --line:        rgba(255,255,255,0.09);
  --line-strong: rgba(255,255,255,0.16);

  --txt:    #f5f5f7;
  --txt-2:  #a1a1a6;   /* Apple secondary gray on dark */
  --txt-3:  #6e6e73;

  /* Accent — single accent, themeable. Default = «Салатовый». fill = button bg,
     bright = links/text, ink = text on the fill, line = optional hairline. */
  --accent:        #b6f01e;
  --accent-bright: #c4f53e;
  --accent-ink:    #0c1402;
  --accent-line:   transparent;
  --accent-soft:   rgba(182,240,30,0.13);
  --accent-soft-bd:rgba(182,240,30,0.30);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, body {
  margin: 0; padding: 0;
  background: var(--pg);
  color: var(--txt);
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #fff; }

a { color: var(--accent-bright); }
a:hover { text-decoration: none; }

img { display: block; max-width: 100%; }

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 60px); }
.wrap-narrow { max-width: 920px; }
section { position: relative; }
.sec { padding: 120px 0; }
.sec-tight { padding: 88px 0; }

/* Section background tones */
.bg-pg   { background: var(--pg); }
.bg-a    { background: var(--tile-a); }
.bg-b    { background: var(--tile-b); }
.bg-black{ background: #000; }

/* ---------- Type helpers (Cyrillic-tuned tracking) ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--txt);
  margin: 0;
  text-wrap: balance;
}
.eyebrow {
  font-family: var(--font-text);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent-bright);
  margin: 0 0 22px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--accent-bright); opacity: .8;
}
.eyebrow.center { justify-content: center; }
.lead {
  font-family: var(--font-text);
  font-size: 21px; font-weight: 400; line-height: 1.5;
  letter-spacing: -0.01em; color: var(--txt-2);
  margin: 0; text-wrap: pretty;
}
.muted { color: var(--txt-2); }
.fine { color: var(--txt-3); font-size: 13px; line-height: 1.5; }

h2.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 600; line-height: 1.05; letter-spacing: -0.02em;
  color: var(--txt); margin: 0; text-wrap: balance;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-text); font-size: 17px; font-weight: 400;
  border-radius: var(--r-pill); padding: 14px 26px; cursor: pointer;
  border: 1px solid transparent; transition: transform .12s ease, border-color .2s ease, color .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: scale(0.96); }
.btn-fill { background: var(--accent); color: var(--accent-ink); border-color: var(--accent-line);
  position: relative; overflow: hidden;
  transition: transform .18s ease, box-shadow .25s ease, filter .2s ease; }
/* sweeping shine on hover */
.btn-fill::before {
  content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-18deg); pointer-events: none;
  transition: left .6s cubic-bezier(.16,.7,.3,1);
}
.btn-fill:hover { filter: brightness(1.05); transform: translateY(-2px);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 50%, transparent); }
.btn-fill:hover::before { left: 140%; }
.btn-fill:active { transform: translateY(-2px) scale(0.96); }
@media (prefers-reduced-motion: reduce) {
  .btn-fill::before { display: none; }
  .btn-fill:hover { transform: none; }
}
.btn-ghost { background: transparent; color: var(--txt); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: #fff; }
.btn-accent-ghost { background: transparent; color: var(--accent-bright); border-color: color-mix(in srgb, var(--accent-bright) 50%, transparent); }
.btn-accent-ghost:hover { border-color: var(--accent-bright); }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-lg { padding: 17px 34px; font-size: 18px; }
.btn .i { width: 18px; height: 18px; }

/* ---------- Top nav — floating rounded pill ---------- */
.nav {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 40px); max-width: 1180px; z-index: 60;
  height: 60px; display: flex; align-items: center;
  border-radius: 20px;
  background: rgba(8,8,10,0.55);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(0,0,0,0.28);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease, top .3s ease;
}
.nav.scrolled {
  top: 10px;
  background: rgba(8,8,10,0.82);
  border-color: var(--line-strong);
  box-shadow: 0 14px 44px rgba(0,0,0,0.5);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; max-width: none; padding: 0 22px; }
.brand {
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  letter-spacing: -0.01em; color: var(--txt); text-decoration: none;
  display: inline-flex; align-items: center; gap: 11px;
}
.brand-plane { display: block; flex: 0 0 auto; width: 30px; height: 30px;
  border-radius: 8px; overflow: hidden; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a {
  font-size: 15px; color: var(--txt-2); text-decoration: none; letter-spacing: -0.01em;
  transition: color .18s ease; cursor: pointer;
}
.nav-links a:hover { color: var(--txt); }
.nav-cta { margin-left: 8px; }
.nav-burger { display: none; margin-left: auto; background: none; border: none; color: var(--txt); cursor: pointer; padding: 6px; }

/* ---------- Stats ---------- */
.stat-num {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(40px, 5vw, 60px); letter-spacing: -0.03em; line-height: 1;
  color: var(--txt);
}
.stat-num .accent { color: var(--accent-bright); }
.stat-label { color: var(--txt-2); font-size: 15px; line-height: 1.4; margin-top: 12px; }

/* ---------- Cards / surfaces ---------- */
.card {
  background: var(--tile-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--line-strong); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.16,.7,.3,1), transform .7s cubic-bezier(.16,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; color: var(--txt-2); letter-spacing: -0.01em; }
.input, .textarea {
  width: 100%; font-family: var(--font-text); font-size: 16px; color: var(--txt);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-strong); border-radius: var(--r-md);
  padding: 14px 16px; outline: none;
  transition: border-color .18s ease, background .18s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--txt-3); }
.input:focus, .textarea:focus { border-color: var(--accent); background: rgba(255,255,255,0.06); }
.input.err, .textarea.err { border-color: #ff5a4d; }
.textarea { resize: vertical; min-height: 96px; }
.consent { display: flex; gap: 10px; align-items: flex-start; color: var(--txt-3); font-size: 13px; line-height: 1.5; }
.consent input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: 0 0 auto; }

/* ---------- Pills / chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  padding: 8px 16px; font-size: 14px; color: var(--txt-2);
  background: rgba(255,255,255,0.02);
}
.chip .i { width: 15px; height: 15px; color: var(--accent-bright); }
.chip.accent { color: var(--accent-bright); border-color: var(--accent-soft-bd); background: var(--accent-soft); }

/* ---------- Icon tile ---------- */
.icon-tile {
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-bd);
  color: var(--accent-bright); flex: 0 0 auto;
}
.icon-tile .i { width: 24px; height: 24px; }

/* ---------- Certificates ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
/* On phones: horizontal snap carousel instead of a tall vertical stack */
@media (max-width: 640px) {
  .cert-grid {
    display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin: 0 -22px; padding: 4px 22px 14px;
    scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
  }
  .cert-grid::-webkit-scrollbar { height: 6px; }
  .cert-grid::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
  .cert-card { flex: 0 0 70%; max-width: 250px; scroll-snap-align: start; }
}
.cert-card {
  display: flex; flex-direction: column; gap: 14px; text-align: left;
  background: transparent; border: none; padding: 0; cursor: pointer; color: var(--txt);
}
.cert-thumb {
  position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden;
  background: #f4f4f6; border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.cert-thumb img {
  width: 100%; height: 100%; object-fit: contain; padding: 12px;
  transition: transform .35s cubic-bezier(.16,.7,.3,1);
}
.cert-zoom {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(8,8,10,0.45); color: #fff; opacity: 0; transition: opacity .25s ease;
}
.cert-zoom .i { width: 26px; height: 26px;
  padding: 12px; background: var(--accent); color: var(--accent-ink); border-radius: var(--r-full);
  box-sizing: content-box; }
.cert-card:hover .cert-thumb { border-color: var(--accent-soft-bd); transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4); }
.cert-card:hover .cert-thumb img { transform: scale(1.04); }
.cert-card:hover .cert-zoom { opacity: 1; }
.cert-meta { display: flex; flex-direction: column; gap: 3px; }
.cert-title { font-family: var(--font-display); font-size: 16px; font-weight: 600;
  letter-spacing: -0.01em; color: var(--txt); line-height: 1.3; }
.cert-issuer { font-size: 13px; color: var(--txt-2); }

/* lightbox */
.cert-lb {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  gap: 12px; padding: 24px; background: rgba(4,4,6,0.86);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: certFade .25s ease;
}
@keyframes certFade { from { opacity: 0; } to { opacity: 1; } }
.cert-lb-stage {
  display: flex; flex-direction: column; gap: 14px; max-width: min(92vw, 720px);
  animation: certPop .3s cubic-bezier(.16,.7,.3,1);
}
@keyframes certPop { from { opacity: 0; transform: scale(0.96) translateY(10px); } to { opacity: 1; transform: none; } }
.cert-lb-stage img {
  max-height: 80vh; max-width: 100%; object-fit: contain; border-radius: var(--r-md);
  background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.cert-lb-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.cert-lb-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: #fff; }
.cert-lb-sub { font-size: 14px; color: var(--txt-2); margin-top: 2px; }
.cert-lb-close {
  position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: var(--r-full);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  background: rgba(255,255,255,0.1); color: #fff; border: 1px solid var(--line-strong);
  transition: background .2s ease; }
.cert-lb-close:hover { background: rgba(255,255,255,0.2); }
.cert-lb-nav {
  width: 50px; height: 50px; border-radius: var(--r-full); flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  background: rgba(255,255,255,0.1); color: #fff; border: 1px solid var(--line-strong);
  transition: background .2s ease; }
.cert-lb-nav:hover { background: rgba(255,255,255,0.2); }
.cert-lb-nav .i { transition: none; }
.cert-lb-nav.prev .i { transform: rotate(90deg); }
.cert-lb-nav.next .i { transform: rotate(-90deg); }
@media (max-width: 640px) {
  .cert-lb-nav { position: absolute; bottom: 18px; z-index: 1; }
  .cert-lb-nav.prev { left: 24px; } .cert-lb-nav.next { right: 24px; }
  .cert-lb-stage { max-width: 96vw; }
}

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 12px;
  background: rgba(20,20,22,0.94); color: var(--txt);
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  padding: 13px 22px 13px 16px; font-size: 15px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.5);
  backdrop-filter: blur(14px);
  animation: toastIn .4s cubic-bezier(.16,.7,.3,1);
}
.toast .ic { width: 28px; height: 28px; border-radius: var(--r-full); background: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.toast .ic .i { width: 16px; height: 16px; color: var(--accent-ink); }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Cookie notice ---------- */
.cookie-bar {
  position: fixed; left: 20px; bottom: 20px; z-index: 150;
  max-width: 380px; display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; border-radius: var(--r-lg);
  background: rgba(18,18,20,0.96); border: 1px solid var(--line-strong);
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  animation: cookieIn .4s cubic-bezier(.16,.7,.3,1);
}
@keyframes cookieIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.cookie-text { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--txt-2); }
.cookie-ok {
  flex: 0 0 auto; cursor: pointer; padding: 9px 22px; border-radius: var(--r-pill);
  background: transparent; color: var(--txt); border: 1px solid var(--line-strong);
  font-family: var(--font-text); font-size: 14px;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.cookie-ok:hover { border-color: var(--accent); color: var(--accent-bright); background: var(--accent-soft); }
.cookie-ok:active { transform: scale(0.96); }
@media (max-width: 560px) {
  .cookie-bar { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* ---------- Footer ---------- */
.footer { background: #000; border-top: 1px solid var(--line); }

/* ---------- Contact rows ---------- */
.contact-row {
  display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--txt);
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--tile-card); transition: border-color .2s ease;
}
.contact-row:hover { border-color: var(--line-strong); }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .proc-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 36px 24px !important; }
}
@media (max-width: 900px) {
  .sec { padding: 84px 0; }
  .sec-tight { padding: 64px 0; }
  .wrap { padding: 0 22px; }
  .nav { width: calc(100% - 24px); top: 10px; }
  .nav .wrap { padding: 0 16px; gap: 14px; }
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  /* collapse two-column section grids */
  .two-col { grid-template-columns: 1fr !important; gap: 40px !important; }
  /* About: photo needs an explicit ratio once it no longer stretches a column */
  .about-photo-wrap { aspect-ratio: 4 / 3; order: -1; }
  .hero-split-grid { grid-template-columns: 1fr !important; gap: 40px !important;
    min-height: auto !important; padding-top: 36px !important; padding-bottom: 56px !important; }
  .hero-split-grid .hero-copy { order: 1; }
  .svc-row { grid-template-columns: 52px 1fr !important; gap: 18px !important; row-gap: 4px !important; }
  .svc-row p { grid-column: 1 / -1; }
  .feat-grid { grid-template-columns: 1fr !important; }
  .case-head { grid-template-columns: 1fr !important; gap: 16px !important; }
}
@media (max-width: 620px) {
  .proc-grid { grid-template-columns: 1fr !important; }
  .stat-grid { grid-template-columns: 1fr 1fr !important; }
  .quiz-teaser { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .display { font-size: clamp(34px, 11vw, 56px) !important; }
}

/* ============================================================
   BACKGROUND ATMOSPHERE — animated glows + patterns
   Restrained, accent-tinted, sits behind content. Honors
   prefers-reduced-motion (drift freezes, opacity stays).
   ============================================================ */
.atmos { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
  contain: strict;   /* isolate paint/layout so background drift doesn't repaint the section */
  /* fade the animated background toward the top/bottom edges so glows don't form
     hard blobs at section borders — smooths the transition between blocks */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%); }
.no-atmos .atmos { display: none; }
section > .wrap, header > .wrap, section > .atmos ~ * { position: relative; z-index: 1; }

/* soft drifting accent orbs */
.glow {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at center,
    color-mix(in srgb, var(--accent) 70%, transparent) 0%,
    color-mix(in srgb, var(--accent) 22%, transparent) 38%, transparent 70%);
  filter: blur(60px); opacity: 0.20; will-change: transform;
}
.glow.g1 { width: 520px; height: 520px; top: -160px; left: -120px; animation: drift1 26s ease-in-out infinite; }
.glow.g2 { width: 420px; height: 420px; bottom: -160px; right: -100px; opacity: 0.14; animation: drift2 32s ease-in-out infinite; }
.glow.g3 { width: 300px; height: 300px; top: 30%; right: 16%; opacity: 0.10; animation: drift3 22s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(80px,60px) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-70px,-50px) scale(1.08); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px,-60px); } }

/* dotted + line grid patterns, faded toward edges */
.pattern { position: absolute; inset: 0; pointer-events: none; }
.pattern-dots {
  background-image: radial-gradient(rgba(255,255,255,0.06) 1.1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 78%);
}
.pattern-grid {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 0%, transparent 75%);
}
/* slow conveyor for grid */
.pattern-grid.drifting { animation: gridmove 40s linear infinite; }
@keyframes gridmove { from { background-position: 0 0, 0 0; } to { background-position: 64px 64px, 64px 64px; } }

@media (prefers-reduced-motion: reduce) {
  .glow, .pattern-grid.drifting { animation: none !important; }
}

/* ============================================================
   QUOTES — auto-rotating animated marquee of marketing wisdom
   ============================================================ */
/* tighter top/bottom breathing room for the quote block */
.quotes-sec { padding: 72px 0; }
.quotes-stage {
  position: relative; min-height: 220px; display: grid; place-items: center;
  text-align: center; padding: 6px;
}
.quote-item {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
}
.quote-mark {
  font-family: var(--font-display); font-size: 120px; line-height: 0.6;
  color: var(--accent-bright); opacity: 0.5; height: 44px;
}
.quote-text {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(26px, 3.4vw, 44px); line-height: 1.18; letter-spacing: -0.02em;
  max-width: 900px; margin: 0; text-wrap: normal; color: var(--txt);
}
.quote-text .hl { color: var(--accent-bright); }
/* typewriter caret: solid while typing, blinking once finished */
.type-caret {
  display: inline-block; width: 3px; height: 0.92em; margin-left: 6px;
  background: var(--accent-bright); border-radius: 2px; vertical-align: -0.08em;
}
.type-caret.done { animation: caretBlink 1s steps(1, end) infinite; }
@keyframes caretBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .type-caret { display: none; } }
.quote-author { display: flex; align-items: center; gap: 12px; color: var(--txt-2);
  font-size: 16px; transition: opacity .5s ease; }
.quote-author .rule { width: 30px; height: 1px; background: var(--accent-bright); opacity: .7; }
.quote-author b { color: var(--txt); font-weight: 600; }
.quote-dots { display: flex; gap: 9px; justify-content: center; margin-top: 22px; position: relative; z-index: 1; }
.quote-dot {
  width: 8px; height: 8px; border-radius: 50%; border: none; cursor: pointer; padding: 0;
  background: var(--line-strong); transition: all .3s ease;
}
.quote-dot.on { background: var(--accent-bright); width: 26px; border-radius: 6px; }

/* ============================================================
   CASES — emphasized: photo thumbnails + featured card
   ============================================================ */
.case-card { overflow: hidden; position: relative; }
.case-card.featured { border-color: var(--accent-soft-bd); }
.case-head {
  width: 100%; text-align: left; cursor: pointer; background: transparent; border: none;
  color: var(--txt); display: grid; grid-template-columns: 132px 1fr auto; gap: 24px;
  align-items: center; padding: 20px;
}
.case-card.featured .case-head { grid-template-columns: 240px 1fr auto; gap: 32px; padding: 24px; }
.case-thumb {
  border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; width: 100%;
  background: var(--tile-b); border: 1px solid var(--line);
}
.case-thumb image-slot { width: 100%; height: 100%; display: block; }
.case-card.featured .case-thumb { aspect-ratio: 16 / 10; }
.case-metric-num {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em;
  color: var(--accent-bright); font-size: clamp(28px, 3vw, 40px); line-height: 1;
}
.case-card.featured .case-metric-num { font-size: clamp(40px, 4.5vw, 64px); }
.case-chevron { display: inline-flex; transition: transform .3s ease; color: var(--txt-2); }
.case-chevron.open { transform: rotate(180deg); }
.case-body { max-height: 0; overflow: hidden; transition: max-height .45s cubic-bezier(.16,.7,.3,1); }

@media (max-width: 900px) {
  .case-head, .case-card.featured .case-head { grid-template-columns: 96px 1fr !important; gap: 16px !important; }
  .case-thumb { grid-row: span 2; }
  .case-metric { grid-column: 2; }
}
@media (max-width: 560px) {
  .case-head, .case-card.featured .case-head { grid-template-columns: 1fr !important; }
  .case-thumb { grid-row: auto; max-width: 160px; }
}

/* ============================================================
   SERVICES — full-width expandable accordion with spotlight glow
   ============================================================ */
.svc-x { position: relative; padding: 0; overflow: hidden; isolation: isolate;
  transition: border-color .25s ease, box-shadow .25s ease; }
.svc-x::before {            /* cursor-following spotlight */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 0),
    color-mix(in srgb, var(--accent-bright) 14%, transparent), transparent 60%);
  transition: opacity .3s ease;
}
.svc-x:hover::before { opacity: 1; }
.svc-x:hover { border-color: var(--accent-soft-bd); box-shadow: 0 14px 40px rgba(0,0,0,0.30); }
.svc-x.open { border-color: var(--accent-soft-bd); }
.svc-x > * { position: relative; z-index: 1; }

.svc-x-head { width: 100%; display: grid; grid-template-columns: auto auto 1fr auto;
  align-items: center; gap: 22px; background: transparent; border: none; cursor: pointer;
  color: var(--txt); padding: 24px 28px; text-align: left; }
.svc-x-icon { transition: transform .3s cubic-bezier(.16,.7,.3,1); }
.svc-x:hover .svc-x-icon { transform: translateY(-2px) scale(1.06); }
.svc-x-titles { display: flex; flex-direction: column; gap: 4px; min-width: 200px; }
.svc-x-name { font-family: var(--font-display); font-size: 21px; font-weight: 600;
  letter-spacing: -0.01em; color: var(--txt); }
.svc-x-tag { color: var(--accent-bright); font-size: 13px; }
.svc-x-result { color: var(--txt-2); font-size: 15px; line-height: 1.5; }
.svc-x-chev { color: var(--txt-3); flex: 0 0 auto; justify-self: end;
  transition: transform .4s cubic-bezier(.16,.7,.3,1), color .2s ease; }
.svc-x-chev.open { transform: rotate(180deg); color: var(--accent-bright); }

.svc-x-body { display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .45s cubic-bezier(.16,.7,.3,1); }
.svc-x.open .svc-x-body { grid-template-rows: 1fr; }
.svc-x-clip { overflow: hidden; min-height: 0; }
.svc-x-inner { padding: 4px 28px 28px; }
.svc-x-detail { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px;
  padding-top: 24px; border-top: 1px solid var(--line); }
.svc-x-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--txt-3); margin-bottom: 16px; }
.svc-x-list { list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.svc-x-list li { display: flex; gap: 10px; align-items: flex-start;
  font-size: 15px; color: var(--txt-2); line-height: 1.4;
  opacity: 0; transform: translateX(-8px); }
.svc-x.open .svc-x-list li { animation: svcItemIn .5s cubic-bezier(.16,.7,.3,1) forwards; }
.svc-x.open .svc-x-list li:nth-child(1) { animation-delay: .05s; }
.svc-x.open .svc-x-list li:nth-child(2) { animation-delay: .11s; }
.svc-x.open .svc-x-list li:nth-child(3) { animation-delay: .17s; }
.svc-x.open .svc-x-list li:nth-child(4) { animation-delay: .23s; }
.svc-x.open .svc-x-list li:nth-child(5) { animation-delay: .29s; }
@keyframes svcItemIn { to { opacity: 1; transform: none; } }
.svc-x-list li .i { color: var(--accent-bright); flex: 0 0 auto; margin-top: 2px; }

.svc-x-aside { display: flex; flex-direction: column; gap: 16px;
  padding: 22px; background: var(--accent-soft); border: 1px solid var(--accent-soft-bd);
  border-radius: var(--r-md); align-self: start; }
.svc-x-meta-row { display: flex; flex-direction: column; gap: 6px; }
.svc-x-meta-label { display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--txt-3); text-transform: uppercase; letter-spacing: 0.05em; }
.svc-x-meta-label .i { width: 14px; height: 14px; color: var(--accent-bright); }
.svc-x-meta-val { font-size: 16px; font-weight: 600; color: var(--txt); line-height: 1.4; }
.svc-x-meta-val.accent { color: var(--accent-bright); }
.svc-x-cta { margin-top: 4px; }

@media (max-width: 720px) {
  .svc-x-head { grid-template-columns: auto 1fr auto; gap: 16px; padding: 20px; }
  .svc-x-result { display: none; }
  .svc-x-titles { min-width: 0; }
  .svc-x-inner { padding: 4px 20px 22px; }
  .svc-x-detail { grid-template-columns: 1fr; gap: 22px; }
  .svc-x-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .svc-x.open .svc-x-list li { animation: none; opacity: 1; transform: none; }
}

/* ============================================================
   PROCESS — animated chain: flowing current + sequential pulse
   ============================================================ */
.proc-node-row { display: flex; align-items: center; margin-bottom: 22px; }
.proc-node { width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-bright); background: var(--accent-soft);
  border: 1px solid var(--accent-soft-bd); position: relative; z-index: 1;
  animation: procNode 5s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.6s); }
@keyframes procNode {
  0%, 55%, 100% { box-shadow: 0 0 0 0 transparent; transform: scale(1); border-color: var(--accent-soft-bd); }
  10% { box-shadow: 0 0 0 7px var(--accent-soft),
          0 0 26px 2px color-mix(in srgb, var(--accent-bright) 50%, transparent);
        transform: scale(1.12); border-color: var(--accent-bright); }
  22% { box-shadow: 0 0 0 0 transparent; transform: scale(1); border-color: var(--accent-soft-bd); }
}
.proc-link { flex: 1; height: 2px; margin-left: 6px; position: relative; overflow: hidden;
  background: var(--line); border-radius: 2px; }
.proc-link-flow { position: absolute; inset: 0; border-radius: 2px;
  background: linear-gradient(90deg, transparent 0%,
    color-mix(in srgb, var(--accent-bright) 90%, transparent) 50%, transparent 100%);
  background-size: 55% 100%; background-repeat: no-repeat;
  animation: procFlow 5s linear infinite;
  animation-delay: calc(var(--i) * 0.6s); }
@keyframes procFlow {
  0%   { background-position: -60% 0; opacity: 0; }
  4%   { opacity: 1; }
  20%  { background-position: 170% 0; opacity: 1; }
  24%, 100% { background-position: 170% 0; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .proc-node, .proc-link-flow { animation: none; }
  .proc-link-flow { opacity: 1; background-position: 50% 0; }
}
@media (max-width: 1040px) {
  .proc-chain .proc-link { display: none; }   /* segments only read across a single row */
}
/* Phones: turn the steps into a horizontal snap carousel and bring the
   animated chain (flowing links + node pulse) back since they line up again. */
@media (max-width: 640px) {
  .proc-grid {
    display: flex !important; gap: 0 !important;
    overflow-x: auto; scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
    margin: 0 -22px; padding: 6px 22px 16px;
    scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
  }
  .proc-grid::-webkit-scrollbar { height: 6px; }
  .proc-grid::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
  .proc-step { flex: 0 0 64%; max-width: 230px; scroll-snap-align: start; }
  .proc-chain .proc-link { display: block; }            /* re-enable flowing connector */
  .proc-step:last-child .proc-node-row { padding-right: 0; }
}

/* ---------- Wave section dividers ---------- */
.wave-svg { animation: waveSlide var(--wave-spd, 15s) linear infinite; }
@keyframes waveSlide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .wave-svg { animation: none !important; } }
