/* ==========================================================================
   MONOLITH — monochromatic architectural experience
   ========================================================================== */

:root{
  --black: #050505;
  --near-black: #0b0b0c;
  --grey-950: #111113;
  --grey-900: #17171a;
  --grey-800: #232326;
  --grey-700: #35353a;
  --grey-600: #4c4c52;
  --grey-500: #6b6b72;
  --grey-400: #8f8f96;
  --grey-300: #b4b4ba;
  --grey-200: #d4d4d8;
  --grey-100: #e8e8ea;
  --white: #f6f6f7;
  --glass: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.10);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
}

*{ box-sizing: border-box; }
html,body{
  margin:0; padding:0; width:100%;
  background: var(--black);
  color: var(--grey-100);
  font-family: 'Inter', 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection{ background: var(--white); color: var(--black); }

/* scrollbar */
::-webkit-scrollbar{ width:6px; }
::-webkit-scrollbar-track{ background: transparent; }
::-webkit-scrollbar-thumb{ background: var(--grey-700); border-radius: 3px; }

/* spacer that gives the page scroll height (real content is fixed) */
#scroll-spacer{ height: 800vh; width: 1px; pointer-events:none; }

/* ==========================================================================
   LOADER
   ========================================================================== */
#loader{
  position: fixed; inset:0; z-index: 10000;
  background: var(--black);
  display:flex; align-items:center; justify-content:center;
  transition: opacity 1s var(--ease-out), visibility 1s var(--ease-out);
}
#loader.hidden{ opacity:0; visibility:hidden; pointer-events:none; }
.loader-inner{ display:flex; flex-direction:column; align-items:center; gap: 26px; width: min(340px, 62vw); }
.loader-mark{ font-size:15px; letter-spacing:.34em; font-weight:400; color: var(--white); }
.loader-mark .brand-dot{ color: var(--grey-500); }
.loader-bar{
  position:relative; width:100%; height:1px; background: var(--grey-800); overflow:hidden;
}
#loader-bar-fill{
  position:absolute; left:0; top:0; height:100%; width:0%;
  background: linear-gradient(90deg, var(--grey-500), var(--white));
  transition: width .2s var(--ease-out);
}
.loader-meta{ display:flex; justify-content:space-between; width:100%; }
@keyframes spin{ to{ transform: rotate(360deg); } }
.loader-label{ font-size:10px; letter-spacing:.28em; color: var(--grey-400); font-weight:300; text-transform:uppercase; }
.loader-pct{ font-size: 11px; color: var(--grey-300); font-variant-numeric: tabular-nums; letter-spacing:.1em; }

/* ==========================================================================
   BACKGROUND LAYERS
   ========================================================================== */
#bg-gradient{
  position: fixed; inset: -10%; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,255,255,0.05), transparent 60%),
    radial-gradient(ellipse 70% 60% at 20% 100%, rgba(255,255,255,0.03), transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 60%, rgba(255,255,255,0.025), transparent 60%),
    linear-gradient(180deg, #050506 0%, #08080a 30%, #0b0b0d 60%, #050506 100%);
  background-size: 140% 140%, 140% 140%, 140% 140%, 100% 100%;
  animation: driftGradient 40s ease-in-out infinite alternate;
  will-change: background-position;
}
@keyframes driftGradient{
  0%{ background-position: 0% 0%, 0% 100%, 100% 50%, 0 0; }
  100%{ background-position: 20% 15%, 15% 80%, 80% 40%, 0 0; }
}

/* mouse-responsive flowing greyscale field (WebGL) */
#flow-canvas{
  position: fixed; inset:0; z-index:1; pointer-events:none;
  width:100%; height:100%; display:block;
  opacity: 0; transition: opacity 1.6s var(--ease-out);
}
body.loaded #flow-canvas{ opacity: 0.9; }

#bg-grid{
  position: fixed; inset:0; z-index:2; pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 20%, transparent 75%);
  transform: translateY(0);
  will-change: transform;
}

#grain-canvas{
  position: fixed; inset:0; z-index:3; pointer-events:none;
  width:100%; height:100%;
  opacity: 0.05;
  mix-blend-mode: overlay;
}

#vignette{
  position: fixed; inset:0; z-index: 4; pointer-events:none;
  background:
    radial-gradient(ellipse 75% 75% at 50% 50%, transparent 38%, rgba(0,0,0,0.55) 100%),
    radial-gradient(ellipse 120% 90% at 50% 120%, rgba(0,0,0,0.4), transparent 55%);
}

/* ==========================================================================
   3D SCENE CANVAS
   ========================================================================== */
#scene-canvas{
  position: fixed; inset:0; z-index:5;
  width:100%; height:100%; display:block;
  pointer-events:none;
}

/* ==========================================================================
   PROGRESS RAIL
   ========================================================================== */
#progress-rail{
  position: fixed; right: 28px; top: 50%; transform: translateY(-50%);
  z-index: 60; display:flex; flex-direction:column; align-items:center; gap:14px;
  height: 220px;
}
#progress-fill{
  position:relative; width:1px; height:100%;
  background: var(--grey-800);
  overflow: hidden;
}
#progress-fill::after{
  content:''; position:absolute; left:0; top:0; width:100%;
  height: calc(var(--progress, 0) * 100%);
  background: var(--white);
  transition: height .05s linear;
}
.rail-index{
  position:absolute; bottom:-40px; left:50%; transform: translateX(-50%);
  font-size:10px; letter-spacing:.15em; color: var(--grey-500);
  display:flex; gap:4px; white-space:nowrap;
}
#rail-current{ color: var(--grey-200); }
@media (max-width: 900px){ #progress-rail{ display:none; } }

/* ==========================================================================
   ARCHITECTURAL FRAME (thin inset lines + corner ticks)
   ========================================================================== */
#frame{
  position: fixed; inset: 20px; z-index: 45; pointer-events:none;
  border: 1px solid rgba(255,255,255,0.07);
  opacity: 0; transition: opacity 1.4s var(--ease-out) .3s;
}
body.loaded #frame{ opacity: 1; }
.frame-corner{ position:absolute; width:12px; height:12px; }
.frame-corner::before, .frame-corner::after{
  content:''; position:absolute; background: rgba(255,255,255,0.45);
}
.frame-corner::before{ width:12px; height:1px; }
.frame-corner::after{ width:1px; height:12px; }
.frame-corner.tl{ top:-1px; left:-1px; }
.frame-corner.tr{ top:-1px; right:-1px; }
.frame-corner.tr::before{ right:0; }
.frame-corner.tr::after{ right:0; }
.frame-corner.bl{ bottom:-1px; left:-1px; }
.frame-corner.bl::before{ bottom:0; }
.frame-corner.bl::after{ bottom:0; }
.frame-corner.br{ bottom:-1px; right:-1px; }
.frame-corner.br::before{ bottom:0; right:0; }
.frame-corner.br::after{ bottom:0; right:0; }
@media (max-width: 640px){ #frame{ inset: 12px; } }

/* ==========================================================================
   BOTTOM HUD (instrument readout)
   ========================================================================== */
#hud{
  position: fixed; left: 40px; right: 40px; bottom: 30px; z-index: 50;
  display:flex; align-items:center; justify-content:space-between;
  font-size: 10px; letter-spacing:.2em; color: var(--grey-400); text-transform:uppercase;
  pointer-events:none;
  opacity: 0; transform: translateY(8px);
  transition: opacity 1.2s var(--ease-out) .5s, transform 1.2s var(--ease-out) .5s;
}
body.loaded #hud{ opacity: 1; transform: translateY(0); }
.hud-left{ display:flex; align-items:center; gap:12px; }
.hud-pulse{
  width:6px; height:6px; border-radius:50%; background: var(--white);
  box-shadow: 0 0 10px rgba(255,255,255,0.6);
  animation: hudPulse 2.4s ease-in-out infinite;
}
@keyframes hudPulse{ 0%,100%{ opacity:.35; transform:scale(0.8);} 50%{ opacity:1; transform:scale(1);} }
#hud-section{ color: var(--grey-300); transition: color .4s; }
.hud-right{ display:flex; gap:26px; }
.hud-item{ display:flex; gap:8px; align-items:baseline; }
.hud-k{ color: var(--grey-600); }
#hud-rot, #hud-depth{ color: var(--grey-200); font-variant-numeric: tabular-nums; min-width: 52px; display:inline-block; }
@media (max-width: 640px){
  #hud{ left:18px; right:18px; bottom:16px; font-size:9px; }
  .hud-right .hud-item:last-child{ display:none; }
}

/* fade the header + rail in after load */
#site-header, #progress-rail{ opacity: 0; transition: opacity 1.2s var(--ease-out) .4s; }
body.loaded #site-header, body.loaded #progress-rail{ opacity: 1; }

/* ==========================================================================
   DROPDOWN MENU
   ========================================================================== */
#menu-panel{
  position: fixed; top: 82px; right: 28px; z-index: 70;
  width: min(340px, calc(100vw - 40px));
  padding: 14px;
  background: rgba(11,11,13,0.55);
  border: 1px solid rgba(255,255,255,0.09);
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  transform-origin: top right;
  opacity: 0; visibility: hidden;
  transform: translateY(-10px) scale(0.98);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), visibility 0s linear .5s;
  pointer-events: none;
}
body.menu-open #menu-panel{
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), visibility 0s;
  pointer-events: auto;
}
.menu-list{ list-style:none; margin:0; padding:0; }
.menu-list li{ overflow:hidden; }
.menu-item{
  position: relative; width:100%; display:flex; align-items:baseline; gap:16px;
  background: none; border: none; cursor: pointer; text-align:left; font-family: inherit;
  padding: 17px 12px; color: var(--grey-300);
  opacity: 0; transform: translateY(14px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), background .35s var(--ease-out);
}
body.menu-open .menu-item{
  opacity: 1; transform: translateY(0);
  transition: opacity .55s var(--ease-out), transform .6s var(--ease-out), background .35s var(--ease-out);
}
body.menu-open .menu-list li:nth-child(1) .menu-item{ transition-delay: .06s; }
body.menu-open .menu-list li:nth-child(2) .menu-item{ transition-delay: .11s; }
body.menu-open .menu-list li:nth-child(3) .menu-item{ transition-delay: .16s; }
body.menu-open .menu-list li:nth-child(4) .menu-item{ transition-delay: .21s; }
body.menu-open .menu-list li:nth-child(5) .menu-item{ transition-delay: .26s; }
.menu-num{
  font-size: 10px; letter-spacing:.15em; color: var(--grey-600);
  font-variant-numeric: tabular-nums; min-width: 18px;
}
.menu-label{
  font-size: 21px; font-weight: 200; letter-spacing: .005em; color: var(--grey-200);
  transition: transform .4s var(--ease-out), color .4s var(--ease-out);
}
.menu-rule{
  position:absolute; left:12px; right:12px; bottom:0; height:1px;
  background: rgba(255,255,255,0.07);
  transform: scaleX(1); transform-origin: right; transition: transform .5s var(--ease-out);
}
.menu-list li:last-child .menu-rule{ display:none; }
.menu-item:hover{ background: rgba(255,255,255,0.035); }
.menu-item:hover .menu-label{ transform: translateX(7px); color: var(--white); }
.menu-item:hover .menu-num{ color: var(--grey-300); }
.menu-foot{
  display:flex; justify-content:space-between; align-items:center;
  padding: 16px 12px 6px; font-size:10px; letter-spacing:.22em;
  color: var(--grey-600); text-transform:uppercase;
}
@media (max-width: 640px){
  #menu-panel{ top: 70px; right: 12px; width: calc(100vw - 24px); }
  .menu-label{ font-size: 19px; }
}

/* ==========================================================================
   HEADER
   ========================================================================== */
#site-header{
  position: fixed; top:0; left:0; right:0; z-index: 50;
  display:flex; align-items:center; justify-content:space-between;
  padding: 28px 40px;
  mix-blend-mode: difference;
}
.brand{
  font-size: 14px; letter-spacing:.24em; font-weight:500; color: var(--white);
  cursor: default;
}
.brand-dot{ color: var(--grey-500); }
.header-nav{ display:flex; align-items:center; }
.nav-btn{
  background:none; border:none; cursor:pointer;
  width:40px; height:40px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px;
}
.nav-line{ width: 22px; height:1px; background: var(--white); transition: transform .4s var(--ease-out), opacity .4s; }
@media (max-width: 900px){ #site-header{ padding: 20px 20px; } }

/* ==========================================================================
   CONTENT / PANELS
   ========================================================================== */
#content{
  position: fixed; inset:0; z-index: 30;
  pointer-events: none;
  perspective: 1600px;
}
.panel{
  position:absolute; inset:0;
  display:flex; flex-direction:column; justify-content:center;
  padding: 0 8vw;
  opacity: 0;
  transform: translate3d(0, 40px, -120px) rotateX(4deg);
  filter: blur(6px);
  transition: none;
  will-change: transform, opacity, filter;
  pointer-events: none;
}
.panel[data-align="left"]{ align-items:flex-start; text-align:left; }
.panel[data-align="right"]{ align-items:flex-end; text-align:right; }
.panel[data-align="center"]{ align-items:center; text-align:center; }

.panel.is-active{ pointer-events: auto; }
.panel.is-active .cta-btn{ pointer-events: auto; }
body.deconstructed .cta-btn, body.archive .cta-btn{ pointer-events: none !important; }

.eyebrow{
  font-size: 12px; letter-spacing: .3em; font-weight: 400;
  color: var(--grey-400); margin: 0 0 22px 0; text-transform: uppercase;
}
.display{
  font-size: clamp(48px, 9vw, 132px);
  line-height: 0.96; font-weight: 200; letter-spacing: -0.02em;
  margin: 0 0 24px 0; color: var(--white);
  max-width: 16ch;
}
.heading{
  font-size: clamp(30px, 5vw, 64px);
  line-height: 1.06; font-weight: 200; letter-spacing: -0.01em;
  margin: 0 0 26px 0; color: var(--white);
  max-width: 14ch;
}
.lede, .body-text{
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.65; font-weight: 300; color: var(--grey-300);
  max-width: 42ch; margin: 0;
}
.panel[data-align="right"] .lede,
.panel[data-align="right"] .body-text{ margin-left:auto; }
.panel[data-align="center"] .lede{ margin-left:auto; margin-right:auto; }

/* word/char reveal spans injected by JS */
.word{ display:inline-block; overflow:hidden; vertical-align: top; }
.word > span, .char > span{ display:inline-block; transform: translateY(1.15em); will-change: transform; }
.char{ display:inline-block; overflow:hidden; }

.scroll-cue{
  margin-top: 52px; display:flex; flex-direction:column; align-items:center; gap:10px;
  font-size: 11px; letter-spacing:.3em; color: var(--grey-400); pointer-events:auto; cursor: default;
}
.cue-line{ width:1px; height:46px; background: linear-gradient(var(--grey-600), transparent); position:relative; overflow:hidden; }
.cue-line::after{
  content:''; position:absolute; top:-100%; left:0; width:100%; height:100%;
  background: linear-gradient(var(--white), transparent);
  animation: cueDrop 2.2s ease-in-out infinite;
}
@keyframes cueDrop{ 0%{ top:-100%; } 100%{ top:100%; } }

.cta-group{
  margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
}
.cta-group .cta-btn{ margin-top: 0; }
.cta-btn{
  margin-top: 40px;
  pointer-events:none; /* only clickable on the active panel (see .panel.is-active below) */
  background: transparent;
  border: 1px solid var(--grey-600);
  color: var(--white);
  font-family: inherit; font-size: 13px; letter-spacing: .2em; font-weight: 400;
  padding: 20px 44px;
  cursor: pointer;
  position: relative;
  overflow:hidden;
  transition: border-color .4s var(--ease-out), transform .25s var(--ease-out), box-shadow .4s var(--ease-out), color .5s var(--ease-out);
}
.cta-btn span{ position:relative; z-index:1; }
.cta-btn::before{
  content:''; position:absolute; inset:0; z-index:0;
  background: var(--white);
  transform: translateY(101%);
  transition: transform .55s var(--ease-out);
}
.cta-btn:hover{ border-color: var(--white); box-shadow: 0 0 40px rgba(255,255,255,0.10); color: var(--black); }
.cta-btn:hover::before{ transform: translateY(0); }
.cta-btn:active{ transform: scale(0.96); }

@media (max-width: 900px){
  .panel{ padding: 0 7vw; }
  .display{ max-width: 100%; }
  .heading{ max-width: 100%; }
  .lede, .body-text{ max-width: 100%; }
}

/* ==========================================================================
   DECONSTRUCTION MODE (the unrolled net + its pages)
   ========================================================================== */
#content{ transition: opacity .6s var(--ease-out); }
body.deconstructed #content{ opacity: 0 !important; pointer-events: none; }

#net-content{
  position: fixed; inset: 0; z-index: 31; pointer-events: none;
  perspective: 1600px; opacity: 0;
  transition: opacity .6s var(--ease-out);
}
body.deconstructed #net-content{ opacity: 1; }

.net-panel{
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  align-items: flex-start; text-align: left;
  padding: 0 9vw;
  opacity: 0; filter: blur(8px);
  will-change: transform, opacity, filter; pointer-events: none;
}
.net-panel.is-active{ pointer-events: auto; }
.net-eyebrow{
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--grey-400); margin: 0 0 20px 0;
}
.net-heading{
  font-size: clamp(30px, 5vw, 64px); font-weight: 200; letter-spacing: -0.01em;
  line-height: 1.05; color: var(--white); margin: 0 0 22px 0; max-width: 16ch;
}
.net-body{
  font-size: clamp(15px, 1.4vw, 18px); font-weight: 300; line-height: 1.65;
  color: var(--grey-300); max-width: 44ch; margin: 0;
}
.reassemble-btn{
  margin-top: 34px; align-self: flex-start; pointer-events: none;
  background: transparent; border: 1px solid var(--grey-600); color: var(--white);
  font-family: inherit; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  padding: 16px 34px; cursor: pointer; position: relative; overflow: hidden;
  transition: border-color .4s var(--ease-out), color .5s var(--ease-out);
}
.reassemble-btn span{ position: relative; z-index: 1; }
.reassemble-btn::before{
  content: ''; position: absolute; inset: 0; z-index: 0; background: var(--white);
  transform: translateY(101%); transition: transform .5s var(--ease-out);
}
.net-panel.is-active .reassemble-btn{ pointer-events: auto; } /* only clickable on the visible page */
.reassemble-btn:hover{ border-color: var(--white); color: var(--black); }
.reassemble-btn:hover::before{ transform: translateY(0); }

@media (max-width: 900px){ .net-panel{ padding: 0 7vw; } .net-heading, .net-body{ max-width: 100%; } }

/* ==========================================================================
   ARCHIVE MODE
   ========================================================================== */
body.archive #content{ opacity: 0 !important; pointer-events: none; }

#archive-content{
  position: fixed; inset: 0; z-index: 31; pointer-events: none;
  opacity: 0; transition: opacity .6s var(--ease-out);
}
body.archive #archive-content{ opacity: 1; }

#archive-intro{
  position: absolute; left: 0; right: 0; bottom: 12vh;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 8vw;
}
.archive-eyebrow{
  font-size: 12px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--grey-400); margin: 0 0 18px 0;
}
.archive-title{
  font-size: clamp(40px, 8vw, 104px); font-weight: 200; letter-spacing: -0.02em;
  line-height: 1; color: var(--white); margin: 0;
}
.archive-sub{
  font-size: clamp(14px, 1.4vw, 18px); font-weight: 300; line-height: 1.6;
  color: var(--grey-300); max-width: 42ch; margin: 22px auto 0;
}
.archive-marker{
  position: absolute; left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  padding: 0 8vw; opacity: 0; pointer-events: none;
}
.am-idx{ font-size: 11px; letter-spacing: .34em; color: var(--grey-500); text-transform: uppercase; }
.am-txt{
  font-size: clamp(18px, 2.4vw, 30px); font-weight: 200; letter-spacing: -0.01em;
  color: var(--white); max-width: 22ch; line-height: 1.25;
  text-shadow: 0 4px 40px rgba(0,0,0,0.6);
}

#archive-outro{
  position: absolute; left: 0; right: 0; top: 15vh;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 8vw; opacity: 0; pointer-events: none; transform: translateY(16px);
}
.archive-outro-title{
  font-size: clamp(30px, 5vw, 60px); font-weight: 200; letter-spacing: -0.01em;
  color: var(--white); margin: 14px 0 0; line-height: 1.05;
  text-shadow: 0 6px 50px rgba(0,0,0,0.65);
}
.archive-outro-sub{
  font-size: clamp(14px, 1.4vw, 18px); font-weight: 300; line-height: 1.65;
  color: var(--grey-300); max-width: 46ch; margin: 18px auto 0;
  text-shadow: 0 4px 40px rgba(0,0,0,0.6);
}

#archive-return{
  position: absolute; left: 50%; bottom: 12vh; transform: translateX(-50%) translateY(18px);
  pointer-events: none; opacity: 0;
  background: transparent; border: 1px solid var(--grey-600); color: var(--white);
  font-family: inherit; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  padding: 18px 40px; cursor: pointer; position: absolute; overflow: hidden;
  transition: border-color .4s var(--ease-out), color .5s var(--ease-out);
}
#archive-return span{ position: relative; z-index: 1; }
#archive-return::before{
  content: ''; position: absolute; inset: 0; z-index: 0; background: var(--white);
  transform: translateY(101%); transition: transform .5s var(--ease-out);
}
#archive-return:hover{ border-color: var(--white); color: var(--black); }
#archive-return:hover::before{ transform: translateY(0); }
body:not(.archive) #archive-return{ pointer-events: none !important; } /* never a hidden click target */

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */
#cursor-dot, #cursor-follower{
  position: fixed; top:0; left:0; z-index: 9999;
  pointer-events:none;
  transform: translate(-50%,-50%);
  will-change: transform;
}
#cursor-dot{
  width:6px; height:6px; border-radius:50%;
  background: var(--white);
  transition: opacity .2s;
}
#cursor-follower{
  width:40px; height:40px; border-radius:50%;
  border: 1px solid rgba(255,255,255,0.5);
  display:flex; align-items:center; justify-content:center;
  mix-blend-mode: difference;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), border-color .35s;
}
#cursor-follower.hovering{
  width: 96px; height:96px; background: rgba(255,255,255,0.9); border-color: transparent;
}
#cursor-follower.hovering #cursor-dot{ opacity:0; }
#cursor-label{
  font-size: 10px; letter-spacing:.15em; color: var(--black); opacity:0; transition: opacity .25s; text-transform:uppercase; white-space:nowrap;
}
#cursor-follower.hovering #cursor-label{ opacity:1; }
#cursor-follower.clicking{ transform: translate(-50%,-50%) scale(0.85); }

.ripple{
  position: fixed; z-index: 9998; pointer-events:none;
  border-radius:50%; border:1px solid rgba(255,255,255,0.5);
  transform: translate(-50%,-50%);
}

@media (hover: none), (pointer: coarse){
  #cursor-dot, #cursor-follower{ display:none !important; }
  body, a, button{ cursor: auto !important; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  #bg-gradient{ animation: none; }
  .cue-line::after{ animation: none; }
  .loader-ring{ animation: spin 2.4s linear infinite; }
}

/* small screens: hide rail label spacing tweak */
@media (max-width: 520px){
  .display{ font-size: clamp(38px, 11vw, 80px); }
}
