/* Mark Anthony Maina — portfolio
   One stylesheet. Tokens first, then layout, then components. */

:root {
  --ink: #0b0d18;
  --ink-2: #131628;
  --ink-3: #1c2038;
  --paper: #f6f5f1;
  --card: #ffffff;
  --line: #e4e1d9;
  --line-dark: rgba(255, 255, 255, .1);
  --text: #16182a;
  --muted: #5b5e72;
  --muted-dark: rgba(232, 234, 255, .66);

  --violet: #6552e0;
  --violet-2: #8676ff;
  --lavender: #b8aeff;
  --violet-soft: #eeebff;
  --sky: #8fb4e8;
  --money: #10a765;
  --money-2: #3ddc97;
  --money-soft: #e3f7ed;
  --amber: #e89b1c;
  --amber-soft: #fdf1dc;
  --red: #e0474c;
  --red-soft: #fde8e8;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --max: 1200px;
  --gutter: clamp(18px, 4.5vw, 48px);
  --section: clamp(84px, 10vw, 140px);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 0 rgba(16, 18, 40, .04), 0 18px 50px -18px rgba(16, 18, 40, .18);
  --shadow-lg: 0 2px 0 rgba(16, 18, 40, .04), 0 40px 90px -30px rgba(16, 18, 40, .35);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.62;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--violet); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.035em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 7.2vw, 92px); font-weight: 800; }
h2 { font-size: clamp(34px, 4.8vw, 60px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.025em; line-height: 1.15; }
h4 { font-size: 18px; letter-spacing: -.01em; line-height: 1.3; }
.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--violet);
}
.dark .serif, .section-dark .serif { color: var(--lavender); }
.money { color: var(--money); }
.dark .money, .section-dark .money { color: var(--money-2); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.section { padding: var(--section) 0; position: relative; }
.section-tight { padding: calc(var(--section) * .6) 0; }
.section-dark { background: var(--ink); color: #eef0ff; }
.section-dark p { color: var(--muted-dark); }
.section-white { background: #fff; }
.center { text-align: center; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--muted); max-width: 680px; }
.section-dark .lead, .dark .lead { color: var(--muted-dark); }
.center .lead { margin-left: auto; margin-right: auto; }
.mono { font-family: var(--mono); }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--violet); margin-bottom: 22px;
}
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: currentColor; }
.section-dark .kicker, .dark .kicker { color: var(--lavender); }

.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; }
.section-head.split .lead { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 15.5px; letter-spacing: -.005em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease), background .25s, box-shadow .35s var(--ease), color .25s, border-color .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 10px 30px -10px rgba(101, 82, 224, .7); }
.btn-primary:hover { background: #5443d0; transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(101, 82, 224, .8); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); }
.btn-ghost { border-color: rgba(22, 24, 42, .18); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.dark .btn-ghost, .section-dark .btn-ghost { border-color: rgba(255, 255, 255, .22); color: #fff; }
.dark .btn-ghost:hover, .section-dark .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .05); }
.btn-wa { background: #1fae5b; color: #fff; }
.btn-wa:hover { background: #179a4f; transform: translateY(-2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--violet); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.section-dark .link-arrow, .dark .link-arrow { color: var(--lavender); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s, transform .4s var(--ease);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.header.on-dark { color: #fff; }
.header.scrolled { background: rgba(11, 13, 24, .82); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.header.on-light:not(.scrolled) { color: var(--text); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -.01em; }
.brand img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(255, 255, 255, .2); }
.brand small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .6; font-weight: 500; }
.brand span { line-height: 1.2; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav-drop > button {
  padding: 10px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; opacity: .86;
  background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: opacity .2s, background .2s;
}
.nav > a:hover, .nav-drop > button:hover, .nav > a.active { opacity: 1; background: rgba(127, 127, 160, .14); }
.nav-drop { position: relative; }
.nav-drop > button svg { width: 14px; height: 14px; transition: transform .3s; }
.nav-drop:hover > button svg, .nav-drop.open > button svg { transform: rotate(180deg); }
.drop {
  position: absolute; top: calc(100% + 8px); left: 50%; width: 560px;
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden;
  background: #fff; color: var(--text); border-radius: 20px; padding: 10px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  transition: opacity .25s, transform .35s var(--ease), visibility .25s;
}
.drop::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav-drop:hover .drop, .nav-drop.open .drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.drop a { display: flex; gap: 12px; padding: 12px; border-radius: 14px; transition: background .2s; }
.drop a:hover { background: var(--paper); }
.drop .ic { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--violet-soft); color: var(--violet); display: grid; place-items: center; }
.drop .ic svg { width: 18px; height: 18px; }
.drop strong { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.drop small { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }
.header .btn { min-height: 44px; padding: 0 18px; font-size: 14.5px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; background: none; cursor: pointer; place-items: center; opacity: .8; }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor; transition: transform .3s; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--ink); color: #fff;
  padding: calc(76px + clamp(40px, 7vw, 96px)) 0 clamp(64px, 8vw, 110px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(640px 420px at 82% 18%, rgba(101, 82, 224, .45), transparent 70%),
    radial-gradient(520px 380px at 8% 88%, rgba(143, 180, 232, .18), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 26px; }
.hero h1 .serif { font-size: 1.08em; line-height: .9; }
.hero-h1 { font-size: clamp(38px, 5.4vw, 74px); line-height: 1.02; }
.hero-h1 .serif { color: var(--lavender); }
.nowrap { white-space: nowrap; }
.hero .lead { color: rgba(232, 234, 255, .74); margin-bottom: 34px; max-width: 600px; }
.hero .lead strong { color: #fff; font-weight: 600; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05);
  font-size: 13.5px; color: rgba(255, 255, 255, .85); margin-bottom: 28px;
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--money-2); box-shadow: 0 0 0 4px rgba(61, 220, 151, .18); animation: pulse 2.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(61, 220, 151, 0); } }
.hero .btn-ghost { border-color: rgba(255, 255, 255, .24); color: #fff; }
.hero .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.audit-cta { display: flex; gap: 14px; align-items: flex-start; margin-top: 30px; max-width: 560px; padding: 16px 18px; border-radius: 18px; background: linear-gradient(135deg, rgba(232, 155, 28, .16), rgba(101, 82, 224, .14)); border: 1px solid rgba(242, 176, 74, .45); color: rgba(232, 234, 255, .8); font-size: 15px; line-height: 1.5; transition: border-color .3s, transform .4s var(--ease); }
.audit-cta:hover { border-color: #f2b04a; transform: translateY(-2px); }
.audit-cta strong { color: #fff; font-size: 19px; display: block; margin: 6px 0 4px; font-family: var(--display); font-weight: 700; letter-spacing: -.02em; }
.audit-arrow { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #f2b04a; color: var(--ink); animation: nudge 1.6s ease-in-out infinite; }
.audit-arrow svg { width: 20px; height: 20px; }
@keyframes nudge { 50% { transform: translateY(-5px); } }
.audit-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #f7c26b; }
.audit-tag i { width: 7px; height: 7px; border-radius: 50%; background: #f7c26b; animation: pulse 1.8s infinite; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.hero-proof div { font-size: 14px; color: rgba(232, 234, 255, .6); line-height: 1.35; }
.hero-proof b { display: block; font-family: var(--display); font-size: 26px; font-weight: 700; color: #fff; letter-spacing: -.03em; }

.portrait { position: relative; max-width: 470px; margin-left: auto; }
.portrait-frame {
  position: relative; border-radius: 30px; overflow: hidden; aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, #82a4d6, #6e5aa1);
  box-shadow: 0 50px 100px -40px rgba(101, 82, 224, .7), inset 0 0 0 1px rgba(255, 255, 255, .15);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px;
  background: rgba(15, 17, 32, .8); color: #fff;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; padding: 11px 16px 11px 11px;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .6); line-height: 1.25; max-width: 240px;
  animation: float 7s ease-in-out infinite;
}
.chip-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, var(--violet), var(--violet-2)); color: #fff; }
.chip-ic svg { width: 19px; height: 19px; }
.chip b { display: block; font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.chip small { display: block; color: rgba(255, 255, 255, .62); font-size: 12px; margin-top: 2px; }
.chip-a { top: 8%; left: -16%; }
.chip-b { top: 42%; right: -14%; animation-delay: -2.2s; }
.chip-c { bottom: 7%; left: -14%; animation-delay: -4.4s; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* Page hero (services + case studies) */
.page-hero { padding-bottom: clamp(56px, 7vw, 96px); }
.page-hero h1 { font-size: clamp(40px, 6vw, 76px); }
.crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(232, 234, 255, .5); margin-bottom: 26px; display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a:hover { color: #fff; }
.for-list { display: grid; gap: 10px; margin: 0 0 34px; }
.for-list li { display: flex; gap: 12px; align-items: flex-start; color: rgba(232, 234, 255, .8); font-size: 16px; }
.for-list svg { flex: none; width: 20px; height: 20px; color: var(--money-2); margin-top: 3px; }

.hero-visual {
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 26px; padding: 22px;
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .8);
}
.hv-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 13px; color: rgba(232, 234, 255, .6); }
.hv-head b { color: #fff; font-weight: 600; font-size: 14.5px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: rgba(255, 255, 255, .55); border-top: 1px solid var(--line-dark); padding: 26px 0; overflow: hidden; }
.marquee-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; text-align: center; margin-bottom: 16px; color: rgba(255, 255, 255, .4); }
.marquee-track { display: flex; width: max-content; animation: scroll 42s linear infinite; }
.marquee-track span { font-family: var(--display); font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; letter-spacing: -.02em; padding: 0 30px; white-space: nowrap; display: inline-flex; align-items: center; gap: 30px; }
.marquee-track span::after { content: "✦"; font-size: 12px; color: var(--violet-2); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: #fff; padding: 30px 26px; }
.stat b { display: block; font-family: var(--display); font-size: clamp(38px, 4vw, 54px); font-weight: 800; letter-spacing: -.045em; line-height: 1; margin-bottom: 12px; }
.stat span { display: block; font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.stat em { font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); display: block; margin-top: 10px; }

/* ---------- Leak section ---------- */
.leak-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.leak-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.funnel { display: grid; gap: 9px; }
.f-row { display: grid; grid-template-columns: 160px 1fr 58px; gap: 12px; align-items: center; font-size: 14px; }
.f-row .lbl { color: var(--muted); line-height: 1.25; }
.f-bar { height: 36px; border-radius: 9px; background: var(--paper); overflow: hidden; }
.f-bar i { display: flex; align-items: center; justify-content: flex-end; height: 100%; width: var(--w); min-width: 52px; padding: 0 10px; border-radius: 9px; background: linear-gradient(90deg, var(--violet), var(--violet-2)); transform-origin: left; transform: scaleX(0); transition: transform 1.3s var(--ease); font-style: normal; }
.f-bar i b { font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: #fff; opacity: 0; transition: opacity .5s 1s; }
.in .f-bar i { transform: scaleX(1); }
.in .f-bar i b { opacity: 1; }
.f-row:nth-child(2) i { transition-delay: .1s; } .f-row:nth-child(3) i { transition-delay: .2s; } .f-row:nth-child(4) i { transition-delay: .3s; } .f-row:nth-child(5) i { transition-delay: .4s; } .f-row:nth-child(6) i { transition-delay: .5s; }
.f-row .f-drop { font-family: var(--mono); font-size: 12px; font-weight: 500; text-align: center; padding: 5px 0; border-radius: 8px; background: var(--red-soft); color: var(--red); }
.f-row .f-drop.start { background: transparent; color: var(--muted); }
.f-row.leak .f-bar i { background: repeating-linear-gradient(135deg, var(--amber), var(--amber) 8px, #f2b04a 8px, #f2b04a 16px); }
.f-row.leak .lbl, .f-row.paid .lbl { color: var(--text); font-weight: 600; }
.f-row.paid .f-bar i { background: var(--money); }
.win-note { margin-top: 20px; display: flex; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--money-soft); color: #0b5a38; font-size: 15px; line-height: 1.5; }
.win-note svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--money); }
.win-note em { font-style: normal; color: #2f7a57; }
.bullets { display: grid; gap: 14px; margin: 26px 0 32px; }
.bullets li { display: flex; gap: 14px; align-items: flex-start; }
.bullets svg { flex: none; width: 22px; height: 22px; color: var(--violet); margin-top: 2px; }

/* ---------- Services grid ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; min-height: 300px; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc .ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); margin-bottom: 24px; }
.svc .ic svg { width: 24px; height: 24px; }
.svc h3 { margin-bottom: 10px; }
.svc p { color: var(--muted); font-size: 15.5px; }
.svc .outcome { margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.svc .outcome svg { width: 20px; height: 20px; color: var(--violet); transition: transform .35s var(--ease); flex: none; }
.svc:hover .outcome svg { transform: translateX(4px); }
.svc-cta { background: var(--violet); border-color: var(--violet); color: #fff; }
.svc-cta .ic { background: rgba(255, 255, 255, .16); color: #fff; }
.svc-cta p { color: rgba(255, 255, 255, .8); }
.svc-cta .outcome { border-color: rgba(255, 255, 255, .25); }
.svc-cta .outcome svg { color: #fff; }
.svc.feature { grid-column: span 2; background: var(--ink); color: #fff; border-color: var(--ink); }
.svc.feature::before { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(101, 82, 224, .55), transparent 70%); }
.svc.feature .ic { background: rgba(255, 255, 255, .08); color: var(--lavender); }
.svc.feature p { color: var(--muted-dark); max-width: 520px; }
.svc.feature h3 { font-size: clamp(26px, 2.8vw, 36px); max-width: 560px; }
.svc.feature .outcome { border-color: rgba(255, 255, 255, .14); }
.svc.feature .outcome svg { color: var(--lavender); }
.svc .tag { position: absolute; top: 26px; right: 26px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: rgba(61, 220, 151, .14); color: var(--money-2); }

/* ---------- Case study cards ---------- */
.cases { display: grid; gap: 22px; }
.case {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 0; border-radius: 28px; overflow: hidden;
  background: var(--ink-2); border: 1px solid var(--line-dark); color: #fff;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.case:hover { transform: translateY(-4px); box-shadow: 0 40px 80px -40px rgba(101, 82, 224, .6); }
.case-body { padding: clamp(26px, 3.4vw, 46px); display: flex; flex-direction: column; }
.case-meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(232, 234, 255, .5); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.case h3 { font-size: clamp(26px, 2.8vw, 36px); margin-bottom: 14px; }
.case p { color: var(--muted-dark); font-size: 16px; }
.case-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 26px; }
.case-metrics div { border-left: 2px solid var(--violet-2); padding-left: 12px; font-size: 13px; color: rgba(232, 234, 255, .6); line-height: 1.35; }
.case-metrics b { display: block; font-family: var(--display); font-size: clamp(24px, 2.4vw, 32px); color: #fff; letter-spacing: -.035em; font-weight: 700; margin-bottom: 4px; }
.case-metrics b.up { color: var(--money-2); }
.case-metrics b.down { color: #ff8b8f; }
.case .link-arrow { margin-top: auto; }
.case-visual { position: relative; background: linear-gradient(160deg, #20244a, #121428); padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; justify-content: center; gap: 16px; min-height: 380px; overflow: hidden; }
.case-visual .shot { border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); transform: rotate(-1.2deg); transition: transform .8s var(--ease); }
.case:hover .case-visual .shot { transform: rotate(0) scale(1.02); }
.case-visual .chart-card { background: rgba(10, 12, 26, .88); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 14px 16px; }
.case-visual .shot + .chart-card { margin: -80px 14px 0 auto; width: 78%; position: relative; z-index: 2; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8); }
.case.flip .case-body { order: 2; }
.case.flip .case-visual { order: 1; }

/* Browser frame */
.browser { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); }
.browser-bar { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 12px; background: #eceae4; }
.browser-bar .dots i { width: 9px; height: 9px; background: #cfccc3; }
.browser-bar span { flex: 1; max-width: 320px; margin: 0 auto; height: 20px; border-radius: 6px; background: #fff; font-family: var(--mono); font-size: 10.5px; color: var(--muted); display: flex; align-items: center; justify-content: center; overflow: hidden; white-space: nowrap; }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.dark .browser-bar, .section-dark .browser-bar { background: #262a45; }
.dark .browser-bar span, .section-dark .browser-bar span { background: #171a30; color: rgba(255, 255, 255, .5); }
.dark .browser-bar .dots i, .section-dark .browser-bar .dots i { background: rgba(255, 255, 255, .2); }

/* ---------- Charts ---------- */
.chart { width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--mono); font-size: 11px; fill: var(--muted); }
.dark .chart text, .section-dark .chart text, .case-visual .chart text, .hero .chart text { fill: rgba(232, 234, 255, .55); }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.dark .chart .grid line, .section-dark .chart .grid line, .case-visual .chart .grid line, .hero .chart .grid line { stroke: rgba(255, 255, 255, .08); }
.chart .val { font-family: var(--display); font-size: 15px; font-weight: 700; fill: var(--text); letter-spacing: -.02em; }
.dark .chart .val, .section-dark .chart .val, .case-visual .chart .val, .hero .chart .val { fill: #fff; }
.chart .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease); }
.in .chart .draw, .chart.in .draw { stroke-dashoffset: 0; }
.chart .area { opacity: 0; transition: opacity 1.2s .6s; }
.in .chart .area { opacity: 1; }
.chart .dot { opacity: 0; transition: opacity .4s; }
.in .chart .dot { opacity: 1; transition-delay: 1.2s; }
.chart .bar { transform: scaleY(0); transform-origin: bottom; transform-box: fill-box; transition: transform 1.2s var(--ease); }
.chart .hbar { transform: scaleX(0); transform-origin: left; transform-box: fill-box; transition: transform 1.2s var(--ease); }
.in .chart .bar, .in .chart .hbar { transform: none; }
.chart .fade { opacity: 0; transition: opacity .6s 1s; }
.in .chart .fade { opacity: 1; }
.chart-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; font-size: 13.5px; font-weight: 600; }
.chart-title small { font-family: var(--mono); font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.dark .chart-title small, .section-dark .chart-title small, .case-visual .chart-title small, .hero .chart-title small { color: rgba(232, 234, 255, .5); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart-source { font-size: 12px; color: var(--muted); margin-top: 10px; font-family: var(--mono); letter-spacing: .02em; }
.section-dark .chart-source, .dark .chart-source { color: rgba(232, 234, 255, .45); }

/* ---------- Systems ---------- */
.sys-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.sys { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; transition: border-color .3s, transform .5s var(--ease); }
.sys:hover { border-color: rgba(134, 118, 255, .45); transform: translateY(-4px); }
.sys-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 12px; }
.sys h3 { font-size: 22px; margin: 0 0 4px; color: #fff; }
.sys .sub { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--lavender); }
.sys .result { flex: none; text-align: right; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.03em; color: var(--money-2); line-height: 1.1; max-width: 160px; }
.sys .result small { display: block; font-family: var(--font); font-weight: 400; font-size: 12px; letter-spacing: 0; color: rgba(232, 234, 255, .5); }
.sys p { font-size: 15px; margin-bottom: 18px; }
.flow { font-family: var(--mono); font-size: 12px; line-height: 1.7; color: rgba(232, 234, 255, .75); background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .06); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.flow b { color: var(--lavender); font-weight: 500; }
.flow .ok { color: var(--money-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tags span { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: rgba(232, 234, 255, .75); }
.light-tags span { background: var(--paper); color: var(--muted); border: 1px solid var(--line); }

/* ---------- Loop ---------- */
.loop { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; counter-reset: step; }
.loop li { position: relative; padding: 22px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.loop li::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--mono); font-size: 12px; color: var(--violet); margin-bottom: 26px; }
.loop li::after { content: ""; position: absolute; top: 30px; left: 48px; right: 14px; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.loop h4 { font-size: 16px; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .02em; }
.loop p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ---------- Split: engineer / operator ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.duo-card { border-radius: 26px; padding: clamp(26px, 3.4vw, 44px); position: relative; overflow: hidden; }
.duo-card.eng { background: var(--ink); color: #fff; }
.duo-card.eng p { color: var(--muted-dark); }
.duo-card.biz { background: #fff; border: 1px solid var(--line); }
.duo-card h3 { font-size: clamp(26px, 2.8vw, 34px); }
.duo-card .kicker { margin-bottom: 16px; }
.duo-list { display: grid; gap: 12px; margin-top: 22px; }
.duo-list li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14.5px; }
.duo-card.eng .duo-list li { border-color: var(--line-dark); }
.duo-list b { font-weight: 600; font-size: 13px; font-family: var(--mono); letter-spacing: .02em; color: var(--violet); }
.duo-card.eng .duo-list b { color: var(--lavender); }
.duo-list span { color: var(--muted); }
.duo-card.eng .duo-list span { color: var(--muted-dark); }
.code-snip { font-family: var(--mono); font-size: 12.5px; line-height: 1.75; background: rgba(0, 0, 0, .35); border: 1px solid var(--line-dark); border-radius: 14px; padding: 14px 16px; color: rgba(232, 234, 255, .8); margin-top: 22px; overflow-x: auto; white-space: pre; }
.code-snip .k { color: #c7b8ff; } .code-snip .s { color: #9be8bf; } .code-snip .c { color: rgba(232, 234, 255, .38); }
.calc { margin-top: 22px; border-radius: 14px; background: var(--paper); padding: 16px 18px; font-size: 14.5px; }
.calc div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.calc div:last-child { border: 0; font-weight: 700; color: var(--money); }
.calc span:last-child { font-family: var(--mono); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.about-photo { position: sticky; top: 100px; }
.about-photo .frame { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; background: #3a3a3a; }
.about-photo .frame img { width: 100%; height: 100%; object-fit: cover; }
.about-photo .caption { margin-top: 16px; font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.about-text p { font-size: 18px; line-height: 1.7; }
.about-text p.big { font-family: var(--display); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; letter-spacing: -.025em; font-weight: 600; color: var(--text); }
.path { display: grid; gap: 0; margin: 36px 0; border-left: 2px solid var(--line); }
.path li { position: relative; padding: 0 0 22px 28px; }
.path li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--violet); }
.path li:last-child::before { background: var(--violet); box-shadow: 0 0 0 5px var(--violet-soft); }
.path b { display: block; font-family: var(--display); font-size: 19px; letter-spacing: -.02em; }
.path span { font-size: 15px; color: var(--muted); }
.ganiam { display: flex; gap: 18px; align-items: center; padding: 20px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); margin-top: 8px; transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.ganiam:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.ganiam .gt { flex: none; width: 54px; height: 54px; border-radius: 14px; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.04em; }
.ganiam p { margin: 0; font-size: 15px; color: var(--muted); }
.ganiam strong { color: var(--text); }
.edu { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.edu span { font-size: 13px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; }
.quote .mark { font-family: var(--serif); font-size: 70px; line-height: .6; color: var(--violet); height: 30px; }
.quote p { font-size: 17px; line-height: 1.6; color: var(--text); margin: 14px 0 24px; }
.quote footer { margin-top: auto; display: flex; gap: 12px; align-items: center; font-size: 14px; }
.quote footer i { width: 42px; height: 42px; border-radius: 50%; background: var(--violet-soft); color: var(--violet); display: grid; place-items: center; font-style: normal; font-weight: 700; font-family: var(--display); }
.quote footer span { color: var(--muted); display: block; font-size: 13px; }
.quote.big footer { flex: none; min-width: 210px; }
.quote.big { grid-column: 1 / -1; flex-direction: row; gap: 40px; align-items: center; padding: clamp(28px, 4vw, 52px); background: var(--ink); color: #fff; border: 0; }
.quote.big p { font-family: var(--display); font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -.025em; line-height: 1.3; color: #fff; margin: 0; }
.quote.big footer span { color: var(--muted-dark); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 26px; display: flex; justify-content: space-between; gap: 20px; align-items: center; font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--paper); position: relative; transition: transform .35s var(--ease), background .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--text); transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .35s var(--ease); }
.faq details[open] summary i { background: var(--violet); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: #fff; }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq .ans { padding: 0 26px 24px; color: var(--muted); font-size: 16px; max-width: 760px; }
.faq .ans p:last-child { margin: 0; }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 400px at 90% 0%, rgba(101, 82, 224, .45), transparent 70%); pointer-events: none; }
.contact .container { position: relative; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact h2 { font-size: clamp(40px, 5.6vw, 72px); }
.contact-ways { display: grid; gap: 10px; margin-top: 30px; }
.contact-ways a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .03); transition: background .3s, border-color .3s; }
.contact-ways a:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .22); }
.contact-ways .ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: var(--lavender); }
.contact-ways .ic svg { width: 20px; height: 20px; }
.contact-ways small { display: block; font-size: 12.5px; color: rgba(232, 234, 255, .5); }
.contact-ways strong { font-weight: 600; font-size: 15.5px; }
.form { background: #fff; color: var(--text); border-radius: 26px; padding: clamp(24px, 3.4vw, 40px); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .7); }
.form h3 { margin-bottom: 6px; }
.form > p { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field label { font-size: 13.5px; font-weight: 600; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 13px 14px; font-size: 16px; transition: border-color .2s, box-shadow .2s, background .2s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--violet); background: #fff; box-shadow: 0 0 0 4px var(--violet-soft); }
.field textarea { min-height: 120px; resize: vertical; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .btn { width: 100%; margin-top: 6px; }
.form .fine { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; text-align: center; }

/* ---------- Footer ---------- */
.footer { background: #07080f; color: rgba(232, 234, 255, .6); padding: 72px 0 36px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer h4 { color: #fff; font-family: var(--font); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin-bottom: 16px; }
.footer ul { display: grid; gap: 9px; }
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer-big { font-family: var(--display); font-size: clamp(22px, 2.4vw, 28px); color: #fff; letter-spacing: -.025em; line-height: 1.2; font-weight: 600; margin: 0 0 12px; max-width: 360px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 13px; }

/* ---------- Service page blocks ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pain { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line); font-size: 16.5px; line-height: 1.5; }
.pain i { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 15px; }
.pain-close { margin-top: 30px; font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.025em; line-height: 1.25; font-weight: 600; max-width: 820px; }
.deliv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.deliv { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.deliv .n { font-family: var(--mono); font-size: 12px; color: var(--violet); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.deliv .n::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.deliv h4 { font-size: 19px; margin-bottom: 8px; }
.deliv p { font-size: 15px; color: var(--muted); margin: 0; }
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 170px 1fr; gap: 30px; padding: 28px 0; border-top: 1px solid var(--line-dark); }
.step:last-child { border-bottom: 1px solid var(--line-dark); }
.step .when { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--lavender); padding-top: 6px; }
.step h4 { font-size: clamp(20px, 2vw, 24px); color: #fff; margin-bottom: 6px; }
.step p { margin: 0; font-size: 16px; }
.proof-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.proof { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.proof:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.proof .viz { padding: 24px 24px 12px; background: var(--paper); border-bottom: 1px solid var(--line); }
.proof .body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.proof .body .case-meta { color: var(--muted); margin-bottom: 10px; }
.proof h3 { font-size: 23px; margin-bottom: 10px; }
.proof p { font-size: 15.5px; color: var(--muted); }
.proof .link-arrow { margin-top: auto; }
.tool-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-row span { font-size: 14px; font-weight: 500; padding: 9px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.why b { display: block; font-family: var(--display); font-size: 44px; letter-spacing: -.05em; color: var(--violet); line-height: 1; margin-bottom: 18px; font-weight: 800; }
.why h4 { font-size: 19px; }
.why p { font-size: 15px; color: var(--muted); margin: 0; }
.pkgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.pkg { display: flex; flex-direction: column; padding: 30px; border-radius: 26px; background: #fff; border: 1px solid var(--line); }
.pkg.hot { background: var(--ink); color: #fff; border-color: var(--ink); position: relative; box-shadow: 0 40px 80px -40px rgba(101, 82, 224, .7); }
.pkg .badge { align-self: flex-start; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--violet-soft); color: var(--violet); margin-bottom: 20px; }
.pkg.hot .badge { background: rgba(61, 220, 151, .15); color: var(--money-2); }
.pkg h3 { font-size: 26px; margin-bottom: 6px; }
.pkg .for { font-size: 14.5px; color: var(--muted); margin-bottom: 20px; }
.pkg.hot .for { color: var(--muted-dark); }
.pkg ul { display: grid; gap: 10px; margin-bottom: 26px; }
.pkg li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; }
.pkg li svg { flex: none; width: 18px; height: 18px; color: var(--money); margin-top: 2px; }
.pkg.hot li svg { color: var(--money-2); }
.pkg .time { margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; }
.pkg.hot .time { border-color: rgba(255, 255, 255, .15); color: var(--muted-dark); }
.pkg .btn { margin-top: 16px; }
.other-svcs { display: flex; flex-wrap: wrap; gap: 10px; }
.other-svcs a { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 15px; transition: border-color .25s, transform .35s var(--ease); }
.other-svcs a:hover { border-color: var(--violet); transform: translateY(-2px); }
.other-svcs .ic { width: 32px; height: 32px; border-radius: 50%; background: var(--violet-soft); color: var(--violet); display: grid; place-items: center; }
.other-svcs .ic svg { width: 16px; height: 16px; }

/* ---------- Case study page ---------- */
.cs-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: 22px; overflow: hidden; margin-top: 44px; }
.cs-stats div { background: var(--ink); padding: 24px 22px; font-size: 14px; color: rgba(232, 234, 255, .6); line-height: 1.4; }
.cs-stats b { display: block; font-family: var(--display); font-size: clamp(30px, 3.4vw, 44px); color: #fff; letter-spacing: -.04em; font-weight: 800; line-height: 1; margin-bottom: 10px; }
.cs-stats b.up { color: var(--money-2); }
.cs-stats b.down { color: #ff8b8f; }
.cs-shot { margin-top: clamp(-80px, -6vw, -40px); position: relative; z-index: 2; }
.cs-layout { display: grid; grid-template-columns: 250px 1fr; gap: clamp(30px, 5vw, 72px); align-items: start; }
.cs-aside { position: sticky; top: 100px; display: grid; gap: 22px; font-size: 14px; }
.cs-aside div { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.cs-aside small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.cs-aside a { color: var(--violet); font-weight: 600; }
.cs-body h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 64px; }
.cs-body h2:first-child { margin-top: 0; }
.cs-body p, .cs-body li { font-size: 17.5px; line-height: 1.72; }
.cs-body .figure .chart { max-width: 640px; }
.cs-body .figure { margin: 30px 0; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.cs-body .figure.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.cs-body .fig-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 30px 0; }
.cs-body .fig-grid .figure { margin: 0; }
.checks { display: grid; gap: 12px; margin: 22px 0; }
.checks li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-size: 16px !important; line-height: 1.5 !important; }
.checks svg { flex: none; width: 22px; height: 22px; color: var(--money); margin-top: 1px; }
.callout { margin: 30px 0; padding: 22px 24px; border-radius: 18px; background: var(--violet-soft); border-left: 4px solid var(--violet); font-size: 17px; }
.callout strong { color: var(--violet); }
.callout.honest { background: var(--amber-soft); border-color: var(--amber); }
.callout.honest strong { color: #9a5f00; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 20px 0; background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.data-table th, .data-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.data-table th { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--paper); }
.data-table td.num { font-family: var(--mono); text-align: right; }
.data-table tr:last-child td { border-bottom: 0; }
.big-quote { margin: 40px 0; padding: 0 0 0 26px; border-left: 3px solid var(--violet); font-family: var(--display); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.35; letter-spacing: -.02em; }
.big-quote cite { display: block; margin-top: 14px; font-family: var(--font); font-style: normal; font-size: 14.5px; color: var(--muted); letter-spacing: 0; }
.next-case { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 34px; border-radius: 26px; background: var(--ink); color: #fff; transition: transform .5s var(--ease); }
.next-case:hover { transform: translateY(-4px); }
.next-case small { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(232, 234, 255, .5); }
.next-case h3 { margin: 6px 0 0; font-size: clamp(22px, 2.6vw, 32px); }
.next-case .arrow { width: 60px; height: 60px; border-radius: 50%; background: var(--violet); display: grid; place-items: center; }
.next-case .arrow svg { width: 24px; height: 24px; }

/* Diagram (architecture) */
.diagram { width: 100%; height: auto; }
.diagram text { font-family: var(--font); font-size: 13px; fill: #fff; }
.diagram .sm { font-family: var(--mono); font-size: 10.5px; fill: rgba(232, 234, 255, .55); }
.diagram .box { fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .16); }
.diagram .box.hi { fill: rgba(101, 82, 224, .25); stroke: var(--violet-2); }
.diagram .box.ok { fill: rgba(61, 220, 151, .12); stroke: rgba(61, 220, 151, .55); }
.diagram .wire { stroke: rgba(184, 174, 255, .55); stroke-width: 1.5; fill: none; stroke-dasharray: 4 5; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -18; } }

/* Work gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.site { display: block; }
.site .browser { transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.site:hover .browser { transform: translateY(-6px); }
.site h4 { margin: 16px 0 2px; font-size: 18px; }
.site p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .chart .draw { stroke-dashoffset: 0; } .chart .area, .chart .dot, .chart .fade { opacity: 1; } .chart .bar, .chart .hbar, .f-bar i { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .loop { grid-template-columns: repeat(3, 1fr); }
  .chip-a { left: -6%; } .chip-b { right: -4%; } .chip-c { left: -4%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav, .header .btn-desk { display: none; }
  .menu-btn { display: grid; }
  .mobile-nav {
    display: block; position: fixed; inset: 76px 0 0 0; background: var(--ink); color: #fff; z-index: 49;
    padding: 20px var(--gutter) 40px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .3s, transform .4s var(--ease), visibility .3s;
  }
  .menu-open .mobile-nav { opacity: 1; visibility: visible; transform: none; }
  .menu-open .header { background: var(--ink); color: #fff; }
  .mobile-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 20px; font-family: var(--display); font-weight: 600; letter-spacing: -.02em; }
  .mobile-nav .sub a { font-size: 16px; font-family: var(--font); font-weight: 500; padding: 11px 0 11px 16px; color: rgba(232, 234, 255, .75); }
  .mobile-nav .btn { margin-top: 24px; width: 100%; border: 0; }
  .hero-grid, .leak-grid, .about-grid, .contact-grid, .section-head.split, .duo { grid-template-columns: 1fr; }
  .portrait { margin: 20px auto 0; max-width: 400px; }
  .svc-grid, .deliv-grid, .why-grid, .pkgs, .quotes, .gallery { grid-template-columns: 1fr 1fr; }
  .svc-cta { background: var(--violet); border-color: var(--violet); color: #fff; }
.svc-cta .ic { background: rgba(255, 255, 255, .16); color: #fff; }
.svc-cta p { color: rgba(255, 255, 255, .8); }
.svc-cta .outcome { border-color: rgba(255, 255, 255, .25); }
.svc-cta .outcome svg { color: #fff; }
.svc.feature { grid-column: span 2; }
  .quote.big { flex-direction: column; align-items: flex-start; gap: 20px; }
  .case, .case.flip { grid-template-columns: 1fr; }
  .case.flip .case-body { order: 1; } .case.flip .case-visual { order: 2; }
  .stats, .cs-stats { grid-template-columns: 1fr 1fr; }
  .sys-grid, .proof-grid { grid-template-columns: 1fr; }
  .cs-layout { grid-template-columns: 1fr; }
  .cs-aside { position: static; grid-template-columns: 1fr 1fr; }
  .about-photo { position: static; max-width: 420px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .svc-grid, .deliv-grid, .why-grid, .pkgs, .quotes, .pain-grid, .gallery, .loop { grid-template-columns: 1fr; }
  .svc.feature, .quote.big { grid-column: auto; }
  .case-metrics { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .case-metrics div { padding-left: 8px; font-size: 12px; }
  .case-visual { min-height: 0; }
  .case-visual .shot + .chart-card { width: 100%; margin: -40px 0 0; }
  .f-row { grid-template-columns: 96px 1fr 50px; gap: 8px; font-size: 12.5px; }
  .f-row .f-drop { font-size: 11px; }
  .f-bar i b { font-size: 11px; }
  .step { grid-template-columns: 1fr; gap: 6px; }
  .form .row2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .chip { transform: scale(.86); }
  .chip { max-width: 200px; padding: 8px 12px 8px 8px; }
  .chip-ic { width: 32px; height: 32px; }
  .chip b { font-size: 15px; }
  .chip-a { left: -2%; top: 4%; } .chip-b { right: -2%; top: 40%; } .chip-c { left: -2%; bottom: 4%; }
  @keyframes float { 50% { transform: scale(.86) translateY(-6px); } }
  .duo-list li { grid-template-columns: 1fr; gap: 2px; }
  .cs-aside { grid-template-columns: 1fr; }
  .cs-body .fig-grid { grid-template-columns: 1fr; }
  .next-case { padding: 24px; }
  .hero-proof b { font-size: 22px; }
  .btn-row .btn { flex: 1 1 100%; }
}
