@import url("https://fonts.cdnfonts.com/css/pp-neue-montreal");
@font-face {
  font-family: "PPSupplyMono";
  src: url("https://assets.codepen.io/7558/PPSupplyMono-Regular.ttf")
    format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
:root {
  --font-mono: "PPSupplyMono", monospace;
  --font-sans: "PP Neue Montreal", sans-serif;
  --color-bg: #f5f5f5;
  --color-text: #333;
  --color-text-light: #666;
  --color-text-lighter: #999;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: var(--color-bg);
  overflow-x: hidden;
  height: 250vh;
  transition: background-color 0.3s ease;
}
/* FOUC Prevention: Only apply to non-split elements or elements whose children are split */
.svg-container,
.text-grid,
.main-title {
  opacity: 0;
  pointer-events: none;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  pointer-events: none;
}
.color-switcher {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  pointer-events: auto;
}
.color-btn {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease;
}
.color-btn:hover {
  transform: scale(1.2);
}
.color-btn.active {
  transform: scale(1.3);
}
.theme-original {
  background: linear-gradient(
    135deg,
    #340b05 0%,
    #0358f7 25%,
    #ffd400 50%,
    #fa3d1d 75%,
    #fd02f5 100%
  );
}
.theme-blue-pink {
  background: linear-gradient(
    135deg,
    #1e3a8a 0%,
    #3b82f6 25%,
    #ffffff 50%,
    #f472b6 75%,
    #ec4899 100%
  );
}
.theme-blue-orange {
  background: linear-gradient(
    135deg,
    #1e40af 0%,
    #3b82f6 25%,
    #ffffff 50%,
    #fb923c 75%,
    #ea580c 100%
  );
}
.theme-sunset {
  background: linear-gradient(
    135deg,
    #fef3c7 0%,
    #fcd34d 25%,
    #f59e0b 50%,
    #dc2626 75%,
    #7f1d1d 100%
  );
}
.theme-purple {
  background: linear-gradient(
    135deg,
    #f3e8ff 0%,
    #c084fc 25%,
    #8b5cf6 50%,
    #7c3aed 75%,
    #5b21b6 100%
  );
}
.theme-monochrome {
  background: linear-gradient(
    135deg,
    #1a1a1a 0%,
    #404040 25%,
    #999999 50%,
    #e5e5e5 75%,
    #ffffff 100%
  );
}
.theme-pink-purple {
  background: linear-gradient(
    135deg,
    #fdf2f8 0%,
    #fce7f3 25%,
    #f9a8d4 50%,
    #f472b6 75%,
    #ec4899 100%
  );
}
.theme-blue-black {
  background: linear-gradient(
    135deg,
    #000000 0%,
    #1e293b 25%,
    #334155 50%,
    #475569 75%,
    #64748b 100%
  );
}
.theme-beige-black {
  background: linear-gradient(
    135deg,
    #fef3c7 0%,
    #f59e0b 25%,
    #d97706 50%,
    #92400e 75%,
    #451a03 100%
  );
}
.blur-toggle {
  position: absolute;
  top: 4.5rem;
  left: calc(50% - 60px);
  transform: translateX(-50%);
  pointer-events: auto;
  padding: 8px 20px;
}
.randomize-toggle {
  position: absolute;
  top: 4.5rem;
  left: calc(50% + 60px);
  transform: translateX(-50%);
  pointer-events: auto;
  padding: 8px 20px;
}
.blur-btn,
.randomize-btn {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1), color 0.3s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.blur-btn::before,
.randomize-btn::before {
  content: "•";
  position: absolute;
  left: -12px;
  top: 0;
  opacity: 0;
  color: var(--color-text-light);
  transition: opacity 0.2s cubic-bezier(0.23, 1, 0.32, 1), color 0.3s ease;
}
.blur-toggle:hover .blur-btn,
.randomize-toggle:hover .randomize-btn {
  transform: translateX(8px);
}
.blur-toggle:hover .blur-btn::before,
.randomize-toggle:hover .randomize-btn::before {
  opacity: 1;
}
.nav-item {
  position: fixed;
  color: var(--color-text);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  pointer-events: auto;
  z-index: 1000;
  transition: color 0.3s ease;
}
.nav-bottom-left,
.nav-bottom-right {
  color: var(--color-text-lighter);
  transition: color 0.3s ease;
}
.nav-top-left {
  top: 2rem;
  left: 2rem;
}
.nav-top-right {
  top: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-bottom-left {
  bottom: 2rem;
  left: 2rem;
}
.nav-bottom-right {
  bottom: 2rem;
  right: 2rem;
}
.nav-bottom-center {
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}
.sound-toggle {
  cursor: pointer;
  transition: transform 0.2s ease;
  display: inline-flex;
  align-items: center;
}
.sound-toggle:hover {
  transform: scale(1.1);
}
.sound-wave {
  width: 20px;
  height: 12px;
  border: 1px solid var(--color-text);
  border-radius: 2px;
  padding: 2px;
}
.wave-line {
  stroke: var(--color-text);
  stroke-width: 1;
  fill: none;
  stroke-linecap: round;
  transition: stroke 0.3s ease;
}
.wave-animated {
  -webkit-animation: flowingWave 1.5s linear infinite;
          animation: flowingWave 1.5s linear infinite;
}
@-webkit-keyframes flowingWave {
  0% {
    d: path("M2 6 Q4 2 6 6 Q8 10 10 6 Q12 2 14 6 Q16 10 18 6");
  }
  50% {
    d: path("M2 6 Q4 10 6 6 Q8 2 10 6 Q12 10 14 6 Q16 2 18 6");
  }
  100% {
    d: path("M2 6 Q4 2 6 6 Q8 10 10 6 Q12 2 14 6 Q16 10 18 6");
  }
}
@keyframes flowingWave {
  0% {
    d: path("M2 6 Q4 2 6 6 Q8 10 10 6 Q12 2 14 6 Q16 10 18 6");
  }
  50% {
    d: path("M2 6 Q4 10 6 6 Q8 2 10 6 Q12 10 14 6 Q16 2 18 6");
  }
  100% {
    d: path("M2 6 Q4 2 6 6 Q8 10 10 6 Q12 2 14 6 Q16 10 18 6");
  }
}
.hero-title .char {
}
.email-link {
  color: var(--color-text);
  text-decoration: none;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}
.email-link::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--bg-color, var(--color-text));
  z-index: -1;
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.email-link:hover::after {
  width: 100%;
}
.email-link:hover {
  color: var(--hover-color, var(--color-bg));
  position: relative;
  z-index: 1;
}
.scroll-space {
  height: 50vh;
  background-color: var(--color-bg);
  transition: background-color 0.3s ease;
}
.animation-section {
  height: 100vh;
  position: relative;
  background-color: var(--color-bg);
  transition: background-color 0.3s ease;
}
.footer-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100vh;
  pointer-events: none;
  z-index: 10;
}
.svg-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100vh;
  transform-origin: bottom;
  transform: scaleY(0.05) translateY(100vh);
  opacity: 0;
  z-index: 15;
  /* Hint to browser for performance */
  will-change: transform, opacity, filter;
}
.spectrum-svg {
  width: 100%;
  height: 100%;
}
.text-grid {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  align-items: end;
  z-index: 20;
  opacity: 0;
}
.text-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  padding-bottom: 2rem;
}
.wavelength-label {
  color: var(--color-text);
  font-size: 12px;
  text-align: center;
  margin-bottom: 1rem;
  display: inline-block;
  line-height: 1.3;
  transition: color 0.3s ease;
}
.main-title {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%);
  text-align: center;
  color: var(--color-text);
  font-size: 12px;
  line-height: 1.4;
  z-index: 20;
  opacity: 0;
  transition: color 0.3s ease;
}
.split-text {
  overflow: visible;
}
.bg-gradients {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.15;
}
.bg-gradient {
  position: absolute;
  filter: blur(40px);
  transition: opacity 0.5s ease;
  /* Hint to browser for performance */
  will-change: opacity, filter;
}
.bg-gradient-1 {
  top: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    var(--grad-color-1, #340b05) 0%,
    var(--grad-color-2, #0358f7) 35%,
    transparent 70%
  );
}
.bg-gradient-2 {
  top: 30%;
  right: -15%;
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    var(--grad-color-3, #ffd400) 0%,
    var(--grad-color-4, #fa3d1d) 40%,
    transparent 70%
  );
}
.bg-gradient-3 {
  bottom: -25%;
  left: 20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    var(--grad-color-5, #fd02f5) 0%,
    var(--grad-color-6, #5092c7) 45%,
    transparent 75%
  );
}
.hero-section {
  height: 100vh;
  width: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.hero-title {
  margin-top: 3rem;
  text-align: center;
  text-transform: uppercase;
  font-size: 8.75vw;
  font-weight: 500;
  letter-spacing: -0.02vw;
  font-family: var(--font-sans);
  color: var(--color-text);
  transition: color 0.3s ease;
}
.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 4rem;
}
.hero-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}
.hero-nav-item {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  line-height: 1.2;
  opacity: 1;
  position: relative;
  z-index: 10;
}
.hero-nav-item:hover {
  opacity: 1 !important;
  transform: translateX(8px);
}
.hero-nav-item.active {
  opacity: 1 !important;
}
.gradient-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  filter: blur(60px);
  transition: opacity 0.6s ease;
  will-change: opacity, filter;
}
.hero-text-content {
  display: flex;
  gap: 2rem;
  flex: 1;
  justify-content: flex-end;
}
.hero-text {
  width: 25%;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text);
  line-height: 1.6;
  overflow: hidden;
  transition: color 0.3s ease;
}
.hero-title .char,
.hero-title div,
.hero-nav-item div,
.hero-text div,
.wavelength-label div,
.main-title div,
.nav-bottom-center .char {
  will-change: transform, opacity, filter, color;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 1rem;
  }
  .hero-title {
    font-size: 12vw;
    margin-top: 2rem;
  }
  .hero-content {
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
  }
  .hero-text-content {
    flex-direction: column;
    gap: 1.5rem;
  }
  .hero-text {
    width: 100%;
    font-size: 10px;
  }
  .color-switcher {
    gap: 0.3rem;
    top: 1rem;
  }
  .blur-toggle {
    top: 3rem;
    left: calc(50% - 30px);
  }
  .randomize-toggle {
    top: 3rem;
    left: calc(50% + 30px);
  }
  .color-btn {
    width: 10px;
    height: 10px;
  }
  .text-grid {
    gap: 0.2rem;
  }
  .wavelength-label {
    font-size: 9px;
    line-height: 1.2;
  }
  .nav-item {
    font-size: 10px;
  }
  .nav-top-left,
  .nav-top-right {
    top: 3rem;
  }
  .nav-top-left {
    left: 1rem;
  }
  .nav-top-right {
    right: 1rem;
    gap: 2px;
  }
  .nav-top-right,
  .nav-bottom-right {
    right: 1rem;
  }
  .nav-bottom-left,
  .nav-bottom-right,
  .nav-bottom-center {
    bottom: 1rem;
  }
  .sound-wave {
    width: 18px;
    height: 10px;
  }
}
/* NoScript fallback */
noscript .hero-title,
noscript .hero-nav-item,
noscript .hero-text,
noscript .nav-bottom-center,
noscript .svg-container,
noscript .text-grid,
noscript .main-title,
noscript .wavelength-label {
  visibility: visible !important;
}