* {
  box-sizing: border-box;
}

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

body {
  overflow-y: auto;
}

.corner-links {
  position: fixed;
  top: clamp(12px, 2vw, 24px);
  left: clamp(12px, 2vw, 24px);
  z-index: 30;
  display: grid;
  gap: 8px;
  justify-items: start;
}

.corner-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 2px solid #050505;
  border-radius: 999px;
  background:
    radial-gradient(circle at 22% 24%, rgba(255, 255, 255, 0.95) 0 18%, transparent 19%),
    linear-gradient(135deg, #fff7fb 0%, #dffcff 34%, #fff0fa 68%, #e9ffe5 100%);
  box-shadow:
    inset 0 5px 8px rgba(255, 255, 255, 0.84),
    inset 0 -7px 10px rgba(74, 55, 104, 0.2),
    4px 5px 0 rgba(5, 5, 5, 0.78);
  color: #17121c;
  font: 900 clamp(12px, 1.4vw, 16px) / 1 Impact, "Arial Black", sans-serif;
  padding: 8px 14px;
  text-decoration: none;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85),
    1px 1px 0 rgba(21, 183, 176, 0.48),
    -1px -1px 0 rgba(255, 79, 175, 0.44);
  text-transform: uppercase;
}

.corner-links a:focus-visible {
  outline: 4px solid #f5f0e6;
  outline-offset: 4px;
}

.photo-stream {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.stream-photo {
  --overlap: clamp(52px, 8vw, 150px);
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  filter: contrast(1.06) saturate(0.96);
}

.stream-photo + .stream-photo {
  margin-top: calc(var(--overlap) * -1);
}

.stream-photo:nth-of-type(1) {
  position: relative;
  z-index: 3;
  height: 100vh;
  min-height: 640px;
  object-fit: fill;
  object-position: center bottom;
  background: #050505;
  clip-path: polygon(
    0 0,
    100% 0,
    100% 97%,
    91% 99%,
    82% 97%,
    74% 100%,
    64% 98%,
    55% 100%,
    45% 98%,
    36% 100%,
    26% 98%,
    17% 100%,
    7% 97%,
    0 99%
  );
}

.stream-photo:nth-of-type(2) {
  position: relative;
  z-index: 2;
  clip-path: polygon(
    0 0,
    100% 0,
    100% 90%,
    92% 96%,
    80% 91%,
    71% 98%,
    61% 92%,
    50% 97%,
    38% 91%,
    29% 96%,
    18% 90%,
    9% 94%,
    0 89%
  );
}

.stream-photo:nth-of-type(3) {
  position: relative;
  z-index: 1;
}

.button-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: min(calc(100% - 64px), 1320px);
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 3vw, 34px);
  transform: translate(-50%, -50%);
}

.button-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 4vw, 54px);
}

.foam-button,
.project-button {
  border: 3px solid rgba(14, 16, 18, 0.94);
  cursor: pointer;
  font: 900 clamp(15px, 2vw, 26px) / 1 Impact, "Arial Black", sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

.foam-button {
  position: relative;
  display: inline-flex;
  min-width: clamp(108px, 12vw, 190px);
  min-height: clamp(52px, 7vw, 82px);
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 999px;
  padding: 10px clamp(14px, 2.2vw, 28px);
  background:
    radial-gradient(circle at 18% 32%, rgba(248, 68, 163, 0.82) 0 4%, transparent 4.4%),
    radial-gradient(circle at 34% 22%, rgba(31, 214, 199, 0.78) 0 3.4%, transparent 3.8%),
    radial-gradient(circle at 63% 28%, rgba(131, 231, 104, 0.82) 0 4.2%, transparent 4.6%),
    radial-gradient(circle at 75% 62%, rgba(248, 68, 163, 0.68) 0 3.3%, transparent 3.7%),
    radial-gradient(circle at 45% 70%, rgba(31, 214, 199, 0.66) 0 2.8%, transparent 3.2%),
    radial-gradient(circle at 88% 38%, rgba(131, 231, 104, 0.72) 0 2.7%, transparent 3.1%),
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.95) 0 15%, transparent 16%),
    linear-gradient(135deg, #fff7fb 0%, #e5fbff 28%, #f7f4ff 50%, #fff1fa 72%, #e8fff4 100%);
  box-shadow:
    inset 0 8px 12px rgba(255, 255, 255, 0.88),
    inset 0 -12px 18px rgba(74, 55, 104, 0.22),
    0 10px 0 rgba(6, 10, 13, 0.88),
    0 22px 28px rgba(0, 0, 0, 0.42);
  color: #17121c;
  isolation: isolate;
  text-decoration: none;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.86),
    1px 2px 0 rgba(21, 183, 176, 0.5),
    -1px -1px 0 rgba(255, 79, 175, 0.5);
  transition:
    background 120ms ease,
    box-shadow 120ms ease,
    transform 120ms ease;
}

.foam-button::before,
.foam-button::after {
  position: absolute;
  inset: auto;
  content: "";
  pointer-events: none;
}

.foam-button::before {
  z-index: -1;
  top: 9%;
  right: -12%;
  width: 96%;
  height: 70%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 12% 48%, #26d8c9 0 8%, transparent 8.7%),
    radial-gradient(circle at 28% 25%, #f35da9 0 7%, transparent 7.8%),
    radial-gradient(circle at 42% 62%, #7be46b 0 7%, transparent 7.8%),
    radial-gradient(circle at 58% 35%, #26d8c9 0 5%, transparent 5.8%),
    radial-gradient(circle at 72% 58%, #f35da9 0 6%, transparent 6.8%),
    radial-gradient(circle at 86% 30%, #7be46b 0 5%, transparent 5.8%),
    linear-gradient(90deg, transparent 0 8%, rgba(38, 216, 201, 0.75) 8% 14%, transparent 14% 24%, rgba(243, 93, 169, 0.74) 24% 32%, transparent 32% 44%, rgba(123, 228, 107, 0.72) 44% 51%, transparent 51%),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.28));
  opacity: 0.84;
  transform: rotate(-9deg);
}

.foam-button::after {
  z-index: -1;
  inset: 7px;
  border: 2px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  box-shadow: inset 0 -4px 10px rgba(10, 10, 12, 0.18);
}

.project-button {
  display: inline-grid;
  width: clamp(74px, 11vw, 128px);
  height: clamp(74px, 11vw, 128px);
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  padding: 0;
  background: #050505;
  box-shadow:
    inset 0 0 0 5px rgba(255, 255, 255, 0.18),
    0 10px 0 rgba(6, 10, 13, 0.88),
    0 22px 28px rgba(0, 0, 0, 0.42);
}

.project-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.os-button {
  min-width: clamp(142px, 15vw, 230px);
}

.scraps-button:active,
.about-button:active,
.media-button:active {
  background:
    radial-gradient(circle at 14% 38%, rgba(248, 68, 163, 0.96) 0 8%, transparent 8.7%),
    radial-gradient(circle at 28% 18%, rgba(31, 214, 199, 0.95) 0 7%, transparent 7.8%),
    radial-gradient(circle at 44% 66%, rgba(131, 231, 104, 0.95) 0 8%, transparent 8.8%),
    radial-gradient(circle at 60% 24%, rgba(255, 240, 74, 0.9) 0 6%, transparent 6.8%),
    radial-gradient(circle at 78% 58%, rgba(248, 68, 163, 0.92) 0 9%, transparent 9.8%),
    radial-gradient(circle at 88% 32%, rgba(31, 214, 199, 0.88) 0 5%, transparent 5.8%),
    linear-gradient(135deg, #fff7fb 0%, #dffcff 27%, #fff4ff 50%, #fff0fa 72%, #e9ffe5 100%);
  box-shadow:
    inset 0 5px 9px rgba(255, 255, 255, 0.82),
    inset 0 -7px 12px rgba(74, 55, 104, 0.28),
    0 5px 0 rgba(6, 10, 13, 0.9),
    0 14px 22px rgba(0, 0, 0, 0.44);
  transform: translateY(5px) scale(0.985);
}

.foam-button:focus-visible,
.project-button:focus-visible,
.subscribe-button:focus-visible {
  outline: 4px solid #f5f0e6;
  outline-offset: 4px;
}

@media (max-width: 560px) {
  .stream-photo {
    --overlap: clamp(34px, 12vw, 72px);
  }

  .stream-photo:nth-of-type(1) {
    min-height: 100vh;
    object-position: center bottom;
  }

  .button-overlay {
    top: 50%;
    width: min(calc(100% - 18px), 430px);
  }

  .button-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .foam-button,
  .project-button {
    box-shadow:
      inset 0 6px 10px rgba(255, 255, 255, 0.82),
      inset 0 -9px 14px rgba(74, 55, 104, 0.2),
      0 7px 0 rgba(6, 10, 13, 0.88),
      0 16px 20px rgba(0, 0, 0, 0.38);
  }
}
