:root {
  --bg: #ffffff;
  --bg-muted: #f6f7fb;
  --ink: #0b1220;
  --ink-soft: #3b4358;
  --ink-mute: #6b7280;
  --line: #e6e8ef;
  --accent: #f59e0b;
  --accent-ink: #0b1220;
  --brand: #0b1220;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06);
  --shadow-md: 0 10px 30px rgba(11, 18, 32, 0.08);
  --max: 1120px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0;
}

.logo-text { font-size: 17px; }
.logo-suffix { color: var(--ink-mute); font-weight: 500; }

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--ink); }

.nav-cta { display: inline-flex; }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.1s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #1a2338; }

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--ink); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  padding: 10px 16px;
  font-size: 14px;
}
.btn-ghost:hover { border-color: var(--ink); }

.arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translate(2px, -2px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 112px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(245, 158, 11, 0.18), transparent 60%),
    radial-gradient(50% 50% at 10% 90%, rgba(37, 99, 235, 0.10), transparent 60%),
    linear-gradient(180deg, #fff 0%, #fbfbfd 100%);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-mute);
  margin: 0 0 20px;
}

.hero h1 {
  font-size: clamp(40px, 6.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 24px;
  max-width: 14ch;
}

.hero h1 .accent {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.section-muted {
  background: var(--bg-muted);
  border-top-color: transparent;
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-mute);
  margin: 0 0 14px;
}

.section h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 12px;
  max-width: 22ch;
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 820px) {
  .grid-2 { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 72px 0; }
  .hero { padding: 72px 0 88px; }
}

.about-body p { margin: 0 0 16px; color: var(--ink-soft); font-size: 17px; }

.pill-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-list li {
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

/* ---------- Portfolio / project ---------- */
.project {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 820px) {
  .project { grid-template-columns: 1fr; padding: 28px; gap: 24px; }
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35);
}

.project h3 {
  font-size: 26px;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.project-tag {
  color: var(--ink-mute);
  font-size: 14px;
  margin: 0;
}

.project-pitch {
  font-size: 20px;
  color: var(--ink);
  margin: 0 0 16px;
}

.project-body p {
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0 0 20px;
}

.feature-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature-grid li {
  background: var(--bg-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature-grid strong {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}

.feature-grid span {
  color: var(--ink-mute);
  font-size: 14px;
}

.project-actions { margin-top: 4px; }

/* ---------- Contact ---------- */
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.contact-card dl {
  margin: 0;
  display: grid;
  gap: 24px;
}

.contact-card dt {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-mute);
  margin-bottom: 6px;
}

.contact-card dd {
  margin: 0;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.5;
}

.contact-card a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.contact-card a:hover { text-decoration-color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  background: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-mute);
}

.footer-links { display: flex; gap: 18px; margin: 0; }
.footer-links a {
  color: var(--ink-mute);
  text-decoration: none;
}
.footer-links a:hover { color: var(--ink); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
