:root {
  --bg: #020617;
  --bg-elevated: #020617;
  --bg-soft: #020617;
  --surface: #020617;
  --surface-soft: #020617;
  --border-subtle: #1f2933;
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.1);
  --accent-strong: #16a34a;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --danger: #f87171;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.6);
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-pill: 999px;
  --shell: min(1120px, 100% - 3rem);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #0f172a 0, #020617 55%, #000 100%);
  color: var(--text);
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.section {
  padding: 4rem 0;
}

.section--muted {
  background: radial-gradient(circle at top right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.02));
}

.section--inner {
  margin-top: 3rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  padding: 2.5rem 2rem;
}

.section-header {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 2vw, 2rem);
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

.section-cta {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-cta p {
  margin: 0;
  color: var(--muted);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: rgba(2, 6, 23, 0.8);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.25rem 0.75rem 0.25rem 0.25rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.logo-mark {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 0, #34d399, #16a34a 45%, #0f172a 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.nav-link:hover {
  background: rgba(15, 23, 42, 0.85);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.2);
  text-decoration: none;
}

.nav-link--active {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.8);
}

.nav-link--button {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #022c22;
  font-weight: 600;
}

.nav-link--button:hover {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #022c22;
}

.nav-link--subtle {
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.9);
}

.nav-toggle span {
  height: 2px;
  width: 1.1rem;
  border-radius: 99px;
  background: #e5e7eb;
  margin-inline: auto;
}

/* Hero */

.hero-section {
  padding: 4.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  margin: 0 0 1rem;
}

.lead {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 34rem;
}

.lead.narrow {
  max-width: 30rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  background: rgba(15, 23, 42, 0.88);
  color: var(--text);
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: transparent;
  color: #022c22;
  box-shadow: 0 18px 45px rgba(22, 163, 74, 0.4);
}

.button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 60px rgba(22, 163, 74, 0.55);
}

.button.ghost {
  background: transparent;
}

.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hero-meta {
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.hero-meta dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.hero-meta dd {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
}

.hero-panel {
  display: grid;
  gap: 1.4rem;
}

.hero-card {
  border-radius: var(--radius-xl);
  padding: 1.6rem 1.5rem;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.96));
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.hero-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.hero-card-title {
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-metrics {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
  display: grid;
  gap: 0.8rem;
}

.hero-metrics li span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.hero-metrics li strong {
  font-size: 0.95rem;
}

.hero-card.secondary {
  padding: 1.3rem 1.25rem;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(6, 78, 59, 0.9));
}

.small-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-list li {
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.8rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.pill-green {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Cards & grids */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem;
}

.card {
  border-radius: var(--radius-xl);
  padding: 1.6rem 1.5rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

.card h3,
.card h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.mini-card {
  border-radius: 1.1rem;
  padding: 1.3rem 1.2rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.mini-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.mini-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.skill h2 {
  font-size: 1.1rem;
}

.skill p {
  font-size: 0.9rem;
}

/* Page hero */

.page-hero {
  padding: 3.5rem 0 2rem;
}

.page-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 2.6vw, 2.4rem);
}

.page-hero p {
  margin: 0;
}

/* Checklists */

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.checklist li::before {
  content: "";
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  margin-right: 0.4rem;
  background: var(--accent);
}

/* Callouts */

.callout {
  border-radius: var(--radius-xl);
  padding: 1.8rem 1.6rem;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.97), rgba(6, 78, 59, 0.95));
  border: 1px solid rgba(45, 212, 191, 0.4);
}

.callout h3 {
  margin-top: 0;
}

.plain-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.plain-list li {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Projects */

.project-meta {
  margin: 1rem 0 0;
  display: grid;
  gap: 0.5rem;
}

.project-meta dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.project-meta dd {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
}

.project-link-note {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Contact */

.contact-grid {
  align-items: flex-start;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.contact-chip {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.9);
  text-decoration: none;
}

.contact-chip:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.chip-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.chip-value {
  font-size: 0.95rem;
}

.contact-form {
  margin-top: 0.25rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.field input,
.field textarea {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.85);
  color: var(--text);
  padding: 0.6rem 0.8rem;
  font: inherit;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.6);
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 0.7rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding: 1.8rem 0 2rem;
  margin-top: 1rem;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.96));
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-title {
  margin: 0 0 0.1rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Util */

.small-text {
  font-size: 0.8rem;
  color: var(--muted);
}

.compact {
  gap: 1.2rem;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    order: -1;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(640px, 100% - 1.8rem);
  }

  .header-inner {
    padding-block: 0.7rem;
  }

  .site-nav {
    position: fixed;
    inset: 3.7rem 0 auto;
    padding: 0.6rem 0.9rem;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.16s ease-out, opacity 0.16s ease-out;
  }

  .site-nav.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

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

  .hero-section {
    padding-top: 3.5rem;
  }

  .hero-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 3rem 0;
  }

  .section--inner {
    padding: 1.8rem 1.4rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
