/* ============================================================
   VISHAL POTHUR - personal brand site
   Design system + 3 style directions (Midnight / Carbon / Aurora)
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900&family=Anton&family=Space+Grotesk:wght@400;500;600;700&family=Hanken+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { min-height: 100vh; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ============================================================
   THEME TOKENS
   ============================================================ */
:root {
  --green:  #2ee6a6;
  --blue:   #4d8bf5;
  --violet: #9b7bf7;
  --amber:  #f5a524;

  --font-display: 'Archivo', sans-serif;
  --font-body: 'Hanken Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --headline-scale: 1;
  --maxw: 1280px;
  --pad: clamp(20px, 5vw, 64px);

  /* accent (overridable via Tweaks) */
  --accent: var(--green);
  --accent-2: var(--blue);
  --accent-3: var(--violet);
  --accent-4: var(--amber);
}

/* ---------- MIDNIGHT (default) ---------- */
[data-theme="midnight"] {
  --bg-base: #07070f;
  --bg-glow:
    radial-gradient(1000px 680px at 74% -6%, rgba(70,66,150,.55), transparent 56%),
    radial-gradient(760px 560px at 6% 26%, rgba(38,46,112,.40), transparent 60%),
    linear-gradient(180deg, #0c0c1e 0%, #08081200 40%);
  --surface: rgba(255,255,255,.035);
  --surface-2: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.10);
  --border-strong: rgba(255,255,255,.18);
  --text: #ececf4;
  --muted: #9595ad;
  --heading: #ffffff;
  --radius: 22px;
  --radius-sm: 14px;
  --card-blur: 0px;
  --grid-color: rgba(255,255,255,.045);
  --hero-grad: linear-gradient(180deg, #ffffff 0%, #ffffff 34%, #8a8a9c 64%, #6b6b7e 100%);
}

/* ---------- CARBON (minimal editorial) ---------- */
[data-theme="carbon"] {
  --bg-base: #0b0b0c;
  --bg-glow:
    radial-gradient(900px 600px at 82% -10%, rgba(214,242,74,.06), transparent 55%);
  --surface: rgba(255,255,255,.022);
  --surface-2: rgba(255,255,255,.04);
  --border: rgba(255,255,255,.085);
  --border-strong: rgba(255,255,255,.16);
  --text: #e7e7e2;
  --muted: #82827a;
  --heading: #f6f6f1;
  --radius: 3px;
  --radius-sm: 2px;
  --card-blur: 0px;
  --grid-color: rgba(255,255,255,.03);
  --hero-grad: linear-gradient(180deg, #f6f6f1 0%, #f6f6f1 40%, #6f6f68 100%);
  /* single accent */
  --accent: #d6f24a;
  --accent-2: #d6f24a;
  --accent-3: #d6f24a;
  --accent-4: #d6f24a;
}

/* ---------- AURORA (vivid glass) ---------- */
[data-theme="aurora"] {
  --bg-base: #080612;
  --bg-glow:
    radial-gradient(820px 620px at 78% -8%, rgba(155,123,247,.55), transparent 55%),
    radial-gradient(720px 600px at 8% 18%, rgba(45,230,200,.30), transparent 58%),
    radial-gradient(900px 700px at 50% 110%, rgba(77,139,245,.35), transparent 60%);
  --surface: rgba(255,255,255,.055);
  --surface-2: rgba(255,255,255,.09);
  --border: rgba(255,255,255,.14);
  --border-strong: rgba(255,255,255,.26);
  --text: #f2f0fb;
  --muted: #a89fcf;
  --heading: #ffffff;
  --radius: 26px;
  --radius-sm: 18px;
  --card-blur: 16px;
  --grid-color: rgba(255,255,255,.05);
  --hero-grad: linear-gradient(180deg, #ffffff 0%, #e9e2ff 38%, #b9a7f0 72%, #8f7be0 100%);
}

/* ============================================================
   BASE LAYOUT
   ============================================================ */
body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  position: relative;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background: var(--bg-glow);
  pointer-events: none;
  z-index: 0;
}
/* grid overlay (toggle via .show-grid on body) */
body::after {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s ease;
  z-index: 0;
}
body.show-grid::after { opacity: 1; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); position: relative; z-index: 1; }
section { position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--accent);
}

.section-head { margin-bottom: clamp(36px, 5vw, 60px); max-width: 760px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--heading);
  margin-top: 18px;
}
.section-head p { color: var(--muted); margin-top: 16px; font-size: 18px; max-width: 620px; }

.pad-y { padding-block: clamp(72px, 10vw, 132px); }

/* ============================================================
   NAV
   ============================================================ */
.nav-shell {
  position: fixed; top: 18px; left: 0; right: 0; z-index: 60;
  display: flex; justify-content: center;
  padding-inline: var(--pad);
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  width: 100%; max-width: var(--maxw);
  display: flex; align-items: center; gap: 28px;
  padding: 12px 12px 12px 22px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-base) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid var(--border);
  transition: padding .35s ease, background .35s ease, box-shadow .35s ease;
}
[data-theme="carbon"] .nav { border-radius: 4px; }
.nav.scrolled {
  padding-top: 8px; padding-bottom: 8px;
  background: color-mix(in srgb, var(--bg-base) 88%, transparent);
  box-shadow: 0 18px 50px -24px rgba(0,0,0,.8);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.brand-badge {
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff; color: #0a0a16;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 900; font-size: 14px; letter-spacing: -.02em;
  flex-shrink: 0;
}
[data-theme="carbon"] .brand-badge { border-radius: 3px; background: var(--accent); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; color: var(--heading); white-space: nowrap; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  position: relative;
  padding: 9px 14px; border-radius: 999px;
  color: var(--muted); font-size: 15px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s ease, background .2s ease;
}
[data-theme="carbon"] .nav-link { border-radius: 3px; }
.nav-link:hover { color: var(--heading); background: var(--surface-2); }
.nav-link .caret { width: 9px; height: 9px; transition: transform .25s ease; opacity: .7; }
.has-dropdown.open .nav-link .caret { transform: rotate(180deg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .18s ease, background .25s ease, box-shadow .25s ease, color .25s ease;
}
[data-theme="carbon"] .btn { border-radius: 3px; }
.btn-ghost { border: 1px solid var(--border-strong); color: var(--heading); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-1px); }
.btn-solid {
  background: var(--accent); color: #07120c;
  box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 60%, transparent);
}
[data-theme="aurora"] .btn-solid { background: linear-gradient(110deg, var(--accent-3), var(--accent-2)); color: #fff; }
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-lg { padding: 16px 30px; font-size: 17px; }

/* dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translate(-50%, 8px);
  width: 460px; max-width: 86vw;
  background: color-mix(in srgb, var(--bg-base) 90%, transparent);
  backdrop-filter: blur(22px);
  border: 1px solid var(--border); border-radius: 20px;
  padding: 14px; opacity: 0; visibility: hidden;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.85);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
[data-theme="carbon"] .dropdown { border-radius: 4px; }
.has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-links > .has-dropdown:last-child .dropdown,
.nav-links > .has-dropdown:nth-last-child(2) .dropdown { left: auto; right: 0; transform: translate(0, 8px); }
.nav-links > .has-dropdown:last-child.open .dropdown,
.nav-links > .has-dropdown:nth-last-child(2).open .dropdown { transform: translate(0, 0); }
.dd-item { display: flex; gap: 12px; padding: 12px 14px; border-radius: 14px; transition: background .18s ease; align-items: flex-start; }
[data-theme="carbon"] .dd-item { border-radius: 3px; }
.dd-item:hover { background: var(--surface-2); }
.dd-icon { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: 13px; font-weight: 600; border: 1px solid var(--border); color: var(--accent); }
.dd-title { font-weight: 600; color: var(--heading); font-size: 15px; }
.dd-sub { font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.4; }

/* mobile nav toggle */
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border-strong); align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--heading); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--heading); }
.nav-toggle span::before { top: -5px; } .nav-toggle span::after { top: 5px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(118px, 16vw, 168px); padding-bottom: 0; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 56px);
  align-items: end;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: calc(clamp(56px, 9vw, 132px) * var(--headline-scale));
  line-height: .92;
  letter-spacing: -.035em;
}
.hero h1 .line-1 { color: var(--heading); display: block; }
.hero h1 .line-grad {
  display: block;
  background: var(--hero-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { margin-top: clamp(28px, 4vw, 44px); max-width: 560px; font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); line-height: 1.55; }
.hero-lead strong { color: var(--text); font-weight: 600; }

.stat-row { display: grid; grid-template-columns: repeat(4, auto); gap: clamp(22px, 3vw, 46px); margin-top: clamp(34px, 5vw, 56px); padding-top: 34px; border-top: 1px solid var(--border); }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); line-height: 1; letter-spacing: -.02em; }
.stat .label { font-size: 13.5px; color: var(--muted); margin-top: 10px; max-width: 150px; }
.stat:nth-child(1) .num { color: var(--accent); }
.stat:nth-child(2) .num { color: var(--accent-2); }
.stat:nth-child(3) .num { color: var(--accent-3); }
.stat:nth-child(4) .num { color: var(--accent-4); }

/* portrait */
.portrait {
  position: relative;
  border-radius: clamp(22px, 3vw, 34px);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  aspect-ratio: 4 / 5;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9);
}
[data-theme="carbon"] .portrait { border-radius: 4px; }
[data-theme="aurora"] .portrait { box-shadow: 0 40px 100px -36px color-mix(in srgb, var(--accent-3) 50%, transparent); }
.portrait image-slot { width: 100%; height: 100%; }
.portrait-tag {
  position: absolute; left: 22px; bottom: 22px; right: 22px; z-index: 3;
  display: flex; flex-direction: column;
}
.portrait-tag .pt-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: #fff; }
.portrait-tag .pt-sub { font-size: 14px; color: rgba(255,255,255,.72); margin-top: 2px; }
.portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.72)); z-index: 2; pointer-events: none; }

/* marquee */
.marquee { margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); position: relative; z-index: 1; overflow: hidden; }
.gradient-line { height: 2px; width: 100%; background: linear-gradient(90deg, var(--green), var(--blue), var(--violet)); opacity: .9; }
[data-theme="carbon"] .gradient-line { background: var(--accent); }
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee var(--marquee-dur, 38s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; padding: 20px 30px; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 30px; }
.marquee-item::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); }
.marquee-item.hl-green { color: var(--green); } .marquee-item.hl-blue { color: var(--blue); } .marquee-item.hl-violet { color: var(--violet); }
[data-theme="carbon"] .marquee-item.hl-green, [data-theme="carbon"] .marquee-item.hl-blue, [data-theme="carbon"] .marquee-item.hl-violet { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ============================================================
   CLIENTS
   ============================================================ */
.clients .wrap { text-align: center; }
.clients-label { font-family: var(--font-mono); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.logo-wall { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.logo-cell { background: var(--bg-base); padding: 30px 26px; display: flex; flex-direction: column; gap: 6px; transition: background .25s ease; text-align: left; }
.logo-cell:hover { background: var(--surface); }
.lc-name { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -.01em; color: var(--heading); }
.lc-cat { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lc-mark { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; background: #fff; display: grid; place-items: center; margin-bottom: 16px; box-shadow: 0 2px 10px -4px rgba(0,0,0,.5); }
.lc-mark img { width: 28px; height: 28px; object-fit: contain; }
.lc-mark .lc-fallback { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: #0a0a16; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.about-photo { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4/5; background: var(--surface); }
.about-photo image-slot { width: 100%; height: 100%; }
.about-body p { color: var(--muted); font-size: 19px; line-height: 1.65; margin-top: 20px; }
.about-body p:first-child { margin-top: 0; }
.about-body strong { color: var(--text); font-weight: 600; }
.creds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.cred { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em; padding: 9px 14px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); }
[data-theme="carbon"] .cred { border-radius: 3px; }
.cred span { color: var(--accent); margin-right: 7px; }

/* ============================================================
   SERVICES
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc-card {
  position: relative; padding: 26px 24px 28px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(var(--card-blur));
  min-height: 230px; display: flex; flex-direction: column;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
  overflow: hidden;
}
.svc-card::before { content: ""; position: absolute; inset: 0; opacity: 0; background: radial-gradient(420px 200px at 50% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); transition: opacity .35s ease; }
.svc-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.svc-card:hover::before { opacity: 1; }
.svc-idx { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.svc-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 23px; color: var(--heading); margin-top: 14px; letter-spacing: -.01em; }
.svc-card p { font-size: 15px; color: var(--muted); margin-top: 10px; line-height: 1.5; position: relative; }
.svc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-top: auto; }
.svc-card:nth-child(4n+1) .svc-dot { background: var(--accent); }
.svc-card:nth-child(4n+2) .svc-dot { background: var(--accent-2); }
.svc-card:nth-child(4n+3) .svc-dot { background: var(--accent-3); }
.svc-card:nth-child(4n) .svc-dot { background: var(--accent-4); }

/* ============================================================
   PROCESS
   ============================================================ */
.proc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--border); }
.proc-step { padding: 34px 26px 30px; border-right: 1px solid var(--border); position: relative; }
.proc-step:last-child { border-right: none; }
.proc-num { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--accent); font-feature-settings: "tnum"; }
.proc-step h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--heading); margin-top: 18px; }
.proc-step p { font-size: 15px; color: var(--muted); margin-top: 12px; line-height: 1.55; }

/* ============================================================
   CASE STUDIES
   ============================================================ */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.case-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); backdrop-filter: blur(var(--card-blur));
  padding: 30px; cursor: pointer; overflow: hidden;
  transition: transform .3s ease, border-color .3s ease;
}
.case-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.case-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.case-brand { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--heading); }
.case-vert { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.case-tag { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; padding: 7px 11px; border: 1px solid var(--border); border-radius: 999px; color: var(--accent); white-space: nowrap; }
[data-theme="carbon"] .case-tag { border-radius: 3px; }
.case-metrics { display: flex; gap: 30px; margin-top: 28px; }
.case-metric .m-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.02em; line-height: 1; }
.case-metric:nth-child(1) .m-num { color: var(--accent); }
.case-metric:nth-child(2) .m-num { color: var(--accent-2); }
.case-metric:nth-child(3) .m-num { color: var(--accent-3); }
.case-metric .m-label { font-size: 13px; color: var(--muted); margin-top: 8px; }
.case-detail { max-height: 0; overflow: hidden; transition: max-height .45s cubic-bezier(.4,0,.2,1), margin-top .45s ease, opacity .35s ease; opacity: 0; }
.case-card.open .case-detail { max-height: 720px; margin-top: 26px; opacity: 1; }
.case-detail-inner { border-top: 1px solid var(--border); padding-top: 22px; }
.case-detail p { font-size: 15.5px; color: var(--muted); line-height: 1.6; }
.case-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.case-chip { font-family: var(--font-mono); font-size: 11.5px; padding: 6px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); }
[data-theme="carbon"] .case-chip { border-radius: 3px; }
.case-expand { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.case-expand .pm { transition: transform .3s ease; display: inline-block; font-size: 15px; }
.case-card.open .case-expand .pm { transform: rotate(45deg); }
.case-fulllink { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.case-fulllink:hover { color: var(--heading); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 30px; display: flex; flex-direction: column; }
.quote .mark { font-family: var(--font-display); font-weight: 900; font-size: 46px; line-height: .6; color: var(--accent); }
.quote p { font-size: 17px; color: var(--text); line-height: 1.55; margin-top: 18px; flex: 1; }
.quote-by { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.q-av { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--heading); }
.q-name { font-weight: 600; color: var(--heading); font-size: 15px; }
.q-role { font-size: 13px; color: var(--muted); }

/* ============================================================
   WHY FOUNDERS HIRE ME
   ============================================================ */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); backdrop-filter: blur(var(--card-blur)); padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; min-height: 212px; transition: transform .3s ease, border-color .3s ease; }
.why-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.why-card .wn { font-family: var(--font-mono); font-size: 13px; }
.why-card:nth-child(1) .wn { color: var(--accent); }
.why-card:nth-child(2) .wn { color: var(--accent-2); }
.why-card:nth-child(3) .wn { color: var(--accent-3); }
.why-card:nth-child(4) .wn { color: var(--accent-4); }
.why-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--heading); letter-spacing: -.01em; }
.why-card p { color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ============================================================
   SELECTED WORK (gallery)
   ============================================================ */
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 215px; grid-auto-flow: dense; gap: 14px; }
.work-item { position: relative; overflow: hidden; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); }
.work-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2,.6,.2,1); }
.work-item:hover img { transform: scale(1.05); }
.work-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(0,0,0,.8)); transition: opacity .3s ease; }
.wi-feature { grid-column: span 2; grid-row: span 2; }
.wi-wide { grid-column: span 2; }
.work-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 3px; }
.work-cap .wc-brand { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #fff; letter-spacing: -.01em; }
.work-cap .wc-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.74); }
@media (max-width: 900px) { .work-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 168px; } }
@media (max-width: 560px) { .work-grid { grid-auto-rows: 140px; } }

/* insight description + case before/after */
.insight-body p { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin-top: 12px; }
.case-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.case-ba figure { position: relative; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.case-ba img { width: 100%; display: block; aspect-ratio: 16 / 10; object-fit: cover; }
.case-ba figcaption { position: absolute; top: 10px; left: 10px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: rgba(0,0,0,.62); color: #fff; }

/* ============================================================
   INSIGHTS
   ============================================================ */
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.insight { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); transition: transform .3s ease, border-color .3s ease; display: flex; flex-direction: column; }
.insight:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.insight-thumb { aspect-ratio: 16/10; background:
   repeating-linear-gradient(135deg, var(--surface-2) 0 10px, transparent 10px 20px), var(--bg-base);
   display: grid; place-items: center; border-bottom: 1px solid var(--border); position: relative; }
.insight-cat { position: absolute; top: 14px; left: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: color-mix(in srgb, var(--bg-base) 80%, transparent); border: 1px solid var(--border); color: var(--accent); }
[data-theme="carbon"] .insight-cat { border-radius: 3px; }
.insight-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.insight-body h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--heading); line-height: 1.2; letter-spacing: -.01em; }
.insight-meta { margin-top: auto; padding-top: 20px; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); display: flex; gap: 14px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-card { border: 1px solid var(--border-strong); border-radius: clamp(24px, 4vw, 40px); padding: clamp(40px, 6vw, 80px); background: var(--surface); backdrop-filter: blur(var(--card-blur)); position: relative; overflow: hidden; text-align: center; }
[data-theme="carbon"] .contact-card { border-radius: 4px; }
.contact-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 360px at 50% -20%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%); pointer-events: none; }
.contact-card h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(38px, 6vw, 76px); line-height: .98; letter-spacing: -.03em; color: var(--heading); position: relative; }
.contact-card h2 em { font-style: normal; background: linear-gradient(100deg, var(--accent), var(--accent-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="carbon"] .contact-card h2 em { background: none; color: var(--accent); }
.contact-card p { color: var(--muted); font-size: 19px; margin-top: 22px; max-width: 520px; margin-inline: auto; position: relative; }
.contact-actions { display: flex; gap: 14px; justify-content: center; margin-top: 38px; flex-wrap: wrap; position: relative; }
.contact-meta { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 44px; position: relative; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.contact-meta a:hover { color: var(--heading); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--border); margin-top: clamp(80px, 10vw, 140px); padding-block: 56px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { color: var(--muted); font-size: 15px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text); font-size: 15px; padding: 5px 0; transition: color .2s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--muted); font-family: var(--font-mono); }

/* ============================================================
   CONTACT MODAL
   ============================================================ */
.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(4,4,10,.7); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal { width: 100%; max-width: 560px; background: var(--bg-base); border: 1px solid var(--border-strong); border-radius: 24px; padding: clamp(28px, 4vw, 44px); position: relative; transform: translateY(16px) scale(.98); transition: transform .3s cubic-bezier(.34,1.3,.5,1); max-height: 92vh; overflow-y: auto; }
[data-theme="carbon"] .modal { border-radius: 4px; }
.modal-overlay.open .modal { transform: none; }
.modal-close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); font-size: 18px; transition: all .2s ease; }
.modal-close:hover { color: var(--heading); border-color: var(--border-strong); }
.modal h3 { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--heading); letter-spacing: -.02em; }
.modal .sub { color: var(--muted); margin-top: 8px; font-size: 16px; }
.form { margin-top: 28px; display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field.row2 { grid-template-columns: 1fr 1fr; display: grid; gap: 16px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font-family: var(--font-body); font-size: 15px; transition: border-color .2s ease, background .2s ease;
}
[data-theme="carbon"] .field input, [data-theme="carbon"] .field select, [data-theme="carbon"] .field textarea { border-radius: 3px; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface-2); }
.field.invalid input, .field.invalid select { border-color: #ff6b6b; }
.field .err { font-size: 12px; color: #ff8585; display: none; }
.field.invalid .err { display: block; }
.modal .btn-solid { width: 100%; margin-top: 6px; }
.form-success { text-align: center; padding: 20px 0; }
.form-success .check { width: 64px; height: 64px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 18%, transparent); border: 1px solid var(--accent); color: var(--accent); display: grid; place-items: center; margin: 0 auto 20px; font-size: 28px; }
.form-success h3 { margin-bottom: 8px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .proc-grid { grid-template-columns: repeat(2, 1fr); }
  .proc-step:nth-child(2) { border-right: none; }
  .proc-step:nth-child(1), .proc-step:nth-child(2) { border-bottom: 1px solid var(--border); }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .quote-grid { grid-template-columns: 1fr; }
  .insight-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) and (min-width: 901px) {
  .nav { gap: 14px; }
  .nav-link { padding: 9px 10px; font-size: 14px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.mobile-open { display: flex; position: absolute; top: calc(100% + 12px); left: 0; right: 0; flex-direction: column; align-items: stretch; background: color-mix(in srgb, var(--bg-base) 96%, transparent); border: 1px solid var(--border); border-radius: 20px; padding: 14px; gap: 4px; backdrop-filter: blur(20px); }
  .nav-links.mobile-open .nav-link { justify-content: flex-start; }
  .nav-links.mobile-open .dropdown { position: static; transform: none; width: 100%; opacity: 1; visibility: visible; display: none; box-shadow: none; border: none; padding: 0 0 0 12px; grid-template-columns: 1fr; }
  .nav-links.mobile-open .has-dropdown.open .dropdown { display: grid; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 440px; margin-top: 12px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; }
  .case-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .svc-grid { grid-template-columns: 1fr; }
  .proc-grid { grid-template-columns: 1fr; }
  .proc-step { border-right: none; border-bottom: 1px solid var(--border); }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .field.row2 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .brand-name { display: none; }
}

/* ============================================================
   INNER PAGES
   ============================================================ */
.page-hero { padding-top: clamp(150px, 16vw, 196px); padding-bottom: clamp(28px, 4vw, 48px); }
.page-hero h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(46px, 7vw, 92px); line-height: .95; letter-spacing: -.03em; color: var(--heading); margin-top: 20px; }
.page-hero h1 .grad { background: var(--hero-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero .lead { margin-top: 26px; max-width: 640px; font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); line-height: 1.55; }

.rich p { color: var(--muted); font-size: 18px; line-height: 1.7; margin-top: 18px; }
.rich p:first-child { margin-top: 0; }
.rich p strong { color: var(--text); font-weight: 600; }
.rich h3 { font-family: var(--font-display); font-weight: 700; font-size: 25px; color: var(--heading); margin-top: 42px; margin-bottom: 2px; letter-spacing: -.01em; }

/* feature list (services) */
.feature-list { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.feature-row { background: var(--bg-base); padding: 34px 30px; display: grid; grid-template-columns: 240px 1fr; gap: 36px; scroll-margin-top: 120px; transition: background .25s ease; }
.feature-row:hover { background: var(--surface); }
.feature-row .fr-idx { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.feature-row h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 2.4vw, 30px); color: var(--heading); letter-spacing: -.02em; margin-top: 10px; }
.feature-row .fr-body > p { color: var(--muted); font-size: 17px; line-height: 1.65; }
.feature-row ul.fr-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.feature-row ul.fr-points li { font-family: var(--font-mono); font-size: 12.5px; color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 8px 13px; }
[data-theme="carbon"] .feature-row ul.fr-points li { border-radius: 3px; }
@media (max-width: 760px) { .feature-row { grid-template-columns: 1fr; gap: 14px; } }

/* FAQ */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-family: var(--font-display); font-weight: 600; font-size: clamp(19px, 2vw, 23px); color: var(--heading); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { font-size: 24px; color: var(--accent); transition: transform .3s ease; flex-shrink: 0; line-height: 1; }
.faq details[open] summary .pm { transform: rotate(45deg); }
.faq .faq-a { padding: 0 0 26px; color: var(--muted); font-size: 17px; line-height: 1.7; max-width: 800px; }

/* resource cards */
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.res-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 30px; transition: transform .3s ease, border-color .3s ease; display: flex; flex-direction: column; gap: 12px; min-height: 220px; }
.res-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.res-card .res-k { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.res-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--heading); letter-spacing: -.01em; }
.res-card p { color: var(--muted); font-size: 15px; line-height: 1.55; flex: 1; }
.res-card .res-go { font-family: var(--font-mono); font-size: 12.5px; color: var(--text); }
@media (max-width: 900px) { .res-grid { grid-template-columns: 1fr; } }

/* big stat band */
.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.statband > div { background: var(--bg-base); padding: 34px 26px; }
.statband .sb-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 4vw, 46px); letter-spacing: -.02em; line-height: 1; }
.statband > div:nth-child(1) .sb-num { color: var(--accent); }
.statband > div:nth-child(2) .sb-num { color: var(--accent-2); }
.statband > div:nth-child(3) .sb-num { color: var(--accent-3); }
.statband > div:nth-child(4) .sb-num { color: var(--accent-4); }
.statband .sb-label { font-size: 14px; color: var(--muted); margin-top: 10px; }
@media (max-width: 720px) { .statband { grid-template-columns: 1fr 1fr; } }

/* industry chips */
.chips-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-family: var(--font-mono); font-size: 13px; letter-spacing: .03em; padding: 10px 16px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); }
[data-theme="carbon"] .chip { border-radius: 3px; }
.chip span { color: var(--accent); margin-right: 7px; }

/* ============================================================
   ARTICLE / CASE DETAIL
   ============================================================ */
.article-hero { padding-top: clamp(140px, 15vw, 184px); padding-bottom: 6px; }
.article-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 5.2vw, 66px); line-height: 1.03; letter-spacing: -.025em; color: var(--heading); margin-top: 18px; max-width: 20ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); align-items: center; }
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); }
.back-link { font-family: var(--font-mono); font-size: 13px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.back-link:hover { color: var(--heading); }

.article-body { max-width: 760px; }
.article-body > p { color: var(--text); font-size: 18.5px; line-height: 1.78; margin-top: 22px; }
.article-body .lede { font-size: 22px; color: var(--text); line-height: 1.6; font-weight: 500; }
.article-body h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3vw, 34px); color: var(--heading); margin-top: 50px; letter-spacing: -.02em; }
.article-body h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--heading); margin-top: 34px; }
.article-body ul { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.article-body ul li { position: relative; padding-left: 26px; color: var(--muted); font-size: 17.5px; line-height: 1.6; }
.article-body ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.article-body strong { color: var(--heading); font-weight: 600; }
.article-body blockquote { margin: 34px 0 0; padding: 6px 0 6px 26px; border-left: 2px solid var(--accent); font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.4vw, 27px); color: var(--heading); line-height: 1.32; }

.callout { margin-top: 38px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 28px 30px; }
.callout h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.callout ul { margin-top: 0; }
.callout ul li::before { background: var(--accent-2); }

.article-fig { margin-top: 34px; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.article-fig img { width: 100%; display: block; }
.article-fig figcaption { padding: 12px 16px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); }

/* case detail: body + sticky aside */
.case-layout { display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: start; }
.case-aside { position: sticky; top: 108px; display: flex; flex-direction: column; gap: 16px; }
.aside-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 8px 24px; }
.ac-row { padding: 16px 0; border-bottom: 1px solid var(--border); }
.ac-row:last-child { border-bottom: none; }
.ac-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ac-v { color: var(--heading); font-size: 15px; margin-top: 6px; }
@media (max-width: 920px) { .case-layout { grid-template-columns: 1fr; gap: 32px; } .case-aside { position: static; flex-direction: row; flex-wrap: wrap; } .aside-card { flex: 1; min-width: 240px; } }

.result-row { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 8px; padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.result-row .rr-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 4vw, 48px); letter-spacing: -.02em; line-height: 1; }
.result-row > div:nth-child(1) .rr-num { color: var(--accent); }
.result-row > div:nth-child(2) .rr-num { color: var(--accent-2); }
.result-row > div:nth-child(3) .rr-num { color: var(--accent-3); }
.result-row > div:nth-child(4) .rr-num { color: var(--accent-4); }
.result-row .rr-label { font-size: 13.5px; color: var(--muted); margin-top: 8px; }

/* prev/next article footer */
.post-cta { border-top: 1px solid var(--border); margin-top: 60px; padding-top: 40px; }

/* ============================================================
   Mobile polish: nav alignment + readable homepage headline
   Added June 2026
   ============================================================ */
@media (max-width: 900px) {
  .nav-shell {
    top: 10px;
    padding-inline: 18px;
  }

  .nav {
    align-items: center;
    gap: 10px;
    padding: 10px 10px 10px 14px;
  }

  .brand {
    min-width: 0;
    gap: 10px;
  }

  .brand-badge {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .brand-name {
    display: none;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
    margin-left: auto;
    flex: 0 0 42px;
  }

  .nav > .btn {
    padding: 11px 17px;
    font-size: 15px;
    flex: 0 0 auto;
  }

  .hero {
    padding-top: 108px;
  }

  .hero h1 {
    font-size: clamp(46px, 13.2vw, 64px) !important;
    line-height: .94;
    letter-spacing: -.035em;
  }

  .hero h1 .line-1,
  .hero h1 .line-grad {
    font-size: inherit !important;
    letter-spacing: inherit !important;
  }

  .hero-lead {
    margin-top: 26px;
    font-size: clamp(18px, 5.1vw, 21px);
    line-height: 1.48;
  }
}

@media (max-width: 560px) {
  :root {
    --pad: 24px;
  }

  .nav-shell {
    padding-inline: 22px;
  }

  .nav {
    border-radius: 999px;
    padding: 10px 10px 10px 14px;
  }

  .nav > .btn {
    padding: 10px 18px;
    font-size: 14px;
  }

  .hero {
    padding-top: 112px;
  }

  .hero h1 {
    font-size: clamp(44px, 12.2vw, 54px) !important;
    line-height: .96;
    max-width: 9.8ch;
  }

  .hero-lead {
    font-size: 18px;
  }

  .stat-row {
    margin-top: 34px;
    padding-top: 30px;
  }
}


/* ========================= PRICING ========================= */
.pricing { position: relative; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.price-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(var(--card-blur));
  padding: clamp(24px, 3vw, 34px);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease;
}
.price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(460px 240px at 50% -10%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%);
  transition: opacity .35s ease;
  pointer-events: none;
}
.price-card:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.price-card:hover::before { opacity: 1; }
.price-card.featured { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.price-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #05120f;
  background: var(--accent);
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 800;
}
.price-top, .price-list, .price-card .btn { position: relative; z-index: 1; }
.price-kicker {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.price-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--heading);
  font-size: clamp(23px, 2.2vw, 30px);
  line-height: 1.02;
  letter-spacing: -.03em;
  max-width: 320px;
}
.price {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 54px);
  line-height: .9;
  letter-spacing: -.05em;
  color: var(--heading);
  font-weight: 900;
}
.price span { font-size: .38em; letter-spacing: -.02em; color: var(--muted); font-weight: 700; }
.price-top p { color: var(--muted); margin-top: 18px; font-size: 15px; line-height: 1.55; }
.price-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 30px 0;
  padding: 0;
}
.price-list li {
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.price-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 900;
  line-height: 1.2;
}
.price-card .btn { width: 100%; justify-content: center; }
.pricing-note {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 8px);
  padding: 18px 20px;
  color: var(--muted);
  background: var(--surface-2);
  font-size: 15px;
  line-height: 1.55;
}
.pricing-note strong { color: var(--heading); }
.custom-pricing-grid { grid-template-columns: repeat(3, 1fr); }
.custom-price { font-size: clamp(34px, 3.8vw, 48px); }
@media (max-width: 1100px) { .custom-pricing-grid { grid-template-columns: 1fr; } }


@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card { min-height: 470px; }
}

@media (max-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card { min-height: auto; }
  .price-badge { top: 16px; right: 16px; }
  .price-card h3 { max-width: 280px; }
}

/* ============================================================
   Mobile hero headline layout: 3-line lockup like desktop
   ============================================================ */
@media (max-width: 900px) {
  .hero h1 {
    width: 100%;
    max-width: none !important;
    font-size: clamp(42px, 12.8vw, 68px) !important;
    line-height: .94 !important;
    letter-spacing: -.055em !important;
  }

  .hero h1 .line-1,
  .hero h1 .line-grad {
    display: block;
    width: 100%;
    max-width: none !important;
    white-space: nowrap;
    font-size: inherit !important;
    letter-spacing: inherit !important;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: clamp(41px, 12.1vw, 54px) !important;
    line-height: .95 !important;
    max-width: none !important;
  }

  .hero h1 .line-1,
  .hero h1 .line-grad {
    white-space: nowrap;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: clamp(38px, 11.4vw, 47px) !important;
    letter-spacing: -.06em !important;
  }
}

/* Remove hero headline shadow/gradient depth for a cleaner mobile + desktop headline */
.hero h1,
.hero h1 .line-1,
.hero h1 .line-grad {
  text-shadow: none !important;
  filter: none !important;
}

.hero h1 .line-grad {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  color: var(--heading) !important;
  -webkit-text-fill-color: var(--heading) !important;
}

/* ============================================================
   Custom pricing UI cleanup
   ============================================================ */
.custom-pricing {
  padding-block: clamp(82px, 9vw, 122px);
}
.custom-pricing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .72fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}
.custom-pricing-copy {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(600px 360px at 8% 0%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 68%),
    var(--surface);
  padding: clamp(30px, 5vw, 58px);
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.custom-pricing-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(42px, 6.6vw, 84px);
  line-height: .94;
  letter-spacing: -.055em;
  color: var(--heading);
  max-width: 760px;
  margin-top: 22px;
}
.custom-pricing-copy p {
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  max-width: 760px;
  margin-top: 24px;
}
.custom-pricing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.custom-pricing-panel {
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) + 6px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.026)),
    var(--surface);
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 430px;
  overflow: hidden;
  position: relative;
}
.custom-pricing-panel::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  bottom: -110px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-2) 28%, transparent);
  filter: blur(22px);
  opacity: .55;
}
.panel-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  position: relative;
  z-index: 1;
}
.pricing-factor-list {
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.pricing-factor-list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--heading);
  font-weight: 700;
  letter-spacing: -.01em;
}
.pricing-factor-list span::after {
  content: "↗";
  color: var(--muted);
  font-weight: 600;
}
.custom-pricing-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.custom-step-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(24px, 3vw, 34px);
  min-height: 260px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.custom-step-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.custom-step-card.is-featured {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}
.custom-step-card span {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: .14em;
}
.custom-step-card h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.05;
  color: var(--heading);
  margin-top: 24px;
  letter-spacing: -.035em;
}
.custom-step-card p {
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.55;
}
.custom-pricing-note {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 6px);
  background: rgba(255,255,255,.035);
  padding: 18px 20px;
  color: var(--muted);
  line-height: 1.55;
}
.custom-pricing-note strong { color: var(--heading); }

@media (max-width: 980px) {
  .custom-pricing-hero,
  .custom-pricing-steps {
    grid-template-columns: 1fr;
  }
  .custom-pricing-copy,
  .custom-pricing-panel {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .custom-pricing {
    padding-block: 70px;
  }
  .custom-pricing-copy,
  .custom-pricing-panel,
  .custom-step-card {
    border-radius: 22px;
    padding: 24px;
  }
  .custom-pricing-copy h2 {
    font-size: clamp(38px, 12vw, 58px);
    line-height: .96;
  }
  .custom-pricing-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .pricing-factor-list span {
    font-size: 15px;
    padding: 12px 0;
  }
}

/* Service card click overlay: keeps all card titles visually consistent */
.svc-card-link {
  position: absolute;
  inset: 0;
  z-index: 4;
  font-size: 0;
  color: transparent;
  text-indent: -9999px;
}
.svc-card .svc-idx,
.svc-card h3,
.svc-card p,
.svc-card .svc-dot {
  position: relative;
  z-index: 2;
}
.svc-card:has(.svc-card-link) { cursor: pointer; }
