:root {
  --red-500: #d2152c;
  --red-600: #b50f24;
  --red-glow: rgba(210, 21, 44, 0.45);
  --black-900: #07070a;
  --black-800: #101015;
  --black-700: #1a1a22;
  --gray-500: #8a8a9b;
  --gray-400: #a0a0b0;
  --white: #f9f9fb;
  --font-sans: 'Montserrat', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', monospace;
  --max-width: 1180px;
  --gutter: clamp(1.5rem, 6vw, 4rem);
  --radius-lg: 28px;
  --radius-md: 20px;
  --transition: all 220ms ease;
  --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 10px 30px rgba(210, 21, 44, 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, var(--black-900) 0%, #0d0d12 100%);
  color: var(--white);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
}

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

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(210, 21, 44, 0.25), transparent 45%),
    radial-gradient(circle at bottom left, rgba(210, 21, 44, 0.2), transparent 45%);
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem var(--gutter);
  background: rgba(7, 7, 10, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red-500), var(--red-600));
  font-weight: 700;
  font-family: var(--font-mono);
}

.site-logo__word {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.95rem;
  transition: var(--transition);
}

.site-nav a {
  position: relative;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-500), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: var(--transition);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-cta {
  border: 1px solid rgba(210, 21, 44, 0.45);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: rgba(210, 21, 44, 0.1);
  transition: var(--transition);
}

.nav-cta:hover {
  background: rgba(210, 21, 44, 0.25);
  box-shadow: 0 0 0 4px rgba(210, 21, 44, 0.15);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  background: transparent;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.section {
  padding: clamp(4rem, 9vw, 7rem) var(--gutter);
  margin: 0 auto;
  max-width: calc(var(--max-width) + var(--gutter) * 2);
}

.section--contrast {
  background: linear-gradient(135deg, rgba(16, 16, 21, 0.9), rgba(7, 7, 10, 0.72));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.section__header {
  display: grid;
  gap: 0.8rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section__header h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.01em;
  margin: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red-500);
  margin: 0;
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.65);
}

.hero {
  display: grid;
  gap: clamp(3rem, 5vw, 4rem);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
}

.hero__content h1 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
  margin: 0;
}

.hero__content h1 span {
  color: var(--red-500);
}

.hero__eyebrows {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.intro {
  line-height: 1.7;
  color: rgba(235, 235, 245, 0.8);
  max-width: 560px;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.button {
  border-radius: 999px;
  border: none;
  padding: 0.9rem 1.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
}

.button--primary {
  background: linear-gradient(135deg, var(--red-500), var(--red-600));
  color: var(--white);
  box-shadow: 0 14px 30px rgba(210, 21, 44, 0.3);
}

.button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(210, 21, 44, 0.35);
}

.button--ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  background: transparent;
}

.button--ghost:hover {
  border-color: rgba(210, 21, 44, 0.8);
  color: var(--red-500);
}

.hero__visual {
  display: grid;
  gap: 1.5rem;
}

.hero__image {
  width: clamp(220px, 32vw, 360px);
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.matrix {
  padding: 2.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: linear-gradient(160deg, rgba(16, 16, 22, 0.85), rgba(7, 7, 10, 0.55));
  box-shadow: inset 0 0 40px rgba(210, 21, 44, 0.15);
  overflow: hidden;
}

.matrix__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  font-family: var(--font-mono);
  color: rgba(210, 21, 44, 0.85);
  letter-spacing: 0.08em;
  animation: pulse 6s ease-in-out infinite alternate;
  text-align: center;
  align-items: center;
}

@keyframes pulse {
  0% {
    color: rgba(210, 21, 44, 0.45);
  }
  100% {
    color: rgba(210, 21, 44, 0.92);
  }
}

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

.service-card {
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 7, 10, 0.75);
  display: grid;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(210, 21, 44, 0.13), transparent 60%);
  transform: scale(0);
  transition: var(--transition);
}

.service-card:hover::before {
  transform: scale(1.1);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(210, 21, 44, 0.4);
  box-shadow: 0 18px 45px rgba(210, 21, 44, 0.18);
}

.service-card h3 {
  margin: 0;
  font-size: 1.4rem;
}

.service-card p {
  color: rgba(235, 235, 245, 0.75);
  margin: 0 0 0.6rem;
  line-height: 1.6;
}

.service-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--gray-400);
  font-size: 0.95rem;
  line-height: 1.5;
}

.projects__list {
  display: grid;
  gap: 2rem;
}

.project-card {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 3vw, 2.6rem);
  background: linear-gradient(140deg, rgba(16, 16, 22, 0.82), rgba(7, 7, 10, 0.72));
  display: grid;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(210, 21, 44, 0.08), transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover::after {
  opacity: 1;
}

.project-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  color: rgba(235, 235, 245, 0.65);
}

.project-card__tag {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(210, 21, 44, 0.15);
  border: 1px solid rgba(210, 21, 44, 0.45);
  color: var(--red-500);
}

.project-card h3 {
  margin: 0;
  font-size: 1.8rem;
}

.project-card p {
  margin: 0;
  color: rgba(235, 235, 245, 0.74);
  line-height: 1.7;
}

.project-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--gray-400);
  line-height: 1.6;
}

.inline-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(235, 235, 245, 0.7);
  transition: var(--transition);
}

.inline-link:hover {
  color: var(--red-500);
}

.tech-stack__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tech-stack__column {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.8rem;
  background: rgba(7, 7, 10, 0.72);
  display: grid;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), border-color 220ms ease, box-shadow 220ms ease;
  z-index: 0;
}

.tech-stack__column::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at top left, rgba(210, 21, 44, 0.18), transparent 60%);
  opacity: 0;
  transform: translate(-10%, -10%) scale(0.8);
  transition: var(--transition);
  z-index: -1;
}

.tech-stack__column::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-md) - 1px);
  border: 1px dashed rgba(243, 95, 76, 0.25);
  opacity: 0;
  transform: scale(0.92);
  transition: var(--transition);
  pointer-events: none;
}

.tech-stack__column:hover {
  transform: translateY(-10px) scale(1.015);
  border-color: rgba(210, 21, 44, 0.45);
  box-shadow: 0 22px 40px rgba(210, 21, 44, 0.22);
}

.tech-stack__column:hover::before {
  opacity: 1;
  transform: translate(0, 0) scale(1.06);
}

.tech-stack__column:hover::after {
  opacity: 1;
  transform: scale(1);
}

.tech-stack__column h3 {
  margin: 0;
  font-size: 1.2rem;
}

.tech-stack__column ul {
  margin: 0;
  padding-left: 0;
  color: rgba(235, 235, 245, 0.75);
  line-height: 1.6;
  list-style: none;
  position: relative;
  z-index: 1;
}

.tech-stack__column ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.4rem;
  transition: color 220ms ease;
}

.tech-stack__column ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 0.9rem;
  height: 1px;
  background: rgba(243, 95, 76, 0.4);
  transform-origin: left;
  transform: scaleX(0.4);
  transition: transform 240ms ease, background 240ms ease;
}

.tech-stack__column:hover ul li {
  color: rgba(255, 255, 255, 0.9);
}

.tech-stack__column:hover ul li::before {
  transform: scaleX(1);
  background: rgba(243, 95, 76, 0.9);
}

.process .timeline {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.timeline__item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 7, 10, 0.7);
  padding: 2rem;
  display: grid;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.timeline__item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(210, 21, 44, 0.2), transparent 65%);
  opacity: 0;
  transform: translateY(20%);
  transition: var(--transition);
  z-index: 0;
}

.timeline__item:hover {
  transform: translateY(-8px);
  border-color: rgba(210, 21, 44, 0.45);
  box-shadow: 0 22px 40px rgba(210, 21, 44, 0.18);
}

.timeline__item:hover::before {
  opacity: 1;
  transform: translateY(0);
}

.timeline__step {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(210, 21, 44, 0.72);
  z-index: 1;
}

.timeline__item h3 {
  margin: 0;
  font-size: 1.4rem;
  z-index: 1;
}

.timeline__item p {
  margin: 0;
  color: rgba(235, 235, 245, 0.75);
  line-height: 1.6;
  z-index: 1;
}

.cta {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
  background: linear-gradient(120deg, rgba(16, 16, 22, 0.9), rgba(210, 21, 44, 0.12));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.cta__content h2 {
  margin: 0.6rem 0 1rem;
  font-size: clamp(2.1rem, 3.8vw, 3rem);
}

.cta__content p {
  margin: 0;
  color: rgba(235, 235, 245, 0.75);
  line-height: 1.7;
  max-width: 420px;
}

.cta__form {
  display: grid;
  gap: 1.2rem;
  padding: 2rem;
  background: rgba(7, 7, 10, 0.8);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(210, 21, 44, 0.12);
}

.form-field {
  display: grid;
  gap: 0.5rem;
}

.form-field--full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(235, 235, 245, 0.6);
}

input,
select,
textarea {
  padding: 0.8rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 7, 10, 0.85);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: var(--transition);
}

textarea {
  resize: none;
  min-height: 140px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(210, 21, 44, 0.8);
  box-shadow: 0 0 0 3px rgba(210, 21, 44, 0.2);
}

.site-footer {
  padding: 4rem var(--gutter) 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 7, 10, 0.92);
}

.site-footer__content {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: start;
}

.site-footer h3 {
  margin-top: 0;
  font-size: 1.4rem;
}

.site-footer p {
  margin: 0.4rem 0;
  color: rgba(235, 235, 245, 0.7);
}

.footer-social {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.footer-social a:hover {
  color: var(--red-500);
}

.site-footer__meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
  color: rgba(235, 235, 245, 0.45);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease, transform 500ms ease;
}

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

@media (max-width: 960px) {
  .site-nav {
    position: fixed;
    inset: 72px var(--gutter) auto var(--gutter);
    border-radius: 20px;
    background: rgba(7, 7, 10, 0.97);
    flex-direction: column;
    padding: 1.6rem;
    align-items: flex-start;
    gap: 1.2rem;
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-strong);
  }

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

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.is-active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  .nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: clamp(1.4rem, 7vw, 2.2rem);
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero__content {
    display: grid;
    gap: 1.4rem;
    justify-items: center;
  }

  .hero__content h1 {
    font-size: clamp(2.4rem, 8vw, 3rem);
  }

  .intro {
    max-width: 40ch;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    justify-items: center;
  }

  .matrix,
  .hero__image {
    width: min(100%, 320px);
  }

  .hero__visual .matrix {
    display: none;
  }

  .cta__form {
    padding: 1.6rem;
  }

  .site-footer {
    padding: 3rem var(--gutter) 2.4rem;
    text-align: center;
  }

  .site-footer__content {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 2.5rem;
  }

  .footer-social {
    justify-content: center;
    flex-wrap: wrap;
  }

  .site-footer__meta {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
  }
}

@media (max-width: 520px) {
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .button {
    width: 100%;
    justify-content: center;
  }
}

