:root {
  --bg: #06080c;
  --bg-darker: #040508;
  --bg-card: rgba(12, 16, 24, 0.72);
  --panel: rgba(10, 14, 22, 0.75);
  --panel-border: rgba(255, 255, 255, 0.08);
  --panel-border-hover: rgba(95, 212, 255, 0.35);
  --panel-glow: rgba(95, 212, 255, 0.12);
  
  --line: rgba(255, 255, 255, 0.08);
  --line2: rgba(95, 212, 255, 0.25);
  --line-gold: rgba(229, 193, 125, 0.3);
  
  --txt: #f0f4f9;
  --txt-heading: #ffffff;
  --dim: #9aa5b5;
  --dim2: #5b6574;
  --metal: #c8d3e0;
  
  --cyan: #5fd4ff;
  --cyan2: #2ea8d8;
  --cyan-glow: rgba(95, 212, 255, 0.4);
  --gold: #e5c17d;
  --gold-glow: rgba(229, 193, 125, 0.35);
  
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  
  --rad: 14px;
  --rad-sm: 8px;
  --rad-full: 9999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color-scheme: dark;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--txt);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Sleek High-Performance Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: rgba(95, 212, 255, 0.25);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
}

::selection {
  background: var(--cyan);
  color: #040e16;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============ CUSTOM PRECISION RETICLE / CURSOR ============ */
@media (pointer: fine) {
  body {
    cursor: default;
  }
  
  #cursorReticle {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: transform;
  }
  
  body.has-moved #cursorReticle {
    opacity: 1;
  }
  
  .cursor-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.2s var(--ease), background 0.2s;
  }
  
  .cursor-ring {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(95, 212, 255, 0.45);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s, transform 0.3s;
  }
  
  .cursor-ring::before,
  .cursor-ring::after {
    content: "";
    position: absolute;
    background: var(--cyan);
  }
  
  .cursor-ring::before {
    top: -5px;
    left: 50%;
    width: 1px;
    height: 4px;
    transform: translateX(-50%);
  }
  
  .cursor-ring::after {
    left: -5px;
    top: 50%;
    width: 4px;
    height: 1px;
    transform: translateY(-50%);
  }
  
  .cursor-hud {
    position: absolute;
    left: 24px;
    top: 14px;
    font-family: var(--mono);
    font-size: 0.52rem;
    letter-spacing: 0.16em;
    color: var(--cyan);
    background: rgba(6, 9, 14, 0.85);
    border: 1px solid var(--line2);
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
    backdrop-filter: blur(6px);
  }
  
  /* Cursor Hover States */
  body.cursor-hover .cursor-dot {
    transform: translate(-50%, -50%) scale(1.8);
    background: var(--gold);
    box-shadow: 0 0 14px var(--gold);
  }
  
  body.cursor-hover .cursor-ring {
    width: 52px;
    height: 52px;
    border-color: var(--gold);
  }
  
  body.cursor-hover .cursor-hud {
    color: var(--gold);
    border-color: var(--line-gold);
  }
}

@media (pointer: coarse) {
  #cursorReticle {
    display: none !important;
  }
}

/* ============ CANVAS & OVERLAYS ============ */
canvas#webgl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  touch-action: none;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(4, 6, 9, 0.45) 80%, rgba(3, 4, 6, 0.85) 100%);
}

.film-grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

body.reduced .film-grain {
  display: none;
}

/* ============ 3D SPATIAL HOLOGRAM OVERLAY ============ */
#hologramOverlay {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.holo-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.4s ease, transform 0.4s var(--ease);
}

.holo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
  position: relative;
}

.holo-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  animation: radarPing 2.2s infinite;
}

@keyframes radarPing {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

.holo-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: #fff;
  background: rgba(10, 14, 22, 0.88);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 18px rgba(95, 212, 255, 0.25);
  padding: 4px 10px;
  border-radius: 4px;
  backdrop-filter: blur(10px);
  white-space: nowrap;
  opacity: 0.9;
  transition: opacity 0.25s, transform 0.25s;
}

.holo-marker:hover .holo-label {
  opacity: 1;
  transform: translateX(4px);
  border-color: var(--gold);
  color: var(--gold);
}

/* ============ LOADER ============ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: radial-gradient(circle at 50% 50%, #0d121c 0%, var(--bg) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}

#loader.done {
  opacity: 0;
  visibility: hidden;
}

.loader-grid {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
  background-image: linear-gradient(rgba(120, 200, 255, 0.2) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(120, 200, 255, 0.2) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 50%, #000 25%, transparent 75%);
}

.loader-core {
  position: relative;
  text-align: center;
  width: min(480px, 90vw);
  z-index: 2;
}

.loader-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  color: var(--cyan);
  border: 1px solid var(--line2);
  padding: 4px 12px;
  border-radius: var(--rad-full);
  margin-bottom: 1.2rem;
  background: rgba(95, 212, 255, 0.05);
}

.loader-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 10vw, 5.2rem);
  letter-spacing: 0.32em;
  margin-left: 0.32em;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 15%, #94a7bc 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 35px rgba(255, 255, 255, 0.15));
}

.loader-sub {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.26em;
  color: var(--dim);
  margin: 1.2rem 0 2rem;
}

.loader-steps {
  list-style: none;
  text-align: left;
  font-family: var(--mono);
  font-size: 0.68rem;
  margin: 0 auto 1.8rem;
  max-width: 340px;
}

.loader-steps li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.32rem 0;
  color: var(--dim2);
  transition: color 0.3s;
}

.loader-steps li.on {
  color: var(--txt);
}

.loader-steps li i {
  flex: 1;
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.loader-steps li i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s ease;
}

.loader-steps li.on i::after {
  transform: scaleX(1);
}

.loader-steps li b {
  font-weight: 400;
  color: var(--cyan);
  opacity: 0;
  transition: opacity 0.3s 0.25s;
}

.loader-steps li.on b {
  opacity: 1;
}

.loader-bar {
  height: 2px;
  background: var(--line);
  margin-bottom: 2rem;
  overflow: hidden;
  position: relative;
}

#loaderBar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan2), var(--cyan), var(--gold));
  box-shadow: 0 0 12px var(--cyan);
  transition: width 0.4s ease;
}

.btn-enter {
  font-family: var(--mono);
  letter-spacing: 0.28em;
  font-size: 0.76rem;
  padding: 1.05rem 2.8rem;
  color: var(--txt);
  background: transparent;
  border: 1px solid var(--line2);
  border-radius: var(--rad-sm);
  opacity: 0.3;
  transition: 0.35s var(--ease);
}

.btn-enter:disabled {
  cursor: default;
}

.btn-enter.ready {
  opacity: 1;
  border-color: var(--cyan);
  box-shadow: 0 0 35px rgba(95, 212, 255, 0.35), inset 0 0 20px rgba(95, 212, 255, 0.12);
  cursor: pointer;
}

.btn-enter.ready:hover {
  background: rgba(95, 212, 255, 0.12);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 45px rgba(95, 212, 255, 0.5), inset 0 0 25px rgba(95, 212, 255, 0.2);
}

/* ============ NAVIGATION ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.2rem, 3vw, 2.4rem);
  height: 56px;
  box-sizing: border-box;
  transition: background 0.4s, backdrop-filter 0.4s, border-bottom 0.4s;
}

.nav.scrolled {
  background: rgba(6, 8, 12, 0.78);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--panel-border);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.32em;
  font-size: 1.15rem;
  display: flex;
  align-items: baseline;
  color: #fff;
}

.nav-logo span {
  font-size: 0.55em;
  vertical-align: super;
  color: var(--cyan);
  margin-left: 2px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--dim);
  transition: color 0.25s;
  position: relative;
  padding: 0.3rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Sound Toggle Button */
.sound-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  padding: 0.55rem 0.85rem;
  border-radius: var(--rad-full);
  transition: 0.25s var(--ease);
}

.sound-toggle:hover {
  border-color: var(--line2);
  background: rgba(95, 212, 255, 0.05);
}

.sound-toggle[aria-pressed="true"],
.sound-toggle.active {
  border-color: var(--cyan);
  background: rgba(95, 212, 255, 0.12);
  box-shadow: 0 0 14px rgba(95, 212, 255, 0.25);
}

.sound-toggle[aria-pressed="true"] .st-label,
.sound-toggle.active .st-label {
  color: #fff;
}

.eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  width: 14px;
}

.eq-bars i {
  flex: 1;
  background: var(--dim2);
  border-radius: 1px;
  height: 3px;
  transition: height 0.25s, background 0.25s;
}

.sound-toggle[aria-pressed="true"] .eq-bars i,
.sound-toggle.active .eq-bars i {
  background: var(--cyan);
  box-shadow: 0 0 4px var(--cyan);
}

.sound-toggle[aria-pressed="true"] .eq-bars i:nth-child(1) { height: 9px; }
.sound-toggle[aria-pressed="true"] .eq-bars i:nth-child(2) { height: 12px; }
.sound-toggle[aria-pressed="true"] .eq-bars i:nth-child(3) { height: 7px; }
.sound-toggle[aria-pressed="true"] .eq-bars i:nth-child(4) { height: 10px; }

/* Studio Dock Mobile Toggle Button */
.studio-dock-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  padding: 0.45rem 0.85rem;
  background: rgba(95, 212, 255, 0.08);
  border: 1px solid var(--line2);
  color: var(--cyan);
  border-radius: var(--rad-sm);
  transition: 0.25s var(--ease);
}

.studio-dock-toggle:hover,
.studio-dock-toggle.active {
  background: var(--cyan);
  color: #04121c;
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(95, 212, 255, 0.4);
}

.st-label, .mt-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  color: var(--dim);
}

.btn-studio {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  padding: 0.68rem 1.4rem;
  color: #04121c;
  background: linear-gradient(120deg, #b0efff, var(--cyan));
  border: none;
  font-weight: 600;
  transition: 0.35s var(--ease);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.btn-studio:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 30px rgba(95, 212, 255, 0.5);
  transform: translateY(-1px);
}

.motion-toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  padding: 0.55rem 0.85rem;
  border-radius: var(--rad-full);
  transition: 0.25s;
}

.mt-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dim2);
  transition: 0.3s;
}

.motion-toggle[aria-pressed="true"] .mt-dot {
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.4rem;
}

.burger i {
  width: 22px;
  height: 2px;
  background: var(--txt);
  display: block;
  transition: 0.3s;
}

/* ============ PROGRESS RAIL ============ */
.rail {
  position: fixed;
  right: 1.8rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  transition: opacity 0.4s;
  pointer-events: none;
}

.rail-count {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: #fff;
  font-weight: 500;
}

.rail-count em {
  font-style: normal;
  color: var(--dim2);
  font-size: 0.64rem;
}

.rail-track {
  width: 2px;
  height: 120px;
  background: var(--panel-border);
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}

#railFill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, var(--cyan), var(--gold));
  box-shadow: 0 0 8px var(--cyan);
}

.rail-name {
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  color: var(--dim);
}

/* ============ SCENES & SCROLLYTELLING ============ */
#story {
  position: relative;
  z-index: 2;
}

.scene {
  min-height: 135vh;
  display: flex;
  align-items: center;
  padding: 0 clamp(1.5rem, 8vw, 9rem);
  position: relative;
}

.scene[data-scene="0"] {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: calc(52px + clamp(0.2rem, 1.2vh, 0.8rem)) 1.2rem clamp(0.4rem, 1.2vh, 0.9rem);
  box-sizing: border-box;
  position: relative;
}

.scene[data-scene="0"] .panel {
  margin: auto 0;
  max-width: 680px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 1;
  transform: none;
}

.scene[data-scene="19"] {
  min-height: 180vh;
}

.panel {
  max-width: 520px;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.panel.in {
  opacity: 1;
  transform: none;
}

.panel.center {
  margin: 0 auto;
  text-align: center;
}

.panel.center-bottom {
  margin: 58vh auto 0;
  text-align: center;
}

.panel.left {
  margin-right: auto;
}

.panel.right {
  margin-left: auto;
}

.panel.wide {
  max-width: 900px;
}

.glass {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--rad);
  padding: 2.4rem 2.6rem;
  backdrop-filter: blur(24px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.glass.clear {
  background: rgba(14, 18, 28, 0.45);
}

.panel.dark {
  text-shadow: 0 4px 35px rgba(0, 0, 0, 0.85);
}

/* Scene 01 Hero Plaque - Architectural Contrast Shield */
#s01 .panel {
  max-width: 680px;
  background: radial-gradient(ellipse at 50% 50%, rgba(5, 9, 16, 0.92) 0%, rgba(5, 9, 16, 0.8) 65%, rgba(5, 9, 16, 0.45) 100%);
  border: 1px solid rgba(95, 212, 255, 0.28);
  border-radius: 28px;
  padding: 2.8rem 3rem;
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 50px rgba(95, 212, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

#s01 .meta-tag {
  color: #7ce0ff;
  background: rgba(95, 212, 255, 0.15);
  border: 1px solid rgba(95, 212, 255, 0.45);
  font-weight: 700;
  box-shadow: 0 0 16px rgba(95, 212, 255, 0.25);
}

#s01 .meta-coords {
  color: #92a7bf;
}

#s01 .kicker {
  color: #e5c17d;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.scene-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
}

.meta-tag {
  color: var(--cyan);
  background: rgba(95, 212, 255, 0.08);
  border: 1px solid var(--line2);
  padding: 3px 10px;
  border-radius: var(--rad-full);
}

.meta-coords {
  color: var(--dim2);
}

.kicker {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.32em;
  color: var(--cyan);
  margin-bottom: 1rem;
  display: inline-block;
}

h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.8vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-bottom: 1.2rem;
  color: var(--txt-heading);
}

h2.xl {
  font-size: clamp(2.4rem, 6.5vw, 4.8rem);
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.panel p {
  color: var(--dim);
  font-size: 0.96rem;
  line-height: 1.7;
}

.fineprint {
  font-size: 0.72rem !important;
  color: var(--dim2) !important;
  font-family: var(--mono);
  margin: 0.5rem 0 0.9rem;
}

.hero-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  letter-spacing: 0.12em;
  padding-left: 0.12em; /* Perfectly centers despite letter-spacing */
  line-height: 1.1;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.95)) drop-shadow(0 12px 35px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 45px rgba(95, 212, 255, 0.4));
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.12em 0.45em;
}

.hero-logo.small {
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.hero-logo span {
  display: inline-block;
  opacity: 0;
  transform: translateY(45px) rotateX(60deg);
  animation: logoIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  background: linear-gradient(180deg, #ffffff 0%, #f0f6ff 45%, #c5dcf7 85%, #8cb6df 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
}

.hero-logo span:nth-child(1) { animation-delay: 0.1s; }
.hero-logo span:nth-child(2) { animation-delay: 0.22s; }
.hero-logo span:nth-child(3) { animation-delay: 0.34s; }
.hero-logo span:nth-child(4) { animation-delay: 0.46s; }
.hero-logo span:nth-child(5) { animation-delay: 0.58s; }

@keyframes logoIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-tag {
  font-family: var(--mono);
  letter-spacing: 0.36em;
  font-size: clamp(0.72rem, 1.4vw, 0.92rem);
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95), 0 0 25px rgba(95, 212, 255, 0.35);
  margin-top: 1rem;
  opacity: 0;
  animation: fadeUp 1s 0.8s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.process-line {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.2rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  color: #dbe7f5;
  font-weight: 600;
  background: rgba(6, 12, 22, 0.85);
  border: 1px solid rgba(229, 193, 125, 0.35);
  padding: 0.45rem 1.4rem;
  border-radius: var(--rad-full);
  backdrop-filter: blur(16px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  opacity: 0;
  animation: fadeUp 1s 1.1s forwards;
  flex-wrap: wrap;
}

.process-line i {
  color: #5fd4ff;
  font-style: normal;
  text-shadow: 0 0 10px #5fd4ff;
}

.hero-quick-actions {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s 1.3s forwards;
}

.scroll-hint {
  position: relative;
  left: auto;
  transform: none;
  bottom: auto;
  margin-top: 1.6rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: #9ec9f5;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.chev {
  width: 1px;
  height: 28px;
  background: linear-gradient(var(--cyan), transparent);
  animation: chev 1.8s infinite;
}

@keyframes chev {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.principles {
  list-style: none;
  margin: 0.8rem 0 1.4rem;
}

.principles li {
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: 0.14em;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.principles li::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}

.principles.slim li {
  font-size: 0.84rem;
  font-family: var(--mono);
  font-weight: 400;
}

.morph-line, .build-order {
  list-style: none;
  margin: 0.8rem 0 1.4rem;
  font-family: var(--mono);
}

.morph-line li, .build-order li {
  padding: 0.55rem 0;
  color: var(--dim2);
  border-left: 2px solid var(--panel-border);
  padding-left: 1.1rem;
  transition: 0.35s;
  font-size: 0.84rem;
}

.morph-line li.on, .build-order li.on {
  color: var(--txt);
  border-color: var(--cyan);
}

.morph-line li.hot, .build-order li.hot {
  color: var(--cyan);
  font-weight: 500;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 1.4rem;
}

.chip-grid span {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  border: 1px solid var(--panel-border);
  color: var(--metal);
  padding: 0.5rem 0.9rem;
  border-radius: var(--rad-full);
  background: rgba(255, 255, 255, 0.02);
  transition: 0.25s;
}

.chip-grid span:hover {
  border-color: var(--line2);
  color: #fff;
}

.spec-list {
  list-style: none;
  margin: 0.8rem 0 1.4rem;
}

.spec-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--panel-border);
  color: var(--metal);
  font-size: 0.9rem;
  display: flex;
  gap: 1rem;
  align-items: baseline;
}

.spec-list b {
  font-family: var(--mono);
  color: var(--cyan);
  font-weight: 400;
  font-size: 0.72rem;
}

.tag-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 1.4rem;
}

.tag-row li {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  color: var(--dim);
  border: 1px solid var(--panel-border);
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.02);
}

.tag-row.center {
  justify-content: center;
}

.timeline {
  display: flex;
  gap: 0.5rem;
  position: relative;
  margin-top: 1.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.timeline span {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--dim2);
  border: 1px solid var(--panel-border);
  padding: 0.6rem 0.85rem;
  position: relative;
  z-index: 1;
  background: rgba(8, 11, 16, 0.88);
  transition: color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.timeline span.on {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(95, 212, 255, 0.25);
}

.timeline-fill {
  display: none;
}

.standard-words {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1.8rem;
}

.standard-words span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 3.4vw, 2.3rem);
  letter-spacing: 0.2em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
  transition: 0.6s var(--ease);
  opacity: 0;
  transform: translateX(-30px);
}

.standard-words span.on {
  color: var(--txt-heading);
  -webkit-text-stroke: 0;
  opacity: 1;
  transform: none;
}

.standard-words span.on:nth-child(odd) {
  color: var(--cyan);
  text-shadow: 0 0 25px rgba(95, 212, 255, 0.3);
}

.final-cta {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin-top: 2.6rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s 1.2s forwards;
}

/* ============ BUTTON STYLES ============ */
.btn-solid, .btn-ghost, .btn-accent {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  padding: 0.85rem 1.8rem;
  min-height: 46px;
  box-sizing: border-box;
  transition: 0.35s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: var(--rad-sm);
  vertical-align: middle;
}

.btn-solid {
  background: linear-gradient(135deg, #a6f2ff 0%, #5fd4ff 50%, #2ea8d8 100%);
  color: #031019;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 20px rgba(95, 212, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-solid:hover {
  box-shadow: 0 0 35px rgba(95, 212, 255, 0.65), 0 6px 25px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
  filter: brightness(1.12);
}

.btn-accent {
  background: linear-gradient(135deg, #ffdf9e 0%, var(--gold) 50%, #c49c56 100%);
  color: #120e04;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 20px rgba(229, 193, 125, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-accent:hover {
  box-shadow: 0 0 35px rgba(229, 193, 125, 0.65), 0 6px 25px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
  filter: brightness(1.12);
}

.btn-ghost {
  background: rgba(10, 16, 26, 0.75);
  color: #ffffff;
  border: 1px solid rgba(95, 212, 255, 0.35);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  background: rgba(95, 212, 255, 0.16);
  color: var(--cyan);
  box-shadow: 0 0 25px rgba(95, 212, 255, 0.35);
  transform: translateY(-2px);
}

.btn-solid.small, .btn-ghost.small {
  padding: 0.65rem 1.3rem;
  font-size: 0.64rem;
  min-height: 38px;
}

/* ============ 3D STUDIO OVERLAY ============ */
.studio {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.studio > * {
  pointer-events: auto;
}

.studio[hidden] {
  display: none;
}

.studio-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.8rem;
  background: linear-gradient(rgba(6, 8, 12, 0.92), transparent);
}

.studio-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.28em;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.studio-title em {
  font-style: normal;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.65rem;
  color: var(--cyan);
  letter-spacing: 0.24em;
}

.studio-live-tag {
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
  background: rgba(95, 212, 255, 0.1);
  border: 1px solid var(--line2);
  padding: 2px 8px;
  border-radius: var(--rad-full);
  display: flex;
  align-items: center;
  gap: 5px;
}

.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  animation: pulse 1.6s infinite;
}

.studio-hint {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  color: var(--dim);
}

.studio-exit {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line2);
  color: var(--txt);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  padding: 0.6rem 1.2rem;
  border-radius: var(--rad-sm);
  transition: 0.3s;
}

.studio-exit:hover {
  border-color: var(--cyan);
  background: rgba(95, 212, 255, 0.12);
}

/* DOCKS */
.dock {
  position: absolute;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--rad);
  backdrop-filter: blur(24px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.dock-left {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 270px;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  padding: 0.65rem 0.75rem;
  z-index: 10;
}

/* Dock Category Tabs */
.dock-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  background: rgba(4, 8, 14, 0.7);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.65rem;
}

.dock-tab {
  font-family: var(--mono);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.42rem 0.15rem;
  color: var(--dim);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  text-align: center;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.dock-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.dock-tab.on {
  color: #04121c;
  background: var(--cyan);
  border-color: var(--cyan);
  font-weight: 700;
  box-shadow: 0 0 12px rgba(95, 212, 255, 0.4);
}

/* Dock Panes */
.dock-pane {
  display: none;
  animation: paneIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dock-pane.on {
  display: block;
}

@keyframes paneIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.space-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.42rem;
}

.space-grid button {
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  padding: 0.52rem 0.4rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.space-grid button.span-2 {
  grid-column: 1 / -1;
}

.dock-head {
  width: 100%;
  background: none;
  border: none;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-align: left;
  padding: 0.7rem 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}

.dock-head:hover {
  color: #fff;
}

.dock-head::after {
  content: "–";
  color: var(--cyan);
  font-weight: 700;
}

.dock-group:not(.open) .dock-head::after {
  content: "+";
}

.dock-group:not(.open) .dock-body {
  display: none;
}

.dock-body {
  padding: 0 0.3rem 0.8rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.btn-row button {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  padding: 0.5rem 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  color: var(--dim);
  border-radius: 4px;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.btn-row button:hover {
  color: #fff;
  border-color: var(--line2);
  transform: translateY(-2px) scale(1.03);
}

.btn-row button:active {
  transform: translateY(1px) scale(0.96);
}

.btn-row button.on {
  color: #04121c;
  background: var(--cyan);
  border-color: var(--cyan);
  font-weight: 600;
  box-shadow: 0 0 14px rgba(95, 212, 255, 0.45);
}

.btn-row button[data-space] {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.btn-row button[data-space]:hover {
  border-color: rgba(95, 212, 255, 0.55);
  background: rgba(95, 212, 255, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

#interiorLightsBtn {
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, border-color 0.2s ease;
}

#interiorLightsBtn:hover {
  transform: scale(1.02);
  background: rgba(255, 180, 80, 0.22) !important;
}

#interiorLightsBtn:active {
  transform: scale(0.97);
}

.layers label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--dim);
  padding: 0.4rem 0.3rem;
  cursor: pointer;
  transition: color 0.2s;
}

.layers label:hover {
  color: #fff;
}

.layers input {
  accent-color: var(--cyan);
  width: 13px;
  height: 13px;
}

.sw {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.sw-arch { background: #dce5f0; }
.sw-str  { background: #8a9bb2; }
.sw-ele  { background: #ffd35f; }
.sw-plu  { background: #5fb4ff; }
.sw-hva  { background: #9fd0c3; }
.sw-fur  { background: #e0b07a; }
.sw-lan  { background: #56a760; }

.bim-layer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.28rem 0.5rem;
}

.bim-layer-grid label {
  padding: 0.35rem 0.25rem;
  font-size: 0.58rem;
}

.bim-layer-grid label.span-2 {
  grid-column: 1 / -1;
}

.dock-bottom {
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  max-width: calc(100vw - 2rem);
  overflow-x: auto;
  scrollbar-width: none;
  z-index: 10;
}

.dock-bottom::-webkit-scrollbar {
  display: none;
}

.dock-bottom button {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  padding: 0.52rem 0.78rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  color: var(--dim);
  white-space: nowrap;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: 0.25s;
}

.dock-bottom button span {
  font-size: 0.75rem;
}

.dock-bottom button:hover {
  color: #fff;
  border-color: var(--line2);
}

.dock-bottom button.on {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(95, 212, 255, 0.1);
  box-shadow: 0 0 16px rgba(95, 212, 255, 0.25);
}

/* BIM SPEC CARD */
.info-panel {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translate(35px, -50%);
  width: 320px;
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: var(--rad);
  backdrop-filter: blur(24px);
  padding: 1.8rem 1.6rem;
  opacity: 0;
  pointer-events: none;
  transition: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 30px rgba(95, 212, 255, 0.15);
}

.info-panel.open {
  opacity: 1;
  transform: translate(0, -50%);
  pointer-events: auto;
}

.info-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  color: var(--dim);
  font-size: 0.9rem;
  padding: 4px;
}

.info-close:hover {
  color: #fff;
}

.info-badge {
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  color: var(--cyan);
  background: rgba(95, 212, 255, 0.1);
  border: 1px solid var(--line2);
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.6rem;
}

.info-cat {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  color: var(--dim2);
  margin-bottom: 0.4rem;
}

.info-panel h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
  color: #fff;
}

.info-specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem 1rem;
  font-size: 0.78rem;
  border-top: 1px solid var(--panel-border);
  padding-top: 1rem;
  margin-bottom: 1.2rem;
}

.info-specs dt {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  color: var(--dim2);
  padding-top: 0.15rem;
}

.info-specs dd {
  color: var(--metal);
  line-height: 1.5;
  font-weight: 500;
}

.info-actions {
  display: flex;
  gap: 0.6rem;
}

.btn-isolate {
  width: 100%;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  padding: 0.75rem;
  background: rgba(95, 212, 255, 0.08);
  border: 1px solid var(--line2);
  color: var(--cyan);
  border-radius: var(--rad-sm);
  transition: 0.25s;
}

.btn-isolate:hover {
  background: var(--cyan);
  color: #04121c;
  box-shadow: 0 0 20px rgba(95, 212, 255, 0.4);
}

.measure-readout {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--cyan);
  background: rgba(6, 10, 16, 0.9);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 20px rgba(95, 212, 255, 0.3);
  padding: 0.55rem 0.9rem;
  border-radius: 6px;
  pointer-events: none;
  white-space: nowrap;
}

/* ============ PAGE SECTIONS ============ */
.page-section {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(6, 8, 12, 0.95) 7%, rgba(6, 8, 12, 0.98) 93%, transparent);
  padding: 8rem clamp(1.5rem, 8vw, 9rem) 6rem;
}

.badge-pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  color: var(--cyan);
  background: rgba(95, 212, 255, 0.07);
  border: 1px solid var(--line2);
  padding: 4px 12px;
  border-radius: var(--rad-full);
  margin-bottom: 0.8rem;
}

.section-head {
  max-width: 860px;
  margin-bottom: 3.8rem;
}

.section-head h2 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
}

.section-sub {
  color: var(--dim);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 600px;
}

/* SERVICES */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--panel-border);
  border-radius: var(--rad);
  padding: 2.2rem 2rem;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.45s, box-shadow 0.45s;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.service-card:hover, .service-card:focus-visible {
  transform: translateY(-8px);
  border-color: var(--panel-border-hover);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(95, 212, 255, 0.1);
}

.sc-num {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--dim2);
}

.sc-icon {
  width: 48px;
  height: 48px;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  transition: transform 0.45s var(--ease);
}

.service-card:hover .sc-icon {
  transform: translateY(-4px) scale(1.08);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
  color: #fff;
}

.service-card p {
  font-size: 0.86rem;
  color: var(--dim);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.sc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.sc-tags span {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--dim2);
  border: 1px solid var(--panel-border);
  padding: 3px 8px;
  border-radius: 4px;
}

.sc-line {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--cyan2), var(--cyan));
  transition: width 0.5s var(--ease);
}

.service-card:hover .sc-line {
  width: 100%;
}

/* PROJECTS */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.8rem;
}

.project-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--panel-border);
  border-radius: var(--rad);
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s, box-shadow 0.5s;
  backdrop-filter: blur(18px);
}

.project-card:hover, .project-card:focus-visible {
  transform: translateY(-10px);
  border-color: var(--panel-border-hover);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 40px rgba(95, 212, 255, 0.12);
}

.pc-visual {
  height: 240px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 120%, rgba(95, 212, 255, 0.12), transparent 70%),
              linear-gradient(rgba(120, 200, 255, 0.06) 1px, transparent 1px),
              linear-gradient(90deg, rgba(120, 200, 255, 0.06) 1px, transparent 1px);
  background-size: 100% 100%, 30px 30px, 30px 30px;
  background-color: #080b11;
}

.pc-blueprint-canvas {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: repeating-linear-gradient(0deg, rgba(95, 212, 255, 0.15) 0 1px, transparent 1px 15px),
              repeating-linear-gradient(90deg, rgba(95, 212, 255, 0.15) 0 1px, transparent 1px 15px);
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.project-card.blueprint-active .pc-blueprint-canvas,
.project-card:hover .pc-blueprint-canvas {
  opacity: 0.8;
}

.pc-bldg {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 44%;
  height: 70%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s;
  background: linear-gradient(160deg, #323d4c, #161c24 75%);
  border: 1px solid rgba(160, 200, 240, 0.28);
  border-bottom: none;
  clip-path: polygon(0 22%, 55% 0, 100% 14%, 100% 100%, 0 100%);
}

.pc-bldg::before {
  content: "";
  position: absolute;
  inset: 12% 10% 0;
  background: repeating-linear-gradient(0deg, rgba(120, 200, 255, 0.35) 0 3px, transparent 3px 18px),
              repeating-linear-gradient(90deg, rgba(120, 200, 255, 0.25) 0 3px, transparent 3px 20px);
  mask-image: linear-gradient(#000, transparent 94%);
}

.project-card:hover .pc-bldg {
  transform: translateX(-50%) scale(1.08) translateY(-5px);
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.6));
}

.pc-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(95, 212, 255, 0.22) 50%, transparent 56%);
  transform: translateY(-110%);
  transition: transform 1.2s ease;
}

.project-card:hover .pc-scan {
  transform: translateY(110%);
}

.v2 .pc-bldg { clip-path: polygon(0 42%, 38% 30%, 38% 12%, 78% 0, 100% 18%, 100% 100%, 0 100%); height: 62%; width: 56%; }
.v3 .pc-bldg { height: 90%; width: 34%; clip-path: polygon(12% 0, 88% 6%, 100% 100%, 0 100%); }
.v4 .pc-bldg { height: 82%; width: 62%; clip-path: polygon(0 34%, 30% 34%, 30% 10%, 62% 10%, 62% 26%, 100% 26%, 100% 100%, 0 100%); }
.v5 .pc-bldg { height: 72%; width: 48%; clip-path: polygon(0 8%, 100% 0, 92% 100%, 8% 100%); }
.v6 .pc-bldg { height: 56%; width: 74%; clip-path: polygon(0 30%, 25% 30%, 25% 0, 50% 0, 50% 30%, 75% 30%, 75% 8%, 100% 8%, 100% 100%, 0 100%); }

.pc-badge-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  color: var(--cyan);
  border: 1px solid var(--line2);
  padding: 0.35rem 0.75rem;
  background: rgba(6, 8, 12, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 4px;
}

.pc-body {
  padding: 1.8rem 1.8rem 1.9rem;
}

.pc-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.pc-cat {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--dim2);
}

.pc-year {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.pc-body h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 1.2rem;
  color: #fff;
}

.pc-body dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.1rem;
  margin-bottom: 1.2rem;
  border-top: 1px solid var(--panel-border);
  padding-top: 1rem;
}

.pc-body dt {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  color: var(--dim2);
}

.pc-body dd {
  font-size: 0.8rem;
  color: var(--metal);
  font-weight: 500;
}

.pc-concept {
  font-size: 0.85rem;
  color: var(--dim);
  line-height: 1.65;
  margin-bottom: 1.4rem;
}

.pc-card-footer {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.btn-blueprint-toggle, .btn-card-inspect {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  padding: 0.65rem 0.9rem;
  border-radius: 4px;
  transition: 0.25s;
}

.btn-blueprint-toggle {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  color: var(--dim);
}

.btn-blueprint-toggle:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-card-inspect {
  background: rgba(95, 212, 255, 0.08);
  border: 1px solid var(--line2);
  color: var(--cyan);
  margin-left: auto;
}

.btn-card-inspect:hover {
  background: var(--cyan);
  color: #04121c;
  box-shadow: 0 0 16px rgba(95, 212, 255, 0.35);
}

/* TELEMETRY DASHBOARD */
.dash {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--rad);
  backdrop-filter: blur(24px);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.dash-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 1.8rem;
  border-bottom: 1px solid var(--panel-border);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  color: var(--metal);
}

.dash-head em {
  margin-left: auto;
  font-style: normal;
  color: var(--cyan);
  font-size: 0.58rem;
}

.dash-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  50% { opacity: 0.35; transform: scale(0.85); }
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.dash-cell {
  padding: 1.5rem 1.8rem;
  border-right: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
}

.dash-cell span {
  display: block;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  color: var(--dim2);
  margin-bottom: 0.55rem;
}

.dash-cell b {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
}

.dash-cell b.cyan {
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(95, 212, 255, 0.35);
}

.dash-actions {
  display: flex;
  gap: 0.9rem;
  padding: 1.4rem 1.8rem;
  border-top: 1px solid var(--panel-border);
  flex-wrap: wrap;
}

.dash-note {
  padding: 0 1.8rem 1.5rem;
  font-size: 0.72rem;
  color: var(--dim2);
  font-family: var(--mono);
  line-height: 1.7;
}

/* ABOUT SECTION */
.about-grid {
  max-width: 960px;
}

.about-lead {
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  line-height: 1.65;
  color: var(--metal);
  font-weight: 300;
  margin-bottom: 3.2rem;
}

.about-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.4rem;
}

.about-cols h4 {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--cyan);
  margin-bottom: 0.9rem;
}

.about-cols p {
  font-size: 0.88rem;
  color: var(--dim);
  line-height: 1.75;
}

/* CONTACT & ESTIMATOR */
.contact-layout {
  max-width: 940px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.3rem;
  background: var(--bg-card);
  border: 1px solid var(--panel-border);
  border-radius: var(--rad);
  padding: 2.6rem 2.4rem;
  backdrop-filter: blur(20px);
}

.ff {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ff.full {
  grid-column: 1 / -1;
}

.ff label {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  color: var(--dim2);
}

.ff label strong {
  color: var(--cyan);
}

.ff input, .ff select, .ff textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  color: var(--txt);
  font-family: var(--font);
  font-size: 0.92rem;
  padding: 0.95rem 1.1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.ff input:focus, .ff select:focus, .ff textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(95, 212, 255, 0.2);
}

.ff input[type="range"] {
  padding: 0;
  accent-color: var(--cyan);
  cursor: pointer;
}

.form-actions-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 0.5rem;
}

.estimate-chip {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
  background: rgba(95, 212, 255, 0.08);
  border: 1px solid var(--line2);
  padding: 0.75rem 1.2rem;
  border-radius: var(--rad-sm);
}

.form-status {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--cyan);
  min-height: 1.4em;
}

/* FOOTER */
.footer {
  position: relative;
  z-index: 2;
  background: #040508;
  padding: 5.5rem clamp(1.5rem, 8vw, 9rem) 3.5rem;
  border-top: 1px solid var(--panel-border);
}

.footer-top {
  margin-bottom: 3.2rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.36em;
  font-size: 2rem;
  margin-bottom: 0.8rem;
  color: #fff;
}

.footer-tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.36em;
  color: var(--dim);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.2rem;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 3rem;
}

.f-col h5 {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.28em;
  color: var(--cyan);
  margin-bottom: 0.8rem;
}

.f-col p {
  font-size: 0.88rem;
  color: var(--dim);
  line-height: 1.6;
}

.footer-fine {
  font-size: 0.72rem;
  color: var(--dim2);
  max-width: 640px;
  margin-bottom: 1.6rem;
  line-height: 1.7;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--dim2);
  letter-spacing: 0.18em;
}

/* ============ LAPTOP & SHORT VIEWPORT CALIBRATIONS ============ */
@media (max-height: 860px) {
  /* LOADER */
  .loader-badge {
    margin-bottom: 0.6rem;
    padding: 3px 10px;
    font-size: 0.52rem;
  }
  .loader-logo {
    font-size: clamp(2.4rem, 7vw, 3.8rem);
  }
  .loader-sub {
    margin: 0.6rem 0 1rem;
    font-size: 0.56rem;
  }
  .loader-steps {
    font-size: 0.58rem;
    margin: 0 auto 1rem;
    max-width: 300px;
  }
  .loader-steps li {
    padding: 0.2rem 0;
  }
  .loader-bar {
    margin-bottom: 1.2rem;
  }
  .btn-enter {
    padding: 0.75rem 2rem;
    font-size: 0.68rem;
  }

  /* HERO */
  .scene-meta {
    margin-bottom: 0.35rem;
    font-size: 0.54rem;
  }
  .kicker {
    margin-bottom: 0.3rem;
    font-size: 0.56rem;
  }
  .hero-logo {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
  }
  .hero-tag {
    margin-top: 0.4rem;
    font-size: 0.68rem;
    letter-spacing: 0.28em;
  }
  .process-line {
    margin-top: 0.65rem;
    font-size: 0.54rem;
    gap: 0.45rem;
  }
  .hero-quick-actions {
    margin-top: 0.8rem;
    gap: 0.65rem;
  }
  .hero-quick-actions button,
  .hero-quick-actions a {
    padding: 0.55rem 1.1rem;
    font-size: 0.6rem;
  }
  .scroll-hint {
    margin-top: 0.7rem;
    font-size: 0.52rem;
  }
  .scroll-hint .chev {
    height: 16px;
  }

  /* SCROLLYTELLING SCENES 1-19 */
  .scene {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0 clamp(1.2rem, 5vw, 4rem);
  }
  .panel {
    max-width: min(420px, 44vw);
  }
  .glass {
    padding: 1.25rem 1.45rem;
  }
  h2 {
    font-size: clamp(1.2rem, 2.2vw, 1.75rem);
    margin-bottom: 0.55rem;
  }
  .panel p {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  /* 3D STUDIO */
  .dock-left {
    width: 250px;
    max-height: calc(100dvh - 85px);
    padding: 0.5rem 0.6rem;
  }
  .dock-head {
    font-size: 0.56rem;
    padding: 0.5rem 0.35rem;
  }
  .dock-bottom {
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100vw - 2rem);
    bottom: 0.65rem;
    padding: 0.35rem 0.55rem;
    gap: 0.28rem;
  }
  .dock-bottom button {
    padding: 0.4rem 0.55rem;
    font-size: 0.52rem;
    gap: 4px;
  }
  .dock-bottom button span {
    font-size: 0.68rem;
  }
  .info-panel {
    width: 275px;
    max-height: calc(100dvh - 85px);
    overflow-y: auto;
    right: 1rem;
  }
  .page-section {
    padding: 4.5rem clamp(1.5rem, 5vw, 5rem) 3rem;
  }
  .section-head {
    margin-bottom: 2rem;
  }
  .studio-top {
    height: 48px;
    padding: 0 1.2rem;
  }
  .studio-title {
    font-size: 0.8rem;
    gap: 0.45rem;
  }
  .studio-hint {
    font-size: 0.54rem;
    max-width: 440px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Very compact laptop screens (1366x768 with display scaling or browser toolbars) */
@media (max-height: 720px) {
  #s01 .panel {
    padding: 1.4rem 1.8rem;
    border-radius: 20px;
  }
  .scene[data-scene="0"] {
    padding: calc(48px + 0.3rem) 1rem 0.5rem;
  }
  .scene-meta {
    margin-bottom: 0.25rem;
    font-size: 0.5rem;
  }
  .kicker {
    margin-bottom: 0.2rem;
    font-size: 0.52rem;
  }
  .hero-logo {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
  }
  .hero-tag {
    margin-top: 0.3rem;
    font-size: 0.62rem;
  }
  .process-line {
    margin-top: 0.5rem;
    font-size: 0.5rem;
    gap: 0.35rem;
  }
  .hero-quick-actions {
    margin-top: 0.65rem;
    gap: 0.5rem;
  }
  .hero-quick-actions button,
  .hero-quick-actions a {
    padding: 0.45rem 0.95rem;
    font-size: 0.56rem;
  }
  .scroll-hint {
    margin-top: 0.55rem;
    font-size: 0.48rem;
  }
  .scroll-hint .chev {
    height: 12px;
  }
  
  .dock-left {
    max-height: calc(100dvh - 70px);
    width: 240px;
    padding: 0.4rem 0.5rem;
  }
  .dock-body {
    padding: 0 0.2rem 0.5rem;
  }
  .btn-row button {
    padding: 0.38rem 0.5rem;
    font-size: 0.5rem;
  }
}

@media (max-height: 600px) {
  #s01 .panel {
    padding: 1rem 1.2rem;
    border-radius: 16px;
  }
  .scene[data-scene="0"] {
    padding: calc(44px + 0.2rem) 0.8rem 0.35rem;
  }
  .hero-logo {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
  }
  .process-line {
    display: none;
  }
  .scroll-hint {
    margin-top: 0.4rem;
  }
}

@media (max-width: 1280px) {
  .st-label, .mt-label {
    display: none;
  }
  .sound-toggle, .motion-toggle {
    padding: 0.45rem 0.65rem;
  }
  .btn-studio {
    padding: 0.55rem 0.95rem;
    font-size: 0.62rem;
  }
  .nav-links {
    gap: 1.1rem;
  }
  .nav-links a {
    font-size: 0.64rem;
  }
}

@media (max-width: 1400px) and (min-width: 1101px) {
  .dock-left {
    width: 250px;
  }
  .dock-bottom {
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100vw - 2rem);
  }
  .studio-top {
    padding: 0 1.4rem;
    height: 50px;
  }
  .studio-title {
    font-size: 0.84rem;
  }
  .studio-hint {
    font-size: 0.56rem;
    max-width: 420px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ============ RESPONSIVE BREAKPOINTS (TABLET & MOBILE) ============ */
@media (max-width: 1100px) {
  .nav {
    padding: 0 1.2rem;
    height: 52px;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(6, 8, 12, 0.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.2rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s, visibility 0.4s;
    z-index: 90;
  }
  
  .nav-links.open {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  
  .nav-links a {
    font-size: 1.1rem;
    letter-spacing: 0.24em;
  }

  .sound-toggle, .motion-toggle {
    padding: 0.45rem 0.65rem;
  }

  .st-label, .mt-label {
    display: none;
  }
  
  .burger {
    display: flex;
    z-index: 95;
  }
  
  .nav.menu-open .burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.menu-open .burger i:nth-child(2) { opacity: 0; }
  .nav.menu-open .burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  
  .btn-studio {
    display: none;
  }
  
  .rail {
    right: 0.8rem;
  }
  
  .rail-name {
    display: none;
  }
  
  .scene {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0 1.2rem;
  }
  
  .glass {
    padding: 1.5rem 1.4rem;
  }

  /* 3D Studio on tablet */
  .studio-dock-toggle {
    display: inline-flex;
  }
  
  .studio-hint {
    display: none;
  }
  
  .dock-left {
    left: 1rem;
    right: auto;
    top: auto;
    bottom: 5.2rem;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.3s, visibility 0.3s;
    width: min(320px, calc(100vw - 2rem));
    max-height: min(480px, calc(100dvh - 110px));
    z-index: 25;
  }
  
  .dock-left.mobile-open {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  
  .dock-bottom {
    left: 1rem;
    right: 1rem;
    transform: none;
    max-width: none;
    bottom: 0.8rem;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    z-index: 20;
  }
  
  .dock-bottom button {
    flex-shrink: 0;
  }
  
  .info-panel {
    left: 1rem;
    right: 1rem;
    width: auto;
    top: auto;
    bottom: 5.2rem;
    transform: translateY(115%);
    max-height: 50dvh;
    overflow-y: auto;
    z-index: 30;
  }
  
  .info-panel.open {
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 0 1rem;
    height: 50px;
  }
  
  .nav-logo {
    font-size: 1rem;
    letter-spacing: 0.24em;
  }
  
  .scene[data-scene="0"] {
    padding: calc(50px + 0.4rem) 1rem 0.6rem;
  }
  
  .hero-logo {
    font-size: clamp(2.4rem, 11vw, 4.2rem);
    letter-spacing: 0.12em;
    margin-left: 0.12em;
  }
  
  .hero-tag {
    font-size: clamp(0.58rem, 2.8vw, 0.72rem);
    letter-spacing: 0.24em;
  }
  
  .process-line {
    font-size: 0.54rem;
    gap: 0.3rem 0.5rem;
  }
  
  .hero-quick-actions {
    width: 100%;
    max-width: 340px;
    flex-direction: column;
    gap: 0.55rem;
  }
  
  .hero-quick-actions button,
  .hero-quick-actions a {
    width: 100%;
    text-align: center;
    padding: 0.68rem 1rem;
    font-size: 0.64rem;
  }
  
  .panel {
    max-width: 100%;
    width: 100%;
  }
  
  .panel.left, .panel.right, .panel.center {
    margin: 0 auto;
  }
  
  .glass {
    padding: 1.4rem 1.2rem;
  }
  
  .studio-top {
    height: 46px;
    padding: 0 0.8rem;
  }
  
  .studio-title {
    font-size: 0.72rem;
  }
  
  .studio-live-tag {
    display: none;
  }
  
  .service-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }
  
  .project-card .pc-visual {
    height: 200px;
  }
  
  .dash-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .about-cols {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  
  .contact-form {
    padding: 1.6rem 1.2rem;
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

@media (max-width: 480px) {
  .dash-grid {
    grid-template-columns: 1fr;
  }
  .dash-cell {
    padding: 1rem 1.2rem;
  }
  .hero-logo {
    font-size: clamp(2.1rem, 12vw, 3.4rem);
  }
  .hero-tag {
    font-size: 0.58rem;
    letter-spacing: 0.18em;
  }
  .dock-left {
    width: calc(100vw - 1.2rem);
    left: 0.6rem;
    right: 0.6rem;
  }
  .dock-bottom {
    left: 0.6rem;
    right: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.15s !important;
  }
}

body.in-studio #story,
body.in-studio .rail,
body.in-studio .page-section,
body.in-studio .footer {
  visibility: hidden;
}

body.in-studio .nav {
  visibility: hidden;
}

#rail {
  opacity: 1;
}
