/* ==========================================================================
   Bonavis — bonavis.com.tr
   Brand system v2.0 · tokens mirror 01-Marka/tokenlar/bonavis.css
   ========================================================================== */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/Manrope-Variable.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('../fonts/JetBrainsMono-Variable.woff2') format('woff2');
}

:root {
  --night: #0B0D12;
  --night-900: #12151C;
  --night-800: #1A1E28;
  --night-700: #262B38;
  --night-600: #3A4052;
  --paper: #F5F3EE;
  --paper-100: #ECEAE3;
  --paper-200: #E6E3DA;
  --white: #FFFFFF;
  --blue: #4F6DF2;
  --blue-deep: #3A55D6;
  --blue-light: #8EA2FF;
  --blue-mist: #E4E8FD;
  --signal: #FF7A52;
  --live: #2EC28A;
  --grey-500: #5D6378;
  --grey-400: #8C93AB;
  --grey-300: #B8BED3;
  --grey-200: #DCDFE8;

  --font-sans: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 72px;
}

/* — Themes — */
.theme-night {
  --bg: var(--night);
  --surface: var(--night-900);
  --surface-2: var(--night-800);
  --line: var(--night-700);
  --text: var(--paper);
  --text-2: var(--grey-300);
  --text-3: var(--grey-400);
  --accent-text: var(--blue-light);
  --grid-dot: rgba(245, 243, 238, 0.07);
  background: var(--bg);
  color: var(--text);
}
.theme-paper {
  --bg: var(--paper);
  --surface: var(--white);
  --surface-2: var(--paper-100);
  --line: var(--paper-200);
  --text: var(--night);
  --text-2: #3B4052;
  --text-3: var(--grey-500);
  --accent-text: var(--blue-deep);
  --grid-dot: rgba(11, 13, 18, 0.08);
  background: var(--bg);
  color: var(--text);
}

/* — Base — */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  background: var(--night);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue); color: var(--white); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--blue-deep);
  color: var(--white);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon .N { fill: var(--blue); stroke: none; }

/* — Type — */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 30%; background: var(--blue); flex: none; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  line-height: 1.04;
  max-width: 18ch;
}
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.02em; font-weight: 700; }
.light { font-weight: 300; color: var(--text-3); }
.lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--text-2); max-width: 58ch; margin: 24px 0 0; text-wrap: pretty; }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.split { display: grid; gap: 24px; align-items: end; }
@media (min-width: 900px) {
  .section-head.split { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
  .section-head.split .lead { margin: 0; }
}
section { position: relative; }
.section { padding: clamp(80px, 11vw, 144px) 0; }

/* — Buttons — */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), color 0.25s var(--ease);
}
.btn .icon { width: 20px; height: 20px; transition: transform 0.3s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--blue-deep); color: var(--white); }
.btn-primary:hover { background: var(--blue); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text-3); }
.btn-light { background: var(--paper); color: var(--night); }
.btn-light:hover { background: var(--white); }

/* — Header — */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(11, 13, 18, 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: rgba(245, 243, 238, 0.08);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; width: 132px; flex: none; }
.brand img { width: 100%; height: auto; }
.nav { display: flex; align-items: center; gap: 2px; position: relative; }
.nav-link {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--grey-300);
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav-link:hover, .nav-link[aria-current] { color: var(--paper); background: rgba(245, 243, 238, 0.06); }
.nav > .btn { margin-left: 12px; min-height: 42px; padding: 0 18px; font-size: 0.9375rem; color: var(--white); }
.nav > .btn:hover { background: var(--blue); }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--night-700);
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--paper);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.75px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform 0.3s var(--ease), background-color 0.2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding: 16px var(--gutter) 32px;
    background: var(--night);
    border-bottom: 1px solid var(--night-700);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav-link { padding: 14px 12px; font-size: 1.0625rem; }
  .nav-item .nav-link { flex: 1; }
  .nav > .btn { margin: 8px 0 0; min-height: 52px; }
  .nav { max-height: calc(100svh - var(--header-h)); overflow-y: auto; }
  .nav-open .nav { opacity: 1; transform: none; visibility: visible; }
  .nav-open .site-header { background: var(--night); }
  body.nav-open { overflow: hidden; }
}

/* — Hero — */
.hero {
  min-height: min(100svh, 980px);
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 72px;
  overflow: hidden;
  isolation: isolate;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 60% 45%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 75% at 60% 45%, #000 30%, transparent 100%);
}
.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: -10%;
  top: 8%;
  width: min(60vw, 760px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(79, 109, 242, 0.22) 0%, transparent 64%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 48px; } }
.hero h1 {
  font-size: clamp(2.6rem, 6.1vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
@media (max-width: 359px) { .hero h1 { white-space: normal; } }
.hero h1 .light { display: block; color: var(--grey-400); }
.hero .lead { margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* Terminal card — signature device */
.terminal {
  position: relative;
  background: linear-gradient(180deg, rgba(26, 30, 40, 0.92), rgba(18, 21, 28, 0.92));
  border: 1px solid var(--night-700);
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 1.1vw, 0.875rem);
  line-height: 1.85;
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--night-700);
  color: var(--grey-400);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}
.terminal-bar i { width: 10px; height: 10px; border-radius: 30%; display: block; background: var(--night-600); }
.terminal-bar i:nth-child(1) { background: var(--signal); }
.terminal-bar i:nth-child(2) { background: var(--blue); }
.terminal-bar i:nth-child(3) { background: var(--live); }
.terminal-bar span { margin-left: 10px; }
.terminal-body { padding: 20px 22px 24px; min-height: 17.5em; overflow-x: auto; }
.t-line { display: flex; gap: 1ch; white-space: pre; }
.t-line + .t-line { margin-top: 0.15em; }
.t-line .k { color: var(--grey-300); flex: 1; }
.t-line .s { display: inline-flex; align-items: center; gap: 0.6ch; color: var(--live); }
.t-line .s::before { content: ''; width: 0.55em; height: 0.55em; border-radius: 30%; background: currentColor; }
.t-cmd { color: var(--paper); }
.t-cmd .p { color: var(--blue-light); }
.t-cmd .f { color: var(--signal); }
.t-final { color: var(--paper); font-weight: 600; }
.t-final .s { color: var(--blue-light); }
.t-final .s::before { background: var(--blue); }
.t-muted { color: var(--grey-500); }
.caret { display: inline-block; width: 0.6em; height: 1.15em; vertical-align: -0.2em; background: var(--blue); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* — Ticker — */
.ticker {
  border-block: 1px solid var(--night-700);
  background: var(--night);
  overflow: hidden;
  padding: 22px 0;
}
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker ul { display: flex; gap: 0; margin: 0; padding: 0; list-style: none; }
.ticker li {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-400);
  white-space: nowrap;
}
.ticker li::after { content: ''; width: 6px; height: 6px; border-radius: 30%; background: var(--night-600); }
.ticker li:nth-child(3n + 1)::after { background: var(--blue); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* — Services (bento) — */
.services-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) {
  .services-grid { grid-template-columns: repeat(6, 1fr); }
  .svc-ai { grid-column: span 4; }
  .svc-enterprise { grid-column: span 2; grid-row: span 2; }
  .svc-comm, .svc-chain { grid-column: span 2; }
  .svc-cloud { grid-column: span 6; }
}
.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.svc:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -30px rgba(11, 13, 18, 0.35); border-color: var(--grey-200); }
.svc-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--blue-mist);
  color: var(--blue-deep);
  margin-bottom: 28px;
}
.svc-icon .icon { width: 26px; height: 26px; }
.svc .tag { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.svc h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); letter-spacing: -0.03em; font-weight: 800; }
.svc p { margin: 12px 0 0; color: var(--text-2); max-width: 46ch; }
.svc ul { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svc .stretch { text-decoration: none; }
.svc .stretch::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.svc li {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-2);
}
.svc-enterprise ul { flex-direction: column; gap: 0; margin-top: auto; padding-top: 32px; }
.svc-enterprise li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 20px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: none;
  font-size: 1rem;
}
.svc-enterprise li a { display: flex; align-items: baseline; gap: 14px; width: 100%; text-decoration: none; }
.svc-enterprise li a:hover span { color: var(--text); }
.svc-enterprise li b { font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; color: var(--blue-deep); min-width: 4.2ch; }
.svc-enterprise li span { color: var(--text-2); font-weight: 500; }
.svc-ai { background: var(--night); color: var(--paper); border-color: var(--night); --text-2: var(--grey-300); --text-3: var(--grey-400); --line: var(--night-700); }
.svc-ai .svc-icon { background: rgba(79, 109, 242, 0.16); color: var(--blue-light); }
.svc-ai li { background: var(--night-900); }
.svc-ai:hover { border-color: var(--night-700); }
.svc-ai-visual { position: absolute; right: -40px; top: -40px; width: 300px; opacity: 0.9; pointer-events: none; }
@media (max-width: 759px) { .svc-ai-visual { width: 220px; right: -70px; top: -60px; opacity: 0.5; } }
.svc-cloud { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) {
  .svc-cloud { grid-template-columns: auto 1fr auto; gap: 40px; }
  .svc-cloud .svc-icon { margin: 0; }
  .svc-cloud ul { margin: 0; justify-content: flex-end; }
}

/* — Platform / Everything connects — */
.platform-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1000px) { .platform-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.orbit { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; margin: 0 auto; }
.orbit svg.rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 24%;
  background: var(--night-800);
  border: 1px solid var(--night-600);
  display: grid;
  place-items: center;
  box-shadow: 0 0 60px rgba(79, 109, 242, 0.35);
}
.orbit-core img { width: 52%; }
.node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 9px;
  border-radius: 999px;
  background: var(--night-900);
  border: 1px solid var(--night-700);
  font-size: clamp(0.6875rem, 1.6vw, 0.875rem);
  font-weight: 700;
  white-space: nowrap;
  color: var(--paper);
  transition: border-color 0.4s, box-shadow 0.4s;
}
.node .icon { width: 1.25em; height: 1.25em; color: var(--blue-light); }
.node.is-lit { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(79, 109, 242, 0.15); }
.flows { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 0; }
.flows li { display: grid; grid-template-columns: 12.5rem 1fr; gap: 6px 20px; padding: 22px 0; border-top: 1px solid var(--night-700); }
.flows li:last-child { border-bottom: 1px solid var(--night-700); }
.flows .pair {
  grid-row: span 2;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--blue-light);
  padding-top: 4px;
}
.flows li { position: relative; transition: background-color 0.4s var(--ease); }
.flows li::before { content: ''; position: absolute; left: -16px; top: 22px; bottom: 22px; width: 2px; border-radius: 2px; background: var(--blue); opacity: 0; transition: opacity 0.4s var(--ease); }
.flows li.is-active::before { opacity: 1; }
.flows li.is-active .pair { color: var(--white); }
.flows strong { font-weight: 700; color: var(--paper); }
.flows strong a { text-decoration: none; }
.flows strong a:hover { text-decoration: underline; text-underline-offset: 4px; }
.flows span { color: var(--grey-300); font-size: 0.975rem; }
@media (max-width: 560px) {
  .flows li { grid-template-columns: 1fr; }
  .flows .pair { grid-row: auto; padding: 0 0 4px; }
}

/* — Approach — */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative;
  padding: 32px 28px 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step-num { display: flex; align-items: center; justify-content: space-between; margin-bottom: 56px; font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; color: var(--text-3); }
.step-num .bar { display: flex; gap: 4px; }
.step-num .bar i { width: 7px; height: 7px; border-radius: 30%; background: var(--paper-200); }
.step-num .bar i.on { background: var(--blue); }
.step h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.step p { margin: 12px 0 0; color: var(--text-2); font-size: 1rem; }

/* — Why / principles — */
.why-grid { display: grid; gap: 64px; }
@media (min-width: 1000px) { .why-grid { grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: start; } }
.name-card {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius);
  background: var(--night-900);
  border: 1px solid var(--night-700);
  overflow: hidden;
}
.name-card .izgara {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--grid-dot) 0 1.4px, transparent 1.9px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(160deg, #000, transparent 70%);
  mask-image: linear-gradient(160deg, #000, transparent 70%);
}
.name-roots { position: relative; display: grid; gap: 4px; margin: 8px 0 28px; }
.root { display: flex; align-items: baseline; gap: 18px; font-size: clamp(2.6rem, 5.6vw, 4.25rem); line-height: 1.05; letter-spacing: -0.045em; }
.root b { font-weight: 800; }
.root .vis { font-weight: 300; color: var(--grey-400); }
.root small { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey-400); font-weight: 500; }
.root small em { font-style: normal; color: var(--blue-light); }
.name-card p { position: relative; margin: 0; color: var(--grey-300); }
.name-card .equals { position: relative; margin: 0 0 18px; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; color: var(--paper); }
.principles { display: grid; gap: 0; }
.principle { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.principle:last-child { border-bottom: 1px solid var(--line); }
.principle .icon { width: 28px; height: 28px; color: var(--accent-text); margin-top: 2px; }
.principle p { margin: 8px 0 0; color: var(--text-2); }
.industries { margin-top: clamp(64px, 8vw, 96px); padding-top: 40px; border-top: 1px solid var(--night-700); display: grid; gap: 20px; }
@media (min-width: 900px) { .industries { grid-template-columns: 220px 1fr; align-items: start; } }
.industries .eyebrow { margin: 6px 0 0; }
.industries ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.industries li { padding: 10px 16px; border: 1px solid var(--night-700); border-radius: 999px; font-weight: 600; font-size: 0.9375rem; color: var(--grey-300); }

/* — CTA band — */
.cta-band { background: var(--blue-deep); color: var(--white); overflow: hidden; }
.cta-band { position: relative; }
.cta-band .container { position: relative; display: grid; gap: 36px; justify-items: start; padding-block: clamp(64px, 9vw, 112px); }
.cta-band h2 { max-width: 16ch; }
.cta-band h2 .light { color: rgba(255, 255, 255, 0.7); }
.cta-band p { margin: 16px 0 0; color: rgba(255, 255, 255, 0.82); max-width: 48ch; }
.cta-ripple { position: absolute; right: max(-140px, calc((100vw - var(--container)) / 2 - 220px)); top: 50%; width: min(560px, 70vw); transform: translateY(-50%); opacity: 0.4; pointer-events: none; }
@media (max-width: 899px) { .cta-ripple { right: -38%; top: auto; bottom: -22%; transform: none; opacity: 0.18; } }
.cta-actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: var(--white); }
.cta-band .btn-ghost:hover { border-color: var(--white); }

/* — Contact — */
.contact-grid { display: grid; gap: 56px; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 80px; } }
.direct { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 12px; }
.direct a, .direct div {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--night-700);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color 0.25s, background-color 0.25s;
}
.direct a:hover { border-color: var(--night-600); background: var(--night-900); }
.direct .icon { color: var(--blue-light); }
.direct small { display: block; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey-400); }
.direct strong { font-weight: 700; font-size: 1.0625rem; }
.form {
  padding: clamp(24px, 4vw, 44px);
  background: var(--night-900);
  border: 1px solid var(--night-700);
  border-radius: var(--radius);
  display: grid;
  gap: 18px;
}
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--grey-300); }
.field label span { color: var(--grey-500); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  background: var(--night);
  border: 1px solid var(--night-700);
  border-radius: var(--radius-sm);
  color: var(--paper);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C93AB' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--grey-500); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(79, 109, 242, 0.18); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form-note { margin: 0; font-size: 0.8125rem; color: var(--grey-400); max-width: 40ch; }
.form-status { grid-column: 1 / -1; margin: 0; font-size: 0.9375rem; color: var(--live); min-height: 1.5em; }

/* — Footer — */
.site-footer { background: var(--night-900); border-top: 1px solid var(--night-700); padding: 72px 0 32px; color: var(--grey-300); }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 2fr 1fr 1fr; } .foot-svc { display: block; columns: 2; column-gap: 24px; } .foot-svc li { margin-bottom: 10px; break-inside: avoid; } }
.footer-brand img { width: 150px; }
.site-footer address { font-style: normal; }
.site-footer li { font-size: 0.9375rem; }
.footer-brand p { margin: 20px 0 0; max-width: 32ch; font-size: 0.9375rem; color: var(--grey-400); }
.footer-brand .slogan { max-width: none; white-space: nowrap; margin-top: 16px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey-300); }
.site-footer .foot-h { margin: 0 0 16px; font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey-500); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; font-size: 0.9375rem; transition: color 0.2s; }
.site-footer a:hover { color: var(--paper); }
.legal { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--night-700); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 0.8125rem; color: var(--grey-500); }

/* — Reveal on scroll (only when JS is running) — */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* — 404 — */
.page-404 { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 48px 16px; }
.page-404 .code { font-family: var(--font-mono); color: var(--grey-400); letter-spacing: 0.2em; }

@media (max-width: 480px) {
  .eyebrow { letter-spacing: 0.14em; }
  .step-num { margin-bottom: 32px; }
  .footer-brand .slogan { letter-spacing: 0.12em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; }
  .ticker-track ul[aria-hidden] { display: none; }
  .ticker ul { flex-wrap: wrap; justify-content: center; row-gap: 12px; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   Multi-page components
   ========================================================================== */

/* — Header tools, language switch, mega menu — */
.header-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
@media (min-width: 900px) { .header-tools { order: 3; margin-left: 0; } .nav { order: 2; margin-left: auto; } }
.lang-switch {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--night-700);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--grey-300);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.lang-switch:hover { border-color: var(--grey-500); color: var(--paper); }
.nav-item { display: flex; align-items: center; }
.menu-toggle {
  width: 28px; height: 28px; margin-left: -8px;
  display: grid; place-items: center;
  border: 0; border-radius: 8px; background: none; color: var(--grey-400); cursor: pointer;
}
.menu-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform 0.25s var(--ease); }
.has-menu.is-open .menu-toggle svg { transform: rotate(180deg); }
.mega {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  width: min(880px, calc(100vw - 2 * var(--gutter)));
  padding: 24px;
  background: var(--night-900);
  border: 1px solid var(--night-700);
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.75);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.mega-grid { columns: 3; column-gap: 20px; }
.mega-col { break-inside: avoid; margin-bottom: 18px; }
.mega-title { margin: 0 0 6px; padding: 0 10px; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey-500); }
.mega a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; text-decoration: none; font-size: 0.9375rem; font-weight: 600; color: var(--grey-300); }
.mega a .icon { width: 20px; height: 20px; color: var(--blue-light); }
.mega a:hover { background: var(--night-800); color: var(--paper); }
.mega .mega-all { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--night-700); border-radius: 0; color: var(--paper); }
.mega .mega-all .icon { width: 18px; height: 18px; }
@media (min-width: 900px) {
  .has-menu:hover .mega, .has-menu:focus-within .mega, .has-menu.is-open .mega { opacity: 1; visibility: visible; transform: none; }
}
@media (max-width: 899px) {
  .nav-item { flex-wrap: wrap; }
  .menu-toggle { width: 44px; height: 44px; margin: 0; }
  .mega { position: static; width: 100%; padding: 4px 0 12px 8px; background: none; border: 0; box-shadow: none; display: none; opacity: 1; visibility: visible; transform: none; }
  .mega::before { display: none; }
  .has-menu.is-open .mega { display: block; }
  .mega-grid { columns: 1; }
}

/* — Page hero & breadcrumbs — */
.page-hero { padding: calc(var(--header-h) + 36px) 0 clamp(56px, 8vw, 104px); overflow: hidden; isolation: isolate; }
.page-hero .hero-dots {
  position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(circle, rgba(245, 243, 238, 0.075) 0 1.3px, transparent 1.8px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 85% 20%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 90% at 85% 20%, #000 15%, transparent 75%);
}
.page-hero::after {
  content: ""; position: absolute; z-index: -1; right: -12%; top: -30%;
  width: min(60vw, 720px); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(79, 109, 242, 0.2) 0%, transparent 64%);
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.5rem); line-height: 1.02; letter-spacing: -0.045em; max-width: 17ch; }
.page-hero h1 .light { color: var(--grey-400); }
.page-hero .hero-actions { margin-top: 36px; }
.page-hero .btn-ghost .icon { width: 18px; height: 18px; }
.page-hero-grid { display: grid; gap: 48px; align-items: end; }
@media (min-width: 1000px) { .page-hero-grid.has-aside { grid-template-columns: 1.3fr 0.7fr; gap: 64px; } }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 clamp(32px, 5vw, 56px); padding: 0; font-size: 0.8125rem; color: var(--grey-400); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--night-600); }
.crumbs a { color: var(--grey-300); text-decoration: none; }
.crumbs a:hover { color: var(--paper); }

.glance { padding: 28px; background: rgba(26, 30, 40, 0.85); border: 1px solid var(--night-700); border-radius: var(--radius); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.glance-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.glance-head .eyebrow { margin: 0; }
.glance ul { list-style: none; margin: 0; padding: 0; }
.glance li { display: flex; gap: 12px; padding: 13px 0; border-top: 1px solid var(--night-700); font-size: 0.9375rem; font-weight: 600; color: var(--grey-300); line-height: 1.45; }
.glance li .icon { width: 20px; height: 20px; color: var(--live); flex: none; margin-top: 1px; }
.svc-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--blue-mist); color: var(--blue-deep); flex: none; }
.svc-icon .icon { width: 24px; height: 24px; }
.theme-night .svc-icon, .glance .svc-icon { background: rgba(79, 109, 242, 0.16); color: var(--blue-light); }

/* — Generic layout helpers — */
.section-tight { padding: clamp(56px, 7vw, 88px) 0; }
.pt0 { padding-top: 0; }
.pt-sm { padding-top: 24px; }
.container.narrow { max-width: calc(860px + 2 * var(--gutter)); }
.h2-sm { font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1.1; margin: 0 0 28px; max-width: none; }
.h2-xs { font-size: 1.125rem; letter-spacing: -0.015em; margin: 0 0 18px; }
.mini { margin: 0 0 8px; font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); }
.big { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.55; color: var(--text); margin: 0; }
.mono { font-family: var(--font-mono); }
.section-link { margin: 48px 0 0; text-align: center; }
.section-link.left { text-align: left; margin-top: 32px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--accent-text); }
.text-link .icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }
.two-col { display: grid; gap: 48px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 72px; } }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--text-2); }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks .icon { width: 22px; height: 22px; color: var(--accent-text); flex: none; margin-top: 2px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { list-style: none; }
.tags > li:not(:has(a)), .tags a { display: inline-block; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.875rem; font-weight: 600; color: var(--text-2); text-decoration: none; }
.tags a:hover { border-color: var(--accent-text); color: var(--text); }

/* — Service page — */
.feature-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 30px 28px 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.feature-num { display: block; margin-bottom: 36px; font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; color: var(--blue-deep); }
.feature h3 { font-size: 1.25rem; }
.feature p { margin: 10px 0 0; color: var(--text-2); font-size: 1rem; }
.note { display: flex; gap: 14px; margin: 24px 0 0; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--blue-mist); color: #27306B; font-size: 0.9375rem; }
.note .icon { color: var(--blue-deep); }
.uses { display: grid; gap: 12px; }
.use { padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.use h3 { font-size: 1.0625rem; }
.use p { margin: 6px 0 0; color: var(--text-2); font-size: 0.975rem; }
.integ-grid { display: grid; gap: 12px; }
@media (min-width: 900px) { .integ-grid { grid-template-columns: repeat(3, 1fr); } }
.integ { position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 24px; border: 1px solid var(--night-700); border-radius: var(--radius); background: var(--night-900); text-decoration: none; transition: border-color 0.25s, transform 0.3s var(--ease); }
.integ:hover { border-color: var(--night-600); transform: translateY(-2px); }
.integ strong { display: block; font-size: 1.0625rem; color: var(--paper); }
.integ span span { display: block; margin-top: 4px; color: var(--grey-300); font-size: 0.9375rem; line-height: 1.5; }
.integ > .icon { position: absolute; right: 18px; top: 18px; width: 18px; height: 18px; color: var(--grey-500); }
.tech-row { margin-top: 64px; display: grid; gap: 12px; }
@media (min-width: 900px) { .tech-row { grid-template-columns: 240px 1fr; align-items: start; } .tech-row .h2-xs { margin-top: 6px; } }
.process-strip { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--night-700); display: grid; gap: 20px; align-items: center; }
@media (min-width: 1000px) { .process-strip { grid-template-columns: auto 1fr auto; gap: 40px; } .process-strip .eyebrow { margin: 0; } }
.process-strip ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.process-strip li { display: flex; align-items: baseline; gap: 10px; color: var(--paper); }
.process-strip li .mono { font-size: 0.75rem; color: var(--blue-light); }
.process-strip .text-link { color: var(--blue-light); }

/* — Cards (services, posts) — */
.card-grid, .post-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .card-grid, .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .card-grid, .post-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-card, .post-card {
  display: flex; flex-direction: column; gap: 10px; padding: 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.svc-card:hover, .post-card:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -30px rgba(11, 13, 18, 0.35); border-color: var(--grey-200); }
.svc-card .svc-icon { margin-bottom: 14px; }
.svc-card h3, .post-card h3 { font-size: 1.25rem; }
.svc-card p, .post-card p { margin: 0; color: var(--text-2); font-size: 0.975rem; }
.more { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9375rem; color: var(--accent-text); }
.more .icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.svc-card:hover .more .icon, .post-card:hover .more .icon { transform: translateX(3px); }
.post-meta { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--text-3); }
.post-card h3 { line-height: 1.3; }
.svc-group { margin-bottom: clamp(56px, 7vw, 88px); }
.svc-group:last-child { margin-bottom: 0; }
.svc-group-head { display: grid; gap: 4px 32px; margin-bottom: 24px; }
@media (min-width: 900px) { .svc-group-head { grid-template-columns: auto 1fr; align-items: baseline; } }
.svc-group-head .h2-sm { margin: 0; }
.svc-group-head p { margin: 0; color: var(--text-3); }
.svc-comm .links a { text-decoration: none; }
.svc-comm .links li:hover { border-color: var(--blue-deep); }

/* — FAQ accordion — */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.125rem; line-height: 1.4; letter-spacing: -0.015em; }
.faq-item summary:hover h3 { color: var(--accent-text); }
.faq-icon { position: relative; flex: none; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 30%; color: var(--text-3); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.75px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.3s var(--ease); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a p { margin: 0 0 24px; max-width: 70ch; color: var(--text-2); }
.faq-group { margin-bottom: 56px; }

/* — Industries — */
.jump { list-style: none; margin: 0 0 48px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 0.9375rem; font-weight: 600; text-decoration: none; color: var(--text-2); }
.jump a:hover { color: var(--text); border-color: var(--grey-300); }
.industry-list { display: grid; gap: 16px; }
.industry { scroll-margin-top: calc(var(--header-h) + 24px); padding: clamp(24px, 3.5vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 28px; }
@media (min-width: 1000px) { .industry { grid-template-columns: 280px 1fr; } .industry .tags { grid-column: 2; } }
.industry-head { display: flex; gap: 16px; align-items: center; }
.industry-head h2 { font-size: 1.5rem; letter-spacing: -0.03em; max-width: none; }
.industry-body { display: grid; gap: 24px; }
@media (min-width: 700px) { .industry-body { grid-template-columns: 1fr 1fr; } }
.industry-body p { margin: 0; color: var(--text-2); }
.industry-body .mini { margin-bottom: 8px; }

/* — Approach — */
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.stage { display: grid; gap: 20px 48px; padding: 40px 0; border-top: 1px solid var(--line); }
.stage:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 1000px) { .stage { grid-template-columns: 120px 1fr 1fr; } }
.stage-num { font-family: var(--font-mono); font-size: 2.5rem; font-weight: 500; letter-spacing: -0.04em; color: var(--blue-deep); line-height: 1; }
.stage h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.stage p { margin: 12px 0 0; color: var(--text-2); }
.stage .checks li { padding: 12px 0; }
.models { display: grid; gap: 16px; }
@media (min-width: 900px) { .models { grid-template-columns: repeat(3, 1fr); } }
.model { padding: 28px; border: 1px solid var(--night-700); border-radius: var(--radius); background: var(--night-900); }
.model p { margin: 10px 0 0; color: var(--grey-300); }

/* — About — */
.mv { display: grid; gap: 40px; align-content: center; }
.mv .eyebrow { margin-bottom: 12px; }
.facts { margin: 0; display: grid; border-top: 1px solid var(--line); }
.facts div { display: grid; gap: 4px 32px; padding: 18px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .facts div { grid-template-columns: 260px 1fr; } }
.facts dt { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); padding-top: 3px; }
.facts dd { margin: 0; font-weight: 600; }

/* — Contact — */
.direct { margin-top: 0; }
.next-steps { margin-top: 48px; }
.next-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.next-steps li { display: flex; gap: 16px; }
.next-steps li .mono { font-size: 0.8125rem; color: var(--blue-light); padding-top: 3px; }
.next-steps p { margin: 0; color: var(--grey-300); }
.next-steps strong { color: var(--paper); }
.form-note a { color: var(--grey-300); }

/* — Prose & articles — */
.prose { color: var(--text-2); }
.prose h2 { margin: 56px 0 16px; font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.2; color: var(--text); max-width: none; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 18px; max-width: 72ch; }
.article-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.06; max-width: 22ch; }
.article-hero .post-meta { margin: 28px 0 0; color: var(--grey-400); }
.summary-box { padding: clamp(24px, 4vw, 36px); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); }
.summary-box .big { margin-bottom: 28px; }
.summary-box .checks li { padding: 12px 0; }
.toc { margin: 32px 0 56px; padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.toc a { color: var(--text); text-decoration: none; font-weight: 600; }
.toc a:hover { color: var(--accent-text); }
.table-wrap { overflow-x: auto; margin: 8px 0 24px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 560px; }
.prose th, .prose td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose thead th { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); background: var(--surface-2); }
.prose tbody th { color: var(--text); font-weight: 700; }
.prose tr:last-child th, .prose tr:last-child td { border-bottom: 0; }
.prose .faq { margin-top: 8px; }

/* — 404 — */
.page-404 h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1; margin: 16px 0 0; }

/* ==========================================================================
   Design v3 — 3D dots, stack, flows, motion
   ========================================================================== */

/* — WebGL dot canvases — */
.dots { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s var(--ease); pointer-events: none; }
.dots.is-ready { opacity: 1; }

/* — Home hero (3D) — */
.hero-3d { min-height: max(680px, 100svh); padding: calc(var(--header-h) + 40px) 0 120px; }
.hero-3d::after { right: -18%; top: 0; width: min(80vw, 980px); opacity: 0.9; }
.hero-3d .hero-dots, .page-hero .hero-dots {
  position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(circle, rgba(245, 243, 238, 0.07) 0 1.3px, transparent 1.8px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 70% 40%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 80% at 70% 40%, #000 15%, transparent 75%);
}
.hero-stage { z-index: -1; }
.hero-3d .hero-grid { grid-template-columns: 1fr; }
.hero-copy { max-width: 660px; position: relative; }
.hero-3d h1 { white-space: normal; font-size: clamp(2.8rem, 6.4vw, 5.8rem); }
.hero-3d .lead { max-width: 52ch; }
@media (max-width: 999px) {
  .hero-3d { min-height: 0; padding-top: calc(var(--header-h) + min(46vh, 420px)); padding-bottom: 110px; align-items: flex-start; }
  .hero-3d .hero-stage { inset: auto; left: 0; top: calc(var(--header-h) - 10px); width: 100%; height: min(48vh, 440px); }
}
.hero-foot { position: absolute; left: 0; right: 0; bottom: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.scene-label { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey-400); }
.scene-label a { color: var(--paper); text-decoration: none; border-bottom: 1px solid rgba(142, 162, 255, 0.5); padding-bottom: 2px; transition: opacity 0.22s; }
.scene-label [data-name], .scene-label [data-num] { transition: opacity 0.22s; }
.scene-label:not(.is-in) [data-name], .scene-label:not(.is-in) [data-num] { opacity: 0; }
.pulse { width: 8px; height: 8px; border-radius: 30%; background: var(--live); box-shadow: 0 0 0 0 rgba(46, 194, 138, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(46, 194, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 194, 138, 0); } }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; font-size: 0.6875rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--grey-400); text-decoration: none; }
.scroll-cue span { position: relative; width: 1px; height: 36px; background: var(--night-600); overflow: hidden; }
.scroll-cue span::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--blue-light); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }
@media (max-width: 600px) { .scroll-cue { display: none; } }

/* — Split headline reveal — */
.js [data-split].is-split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.js [data-split].is-split .w > span { display: inline-block; transform: translateY(108%); transition: transform 1s var(--ease); transition-delay: calc(var(--d) * 55ms + 80ms); }
.js [data-split].is-split-in .w > span { transform: none; }

/* — Page heroes with a dot formation — */
.page-hero { min-height: 520px; }
.hero-art-wrap { position: absolute; z-index: -1; top: 0; bottom: 0; right: 0; width: min(56%, 820px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); }
.article-hero .hero-art-wrap { width: min(46%, 640px); opacity: 0.75; }
@media (max-width: 999px) { .hero-art-wrap { width: 100%; opacity: 0.38; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); mask-image: linear-gradient(180deg, #000 30%, transparent); } }
.hero-visual { position: relative; padding-top: 300px; }
.hero-orb { inset: auto; left: -12%; top: -90px; width: 124%; height: 460px; }
@media (max-width: 999px) { .hero-visual { padding-top: 260px; } .hero-orb { height: 340px; top: -30px; } }
.hero-visual .glance { position: relative; z-index: 1; }

/* — Dither dividers (dots dissolving between sections) — */
.dither-top { position: relative; }
.dither-top::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 48px; z-index: 1; pointer-events: none;
  background: var(--dither-color);
  -webkit-mask: url("../img/dither.svg") repeat-x top left / 24px 48px;
  mask: url("../img/dither.svg") repeat-x top left / 24px 48px;
}
.theme-paper.dither-top { --dither-color: var(--night); }
.theme-night.dither-top { --dither-color: var(--paper); }

/* — The stack (CSS 3D) — */
.stack-sec { overflow: hidden; }
.stack-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .stack-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.stack-3d { position: relative; height: 560px; display: grid; place-items: center; perspective: 1600px; }
.stack-scene { position: relative; width: 300px; height: 300px; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-42deg); margin-top: 120px; }
.layer { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer; transform-style: preserve-3d; transform: translateZ(calc(var(--i) * 46px)); transition: transform 0.7s var(--ease); }
.layer:hover { transform: translateZ(calc(var(--i) * 46px + 14px)); }
.layer.is-active { transform: translateZ(calc(var(--i) * 46px + 40px)); }
.layer-face {
  position: absolute; inset: 0; border-radius: 30px; padding: 22px;
  display: flex; flex-direction: column; justify-content: space-between; text-align: left;
  color: var(--paper); font: inherit;
  background:
    radial-gradient(circle, rgba(245, 243, 238, 0.12) 0 1px, transparent 1.6px) 0 0 / 14px 14px,
    linear-gradient(135deg, rgba(79, 109, 242, 0.22), rgba(18, 21, 28, 0.92) 70%);
  border: 1px solid rgba(142, 162, 255, 0.28);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7);
  transition: background 0.6s var(--ease), border-color 0.6s, box-shadow 0.6s, opacity 0.6s;
}
.stack-scene.has-active .layer:not(.is-active) .layer-face { opacity: 0.6; }
.layer.is-active .layer-face {
  border-color: var(--blue);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.16) 0 1px, transparent 1.6px) 0 0 / 14px 14px,
    linear-gradient(135deg, rgba(79, 109, 242, 0.75), rgba(26, 30, 40, 0.95) 75%);
  box-shadow: 0 0 0 1px var(--blue), 0 50px 90px -30px rgba(79, 109, 242, 0.6);
}
.layer-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: rgba(11, 13, 18, 0.55); color: var(--blue-light); }
.layer.is-active .layer-icon { background: var(--paper); color: var(--blue-deep); }
.layer-name { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; }
.layer-num { position: absolute; right: 22px; top: 22px; font-size: 0.75rem; letter-spacing: 0.12em; color: var(--grey-400); }
.layer-face::after { content: ""; position: absolute; right: 24px; bottom: 24px; width: 8px; height: 8px; border-radius: 30%; background: var(--live); box-shadow: 0 0 12px var(--live); animation: blink 2.4s steps(1) infinite; animation-delay: calc(var(--i) * 0.4s); }
.stack-hint { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); margin: 0; font-size: 0.6875rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--grey-500); }
@media (max-width: 999px) {
  .stack-3d { height: 400px; }
  .stack-scene { transform: rotateX(58deg) rotateZ(-42deg) scale(0.7); margin-top: 70px; }
}
@media (max-width: 480px) { .stack-3d { height: 340px; } .stack-scene { transform: rotateX(58deg) rotateZ(-42deg) scale(0.58); margin-top: 40px; } }
.stack-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 28px; }
.stack-tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--night-700); background: transparent; color: var(--grey-300);
  font-weight: 700; font-size: 0.875rem; cursor: pointer; transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.stack-tab .mono { font-size: 0.6875rem; color: var(--grey-500); }
.stack-tab:hover { border-color: var(--night-600); color: var(--paper); }
.stack-tab[aria-selected="true"] { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--white); }
.stack-tab[aria-selected="true"] .mono { color: rgba(255, 255, 255, 0.7); }
.stack-panel h3 { font-size: 1.6rem; letter-spacing: -0.03em; }
.stack-panel > p { margin: 8px 0 0; color: var(--grey-300); }
.stack-links { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 560px) { .stack-links { grid-template-columns: 1fr 1fr; } }
.stack-links a { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--night-700); border-radius: var(--radius-sm); text-decoration: none; font-weight: 700; transition: border-color 0.25s, background-color 0.25s; }
.stack-links a:hover { border-color: var(--blue); background: rgba(79, 109, 242, 0.08); }
.stack-links .icon { width: 20px; height: 20px; color: var(--blue-light); }
.stack-links .icon:last-child { margin-left: auto; width: 16px; height: 16px; color: var(--grey-500); }
.mini-term { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--night-700); border-radius: var(--radius-sm); background: var(--night-900); font-size: 0.8125rem; line-height: 1.9; }
.stack-panel:not([hidden]) .mini-term .t-line { animation: termIn 0.45s var(--ease) both; animation-delay: calc(var(--k, 0) * 160ms + 120ms); }
@keyframes termIn { from { opacity: 0; transform: translateX(-6px); } }

/* — Service cards (4 columns on wide screens) — */
@media (min-width: 1180px) { .cards-4 { grid-template-columns: repeat(4, 1fr); } }
.cards-4 .svc-card { padding: 24px; }
.cards-4 .svc-card h3 { font-size: 1.125rem; }
.cards-4 .svc-card p { font-size: 0.9375rem; }

/* — Stats — */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 56px; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 28px 0 0; display: grid; gap: 6px; }
.stat-num { font-size: clamp(3rem, 6vw, 5rem); font-weight: 800; letter-spacing: -0.06em; line-height: 1; color: var(--text); }
.stat-label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); }

/* — Spotlight (follows the pointer) — */
.spot { position: relative; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(79, 109, 242, 0.13), transparent 62%); }
.theme-night .spot::before, .integ.spot::before { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(142, 162, 255, 0.16), transparent 62%); }
.spot:hover::before { opacity: 1; }

/* — Flow diagram — */
.flow { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 20px; --dur: 7.5s; }
.flow-track { position: absolute; left: calc(50% / var(--n)); right: calc(50% / var(--n)); top: 31px; height: 2px; list-style: none;
  background: repeating-linear-gradient(90deg, var(--night-600) 0 10px, transparent 10px 18px); }
.flow-track i { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 30%; background: var(--blue-light);
  box-shadow: 0 0 0 6px rgba(79, 109, 242, 0.2), 0 0 28px rgba(79, 109, 242, 0.9); animation: flowPacket var(--dur) linear infinite; }
@keyframes flowPacket { 0% { left: 0; opacity: 0; } 3% { opacity: 1; } 94% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.flow-step { position: relative; text-align: center; padding: 0 4px; }
.flow-node { position: relative; z-index: 1; width: 64px; height: 64px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 20px;
  background: var(--night-900); border: 1px solid var(--night-600);
  animation: flowNode var(--dur) infinite; animation-delay: calc(var(--i) / (var(--n) - 1) * var(--dur) * 0.97); }
.flow-node b { font-size: 0.8125rem; color: var(--blue-light); font-weight: 600; }
@keyframes flowNode {
  0% { border-color: var(--blue); background: var(--night-800); box-shadow: 0 0 0 6px rgba(79, 109, 242, 0.18), 0 0 36px rgba(79, 109, 242, 0.45); }
  14%, 100% { border-color: var(--night-600); background: var(--night-900); box-shadow: none; }
}
.flow-step h3 { font-size: 1.125rem; }
.flow-step p { margin: 8px 0 0; color: var(--grey-300); font-size: 0.9375rem; line-height: 1.55; }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; gap: 26px; }
  .flow-track { left: 31px; right: auto; top: 32px; bottom: 32px; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--night-600) 0 10px, transparent 10px 18px); }
  .flow-track i { left: 50%; top: 0; animation-name: flowPacketV; }
  @keyframes flowPacketV { 0% { top: 0; opacity: 0; } 3% { opacity: 1; } 94% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
  .flow-step { display: grid; grid-template-columns: 64px 1fr; gap: 2px 18px; text-align: left; padding: 0; }
  .flow-node { grid-row: span 2; margin: 0; }
  .flow-step h3 { align-self: end; }
}

/* — Outcomes — */
.outcomes { display: grid; gap: 16px; }
@media (min-width: 700px) { .outcomes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .outcomes { grid-template-columns: repeat(4, 1fr); } }
.outcome { padding: 28px 26px 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.outcome-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--blue-deep); color: var(--white); margin-bottom: 26px; }
.outcome-mark .icon { width: 22px; height: 22px; stroke-width: 2.2; }
.outcome h3 { font-size: 1.1875rem; }
.outcome p { margin: 8px 0 0; color: var(--text-2); font-size: 0.975rem; }

/* — Icon line drawing on reveal — */
.js [data-reveal] .feature-num ~ .icon,
.js .outcome[data-reveal] .icon, .js .principles[data-reveal] .icon, .js .integ-grid[data-reveal] .icon { stroke-dasharray: 160; stroke-dashoffset: 160; transition: stroke-dashoffset 1.8s var(--ease) 0.25s; }
.js .outcome[data-reveal].is-in .icon, .js .principles[data-reveal].is-in .icon, .js .integ-grid[data-reveal].is-in .icon { stroke-dashoffset: 0; }

/* — Approach progress line (scroll-driven) — */
.steps-track { position: relative; padding-top: 28px; }
.steps-track::before, .steps-track::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; border-radius: 2px; }
.steps-track::before { right: 0; background: var(--line); }
.steps-track::after { width: calc(var(--p, 0) * 100%); background: var(--blue); box-shadow: 0 0 12px rgba(79, 109, 242, 0.6); transition: width 0.15s linear; }

/* — Industries with icons — */
.industries li { padding: 0; border: 0; }
.industries li a { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border: 1px solid var(--night-700); border-radius: 999px; font-weight: 600; font-size: 0.9375rem; color: var(--grey-300); text-decoration: none; transition: border-color 0.25s, color 0.25s; }
.industries li a:hover { border-color: var(--blue); color: var(--paper); }
.industries li .icon { width: 18px; height: 18px; color: var(--blue-light); }

/* — Dot cursor — */
.cursor-dot { position: fixed; left: 0; top: 0; z-index: 200; width: 10px; height: 10px; border-radius: 30%; background: var(--blue); pointer-events: none;
  transform: translate3d(-100px, -100px, 0); opacity: 0; transition: width 0.3s var(--ease), height 0.3s var(--ease), background-color 0.3s, border-color 0.3s, opacity 0.3s, margin 0.3s var(--ease);
  margin: -5px 0 0 -5px; border: 1.5px solid transparent; }
.cursor-dot.is-on { opacity: 1; }
.cursor-dot.is-link { width: 40px; height: 40px; margin: -20px 0 0 -20px; background: rgba(79, 109, 242, 0.1); border-color: var(--blue); }
@media (pointer: coarse) { .cursor-dot { display: none; } }

/* — Magnetic buttons — */
.magnet { transition: transform 0.35s var(--ease), background-color 0.25s, border-color 0.25s; }

@media (prefers-reduced-motion: reduce) {
  .flow-track i, .layer-face::after, .pulse, .scroll-cue span::after { animation: none !important; display: none; }
  .flow-node { animation: none !important; }
  .js [data-split].is-split .w > span { transform: none; }
  .cursor-dot { display: none; }
}
