/* ==========================================================================
   QeRevUp — main stylesheet
   tokens → base → components → sections → illustrations → motion
   ========================================================================== */

:root {
  /* Brand */
  --c-teal: #087F8C;
  --c-midnight: #071A2F;
  --c-aqua: #00B8C8;
  --c-mint: #35E0B7;

  /* Functional neutrals */
  --c-ink: #041120;
  --c-card: #0B2238;
  --c-card-2: #0E2A44;
  --c-white: #FFFFFF;
  --c-paper: #F3F7F8;
  --c-text: #071A2F;
  --c-text-2: #4B5D6E;
  --c-line: #DCE5E9;
  --c-line-strong: #C3D0D7;
  --c-on-dark: #F2F7F9;
  --c-on-dark-2: #A7B7C6;
  --c-line-dark: rgba(167, 183, 198, 0.16);
  --c-error: #C2412D; /* functional: validation only */

  /* Theme roles */
  --bg: #FFFFFF;
  --bg-alt: #F3F7F8;
  --surface: #FFFFFF;
  --surface-2: #EEF4F6;
  --surface-3: #DDE8EC;
  --art-bg: #F3F7F8;
  --text: #33465A;
  --text-muted: #5A6E80;
  --text-strong: #071A2F;
  --border: #DCE5E9;
  --border-2: #C3D0D7;
  --border-3: #C3D0D7;
  --wash: rgba(7, 26, 47, 0.02);
  --wash-2: rgba(7, 26, 47, 0.05);
  --dots: rgba(7, 26, 47, 0.14);
  --dots-soft: rgba(8, 127, 140, 0.16);
  --grid-line: rgba(7, 26, 47, 0.05);
  --accent-text: #087F8C;
  --art-stroke: #0E7C88;
  --art-accent: #0FA588;
  --il-line: rgba(7, 26, 47, 0.7);
  --il-line-dim: rgba(7, 26, 47, 0.2);
  --il-line-soft: rgba(7, 26, 47, 0.28);
  --shadow: rgba(7, 26, 47, 0.18);
  --header-bg: rgba(255, 255, 255, 0.9);
  --header-bg-top: rgba(255, 255, 255, 0.4);
  --veil-1: rgba(243, 247, 248, 0.92);
  --veil-2: rgba(243, 247, 248, 0.45);
  --nav-panel-bg: rgba(255, 255, 255, 0.98);
  color-scheme: light;

  /* Type */
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-h1: clamp(2.375rem, 1.3rem + 4vw, 4.5rem);
  --fs-h2: clamp(1.875rem, 1.3rem + 2.2vw, 3.125rem);
  --fs-body: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(80px, 9vw, 128px);
  --radius: 18px;
  --radius-sm: 10px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 220ms;
  --t-med: 380ms;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-aqua); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--c-mint); color: var(--c-midnight); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 300; padding: 10px 16px; background: var(--c-white); color: var(--c-midnight); border-radius: var(--radius-sm); transform: translateY(-200%); transition: transform var(--t-fast); }
.skip-link:focus { transform: none; }
.hl { color: var(--accent-text); }
.is-placeholder { opacity: 0.75; text-decoration: underline dashed var(--accent-text); text-decoration-thickness: 2px; text-underline-offset: 0.15em; }

/* ---------- Tag / section head ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-text);
  background: rgba(0, 184, 200, 0.08);
  border: 1px solid rgba(0, 184, 200, 0.25);
  border-radius: 6px;
}
.tag__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--art-accent); box-shadow: 0 0 0 3px rgba(53, 224, 183, 0.2); }

.section { padding: var(--section-y) 0; }
.section-head { max-width: 880px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head h2 { max-width: 760px; margin: 18px auto 0; font-size: var(--fs-h2); color: var(--text-strong); }
/* headings that should stay on one line where there is room */
@media (min-width: 1024px) {
  .section-head h2.h2--wide { max-width: none; white-space: nowrap; }
}

.section-head p:not(.tag) { margin: 18px auto 0; max-width: 50rem; color: var(--text-muted); text-wrap: balance; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-weight: 700;
  color: var(--accent-text);
  transition: gap var(--t-fast) var(--ease);
}
.text-link:hover { gap: 14px; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.875rem; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 1rem; }

.btn__arrow {
  width: 16px; height: 10px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M0 5h14M10 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M0 5h14M10 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--t-fast) var(--ease);
}
.btn:hover .btn__arrow,
.text-link:hover .btn__arrow,
.service__link:hover .btn__arrow { transform: translateX(3px); }

.btn--primary { background: var(--c-midnight); color: var(--c-white); }
.btn--primary .btn__arrow { color: var(--c-mint); }
.btn--primary:hover { background: var(--c-teal); }
.btn--primary:hover .btn__arrow { color: var(--c-white); }

.btn--accent { background: var(--c-aqua); color: var(--c-midnight); }
.btn--accent:hover { background: var(--c-mint); transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-3); }
.btn--ghost:hover { border-color: var(--c-aqua); color: var(--text-strong); transform: translateY(-2px); }

.btn__spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: var(--c-mint); border-radius: 50%; animation: spin 0.8s linear infinite; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__label { opacity: 0.75; }
.btn.is-loading .btn__arrow { display: none; }
.btn.is-loading .btn__spinner { display: block; }

/* ==========================================================================
   Header — floating dark bar (uses the light-on-dark logo variant)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 16px;
  left: 0; right: 0;
  z-index: 100;
  padding-inline: var(--gutter);
  pointer-events: none; /* only the bar itself is interactive */
  transition: top var(--t-med) var(--ease);
}
.site-header.is-scrolled { top: 10px; }
.site-header__bar,
.site-nav { pointer-events: auto; }

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1120px;
  height: 64px;
  margin: 0 auto;
  padding: 0 10px 0 22px;
  background: var(--header-bg-top);
  border: 1px solid transparent;
  border-radius: 16px;
  -webkit-backdrop-filter: blur(0px);
          backdrop-filter: blur(0px);
  transition: height var(--t-med) var(--ease), background-color var(--t-med), border-color var(--t-med), box-shadow var(--t-med), backdrop-filter var(--t-med);
}
.is-scrolled .site-header__bar,
.nav-open .site-header__bar {
  height: 58px;
  background: var(--header-bg);
  border-color: var(--border);
  box-shadow: 0 18px 40px -24px var(--shadow);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
          backdrop-filter: blur(14px) saturate(140%);
}

.site-header__logo img { height: 30px; width: auto; }

.site-nav { margin-left: auto; }
.site-nav__list { display: flex; gap: 2px; }
.site-nav__list a {
  display: block;
  padding: 8px 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color var(--t-fast), background-color var(--t-fast);
}
.site-nav__list a:hover { color: var(--text-strong); background: var(--wash-2); }
.site-nav__list a.is-current { color: var(--accent-text); }
.site-nav__mobile-cta { display: none; }

.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; background: var(--wash-2); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after { display: block; width: 18px; height: 2px; margin: 0 auto; background: var(--text); border-radius: 2px; transition: transform var(--t-med) var(--ease), background-color var(--t-fast); }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { transform: translateY(-6px); }
.nav-toggle__bars::after { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: rotate(-45deg); }

.js .site-header__bar { animation: drop-in 700ms var(--ease) both; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(150px, 16vw, 200px) 0 0;
  background: var(--bg-alt);
  text-align: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--dots) 1px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero__inner { position: relative; }
.hero__title { max-width: 16em; margin: 24px auto 0; font-size: var(--fs-h1); font-weight: 800; line-height: 1.06; letter-spacing: -0.035em; color: var(--text-strong); }
.hero__lede { max-width: 48rem; margin: 24px auto 0; text-wrap: balance; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); color: var(--text-muted); }
.hero__ctas { margin-top: 36px; }

.js .hero__tag { animation: fade-up 600ms var(--ease) 150ms both; }
.js .hero__title { animation: fade-up 800ms var(--ease) 250ms both; }
.js .hero__lede { animation: fade-up 700ms var(--ease) 420ms both; }
.js .hero__ctas { animation: fade-up 700ms var(--ease) 540ms both; }

/* Logos */
.logos { position: relative; padding: clamp(64px, 8vw, 96px) 0 clamp(48px, 6vw, 72px); }
.logos__title { margin-bottom: 22px; font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; gap: 16px; }
.marquee.is-running .marquee__track { animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee li { display: grid; place-items: center; height: 64px; padding-inline: 12px; }
.marquee img {
  height: 40px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  opacity: 0.8;
  filter: brightness(0.5) contrast(1.15);
  transition: opacity var(--t-fast), filter var(--t-fast);
}
.marquee li:hover img { opacity: 1; filter: brightness(0.32) contrast(1.2); }

/* ==========================================================================
   Why us
   ========================================================================== */
.why__grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 20px; }
.why-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(24px, 2.6vw, 34px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1.0625rem;
  color: var(--text);
  transition: transform var(--t-med) var(--ease), border-color var(--t-med), opacity 700ms var(--ease) !important;
}
.why-card__stat { font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--accent-text); }
.why-card .hl { font-weight: 700; }
.why-card__source a { color: inherit; text-decoration: underline; text-underline-offset: 3px; transition: color var(--t-fast); }
.why-card__source a:hover { color: var(--accent-text); }
.why-card__source { margin-top: auto; padding-top: 12px; font-size: 0.8125rem; font-style: italic; color: var(--text-muted); border-top: 1px solid var(--border); }
.why-card--feature { justify-content: space-between; gap: 28px; background: var(--c-mint); border-color: var(--c-mint); color: var(--c-midnight); font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem); font-weight: 500; line-height: 1.45; }
.why-card--feature strong { font-weight: 800; }
.why-card__icon { width: 48px; height: 48px; fill: none; stroke: var(--c-midnight); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }

/* ==========================================================================
   Approach — growth framework
   ========================================================================== */
.approach { background: var(--bg-alt); }
.framework__title { margin-bottom: 32px; font-size: 1.25rem; text-align: center; color: var(--text-strong); }
.framework__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 64px); align-items: center; }

.framework__tabs { display: flex; flex-direction: column; border-left: 2px solid var(--border); }
.fw-tab {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 22px 8px 22px 24px;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  transition: background-color var(--t-fast);
}
.fw-tab:last-child { border-bottom: 0; }
.fw-tab:hover { background: var(--wash); }
.fw-tab__num { font-size: 0.8125rem; font-weight: 800; padding-top: 3px; color: var(--text-muted); transition: color var(--t-fast); }
.fw-tab__title { display: block; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); font-weight: 700; color: var(--text-muted); transition: color var(--t-fast); }
.fw-tab__text {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: max-height 450ms var(--ease), opacity 300ms var(--ease), margin 450ms var(--ease);
}
.fw-tab.is-active .fw-tab__num { color: var(--accent-text); }
.fw-tab.is-active .fw-tab__title { color: var(--text-strong); }
.fw-tab.is-active .fw-tab__text { max-height: 8em; opacity: 1; margin-top: 8px; }

.fw-tab__progress {
  position: absolute;
  left: -2px; top: 0;
  width: 2px;
  height: 100%;
  background: var(--accent-text);
  transform: scaleY(0);
  transform-origin: top;
}
.fw-tab.is-active .fw-tab__progress { transform: scaleY(1); }
.framework.is-playing .fw-tab.is-active .fw-tab__progress { animation: progress-y var(--fw-duration, 6s) linear forwards; }
.framework.is-paused .fw-tab.is-active .fw-tab__progress { animation-play-state: paused; }

.framework__visual {
  display: grid;
  padding: clamp(16px, 2vw, 24px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
}
.fw-scene {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 450ms var(--ease), transform 600ms var(--ease);
  pointer-events: none;
}
.fw-scene.is-active { opacity: 1; transform: none; }
.framework__caption { grid-area: 2 / 1; margin-top: 12px; padding-top: 12px; font-size: 0.8125rem; color: var(--text-muted); border-top: 1px solid var(--border); }

/* ==========================================================================
   Services
   ========================================================================== */
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.service {
  display: flex;
  flex-direction: column;
  padding: 12px 12px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--t-med) var(--ease), border-color var(--t-med), box-shadow var(--t-med), opacity 700ms var(--ease) !important;
}
.service__art {
  display: grid;
  place-items: center;
  height: clamp(124px, 13vw, 164px);
  overflow: hidden;
  border-radius: 12px;
  background-color: var(--art-bg);
  background-image: radial-gradient(rgba(0, 184, 200, 0.14) 1px, transparent 1.2px);
  background-size: 16px 16px;
}
.service__art svg { width: auto; max-width: 100%; height: 100%; transition: transform 600ms var(--ease); }
.service__num {
  display: block;
  margin: 20px 12px 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--accent-text);
}
.service h3 { margin: 6px 12px 8px; font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem); color: var(--text-strong); }
.service p { margin: 0 12px; font-size: 0.9375rem; color: var(--text-muted); }
.service__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: auto 12px 0;
  padding-top: 18px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-text);
  transition: color var(--t-fast);
}
.service__link:hover { color: var(--c-aqua); }

/* ==========================================================================
   Results — testimonial slider
   ========================================================================== */
.results { background: var(--bg-alt); }
.slider {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
}
.slider__viewport { overflow: hidden; }
.slider__track { display: flex; transition: transform 600ms var(--ease); }
.slide { flex: 0 0 100%; min-width: 0; }
.slide[aria-hidden="true"] { visibility: hidden; transition: visibility 0s 600ms; }

.slide__logo {
  display: inline-grid;
  place-items: center;
  width: 150px; height: 52px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px dashed var(--border-3);
  border-radius: 10px;
}
.slide__quote p {
  margin-top: 28px;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.875rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--text);
}
.slide__cite { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 28px; }
.slide__cite strong { font-size: 1.0625rem; color: var(--text-strong); }
.slide__cite span { font-size: 0.9375rem; color: var(--text-muted); }
.slide__stats { display: flex; flex-wrap: wrap; gap: 16px 48px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.slide__stats div { display: flex; flex-direction: column-reverse; }
.slide__stats dt { font-size: 0.875rem; color: var(--text-muted); }
.slide__stats dd { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; color: var(--accent-text); }

.slider__controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.slider__dots { display: flex; gap: 8px; }
.slider__dot { width: 28px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: var(--border-3); transition: background-color var(--t-fast), width var(--t-med) var(--ease); }
.slider__dot[aria-current="true"] { width: 44px; background: var(--accent-text); }
.slider__arrows { display: flex; gap: 8px; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: transparent; border: 1px solid var(--border-3); border-radius: 50%; transition: border-color var(--t-fast), background-color var(--t-fast); }
.icon-btn:hover { border-color: var(--art-accent); background: rgba(53, 224, 183, 0.08); }
.chev { width: 9px; height: 9px; border-top: 2px solid var(--text); border-right: 2px solid var(--text); transform: translateX(-2px) rotate(45deg); }
.chev--left { transform: translateX(2px) rotate(-135deg); }

/* ==========================================================================
   Team
   ========================================================================== */
.team__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); text-align: center; }
.portrait { position: relative; aspect-ratio: 4 / 5; margin-bottom: 16px; }
.portrait::before,
.portrait::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 28px; height: 28px;
  border-color: var(--art-accent);
  border-style: solid;
  transition: transform var(--t-med) var(--ease);
}
.portrait::before { top: -6px; left: -6px; border-width: 3px 0 0 3px; border-radius: 10px 0 0 0; }
.portrait::after { right: -6px; bottom: -6px; border-width: 0 3px 3px 0; border-radius: 0 0 10px 0; }
.member:hover .portrait::before { transform: translate(-3px, -3px); }
.member:hover .portrait::after { transform: translate(3px, 3px); }
.portrait__ph,
.portrait img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
}
.portrait__ph {
  display: grid;
  place-items: center;
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent-text);
  background-color: var(--surface-2);
  background-image: radial-gradient(var(--dots-soft) 1px, transparent 1.2px);
  background-size: 14px 14px;
  border: 1px solid var(--border);
}
.member h3 { font-size: 1.0625rem; color: var(--text-strong); }
.member p { margin-top: 2px; font-size: 0.875rem; color: var(--text-muted); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { background: var(--bg-alt); }
.contact__card {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px);
  background: var(--c-white);
  color: var(--c-text);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 40px 80px -40px var(--shadow);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; font-weight: 700; color: var(--c-midnight); }
.req { color: var(--c-teal); }
.opt { margin-left: 4px; font-size: 0.8125rem; font-weight: 500; color: #7D90A0; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font-size: 1rem;
  color: var(--c-midnight);
  background: var(--c-paper);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #8FA0AE; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #9FB1C0; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; background: var(--c-white); border-color: var(--c-teal); box-shadow: 0 0 0 3px rgba(0, 184, 200, 0.25); }

.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select select:invalid { color: #8FA0AE; }
.select option { color: var(--c-midnight); }
.select::after {
  content: "";
  position: absolute;
  right: 18px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--c-midnight);
  border-bottom: 2px solid var(--c-midnight);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.field__error { display: none; font-size: 0.8125rem; font-weight: 600; color: var(--c-error); }
.field__error::before { content: "! "; font-weight: 800; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--c-error); background: var(--c-white); }
.field.has-error .field__error { display: block; }
.lead-form { position: relative; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.lead-form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 28px; }
.lead-form__note { font-size: 0.9375rem; color: var(--c-text-2); }
.lead-form__note strong { color: var(--c-midnight); }

.form-status:empty { display: none; }
.form-status { margin-top: 20px; padding: 14px 16px; font-size: 0.9375rem; font-weight: 600; border-radius: var(--radius-sm); animation: fade-up 400ms var(--ease); }
.form-status.is-success { background: rgba(53, 224, 183, 0.15); border: 1px solid var(--c-teal); color: var(--c-midnight); }
.form-status.is-success::before { content: "✓ "; color: var(--c-teal); font-weight: 800; }
.form-status.is-error { background: rgba(194, 65, 45, 0.06); border: 1px solid var(--c-error); color: var(--c-midnight); }
.form-status.is-error::before { content: "! "; color: var(--c-error); font-weight: 800; }

.contact__info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 880px;
  margin: 48px auto 0;
  text-align: center;
}
.contact__info li { padding: 8px 20px; }
.contact__info li + li { border-left: 1px solid var(--border); }
.contact__icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.contact__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--art-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact__info h3 { font-size: 1rem; color: var(--text-strong); }
.contact__info p { margin-top: 6px; font-size: 0.9375rem; color: var(--text-muted); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.accordion { max-width: 860px; margin: 0 auto; }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-item:first-child { border-top: 1px solid var(--border); }
.acc-item h3 { font-size: inherit; letter-spacing: normal; }
.acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 22px 4px;
  text-align: left;
  background: none;
  border: 0;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  font-weight: 600;
  color: var(--text);
  transition: color var(--t-fast);
}
.acc-trigger:hover,
.acc-item.is-open .acc-trigger { color: var(--text-strong); }
.acc-trigger:hover .acc-icon { border-color: var(--art-accent); }
.acc-icon {
  position: relative;
  flex: none;
  width: 32px; height: 32px;
  border: 1px solid var(--border-3);
  border-radius: 50%;
  transition: transform var(--t-med) var(--ease), background-color var(--t-med), border-color var(--t-med);
}
.acc-icon::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: translate(-50%, -70%) rotate(45deg);
}
.acc-item.is-open .acc-icon { transform: rotate(180deg); background: var(--art-accent); border-color: var(--art-accent); }
.acc-item.is-open .acc-icon::before { border-color: var(--c-midnight); }

.acc-panel { display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows 320ms var(--ease), opacity 260ms var(--ease), visibility 0s linear 320ms; }
.acc-panel__inner { overflow: hidden; }
.acc-panel p { padding: 0 60px 24px 4px; color: var(--text-muted); }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition: grid-template-rows 320ms var(--ease), opacity 260ms var(--ease) 60ms, visibility 0s; }
.no-js .acc-panel { grid-template-rows: 1fr; opacity: 1; visibility: visible; }

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final { padding: 0 0 var(--section-y); }
.final__box {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 120px) clamp(24px, 5vw, 64px);
  text-align: center;
  background-color: var(--bg-alt);
  background-image: radial-gradient(var(--dots) 1px, transparent 1.3px);
  background-size: 20px 20px;
  border: 1px solid var(--border);
  border-radius: 28px;
}
.final__box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, var(--veil-1), var(--veil-2));
}
.final__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.final__trend { fill: none; stroke: var(--art-stroke); stroke-width: 2; stroke-dasharray: 10 14; opacity: 0.45; animation: dash-drift 40s linear infinite paused; }
.final__signals circle { fill: var(--art-accent); animation: soft-pulse 6s ease-in-out infinite paused; }
.final__signals circle:nth-child(2) { animation-delay: 1.2s; }
.final__signals circle:nth-child(3) { animation-delay: 2.4s; }
.final__signals circle:nth-child(4) { animation-delay: 3.6s; }
.final__signals circle:nth-child(5) { animation-delay: 4.8s; }
.final.is-inview .final__trend,
.final.is-inview .final__signals circle { animation-play-state: running; }
.final__content { position: relative; }
.final h2 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4rem); font-weight: 800; letter-spacing: -0.035em; color: var(--text-strong); }
.final p { max-width: 32rem; margin: 20px auto 0; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); color: var(--text-muted); }
.final .btn-row { margin-top: 36px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--bg-alt); color: var(--text); border-top: 1px solid var(--border); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-top: 40px; padding-bottom: 32px; }
.site-footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.site-footer__logo img { height: 32px; width: auto; }
.site-footer__brand p { font-size: 0.875rem; color: var(--text-muted); }
.site-footer__nav,
.site-footer__social { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer__nav a,
.site-footer__social a { font-size: 0.9375rem; font-weight: 600; color: var(--text-muted); transition: color var(--t-fast); }
.site-footer__nav a:hover,
.site-footer__social a:hover { color: var(--accent-text); }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--border); font-size: 0.8125rem; color: var(--text-muted); }
.site-footer__base a:hover { color: var(--text-strong); }

/* ==========================================================================
   Illustration vocabulary (shared by framework + service SVGs)
   ========================================================================== */
.il-panel { fill: var(--surface-2); stroke: var(--border-2); stroke-width: 1.2; }
.il-panel--win { stroke: var(--art-accent); stroke-width: 1.6; }
.il-bar { fill: var(--surface-3); }
.il-dot { fill: var(--text-muted); opacity: 0.6; }
.il-soft { fill: rgba(0, 184, 200, 0.14); }
.il-soft-stroke { fill: rgba(0, 184, 200, 0.1); stroke: var(--art-stroke); stroke-width: 1.5; stroke-linejoin: round; }
.il-line { fill: var(--il-line); }
.il-line--dim { fill: var(--il-line-dim); }
.il-cta { fill: var(--art-stroke); }
.il-cta--dim { fill: var(--border-3); }
.il-accent { fill: var(--art-accent); }
.il-end { fill: var(--art-accent); }
.il-wires path { fill: none; stroke: var(--border-3); stroke-width: 1.5; stroke-dasharray: 4 5; }
.il-chip rect { fill: var(--surface); stroke: var(--art-stroke); stroke-width: 1.2; }
.il-chip text { fill: var(--text); font-family: var(--font); font-size: 11.5px; font-weight: 700; text-anchor: middle; }
.il-pulse { fill: var(--art-accent); transform-box: fill-box; transform-origin: center; }
.il-donut-bg { fill: none; stroke: var(--border-3); stroke-width: 7; }
.il-donut { fill: none; stroke: var(--art-accent); stroke-width: 7; stroke-dasharray: 68 100; stroke-linecap: round; transform-box: fill-box; transform-origin: center; transform: rotate(-90deg); }
.il-funnel rect { fill: var(--art-stroke); opacity: 0.75; }
.il-funnel .is-drop { fill: rgba(53, 224, 183, 0.18); stroke: var(--art-accent); stroke-width: 1.5; stroke-dasharray: 4 3; opacity: 1; }
.il-flag path { stroke: var(--art-accent); stroke-width: 1.5; stroke-dasharray: 3 3; }
.il-flag rect { fill: var(--art-accent); }
.il-flag text { fill: var(--c-midnight); font-family: var(--font); font-size: 11px; font-weight: 800; text-anchor: middle; }
.il-spark { fill: none; stroke: var(--art-accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.il-vlabel { fill: var(--text-muted); font-family: var(--font); font-size: 18px; font-weight: 800; }
.il-vlabel--win { fill: var(--art-accent); }
.il-badge { fill: var(--art-accent); }
.il-check { fill: none; stroke: var(--c-midnight); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.il-meter .m-a { fill: var(--border-3); transform-box: fill-box; transform-origin: left; transform: scaleX(0.55); }
.il-meter .m-bg { fill: var(--border); }
.il-meter .m-b { fill: var(--art-accent); transform-box: fill-box; transform-origin: left; }
.il-uplift { fill: none; stroke: var(--art-accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.il-rise { fill: none; stroke: var(--art-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.il-rise-head { fill: none; stroke: var(--art-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.il-cursor { fill: var(--c-white); stroke: var(--c-midnight); stroke-width: 1.2; stroke-linejoin: round; }
.il-warn { fill: var(--surface); stroke: var(--text); stroke-width: 1.5; }
.il-warn-t { fill: var(--text); font-family: var(--font); font-size: 12px; font-weight: 800; text-anchor: middle; }
.il-lens circle { fill: rgba(0, 184, 200, 0.08); stroke: var(--art-stroke); stroke-width: 3; }
.il-lens path { stroke: var(--art-stroke); stroke-width: 6; stroke-linecap: round; }
.il-checks path { fill: none; stroke: var(--art-accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.il-checks rect { fill: var(--il-line-soft); }
.il-pop { transform-box: fill-box; transform-origin: center; }
.il-scroll rect { fill: var(--border-3); }
.il-scroll .il-thumb { fill: var(--art-stroke); }
.il-arrowline { fill: none; stroke: var(--text-muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.il-tag path { fill: var(--surface-2); stroke: var(--art-stroke); stroke-width: 1.5; stroke-linejoin: round; }
.il-tag circle { fill: var(--art-stroke); }
.il-db ellipse,
.il-db path { fill: var(--surface-2); stroke: var(--art-accent); stroke-width: 1.5; }
.il-db path:last-child { fill: none; }
.il-hbars rect { fill: var(--art-stroke); opacity: 0.7; }
.il-cal rect { fill: var(--border); }
.il-cal .is-on { fill: var(--art-accent); }
.il-refresh path { fill: none; stroke: var(--art-stroke); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.il-refresh { transform-box: fill-box; transform-origin: center; }

/* Illustration motion: draw on reveal, small internal motion on hover */
.js .service:not(.is-visible) .il-spark,
.js .service:not(.is-visible) .il-rise { stroke-dashoffset: 1; }
.il-spark, .il-rise { transition: stroke-dashoffset 1.4s var(--ease-io) 300ms; }
.fw-scene .il-spark { stroke-dashoffset: 1; }
.fw-scene.is-active .il-spark { stroke-dashoffset: 0; transition-delay: 350ms; }
.fw-scene .il-meter .m-b { transform: scaleX(0); transition: transform 1s var(--ease) 300ms; }
.fw-scene.is-active .il-meter .m-b { transform: scaleX(0.88); }
.fw-scene.is-active .il-wires path,
.service:hover .il-wires path { animation: dash-flow 1.6s linear infinite; }
.fw-scene.is-active .il-pulse,
.service:hover .il-pulse { animation: pulse 1.8s ease-in-out infinite; }
.service:hover .il-rise { animation: redraw 900ms var(--ease); }
.service:hover .il-pop { animation: pop 900ms var(--ease); }
.service:hover .il-thumb { transform: translateY(58px); }
.il-thumb { transition: transform 900ms var(--ease); }
.service:hover .il-lens { transform: translate(-10px, -6px); }
.il-lens { transition: transform 700ms var(--ease); }
.service:hover .il-refresh { animation: spin 1.2s var(--ease); }
.service:hover .il-cal .is-on { animation: blink 900ms ease-in-out 2; }
.service:hover .il-donut { stroke-dasharray: 82 100; }
.il-donut { transition: stroke-dasharray 700ms var(--ease); }

/* ==========================================================================
   Scroll reveal + card hover
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

.why-card:hover,
.js .why-card.is-visible:hover { transform: translateY(-4px); border-color: rgba(0, 184, 200, 0.45); }
.why-card--feature:hover,
.js .why-card--feature.is-visible:hover { border-color: var(--c-mint); }
.service:hover,
.js .service.is-visible:hover { transform: translateY(-4px); border-color: rgba(0, 184, 200, 0.45); box-shadow: 0 24px 50px -30px var(--shadow); }
.service:hover .service__art svg { transform: scale(1.03); }
.member { transition: transform var(--t-med) var(--ease), opacity 700ms var(--ease) !important; }
.js .member.is-visible:hover,
.member:hover { transform: translateY(-4px); }

/* ---------- Keyframes ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }
@keyframes progress-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0.3; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: 0.5; } }
@keyframes pop { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.08); } }
@keyframes redraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes dash-flow { to { stroke-dashoffset: -18; } }
@keyframes dash-drift { to { stroke-dashoffset: -480; } }
@keyframes soft-pulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.9; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { flex-wrap: wrap; justify-content: center; width: auto; }
  .final__trend, .final__signals circle { animation: none !important; }
}
