:root {
  color-scheme: dark;
  --ink: #f7f7f7;
  --muted: #b8b8b8;
  --paper: #060606;
  --surface: #111111;
  --line: rgba(255, 255, 255, 0.13);
  --red: #ff1f3d;
  --red-dark: #9f1022;
  --red-soft: rgba(255, 31, 61, 0.16);
  --black: #000000;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(6, 6, 6, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.main-nav,
.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
}

.brand {
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: lowercase;
}

.main-nav {
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.main-nav a:hover,
.text-link:hover,
.site-footer a:hover {
  color: var(--red);
}

.section,
.section-band {
  padding: clamp(70px, 9vw, 124px) clamp(20px, 5vw, 72px);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  min-height: calc(100vh - 78px);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: clamp(24px, 5vw, 64px);
  text-align: center;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 31, 61, 0.22), transparent 30%),
    linear-gradient(180deg, #000000 0%, #080808 58%, #160307 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.hero::before {
  inset: 7% auto auto 50%;
  width: min(760px, 92vw);
  height: min(760px, 92vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 31, 61, 0.36), rgba(255, 31, 61, 0.1) 34%, transparent 68%);
  filter: blur(24px);
  transform: translateX(-50%);
  animation: redPulse 4200ms ease-in-out infinite;
}

.hero::after {
  inset: 18% auto auto 50%;
  width: min(540px, 72vw);
  height: min(540px, 72vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.42) 46%, transparent 72%);
  filter: blur(18px);
  transform: translateX(-50%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin-inline: auto;
}

.intro-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.24em;
  min-height: 1.1em;
  margin: 0 0 22px;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 4.7rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow:
    0 0 22px rgba(255, 31, 61, 0.44),
    0 0 58px rgba(255, 31, 61, 0.24);
}

.adev-word {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 3.25em;
  height: 1em;
  justify-content: flex-start;
  color: var(--red);
  line-height: 1;
}

.adev-a {
  color: #ffffff;
}

.adev-a {
  position: relative;
  display: inline-block;
  width: 0.64em;
  height: 1em;
  line-height: 1;
  vertical-align: top;
}

.letter-m,
.letter-v {
  display: inline-block;
  height: 1em;
  line-height: 1;
  vertical-align: top;
}

.adev-core {
  display: inline-block;
  color: #ffffff;
  height: 1em;
  line-height: 1;
  vertical-align: top;
  animation: openWordSpace 5200ms cubic-bezier(0.22, 1, 0.36, 1) 500ms infinite;
}

.adev-switch {
  position: relative;
  display: inline-block;
  width: 0.62em;
  height: 1em;
  color: var(--red);
  line-height: 1;
  vertical-align: top;
  overflow: visible;
  animation: openWordSpace 5200ms cubic-bezier(0.22, 1, 0.36, 1) 500ms infinite;
}

.letter-v {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateX(2.4em);
  animation: slideInV 5200ms cubic-bezier(0.22, 1, 0.36, 1) 500ms infinite;
}

.letter-m {
  animation: slideOutM 5200ms cubic-bezier(0.22, 1, 0.36, 1) 500ms infinite;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 14ch;
  margin-inline: auto;
  margin-bottom: 24px;
  font-size: clamp(3rem, 8vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4.5vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.hero-copy > p:not(.eyebrow):not(.intro-line),
.section-heading p,
.about-copy p,
.contact-panel > p {
  max-width: 640px;
  margin-inline: auto;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions,
.contact-actions {
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 13px 20px;
  font-weight: 850;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: scale(1.02);
}

.button-primary {
  background: var(--red);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(255, 31, 61, 0.22);
}

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

.portrait-stage {
  position: relative;
  z-index: 1;
  width: clamp(140px, 18vw, 220px);
  height: clamp(168px, 22vw, 270px);
  min-height: 0;
  margin: 0 auto 24px;
}

.portrait-stage::before {
  position: absolute;
  inset: 8% -8% -7% 10%;
  content: "";
  border-radius: 36% 64% 48% 52%;
  background:
    linear-gradient(145deg, rgba(255, 31, 61, 0.88), rgba(159, 16, 34, 0.84)),
    var(--red);
  transform: rotate(-5deg);
}

.portrait-stage::after {
  position: absolute;
  right: -12%;
  bottom: -10%;
  width: 72px;
  height: 72px;
  content: "";
  border: 10px solid var(--red);
  border-radius: 50%;
}

.portrait-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 31, 61, 0.28), rgba(255, 255, 255, 0.05)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0 12px, transparent 12px 24px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.portrait-placeholder::before,
.about-image::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  border-radius: inherit;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 31, 61, 0.38), transparent 28%),
    radial-gradient(circle at 18% 82%, rgba(255, 31, 61, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(255, 31, 61, 0.08), transparent 48%);
  mix-blend-mode: screen;
}

.portrait-placeholder::after,
.about-image::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  content: "";
  border-radius: inherit;
  border: 1px solid rgba(255, 31, 61, 0.34);
  box-shadow:
    inset 0 0 90px rgba(255, 31, 61, 0.2),
    0 0 42px rgba(255, 31, 61, 0.2);
}

.portrait-placeholder img,
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.14) saturate(0.86) brightness(0.9);
}

.portrait-placeholder img {
  object-position: center 36%;
}

.about-image img {
  object-position: center 38%;
}

.portrait-placeholder span,
.about-image span,
.project-image span {
  display: block;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 900;
}

.portrait-placeholder span {
  align-self: end;
  font-size: clamp(2rem, 5vw, 4rem);
}

.portrait-placeholder small {
  align-self: start;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.stats-strip div {
  padding: 28px clamp(20px, 5vw, 72px);
  border-right: 1px solid var(--line);
}

.stats-strip div:last-child {
  border-right: 0;
}

.stats-strip strong,
.stats-strip span {
  display: block;
}

.stats-strip strong {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.stats-strip span {
  color: var(--muted);
  font-weight: 700;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading.align-left {
  margin: 0 auto;
  text-align: center;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin-inline: auto;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(24, 33, 47, 0.08);
}

.project-image {
  display: grid;
  min-height: 280px;
  place-items: center;
}

.image-a {
  background:
    linear-gradient(135deg, rgba(255, 31, 61, 0.88), rgba(0, 0, 0, 0.86)),
    var(--red);
}

.image-b {
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(255, 31, 61, 0.78)),
    var(--black);
}

.image-c {
  background:
    linear-gradient(135deg, rgba(255, 31, 61, 0.74), rgba(17, 17, 17, 0.96)),
    var(--black);
}

.project-content {
  padding: 24px;
}

.project-type {
  margin-bottom: 8px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-content p:last-child,
.skill-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 7vw, 86px);
  align-items: start;
  justify-items: center;
  text-align: center;
}

.skill-list {
  display: grid;
  gap: 14px;
  width: min(780px, 100%);
}

.skill-item {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.skill-item:first-child {
  padding-top: 0;
}

.skill-item span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--red);
  color: #ffffff;
  font-weight: 900;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: center;
  justify-items: center;
  text-align: center;
  background: #090909;
  color: #ffffff;
}

.about-image {
  position: relative;
  display: grid;
  width: min(340px, 100%);
  min-height: 380px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 31, 61, 0.82), rgba(0, 0, 0, 0.88)),
    var(--red);
  box-shadow: var(--shadow);
}

.about-copy p {
  color: rgba(255, 255, 255, 0.74);
}

.about-copy {
  max-width: 780px;
}

.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--red);
  font-weight: 900;
}

.contact {
  background:
    linear-gradient(90deg, var(--red-soft), transparent 38%),
    linear-gradient(180deg, #060606, #111111);
}

.contact-panel {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.contact-panel p {
  margin-inline: auto;
}

.contact-actions {
  justify-content: center;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

@keyframes openWordSpace {
  0%,
  28% {
    transform: translateX(0);
  }

  48%,
  82% {
    transform: translateX(0.42em);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes slideOutM {
  0%,
  34% {
    opacity: 1;
    transform: translateX(0);
  }

  58%,
  80% {
    opacity: 0;
    transform: translateX(2.4em);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInV {
  0%,
  34% {
    opacity: 0;
    transform: translateX(2.4em);
  }

  58%,
  80% {
    opacity: 1;
    transform: translateX(0);
  }

  100% {
    opacity: 0;
    transform: translateX(2.4em);
  }
}

@keyframes redPulse {
  0%,
  100% {
    opacity: 0.68;
    transform: translateX(-50%) scale(0.96);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.05);
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

  .hero,
  .split-section,
  .about {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .portrait-stage {
    width: clamp(132px, 32vw, 190px);
    height: clamp(158px, 40vw, 234px);
    min-height: 0;
  }

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

@media (max-width: 640px) {
  .main-nav {
    gap: 16px;
    font-size: 0.86rem;
  }

  h1 {
    max-width: 11ch;
  }

  .intro-line {
    font-size: clamp(1.45rem, 8vw, 2.2rem);
  }

  .portrait-stage {
    width: 138px;
    height: 172px;
    min-height: 0;
  }

  .portrait-placeholder {
    inset: 0;
    border-radius: 20px;
  }

  .stats-strip {
    grid-template-columns: 1fr;
  }

  .stats-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats-strip div:last-child {
    border-bottom: 0;
  }

  .skill-item {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}
