/* ============================================================
   ChicaneFlow — Telemetry Noir Design System
   Dark racing aesthetic with cyberpunk data-terminal accents
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  /* Depth layers */
  --bg-abyss: #06060c;
  --bg-deep: #0a0b14;
  --bg-surface: #11131f;
  --bg-elevated: #181b2c;
  --bg-field: #1e2137;

  /* Neon accents */
  --cyan: #00e5ff;
  --cyan-glow: rgba(0, 229, 255, 0.35);
  --cyan-dim: rgba(0, 229, 255, 0.12);
  --amber: #ff6d00;
  --amber-glow: rgba(255, 109, 0, 0.4);
  --amber-dim: rgba(255, 109, 0, 0.1);
  --red: #ff1744;
  --red-glow: rgba(255, 23, 68, 0.35);
  --green: #00e676;
  --green-glow: rgba(0, 230, 118, 0.3);

  /* Typography */
  --text-primary: #e8eaed;
  --text-secondary: #9aa0b4;
  --text-muted: #5c6178;
  --font-display: 'Orbitron', system-ui, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-gap: 6rem;
  --content-max: 1200px;
  --nav-height: 72px;

  /* Borders & Effects */
  --border-subtle: 1px solid rgba(255, 255, 255, 0.06);
  --border-glow: 1px solid var(--cyan-glow);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-abyss);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scanline overlay for CRT effect */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  opacity: 0.5;
}

/* Selection */
::selection {
  background: var(--cyan);
  color: var(--bg-abyss);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fff;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(10, 11, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: var(--border-subtle);
}

.nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--cyan), #0091ea);
  clip-path: polygon(50% 0%, 100% 30%, 100% 70%, 50% 100%, 0% 70%, 0% 30%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--bg-abyss);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

/* Hamburger toggle — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: none;
  border: none;
  cursor: pointer;
  margin: -9px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text-primary);
  transition: transform 0.3s var(--ease-out-expo), opacity 0.2s ease;
}

.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width 0.3s var(--ease-out-expo);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Flash link highlight */
.nav-links .nav-flash {
  color: var(--cyan);
  border: 1px solid var(--cyan-glow);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
}

.nav-links .nav-flash:hover {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  color: var(--cyan);
}

.nav-links .nav-flash::after {
  display: none;
}

/* --- Nav Dropdown --- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.4rem 0;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  transition: color 0.25s ease;
}

.nav-dropdown-toggle::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width 0.3s var(--ease-out-expo);
}

.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle,
.nav-dropdown-toggle.active {
  color: var(--cyan);
}

.nav-dropdown-toggle:hover::after,
.nav-dropdown.open .nav-dropdown-toggle::after,
.nav-dropdown-toggle.active::after {
  width: 100%;
}

.nav-caret {
  transition: transform 0.25s var(--ease-out-expo);
}

.nav-dropdown.open .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 210px;
  list-style: none;
  padding: 0.4rem;
  background: rgba(17, 19, 31, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.25s var(--ease-out-expo), visibility 0.2s;
}

/* Hover bridge so the pointer can travel from toggle to menu */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -0.9rem;
  left: 0;
  right: 0;
  height: 0.9rem;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-links .nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: none;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links .nav-dropdown-menu a::after {
  display: none;
}

.nav-links .nav-dropdown-menu a:hover,
.nav-links .nav-dropdown-menu a.active {
  background: var(--cyan-dim);
  color: var(--cyan);
}

.nav-dropdown-menu a svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* --- Sections Common --- */
.section {
  padding: 6rem 2rem;
  position: relative;
}

.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--cyan-glow);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

/* Hero background grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 70%);
}

/* Speed lines */
.hero-speed-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.speed-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-dim), var(--cyan-glow), transparent);
  animation: speedDrift 4s linear infinite;
  opacity: 0;
}

.speed-line:nth-child(1) { top: 20%; width: 60%; left: -10%; animation-delay: 0s; }
.speed-line:nth-child(2) { top: 35%; width: 45%; right: -10%; animation-delay: 0.8s; }
.speed-line:nth-child(3) { top: 50%; width: 70%; left: -15%; animation-delay: 1.6s; }
.speed-line:nth-child(4) { top: 65%; width: 55%; right: -5%; animation-delay: 2.4s; }
.speed-line:nth-child(5) { top: 80%; width: 40%; left: -20%; animation-delay: 3.2s; }
.speed-line:nth-child(6) { top: 15%; width: 35%; right: -15%; animation-delay: 0.4s; }
.speed-line:nth-child(7) { top: 45%; width: 50%; left: -8%; animation-delay: 2.0s; }
.speed-line:nth-child(8) { top: 72%; width: 65%; right: -12%; animation-delay: 1.2s; }

@keyframes speedDrift {
  0%   { transform: translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  animation: heroReveal 1s var(--ease-out-expo) both;
}

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-logo {
  margin: 0 auto 2rem;
  width: 120px;
  height: 120px;
  position: relative;
}

.hero-logo-hex {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--cyan), #0076c8);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px var(--cyan-glow), 0 0 100px rgba(0, 229, 255, 0.15);
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 60px var(--cyan-glow), 0 0 100px rgba(0, 229, 255, 0.15); }
  50%      { box-shadow: 0 0 80px var(--cyan-glow), 0 0 140px rgba(0, 229, 255, 0.25); }
}

.hero-logo-text {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--bg-abyss);
  letter-spacing: 0.05em;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 0.5rem;
}

.hero-title .accent {
  color: var(--cyan);
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.9rem 2rem;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #0088cc);
  color: var(--bg-abyss);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--cyan-glow);
  color: var(--bg-abyss);
}

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan-glow);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.btn-outline:hover {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  transform: translateY(-2px);
  color: var(--cyan);
}

.btn-amber {
  background: linear-gradient(135deg, var(--amber), #e65100);
  color: #fff;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.btn-amber:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--amber-glow);
  color: #fff;
}

/* Hero scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeInUp 0.6s var(--ease-out-expo) 1.5s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.scroll-indicator .chevron {
  width: 20px;
  height: 20px;
  border-right: 1px solid var(--text-muted);
  border-bottom: 1px solid var(--text-muted);
  transform: rotate(45deg);
  animation: chevronBounce 1.5s ease-in-out infinite;
}

@keyframes chevronBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%      { transform: rotate(45deg) translateY(6px); }
}

/* --- Features Section --- */
.features {
  background: var(--bg-deep);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-glow), transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg-surface);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.35s var(--ease-out-expo);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 80px rgba(0, 229, 255, 0.05);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cyan-dim);
  border-radius: var(--radius-sm);
  font-size: 1.4rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Corner accent */
.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 32px;
  border-right: 1px solid rgba(0, 229, 255, 0.08);
  border-bottom: 1px solid rgba(0, 229, 255, 0.08);
}

/* --- Product Gallery Section --- */
.gallery {
  background: var(--bg-deep);
  position: relative;
}

.gallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-glow), transparent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.gallery-item {
  min-height: 240px;
}

.gallery-item--lg {
  grid-column: span 2;
}

.gallery-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
  border: var(--border-subtle);
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out-expo), filter 0.5s ease;
}

/* Hover glow + scale */
.gallery-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan-glow);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(0, 229, 255, 0.08),
    inset 0 0 0 1px rgba(0, 229, 255, 0.15);
}

.gallery-card:hover img {
  transform: scale(1.06);
  filter: brightness(1.1);
}

/* Overlay at bottom */
.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(
    to top,
    rgba(6, 6, 12, 0.95) 0%,
    rgba(10, 11, 20, 0.75) 55%,
    transparent 100%
  );
  transform: translateY(0);
  transition: all 0.35s var(--ease-out-expo);
}

.gallery-card:hover .gallery-overlay {
  padding-bottom: 2rem;
}

.gallery-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--bg-abyss);
  background: var(--cyan);
  padding: 0.25rem 0.7rem;
  border-radius: 3px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.gallery-overlay p {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Gradient top border on hover */
.gallery-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.gallery-card:hover::before {
  opacity: 1;
}

/* Corner accent */
.gallery-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 32px;
  border-right: 1px solid rgba(0, 229, 255, 0.12);
  border-bottom: 1px solid rgba(0, 229, 255, 0.12);
  transition: all 0.35s ease;
  z-index: 2;
  pointer-events: none;
}

.gallery-card:hover::after {
  border-right-color: var(--cyan-glow);
  border-bottom-color: var(--cyan-glow);
}

/* --- Hardware Specs Section --- */
.specs {
  background: var(--bg-abyss);
  position: relative;
}

.specs-table {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.spec-card {
  background: var(--bg-elevated);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: all 0.3s ease;
  position: relative;
}

.spec-card:hover {
  border-color: rgba(0, 229, 255, 0.15);
}

.spec-card-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: var(--bg-field);
  border-radius: var(--radius-sm);
}

.spec-card-content h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
}

.spec-card-content .spec-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
  margin-bottom: 0.3rem;
}

.spec-card-content .spec-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Architecture diagram */
.arch-diagram {
  margin-top: 4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 2.5rem;
  background: var(--bg-surface);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
}

.arch-node {
  background: var(--bg-elevated);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  text-align: center;
  min-width: 140px;
}

.arch-node.core {
  border-color: var(--cyan-glow);
  box-shadow: 0 0 20px var(--cyan-dim);
}

.arch-node h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--cyan);
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}

.arch-node p {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.arch-connector {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--amber);
  padding: 0.4rem 0.8rem;
  background: var(--amber-dim);
  border-radius: 20px;
  white-space: nowrap;
}

/* --- Vehicle Versions Section --- */
.section-intro {
  max-width: 680px;
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.versions-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.version-card {
  position: relative;
  background: var(--bg-elevated);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.version-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 229, 255, 0.18);
}

.version-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.version-card--wip .version-accent {
  background: linear-gradient(90deg, var(--amber), transparent);
}

.version-card--wip {
  opacity: 0.85;
}

.version-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.version-model {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.version-type {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-top: 0.45rem;
}

.version-card--wip .version-type {
  color: var(--amber);
}

.version-badge {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  white-space: nowrap;
}

.version-badge--ready {
  color: var(--green);
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid var(--green-glow);
}

.version-badge--wip {
  color: var(--amber);
  background: var(--amber-dim);
  border: 1px solid var(--amber-glow);
}

.version-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.version-desc strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* --- Flasher Section --- */
.flasher {
  background: var(--bg-deep);
  position: relative;
}

.flasher::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber-glow), transparent);
}

.flasher-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
  align-items: start;
}

.flasher-instructions {
  background: var(--bg-surface);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.flasher-instructions h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--amber);
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.flasher-instructions ol {
  list-style: none;
  counter-reset: flasher-step;
}

.flasher-instructions li {
  counter-increment: flasher-step;
  padding: 0.8rem 0 0.8rem 2.5rem;
  position: relative;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.flasher-instructions li:last-child {
  border-bottom: none;
}

.flasher-instructions li::before {
  content: counter(flasher-step);
  position: absolute;
  left: 0;
  top: 0.8rem;
  width: 24px;
  height: 24px;
  background: var(--amber-dim);
  border: 1px solid rgba(255, 109, 0, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--amber);
  font-weight: 700;
}

.flasher-instructions .browser-note {
  margin-top: 1.25rem;
  padding: 1rem;
  background: rgba(255, 109, 0, 0.06);
  border: 1px solid rgba(255, 109, 0, 0.12);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--amber);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

/* Flasher Terminal Panel */
.flasher-terminal {
  background: var(--bg-surface);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-elevated);
  border-bottom: var(--border-subtle);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red    { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green  { background: #28c840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: 0.75rem;
  letter-spacing: 0.05em;
}

.terminal-body {
  padding: 1.5rem;
}

/* Status display */
.status-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-field);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--text-muted);
  transition: background 0.3s ease;
}

.status-indicator.connected { background: var(--green); box-shadow: 0 0 8px var(--green-glow); }
.status-indicator.error     { background: var(--red);  box-shadow: 0 0 8px var(--red-glow); }
.status-indicator.busy      { background: var(--amber); box-shadow: 0 0 8px var(--amber-glow); animation: blink 1s infinite; }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

.status-text {
  color: var(--text-secondary);
  flex: 1;
}

/* Chip info */
.chip-info {
  display: none;
  padding: 1rem 1.25rem;
  background: rgba(0, 230, 118, 0.06);
  border: 1px solid rgba(0, 230, 118, 0.15);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

.chip-info.visible { display: block; }

.chip-info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.chip-info-row span:last-child {
  color: var(--green);
}

/* Controls */
.flasher-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.control-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.control-group {
  flex: 1;
  min-width: 160px;
}

.control-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.control-group input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--bg-field);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.control-group input:focus {
  border-color: var(--cyan);
}

.control-group input::placeholder {
  color: var(--text-muted);
}

/* File upload styling */
.file-upload-area {
  position: relative;
}

.file-upload-area input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  background: var(--bg-field);
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.file-upload-label:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
}

.file-upload-label.has-file {
  border-color: var(--green);
  color: var(--green);
  background: rgba(0, 230, 118, 0.06);
  border-style: solid;
}

/* Progress bar */
.progress-container {
  display: none;
  margin-top: 0.5rem;
}

.progress-container.visible { display: block; }

.progress-bar-outer {
  width: 100%;
  height: 6px;
  background: var(--bg-field);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--cyan));
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s ease;
  position: relative;
}

.progress-bar-inner::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 20px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
}

.progress-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-align: right;
}

/* Log area */
.log-area {
  margin-top: 1rem;
  max-height: 160px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.6;
  background: rgba(0,0,0,0.3);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
}

.log-area:empty { display: none; }

.log-entry {
  padding: 0.15rem 0;
  animation: logSlide 0.2s ease both;
}

@keyframes logSlide {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.log-entry.info  { color: var(--text-secondary); }
.log-entry.ok    { color: var(--green); }
.log-entry.warn  { color: var(--amber); }
.log-entry.error { color: var(--red); }

/* --- Contact Section --- */
.contact {
  background: var(--bg-abyss);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.25rem;
  background: var(--bg-surface);
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: all 0.25s ease;
  text-decoration: none;
}

.contact-link:hover {
  border-color: var(--cyan-glow);
  color: var(--cyan);
  background: var(--bg-elevated);
}

.contact-form {
  background: var(--bg-surface);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-form h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-field);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
}

.form-group textarea {
  min-height: 100px;
}

/* --- Footer --- */
.footer {
  background: var(--bg-surface);
  border-top: var(--border-subtle);
  padding: 2.5rem 2rem;
  text-align: center;
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .flasher-layout {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .arch-diagram {
    flex-direction: column;
    gap: 0.75rem;
  }

  .arch-connector {
    transform: rotate(90deg);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item--lg {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  :root {
    --nav-height: 60px;
    --section-gap: 4rem;
  }

  .section { padding: 4rem 1.25rem; }

  .features-grid { grid-template-columns: 1fr; }
  .specs-table { grid-template-columns: 1fr; }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item--lg {
    grid-column: span 1;
  }

  .hero-logo { width: 80px; height: 80px; }
  .hero-logo-text { font-size: 1.4rem; }

  .btn { padding: 0.7rem 1.4rem; font-size: 0.7rem; }
}

/* --- Mobile navigation (hamburger) --- */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .nav-inner { padding: 0 1.25rem; }

  /* The wordmark fits again now that the links collapse behind the toggle */
  .nav-brand { font-size: 1.2rem; gap: 0.5rem; }
  .nav-brand-icon { width: 32px; height: 32px; }

  /* Links become a full-width drop panel toggled by the hamburger */
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.25rem 1.25rem 1.5rem;
    background: rgba(10, 11, 20, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: var(--border-subtle);
    max-height: calc(100dvh - var(--nav-height));
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.3s var(--ease-out-expo), visibility 0.25s;
  }

  .nav.open .nav-links {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links > li { width: 100%; }

  .nav-links a {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: none;
    color: var(--text-primary);
    padding: 1rem 0.25rem;
    border-bottom: var(--border-subtle);
  }
  .nav-links a::after { display: none; }

  /* Flash button becomes a full-width highlighted row */
  .nav-links .nav-flash {
    margin-top: 1rem;
    padding: 0.9rem;
    text-align: center;
    border-radius: var(--radius-sm);
  }

  /* Dropdown expands inline instead of floating over the page */
  .nav-dropdown { width: 100%; }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    padding: 1rem 0.25rem;
    border-bottom: var(--border-subtle);
  }
  .nav-dropdown-toggle::after { display: none; }

  .nav-caret { transform: rotate(180deg); }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    min-width: 0;
    padding: 0 0 0 0.9rem;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-dropdown-menu::before { display: none; }

  .nav-links .nav-dropdown-menu a {
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding: 0.85rem 0.5rem;
  }
}

/* --- Install Cases Section --- */
.cases {
  background: var(--bg-abyss);
  position: relative;
}

.cases::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-glow), transparent);
}

.cases-viewport {
  position: relative;
  margin-top: 3rem;
}

.cases-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}

.cases-track::-webkit-scrollbar {
  display: none;
}

.case-card {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  background: var(--bg-surface);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Photo stage */
/* Fixed frame so portrait / landscape shots never resize the card */
.case-stage {
  position: relative;
  background: var(--bg-abyss);
  aspect-ratio: 4 / 3;
  min-height: 380px;
  overflow: hidden;
}

.case-stage-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.35s ease;
}

.case-stage.is-swapping .case-stage-img {
  opacity: 0;
}

.case-counter {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  background: rgba(6, 6, 12, 0.72);
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.28rem 0.6rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.case-counter b {
  color: var(--cyan);
  font-weight: 700;
}

.case-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 1.4rem 1.2rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  background: linear-gradient(
    to top,
    rgba(6, 6, 12, 0.95) 0%,
    rgba(10, 11, 20, 0.7) 60%,
    transparent 100%
  );
}

.case-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  background: rgba(6, 6, 12, 0.6);
  border: var(--border-subtle);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.case-stage:hover .case-arrow,
.case-arrow:focus-visible {
  opacity: 1;
}

.case-arrow:hover {
  background: rgba(0, 229, 255, 0.16);
  border-color: var(--cyan-glow);
  color: var(--cyan);
}

.case-arrow--prev { left: 0.8rem; }
.case-arrow--next { right: 0.8rem; }

/* Case description side */
.case-body {
  padding: 2rem 1.9rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.case-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 0.7rem;
}

.case-title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0.9rem;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.case-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: var(--border-subtle);
  border-radius: 999px;
  padding: 0.24rem 0.7rem;
}

.case-tag--accent {
  color: var(--cyan);
  background: var(--cyan-dim);
  border-color: var(--cyan-glow);
}

.case-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.3rem;
}

.case-meta {
  display: grid;
  gap: 0.55rem;
  padding: 1rem 1.1rem;
  background: var(--bg-deep);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1.4rem;
}

.case-meta > div {
  display: flex;
  gap: 0.9rem;
  font-size: 0.82rem;
}

.case-meta dt {
  flex: 0 0 3.2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding-top: 0.12rem;
}

.case-meta dd {
  color: var(--text-primary);
}

/* Thumbnail strip */
.case-thumbs {
  display: flex;
  gap: 0.6rem;
  min-width: 0;
  overflow-x: auto;
  margin-top: auto;
  padding-bottom: 0.3rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

.case-thumbs::-webkit-scrollbar { height: 4px; }
.case-thumbs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.case-thumb {
  flex: 0 0 66px;
  height: 50px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-abyss);
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease-out-expo);
}

.case-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-thumb:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.case-thumb.is-active {
  opacity: 1;
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
}

/* Placeholder card */
.case-card--soon {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.1);
  background: var(--bg-deep);
  grid-template-columns: 1fr;
}

.case-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.8rem;
  padding: 3rem 2rem;
  min-height: 380px;
}

.case-soon-icon {
  color: var(--text-muted);
}

.case-soon h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.case-soon p {
  max-width: 24rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Track navigation */
.cases-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  background: rgba(17, 19, 31, 0.9);
  border: var(--border-subtle);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cases-nav:hover {
  background: var(--cyan-dim);
  border-color: var(--cyan-glow);
  color: var(--cyan);
}

.cases-nav[disabled] {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}

.cases-nav--prev { left: -22px; }
.cases-nav--next { right: -22px; }

.cases-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.6rem;
}

.cases-dot {
  width: 26px;
  height: 3px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: background 0.25s ease, width 0.25s var(--ease-out-expo);
}

.cases-dot.is-active {
  width: 40px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
}

@media (max-width: 900px) {
  .case-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-stage {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .cases-nav--prev { left: 0.5rem; }
  .cases-nav--next { right: 0.5rem; }

  .case-arrow { opacity: 1; }
}

@media (max-width: 640px) {
  .case-body { padding: 1.5rem 1.25rem; }
  .case-title { font-size: 1.1rem; }
  .cases-track { gap: 1rem; }
}

/* --- Utility: hidden --- */
.hidden {
  display: none !important;
}
