:root {
  --bg: #070707;
  --paper: #f2eee7;
  --text: #f4f0e8;
  --muted: #aaa39a;
  --quiet: #706b65;
  --line: rgba(242, 238, 231, 0.13);
  --line-strong: rgba(242, 238, 231, 0.24);
  --panel: rgba(255, 255, 255, 0.045);
  --accent: #8b6cff;
  --radius: 8px;
  --side: clamp(18px, 6vw, 88px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(115deg, rgba(139, 108, 255, 0.11), transparent 34%),
    linear-gradient(180deg, #0b0b0c 0%, var(--bg) 42%, #050505 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 var(--side);
  background: linear-gradient(to bottom, rgba(7, 7, 7, 0.86), rgba(7, 7, 7, 0));
  backdrop-filter: blur(14px);
}

.logo {
  font-size: 1.05rem;
  font-weight: 900;
}

.nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav a {
  transition: color 160ms ease;
}

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

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 420px);
  align-items: end;
  gap: clamp(34px, 7vw, 96px);
  padding: 132px var(--side) clamp(54px, 8vw, 92px);
  border-bottom: 1px solid var(--line);
}

.hero-text {
  max-width: 920px;
}

.eyebrow,
.section-label,
.project span,
.status {
  color: var(--quiet);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 18px;
}

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

h1 {
  margin-bottom: 24px;
  color: var(--paper);
  font-size: clamp(5.5rem, 18vw, 16rem);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: 0;
}

.hero-line {
  max-width: 710px;
  color: #d8d1c6;
  font-size: clamp(1.12rem, 1.6vw, 1.35rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 850;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button.light {
  color: #101010;
  background: var(--paper);
}

.button.dark {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.button.dark:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.075);
}

.identity-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

.avatar-block {
  display: grid;
  min-height: 310px;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(242, 238, 231, 0.14), rgba(255, 255, 255, 0.025)),
    radial-gradient(circle at 66% 22%, rgba(139, 108, 255, 0.34), transparent 12rem);
}

.avatar-block span {
  color: var(--paper);
  font-size: 11rem;
  font-weight: 900;
  line-height: 1;
}

.identity-meta {
  padding: 24px;
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
}

.status span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #7dffb2;
}

.identity-meta h2 {
  margin-bottom: 10px;
  font-size: 1.9rem;
}

.identity-meta p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.section {
  padding: clamp(70px, 11vw, 140px) var(--side);
  border-bottom: 1px solid var(--line);
}

.section-label {
  margin-bottom: 24px;
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(260px, 1fr);
  gap: clamp(28px, 7vw, 92px);
  align-items: start;
}

.split h2,
.contact-inner h2 {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--paper);
  font-size: clamp(2.45rem, 6vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.split p,
.contact-inner p {
  max-width: 740px;
  color: #cac2b8;
  font-size: clamp(1.08rem, 1.8vw, 1.45rem);
  line-height: 1.72;
}

.project-list {
  border-top: 1px solid var(--line);
}

.project {
  display: grid;
  grid-template-columns: 70px minmax(190px, 0.7fr) minmax(260px, 1fr);
  gap: clamp(18px, 4vw, 52px);
  align-items: center;
  min-height: 124px;
  border-bottom: 1px solid var(--line);
  transition: background 160ms ease, transform 160ms ease;
}

.project:hover {
  background: rgba(255, 255, 255, 0.035);
  transform: translateX(6px);
}

.project h3 {
  margin-bottom: 0;
  color: var(--paper);
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1;
}

.project p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.link-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.link-list a {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background: #0c0c0d;
  transition: background 160ms ease, transform 160ms ease;
}

.link-list a:hover {
  background: #141316;
  transform: translateY(-2px);
}

.link-list strong {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.link-list span {
  color: var(--muted);
}

.contact {
  border-bottom: 0;
}

.contact-inner {
  max-width: 960px;
}

.contact-inner p {
  margin-top: 22px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px var(--side);
  color: var(--quiet);
  border-top: 1px solid var(--line);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

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

  .hero {
    min-height: auto;
  }

  .identity-card {
    max-width: 520px;
  }

  .project {
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 22px 0;
  }

  .project p {
    grid-column: 2 / -1;
  }

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

@media (max-width: 620px) {
  .header {
    min-height: 66px;
  }

  .nav {
    gap: 12px;
    font-size: 0.78rem;
  }

  .nav a:first-child {
    display: none;
  }

  h1 {
    font-size: clamp(4.8rem, 26vw, 7rem);
  }

  .avatar-block {
    min-height: 230px;
  }

  .avatar-block span {
    font-size: 8rem;
  }

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

  .footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
