@font-face {
  font-family: "Still Life Helvetica Neue";
  src: url("StillLifeHelveticaNeue-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #07110f;
  --panel: rgba(10, 27, 24, .72);
  --panel-strong: rgba(11, 34, 29, .92);
  --text: #e7fff7;
  --muted: #91b8ad;
  --line: rgba(126, 255, 208, .2);
  --accent: #8dffd5;
  --accent-strong: #d2fff0;
  --shadow: 0 22px 70px rgba(0, 0, 0, .42);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: "Still Life Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 15% 12%, rgba(53, 181, 145, .2), transparent 28rem),
    radial-gradient(circle at 82% 32%, rgba(28, 92, 116, .18), transparent 34rem),
    linear-gradient(145deg, #040807 0%, #071411 45%, #081014 100%);
  animation: drift 18s ease-in-out infinite alternate;
}
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .08;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 3px, rgba(205,255,240,.22) 4px);
  mix-blend-mode: overlay;
}
.wrap { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 24px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.brand { text-decoration: none; font-weight: 800; letter-spacing: .12em; }
.cursor { color: var(--accent); animation: blink 1.1s steps(1) infinite; }
nav { display: flex; gap: 22px; }
nav a { color: var(--muted); text-decoration: none; font-size: .85rem; }
nav a:hover { color: var(--accent-strong); }
main { padding-block: 40px 90px; }
.panel, .project-card, .spotify-card, .link-button {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(14, 37, 32, .82), rgba(6, 19, 18, .7));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.hero { padding: clamp(34px, 8vw, 86px); border-radius: calc(var(--radius) + 8px); min-height: 560px; display: grid; align-content: center; position: relative; overflow: hidden; }
.hero::after { content: "404 // SIGNAL ACTIVE"; position: absolute; right: 24px; bottom: 18px; color: rgba(141,255,213,.18); font: 700 .72rem ui-monospace, monospace; letter-spacing: .18em; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font: 700 .76rem ui-monospace, monospace; letter-spacing: .16em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 20px; font-size: clamp(4rem, 14vw, 9rem); line-height: .86; letter-spacing: -.07em; text-shadow: 0 0 35px rgba(141,255,213,.16); }
h2 { margin-bottom: 0; font-size: clamp(2rem, 6vw, 3.8rem); letter-spacing: -.045em; }
h3 { margin-bottom: 8px; }
.intro { max-width: 680px; color: #c4ded6; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.status-line { display: flex; align-items: center; gap: 10px; margin-block: 24px 30px; color: var(--accent-strong); font-family: ui-monospace, monospace; min-height: 1.7em; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.primary-button { justify-self: start; padding: 13px 20px; border: 1px solid var(--accent); border-radius: 999px; color: #04100c; background: var(--accent); text-decoration: none; font-weight: 800; }
.section-block { padding-top: 100px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.tag-grid { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 28px; }
.tag-grid span { padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; color: #cce9df; background: rgba(9, 31, 27, .52); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-top: 28px; }
.project-card { min-height: 255px; padding: 24px; border-radius: var(--radius); transition: transform .25s ease, border-color .25s ease; }
.project-card:hover { transform: translateY(-5px); border-color: rgba(141,255,213,.55); }
.project-card p { color: var(--muted); }
.project-status, .spotify-label { color: var(--accent); font: 700 .7rem ui-monospace, monospace; letter-spacing: .14em; }
.disabled-link { color: #6f978b; font-size: .9rem; }
.spotify-card { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 22px; margin-top: 28px; border-radius: var(--radius); }
.album-placeholder { width: 92px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 16px; background: radial-gradient(circle at 35% 30%, #63c7aa, #173d34 48%, #091510 100%); font-size: 2rem; }
.track-copy p:last-child { margin-bottom: 0; color: var(--muted); }
.equalizer { display: flex; align-items: end; gap: 4px; height: 34px; }
.equalizer i { width: 4px; height: 40%; background: var(--accent); border-radius: 4px; animation: equalize 1.1s ease-in-out infinite alternate; }
.equalizer i:nth-child(2) { animation-delay: -.6s; height: 80%; }
.equalizer i:nth-child(3) { animation-delay: -.3s; height: 55%; }
.equalizer i:nth-child(4) { animation-delay: -.8s; height: 95%; }
.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-top: 28px; }
.link-button { padding: 18px; border-radius: 15px; color: var(--muted); font-family: ui-monospace, monospace; text-align: center; }
footer { display: flex; justify-content: space-between; gap: 20px; padding-block: 28px 45px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
footer p { margin-bottom: 0; }
footer a { color: var(--accent); text-decoration: none; }
a:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 5px; }

@keyframes drift { to { transform: scale(1.06) translate3d(-1%, 1%, 0); filter: hue-rotate(7deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes equalize { to { height: 100%; opacity: .65; } }

@media (max-width: 760px) {
  nav { display: none; }
  main { padding-top: 18px; }
  .hero { min-height: 500px; padding: 32px 24px; }
  .project-grid, .link-grid { grid-template-columns: 1fr; }
  .spotify-card { grid-template-columns: auto 1fr; }
  .equalizer { display: none; }
  .section-heading, footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
