/* ============================================================
   Bodalong — Performance Advertising
   Shared stylesheet
   ============================================================ */

:root {
  --bg: #04060d;
  --bg-2: #060a15;
  --panel: #0a0f1e;
  --panel-2: #0c1226;
  --line: rgba(148, 163, 255, 0.10);
  --line-soft: rgba(148, 163, 255, 0.06);
  --text: #eef1fb;
  --muted: #98a0bd;
  --faint: #6b7394;
  --cyan: #3ee2ff;
  --violet: #8b5cf6;
  --pink: #f472b6;
  --grad: linear-gradient(92deg, #3ee2ff 0%, #8b5cf6 52%, #f472b6 100%);
  --grad-soft: linear-gradient(92deg, rgba(62, 226, 255, 0.16), rgba(139, 92, 246, 0.16), rgba(244, 114, 182, 0.16));
  --font-display: "Space Grotesk", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --container: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(139, 92, 246, 0.45); color: #fff; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---------- backdrop grid ---------- */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 500px at 75% -8%, rgba(139, 92, 246, 0.10), transparent 60%),
    radial-gradient(900px 480px at 12% 4%, rgba(62, 226, 255, 0.07), transparent 55%),
    var(--bg);
}
.grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 255, 0.045) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* ---------- typography helpers ---------- */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--grad);
}
.eyebrow.centered::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--grad);
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 15px 30px;
  cursor: pointer;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.btn-primary {
  background: var(--grad);
  color: #050810;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(139, 92, 246, 0.35); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(238, 241, 251, 0.18);
  clip-path: none;
}
.btn-ghost:hover { border-color: rgba(62, 226, 255, 0.55); color: var(--cyan); }
.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(4, 6, 13, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(4, 6, 13, 0.9); }
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  background: var(--grad);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: #050810;
  letter-spacing: 0.02em;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--grad);
}
.header-cta { padding: 12px 24px; font-size: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  width: 44px; height: 44px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); transition: 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 74px; left: 0; right: 0;
  z-index: 99;
  background: rgba(4, 6, 13, 0.97);
  border-bottom: 1px solid var(--line);
  padding: 20px 28px 28px;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a.active { color: var(--cyan); }

/* ---------- hero ---------- */
.hero { padding: 190px 0 90px; position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow { margin-bottom: 30px; }
.hero h1 { font-size: clamp(42px, 5.1vw, 70px); margin-bottom: 28px; }
.hero-sub { color: var(--muted); font-size: 17.5px; max-width: 520px; margin-bottom: 40px; }
.hero-ctas { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 64px; }
.hero-stats { display: flex; gap: 56px; flex-wrap: wrap; }
.hstat-value {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hstat-value em { font-style: normal; color: var(--cyan); }
.hstat-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 6px;
}

/* live dashboard card */
.dash-wrap { position: relative; }
.dash-orbit {
  position: absolute;
  top: -46px; right: -30px;
  width: 190px; height: 190px;
  border: 1px dashed rgba(62, 226, 255, 0.25);
  border-radius: 50%;
  animation: spin 26s linear infinite;
  pointer-events: none;
}
.dash-orbit::after {
  content: "";
  position: absolute;
  top: 50%; left: -4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}
@keyframes spin { to { transform: rotate(360deg); } }

.dash {
  position: relative;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  padding: 30px 32px 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}
.dash-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}
.dash-live {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dash-live i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(62, 226, 255, 0.5); }
  50% { box-shadow: 0 0 0 7px rgba(62, 226, 255, 0); }
}
.dash-row { margin-bottom: 20px; }
.dash-row-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.dash-row-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--muted); }
.dash-row-value { font-family: var(--font-display); font-size: 21px; font-weight: 700; }
.dash-bar { height: 4px; background: rgba(148, 163, 255, 0.10); overflow: hidden; }
.dash-bar i { display: block; height: 100%; background: var(--grad); width: 0; transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1); }
.dash-chart {
  margin-top: 26px;
  display: flex;
  align-items: flex-end;
  gap: 9px;
  height: 110px;
}
.dash-chart i {
  flex: 1;
  background: linear-gradient(180deg, rgba(62, 226, 255, 0.85), rgba(139, 92, 246, 0.45));
  min-height: 12%;
  transform-origin: bottom;
  animation: grow 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.dash-chart-cap {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: center;
}

/* ---------- sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-tight { padding: 84px 0; }
.section-head { margin-bottom: 64px; }
.section-head.center { text-align: center; }
.section-head .eyebrow { margin-bottom: 22px; }
.section-title { font-size: clamp(34px, 4.2vw, 56px); max-width: 760px; }
.section-head.center .section-title { margin: 0 auto; }
.section-sub { color: var(--muted); font-size: 17px; max-width: 620px; margin-top: 20px; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}
.section-link:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- service rows (home + services page) ---------- */
.svc-list { border-top: 1px solid var(--line); }
.svc-row {
  display: grid;
  grid-template-columns: 110px 1fr 1.1fr auto;
  gap: 40px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background 0.3s ease;
}
.svc-row:hover { background: linear-gradient(90deg, rgba(62, 226, 255, 0.03), transparent 60%); }
.svc-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--faint);
  letter-spacing: 0.1em;
  padding-top: 8px;
}
.svc-num b {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
}
.svc-num span { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; }
.svc-main h3 { font-size: 27px; margin-bottom: 8px; }
.svc-tagline { color: var(--cyan); font-size: 14.5px; font-weight: 600; margin-bottom: 16px; }
.svc-desc { color: var(--muted); font-size: 15.5px; max-width: 460px; }
.svc-points li {
  color: var(--muted);
  font-size: 14.5px;
  padding: 7px 0 7px 22px;
  position: relative;
  border-bottom: 1px dashed var(--line-soft);
}
.svc-points li:last-child { border-bottom: none; }
.svc-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 9px; height: 9px;
  background: var(--grad);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.svc-go {
  align-self: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s ease;
}
.svc-go:hover { color: var(--cyan); }

/* services page detail blocks */
.svc-detail { border-top: 1px solid var(--line); padding: 90px 0; }
.svc-detail-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
}
.svc-detail h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 14px 0 10px; }
.svc-detail .svc-tagline { font-size: 16px; }
.svc-detail .svc-desc { font-size: 16.5px; max-width: none; }
.cap-block h4, .why-block h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 38px 0 16px;
  font-weight: 500;
}
.cap-block ul li, .why-block ul li {
  padding: 9px 0 9px 24px;
  color: var(--muted);
  font-size: 15px;
  position: relative;
  border-bottom: 1px dashed var(--line-soft);
}
.cap-block ul li::before, .why-block ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 17px;
  width: 8px; height: 8px;
  background: var(--grad);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.why-block ul li::before { background: none; border: 1px solid var(--cyan); width: 7px; height: 7px; clip-path: none; transform: rotate(45deg); }
.workflow { margin-top: 10px; }
.workflow-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}
.workflow-step:last-child { border-bottom: none; }
.workflow-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.workflow-step h5 { font-family: var(--font-display); font-size: 17px; margin-bottom: 6px; }
.workflow-step p { color: var(--muted); font-size: 14.5px; }
.discuss-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--cyan);
  border-bottom: 1px solid rgba(62, 226, 255, 0.4);
  padding-bottom: 5px;
}
.discuss-link:hover { border-bottom-color: var(--cyan); }

/* ---------- platform (home + technology) ---------- */
.plat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.plat-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.plat-feat { background: var(--bg-2); padding: 30px 28px; transition: background 0.3s ease; }
.plat-feat:hover { background: var(--panel-2); }
.plat-feat h4 { font-size: 17px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.plat-feat h4::before {
  content: "";
  width: 10px; height: 10px;
  background: var(--grad);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  flex: none;
}
.plat-feat p { color: var(--muted); font-size: 14px; }

/* technology page modules */
.tmod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tmod { background: var(--bg-2); padding: 44px 40px; transition: background 0.3s ease; }
.tmod:hover { background: var(--panel-2); }
.tmod-idx {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  color: var(--cyan);
  margin-bottom: 18px;
  display: block;
}
.tmod h3 { font-size: 23px; margin-bottom: 14px; }
.tmod > p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.tmod ul li {
  color: var(--muted);
  font-size: 14px;
  padding: 7px 0 7px 20px;
  position: relative;
}
.tmod ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 15px;
  width: 8px; height: 8px;
  background: var(--grad);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.plat-mini-stats { display: flex; gap: 40px; margin-top: 36px; flex-wrap: wrap; }
.plat-mini-stats span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--muted); }
.plat-mini-stats b { color: var(--cyan); font-weight: 600; }

/* pipeline loop */
.pipe-loop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); counter-reset: pipe; }
.pipe-step { background: var(--bg-2); padding: 36px 30px; position: relative; }
.pipe-step::after {
  content: "→";
  position: absolute;
  top: 34px; right: -13px;
  z-index: 2;
  color: var(--cyan);
  font-size: 18px;
  background: var(--bg);
  padding: 0 4px;
}
.pipe-step:last-child::after { content: "↺"; }
.pipe-num { font-family: var(--font-display); font-size: 26px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pipe-step h4 { font-size: 18px; margin: 12px 0 10px; }
.pipe-step p { color: var(--muted); font-size: 14px; }
.pipe-note { color: var(--faint); font-size: 14px; max-width: 640px; margin: 34px auto 0; text-align: center; }

/* principles */
.prin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.prin { background: var(--bg-2); padding: 40px 34px; }
.prin h4 { font-size: 19px; margin-bottom: 12px; }
.prin h4::before { content: "— "; color: var(--cyan); }
.prin p { color: var(--muted); font-size: 14.5px; }

/* ---------- marquee ---------- */
.marquee-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px 0 30px;
  overflow: hidden;
  background: rgba(8, 11, 22, 0.55);
}
.marquee-cap {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 24px;
}
.marquee { display: flex; overflow: hidden; user-select: none; }
.marquee-track {
  display: flex;
  flex: none;
  align-items: center;
  gap: 64px;
  padding-right: 64px;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.marquee-track span {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: rgba(238, 241, 251, 0.34);
  white-space: nowrap;
  transition: color 0.25s ease;
}
.marquee-track span:hover { color: var(--text); }
.marquee-track i {
  width: 8px; height: 8px;
  background: var(--grad);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  flex: none;
}

/* ---------- stats band ---------- */
.stats-band { border: 1px solid var(--line); background: var(--bg-2); display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-cell { padding: 48px 40px; border-right: 1px solid var(--line); }
.stat-cell:last-child { border-right: none; }
.stat-value { font-family: var(--font-display); font-size: clamp(40px, 4.4vw, 58px); font-weight: 700; letter-spacing: -0.03em; }
.stat-value em { font-style: normal; color: var(--cyan); }
.stat-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); margin: 12px 0 10px; }
.stat-sub { color: var(--faint); font-size: 13.5px; }
.stats-note {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--faint);
  margin-top: 30px;
  letter-spacing: 0.06em;
}

/* ---------- testimonials ---------- */
.voices-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.voice {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  padding: 40px 38px;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.voice:hover { transform: translateY(-4px); border-color: rgba(62, 226, 255, 0.3); }
.voice::before {
  content: "“";
  position: absolute;
  top: 10px; left: 26px;
  font-family: var(--font-display);
  font-size: 84px;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.5;
}
.voice p { color: #c6cce4; font-size: 16px; position: relative; margin-top: 34px; }
.voice-meta { margin-top: 24px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }

/* ---------- case carousel ---------- */
.caro-outer { position: relative; }
.caro-hint { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); margin-bottom: 22px; }
.caro {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.5) rgba(148, 163, 255, 0.08);
}
.caro::-webkit-scrollbar { height: 6px; }
.caro::-webkit-scrollbar-track { background: rgba(148, 163, 255, 0.08); }
.caro::-webkit-scrollbar-thumb { background: var(--grad); }
.case-card {
  flex: 0 0 430px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--panel-2), var(--panel));
  padding: 38px 36px 34px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.case-card:hover { border-color: rgba(139, 92, 246, 0.45); transform: translateY(-4px); }
.case-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.case-cat { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cyan); }
.case-idx { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--faint); }
.case-card h3 { font-size: 22px; margin-bottom: 14px; line-height: 1.25; }
.case-card > p { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.case-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
.case-metric b { font-family: var(--font-display); font-size: 22px; font-weight: 700; display: block; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.case-metric span { font-size: 11px; color: var(--faint); line-height: 1.4; display: block; margin-top: 5px; }
.case-foot { margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }
.caro-controls { display: flex; gap: 12px; margin-top: 26px; }
.caro-btn {
  width: 52px; height: 52px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 19px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.caro-btn:hover { border-color: var(--cyan); color: var(--cyan); }

/* case studies page — full rows */
.casefull { border: 1px solid var(--line); background: linear-gradient(165deg, var(--panel-2), var(--panel)); padding: 56px 54px; margin-bottom: 34px; }
.casefull-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.casefull h2 { font-size: clamp(24px, 3vw, 34px); max-width: 640px; }
.casefull-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 30px 0; }
.casefull-metric { background: var(--bg-2); padding: 26px 28px; }
.casefull-metric b { font-family: var(--font-display); font-size: 30px; font-weight: 700; display: block; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.casefull-metric span { font-size: 12px; color: var(--faint); display: block; margin-top: 6px; }
.casefull p.lead { color: var(--muted); font-size: 16px; max-width: 760px; }
.casefull-foot { margin-top: 26px; display: flex; gap: 34px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); letter-spacing: 0.1em; flex-wrap: wrap; }
.cases-note { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); margin-top: 40px; letter-spacing: 0.06em; }

/* ---------- CTA ---------- */
.cta-section { padding: 130px 0; text-align: center; position: relative; overflow: hidden; }
.cta-section::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 760px; height: 760px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12), transparent 62%);
  pointer-events: none;
}
.cta-section .eyebrow { margin-bottom: 26px; }
.cta-section h2 { font-size: clamp(36px, 5vw, 62px); max-width: 840px; margin: 0 auto 24px; position: relative; }
.cta-section p { color: var(--muted); max-width: 560px; margin: 0 auto 44px; position: relative; }
.cta-btns { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #03050a; padding: 84px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
}
.footer-blurb { color: var(--muted); font-size: 14.5px; margin: 22px 0 26px; max-width: 340px; }
.footer-mail {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan);
  letter-spacing: 0.06em;
}
.footer-mail:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 22px;
}
.footer-col ul li { margin-bottom: 13px; }
.footer-col a { color: var(--muted); font-size: 14.5px; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: 0.04em;
}

/* ---------- subpage hero ---------- */
.page-hero { padding: 180px 0 80px; }
.page-hero .eyebrow { margin-bottom: 24px; }
.page-hero h1 { font-size: clamp(40px, 5.4vw, 68px); max-width: 820px; }
.page-hero .lead { color: var(--muted); font-size: 17.5px; max-width: 640px; margin-top: 24px; }

/* ---------- about page ---------- */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.story-grid p { color: var(--muted); font-size: 16px; margin-bottom: 20px; }
.mvv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.mvv { background: var(--bg-2); padding: 38px 32px; }
.mvv h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--cyan); margin-bottom: 16px; font-weight: 500; }
.mvv p { font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.4; }
.mvv ul li { color: var(--muted); font-size: 14.5px; padding: 6px 0; }
.mvv ul li::before { content: "· "; color: var(--cyan); }

.timeline { border-left: 1px solid var(--line); margin-left: 8px; }
.tl-item { position: relative; padding: 0 0 44px 42px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -7px; top: 6px;
  width: 13px; height: 13px;
  background: var(--bg);
  border: 2px solid var(--cyan);
  transform: rotate(45deg);
}
.tl-year { font-family: var(--font-display); font-size: 24px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tl-item h4 { font-size: 19px; margin: 8px 0 8px; }
.tl-item p { color: var(--muted); font-size: 14.5px; max-width: 560px; }

.region-tags { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.region-tags span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 9px 18px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.region-tags span:hover { color: var(--cyan); border-color: rgba(62, 226, 255, 0.4); }

.office-card { border: 1px solid var(--line); background: var(--bg-2); padding: 44px 42px; }
.office-card h3 { font-size: 22px; margin-bottom: 20px; }
.office-card address { font-style: normal; color: var(--muted); font-size: 15.5px; line-height: 1.9; }
.office-meta { margin-top: 22px; padding-top: 22px; border-top: 1px dashed var(--line); color: var(--faint); font-size: 13.5px; line-height: 2; }
.office-meta a { color: var(--cyan); }
.office-meta .ent { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; }

/* ---------- news ---------- */
.news-list { border-top: 1px solid var(--line); }
.news-item {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 40px;
  align-items: baseline;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}
.news-item:hover { background: linear-gradient(90deg, rgba(139, 92, 246, 0.04), transparent 60%); }
.news-date { font-family: var(--font-mono); font-size: 12px; color: var(--faint); letter-spacing: 0.08em; }
.news-tag {
  display: inline-block;
  margin-left: 14px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(62, 226, 255, 0.3);
  padding: 3px 10px;
}
.news-item h3 { font-size: 21px; margin-bottom: 10px; }
.news-item p { color: var(--muted); font-size: 14.5px; max-width: 640px; }
.news-arrow { color: var(--faint); font-size: 20px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: start; }
.contact-block { margin-bottom: 40px; }
.contact-block h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
  font-weight: 500;
}
.contact-block p, .contact-block address { color: var(--muted); font-size: 15.5px; font-style: normal; line-height: 1.85; }
.contact-block a.big { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--text); }
.contact-block a.big:hover { color: var(--cyan); }
.contact-note { font-size: 13px; color: var(--faint); margin-top: 8px; }
.contact-legal { font-size: 12.5px; color: var(--faint); margin-top: 34px; border-top: 1px dashed var(--line); padding-top: 20px; }
.contact-legal a { color: var(--cyan); }

.form-panel { border: 1px solid var(--line); background: linear-gradient(165deg, var(--panel-2), var(--panel)); padding: 46px 44px; }
.form-panel h3 { font-size: 24px; margin-bottom: 8px; }
.form-panel > p { color: var(--muted); font-size: 14px; margin-bottom: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  background: rgba(4, 6, 13, 0.7);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s ease;
}
.form-field select { appearance: none; }
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: rgba(62, 226, 255, 0.55); }
.form-success {
  display: none;
  border: 1px solid rgba(62, 226, 255, 0.4);
  background: rgba(62, 226, 255, 0.06);
  padding: 18px 20px;
  margin-top: 8px;
  color: var(--cyan);
  font-size: 14.5px;
}
.form-success.show { display: block; }

/* ---------- legal pages ---------- */
.legal-body { max-width: 780px; }
.legal-body .eff { font-family: var(--font-mono); font-size: 12px; color: var(--faint); letter-spacing: 0.08em; margin-bottom: 44px; }
.legal-body h2 { font-size: 24px; margin: 44px 0 16px; }
.legal-body p { color: var(--muted); font-size: 15.5px; margin-bottom: 16px; }
.legal-body a { color: var(--cyan); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 70px; }
  .svc-row { grid-template-columns: 70px 1fr; }
  .svc-points { grid-column: 2; }
  .svc-go { grid-column: 2; justify-self: start; }
  .svc-detail-grid, .plat-grid, .story-grid, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid var(--line); }
  .pipe-loop { grid-template-columns: 1fr 1fr; }
  .pipe-step::after { display: none; }
  .prin-grid, .mvv-grid { grid-template-columns: 1fr; }
  .tmod-grid, .voices-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .news-item { grid-template-columns: 1fr; gap: 10px; }
  .news-arrow { display: none; }
  .casefull { padding: 40px 30px; }
}
@media (max-width: 760px) {
  .nav-links, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 150px 0 70px; }
  .hero-stats { gap: 30px; }
  .case-card { flex-basis: 84vw; }
  .casefull-metrics { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .stats-band { grid-template-columns: 1fr; }
  .stat-cell { border-right: none; border-bottom: 1px solid var(--line); }
  .stat-cell:last-child { border-bottom: none; }
  .pipe-loop { grid-template-columns: 1fr; }
  .plat-feats { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 1fr; gap: 20px; }
  .svc-points, .svc-go { grid-column: auto; }
}
