:root {
  --bg: #070a08;
  --bg-elevated: #0e1410;
  --surface: rgba(18, 25, 20, 0.72);
  --surface-solid: #141b16;
  --surface-hover: rgba(25, 35, 27, 0.85);
  --text: #f3f6f0;
  --muted: #98a69a;
  --green: #c3e8a6;
  --green-bright: #dbfcc0;
  --green-dim: rgba(195, 232, 166, 0.15);
  --amber: #ffd166;
  --cyan: #80ffdb;
  --coral: #ff7b63;
  --line: rgba(195, 232, 166, 0.16);
  --line-strong: rgba(195, 232, 166, 0.34);
  --shadow-lg: 0 28px 70px -15px rgba(0, 0, 0, 0.78);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Manrope', 'Syne', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  color-scheme: dark;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

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

button {
  font: inherit;
  cursor: pointer;
  color: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.svg-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

h1, h2, h3, p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

/* ==========================================================================
   SCROLL REVEAL & KEYFRAME ANIMATIONS
   ========================================================================== */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatChipTop {
  0%, 100% { transform: translateY(0) rotate(5deg); }
  50% { transform: translateY(-7px) rotate(3deg); }
}

@keyframes floatChipBottom {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(6px) rotate(-3deg); }
}

@keyframes orbitSpinCW {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes orbitSpinCCW {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg); }
}

@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes bobArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(195, 232, 166, 0.75); }
  70% { box-shadow: 0 0 0 8px rgba(195, 232, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(195, 232, 166, 0); }
}

/* ==========================================================================
   FULL-VIEWPORT 3D WEBGL STAGE & AMBIENT BACKDROP
   ========================================================================== */
.webgl-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(circle at 65% 28%, #162619 0%, #09100b 58%, #050806 100%);
}

#webgl-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

.ambient-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 50% 50%, transparent 52%, rgba(5, 8, 6, 0.55) 100%);
}

.blueprint-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(195, 232, 166, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(195, 232, 166, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 45%, black 25%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, black 25%, transparent 85%);
}

/* Top Scroll Progress Bar */
.scroll-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(195, 232, 166, 0.08);
  z-index: 100;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #80ffdb, var(--green), var(--amber));
  box-shadow: 0 0 14px rgba(195, 232, 166, 0.8);
  transform-origin: left center;
}

/* ==========================================================================
   FLOATING 3D TELEMETRY RAIL
   ========================================================================== */
.telemetry-rail {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(11, 16, 13, 0.8);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}

.telemetry-header {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  letter-spacing: 1.2px;
  color: var(--green);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(195, 232, 166, 0.14);
}

.telemetry-chapters {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chapter-node {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  color: #859286;
  border: 1px solid transparent;
}

.chapter-node:hover {
  color: var(--text);
  background: rgba(195, 232, 166, 0.08);
}

.chapter-node.active {
  color: var(--green);
  background: rgba(195, 232, 166, 0.15);
  border-color: rgba(195, 232, 166, 0.32);
}

.chapter-index {
  font-weight: 600;
  opacity: 0.8;
}

.chapter-label {
  font-size: 9px;
  letter-spacing: 0.8px;
}

.telemetry-readout {
  padding-top: 8px;
  border-top: 1px solid rgba(195, 232, 166, 0.14);
  display: grid;
  gap: 4px;
  font-size: 9px;
}

.telemetry-readout > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.telemetry-readout strong {
  color: var(--green);
  font-weight: 600;
}

/* ==========================================================================
   LAYOUT & HEADER
   ========================================================================== */
.wrap {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 11, 9, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.6px;
}

.brand-dot {
  color: var(--green);
}

.brand-tag {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(195, 232, 166, 0.14);
  border: 1px solid rgba(195, 232, 166, 0.35);
  color: var(--green);
}

.brand-mark {
  display: grid;
  grid-template-columns: 8px 8px;
  gap: 3px;
  margin-right: 12px;
  transform: rotate(-8deg);
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: rotate(12deg) scale(1.1);
}

.brand-mark i {
  height: 8px;
  background: var(--green);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(195, 232, 166, 0.45);
}

.brand-mark i:last-child {
  opacity: 0.45;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
}

.nav-link {
  position: relative;
  color: #a9b4aa;
  font-weight: 500;
  padding: 6px 2px;
}

.nav-link:hover,
.nav-link.nav-active {
  color: var(--text);
}

.nav-link.nav-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
}

.engine-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(195, 232, 166, 0.1);
  border: 1px solid rgba(195, 232, 166, 0.28);
  color: var(--green);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.engine-toggle svg {
  width: 15px;
  height: 15px;
}

.engine-toggle:hover {
  background: rgba(195, 232, 166, 0.2);
  transform: translateY(-1px);
}

.nav-explore {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  background: rgba(195, 232, 166, 0.12);
  border: 1px solid rgba(195, 232, 166, 0.38);
  border-radius: 9px;
  padding: 10px 16px;
  color: var(--green);
  font-weight: 600;
}

.nav-explore svg {
  width: 16px;
  height: 16px;
}

.nav-explore:hover {
  background: var(--green);
  color: #131c12;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(195, 232, 166, 0.3);
}

/* ==========================================================================
   STATUS DOTS & TYPOGRAPHY ACCENTS
   ========================================================================== */
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  background: var(--green);
  border-radius: 50%;
}

.status-dot.pulse {
  box-shadow: 0 0 0 0 rgba(195, 232, 166, 0.7);
  animation: pulseDot 2.4s infinite;
}

.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--green);
  letter-spacing: -1px;
  text-shadow: 0 0 35px rgba(195, 232, 166, 0.35);
}

.section-number,
.art-label,
.art-bottom-label,
.in-progress {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 500;
  text-transform: uppercase;
}

/* ==========================================================================
   HERO SECTION & HERO 3D HOLODECK STAGE
   ========================================================================== */
.hero {
  position: relative;
  padding: 64px 0 0;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 36px;
  align-items: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(20, 29, 22, 0.82);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  color: #d0dccd;
}

.eyebrow-divider {
  opacity: 0.4;
}

.eyebrow-sub {
  color: var(--green);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(46px, 6.2vw, 82px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 24px 0 22px;
}

.hero-lead {
  font-size: clamp(15px, 1.35vw, 17px);
  color: var(--muted);
  line-height: 1.75;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--green);
  color: #142012;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(195, 232, 166, 0.25);
}

.hero-cta-primary:hover {
  background: var(--green-bright);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(195, 232, 166, 0.4);
}

.cta-circle {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(20, 32, 18, 0.16);
  font-size: 12px;
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(20, 29, 22, 0.8);
  border: 1px solid var(--line-strong);
  color: #dce6d9;
  font-size: 12.5px;
  font-weight: 500;
}

.hero-cta-secondary svg {
  width: 15px;
  height: 15px;
  color: var(--green);
}

.hero-cta-secondary:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
}

/* 3D Stage Selector Bar in Hero */
.hero-stage-bar {
  margin-top: 30px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(14, 21, 16, 0.82);
  border: 1px solid var(--line-strong);
}

.stage-bar-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--green);
}

.stage-bar-label svg {
  width: 14px;
  height: 14px;
}

.stage-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stage-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(195, 232, 166, 0.14);
  color: #a8b5a9;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 6px 11px;
  border-radius: 8px;
}

.stage-pill:hover {
  color: var(--text);
  background: rgba(195, 232, 166, 0.1);
}

.stage-pill.active {
  background: var(--green);
  border-color: var(--green);
  color: #132011;
  font-weight: 600;
}

/* Hero Side Interactive 3D Holodeck Card */
.hero-side {
  justify-self: end;
  width: 100%;
  max-width: 440px;
  perspective: 1000px;
}

.hero-3d-holo {
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(26, 38, 28, 0.84), rgba(11, 17, 13, 0.92));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(195, 232, 166, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, border-color 0.25s ease;
}

.hero-3d-holo:hover {
  border-color: rgba(195, 232, 166, 0.55);
}

.holo-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--green);
  margin-bottom: 10px;
}

.hero-3d-stage-wrap {
  position: relative;
  width: 100%;
  height: 250px;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 50%, rgba(74, 102, 58, 0.42) 0%, rgba(15, 22, 16, 0.88) 72%);
  border: 1px solid rgba(195, 232, 166, 0.22);
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  display: grid;
  place-items: center;
}

.hero-3d-stage-wrap:active {
  cursor: grabbing;
}

#hero-3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
}

.hero-3d-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.h-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1px dashed rgba(195, 232, 166, 0.22);
}

.h-ring-1 {
  width: 190px;
  height: 190px;
  animation: orbitSpinCW 22s linear infinite;
}

.h-ring-2 {
  width: 235px;
  height: 235px;
  border-style: solid;
  border-color: rgba(128, 255, 219, 0.14);
  animation: orbitSpinCCW 30s linear infinite;
}

.hero-note {
  margin-top: 14px;
}

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

.asterisk {
  display: inline-block;
  color: var(--green);
  font-size: 46px;
  line-height: 1;
  font-family: var(--font-serif);
  animation: slowSpin 16s linear infinite;
  flex-shrink: 0;
}

.hero-note p {
  font-size: 13px;
  line-height: 1.55;
  color: #cbd5c9;
}

.note-line {
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(195, 232, 166, 0.18);
  margin: 12px 0;
}

.holo-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.holo-stats small {
  display: block;
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--muted);
  letter-spacing: 1px;
}

.holo-stats strong {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--green);
}

.holo-pulse-btn {
  margin-top: 2px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(195, 232, 166, 0.14);
  border: 1px solid rgba(195, 232, 166, 0.35);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 10px;
}

.holo-pulse-btn:hover {
  background: var(--green);
  color: #132011;
}

.hero-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0 22px;
  color: #879485;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.6px;
}

.down-arrow {
  display: inline-block;
  margin-left: 8px;
  color: var(--green);
  animation: bobArrow 2s ease-in-out infinite;
}

/* ==========================================================================
   PROJECTS COLLECTION SECTION
   ========================================================================== */
.projects {
  padding-top: 64px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-number {
  color: var(--green);
  font-size: 10px;
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.2vw, 38px);
  letter-spacing: -0.03em;
  margin-top: 10px;
}

.count {
  display: inline-block;
  color: var(--green);
  font-family: var(--font-mono);
  letter-spacing: 0;
  font-size: 12px;
  vertical-align: middle;
  padding: 4px 9px;
  background: rgba(195, 232, 166, 0.12);
  border: 1px solid rgba(195, 232, 166, 0.32);
  border-radius: 6px;
  margin-left: 14px;
}

.section-heading > p {
  color: var(--muted);
  font-size: 13.5px;
  padding-bottom: 4px;
}

/* Filter Bar */
.filters-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin: 30px 0 28px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  background: rgba(20, 27, 22, 0.72);
  color: #a3afa2;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
}

.filter.active {
  background: rgba(195, 232, 166, 0.18);
  color: var(--green);
  border-color: rgba(195, 232, 166, 0.48);
  box-shadow: 0 4px 18px rgba(195, 232, 166, 0.14);
}

.filter span {
  font-family: var(--font-mono);
  padding-left: 8px;
  opacity: 0.8;
  font-size: 11px;
}

.filter:hover {
  color: var(--green);
  border-color: rgba(195, 232, 166, 0.35);
}

.filter-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #93a194;
}

/* Project Cards */
.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.project-card:hover {
  border-color: rgba(195, 232, 166, 0.58);
  box-shadow: 0 32px 80px -12px rgba(0, 0, 0, 0.85), 0 0 45px rgba(195, 232, 166, 0.1);
}

.card-gap {
  margin-top: 52px;
}

.project-info {
  padding: 36px 38px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.featured {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 1.4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(195, 232, 166, 0.12);
  border: 1px solid rgba(195, 232, 166, 0.28);
}

.tiny-star {
  font-size: 11px;
}

.available {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #c2cfc0;
  display: flex;
  gap: 7px;
  align-items: center;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}

.mini-icon {
  height: 52px;
  width: 52px;
  background: linear-gradient(145deg, #314029, #1d261a);
  border: 1px solid #5d7049;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.mini-icon svg {
  width: 42px;
  height: 42px;
  stroke: none;
}

#balu-spot-card .mini-icon svg,
.mini-icon.music-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--green);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--green);
}

.project-info h3 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.2vw, 42px);
  letter-spacing: -0.035em;
  font-weight: 700;
  line-height: 1.05;
}

.project-subtitle {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 1.3px;
  color: #8f9e8e;
  margin-top: 4px;
}

.project-description {
  color: #b5c0b3;
  font-size: 14px;
  line-height: 1.75;
  margin-top: 16px;
}

.tags {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.tags > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #d0dbd0;
  background: rgba(34, 45, 33, 0.85);
  border: 1px solid rgba(195, 232, 166, 0.24);
  padding: 5px 10px;
  border-radius: 6px;
}

.tags svg {
  width: 12px;
  height: 12px;
  color: var(--green);
}

/* Spec Grid (Popcorn 2) */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(11, 16, 13, 0.72);
  border: 1px solid rgba(195, 232, 166, 0.18);
}

.spec-cell small {
  display: block;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 1px;
  color: #849284;
}

.spec-cell strong {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text);
}

/* Interactive Mini Sound Lab Box (BaluSpot) */
.sound-lab-box {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(11, 16, 13, 0.76);
  border: 1px solid rgba(195, 232, 166, 0.24);
}

.sound-lab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--green);
  margin-bottom: 9px;
}

.sound-lab-header span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sound-lab-header svg {
  width: 12px;
  height: 12px;
}

.sound-lab-status {
  color: #9eac9d;
  font-size: 9px;
}

.snippet-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.snippet-btn {
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(195, 232, 166, 0.1);
  border: 1px solid rgba(195, 232, 166, 0.24);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #d8e5d8;
}

.snippet-btn:hover,
.snippet-btn.playing {
  background: var(--green);
  color: #131f12;
  border-color: var(--green);
  font-weight: 600;
}

/* Download & Action Row */
.download-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--green);
  color: #182414;
  border-radius: 9px;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(195, 232, 166, 0.24);
}

.download-button svg {
  width: 16px;
  height: 16px;
}

.download-button .btn-arrow {
  margin-left: 6px;
}

.download-button:hover {
  background: var(--green-bright);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(195, 232, 166, 0.38);
}

.download-button:active {
  transform: translateY(0);
}

.details-button {
  padding: 10px 4px;
  border: 0;
  background: none;
  color: #ccd6c9;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.details-button span {
  margin-left: 6px;
  color: var(--green);
}

.details-button:hover {
  color: var(--green);
}

.download-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #95a292;
  margin-top: 14px;
}

.download-note svg {
  width: 13px;
  height: 13px;
  color: var(--green);
}

.download-note > span {
  border-left: 1px solid #485443;
  padding-left: 9px;
  margin-left: 4px;
  color: #c2cec0;
}

.download-status {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  line-height: 1.5;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(195, 232, 166, 0.12);
  border: 1px solid rgba(195, 232, 166, 0.32);
}

.download-status:empty {
  display: none;
}

/* ==========================================================================
   PROJECT ART & INTERACTIVE 3D CARD VIEWPORTS
   ========================================================================== */
.project-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 55% 48%, rgba(82, 102, 60, 0.85) 0%, rgba(36, 48, 29, 0.9) 52%, rgba(18, 25, 16, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 500px;
  border-left: 1px solid rgba(195, 232, 166, 0.18);
  user-select: none;
}

.sg-art {
  background: radial-gradient(ellipse at 55% 48%, rgba(64, 90, 52, 0.85) 0%, rgba(29, 42, 24, 0.9) 52%, rgba(15, 22, 14, 0.95) 100%);
}

.art-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(199, 213, 176, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199, 213, 176, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  z-index: -1;
}

.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(195, 232, 166, 0.22);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

.orbit-one {
  width: 300px;
  height: 300px;
  animation: orbitSpinCW 28s linear infinite;
}

.orbit-two {
  width: 410px;
  height: 410px;
  border-style: dashed;
  animation: orbitSpinCCW 38s linear infinite;
}

.orbit-three {
  width: 530px;
  height: 530px;
  transform: translate(-50%, -50%) rotate(-30deg);
}

.orbit-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.dot-one { left: 16%; top: 28%; }
.dot-two { bottom: 18%; right: 18%; width: 5px; height: 5px; }

/* Card 3D Canvas Viewport */
.card-3d-viewport {
  position: relative;
  width: 260px;
  height: 260px;
  display: grid;
  place-items: center;
  cursor: grab;
  touch-action: pan-y;
}

.card-3d-viewport:active {
  cursor: grabbing;
}

.card-3d-viewport canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
}

.card-3d-viewport.card-3d-ready .app-tile {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85);
}

.app-tile {
  height: 150px;
  width: 150px;
  border-radius: 35px;
  background: linear-gradient(145deg, #617451, #3e4c32);
  border: 1px solid #91a078;
  box-shadow: 0 23px 33px #15201355, inset 0 2px 3px #c0ccad30;
  transform: rotate(-11deg);
  display: grid;
  place-items: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.vinyl-tile {
  border-radius: 50%;
  background: linear-gradient(145deg, #3d4a35, #2a3325);
  border: 1px solid #5c6d46;
}

.app-tile svg {
  height: 126px;
  width: 126px;
  stroke: none;
}

.vinyl-tile svg {
  height: 140px;
  width: 140px;
}

.art-title {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -1.2px;
  font-weight: 700;
  margin-top: 4px;
  color: #f2f7ec;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.art-title > span {
  color: var(--green);
  font-weight: 400;
}

.art-controls {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  z-index: 3;
}

.art-action-btn {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(14, 21, 15, 0.82);
  border: 1px solid rgba(195, 232, 166, 0.38);
  color: #e2eed8;
  font-family: var(--font-mono);
  font-size: 10.5px;
  backdrop-filter: blur(6px);
}

.art-action-btn:hover {
  background: var(--green);
  color: #142012;
  border-color: var(--green);
  transform: translateY(-2px);
}

.art-label {
  position: absolute;
  top: 22px;
  color: #cad8b7;
  font-size: 8px;
  letter-spacing: 1.6px;
  text-align: center;
  padding: 0 16px;
}

.art-bottom-label {
  position: absolute;
  bottom: 20px;
  color: #b0c29b;
  font-size: 8px;
  letter-spacing: 1.6px;
}

.floating-chip {
  position: absolute;
  border: 1px solid rgba(195, 232, 166, 0.34);
  background: rgba(30, 42, 27, 0.9);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.42);
  padding: 9px 13px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: #e2ecd7;
  z-index: 3;
}

.chip-top {
  top: 56px;
  right: 24px;
  animation: floatChipTop 5s ease-in-out infinite;
}

.chip-bottom {
  bottom: 56px;
  left: 24px;
  animation: floatChipBottom 5.5s ease-in-out infinite;
}

.chip-bottom svg {
  height: 13px;
  width: 13px;
  color: var(--green);
}

.art-spark {
  position: absolute;
  font-size: 28px;
  color: #d6e4bc;
  right: 44px;
  bottom: 72px;
  pointer-events: none;
}

/* ==========================================================================
   EMPTY STATE & NEXT PROJECT BANNER
   ========================================================================== */
.empty-state {
  text-align: center;
  padding: 66px 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.empty-state > span {
  color: var(--green);
  font-size: 32px;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-top: 14px;
}

.empty-state p {
  color: var(--muted);
  margin: 12px 0 24px;
}

.empty-state button {
  background: var(--green);
  color: #162213;
  font-weight: 700;
  border: 0;
  border-radius: 8px;
  padding: 12px 22px;
}

.next-project {
  border: 1px dashed rgba(195, 232, 166, 0.34);
  border-radius: 14px;
  padding: 24px 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
  background: rgba(16, 22, 17, 0.78);
}

.next-icon {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(195, 232, 166, 0.32);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 22px;
  flex-shrink: 0;
}

.next-project h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}

.next-project p {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}

.in-progress {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 9px;
}

/* ==========================================================================
   ABOUT SECTION & FOOTER
   ========================================================================== */
.about {
  padding: 84px 0 76px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about h2 {
  line-height: 1.25;
  font-size: clamp(30px, 3.5vw, 42px);
}

.architecture-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.arch-pill {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(18, 25, 20, 0.8);
  border: 1px solid var(--line);
}

.arch-pill strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--green);
  letter-spacing: 1.2px;
  margin-bottom: 6px;
}

.arch-pill span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.about-copy {
  padding-top: 18px;
}

.about-copy p {
  font-size: 14.5px;
  color: #b0bcaf;
  line-height: 1.85;
  margin-bottom: 16px;
}

.signature {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: #dce7d8;
  font-family: var(--font-mono);
  font-size: 11px;
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(195, 232, 166, 0.1);
  border: 1px solid rgba(195, 232, 166, 0.28);
}

.sig-arrow {
  color: var(--green);
}

.site-footer {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 98px;
  gap: 20px;
}

.site-footer .brand {
  font-size: 16px;
}

.site-footer p,
.back-top {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #939f8d;
}

.back-top:hover {
  color: var(--green);
}

/* ==========================================================================
   MODAL DIALOGS
   ========================================================================== */
dialog {
  max-width: 490px;
  width: calc(100% - 32px);
  padding: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #131a15;
  color: var(--text);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.85);
}

dialog::backdrop {
  background: rgba(6, 10, 8, 0.82);
  backdrop-filter: blur(6px);
}

dialog h2 {
  font-size: 28px;
  margin-top: 14px;
}

dialog ol {
  padding-left: 20px;
  color: #c2ccc0;
  font-size: 13.5px;
  line-height: 1.8;
  margin: 18px 0;
}

dialog li {
  margin-bottom: 10px;
}

dialog > p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 24px;
}

.close-dialog {
  position: absolute;
  top: 14px;
  right: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.close-dialog:hover {
  color: var(--text);
  border-color: var(--green);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1360px) {
  .telemetry-rail {
    display: none;
  }
}

@media (max-width: 980px) {
  .wrap {
    padding-left: 28px;
    padding-right: 28px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 44px;
  }
  .hero-side {
    justify-self: stretch;
    max-width: 100%;
  }
  .project-card {
    grid-template-columns: 1fr;
  }
  .project-art {
    grid-row: 1;
    min-height: 410px;
    border-left: 0;
    border-bottom: 1px solid rgba(195, 232, 166, 0.16);
  }
  .about {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 60px 0;
  }
}

@media (max-width: 680px) {
  .wrap {
    padding-left: 18px;
    padding-right: 18px;
  }
  .header-inner {
    height: 72px;
  }
  .brand {
    font-size: 17px;
  }
  .brand-tag,
  .nav-explore {
    display: none;
  }
  .main-nav {
    gap: 14px;
    font-size: 12px;
  }
  .engine-toggle {
    padding: 6px 10px;
    font-size: 10px;
  }
  .hero {
    padding-top: 28px;
  }
  .eyebrow-sub,
  .eyebrow-divider,
  .desktop-break {
    display: none;
  }
  .hero-actions {
    gap: 10px;
  }
  .hero-cta-primary,
  .hero-cta-secondary {
    width: 100%;
    justify-content: center;
  }
  .hero-stage-bar {
    width: 100%;
  }
  .stage-pills {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .hero-3d-stage-wrap {
    height: 220px;
  }
  .hero-bottom {
    font-size: 8.5px;
    padding-top: 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .project-info {
    padding: 24px 20px;
  }
  .spec-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .spec-cell {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .snippet-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .download-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .download-button {
    width: 100%;
  }
  .details-button {
    text-align: center;
  }
  .project-art {
    min-height: 360px;
  }
  .card-3d-viewport {
    width: 220px;
    height: 220px;
  }
  .chip-top {
    top: 46px;
    right: 14px;
  }
  .chip-bottom {
    bottom: 50px;
    left: 14px;
  }
  .next-project {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
  .in-progress {
    margin-left: 0;
  }
  .architecture-pills {
    grid-template-columns: 1fr;
  }
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 18px;
  }
}

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