:root {
  --bg: #0b0d12;
  --bg-2: #11141b;
  --card: #151924;
  --border: #232838;
  --text: #e6e8ee;
  --muted: #8b93a7;
  --accent: #7c9cff;
  --accent-2: #a78bfa;
  --radius: 14px;
  --max: 1000px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* soft background glow */
.glow {
  position: fixed; inset: -20% -10% auto auto;
  width: 60vw; height: 60vw; max-width: 700px; max-height: 700px;
  background: radial-gradient(circle, rgba(124,156,255,.14), transparent 65%);
  pointer-events: none; z-index: -1;
}

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 5vw, 48px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(11,13,18,.75);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.nav.scrolled { border-bottom-color: var(--border); }
.logo { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.logo-sub { color: var(--muted); font-weight: 500; }
.logo-mark { width: 26px; height: 26px; }
.grad {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.links { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 28px); font-size: .95rem; white-space: nowrap; }
.links a:not(.btn) { color: var(--muted); transition: color .2s; }
.links a:not(.btn):hover { color: var(--text); }
.menu-btn { display: none; }

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0d12; font-weight: 600;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124,156,255,.3); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); box-shadow: none; }
.btn-small { padding: 8px 16px; font-size: .9rem; }

/* LAYOUT */
main { max-width: var(--max); margin: 0 auto; padding: 0 clamp(16px, 5vw, 48px); }
.section { padding: 110px 0; }

/* HERO */
.hero {
  min-height: calc(100vh - 70px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center;
  padding: 60px 0;
}
.portrait { position: relative; margin: 0; }
.portrait::before {
  content: ""; position: absolute; inset: -1px;
  border-radius: calc(var(--radius) + 6px); transform: translate(14px, 14px);
  border: 1px solid rgba(124,156,255,.45);
}
.portrait img {
  position: relative; display: block; width: 100%; height: auto;
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.eyebrow { color: var(--accent); margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05; letter-spacing: -.04em;
}
.hero h2 {
  font-size: clamp(1.6rem, 4.2vw, 2.6rem);
  line-height: 1.1; letter-spacing: -.03em;
  margin-top: 6px;
}
.lead { max-width: 540px; color: var(--muted); margin: 26px 0 36px; font-size: 1.05rem; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* SECTION TITLES */
.section-title {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.7rem; letter-spacing: -.02em; margin-bottom: 40px;
}
.section-title .mono { color: var(--accent); font-size: 1.1rem; }
.section-title::after {
  content: ""; flex: 1; max-width: 280px; height: 1px; background: var(--border);
}

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }

/* CARDS */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column;
  transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(124,156,255,.5); }
.card h4 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.icon { width: 36px; height: 36px; color: var(--accent); margin-bottom: 22px; }

/* CASE STUDY */
.case {
  background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px);
  padding: clamp(24px, 4vw, 44px);
  background-image: radial-gradient(circle at 100% 0%, rgba(167,139,250,.12), transparent 45%);
}
.case-tag { font-size: .8rem; margin-bottom: 10px; }
.case-head h4 { font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.25; letter-spacing: -.02em; max-width: 720px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 32px 0; }
.stat {
  display: flex; flex-direction: column; gap: 4px;
  padding: 20px; border-radius: var(--radius);
  background: rgba(11,13,18,.5); border: 1px solid var(--border);
  font-size: .9rem; line-height: 1.4;
}
.stat-num { font-size: 2.2rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.case-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.case-body h5 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 8px; }
.case-body p { color: var(--muted); font-size: .95rem; margin-bottom: 12px; }
.case-body p:last-child { margin-bottom: 0; }

/* APPROACH */
.about-grid p { color: var(--muted); margin-bottom: 16px; font-size: 1.05rem; }
.steps { list-style: none; display: grid; gap: 14px; }
.steps li {
  display: flex; gap: 18px; padding: 18px 20px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
}
.steps .mono { color: var(--accent); font-size: .85rem; padding-top: 3px; }
.steps h4 { font-size: 1.05rem; margin-bottom: 2px; }
.steps p { color: var(--muted); font-size: .92rem; margin: 0; }

/* TESTIMONIALS */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.quote {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; position: relative;
}
.quote::before {
  content: "“"; position: absolute; top: 6px; right: 22px;
  font-size: 5rem; line-height: 1; font-family: Georgia, serif;
  color: var(--accent); opacity: .25;
}
.quote blockquote { color: #c7cbd6; font-size: .98rem; margin-bottom: 24px; }
.quote figcaption { display: flex; align-items: center; gap: 14px; font-size: .92rem; line-height: 1.4; }
.initial {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: #0b0d12;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* FIND ME */
.find { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.find-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 22px 24px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border);
  transition: transform .2s, border-color .2s;
}
.find-card:hover { transform: translateY(-3px); border-color: rgba(124,156,255,.5); }
.find-card > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.find-card strong { font-size: 1.05rem; }
.find-card .mono { font-size: .78rem; overflow-wrap: anywhere; }
.find-card .ext { width: 20px; height: 20px; flex: none; color: var(--muted); transition: color .2s; }
.find-card:hover .ext { color: var(--accent); }

.dots { display: none; }

/* CONTACT */
.contact { text-align: center; max-width: 560px; margin: 0 auto; }
.contact h3 { font-size: clamp(2.2rem, 6vw, 3.2rem); letter-spacing: -.03em; margin: 10px 0 16px; }
.contact p.muted { margin-bottom: 36px; }

/* FOOTER */
.footer { text-align: center; padding: 40px 16px; color: var(--muted); font-size: .85rem; }
.socials { display: flex; justify-content: center; gap: 24px; margin-bottom: 12px; }
.socials a:hover { color: var(--accent); }

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* MOBILE */
@media (max-width: 880px) {
  .menu-btn {
    display: flex; flex-direction: column; gap: 6px;
    background: none; border: 0; cursor: pointer; padding: 8px; z-index: 20;
  }
  .menu-btn span { width: 24px; height: 2px; background: var(--text); transition: transform .3s; }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .links {
    position: fixed; inset: 0 0 0 30%;
    flex-direction: column; justify-content: center; gap: 32px;
    background: var(--bg-2); border-left: 1px solid var(--border);
    font-size: 1.1rem;
    transform: translateX(100%); visibility: hidden;
    transition: transform .3s ease, visibility .3s;
  }
  .links.open { transform: none; visibility: visible; }
  .about-grid, .stats, .case-body, .find { grid-template-columns: 1fr; }

  /* services: 2x2 grid */
  .cards { gap: 12px; }
  .card { padding: 18px 16px; }
  .card .icon { width: 28px; height: 28px; margin-bottom: 14px; }
  .card h4 { font-size: .98rem; line-height: 1.3; margin-bottom: 8px; }
  .card p { font-size: .82rem; line-height: 1.5; }

  /* testimonials: swipeable carousel */
  .quotes {
    display: flex; gap: 14px; align-items: stretch;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(-1 * clamp(16px, 5vw, 48px));
    padding: 0 clamp(16px, 5vw, 48px);
    scroll-padding: 0 clamp(16px, 5vw, 48px);
  }
  .quotes::-webkit-scrollbar { display: none; }
  .quote { flex: 0 0 86%; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; }
  .dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
  .dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: background .2s, width .2s; }
  .dots span.active { width: 22px; border-radius: 4px; background: var(--accent); }
  .stats { margin: 24px 0; }
  .about-grid { gap: 30px; }
  .hero { grid-template-columns: 1fr; gap: 40px; min-height: 0; padding-top: 40px; }
  .portrait { order: -1; width: 180px; }
  .section { padding: 80px 0; }
}
