/* ============================================================
   CALIBR — DARK INDUSTRIAL STYLESHEET
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300;400;500;700&family=Bebas+Neue&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --black: #0a0a0a;
  --bg: #121212;
  --bg2: #181818;
  --bg3: #1e1e1e;
  --border: #2a2a2a;
  --blue: #007BFF;
  --blue-dim: rgba(0, 123, 255, 0.15);
  --blue-glow: rgba(0, 123, 255, 0.35);
  --white: #f0f0f0;
  --grey: #888;
  --grey2: #555;
  --font-display: 'Bebas Neue', sans-serif;
  --font-mono: 'Roboto Mono', monospace;
  --font-body: 'DM Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: var(--blue);
  border-radius: 2px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

#navbar.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 10, 10, 0.97);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 4px;
  color: var(--white);
}

.nav-logo .dot {
  color: var(--blue);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a.nav-cta {
  color: var(--blue);
  border: 1px solid var(--blue);
  padding: 6px 16px;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a.nav-cta:hover {
  background: var(--blue);
  color: #fff;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 48px 60px;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/scale.png') center center / contain no-repeat;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 123, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 123, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  animation: scanDown 6s linear infinite;
  opacity: 0.4;
  pointer-events: none;
}

@keyframes scanDown {
  0% {
    top: 0;
  }

  100% {
    top: 100%;
  }
}

.hero-content {
  text-align: center;
  z-index: 1;
  position: relative;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(100px, 18vw, 220px);
  line-height: 0.9;
  letter-spacing: 8px;
  color: var(--white);
  margin-bottom: 24px;
  text-shadow: 0 0 80px rgba(0, 123, 255, 0.2);
}

.hero-dot {
  color: var(--blue);
}

.typewriter-wrap {
  font-family: var(--font-mono);
  font-size: clamp(14px, 2.5vw, 22px);
  color: var(--blue);
  letter-spacing: 2px;
  margin-bottom: 20px;
  min-height: 32px;
}

.cursor-blink {
  animation: blink 0.8s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--grey);
  margin-bottom: 40px;
  letter-spacing: 0.5px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 32px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  background: #0066cc;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 123, 255, 0.4);
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 13px 32px;
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.hero-metric-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px 40px;
  margin-top: 60px;
  flex-wrap: wrap;
  justify-content: center;
  z-index: 1;
  position: relative;
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 40px;
}

.metric-val {
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--white);
  line-height: 1;
}

.metric-val .unit {
  font-size: 20px;
  color: var(--blue);
  margin-left: 2px;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--grey);
  text-transform: uppercase;
  margin-top: 4px;
}

.metric-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--grey2);
  z-index: 1;
  animation: fadeInUp 2s 2s both;
}

.scroll-arrow {
  width: 1px;
  height: 30px;
  background: linear-gradient(var(--grey2), transparent);
  animation: arrowPulse 1.5s infinite;
}

@keyframes arrowPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(1);
  }

  50% {
    opacity: 1;
    transform: scaleY(1.2);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ============================================================
   SECTIONS — SHARED
   ============================================================ */
section {
  padding: 80px 48px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: 3px;
  color: var(--white);
  margin-bottom: 16px;
}

.section-sub {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--grey);
  max-width: 480px;
  margin: 0 auto;
}

/* ============================================================
   FEATURES GRID
   ============================================================ */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  flex: 0 1 calc(33.333% - 16px);
  min-width: 320px;
  perspective: 1000px;
  height: 250px;
  position: relative;
  overflow: hidden;
}

.card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  opacity: 0.15;
  z-index: 0;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.feature-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.3s;
}

.feature-card:hover .card-front,
.feature-card:hover .card-back {
  border-color: var(--blue);
}

.card-back {
  transform: rotateY(180deg);
  background: var(--bg3);
}

.card-icon svg {
  width: 48px;
  height: 48px;
}

.card-front h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--white);
}

.card-back h3 {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--blue);
  margin-bottom: 6px;
}

.card-short {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.4;
}

.card-back p {
  font-size: 12px;
  color: var(--grey);
  line-height: 1.5;
}

.card-back ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.card-back ul li {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue);
}

.card-back ul li::before {
  content: '→ ';
}

.hover-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--grey2);
  letter-spacing: 1px;
  margin-top: auto;
}

.feature-card--highlight .card-front {
  border-color: rgba(0, 123, 255, 0.3);
  background: rgba(0, 123, 255, 0.05);
}

/* ============================================================
   TIMELINE
   ============================================================ */
#timeline {
  background: var(--black);
  max-width: 100%;
  padding: 120px 48px;
}

#timeline .section-header {
  max-width: 1400px;
  margin: 0 auto 80px;
}

/* ===== CONTAINER ===== */
.timeline-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  overflow-x: auto;
  scroll-behavior: smooth;
}

/* ===== HORIZONTAL LINE ===== */
.timeline-track {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--border);
}

.timeline-line {
  position: absolute;
  height: 2px;
  width: 0;
  background: var(--blue);
  box-shadow: 0 0 12px var(--blue-glow);
  transition: width 0.2s;
}

/* ===== NODES ROW ===== */
.timeline-nodes {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 20px;
  padding: 60px 0;
  width: 100%;
  align-items: stretch;
}

/* ===== EACH NODE ===== */
.tnode {
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  flex: 1;
  min-width: 0;
  position: relative;
  text-align: center;
  scroll-snap-align: center;
}

.tnode[data-side="left"] .tnode-content {
  grid-row: 1;
  align-self: end;
  padding-bottom: 20px;
}

.tnode[data-side="left"] .tnode-dot {
  grid-row: 2;
}

.tnode[data-side="right"] .tnode-content {
  grid-row: 3;
  align-self: start;
  padding-top: 20px;
}

.tnode[data-side="right"] .tnode-dot {
  grid-row: 2;
}

/* ===== IMAGE ===== */
.phase-image {
  width: 280px;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
  position: static;
  transform: none;
  opacity: 1;
}

/* ===== DOT ===== */
.tnode-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--border);
  margin: 0;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
  z-index: 2;
}

.tnode-dot--final {
  width: 18px;
  height: 18px;
}

.tnode.visible .tnode-dot {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 16px var(--blue-glow);
}

/* ===== CONTENT ===== */
.tnode-content {
  max-width: 100%;
}

.tnode-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.tnode-content h3 {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 8px;
}

.tnode-content p {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.6;
  margin-bottom: 10px;
}

.tnode-tech {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue);
  letter-spacing: 0.5px;
  opacity: 0.7;
}

/* ===== OPTIONAL SNAP SCROLL ===== */
.timeline-container {
  scroll-snap-type: x mandatory;
}

/* ============================================================
   SHOWCASE / GALLERY GRID
   ============================================================ */
#showcase {
  background: var(--bg);
  padding: 80px 48px;
  max-width: 100%;
}

#showcase .section-header {
  max-width: 1400px;
  margin: 0 auto 60px;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-card {
  flex: 0 1 calc(25% - 15px);
  min-width: 240px;
  max-width: 320px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: 0 12px 32px rgba(0, 123, 255, 0.1);
}

.gallery-visual {
  height: 200px;
  background: var(--black);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 0 20px rgba(0, 123, 255, 0.2));
  transition: transform 0.4s;
}

.gallery-card:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-image--angle { transform: translateY(0); }
.gallery-image--linear { transform: translateY(20px); }
.gallery-image--parallel { transform: translateY(-15px); }

.gallery-card:hover .gallery-image--angle { transform: translateY(0) scale(1.05); }
.gallery-card:hover .gallery-image--linear { transform: translateY(20px) scale(1.05); }
.gallery-card:hover .gallery-image--parallel { transform: translateY(-15px) scale(1.05); }

.gallery-info {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gallery-info h3 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 12px;
}

.gallery-info p {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.5;
}

/* --- RULER 3D MODEL (SVG-like CSS) --- */
.ruler-3d {
  position: relative;
  width: 340px;
  height: 200px;
}

.ruler-body {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
}

.ruler-top-face {
  background: #1a2a4a;
  border: 1px solid #2a4a8a;
  border-radius: 6px 6px 0 0;
  height: 60px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
}

.oled-screen {
  background: #000;
  border: 1px solid #007BFF;
  border-radius: 3px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue);
  margin-left: auto;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
  flex-shrink: 0;
}

.ruler-pivot-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #555;
  border: 2px solid #888;
  flex-shrink: 0;
}

.ruler-slider-track {
  flex: 1;
  height: 16px;
  background: #0d1a30;
  border: 1px solid #1a3a6a;
  border-radius: 2px;
  position: relative;
}

.ruler-slider-thumb {
  width: 20px;
  height: 16px;
  background: #007BFF;
  border-radius: 2px;
  position: absolute;
  left: 40%;
  top: 0;
}

.ruler-tick-row {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 10px;
  display: flex;
  justify-content: space-evenly;
  align-items: flex-end;
}

.ruler-tick-row span {
  display: block;
  width: 1px;
  background: rgba(0, 123, 255, 0.5);
  height: 6px;
}

.ruler-side-face {
  height: 16px;
  background: #0d1a30;
  border: 1px solid #1a3a6a;
  border-top: none;
  border-radius: 0 0 4px 4px;
}

.ruler-arm {
  position: absolute;
  bottom: 62px;
  left: 30px;
  width: 180px;
  height: 12px;
  transform-origin: left center;
  transform: rotate(-40deg);
}

.arm-body {
  width: 100%;
  height: 100%;
  background: #1a3a7a;
  border: 1px solid #007BFF;
  border-radius: 4px;
}

/* --- TOP VIEW --- */
.ruler-topview {
  width: 360px;
  text-align: center;
}

.rv-body {
  background: #1a2a4a;
  border: 1px solid #2a4a8a;
  border-radius: 6px;
  height: 70px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 6px 12px;
  margin-bottom: 6px;
}

.rv-oled {
  background: #000;
  border: 1px solid var(--blue);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue);
  padding: 2px 8px;
  position: absolute;
  right: 12px;
  top: 8px;
  box-shadow: 0 0 6px rgba(0, 123, 255, 0.4);
}

.rv-pivot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #555;
  border: 2px solid #888;
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.rv-track {
  height: 14px;
  background: #0d1a30;
  border: 1px solid #1a3a6a;
  border-radius: 2px;
  margin: 0 30px 0 36px;
}

.rv-thumb {
  width: 18px;
  height: 100%;
  background: var(--blue);
  border-radius: 2px;
  margin-left: 35%;
}

.rv-ticks {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
}

.rv-ticks span {
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(0, 123, 255, 0.6);
}

.rv-arm {
  width: 140px;
  height: 10px;
  background: #1a3a7a;
  border: 1px solid var(--blue);
  border-radius: 4px;
  margin: 0 auto;
  transform: rotate(-25deg);
  transform-origin: left center;
}

/* --- SENSOR DIAGRAM --- */
.sensor-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.sd-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--grey);
  letter-spacing: 2px;
  text-align: center;
  margin-top: 4px;
}

.magnet-body {
  width: 60px;
  height: 30px;
  background: linear-gradient(90deg, #cc2200, #ff4422);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}

.magnet-body span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #fff;
  font-weight: bold;
}

.magnet-field {
  position: absolute;
  border: 1px solid rgba(0, 123, 255, 0.25);
  border-radius: 50%;
  animation: fieldPulse 2s infinite;
}

.f1 {
  width: 80px;
  height: 50px;
  top: -10px;
  left: -10px;
  animation-delay: 0s;
}

.f2 {
  width: 100px;
  height: 70px;
  top: -20px;
  left: -20px;
  animation-delay: 0.4s;
}

.f3 {
  width: 120px;
  height: 90px;
  top: -30px;
  left: -30px;
  animation-delay: 0.8s;
}

@keyframes fieldPulse {

  0%,
  100% {
    opacity: 0.2;
  }

  50% {
    opacity: 0.6;
  }
}

.sd-arrow {
  font-size: 18px;
  color: var(--blue);
  opacity: 0.6;
}

.chip-body {
  width: 80px;
  height: 36px;
  background: #1a1a2e;
  border: 1px solid var(--blue);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue);
  box-shadow: 0 0 12px rgba(0, 123, 255, 0.3);
}

.mcu-body {
  width: 100px;
  height: 40px;
  background: #0d2d0d;
  border: 1px solid #00aa44;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #00cc44;
}

.oled-chip-body {
  width: 80px;
  height: 36px;
  background: #000;
  border: 1px solid var(--blue);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue);
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

/* --- COMPASS DEMO --- */
.compass-demo {
  position: relative;
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compass-arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.compass-center {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  z-index: 2;
  box-shadow: 0 0 12px var(--blue-glow);
}

.compass-arm {
  position: absolute;
  width: 130px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), #1a3a7a);
  border-radius: 2px;
  transform-origin: left center;
  left: 50%;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  animation: compassSpin 4s linear infinite;
  z-index: 3;
}

.compass-tip {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
}

@keyframes compassSpin {
  from {
    transform: translateY(-50%) rotate(0deg);
  }

  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

.teeth-row {
  position: absolute;
  bottom: 10px;
  display: flex;
  gap: 4px;
}

.teeth-row span {
  display: block;
  width: 6px;
  height: 10px;
  background: var(--border);
  clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%);
}

/* --- EXPLODED VIEW --- */
.explode-view {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  width: 320px;
}

.ex-layer {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.4s, transform 0.4s;
}

.carousel-slide.active .ex-layer {
  opacity: 1;
  transform: translateX(0);
}

.carousel-slide.active .ex-layer-1 {
  transition-delay: 0.2s;
}

.carousel-slide.active .ex-layer-2 {
  transition-delay: 0.4s;
}

.carousel-slide.active .ex-layer-3 {
  transition-delay: 0.6s;
}

.carousel-slide.active .ex-layer-4 {
  transition-delay: 0.8s;
}

.ex-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--grey);
  letter-spacing: 1px;
  width: 140px;
  text-align: right;
  flex-shrink: 0;
}

.ex-part {
  height: 28px;
  border-radius: 3px;
  flex: 1;
}

.ex-arm {
  background: #1a3a7a;
  border: 1px solid var(--blue);
  height: 20px;
  border-radius: 10px;
}

.ex-pcb {
  background: #0d2d0d;
  border: 1px solid #00aa44;
}

.ex-slider {
  background: #2a1a3a;
  border: 1px solid #8833ff;
}

.ex-base {
  background: #1a2a4a;
  border: 1px solid #2a4a8a;
  height: 36px;
}

/* CAROUSEL CONTROLS */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.carousel-indicators .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  padding: 0;
}

.carousel-indicators .dot.active {
  background: var(--blue);
  transform: scale(1.4);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.cnav-btn {
  pointer-events: all;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border);
  color: var(--white);
  font-size: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  transform: translateX(0);
}

#prevBtn {
  transform: translateX(-22px);
}

#nextBtn {
  transform: translateX(22px);
}

.cnav-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(0, 0, 0, 0.9);
}

/* ============================================================
   AUDIENCE
   ============================================================ */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.audience-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px 32px;
  transition: border-color 0.3s, transform 0.3s;
}

.audience-card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
}

.aud-icon svg {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
}

.aud-image {
  width: 100%;
  height: 200px;
  margin-bottom: 20px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.aud-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.audience-card:hover .aud-image img {
  transform: scale(1.05);
}

.audience-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.audience-card p {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.7;
  margin-bottom: 20px;
}

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

.aud-tags span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--blue);
  border: 1px solid rgba(0, 123, 255, 0.3);
  border-radius: 2px;
  padding: 3px 10px;
}

/* ============================================================
   TEAM
   ============================================================ */
#team {
  background: var(--black);
  max-width: 100%;
  padding: 120px 48px;
}

#team .section-header {
  max-width: 1400px;
  margin: 0 auto 60px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto 60px;
}

.team-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px 16px;
  text-align: center;
  transition: border-color 0.3s, background 0.3s;
}

.team-card:hover {
  border-color: var(--blue);
  background: rgba(0, 123, 255, 0.05);
}

.tc-id {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--blue);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.tc-name {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 6px;
}

.tc-role {
  font-size: 11px;
  color: var(--grey);
}

.advisor-block {
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 40px;
  max-width: 400px;
  margin: 0 auto;
}

.advisor-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.advisor-name {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 3px;
  color: var(--white);
  margin-bottom: 6px;
}

.advisor-inst {
  font-size: 13px;
  color: var(--grey);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 80px 48px 40px;
  max-width: 100%;
}

.footer-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 64px;
  letter-spacing: 8px;
  color: var(--white);
  margin-bottom: 16px;
}

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

.footer-tagline {
  font-size: 15px;
  color: var(--grey);
  line-height: 1.7;
  margin-bottom: 40px;
}

.footer-notify {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.footer-notify input {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--white);
  outline: none;
  min-width: 240px;
  transition: border-color 0.2s;
}

.footer-notify input:focus {
  border-color: var(--blue);
}

.footer-notify input::placeholder {
  color: var(--grey2);
}

.notify-msg {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue);
  height: 20px;
  margin-bottom: 24px;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 40px 0 24px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-credits {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-credits span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--grey2);
  letter-spacing: 1px;
}

.footer-tags {
  display: flex;
  gap: 12px;
}

.footer-tags span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(0, 123, 255, 0.5);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-tnode {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-tnode[data-side="left"] {
  transform: translateX(-30px);
}

.reveal-tnode.visible {
  opacity: 1;
  transform: translateX(0);
}

[data-delay="0"] {
  transition-delay: 0ms;
}

[data-delay="80"] {
  transition-delay: 80ms;
}

[data-delay="100"] {
  transition-delay: 100ms;
}

[data-delay="150"] {
  transition-delay: 150ms;
}

[data-delay="160"] {
  transition-delay: 160ms;
}

[data-delay="200"] {
  transition-delay: 200ms;
}

[data-delay="240"] {
  transition-delay: 240ms;
}

[data-delay="300"] {
  transition-delay: 300ms;
}

[data-delay="320"] {
  transition-delay: 320ms;
}

[data-delay="400"] {
  transition-delay: 400ms;
}

[data-delay="500"] {
  transition-delay: 500ms;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  section {
    padding: 80px 24px;
  }

  #hero {
    padding: 100px 24px 60px;
  }

  .hero-metric-bar {
    padding: 16px 24px;
  }

  .metric {
    padding: 0 20px;
  }

  .metric-val {
    font-size: 30px;
  }

  #navbar {
    padding: 14px 24px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    height: auto;
    perspective: none;
  }

  .feature-card:nth-child(5) {
    width: 100%;
  }

  .card-inner {
    transform: none !important;
  }

  .card-back {
    display: none;
  }

  .card-front {
    position: static;
    backface-visibility: visible;
  }

  .hover-hint {
    display: none;
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-container {
    padding: 0 12px;
  }

  .tnode {
    grid-template-columns: 1fr 24px 1fr;
  }

  .carousel-slide {
    flex-direction: column;
  }

  .slide-visual {
    flex: 0 0 220px;
    border-right: none;
    border-bottom: none;
  }

  .carousel-track {
    height: auto;
    min-height: 460px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
  }

  .footer-credits {
    justify-content: center;
  }
}

@media (max-width: 540px) {
  .hero-title {
    font-size: 80px;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .metric-divider {
    display: none;
  }

  .metric {
    border-bottom: 1px solid var(--border);
    width: 100%;
    padding: 12px 0;
  }

  .hero-metric-bar {
    flex-direction: column;
    gap: 0;
    padding: 8px 20px;
  }
}