:root {
  color-scheme: dark;
  --color-bg: #080808;
  --color-text: #ffffff;
  --color-primary: #ff3366;
  --color-secondary: #3366ff;
  --color-tertiary: #33ddff;
  --color-accent: #ffcc00;
  --card-radius: 16px;
}

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;600;900&family=Roboto:wght@300;400&display=swap");

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  padding-top: 56px;
}

* {
  box-sizing: border-box;
}

canvas {
  display: block;
}

.page-shell {
  width: 100%;
  min-height: 100vh;
  overflow: visible;
}

.page-shell > div {
  width: 100%;
}



.title {
  transition: opacity 3s ease;
}

#__next {
  min-height: 100vh;
}

.section-generative-art {
  position: relative;
  width: 100%;
  min-height: 83vh;
  background: var(--color-bg);
  margin: 0;
  padding: 0;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(
      rgba(8,8,8,0.25),
      rgba(8,8,8,0.25)
    ),
    url('../images/hands-palms-black-and-white.jpg') center center / cover no-repeat;
}

#sectionGenerativeArt{
  scroll-margin-top: 120px;
}

.section-generative-art .section-words {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.section-generative-art .section-words-inner {
  max-width: 1100px;
  padding: 0 1rem;
  color: #898989;
  font-weight: 800;
  font-family: Montserrat, sans-serif;
  font-size: clamp(27px, 6.2vw, 42px);
  text-align: center;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.45s ease;
  transform: translateY(6px);
  text-shadow:
    0 0 5px rgba(49, 49, 49, 0.5),
    0 0 35px rgba(21, 21, 21, 0.4),
    0 0 25px rgba(25, 25, 25, 0.3),
    0 0 15px rgba(15, 15, 15, 0.2);
}

.section-generative-art canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: transparent !important;
}

/* Model section */
.section-model {
  position: relative;
  width: 100%;
  min-height: 70vh;
  height: 70vh;
  background: #000;
  overflow: hidden;
}

.section-model canvas {
  display: block;
  width: 100%;
  height: 100%;
}



/* RGBA shader section */
.section-rgba {
  position: relative;
  width: 100%;
  min-height: 60vh;
  background: transparent;
  overflow: hidden;
}

.section-rgba canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* WebGPU section */
.section-webgpu {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: black;
  overflow: hidden;
}

.section-webgpu canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Title over model */
.title {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  width: 100%;
  text-align: center;
  margin: 0;
  color: #363636;
  font-size: 25px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
  pointer-events: none;
}

.title h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 220px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  justify-content: center;
  margin: 0 0 10px;
  line-height: 1;
}

.title h1 span:nth-of-type(2) {
  font-weight: 600;
}

.title h1 span:nth-of-type(3) {
  font-weight: 300;
}

.title ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.title ul li {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #000;
}

.title ul li a {
  text-decoration: none;
  color: #000;
}

/* Loader for GLB model */
.model-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  pointer-events: none;
}

.model-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.02);
  padding: 12px 18px;
  border-radius: 8px;
}

.model-loader .spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.12);
  border-top-color: rgba(255,255,255,0.9);
  animation: spin 1s linear infinite;
}

.model-loader .percent {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Model controls */
.model-controls {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(0,0,0,0.45);
  padding: 10px 12px;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  pointer-events: auto;
}

.model-controls.hidden {
  display: none !important;
}

.model-controls label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.model-controls input[type="range"] {
  width: 160px;
}

.model-controls .model-reset {
  margin-top: 6px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.model-controls .model-reset:hover {
  background: rgba(255,255,255,0.12);
}


.section-webgpu {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: #000;
  overflow: hidden;
}

.section-webgpu canvas {
  display: block;
  width: 100%;
  height: 100%;
}




@media (max-width: 900px) {
  .section-mobileApp {
    flex-direction: column;
  }

  .section-mobileApp .mobile-left,
  .section-mobileApp .mobile-right {
    width: 100%;
  }

  .section-mobileApp .mobile-left {
    min-height: 55vh;
  }

  .section-mobileApp .mobile-right {
    min-height: auto;
    padding: 2rem 1.5rem 4rem;
  }

  .title h1 {
    font-size: clamp(70px, 22vw, 160px);
  }
}



/* Mobile app preview split section */
.section-mobileApp {
  display: flex;
  gap: 0;
  width: 100%;
  min-height: 85vh;
  background: transparent;
  color: #6e6e6e;
  position: relative;
  isolation: isolate;
  z-index: 5;
  align-items: stretch;
  margin-bottom: -140px;
}

#mobile {
  scroll-margin-top: 140px;
}

.section-mobileApp .mobile-left {
  width: 50%;
  min-height: 75vh;
  margin-top:-140px
}

.section-mobileApp .mobile-left canvas {
  width: 100% !important;
  height: 100% !important;
  overflow: visible;
}

.section-mobileApp .mobile-right {
  width: 50%;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem;
  pointer-events: none;
  margin-top:-100px;
}

.mobile-text {
  max-width: 520px;
  text-align: left;
  font-family: "Montserrat", sans-serif;
}

.mobile-text h1 {
  margin: 0;
  font-size: 58px;
  font-weight: 900;
  display: flex;
  gap: 2px;
  line-height: 1;
}

.mobile-text h1 span:nth-of-type(2) {
  font-weight: 600;
}

.mobile-text h1 span:nth-of-type(3) {
  font-weight: 300;
}

.mobile-text h2 {
  font-size: 28px;
  margin: 0 0 1rem 0;
}


    .mobile-text p {
      font-size: clamp(16px, 1.5vw, 16px);
      line-height: 1.55;
      color: rgba(255,255,255,0.72);
      margin: 0 0 18px;
    }

    @media (max-width: 900px) {
      .section-mobileApp {
        grid-template-columns: 1fr;
      }

      .mobile-left {
        min-height: 55vh;
      }

      .mobile-right {
        padding: 40px 24px 70px;
      }
    }


.mobile-text p span {
  color: inherit;
  transition:
    color 1.5s ease,
    text-shadow 1.5s ease;
}

.mobile-text p span.color-active {
  color: var(--highlight-color);
  text-shadow:
    0 0 8px var(--highlight-color),
    0 0 20px color-mix(
      in srgb,
      var(--highlight-color) 55%,
      transparent
    );
}




/*****SECTION SOUND WAVES ******/


.section-soundwaves {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  background: var(--color-bg);
  overflow: hidden;
  isolation: isolate;
  
  
}

.section-soundwaves canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  z-index: 0;
  background: transparent !important;
}

.section-soundwaves #ui {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.section-soundwaves #btn-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.section-soundwaves #track-controls {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

    #btn-play {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      padding: 15px 30px;
      font-size: 18px;
      background: #fff;
      border: none;
      cursor: pointer;
      border-radius: 5px;
      z-index: 20;
      box-shadow: 0 0 15px rgba(255,255,255,0.3);
      color:#000;
    }

    #track-controls {
      position: relative;
      left: 50%;
      bottom: 24px;
      transform: translateX(-50%);
      display: flex;
      gap: 10px;
      z-index: 15;
    }

    .track-btn {
      padding: 10px 16px;
      border: 1px solid rgba(255,255,255,0.35);
      background: rgba(0,0,0,0.45);
      color: white;
      border-radius: 999px;
      cursor: pointer;
      font-size: 14px;
      backdrop-filter: blur(8px);
    }

    .track-btn.active {
      background: white;
      color: black;
    }


      .soundwave-note {
    position: absolute;
    left: 50%;
    top: 38%;
    transform: translateX(-50%);
    width: min(760px, 86vw);
    z-index: 12;
    color: rgba(255,255,255,0.82);
    font-size: clamp(16px, 1.6vw, 22px);
    line-height: 1.45;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .soundwave-note.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  .track-btn.active {
    background: white;
    color: black;
  }

  .track-btn.paused {
    border-color: white;
    color: white;
    background: rgba(255,255,255,0.08);
  }




.section-soundwaves {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    isolation: isolate;
  }

  .section-soundwaves canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    display: block;
    z-index: 1;
    background: transparent !important;
  }

  /* All interface elements */
  .section-soundwaves #ui {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
  }

  /* Initial large start button */
  .section-soundwaves #btn-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    padding: 15px 30px;
    border: none;
    border-radius: 5px;

    background: #fff;
    color: #000;

    font-size: 18px;
    cursor: pointer;
    pointer-events: auto;

    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  }

  /* Author note */
  .soundwave-note {
    position: absolute;
    left: 50%;
    top: 38%;
    transform: translateX(-50%) translateY(8px);

    width: min(760px, 86vw);
    z-index: 12;

    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(16px, 1.6vw, 22px);
    line-height: 1.45;
    text-align: center;

    pointer-events: none;
    opacity: 0;

    transition:
      opacity 0.5s ease,
      transform 0.5s ease;
  }

  .soundwave-note.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  .player-time {
    flex: 0 0 auto;
    min-width: 42px;

    color: rgba(255, 255, 255, 0.65);
    font-family: monospace;
    font-size: 12px;
    letter-spacing: 0.05em;
  }

  #current-time {
    text-align: right;
  }

  #total-time {
    text-align: left;
  }

  .timeline-wrap {
    position: relative;
    flex: 1;
    height: 20px;

    display: flex;
    align-items: center;
  }

  #timeline {
    width: 100%;
    height: 3px;
    margin: 0;

    appearance: none;
    -webkit-appearance: none;

    border-radius: 999px;
    outline: none;
    cursor: pointer;

    background:
      linear-gradient(
        to right,
        #a6ffb6 0%,
        #a6ffb6 var(--timeline-progress, 0%),
        rgba(255, 255, 255, 0.18) var(--timeline-progress, 0%),
        rgba(255, 255, 255, 0.18) 100%
      );
  }

  #timeline::-webkit-slider-runnable-track {
    height: 3px;
    border-radius: 999px;
    background: transparent;
  }

  #timeline::-webkit-slider-thumb {
    width: 13px;
    height: 13px;
    margin-top: -5px;

    appearance: none;
    -webkit-appearance: none;

    border: none;
    border-radius: 50%;

    background: #b8ffc4;
    cursor: pointer;

    box-shadow:
      0 0 8px rgba(184, 255, 196, 0.9),
      0 0 18px rgba(184, 255, 196, 0.45);
  }

  #timeline::-moz-range-track {
    height: 3px;
    border: none;
    border-radius: 999px;
    background: transparent;
  }

  #timeline::-moz-range-thumb {
    width: 13px;
    height: 13px;

    border: none;
    border-radius: 50%;

    background: #b8ffc4;
    cursor: pointer;

    box-shadow:
      0 0 8px rgba(184, 255, 196, 0.9),
      0 0 18px rgba(184, 255, 196, 0.45);
  }

  /* Play/pause button on the right */
  #player-toggle {
    flex: 0 0 auto;

    width: 50px;
    height: 50px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(184, 255, 196, 0.55);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.06);
    color: #c5ffce;

    cursor: pointer;

    transition:
      background 200ms ease,
      box-shadow 200ms ease,
      transform 200ms ease;
  }

  #player-toggle:hover {
    background: rgba(184, 255, 196, 0.12);
    box-shadow:
      0 0 12px rgba(184, 255, 196, 0.35),
      0 0 28px rgba(184, 255, 196, 0.15);

    transform: scale(1.04);
  }

  #player-toggle:disabled {
    opacity: 0.35;
    cursor: default;
    box-shadow: none;
  }

  #player-toggle svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
  }

  /* Track buttons */
  .section-soundwaves #track-controls {
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);

    display: flex;
    gap: 10px;

    pointer-events: auto;
  }

  .track-btn {
    padding: 10px 16px;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;

    background: rgba(0, 0, 0, 0.45);
    color: white;

    font-size: 14px;
    cursor: pointer;

    backdrop-filter: blur(8px);

    transition:
      color 200ms ease,
      background 200ms ease,
      border-color 200ms ease,
      box-shadow 200ms ease;
  }

  .track-btn.active {
    background: #fff;
    color: #000;
    border-color: #fff;
  }

  .track-btn.paused {
    color: #b8ffc4;
    border-color: rgba(184, 255, 196, 0.7);
    background: rgba(184, 255, 196, 0.08);
  }

  @media (max-width: 760px) {
    #soundwave-player {
      bottom: 118px;
      width: calc(100% - 24px);
      gap: 9px;
      padding: 12px;
    }

    #player-toggle {
      width: 44px;
      height: 44px;
    }

    .player-time {
      min-width: 35px;
      font-size: 10px;
    }

    .section-soundwaves #track-controls {
      width: calc(100% - 24px);
      bottom: 20px;
      flex-wrap: wrap;
      justify-content: center;
    }

    .track-btn {
      padding: 8px 12px;
      font-size: 12px;
    }
  }



   .section-soundwaves {
    position: relative;
    width: 100%;
    min-height: 900px;
    height: 100vh;
    overflow: hidden;
    isolation: isolate;
    background: #020302;
    color: #fff;
  }

  /* Optional background image */
  .section-soundwaves::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;

    background:
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.28),
        rgba(0, 0, 0, 0.06) 55%,
        rgba(0, 0, 0, 0.5)
      ),
      url("images/hands-palms-black-and-white2.jpg")
      center center / cover no-repeat;

    opacity: 0.23;
  }

  .section-soundwaves::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background:
      radial-gradient(
        circle at 42% 50%,
        rgba(151, 255, 173, 0.05),
        transparent 42%
      ),
      linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.08),
        rgba(0, 0, 0, 0.34)
      );
  }

  .section-soundwaves canvas {
    position: absolute;
    inset: 0;
    z-index: 1;

    width: 100% !important;
    height: 100% !important;

    display: block;
    background: transparent !important;
    pointer-events: none;
  }

  /* =========================================================
     MAIN UI LAYER
     ========================================================= */

  .section-soundwaves #ui {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
  }

  /* =========================================================
     TOP-LEFT TITLE
     ========================================================= */

  .soundlab-heading {
    position: absolute;
    top: 10%;
    left: clamp(34px, 5vw, 80px);
    z-index: 14;

    max-width: min(620px, 48vw);
    pointer-events: none;
  }

  .soundlab-label {
    margin: 0 0 18px;

    color: rgba(255, 255, 255, 0.7);
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
  }

  #soundlab-track-title {
    margin: 0;

    color: rgba(255, 255, 255, 0.94);
    font-family: "Montserrat", sans-serif;
    font-size: clamp(36px, 5.2vw, 82px);
    font-weight: 300;
    line-height: 0.98;
    letter-spacing: 0.22em;
    text-transform: uppercase;

    opacity: 0;
    transform: translateY(8px);

    transition:
      opacity 600ms ease,
      transform 600ms ease;
  }

  #soundlab-track-title.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .soundlab-subtitle {
    margin: 18px 0 0;

    color: rgba(255, 255, 255, 0.34);
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  /* =========================================================
     TECHNO HEIGHT / MEASUREMENT LINES
     ========================================================= */

  .tech-height-lines {
    position: absolute;
    top: 40%;
    bottom: 26%;
    left: clamp(24px, 4vw, 70px);
    z-index: 4;

    width: 115px;

    pointer-events: none;
    opacity: 0.52;
  }

  .tech-height-lines::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 53px;

    width: 1px;

    background:
      linear-gradient(
        to bottom,
        transparent,
        rgba(177, 190, 180, 0.42) 12%,
        rgba(124, 132, 125, 0.15) 86%,
        transparent
      );
  }

  .tech-line {
    position: absolute;
    left: 53px;

    height: 1px;

    background:
      linear-gradient(
        to right,
        rgba(104, 112, 104, 0.52),
        rgba(160, 255, 177, 0.05)
      );
  }

  .tech-line::before {
    content: attr(data-value);

    position: absolute;
    top: -7px;
    right: calc(100% + 10px);

    color: rgba(53, 56, 54, 0.45);
    font-family: monospace;
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .tech-line:nth-child(1) {
    top: 0%;
    width: 60px;
  }

  .tech-line:nth-child(2) {
    top: 20%;
    width: 34px;
  }

  .tech-line:nth-child(3) {
    top: 40%;
    width: 52px;
  }

  .tech-line:nth-child(4) {
    top: 60%;
    width: 34px;
  }

  .tech-line:nth-child(5) {
    top: 80%;
    width: 52px;
  }

  .tech-line:nth-child(6) {
    top: 100%;
    width: 60px;
  }

  .tech-height-label {
    position: absolute;
    bottom: -32px;
    left: 30px;

    color: rgba(164, 255, 182, 0.34);
    font-family: monospace;
    font-size: 9px;
    letter-spacing: 0.18em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
  }

  /* =========================================================
     RIGHT INFORMATION PANEL
     ========================================================= */

  .soundlab-panel {
    position: absolute;
    top: 9%;
    right: clamp(28px, 4vw, 70px);
    z-index: 15;

    width: min(410px, 31vw);
    min-height: 560px;

    padding: 26px 30px 28px;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 28px;

    background:
      linear-gradient(
        145deg,
        rgba(27, 29, 28, 0.58),
        rgba(8, 9, 9, 0.52)
      );

    box-shadow:
      0 28px 80px rgba(0, 0, 0, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    pointer-events: none;
  }

  .panel-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  }

  .panel-experiment {
    display: flex;
    align-items: center;
    gap: 11px;

    color: rgba(255, 255, 255, 0.9);
    font-family: monospace;
    font-size: 13px;
    letter-spacing: 0.08em;
  }

  .panel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;

    background: #a6ffb5;

    box-shadow:
      0 0 7px rgba(166, 255, 181, 0.9),
      0 0 17px rgba(166, 255, 181, 0.42);
  }

  .panel-timecode {
    color: rgba(255, 255, 255, 0.45);
    font-family: monospace;
    font-size: 11px;
    white-space: nowrap;
  }

  .panel-content {
    padding-top: 26px;
  }

  .panel-section {
    padding: 0 0 24px;
    margin: 0 0 24px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .panel-section:last-child {
    margin-bottom: 0;
    border-bottom: none;
  }

  .panel-heading {
    margin: 0 0 12px;

    color: rgba(161, 255, 181, 0.62);
    font-family: monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.19em;
    text-transform: uppercase;
  }

  #soundwaveNote {
    margin: 0;

    color: rgba(255, 255, 255, 0.76);
    font-family: monospace;
    font-size: 13px;
    line-height: 1.65;

    opacity: 0;
    transform: translateY(8px);

    transition:
      opacity 500ms ease,
      transform 500ms ease;
  }

  #soundwaveNote.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .panel-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .panel-meta-value {
    margin: 5px 0 0;

    color: rgba(255, 255, 255, 0.68);
    font-family: monospace;
    font-size: 12px;
    line-height: 1.55;
  }

  .panel-mini-wave {
    position: relative;
    height: 42px;
    margin-top: 16px;
    overflow: hidden;
  }

  .panel-mini-wave::before,
  .panel-mini-wave::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;

    height: 1px;

    background:
      repeating-linear-gradient(
        to right,
        transparent 0,
        transparent 6px,
        rgba(159, 255, 178, 0.38) 7px,
        transparent 8px,
        transparent 14px
      );
  }

  .panel-mini-wave::after {
    transform: scaleY(8);
    opacity: 0.25;
    filter: blur(0.4px);
  }

  /* =========================================================
     INITIAL START BUTTON
     ========================================================= */

  #btn-play {
    position: absolute;
    top: 50%;
    left: 42%;
    transform: translate(-50%, -50%);
    z-index: 30;

    padding: 15px 30px;

    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.94);
    color: #090909;

    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.04em;

    cursor: pointer;
    pointer-events: auto;

    box-shadow:
      0 0 20px rgba(255, 255, 255, 0.16),
      0 16px 40px rgba(0, 0, 0, 0.25);
  }

  /* =========================================================
     TIMELINE PLAYER
     ========================================================= */

  #soundwave-player {
  position: absolute;
  left: 4%;
  width: 93%;
  right: auto;
  bottom: 104px;
  z-index: 18;
  display: flex;
  align-items: center;
  gap: 15px;
  pointer-events: auto;
  border-radius: 32px;
}

  #player-toggle {
    flex: 0 0 auto;

    width: 62px;
    height: 62px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 50%;

    background:
      linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.12),
        rgba(255, 255, 255, 0.04)
      );

    color: #fff;

    cursor: pointer;

    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 12px 35px rgba(0, 0, 0, 0.32);

    transition:
      transform 200ms ease,
      border-color 200ms ease,
      box-shadow 200ms ease;
  }

  #player-toggle:hover {
    transform: scale(1.05);
    border-color: rgba(164, 255, 181, 0.5);

    box-shadow:
      0 0 22px rgba(164, 255, 181, 0.13),
      0 12px 35px rgba(0, 0, 0, 0.32);
  }

  #player-toggle svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
  }

  .timeline-content {
    flex: 1;
    min-width: 0;
    margin-top:-27px;
  }

  #timeline-track-name {
    margin: 0 0 10px;

    color: rgba(255, 255, 255, 0.83);
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-left:16px;
  }

  .timeline-row {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .player-time {
    flex: 0 0 auto;

    color: rgba(255, 255, 255, 0.45);
    font-family: monospace;
    font-size: 11px;
  }

  .timeline-wrap {
    flex: 1;
    position: relative;
    height: 18px;

    display: flex;
    align-items: center;
  }

  #timeline {
    width: 100%;
    height: 2px;
    margin: 0;

    appearance: none;
    -webkit-appearance: none;

    border: none;
    outline: none;
    border-radius: 999px;

    cursor: pointer;

    background:
      linear-gradient(
        to right,
        #a5ffb4 0%,
        #a5ffb4 var(--timeline-progress, 0%),
        rgba(255, 255, 255, 0.14) var(--timeline-progress, 0%),
        rgba(255, 255, 255, 0.14) 100%
      );
  }

  #timeline::-webkit-slider-runnable-track {
    height: 2px;
    background: transparent;
  }

  #timeline::-webkit-slider-thumb {
    width: 10px;
    height: 10px;
    margin-top: -4px;

    appearance: none;
    -webkit-appearance: none;

    border: none;
    border-radius: 50%;

    background: #b5ffc1;

    box-shadow:
      0 0 7px rgba(181, 255, 193, 0.95),
      0 0 18px rgba(181, 255, 193, 0.34);
  }

  #timeline::-moz-range-track {
    height: 2px;
    background: transparent;
  }

  #timeline::-moz-range-thumb {
    width: 10px;
    height: 10px;

    border: none;
    border-radius: 50%;

    background: #b5ffc1;
  }

  /* =========================================================
     TRACK BUTTONS
     ========================================================= */

  #track-controls {
    position: absolute;
    left: clamp(40px, 5vw, 80px);
    right: min(36vw, 500px);
    bottom: 34px;
    z-index: 18;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;

    pointer-events: auto;
  }

  .track-btn {
    position: relative;
    min-height: 54px;
    padding: 11px 13px;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 12px;

    background:
      linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.045),
        rgba(255, 255, 255, 0.012)
      );

    color: rgba(255, 255, 255, 0.52);

    font-family: "Montserrat", sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.35;
    text-align: left;
    text-transform: uppercase;

    cursor: pointer;

    transition:
      border-color 250ms ease,
      background 250ms ease,
      color 250ms ease,
      box-shadow 250ms ease,
      transform 250ms ease;
  }

  .track-btn::before {
    content: "";

    position: absolute;
    left: 12px;
    right: 12px;
    top: 12px;

    height: 10px;

    opacity: 0.28;

    background:
      repeating-linear-gradient(
        to right,
        transparent 0,
        transparent 4px,
        currentColor 5px,
        transparent 6px,
        transparent 11px
      );
  }

  .track-btn span {
    position: relative;
    display: block;
    margin-top: 19px;
  }

  .track-btn:hover {
    color: rgba(255, 255, 255, 0.86);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
  }

  .track-btn.active {
    color: #b8ffc4;

    border-color: rgba(184, 255, 196, 0.55);

    background:
      linear-gradient(
        145deg,
        rgba(100, 170, 113, 0.17),
        rgba(18, 30, 21, 0.14)
      );

    box-shadow:
      inset 0 0 28px rgba(184, 255, 196, 0.05),
      0 0 20px rgba(184, 255, 196, 0.06);
  }

  .track-btn.paused {
    color: rgba(184, 255, 196, 0.67);
    border-color: rgba(184, 255, 196, 0.28);
  }

  /* =========================================================
     RESPONSIVE
     ========================================================= */

  @media (max-width: 1050px) {
    .section-soundwaves {
      height: auto;
      min-height: 1200px;
    }

    .soundlab-heading {
      top: 7%;
      max-width: calc(100% - 60px);
    }

    .soundlab-panel {
      top: auto;
      right: 30px;
      left: 30px;
      bottom: 190px;

      width: auto;
      min-height: auto;
    }

    #soundwave-player {
      right: 30px;
      bottom: 112px;
    }

    #track-controls {
      right: 30px;
      bottom: 30px;
    }

    .tech-height-lines {
      display: none;
    }
  }

  @media (max-width: 700px) {
    .section-soundwaves {
      min-height: 1280px;
    }

    .soundlab-heading {
      left: 22px;
      right: 22px;
      max-width: none;
    }

    #soundlab-track-title {
      font-size: clamp(31px, 11vw, 52px);
      letter-spacing: 0.12em;
    }

    .soundlab-panel {
      left: 16px;
      right: 16px;
      bottom: 250px;
      padding: 22px;
      border-radius: 20px;
    }

    #soundwave-player {
      left: 16px;
      right: 16px;
      bottom: 160px;
    }

    #player-toggle {
      width: 52px;
      height: 52px;
    }

    #track-controls {
      left: 16px;
      right: 16px;
      bottom: 20px;

      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #btn-play {
      left: 50%;
    }
  }
/*****END SECTION SOUND WAVES ******/




/********TOP BAR**********/

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  height: 70px;
  padding: 0 1rem;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 100000;

  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.topbar nav {
  display: flex;
  gap: 34px;
}

.topbar a {
  color: #666;
  text-decoration: none;
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 8px;
  display: inline-block;
  transition: color 250ms ease, text-shadow 250ms ease;
  opacity: 0; /* Start invisible */
  animation: fadeIn 1s ease-in-out 7s forwards; /* 2s is the delay */
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.topbar nav a:nth-of-type(1):hover {
  color: #ff3366;
  text-shadow: 0 0 15px #ff3366;
}

.topbar nav a:nth-of-type(2):hover {
  color: #7c4dff;
  text-shadow: 0 0 15px #7c4dff;
}

.topbar nav a:nth-of-type(3):hover {
  color: #ffd166;
  text-shadow: 0 0 15px #ffd166;
}

.topbar nav a:nth-of-type(4):hover {
  color: #33ddff;
  text-shadow: 0 0 15px #33ddff;
}

.topbar nav a:nth-of-type(5):hover {
  color: #33ff77;
  text-shadow: 0 0 15px #33ff77;
}

.topbar nav a:nth-of-type(6):hover {
  color: #ff4af2;
  text-shadow: 0 0 15px #ff4af2;
}

.topbar .logo {
  position: absolute;
  left: 30px;
  top: 16px;
  font-family: "Montserrat", sans-serif;
  font-size: 34px;
  letter-spacing: 1px;
  color: #666;
  opacity: 0;
  /*transition: opacity 1s ease, color 250ms ease;*/
    animation: fadeIn 1s ease 3s forwards;
}

.topbar .logo h1 {
  margin: 0;
  font-size: inherit;
  font-weight: 900;
  display: flex;
  gap: 2px;
  line-height: 1;
}

.topbar .logo h1 span:nth-of-type(2) {
  font-weight: 600;
}

.topbar .logo h1 span:nth-of-type(3) {
  font-weight: 300;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}


.midi-logo-svg {
  width: 32px;
  height: 32px;
  opacity: 0.1;
}

.topbar .midi-logo {
  position: absolute;
  right: 30px;
  top: 16px;
}
/********END TOP BAR**********/