/* ============================================================
   Vaeleen Digital - Shared Stylesheet
   Apple HIG-derived system. Dark default, light toggle.
   Ported from the Vaeleen Copilot design system (src/styles.css):
   same tokens, materials, spacing and type scale.
   ============================================================ */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* ---------- Theme tokens ---------- */
/* Dark is the default theme. [data-theme="light"] on <html> opts into light. */
:root {
  color-scheme: dark;

  --bg: #000000;
  --bg-2: #1c1c1e;
  --bg-3: #2c2c2e;
  --bg-elevated: #242426;

  --text: rgba(255, 255, 255, 0.94);
  --text-dim: rgba(235, 235, 245, 0.6);
  --text-faint: rgba(235, 235, 245, 0.38);
  --text-quat: rgba(235, 235, 245, 0.22);

  --fill: rgba(120, 120, 128, 0.36);
  --fill-2: rgba(120, 120, 128, 0.28);
  --fill-3: rgba(118, 118, 128, 0.2);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);

  --accent: #0a84ff;
  --accent-rgb: 10, 132, 255;
  --accent-hover: #3396ff;
  --accent-2: #bf5af2;
  --green: #30d158;
  --green-rgb: 48, 209, 88;
  --red: #ff453a;
  --red-rgb: 255, 69, 58;

  --gradient: linear-gradient(120deg, #0a84ff 0%, #5e5ce6 55%, #bf5af2 100%);

  --material-thin: rgba(30, 30, 32, 0.72);
  --material-regular: rgba(28, 28, 30, 0.86);
  --material-thick: rgba(22, 22, 24, 0.96);
  --nav-bg: rgba(10, 10, 12, 0.7);
  --blur: 24px;

  --font-system: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Menlo', 'Consolas', monospace;
  --font-display: var(--font-system);
  --font-body: var(--font-system);

  --maxw: 1320px;
  --pad: clamp(1.25rem, 5vw, 5rem);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  --shadow-1: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-3: 0 24px 64px rgba(0, 0, 0, 0.55);

  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
}

:root[data-theme='light'] {
  color-scheme: light;

  --bg: #ffffff;
  --bg-2: #f2f2f7;
  --bg-3: #e5e5ea;
  --bg-elevated: #ffffff;

  --text: rgba(0, 0, 0, 0.92);
  --text-dim: rgba(60, 60, 67, 0.6);
  --text-faint: rgba(60, 60, 67, 0.38);
  --text-quat: rgba(60, 60, 67, 0.18);

  --fill: rgba(120, 120, 128, 0.2);
  --fill-2: rgba(120, 120, 128, 0.16);
  --fill-3: rgba(118, 118, 128, 0.12);
  --border: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.16);

  --accent: #007aff;
  --accent-rgb: 0, 122, 255;
  --accent-hover: #0062cc;
  --accent-2: #af52de;
  --green: #34c759;
  --green-rgb: 52, 199, 89;
  --red: #ff3b30;
  --red-rgb: 255, 59, 48;

  --material-thin: rgba(255, 255, 255, 0.72);
  --material-regular: rgba(255, 255, 255, 0.86);
  --material-thick: rgba(255, 255, 255, 0.9);
  --nav-bg: rgba(255, 255, 255, 0.75);

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-3: 0 24px 64px rgba(0, 0, 0, 0.16);
}

/* ---------- Base ---------- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
  transition: background-color 0.3s var(--ease-standard), color 0.3s var(--ease-standard);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

::selection {
  background: rgba(var(--accent-rgb), 0.3);
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- Ambient background ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}
.ambient::before,
.ambient::after {
  content: "";
  position: absolute;
  width: 62vw;
  height: 62vw;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  will-change: transform, filter;
}
.ambient::before {
  top: -18%;
  left: -14%;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.55), transparent 70%);
  animation: bulge1 11s ease-in-out infinite, drift1 26s ease-in-out infinite alternate, huepulse1 16s ease-in-out infinite;
}
.ambient::after {
  bottom: -22%;
  right: -16%;
  background: radial-gradient(circle, rgba(191, 90, 242, 0.48), transparent 70%);
  animation: bulge2 13s ease-in-out infinite, drift2 30s ease-in-out infinite alternate, huepulse2 18s ease-in-out infinite;
}
.ambient .blob-3 {
  position: absolute;
  top: 30%;
  left: 38%;
  width: 44vw;
  height: 44vw;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  background: radial-gradient(circle, rgba(94, 92, 230, 0.5), transparent 70%);
  animation: bulge3 9s ease-in-out infinite, drift3 22s ease-in-out infinite alternate;
  will-change: transform, filter;
}
:root[data-theme='light'] .ambient::before { opacity: 0.26; }
:root[data-theme='light'] .ambient::after { opacity: 0.22; }
:root[data-theme='light'] .ambient .blob-3 { opacity: 0.18; }
@keyframes bulge1 {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.55); }
}
@keyframes bulge2 {
  0%, 100% { transform: scale(1.1); }
  50% { transform: scale(1.6); }
}
@keyframes bulge3 {
  0%, 100% { transform: scale(0.85); }
  50% { transform: scale(1.4); }
}
@keyframes drift1 {
  from { transform: translate(0, 0); }
  to { transform: translate(14vw, 10vh); }
}
@keyframes drift2 {
  from { transform: translate(0, 0); }
  to { transform: translate(-12vw, -8vh); }
}
@keyframes drift3 {
  from { transform: translate(-6vw, 0); }
  to { transform: translate(8vw, 10vh); }
}
@keyframes huepulse1 {
  0%, 100% { filter: blur(80px) hue-rotate(-10deg); }
  50% { filter: blur(80px) hue-rotate(12deg); }
}
@keyframes huepulse2 {
  0%, 100% { filter: blur(80px) hue-rotate(8deg); }
  50% { filter: blur(80px) hue-rotate(-14deg); }
}
@media (prefers-reduced-motion: reduce) {
  .ambient::before, .ambient::after, .ambient .blob-3 { animation: none; }
}

/* ---------- Eco banner (homepage, immediately visible on load) ---------- */
.eco-banner {
  position: relative;
  overflow: hidden;
  margin-top: 68px;
  padding: 1.4rem var(--pad);
  text-align: center;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  isolation: isolate;
}
.eco-banner::before {
  content: "";
  position: absolute;
  inset: -120% -20%;
  background: var(--gradient);
  filter: blur(70px);
  opacity: 0.55;
  z-index: -1;
  animation: ecoPulse 5s ease-in-out infinite;
}
.eco-banner p {
  position: relative;
  font-family: var(--font-system);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.6vw, 1.55rem);
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text);
}
.eco-banner p em { font-style: normal; }
@keyframes ecoPulse {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.4; }
  50% { transform: scale(1.4) rotate(10deg); opacity: 0.75; }
}
@media (prefers-reduced-motion: reduce) {
  .eco-banner::before { animation: none; }
}
@media (max-width: 640px) {
  .eco-banner { margin-top: 60px; padding: 1.1rem var(--pad); }
}

/* ---------- Loader ---------- */
.loader { display: none; }
html.js .loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: opacity 0.5s var(--ease-standard), visibility 0.5s var(--ease-standard);
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-word {
  font-family: var(--font-system);
  font-weight: 700;
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  letter-spacing: -0.02em;
  line-height: 1.18;
  padding-bottom: 0.12em;
  overflow: hidden;
  text-align: center;
}
.loader-word em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.loader-bar {
  width: min(70vw, 360px);
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--fill-3);
  position: relative;
  overflow: hidden;
}
.loader-bar span {
  position: absolute;
  inset: 0;
  width: 0;
  background: var(--accent);
  border-radius: var(--radius-pill);
}
.loader-pct {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

/* ---------- Shared typographic helpers ---------- */
.eyebrow {
  font-family: var(--font-system);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
em.hl {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-bottom: 3rem;
}
.section-head .num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.section-head .label {
  font-family: var(--font-system);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-system);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  transition: transform 150ms var(--ease-spring), background-color 180ms var(--ease-standard), border-color 180ms var(--ease-standard), opacity 180ms var(--ease-standard);
  cursor: pointer;
  background: var(--fill-3);
  color: var(--text);
}
.btn:hover {
  background: var(--fill-2);
  border-color: var(--border-strong);
}
.btn:active { transform: scale(0.96); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color 0.3s var(--ease-standard), border-color 0.3s var(--ease-standard);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(var(--blur)) saturate(1.6);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.6);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-system);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand-mark { display: block; flex-shrink: 0; }
.brand sup { display: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-links a.lnk {
  font-family: var(--font-system);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-dim);
  transition: color 0.2s var(--ease-standard);
}
.nav-links a.lnk:hover,
.nav-links a.lnk.active {
  color: var(--text);
}
.theme-toggle {
  background: var(--fill-3);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s var(--ease-standard), transform 0.3s var(--ease-spring);
}
.theme-toggle:hover { background: var(--fill-2); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme='light'] .theme-toggle .icon-moon { display: none; }
:root[data-theme='light'] .theme-toggle .icon-sun { display: block; }
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: var(--text);
  transition: transform 0.3s var(--ease-standard), opacity 0.3s var(--ease-standard);
}

/* mobile overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: var(--material-thick);
  backdrop-filter: blur(var(--blur)) saturate(1.6);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  transform: translateY(-100%);
  transition: transform 0.45s var(--ease-spring);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--font-system);
  font-size: clamp(1.6rem, 8vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 0.5rem 0;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-close {
  position: absolute;
  top: 24px;
  right: var(--pad);
  background: var(--fill-3);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ---------- Hero (generic) ---------- */
.hero {
  padding-top: clamp(9rem, 18vh, 13rem);
  padding-bottom: clamp(4rem, 9vh, 7rem);
  position: relative;
}
.hero-tags {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.hero-tags span {
  font-family: var(--font-system);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--fill-3);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.85rem;
}
h1.display {
  font-family: var(--font-system);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-size: clamp(2.6rem, 8.5vw, 7.2rem);
}
.line {
  overflow: hidden;
  display: block;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.line > span {
  display: block;
  padding-bottom: 0.04em;
}
.hero-foot {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: flex-end;
  justify-content: space-between;
}
.hero-foot p {
  max-width: 42ch;
  color: var(--text-dim);
  font-size: 1.05rem;
}
.hero-cta {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 1.3rem 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  animation: scroll 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-system);
  font-weight: 600;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  letter-spacing: -0.01em;
  color: var(--text-dim);
}
.marquee-track .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ---------- Section spacing ---------- */
.section { padding: clamp(4rem, 10vh, 8rem) 0; }

/* ---------- Statement / two-column editorial ---------- */
.statement {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.statement .big {
  font-family: var(--font-system);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.statement .big em { font-style: normal; color: var(--text); background: none; -webkit-text-fill-color: currentColor; }
.statement .big em.hl { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.statement .support p {
  color: var(--text-dim);
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  padding: 2.25rem 1.5rem;
  background: var(--bg-2);
}
.stat .figure {
  font-family: var(--font-system);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat .figure em { font-style: normal; color: var(--accent); }
.stat .desc {
  margin-top: 0.6rem;
  font-family: var(--font-system);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- Work index rows ---------- */
.index-rows { border-top: 1px solid var(--border); }
.index-row {
  display: grid;
  grid-template-columns: 60px 1fr auto 40px;
  align-items: center;
  gap: 1.5rem;
  padding: 1.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: padding 0.25s var(--ease-standard), background-color 0.25s var(--ease-standard);
}
.index-row:hover {
  padding-left: 1.25rem;
  background: var(--fill-3);
}
.index-row .ix {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
}
.index-row .client {
  font-family: var(--font-system);
  font-weight: 600;
  font-size: clamp(1.25rem, 3vw, 1.9rem);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.index-row:hover .client { color: var(--accent); }
.index-row .sector {
  font-family: var(--font-system);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dim);
  text-align: right;
}
.index-row .arrow {
  font-size: 1.2rem;
  color: var(--text-faint);
  transition: transform 0.25s var(--ease-standard), color 0.25s var(--ease-standard);
  text-align: right;
}
.index-row:hover .arrow { transform: translate(4px, -4px); color: var(--accent); }

/* ---------- Process steps ---------- */
.process { border-top: 1px solid var(--border); }
.step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 2rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.step .step-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 2.4rem;
  line-height: 1.1;
  color: var(--fill-2);
}
.step h2 {
  font-family: var(--font-system);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.step p {
  color: var(--text-dim);
  max-width: 56ch;
}

/* ---------- Testimonials (quote grid) ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.quote {
  background: var(--bg-2);
  padding: clamp(1.6rem, 3.6vw, 2.4rem);
}
.quote blockquote {
  font-family: var(--font-system);
  font-weight: 500;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin-bottom: 1.2rem;
}
.quote .by {
  font-family: var(--font-system);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

/* ---------- Testimonials (starred, full section) ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.testimonial {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.testimonial .stars {
  display: flex;
  gap: 3px;
  color: #ffb400;
  font-size: 0.95rem;
  letter-spacing: 2px;
}
.testimonial blockquote {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.55;
  flex: 1;
}
.testimonial .by {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.testimonial .by strong {
  font-family: var(--font-system);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}
.testimonial .by span {
  font-size: 0.78rem;
  color: var(--text-faint);
}

/* ---------- Closing CTA ---------- */
.cta-block {
  text-align: center;
  padding: clamp(4rem, 12vh, 9rem) 0;
  border-top: 1px solid var(--border);
}
.cta-block h2 {
  font-family: var(--font-system);
  font-weight: 700;
  font-size: clamp(2.2rem, 6.5vw, 4.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}
.cta-block h2 em { font-style: normal; }
.cta-block p {
  color: var(--text-dim);
  max-width: 50ch;
  margin: 0 auto 2.2rem;
  font-size: 1.06rem;
}
.cta-block .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding-top: clamp(3rem, 7vh, 5rem);
  padding-bottom: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer .fbrand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-system);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.footer .fbrand sup { display: none; }
.footer .fdesc {
  color: var(--text-dim);
  max-width: 36ch;
  margin-bottom: 1rem;
}
.footer .floc {
  color: var(--text-faint);
  font-family: var(--font-system);
  font-size: 0.82rem;
  font-weight: 500;
}
.footer-nav-heading {
  font-family: var(--font-system);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.1rem;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.65rem; }
.footer ul li a {
  color: var(--text-dim);
  font-size: 0.94rem;
  transition: color 0.2s var(--ease-standard);
}
.footer ul li a:hover { color: var(--text); }
.footer ul li a.red { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  font-family: var(--font-system);
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* ---------- Values grid (about) ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.value { background: var(--bg-2); padding: clamp(1.5rem, 3vw, 2.2rem); }
.value .vnum {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 2rem;
  color: var(--fill-2);
  line-height: 1.1;
  margin-bottom: 0.9rem;
}
.value h2 {
  font-family: var(--font-system);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.value p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Team cards ---------- */
.team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.member {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3.6vw, 2.4rem);
  background: var(--bg-2);
}
.member .role {
  font-family: var(--font-system);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
  display: inline-block;
  border-radius: var(--radius-pill);
  background: var(--fill-3);
  padding: 0.35rem 0.85rem;
}
.member .role.founder { color: var(--accent); background: rgba(var(--accent-rgb), 0.14); }
.member h2 {
  font-family: var(--font-system);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.member p { color: var(--text-dim); margin-bottom: 1.3rem; }
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.3rem;
}
.tags span {
  font-family: var(--font-system);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: var(--radius-pill);
  background: var(--fill-3);
  padding: 0.35rem 0.75rem;
}
.member .li-link {
  font-family: var(--font-system);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}

/* ---------- Service rows ---------- */
.svc-rows { border-top: 1px solid var(--border); }
.svc {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2.25rem, 6vh, 4rem) 0;
  border-bottom: 1px solid var(--border);
}
.svc .svc-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
}
.svc h2 {
  font-family: var(--font-system);
  font-weight: 700;
  font-size: clamp(1.8rem, 4.4vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}
.svc .svc-body p {
  color: var(--text-dim);
  margin-bottom: 1.05rem;
  max-width: 64ch;
}
.svc .poa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-system);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.14);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.8rem;
  margin-bottom: 1.3rem;
}
.svc .svc-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ---------- Pricing ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.tier {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--bg-2);
  position: relative;
}
.tier.featured {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
  box-shadow: var(--shadow-2);
}
.tier .badge {
  position: absolute;
  top: -1px;
  right: 1.5rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-system);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.tier .tname {
  font-family: var(--font-system);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.tier .price {
  font-family: var(--font-system);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.tier .price em { font-style: normal; color: var(--accent); }
.tier .once {
  font-family: var(--font-system);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dim);
  margin: 0.6rem 0 1.4rem;
}
.tier ul { list-style: none; margin-bottom: 2rem; }
.tier ul li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.92rem;
  display: flex;
  gap: 0.65rem;
}
.tier ul li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}
.tier .btn { width: 100%; justify-content: center; }

/* ---------- Facts strip ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.fact { background: var(--bg-2); padding: 1.8rem 1.5rem; text-align: center; }
.fact .ff {
  font-family: var(--font-system);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  color: var(--accent);
  letter-spacing: -0.01em;
}
.fact .fl {
  font-family: var(--font-system);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  text-align: left;
  font-family: var(--font-system);
  font-weight: 600;
  font-size: clamp(1.02rem, 2.2vw, 1.25rem);
  letter-spacing: -0.01em;
  padding: 1.5rem 2rem 1.5rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-q .pm {
  color: var(--accent);
  font-size: 1.3rem;
  transition: transform 0.3s var(--ease-standard);
  flex-shrink: 0;
}
.faq-item.open .faq-q .pm,
.faq-q[aria-expanded="true"] .pm { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease-standard); }
.faq-a p { color: var(--text-dim); padding: 0 2rem 1.7rem 0; max-width: 70ch; }

/* ---------- Case studies (portfolio / applications) ---------- */
.case {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(3rem, 8vh, 6rem) 0;
  border-bottom: 1px solid var(--border);
}
.case-left { position: sticky; top: 100px; align-self: start; }
.case-left .ix {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.case-left h2 {
  font-family: var(--font-system);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.8rem;
}
.case-left .sector {
  font-family: var(--font-system);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 1.4rem;
}
.case-left .live {
  font-family: var(--font-system);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  gap: 0.4rem;
}
.case-right p { color: var(--text-dim); margin-bottom: 1.25rem; font-size: 1.03rem; }
.case-right .pull {
  font-family: var(--font-system);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding-left: 1.4rem;
  margin: 1.8rem 0;
}
.case-left .stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

/* ---------- Audit page ---------- */
.audit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.audit-left p.lead { color: var(--text-dim); font-size: 1.1rem; margin-bottom: 2.4rem; max-width: 50ch; }
.review-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.1rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--border);
}
.review-item .rn {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--fill-2);
}
.review-item h4 {
  font-family: var(--font-system);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}
.review-item p { color: var(--text-dim); font-size: 0.92rem; }
.audit-quote {
  margin-top: 2.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  padding: 1.7rem;
}
.audit-quote blockquote { font-family: var(--font-system); font-weight: 500; font-size: 1.15rem; line-height: 1.4; margin-bottom: 1rem; }
.audit-quote .by { font-family: var(--font-system); font-size: 0.76rem; font-weight: 600; color: var(--accent); }
.form-card {
  position: sticky;
  top: 100px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--material-regular);
  backdrop-filter: blur(var(--blur)) saturate(1.6);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.6);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-2);
}
.field { margin-bottom: 1.2rem; }
.field label {
  display: block;
  font-family: var(--font-system);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 0.45rem;
}
.field label .req { color: var(--accent); }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--fill-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.8rem 0.95rem;
  transition: border-color 0.2s var(--ease-standard), background-color 0.2s var(--ease-standard);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-2);
}
.field textarea { resize: vertical; min-height: 110px; }
.privacy { font-size: 0.78rem; color: var(--text-faint); margin-top: 1rem; line-height: 1.5; }

/* ---------- Scroll reveal ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}
html.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease-standard), transform 0.6s var(--ease-standard);
  will-change: auto;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .nav-links .lnk,
  .nav-links .btn { display: none; }
  .burger { display: flex; }
  .statement,
  .audit-grid { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; }
  .case-left { position: static; }
  .form-card { position: static; }
  .values,
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .stats,
  .pricing,
  .facts { grid-template-columns: 1fr; }
  .quotes,
  .team { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .step { grid-template-columns: 60px 1fr; gap: 1rem; }
  .svc { grid-template-columns: 1fr; gap: 1rem; }
  .index-row { grid-template-columns: 36px 1fr 28px; gap: 0.7rem; }
  .index-row .sector { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .values { grid-template-columns: 1fr; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}

/* ============================================================
   Accessibility
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-system);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 0 0 var(--radius-md) 0;
  z-index: 99999;
  transition: top 0.2s var(--ease-standard);
}
.skip-link:focus { top: 0; }

/* ============================================================
   Quote hero block (homepage)
   ============================================================ */
.quote-hero {
  max-width: 860px;
  padding: clamp(2.25rem, 5.5vw, 4.5rem) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.quote-hero-text {
  font-family: var(--font-system);
  font-size: clamp(1.4rem, 3.2vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 1.4rem;
}
.quote-hero-attr {
  font-family: var(--font-system);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}
