:root {
  --bg: #0b1020;
  --bg-elevated: #121a31;
  --text: #e8edf9;
  --text-muted: #a9b5d1;
  --primary: #5b8dff;
  --primary-soft: #2b417c;
  --border: #243153;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.brand img {
  display: block;
  height: 40px;
  width: auto;
}

.nav nav {
  display: flex;
  gap: 1rem;
}

.nav nav a {
  color: var(--text-muted);
  font-weight: 500;
}

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

.hero {
  padding: 5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: stretch;
}

.eyebrow {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

h1,
h2,
h3 {
  margin: 0 0 0.8rem;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  max-width: 20ch;
}

h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
}

.lead {
  color: var(--text-muted);
  max-width: 60ch;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-secondary {
  border-color: var(--border);
  background: var(--bg-elevated);
}

.hero-card,
.project-card,
.skills-grid article {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-elevated);
}

.hero-card {
  padding: 1.2rem;
}

.hero-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.section {
  padding: 3rem 0;
}

.section p {
  color: var(--text-muted);
  line-height: 1.7;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  border-block: 1px solid var(--border);
}

.skills-grid,
.projects-grid {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

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

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

.skills-grid article,
.project-card {
  padding: 1.1rem;
}

.project-card p {
  min-height: 4.5rem;
}

.project-card span {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
}

.contact {
  display: grid;
  gap: 0.7rem;
}

.site-footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.consent-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  width: min(560px, calc(100% - 2rem));
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-elevated);
  display: grid;
  gap: 0.8rem;
}

.consent-banner[hidden] {
  display: none;
}

.consent-banner p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.consent-status {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.consent-status[data-state="error"] {
  color: var(--text);
  font-weight: 600;
}

.consent-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.consent-actions .btn {
  cursor: pointer;
}

.consent-actions [data-consent-reject] {
  color: var(--text);
  border-color: var(--text-muted);
  background: var(--bg);
}

.consent-actions [data-consent-reject]:hover {
  border-color: var(--text);
}

.consent-manage {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 30;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  background: var(--bg-elevated);
  color: var(--text-muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.consent-manage:hover {
  color: var(--text);
}

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

  .project-card p {
    min-height: unset;
  }
}

@media (max-width: 640px) {
  .nav {
    min-height: auto;
    padding: 0.9rem 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3.4rem;
  }

  .consent-manage,
  .consent-banner {
    left: 1rem;
    right: 1rem;
    width: auto;
  }

  .consent-manage {
    bottom: 5.2rem;
  }
}