:root {
  color-scheme: dark;
  --bg: #070908;
  --surface: #0b0e0c;
  --surface-raised: #0f1310;
  --text: #f1f5ed;
  --muted: #727b71;
  --green: #a7df38;
  --cyan: #52a8ff;
  --pink: #ff5f87;
  font-family: "Helvetica Neue", "Avenir Next", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 20%, rgba(167, 223, 56, 0.055), transparent 32%),
    radial-gradient(circle at 50% 110%, rgba(87, 121, 74, 0.055), transparent 42%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 0;
  opacity: 0.28;
  background-image: radial-gradient(rgba(202, 226, 188, 0.16) 0.6px, transparent 0.6px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 70%);
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

body::after {
  z-index: 2;
  opacity: 0.16;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.016) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
}

.studio-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1040px);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(28px, 5vh, 58px) clamp(22px, 5vw, 60px) clamp(28px, 5vh, 52px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(36px, 6vh, 74px);
}

.identity {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: clamp(12px, 2vh, 20px);
}

.logo-stage {
  position: relative;
  width: clamp(218px, 34vmin, 356px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  isolation: isolate;
  cursor: default;
}

.logo-stage::before,
.logo-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.logo-stage::before {
  inset: 9%;
  z-index: -2;
  background: radial-gradient(circle, rgba(167, 223, 56, 0.075), transparent 68%);
  filter: blur(24px);
}

.logo-stage::after {
  inset: 47%;
  z-index: -1;
  box-shadow: 0 0 92px 42px rgba(167, 223, 56, 0.06);
}

.logo-static,
#logoParticles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.logo-static {
  object-fit: contain;
  opacity: 0.96;
  filter: drop-shadow(0 0 16px rgba(167, 223, 56, 0.1));
  transition: opacity 700ms ease, filter 700ms ease;
}

.particles-running .logo-static {
  opacity: 0.055;
  filter: drop-shadow(0 0 22px rgba(167, 223, 56, 0.17));
}

#logoParticles {
  z-index: 1;
  display: block;
}

.identity h1 {
  margin: 0;
  color: rgba(231, 240, 223, 0.72);
  font-size: clamp(10px, 1vw, 12px);
  font-weight: 520;
  letter-spacing: 0.5em;
  line-height: 1;
  text-indent: 0.5em;
}

.projects {
  width: min(100%, 770px);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 14px;
}

.section-header h2 {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 560;
  line-height: 1;
  letter-spacing: 0.28em;
}

.project-card {
  --spot-x: 50%;
  --spot-y: 50%;
  position: relative;
  min-height: 104px;
  padding: 16px 18px 16px 16px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background:
    linear-gradient(105deg, rgba(167, 223, 56, 0.075), transparent 44%),
    #111611;
  border-radius: 16px;
  box-shadow:
    0 18px 54px rgba(0, 0, 0, 0.34),
    inset 0 1px rgba(255, 255, 255, 0.045);
  transition: background-color 240ms ease, box-shadow 240ms ease, transform 240ms cubic-bezier(.2,.8,.2,1);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(195, 255, 78, 0.13), transparent 36%);
  opacity: 0;
  transition: opacity 240ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  background-color: #151c14;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.46),
    0 0 38px rgba(167, 223, 56, 0.075),
    inset 0 1px rgba(255, 255, 255, 0.065);
  transform: translateY(-4px) scale(1.006);
  outline: none;
}

.project-card:hover::before,
.project-card:focus-visible::before { opacity: 1; }

.project-avatar {
  position: relative;
  z-index: 1;
  width: 72px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.project-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 320ms cubic-bezier(.2,.8,.2,1), filter 320ms ease;
}

.project-card:hover .project-avatar img,
.project-card:focus-visible .project-avatar img {
  transform: scale(1.08);
  filter: saturate(1.12) brightness(1.08);
}

.project-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  gap: 8px;
}

.project-copy strong {
  color: #edf2e9;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 540;
  line-height: 1;
  letter-spacing: 0.13em;
}

.project-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  font-weight: 520;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .studio-shell {
    padding-inline: 18px;
    gap: 30px;
  }

  .identity { min-height: 52svh; }

  .project-card {
    grid-template-columns: 60px minmax(0, 1fr);
    min-height: 90px;
    padding: 13px;
    gap: 14px;
    border-radius: 14px;
  }

  .project-avatar { width: 60px; border-radius: 9px; }
  .project-copy strong { font-size: 16px; }
  .project-copy small { font-size: 7px; letter-spacing: 0.14em; }
}

@media (max-height: 680px) and (min-width: 601px) {
  .studio-shell { padding-block: 24px; gap: 24px; }
  .logo-stage { width: clamp(190px, 31vmin, 270px); }
}

@media (prefers-reduced-motion: reduce) {
  .project-card,
  .project-avatar img,
  .logo-static { transition: none; }
  #logoParticles { display: none; }
  .particles-running .logo-static { opacity: 0.96; }
}
