:root {
  --ground: #0a1224;
  --lift: #16294f;
  --accent: #2dd4a0;
  --accent-ink: #06251c;
  --ink: #ffffff;
  --dim: rgba(255, 255, 255, 0.72);
  --faint: rgba(255, 255, 255, 0.14);
  --paper: #f5f7fa;
  --text: #15203a;
  --muted: #5d6879;
  --line: #e3e7ee;
  --soon: #fbbf24;
  --radius: 28px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--ground);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol { margin: 0; }
ol { padding: 0; list-style: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: clamp(20px, 5vw, 56px); }
.accent { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 30px; border-radius: 999px;
  font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent; cursor: pointer;
}
.btn-sm { height: 42px; padding: 0 20px; font-size: 15px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -8px rgba(45, 212, 160, 0.55); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(45, 212, 160, 0.7); }
.btn-ghost { border-color: var(--faint); color: var(--ink); background: rgba(255, 255, 255, 0.04); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-row.center { justify-content: center; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; border-bottom: 1px solid transparent; transition: background 0.3s ease, border-color 0.3s ease; }
.nav.scrolled { background: rgba(10, 18, 36, 0.78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--faint); }
.nav-in { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.links { display: flex; gap: 32px; font-size: 15px; font-weight: 600; color: var(--dim); }
.links a:hover { color: var(--ink); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: 0.08s; }
.cards .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: 0.16s; }

/* ---------- shared type ---------- */
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.eyebrow.dark { color: #0d8f6c; }
.lead { font-size: clamp(18px, 2vw, 22px); color: var(--dim); max-width: 640px; }
.sec-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head h2, .contact h2 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; margin-top: 14px; }
.sub { margin-top: 14px; font-size: 18px; color: var(--dim); }
section { position: relative; }

/* ---------- glows ---------- */
.glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; transform: translate3d(0, var(--py, 0px), 0); }
.g1 { width: 520px; height: 520px; top: 8%; right: -140px; background: rgba(45, 212, 160, 0.22); }
.g2 { width: 460px; height: 460px; bottom: -120px; left: -160px; background: rgba(60, 100, 220, 0.3); }
.g3 { width: 520px; height: 520px; top: -160px; left: 50%; margin-left: -260px; background: rgba(45, 212, 160, 0.16); }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding: 120px 0 90px; overflow: hidden; background: radial-gradient(120% 90% at 80% 0%, #14264a 0%, var(--ground) 62%); }
.hero-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.hero h1 { font-size: clamp(42px, 7.4vw, 92px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 800; max-width: 15ch; }

/* ---------- work ---------- */
.work { padding: clamp(80px, 11vw, 140px) 0; background: var(--ground); }
.projects { display: grid; gap: 28px; }
.project { display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch; background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)); border: 1px solid var(--faint); border-radius: var(--radius); overflow: hidden; }
.project-media { display: block; overflow: hidden; background: #0a1224; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project-media:hover img { transform: scale(1.03); }
.project-body { padding: clamp(26px, 3.4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.project-body h3 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.03em; font-weight: 800; line-height: 1.05; }
.project-body p { color: var(--dim); font-size: 17px; }
.project .cta-row { margin-top: 8px; }
.project-next { grid-template-columns: 1fr; border-style: dashed; background: transparent; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--faint); color: var(--dim); }
.chip-live { background: rgba(45, 212, 160, 0.15); border-color: rgba(45, 212, 160, 0.4); color: var(--accent); }
.chip-soon { background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.35); color: var(--soon); }

/* ---------- services (light) ---------- */
.services { padding: clamp(80px, 11vw, 140px) 0; background: var(--paper); color: var(--text); }
.services .sec-head h2 { color: var(--text); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 32px 28px; box-shadow: 0 18px 40px -28px rgba(21, 32, 58, 0.25); }
.card h3 { font-size: 21px; letter-spacing: -0.02em; font-weight: 800; margin-top: 20px; }
.card p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.ico { width: 52px; height: 52px; border-radius: 16px; background: #e6faf3; display: grid; place-items: center; }
.ico svg { width: 26px; height: 26px; fill: none; stroke: #0d8f6c; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- approach ---------- */
.approach { padding: clamp(80px, 11vw, 140px) 0; background: var(--ground); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.steps li { border-top: 1px solid var(--faint); padding-top: 24px; }
.num { font-size: 14px; font-weight: 800; letter-spacing: 0.14em; color: var(--accent); }
.steps h3 { font-size: 24px; letter-spacing: -0.02em; font-weight: 800; margin-top: 14px; }
.steps p { margin-top: 10px; color: var(--dim); font-size: 17px; }

/* ---------- contact ---------- */
.contact { padding: clamp(90px, 12vw, 160px) 0; overflow: hidden; background: linear-gradient(180deg, var(--ground), #0e1d3a); text-align: center; }
.contact-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.contact h2 { margin-top: 0; }
.contact .lead { text-align: center; }

/* ---------- footer ---------- */
.foot { background: #070d1b; border-top: 1px solid var(--faint); padding: 28px 0; color: var(--dim); font-size: 15px; }
.foot-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.foot .brand { font-size: 17px; color: var(--ink); }
.foot a:hover { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .links { display: none; }
  .project { grid-template-columns: 1fr; }
  .cards, .steps { grid-template-columns: 1fr; }
  .steps { gap: 28px; }
}
@media (max-width: 620px) {
  .nav-in { height: 64px; }
  .btn { height: 52px; padding: 0 24px; font-size: 16px; }
  .btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
  .hero { padding-top: 100px; }
  .hero .cta-row .btn, .contact .cta-row .btn { width: 100%; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .glow { transform: none; }
}
