html {
    scroll-behavior: smooth;
  }

@font-face{
    font-family:'RadioGrotesk';
    src:url('./fonts/PPRadioGrotesk-Regular.otf') format('opentype');
    font-weight:400;
    font-style:normal;
  }
  @font-face{
    font-family:'RadioGrotesk';
    src:url('./fonts/PPRadioGrotesk-Bold.otf') format('opentype');
    font-weight:700;
    font-style:normal;
  }
  html,body{height:100%;margin:0}
  canvas{display:block}
  #ui-toggle{
    display:none; /* Hidden - use keyboard shortcut (` or U) to toggle UI */
  }
  #ui-panel{
    position:fixed; top:48px; left:12px; z-index:30; width:290px; max-height:90vh;
    overflow:auto; background:rgba(0,0,0,0.7); color:#eee; border:1px solid #333;
    border-radius:10px; padding:10px 10px 12px; backdrop-filter: blur(4px);
    font:12px/1.35 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  }
  #ui-panel.hidden{ display:none }
  #ui-panel h3{ margin:8px 0 6px; font-size:12px; font-weight:700; color:#ddd; }
  #ui-panel .row{ display:flex; align-items:center; gap:8px; margin:6px 0 }
  #ui-panel label{ flex:1 1 auto; }
  #ui-panel input[type="range"]{ width:120px; }
  #ui-panel input[type="checkbox"]{ transform: translateY(1px); }
  #ui-panel .val{ width:46px; text-align:right; color:#bbb; font-variant-numeric: tabular-nums; }
  #ui-panel hr{ border:0; border-top:1px solid #333; margin:8px 0 }
  #ui-panel .subtle{ color:#aaa }


/* Navbar / Logo */
#navbar{
    position: fixed;
    top: 38px;
    left: 38px;
    z-index: 10;
    pointer-events: none;
}

#site-logo{
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #5aa0ff; /* default; will be animated via JS */
    pointer-events: auto;
}

/* Loading Screen Styles */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #070809 0%, #080F0F 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1s ease-out; /* Customizable fade duration */
  }
  
  #loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
  }
  
  #loading-screen.hidden {
    display: none;
  }
  
  #loading-circle-container {
    position: relative;
    width: 80px;
    height: 80px;
  }
  
  #loading-circle-bg {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #171C1C;
  }
  
  #loading-circle-fill {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #F6FF00;
    clip-path: inset(100% 0 0 0);
    transform-origin: center;
  }



  /* FLOATING TEXT STYLE */

#floating-text {
    position: fixed;
    top: 50%;
    left: 38px;
    transform: translate(1%, -50%);
    z-index: 5;
    pointer-events: none;
    text-align: left;
    width: min(80vw, 520px);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: opacity 0.3s ease;
}

/* Intro section layout override - center title only */
#floating-text.intro {
    left: 50%;
    transform: translate(-50%, -90%);
    width: auto;
    max-width: 100vw;
    align-items: center;
    text-align: center;
    pointer-events: none;
}

#floating-text.intro .section-eyebrow,
#floating-text.intro .section-body,
#floating-text.intro .section-pagination {
    display: none;
}

#floating-text.intro .section-title {
    text-align: center;
    font-family: "RadioGrotesk", sans-serif;
    font-size: 5.46763rem;
    font-style: normal;
    font-weight: 400;
    line-height: 5.33744rem; /* 97.619% */
    background: linear-gradient(180deg, #FFF 61.69%, rgba(13, 19, 22, 0.00) 91.76%);
    background-clip: text;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#floating-text.welcome {
    left: 50%;
    transform: translate(-50%, -65%);
    width: min(90vw, 680px);
    max-width: 860px;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
}

#floating-text.welcome .section-body,
#floating-text.welcome .section-pagination {
    display: none;
}

#floating-text.welcome .section-title {
    text-align: center;
    font-family: "RadioGrotesk", sans-serif;
    font-size: 2.35rem;
    font-style: normal;
    font-weight: 400;
}

#floating-text.welcome .section-body {
    max-width: 60ch;
}

#floating-text.end {
    left: 50%;
    transform: translate(-50%, -60%);
    width: min(90vw, 640px);
    max-width: 780px;
    align-items: center;
    text-align: center;
    gap: 1.2rem;
}

#floating-text.end .section-eyebrow,
#floating-text.end .section-pagination {
    display: none;
}

#floating-text.end .section-title {
    text-align: center;
    font-family: "RadioGrotesk", sans-serif;
    font-size: 2.1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 118%;
    letter-spacing: 0.05rem;
    background: linear-gradient(90deg, #FFFFFF 0%, #8F8F8F 95%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#floating-text.end .section-body {
    max-width: 58ch;
}

#floating-text .section-text {
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#floating-text .section-eyebrow {
    font-family: "RadioGrotesk", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.32rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.66);
    margin: 0;
}

#floating-text .section-title {
    margin: 0;
    font-family: "RadioGrotesk", sans-serif;
    font-size: 2.75619rem;
    font-weight: 400;
    line-height: 115%;
    background: linear-gradient(90deg, #FFF 0%, #858585 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#floating-text .section-body {
    margin: 0;
    font-family: "RadioGrotesk", sans-serif;
    font-size: 1.05rem;
    font-weight: 100;
    line-height: 1.6;
    color: rgba(223, 234, 240, 0.94);
    max-width: 38ch;
}

#floating-text .section-pagination {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "RadioGrotesk", sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.4rem;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
}

#floating-text .section-pagination .divider {
    opacity: 0.3;
}

#scroll-indicator {
    position: fixed;
    left: 50%;
    bottom: 52px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    font-family: "RadioGrotesk", sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.32rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0;
    pointer-events: none;
    z-index: 4;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.scroll-indicator__label {
    display: inline-block;
    padding-left: 0.48rem;
}

.scroll-indicator__line {
    width: 1px;
    height: 42px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 100%);
    transform-origin: top;
    transform: scaleY(0.7);
    opacity: 0.3;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

#floating-text.welcome + #scroll-indicator {
    opacity: 0.8;
    transform: translate(-50%, -8px);
}

#floating-text.welcome + #scroll-indicator .scroll-indicator__line {
    transform: scaleY(1);
    opacity: 0.8;
}


.closer-to-home .title {
    font-size: 14px;
    color: #ffa84d;
}

/* Gradient overlay for section text legibility */
.section-gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 50vw;
    height: 100vh;
    pointer-events: none;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.section-gradient-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        /* #090F13 0%,
        #090f137b 50%,
        #090f1300 100% */
    );
    mask-image: linear-gradient(90deg, 
        rgb(0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.95) 15%,
        rgba(0, 0, 0, 0.85) 30%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0.5) 65%,
        rgba(0, 0, 0, 0.25) 80%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(90deg, 
        black 0%, 
        rgba(0, 0, 0, 0.95) 15%,
        rgba(0, 0, 0, 0.85) 30%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0.5) 65%,
        rgba(0, 0, 0, 0.25) 80%,
        transparent 100%
    );
    transform: translateZ(0);
}

.section-gradient-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    mask-image: linear-gradient(90deg, 
        black 0%,
        rgba(0, 0, 0, 0.95) 15%,
        rgba(0, 0, 0, 0.85) 30%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0.5) 65%,
        rgba(0, 0, 0, 0.25) 80%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(90deg, 
        black 0%,
        rgba(0, 0, 0, 0.95) 15%,
        rgba(0, 0, 0, 0.85) 30%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0.5) 65%,
        rgba(0, 0, 0, 0.25) 80%,
        transparent 100%
    );
    transform: translateZ(0);
}

.section-gradient-overlay.hidden {
    opacity: 0;
}
