:root {
  --ink: #0B0B12;
  --ink-soft: #1A1A24;
  --paper: #FAFAF9;
  --paper-alt: #F1F0FF;
  --accent: #5B3DF5;
  --accent-bright: #7C5CFF;
  --accent-2: #FF5A36;
  --grey: #6B6B76;
  --line: #E4E3EE;
  --white: #FFFFFF;
  --radius: 18px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.mono { font-family: "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.02em; }

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,249,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-weight: 600; font-size: 15px; color: var(--ink-soft); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-cta {
  background: var(--ink); color: var(--white) !important; padding: 10px 20px;
  border-radius: 999px; font-weight: 700 !important; font-size: 14px !important;
}
.nav-cta:hover { background: var(--accent); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(160deg, var(--ink) 0%, #211A3D 60%, var(--accent) 140%);
  color: var(--white);
  padding: 110px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero-grid { display: flex; align-items: center; gap: 56px; }
.hero-text { flex: 1 1 480px; }
.hero-photo-wrap { flex: 0 0 260px; position: relative; z-index: 1; }
.hero-photo-glow {
  position: absolute; inset: -20px; border-radius: 40px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-2));
  filter: blur(28px); opacity: 0.55; z-index: 0;
}
.hero-photo {
  position: relative; z-index: 1; width: 260px; height: 260px; object-fit: cover;
  object-position: 50% 22%; border-radius: 28px;
  border: 4px solid rgba(255,255,255,0.25);
  box-shadow: 0 30px 60px rgba(0,0,0,0.45);
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(124,92,255,0.55), transparent 70%);
}
.eyebrow {
  display: inline-block; font-family: "SF Mono", Menlo, monospace; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-bright);
  background: rgba(124,92,255,0.15); border: 1px solid rgba(124,92,255,0.4);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 26px;
}
.hero h1 {
  font-size: 58px; line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 22px; font-weight: 800;
  max-width: 780px; position: relative; z-index: 1;
}
.hero h1 em { font-style: normal; color: var(--accent-bright); }
.hero p.lead {
  font-size: 20px; color: rgba(255,255,255,0.78); max-width: 620px; margin: 0 0 38px; position: relative; z-index: 1;
}
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; position: relative; z-index: 1; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 15px 28px; border-radius: 999px;
  font-weight: 700; font-size: 15px; transition: transform .15s, box-shadow .15s;
}
.btn-primary { background: var(--accent-2); color: var(--white); box-shadow: 0 10px 30px rgba(255,90,54,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255,90,54,0.5); }
.btn-ghost { background: rgba(255,255,255,0.08); color: var(--white); border: 1px solid rgba(255,255,255,0.35); }
.btn-ghost:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--accent); transform: translateY(-2px); }

/* ===== STATS BAR ===== */
.stats {
  background: var(--ink); color: var(--white);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: -1px;
}
.stat { padding: 34px 24px; text-align: center; border-right: 1px solid rgba(255,255,255,0.1); }
.stat:last-child { border-right: none; }
.stat .num { font-size: 34px; font-weight: 800; color: var(--accent-bright); letter-spacing: -0.02em; }
.stat .label { font-size: 13px; color: rgba(255,255,255,0.65); margin-top: 6px; font-weight: 600; }

/* ===== SECTIONS ===== */
section { padding: 90px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.kicker {
  font-family: "SF Mono", Menlo, monospace; font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent); font-weight: 700; margin-bottom: 14px; display: block;
}
h2 { font-size: 38px; letter-spacing: -0.02em; margin: 0 0 16px; font-weight: 800; }
h2.center { text-align: center; }
.section-head p { color: var(--grey); font-size: 18px; }

/* ===== PILLARS (3-col) ===== */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; transition: transform .18s, box-shadow .18s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(11,11,18,0.08); }
.pillar .icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px; background: var(--paper-alt);
}
.pillar h3 { font-size: 21px; margin: 0 0 10px; letter-spacing: -0.01em; }
.pillar p { color: var(--grey); font-size: 15.5px; margin: 0 0 16px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: "SF Mono", Menlo, monospace; font-size: 12px; background: var(--paper-alt); color: var(--accent);
  padding: 5px 10px; border-radius: 6px; font-weight: 600;
}

/* ===== PROJECT CARDS ===== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.proj-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column;
}
.proj-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(11,11,18,0.1); }
.proj-thumb { height: 150px; display: flex; align-items: center; justify-content: center; font-size: 46px; }
.proj-body { padding: 26px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.proj-industry { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 10px; }
.proj-card h3 { font-size: 21px; margin: 0 0 10px; letter-spacing: -0.01em; }
.proj-card p { color: var(--grey); font-size: 15px; margin: 0 0 20px; flex: 1; }
.proj-link { font-weight: 700; font-size: 14.5px; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.proj-card:hover .proj-link { color: var(--accent); }

/* ===== FOOTER ===== */
footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 56px 0 34px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-weight: 600; font-size: 14.5px; color: rgba(255,255,255,0.75); }
.footer-links a:hover { color: var(--accent-bright); }
.footer-bottom { padding-top: 24px; font-size: 13.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ===== EXPERIENCE TIMELINE ===== */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 52px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -32px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid var(--paper-alt); }
.tl-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; }
.tl-dates { font-family: "SF Mono", Menlo, monospace; font-size: 13px; color: var(--accent); font-weight: 700; margin-bottom: 8px; display: block; }
.tl-card h3 { font-size: 22px; margin: 0 0 2px; }
.tl-card .tl-role { color: var(--grey); font-weight: 600; margin-bottom: 16px; display: block; }
.tl-card ul { margin: 0 0 18px; padding-left: 20px; color: var(--ink-soft); }
.tl-card li { margin-bottom: 8px; font-size: 15.5px; }

/* ===== CASE STUDY PAGE ===== */
.case-hero { background: var(--ink); color: var(--white); padding: 70px 0 56px; }
.case-hero .proj-industry { color: var(--accent-bright); }
.case-hero h1 { font-size: 42px; letter-spacing: -0.02em; margin: 10px 0 18px; max-width: 760px; }
.case-hero p.lead { color: rgba(255,255,255,0.75); font-size: 18px; max-width: 680px; margin: 0; }
.case-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 40px; }
.case-stat { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: 14px; padding: 20px; text-align: center; }
.case-stat .num { font-size: 24px; font-weight: 800; color: var(--accent-bright); }
.case-stat .label { font-size: 12.5px; color: rgba(255,255,255,0.6); margin-top: 4px; }

.case-block { margin-bottom: 52px; }
.case-block h2 { font-size: 27px; margin-bottom: 18px; }
.case-block ul { padding-left: 20px; }
.case-block li { margin-bottom: 10px; font-size: 16px; color: var(--ink-soft); }
.case-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.callout {
  background: var(--paper-alt); border-left: 4px solid var(--accent); border-radius: 10px;
  padding: 22px 26px; margin: 24px 0;
}
.callout p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }
.chart-fig { margin: 28px 0; }
.chart-fig img { border-radius: 12px; border: 1px solid var(--line); }
.chart-fig .cap { font-size: 13.5px; color: var(--grey); margin-top: 10px; font-style: italic; text-align: center; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

.case-nav { display: flex; justify-content: space-between; padding: 40px 0; border-top: 1px solid var(--line); margin-top: 20px; }
.case-nav a { font-weight: 700; color: var(--accent); }

@media (max-width: 860px) {
  .hero h1 { font-size: 38px; }
  .hero-grid { flex-direction: column-reverse; text-align: center; gap: 32px; }
  .hero-text .btn-row, .hero-text .lead { margin-left: auto; margin-right: auto; }
  .hero-photo, .hero-photo-wrap { width: 200px; }
  .hero-photo { height: 200px; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .pillars, .card-grid, .card-grid.two, .case-cols { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .case-stats { grid-template-columns: repeat(2,1fr); }
}
