:root {
  --bg-main: #070d12;
  --bg-soft: #0f1a21;
  --card: #14212a;
  --line: #28424f;
  --text: #e9f4ff;
  --muted: #9fb7c7;
  --accent: #32d0b8;
  --accent-soft: #8ef7db;
  --accent-cold: #3c8bd9;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--bg-main);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.network-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.03;
  background-image: radial-gradient(#ffffff 0.6px, transparent 0.6px);
  background-size: 4px 4px;
}

.topbar,
.hero,
main,
.footer {
  position: relative;
  z-index: 2;
}

.ambient {
  display: none;
}

.ambient--one {
  display: none;
}

.ambient--two {
  display: none;
}

.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: rgba(8, 19, 26, 0.78);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.topbar.topbar--hidden {
  transform: translateY(-130%);
  opacity: 0;
  pointer-events: none;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}

.logo__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.menu {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.menu a:hover {
  color: var(--text);
}

.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 22px;
  padding: 34px 0 30px;
}

.status {
  display: inline-block;
  margin: 0;
  border: 1px solid rgba(142, 247, 219, 0.35);
  color: var(--accent-soft);
  background: rgba(50, 208, 184, 0.1);
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13px;
}

h1,
h2,
h3 {
  letter-spacing: 0.01em;
}

h1 {
  margin: 12px 0 0;
  font-size: clamp(34px, 8vw, 84px);
  line-height: 1.02;
}

.hero__lead {
  max-width: 58ch;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 18px;
}

.hero__actions {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.action {
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.22s ease, background 0.22s ease;
}

.action--main {
  color: #032822;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
}

.action--ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.01);
}

.action:hover {
  transform: translateY(-2px);
}

.avatar-wrap {
  margin-left: auto;
  width: min(360px, 78vw);
  aspect-ratio: 1 / 1;
  border-radius: 26px;
  padding: 14px;
  border: 1px solid #2d5f73;
  background: linear-gradient(155deg, #10202a, #0a1218 62%);
}

.avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  filter: grayscale(0.2) contrast(1.16);
}

.flow-section {
  margin-top: 28px;
}

.flow-section h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 4vw, 36px);
}

.flow-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.projects-flow {
  display: grid;
  gap: 10px;
}

.project-flow__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.project-flow h3 {
  margin: 0;
  font-size: 21px;
}

.project-flow__desc p {
  margin-top: 9px;
}

.chip {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(50, 208, 184, 0.35);
  color: var(--accent-soft);
  background: rgba(50, 208, 184, 0.1);
}

.project-links {
  margin-top: 11px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-links a {
  text-decoration: none;
  color: #cbfff4;
  border: 1px solid #336173;
  padding: 7px 12px;
  border-radius: 10px;
}

.project-links a:hover {
  background: rgba(142, 247, 219, 0.1);
}

.project-rail {
  margin-top: 16px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scrollbar-width: none;
  padding: 4px 0 10px;
  touch-action: pan-y;
}

.project-rail:active {
  cursor: grabbing;
}

.project-rail::-webkit-scrollbar {
  display: none;
}

.project-rail::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
}

.project-rail__track {
  display: flex;
  gap: 0;
  width: max-content;
  padding-inline: 20px;
}

.project-rail__item {
  position: relative;
  margin: 0;
  flex: 0 0 min(560px, 88vw);
  height: min(320px, 52vw);
  border-radius: 0;
  overflow: hidden;
  border: 0;
  background: #0a151c;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

.project-rail__item + .project-rail__item {
  margin-left: -12px;
}

.project-rail__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #091219;
  filter: contrast(1.04) saturate(0.95);
  pointer-events: none;
  user-select: none;
}


.roadmap-list {
  display: grid;
  gap: 10px;
}

.roadmap-item {
  border-left: 2px solid #6e4631;
  padding: 8px 0 8px 12px;
  color: var(--muted);
}

.contacts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.contact-label {
  color: var(--muted);
}

.contacts-list a {
  color: #b8fff1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer {
  margin: 20px auto 34px;
  padding: 14px 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.footer a {
  color: #b8fff1;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 24px;
  }

  .avatar-wrap {
    margin-inline: 0;
    width: min(320px, 88vw);
  }

  .menu {
    gap: 10px;
  }
}
