@font-face {
  font-family: "Fliege Mono";
  src: url("fonts/FliegeMono-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fliege Mono";
  src: url("fonts/FliegeMono-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fliege Mono";
  src: url("fonts/FliegeMono-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fliege Mono";
  src: url("fonts/FliegeMono-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --green: #39ff28;
  --green-deep: #0d6f0b;
  --line: #3f3f3f;
}

* { box-sizing: border-box; }

html { background: #050505; }

body {
  margin: 0;
  background: #050505;
  color: #fff;
  font-family: "Fliege Mono", "Courier New", ui-monospace, monospace;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }

.mobile-page {
  width: min(100%, 402px);
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background: #000;
  padding: 0 30px 38px;
}

.hero {
  position: relative;
  height: 263px;
  border-bottom: 1px dashed #133d11;
}

.hero h1,
.projects h2 {
  margin: 0;
  font-weight: 400;
  color: transparent;
  background: linear-gradient(90deg, #12480d, #159b0f 53%, #041703);
  -webkit-background-clip: text;
  background-clip: text;
  letter-spacing: -.062em;
  white-space: nowrap;
}

.hero h1 {
  position: absolute;
  top: -47px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 134px;
  line-height: 1;
}

.profile {
  position: absolute;
  top: 116px;
  left: 0;
  width: 100%;
  height: 100px;
}

.profile img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #124c0d;
}

.handle {
  margin-bottom: 2px;
  font-size: 24px;
  line-height: 29px;
  letter-spacing: -.06em;
  color: #158f0f;
}

.profile > div {
  position: absolute;
  left: 128px;
  top: 10px;
}

.profile p {
  margin: 0;
  font-size: 18px;
  line-height: 18px;
  letter-spacing: -.06em;
  color: #5d5d5d;
  font-weight: 300;
}

.projects h2 {
  height: 140px;
  display: flex;
  align-items: flex-start;
  padding-top: 45px;
  font-size: clamp(60px, 17.25vw, 69.345px);
  line-height: 69.345px;
}

.project-list { display: grid; gap: 20px; }

.project-card {
  position: relative;
  display: block;
  height: 267px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: linear-gradient(150deg, #151515, #0d1c0c);
  isolation: isolate;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 100ms ease;
}

.project-card:active,
.project-card:focus-visible,
.socials a:active,
.socials a:focus-visible {
  outline: none;
  border-color: #35f425;
  box-shadow: 0 0 7px rgba(57,255,40,.72), inset 0 0 5px rgba(57,255,40,.22);
}

.project-card:active { transform: scale(.992); }

.card-art {
  position: absolute;
  z-index: -1;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

.cpa .card-art { width: 403px; height: 242px; object-fit: cover; left: 140px; top: 18px; }
.media .card-art { width: 386px; height: 290px; object-fit: cover; left: 100px; top: -3px; object-position: 34% center; }
.telegram .card-art { width: 264px; height: 352px; object-fit: cover; left: 160px; top: 0; object-position: left top; }

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.04) 0%, rgba(0,0,0,.05) 45%, transparent 72%);
}

.card-content { position: relative; height: 100%; padding: 29px; }

.chip {
  width: max-content;
  height: 35px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  gap: 8px;
  border: 1px solid #0f7d0d;
  background: linear-gradient(90deg, #064e05, #087b06);
  box-shadow: 0 0 13px rgba(26,255,18,.18);
  font-size: 9px;
  letter-spacing: -.06em;
  white-space: nowrap;
  font-weight: 400;
}

.chip i { width: 7px; height: 7px; border-radius: 50%; background: #3dff30; box-shadow: 0 0 6px #3dff30; }

.card-title {
  width: 194px;
  margin-top: 26px;
  font-size: 20px;
  line-height: 20px;
  letter-spacing: -.066em;
  font-weight: 300;
}

.card-title span { color: #aaa; }

.card-action {
  position: absolute;
  left: 29px;
  bottom: 19px;
  color: var(--green);
  font-size: 14px;
  line-height: 22px;
  letter-spacing: .05em;
  font-weight: 500;
}

.card-action b { font-size: 17px; font-weight: 400; }
.media { background: linear-gradient(#10180f, #000); }
.telegram { background: linear-gradient(#10180f, #000); }
.media .card-title { width: 150px; }
.telegram .card-title { width: 196px; }

.studio {
  background: linear-gradient(180deg, #071c05, #073c04);
}
.studio .chip { position: relative; z-index: 2; }
.studio .card-title { width: 235px; position: relative; z-index: 2; }
.studio .card-action { color: #fff; z-index: 2; }

.studio-light {
  position: absolute;
  z-index: -1;
  inset: 84px -20px -25px;
  opacity: .82;
  filter: blur(8px);
  background:
    repeating-linear-gradient(84deg, transparent 0 12px, rgba(75,255,50,.2) 13px 17px, transparent 18px 27px),
    radial-gradient(ellipse at 50% 125%, #33ff1e 0, #13850c 38%, transparent 70%);
  transform: perspective(260px) rotateX(28deg) scaleX(1.18);
}

.socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-top: 32px;
}

.socials a {
  width: 61px;
  height: 60px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 100ms ease;
}

.socials a:active { transform: scale(.95); }
.socials img { display: block; width: 61px; height: 60px; }

@media (max-width: 360px) {
  .mobile-page { padding-inline: 18px; }
  .hero h1 { font-size: 118px; }
  .profile > div { left: 116px; }
  .handle { font-size: 21px; }
  .profile p { font-size: 16px; line-height: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .project-card, .socials a { transition: none; }
}
