* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0b0b0f;
  --bg-2: #12141a;
  --card: #111118;
  --card-strong: #161621;
  --text: #f5f5f7;
  --muted: #9aa2b5;
  --accent: #a78bfa;
  --border: #1f1f2a;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --max-width: 1100px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  color-scheme: dark;
}

body {
  font-family: "Spline Sans", "Space Grotesk", system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

.site-header {
  max-width: var(--max-width);
  margin: 32px auto 20px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--card-strong);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 1px;
}

nav {
  display: flex;
  gap: 18px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease, opacity 0.2s ease;
}

nav a:hover {
  color: var(--text);
}

.cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--border);
  color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  will-change: transform;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: #2a2a34;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.btn.solid {
  background: var(--accent);
  color: #0b0b0f;
  border: 1px solid var(--accent);
}

.btn.ghost {
  background: transparent;
  border-color: var(--border);
}

.link-quiet {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.link-quiet:hover,
.link-quiet:focus-visible {
  color: var(--accent);
  background: #12121a;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px 120px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: center;
  margin: 48px 0 56px;
}

.hero-text h1 {
  font-size: clamp(36px, 6vw, 52px);
  line-height: 1.1;
  margin: 10px 0 12px;
  color: #f8f8fb;
}

.hero-text h1 span {
  color: inherit;
}

.hero-text .lede {
  color: var(--muted);
  font-size: 18px;
  max-width: 620px;
}

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

.eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
}

.badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.badge {
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.badge .label {
  color: var(--muted);
  font-size: 13px;
}

.badge .value {
  font-weight: 700;
}

.hero-card {
  background: var(--card-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.label {
  color: var(--muted);
  font-size: 13px;
}

.value {
  font-weight: 700;
}

.tag {
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  font-weight: 700;
  font-size: 12px;
  color: var(--text);
}

.metrics {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.metric-value {
  font-weight: 800;
  font-size: 24px;
}

.metric-label {
  color: var(--muted);
}

.stack {
  margin-top: 10px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chips span {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px 10px;
  font-weight: 600;
  color: var(--text);
}

.section {
  margin: 80px 0 36px;
}

.section-header {
  display: grid;
  gap: 6px;
  margin-bottom: 20px;
  max-width: 720px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 34px);
}

.section-lede {
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

.about-card h3 {
  margin-bottom: 8px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

.timeline-meta {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.timeline-body h3 {
  margin-bottom: 6px;
}

.timeline-body p {
  color: var(--muted);
  margin-bottom: 8px;
}

.timeline-body ul {
  padding-left: 18px;
  color: var(--text);
  display: grid;
  gap: 6px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: grid;
  gap: 10px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

.project-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-brand img,
.project-brand svg.project-logo {
  height: 44px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
}

.project-brand-meta .value {
  color: var(--text);
}

.project-brand-meta .label {
  color: var(--muted);
  font-size: 13px;
}

.project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-card p {
  color: var(--muted);
}

.project-links {
  display: flex;
  gap: 12px;
  font-weight: 700;
}

.project-links a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.project-links a:hover,
.project-links a:focus-visible {
  color: var(--accent);
  border-color: rgba(167, 139, 250, 0.6);
}

.contact-card {
  background: var(--card-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow);
}

.contact-actions {
  display: flex;
  gap: 10px;
}

.contact-form {
  width: 100%;
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.form-row {
  display: grid;
  gap: 6px;
}

.contact-form input,
.contact-form textarea {
  background: #0e0e15;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}

#contact-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-status {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.form-status.error {
  color: #ffb4b4;
}

.site-footer {
  max-width: var(--max-width);
  margin: 32px auto 50px;
  padding: 0 20px;
  color: var(--muted);
  text-align: left;
}

@media (max-width: 780px) {
  .site-header {
    flex-wrap: wrap;
  }

  nav {
    flex-wrap: wrap;
  }

  .cta {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }
}
