:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #151515;
  --panel-soft: #202020;
  --text: #ffffff;
  --muted: #b7b7b7;
  --red: #e50914;
  --red-dark: #9b050d;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at 82% 12%, rgba(229, 9, 20, 0.42), transparent 28rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.76) 44%, rgba(0, 0, 0, 0.28) 100%),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=80") center/cover;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent 0%, #050505 58%, #050505 100%);
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.15rem clamp(1rem, 4vw, 4rem);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.18));
  backdrop-filter: blur(12px);
}

.brand {
  color: var(--red);
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex: 1;
  gap: 1.3rem;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.profile-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  color: #e7e7e7;
  font-size: 0.86rem;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  gap: 2rem;
  min-height: 72vh;
  align-items: center;
  padding: clamp(2rem, 6vw, 6rem) clamp(1rem, 4vw, 4rem) 4rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.82;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}

.headline {
  max-width: 46rem;
  color: #e8e8e8;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.5;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.4rem 0 1.8rem;
}

.meta-row span {
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  padding: 0.35rem 0.55rem;
  background: rgba(0, 0, 0, 0.38);
  color: #dedede;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  border-radius: 0.35rem;
  padding: 0.9rem 1.25rem;
  font-weight: 800;
}

.button-primary {
  background: var(--text);
  color: #090909;
}

.button-secondary {
  background: rgba(109, 109, 110, 0.7);
  color: var(--text);
}

.feature-card,
.cv-card,
.poster,
.contact,
.proof-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(31, 31, 31, 0.94), rgba(10, 10, 10, 0.9));
  box-shadow: var(--shadow);
}

.feature-card {
  border-radius: 1.3rem;
  padding: 1.5rem;
}

.rating,
.tag {
  display: inline-flex;
  margin-bottom: 1rem;
  border-radius: 999px;
  padding: 0.36rem 0.65rem;
  background: rgba(229, 9, 20, 0.2);
  color: #ff5961;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-card h2,
.contact h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.feature-card p,
.cv-card p,
.poster p,
.project-list p,
.contact p,
dd {
  color: var(--muted);
  line-height: 1.6;
}

dl {
  display: grid;
  gap: 0.9rem;
  margin: 1.4rem 0 0;
}

dt {
  color: #f1f1f1;
  font-weight: 800;
}

dd {
  margin: 0.2rem 0 0;
}

.content-row {
  padding: 1rem clamp(1rem, 4vw, 4rem) 3rem;
}

.row-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.row-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  letter-spacing: -0.04em;
}

.row-heading span {
  color: var(--muted);
  font-size: 0.9rem;
}

.card-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
}

.cv-card {
  min-height: 19rem;
  border-radius: 0.8rem;
  padding: 1.2rem;
  transition: transform 180ms ease, border-color 180ms ease;
}

.cv-card:hover,
.poster:hover,
.project-list article:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-0.25rem) scale(1.01);
}

.cv-card h3,
.poster h3,
.project-list h3 {
  margin-bottom: 0.45rem;
  font-size: 1.25rem;
}

.cv-card ul {
  margin: 1rem 0 0;
  padding-left: 1.05rem;
  color: #d8d8d8;
  line-height: 1.55;
}

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

.poster {
  position: relative;
  overflow: hidden;
  min-height: 18rem;
  border-radius: 0.8rem;
  padding: 1.2rem;
  transition: transform 180ms ease, border-color 180ms ease;
}

.poster::after {
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  color: rgba(255, 255, 255, 0.08);
  content: attr(data-count);
  font-size: 11rem;
  font-weight: 900;
}

.poster span {
  display: block;
  margin-bottom: 5.5rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 3.4rem;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.poster-red {
  background: linear-gradient(145deg, #8c050b, #1d0506);
}

.poster-purple {
  background: linear-gradient(145deg, #5b2ca0, #12091e);
}

.poster-blue {
  background: linear-gradient(145deg, #1167a6, #06131f);
}

.poster-green {
  background: linear-gradient(145deg, #11754f, #061711);
}

.project-list {
  display: grid;
  gap: 0.85rem;
}

.project-list article {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.055);
  transition: transform 180ms ease, border-color 180ms ease;
}

.inline-link {
  display: inline-flex;
  margin-top: 0.35rem;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(229, 9, 20, 0.8);
  text-underline-offset: 0.25rem;
}

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

.proof-card {
  display: flex;
  min-height: 14rem;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 0.8rem;
  padding: 1.2rem;
  transition: transform 180ms ease, border-color 180ms ease;
}

.proof-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-0.25rem) scale(1.01);
}

.proof-card span {
  color: #ff5961;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.proof-card strong {
  margin: 1.2rem 0 0.4rem;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.thumbnail {
  display: grid;
  min-height: 4.8rem;
  place-items: center;
  border-radius: 0.55rem;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  font-weight: 900;
  letter-spacing: 0.1em;
}

.contact {
  margin: 1rem clamp(1rem, 4vw, 4rem) 4rem;
  border-radius: 1rem;
  padding: clamp(1.4rem, 4vw, 3rem);
}

.contact-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  color: #ededed;
  font-weight: 800;
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.9rem;
  }

  .nav {
    overflow-x: auto;
    width: 100%;
    padding-bottom: 0.2rem;
  }

  .profile-pill {
    display: none;
  }

  .hero,
  .card-grid,
  .poster-row,
  .proof-grid {
    grid-template-columns: 1fr;
  }

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

  .poster {
    min-height: 14rem;
  }

  .poster span {
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 560px) {
  .row-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-list article {
    grid-template-columns: 1fr;
  }

  .thumbnail {
    min-height: 5.5rem;
  }
}
