* {
  box-sizing: border-box;
}

:root {
  --bg: #090909;
  --panel: #111111;
  --text: #f2f0e8;
  --muted: #85847f;
  --line: rgba(255,255,255,.12);
  --acid: #d7ff45;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  overflow-x: hidden;
}

.grid-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: .14;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.cursor-glow {
  position: fixed;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(215,255,69,.085), transparent 65%);
}

header {
  position: fixed;
  z-index: 30;
  left: 0;
  right: 0;
  top: 0;
  height: 78px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 0 4vw;
  backdrop-filter: blur(16px);
  background: rgba(9,9,9,.72);
}

.logo,
.header-center,
.menu-button,
.tiny,
.project-meta,
footer,
.hero-topline,
.scroll-note {
  font-family: "DM Mono", monospace;
}

.logo {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: .06em;
}

.logo span {
  color: var(--acid);
}

.header-center {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}

.menu-button {
  justify-self: end;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
  font-size: 11px;
}

.menu-panel {
  position: fixed;
  z-index: 25;
  inset: 78px 0 auto auto;
  width: min(440px, 100%);
  padding: 25px 4vw;
  display: flex;
  flex-direction: column;
  background: #121212;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: translateY(-140%);
  transition: .35s cubic-bezier(.2,.8,.2,1);
}

.menu-panel.open {
  transform: translateY(0);
}

.menu-panel a {
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-size: 23px;
}

main,
footer {
  position: relative;
  z-index: 2;
}

.hero {
  min-height: 100vh;
  padding: 125px 4vw 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-topline {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: .08em;
}

h1 {
  margin: auto 0;
  font-size: clamp(84px, 16vw, 250px);
  line-height: .72;
  letter-spacing: -.095em;
  font-weight: 700;
}

h1 span {
  color: var(--acid);
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.hero-bottom p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.night-status {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 12px 14px;
}

.moon {
  color: var(--acid);
  font-size: 30px;
}

.night-status span,
.night-status strong {
  display: block;
  font: 10px "DM Mono", monospace;
}

.night-status span {
  color: var(--muted);
  margin-bottom: 4px;
}

.scroll-note {
  margin-top: 55px;
  color: var(--muted);
  font-size: 9px;
}

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

.section-head {
  min-height: 170px;
  padding: 35px 4vw;
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.section-head span {
  font: 10px "DM Mono", monospace;
  color: var(--muted);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 76px);
  letter-spacing: -.05em;
  font-weight: 500;
}

.project {
  min-height: 340px;
  padding: 34px 4vw;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: .3s ease;
}

.project:hover {
  background: #111;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}

.project-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.project-title h3 {
  margin: 0;
  font-size: clamp(64px, 10vw, 160px);
  line-height: .8;
  letter-spacing: -.07em;
  font-weight: 500;
  transition: .3s ease;
}

.project:hover h3 {
  padding-left: 2vw;
  color: var(--acid);
}

.project-title span {
  font-size: 36px;
}

.project > p {
  max-width: 470px;
  color: var(--muted);
  margin: 0 0 0 auto;
  font-size: 14px;
}

.manifesto {
  min-height: 70vh;
  padding: 90px 4vw;
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid var(--line);
}

.manifesto-label {
  font: 10px "DM Mono", monospace;
  color: var(--muted);
}

.manifesto p {
  margin: 0;
  font-size: clamp(42px, 6vw, 96px);
  letter-spacing: -.055em;
  line-height: 1.02;
  max-width: 1250px;
}

.manifesto p span {
  color: var(--acid);
}

.contact {
  min-height: 65vh;
  padding: 80px 4vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tiny {
  color: var(--muted);
  font-size: 10px;
}

.contact h2 {
  font-size: clamp(52px, 8vw, 130px);
  letter-spacing: -.065em;
  line-height: .9;
  font-weight: 500;
  margin: 40px 0;
}

.contact-button {
  margin-left: auto;
  width: min(520px, 100%);
  border-top: 1px solid var(--text);
  border-bottom: 1px solid var(--text);
  padding: 22px 4px;
  color: var(--text);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  font-size: 28px;
  transition: .25s ease;
}

.contact-button:hover {
  color: var(--acid);
  padding-left: 14px;
  padding-right: 14px;
}

footer {
  min-height: 76px;
  border-top: 1px solid var(--line);
  padding: 25px 4vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 9px;
}

@media (max-width: 760px) {
  .header-center {
    display: none;
  }

  header {
    grid-template-columns: 1fr 1fr;
  }

  .hero-topline span:last-child {
    display: none;
  }

  h1 {
    font-size: clamp(76px, 24vw, 150px);
    line-height: .76;
  }

  .hero-bottom {
    gap: 30px;
    align-items: start;
    flex-direction: column;
  }

  .section-head {
    grid-template-columns: 50px 1fr;
  }

  .section-head > span:last-child {
    display: none;
  }

  .project {
    min-height: 280px;
  }

  .project > p {
    margin-left: 0;
  }

  .manifesto {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  footer span:nth-child(2) {
    display: none;
  }

  .cursor-glow {
    display: none;
  }
}
