:root {
  --bg: #0f1116;
  --bg-deep: #090b10;
  --ink: #f1e8ce;
  --muted: #b3ac99;
  --line: rgba(241, 232, 206, 0.2);

  --stripe-1: #88b67a;
  --stripe-2: #78999c;
  --stripe-3: #d3a73a;
  --stripe-4: #d85a42;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  font-family: "Sora", sans-serif;
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(120, 183, 255, 0.08), transparent 55%),
    radial-gradient(900px 640px at 110% 0%, rgba(255, 193, 107, 0.06), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(rgba(255, 255, 255, 0.7) 0.55px, transparent 0.55px);
  background-size: 3px 3px;
}

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: min(1240px, calc(100% - 2rem));
  margin: 1rem auto;
  padding: 0.9rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 15, 22, 0.86), rgba(10, 12, 18, 0.92));
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(241, 232, 206, 0.06);
}

.page::before {
  content: "";
  position: absolute;
  inset: 0.5rem;
  border: 1px solid rgba(241, 232, 206, 0.16);
  pointer-events: none;
}

.topline,
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--line);
  padding: 0.56rem 0.74rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(16, 19, 27, 0.75);
}

.topline p,
.foot p {
  margin: 0;
}

.brand {
  color: var(--ink);
}

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: clamp(360px, 52vh, 540px);
  padding: clamp(1.3rem, 3.2vw, 2.2rem);
  border: 1px solid var(--line);
  background:
    radial-gradient(780px 420px at 84% 24%, rgba(241, 232, 206, 0.06), transparent 75%),
    linear-gradient(180deg, rgba(15, 18, 27, 0.9), rgba(12, 15, 22, 0.95));
  overflow: hidden;
}

.stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(to top, rgba(12, 14, 20, 0.65), transparent 85%);
  pointer-events: none;
  z-index: 2;
}

.retro-bands {
  position: relative;
  order: 2;
  width: 118%;
  margin-top: 1rem;
  margin-left: -12%;
  z-index: 1;
  filter: saturate(0.92);
}

.band {
  display: block;
  height: clamp(16px, 1.9vw, 34px);
  margin-bottom: clamp(0.22rem, 0.36vw, 0.5rem);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 3px 16px rgba(0, 0, 0, 0.18);
  clip-path: polygon(0 0, 98% 0, 100% 100%, 0 100%);
}

.b1 {
  width: 66%;
  background: var(--stripe-1);
}

.b2 {
  width: 72%;
  background: var(--stripe-2);
}

.b3 {
  width: 79%;
  background: var(--stripe-3);
}

.b4 {
  width: 86%;
  background: var(--stripe-4);
}

.copy {
  position: relative;
  order: 1;
  z-index: 3;
  width: min(620px, 100%);
}

.kicker {
  margin: 0 0 0.7rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.69rem;
  letter-spacing: 0.17em;
  color: var(--muted);
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: clamp(2.4rem, 8.2vw, 6.8rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--ink);
  max-width: 8ch;
  text-wrap: balance;
}

.lede {
  margin: 1.05rem 0 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.5vw, 1.07rem);
  line-height: 1.7;
}

.project-links {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.3rem;
  text-decoration: none;
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.73rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.58rem 0.76rem;
  border: 1px solid rgba(241, 232, 206, 0.35);
  background: rgba(241, 232, 206, 0.04);
  transition: background-color 220ms ease, transform 220ms ease, border-color 220ms ease;
}

.project-link:hover {
  transform: translateY(-2px);
  background: rgba(241, 232, 206, 0.1);
  border-color: rgba(241, 232, 206, 0.55);
}

.project-link:focus-visible {
  outline: 2px solid rgba(241, 232, 206, 0.75);
  outline-offset: 2px;
}

.copy,
.retro-bands {
  animation: rise 880ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.retro-bands {
  animation-delay: 120ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .stage {
    min-height: clamp(340px, 50vh, 500px);
    padding: 1.2rem;
  }

  .retro-bands {
    width: 130%;
    margin-top: 0.9rem;
    margin-left: -26%;
  }

  h1 {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .page {
    width: calc(100% - 1rem);
    margin: 0.5rem auto;
    padding: 0.62rem;
  }

  .topline,
  .foot {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    flex-direction: column;
    align-items: flex-start;
  }

  .stage {
    min-height: clamp(380px, 62vh, 470px);
    padding: 1rem;
  }

  .copy {
    width: 100%;
  }

  .retro-bands {
    width: 156%;
    margin-left: -48%;
    margin-top: 0.75rem;
  }

  .lede {
    max-width: 34ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
