/* Self-hosted Google Fonts (latin subset) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/inter.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/inter.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/inter.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/jetbrains-mono.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/space-grotesk.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/space-grotesk.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/space-grotesk.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ============================================================
   THEME TOKENS
   Swap a theme by changing these variables. Accent presets are
   applied via [data-accent] on <html>; light/dark via [data-theme].
   ============================================================ */
:root {
  --bg: #07080c;
  --bg-2: #0d0f16;
  --surface: #12151f;
  --surface-2: #181c28;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0f6;
  --muted: #9097a8;
  --faint: #7d8497;

  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --accent-ink: #ffffff;
  --accent-text: #a48dff; /* lighter accent for small text (WCAG AA) */
  --glow: rgba(124, 92, 255, 0.35);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 18px;
  --radius-sm: 10px;
  --max: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f7f7fb;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0f1f7;
  --border: rgba(10, 12, 30, 0.08);
  --border-strong: rgba(10, 12, 30, 0.16);
  --text: #0c0e16;
  --muted: #545b6e;
  --faint: #6b7183;
  --glow: rgba(124, 92, 255, 0.18);
  --accent-text: #5a3de0;
  color-scheme: light;
}

:root[data-accent] { --accent-text: var(--accent); }
:root[data-accent="emerald"] { --accent: #10b981; --accent-2: #a3e635; --glow: rgba(16, 185, 129, .32); }
:root[data-accent="sunset"]  { --accent: #f97316; --accent-2: #f43f5e; --glow: rgba(249, 115, 22, .32); }
:root[data-accent="ocean"]   { --accent: #3b82f6; --accent-2: #22d3ee; --glow: rgba(59, 130, 246, .32); }

/* ============================================================ BASE */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  font: 500 12px/1 var(--font-mono);
  text-transform: uppercase; letter-spacing: .16em; color: var(--accent-text);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }

/* ambient background */
.bg-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-fx::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.orb-1 { width: 520px; height: 520px; background: var(--accent); top: -180px; left: -120px; opacity: .28; }
.orb-2 { width: 420px; height: 420px; background: var(--accent-2); top: 120px; right: -160px; opacity: .18; }

/* ============================================================ BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font: 600 15px/1 var(--font-body); cursor: pointer;
  border: 1px solid var(--border-strong); background: transparent; color: var(--text);
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--accent); }
.btn-primary {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  border-color: transparent; color: var(--accent-ink);
  box-shadow: 0 10px 30px -10px var(--glow);
}
.btn-primary:hover { box-shadow: 0 16px 40px -10px var(--glow); }
.btn svg { width: 18px; height: 18px; }

/* ============================================================ NAV */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font: 700 20px/1 var(--font-display); display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-size: 15px;
}
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer;
  transition: border-color .2s;
}
.icon-btn:hover { border-color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; position: relative; }
.menu-btn .bar {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.menu-btn .bar:nth-child(1) { top: 15px; }
.menu-btn .bar:nth-child(2) { top: 22px; }
.menu-btn[aria-expanded="true"] .bar:nth-child(1) { top: 18.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .bar:nth-child(2) { top: 18.5px; transform: rotate(-45deg); }
.nav.menu-open { background: transparent; backdrop-filter: none; border-color: transparent; }
body.no-scroll { overflow: hidden; }

/* full-screen mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; justify-content: space-between;
  gap: 40px; padding: 104px 24px 32px; overflow-y: auto; background: var(--bg);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.mobile-menu::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px 320px at 85% 0%, var(--glow), transparent 70%),
              radial-gradient(360px 300px at 0% 100%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 70%);
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mm-links { display: flex; flex-direction: column; }
.mm-links a {
  display: flex; align-items: baseline; gap: 16px; padding: 14px 0;
  font: 600 clamp(32px, 9vw, 46px)/1.1 var(--font-display); letter-spacing: -0.02em;
  border-bottom: 1px solid var(--border);
  opacity: 0; transform: translateY(22px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .2s;
  transition-delay: calc(var(--i) * 55ms + 60ms);
}
.mm-links a span { font: 500 12px var(--font-mono); color: var(--accent-text); transform: translateY(-14px); }
.mm-links a:active { color: var(--accent); }
.mm-foot { display: grid; gap: 14px; opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease) .35s, transform .5s var(--ease) .35s; }
.mm-mail { font-size: 18px; font-weight: 600; word-break: break-all; }
.mm-social { display: flex; gap: 22px; color: var(--muted); font-size: 15px; }
.mm-social a { padding: 6px 0; }
.mm-cta { justify-content: center; margin-top: 6px; padding: 16px 22px; }
.mobile-menu.open .mm-links a, .mobile-menu.open .mm-foot { opacity: 1; transform: none; }
@media (min-width: 861px) { .mobile-menu { display: none; } }

.theme-pop {
  position: absolute; top: 64px; right: 20px; padding: 14px; width: 220px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.5);
  display: none;
}
.theme-pop.open { display: block; }
.theme-pop p { font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 10px; }
.swatches { display: flex; gap: 10px; margin-bottom: 14px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.swatch[aria-pressed="true"] { border-color: var(--text); }
.mode-row { display: flex; gap: 8px; }
.mode-row button {
  flex: 1; padding: 8px; border-radius: 8px; border: 1px solid var(--border-strong);
  background: transparent; color: var(--text); cursor: pointer; font: 500 13px var(--font-body);
}
.mode-row button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ============================================================ HERO */
.hero { padding: 150px 0 90px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 60px; align-items: center; }
.status {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px;
  border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface);
  font-size: 13px; color: var(--muted); margin-bottom: 28px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.hero h1 { font-size: clamp(42px, 6.4vw, 84px); font-weight: 700; margin-bottom: 26px; }
.hero h1 .line { display: block; }
.h1-kicker { display: block; font: 500 clamp(13px, 1.3vw, 15px)/1.4 var(--font-mono); letter-spacing: .04em; color: var(--muted); margin-bottom: 18px; }
.rotator { display: inline-block; min-width: 4ch; }
.rotator::after { content: "|"; color: var(--accent); animation: blink 1s steps(1) infinite; margin-left: 2px; -webkit-text-fill-color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }
.hero-lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 600px; margin-bottom: 36px; }
.hero-lead strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.portrait { position: relative; justify-self: center; width: min(380px, 100%); }
.portrait-frame {
  position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4/5;
  background: #000;
  border: 1px solid var(--border-strong);
}
.portrait-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 70%, rgba(0,0,0,.55));
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.portrait::before {
  content: ""; position: absolute; inset: -2px; border-radius: 30px; z-index: -1;
  background: conic-gradient(from 180deg, var(--accent), var(--accent-2), var(--accent));
  filter: blur(28px); opacity: .45;
}
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 14px; font-size: 13px; font-weight: 600;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong); box-shadow: 0 14px 30px -14px rgba(0,0,0,.5);
  animation: float 6s ease-in-out infinite;
}
.float-chip small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.float-chip .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.float-chip .ic svg { width: 17px; height: 17px; }
.chip-a { top: 12%; left: -18%; }
.chip-b { bottom: 14%; right: -14%; animation-delay: -3s; }
@media (max-width: 1180px) { .chip-a { left: -10%; } .chip-b { right: -4%; } }
@keyframes float { 50% { transform: translateY(-10px); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 80px; border: 1px solid var(--border); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.stat { padding: 26px 28px; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat b { font: 700 clamp(30px, 3.4vw, 42px)/1 var(--font-display); display: block; margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: 14px; }

/* marquee */
.marquee { border-block: 1px solid var(--border); padding: 22px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scroll 40s linear infinite; }
.marquee span { font: 600 18px/1 var(--font-display); color: var(--faint); white-space: nowrap; display: flex; align-items: center; gap: 56px; }
.marquee span::after { content: "✦"; color: var(--accent); font-size: 12px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============================================================ SECTIONS */
section { padding: 110px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 52px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 54px); margin-top: 16px; max-width: 720px; }
.section-head p { color: var(--muted); max-width: 420px; }

/* services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service {
  position: relative; padding: 30px 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s;
}
.service:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.service::after {
  content: ""; position: absolute; inset: auto -40% -60% auto; width: 220px; height: 220px; border-radius: 50%;
  background: var(--accent); filter: blur(80px); opacity: 0; transition: opacity .4s;
}
.service:hover::after { opacity: .22; }
.service .ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, transparent), color-mix(in srgb, var(--accent-2) 14%, transparent)); color: var(--accent); }
.service .ic svg { width: 24px; height: 24px; }
.service h3 { font-size: 21px; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.service ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font: 500 12px/1.5 var(--font-mono); color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--border);
}

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: transparent; color: var(--muted); cursor: pointer; font: 500 14px var(--font-body);
  transition: all .2s;
}
.filter:hover { color: var(--text); }
.filter[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.filter sup { font-size: 10px; margin-left: 3px; opacity: .7; }

/* case studies */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.case {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); cursor: pointer; text-align: left;
  color: inherit; font: inherit; padding: 0;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s;
}
.case:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: 0 30px 60px -30px var(--glow); }
.case-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2); }
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.case:hover .case-media img { transform: scale(1.05); }
.case-metric {
  position: absolute; left: 16px; bottom: 16px; padding: 10px 14px; border-radius: 12px;
  background: rgba(7, 8, 12, .78); backdrop-filter: blur(10px); color: #fff;
  border: 1px solid rgba(255,255,255,.12); max-width: calc(100% - 32px);
}
.case-metric b { font: 700 22px/1 var(--font-display); margin-right: 8px; }
.case-metric span { font-size: 13px; color: rgba(255,255,255,.75); }
.case-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.case-meta { font: 500 12px/1 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; display: flex; justify-content: space-between; gap: 10px; }
.case h3 { font-size: 24px; }
.case p { color: var(--muted); font-size: 15px; }
.case .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.case.wide { grid-column: span 2; flex-direction: row; }
.case.wide .case-media { flex: 1.25; aspect-ratio: auto; min-height: 340px; }
.case.wide .case-body { flex: 1; padding: 36px; justify-content: center; }
.case.wide .tags { margin-top: 8px; }
.case.wide h3 { font-size: 32px; }
.more-row { display: flex; justify-content: center; margin-top: 36px; }

/* projects grid */
.projects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.project {
  position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3;
  background: var(--surface-2); border: 1px solid var(--border);
}
.project.big { grid-column: span 2; aspect-ratio: 8/3; }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; }
.project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(5,6,10,.92)); }
.project-info { position: absolute; inset: auto 0 0 0; padding: 16px; z-index: 1; color: #fff; }
.project-info h3 { font-size: 17px; margin-bottom: 3px; display: flex; justify-content: space-between; align-items: center; }
.project-info h3 svg { width: 16px; height: 16px; opacity: 0; transform: translate(-4px, 4px); transition: all .3s; }
.project-info p { font-size: 12.5px; color: rgba(255,255,255,.72); }
.project-info .stack { font: 500 11px/1.4 var(--font-mono); color: rgba(255,255,255,.55); max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.project:hover img { transform: scale(1.07); }
.project:hover .stack { max-height: 40px; margin-top: 6px; }
.project:hover h3 svg { opacity: 1; transform: none; }

/* experience */
.exp-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; }
.timeline { position: relative; display: grid; gap: 14px; }
.job { padding: 24px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.job-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.job h3 { font-size: 19px; }
.job .when { font: 500 12.5px/1.6 var(--font-mono); color: var(--accent-text); }
.job .co { color: var(--text); font-weight: 600; font-size: 14px; margin-bottom: 10px; display: block; }
.job ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.job li + li { margin-top: 4px; }
.skills { display: grid; gap: 22px; align-content: start; }
.skill-group h4 { font: 500 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 12px; }
.skill-group div { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-group .tag { font-size: 13px; padding: 6px 12px; color: var(--text); }

/* process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { padding: 26px; border-top: 1px solid var(--border-strong); counter-increment: step; }
.step::before { content: "0" counter(step); font: 500 13px var(--font-mono); color: var(--accent-text); display: block; margin-bottom: 18px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* faq */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.faq { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); transition: border-color .25s; }
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item h3 { font-size: 17px; font-weight: 600; }
.faq-item p { padding: 0 22px 22px; color: var(--muted); font-size: 15.5px; }
.faq-icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border-strong); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--text); transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

/* contact */
.contact-card {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(36px, 6vw, 80px);
  background: var(--surface); border: 1px solid var(--border-strong); text-align: center;
}
.contact-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(600px 300px at 50% 0%, var(--glow), transparent 70%);
}
.contact-card > * { position: relative; }
.contact-card h2 { font-size: clamp(36px, 5.6vw, 72px); margin: 18px 0 18px; }
.contact-card p { color: var(--muted); max-width: 560px; margin: 0 auto 34px; font-size: 18px; }
.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

footer { padding: 36px 0 46px; color: var(--faint); font-size: 14px; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 28px; }
.foot nav { display: flex; gap: 22px; }
.foot a:hover { color: var(--text); }

/* ============================================================ CASE STUDY PAGE */
.cs-hero { padding: 130px 0 50px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.crumbs a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.crumbs a:hover { color: var(--text); }
.cs-hero h1 { font-size: clamp(38px, 6vw, 76px); margin: 18px 0 20px; max-width: 920px; }
.cs-lead { font-size: clamp(17px, 1.7vw, 20px); color: var(--muted); max-width: 760px; }
.cs-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 44px; border: 1px solid var(--border); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.cs-stats .stat + .stat { border-left: 1px solid var(--border); }
.cs-stats .stat b { font-size: clamp(26px, 3vw, 36px); }
.cs-cover { margin: 0 0 70px; border-radius: 24px; overflow: hidden; border: 1px solid var(--border-strong); box-shadow: 0 40px 80px -40px var(--glow); }
.cs-cover img { width: 100%; height: auto; }
.cs-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 60px; align-items: start; }
.cs-main section { padding: 0 0 56px; }
.cs-main section > p { color: var(--muted); font-size: 17px; margin-top: 16px; max-width: 720px; }
.cs-role {
  padding: 34px !important; margin-bottom: 56px; border-radius: var(--radius); position: relative;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              linear-gradient(120deg, var(--accent), var(--accent-2)) border-box;
  border: 1px solid transparent;
}
.cs-role h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 14px 0 20px; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 16px; }
.checks svg { flex: none; width: 22px; height: 22px; padding: 3px; margin-top: 1px; border-radius: 50%; color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.cs-highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 26px; }
.cs-hl { padding: 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.cs-hl span { font: 500 12px var(--font-mono); color: var(--accent-text); }
.cs-hl h3 { font-size: 18px; margin: 10px 0 6px; }
.cs-hl p { color: var(--muted); font-size: 14.5px; }
.cs-aside { position: sticky; top: 96px; }
.cs-card { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.cs-card h2 { font: 500 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 0 0 14px; }
.cs-card dl { margin: 0 0 26px; display: grid; gap: 12px; }
.cs-card dt { font-size: 12px; color: var(--faint); }
.cs-card dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; }
.cs-card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-links { display: grid; gap: 10px; margin-top: 26px; }
.cs-links .btn { justify-content: center; }
.cs-links .btn svg, .cs-source svg { width: 15px; height: 15px; }
.cs-source { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--muted); padding: 12px 0 4px; min-height: 44px; }
.cs-source:hover { color: var(--text); }
.cs-next { display: block; padding: 40px; margin: 20px 0 30px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); transition: border-color .3s, transform .4s var(--ease); }
.cs-next:hover { border-color: var(--accent); transform: translateY(-4px); }
.cs-next h2 { font-size: clamp(26px, 3.6vw, 44px); margin: 14px 0 8px; }
.cs-next h2 span { color: var(--accent); }
.cs-next p { color: var(--muted); }
.cs-cta { margin-bottom: 80px; }
.cs-cta h2 { font-size: clamp(30px, 4.4vw, 52px); }
@media (max-width: 860px) { .cs-nav .nav-actions .btn-primary { display: inline-flex; } }
@media (max-width: 960px) {
  .cs-grid { grid-template-columns: 1fr; gap: 10px; }
  .cs-aside { position: static; margin-bottom: 40px; }
}
@media (max-width: 600px) {
  .cs-back { display: none; }
  .cs-highlights { grid-template-columns: 1fr; }
  .cs-stats .stat + .stat { border-left: 0; border-top: 1px solid var(--border); }
  .cs-role { padding: 24px !important; }
  .cs-next { padding: 26px; }
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================ RESPONSIVE */
@media (max-width: 1024px) {
  .services, .process { grid-template-columns: repeat(2, 1fr); }
  .projects { grid-template-columns: repeat(3, 1fr); }
  .exp-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; }
  .nav-actions .btn { display: none; }
  .hero { padding-top: 120px; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .portrait { width: min(300px, 80%); }
  .chip-a { left: -14%; } .chip-b { right: -10%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
  .cases { grid-template-columns: 1fr; }
  .case.wide { grid-column: auto; flex-direction: column; }
  .case.wide .case-media { min-height: 0; aspect-ratio: 16/10; }
  .case.wide .case-body { padding: 24px 26px 26px; }
  .case.wide h3 { font-size: 24px; }
  .projects { grid-template-columns: repeat(2, 1fr); }
  section { padding: 80px 0; }
}
@media (max-width: 520px) {
  .container { width: calc(100% - 32px); }
  .services, .process { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .float-chip { display: none; }
  .project.big { grid-column: auto; aspect-ratio: 4/3; }
  .stat { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
[hidden] { display: none !important; }
