:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-soft: #0b0b0b;
  --panel: rgba(15, 15, 15, 0.9);
  --panel-strong: rgba(20, 20, 20, 0.98);
  --text: #f5f5f5;
  --muted: #b8b8b8;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #e11d48;
  --accent-strong: #ffffff;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  --radius: 24px;
  --radius-sm: 16px;
  --content-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    #050505;
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
}

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

a:hover {
  color: var(--accent);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
  z-index: 999;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(0, 0, 0, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #ffffff;
  color: #000000;
  box-shadow: 0 10px 30px rgba(225, 29, 72, 0.22);
}

.brand-text {
  font-size: 1rem;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

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

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

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  margin: 0 auto;
  position: relative;
  transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-lines::before {
  top: -6px;
}

.nav-toggle-lines::after {
  top: 6px;
}

.section {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
  padding: 5rem 0;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.9fr);
  gap: 2rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 700;
}

.hero h1,
.section-heading h2,
.project-card h3,
.panel h3 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.05;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 6.8rem);
}

.tagline {
  max-width: 34rem;
  margin: 1.25rem 0 0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: var(--text);
}

.hero-text {
  max-width: 40rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
}

.hero-card,
.panel,
.project-card,
.contact-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  overflow: hidden;
  padding: 2rem;
}

.card-glow {
  position: absolute;
  inset: auto -20% -30% auto;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: rgba(225, 29, 72, 0.16);
  pointer-events: none;
}

.card-label,
.card-kicker {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 700;
}

.card-lead {
  margin: 0.9rem 0 1.6rem;
  font-size: 1.08rem;
}

.quick-facts {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.quick-facts div {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.quick-facts dt {
  color: var(--muted);
  font-size: 0.84rem;
  margin-bottom: 0.3rem;
}

.quick-facts dd {
  margin: 0;
  font-weight: 500;
}

.section-heading {
  margin-bottom: 1.6rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.about-grid,
.cards-grid,
.contact-grid {
  display: grid;
  gap: 1.2rem;
}

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

.panel,
.project-card,
.contact-card {
  padding: 1.5rem;
}

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

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  padding: 1rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.timeline-time {
  display: inline-block;
  margin-bottom: 0.4rem;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
}

.timeline-item h4,
.project-card h3 {
  margin: 0 0 0.35rem;
}

.timeline-item p,
.meta-row {
  margin: 0;
  color: var(--muted);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.skills-grid span,
.tags span,
.meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  color: var(--text);
  font-size: 0.92rem;
}

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

.tags,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.contact-section {
  padding-bottom: 6rem;
}

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

.contact-card {
  display: grid;
  gap: 0.45rem;
  min-height: 132px;
  align-content: start;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(225, 29, 72, 0.5);
  color: var(--text);
}

.contact-card span {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.74rem;
  font-weight: 700;
}

.contact-card strong {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.2;
}

.site-footer {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
  padding: 0 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-panel {
    position: absolute;
    top: 76px;
    left: 1rem;
    right: 1rem;
    display: grid;
    gap: 0.35rem;
    padding: 0.75rem;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.97);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform-origin: top;
    transform: scaleY(0.94);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

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

  .nav-panel a {
    padding: 0.8rem 0.9rem;
    border-radius: 14px;
  }

  .nav-panel a:hover {
    background: rgba(225, 29, 72, 0.12);
  }

  .section {
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}