/* ═══════════════════════════════════════════════════════════════
   Portfolio — Styles by Cascade
   A dark, sophisticated, motion-rich portfolio
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --bg: #08080c;
  --bg-elevated: #0e0e14;
  --bg-card: rgba(255,255,255,0.025);
  --bg-card-hover: rgba(255,255,255,0.05);
  --surface: #131320;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --text: #e8e4dc;
  --text-dim: rgba(232,228,220,0.55);
  --text-muted: rgba(232,228,220,0.25);
  --accent: #6ee7b7;
  --accent-dim: rgba(110,231,183,0.1);
  --accent2: #818cf8;
  --accent3: #f59e0b;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

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

::selection { background: rgba(110,231,183,0.2); color: #fff; }

/* ─── Scroll Progress Bar ──────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  z-index: 10000;
  transition: width 0.08s linear;
  pointer-events: none;
  will-change: width;
}

/* ─── Cursor Glow ─────────────────────────────────────────── */

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110,231,183,0.05) 0%, rgba(129,140,248,0.025) 35%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s var(--ease);
  contain: strict;
}

/* ─── Navigation ──────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2.5rem;
  background: rgba(8,8,12,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.nav.scrolled {
  padding: 0.8rem 2.5rem;
  background: rgba(8,8,12,0.95);
  border-bottom-color: rgba(110,231,183,0.08);
  box-shadow: 0 4px 32px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.02);
  transform: translateY(0);
}

.nav.scrolled-up {
  transform: translateY(-100%);
}

.nav-logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.dot { color: var(--accent); }

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

.nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.25s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.nav-link--cta {
  color: var(--accent);
  padding: 0.45rem 1.1rem;
  border: 1px solid rgba(110,231,183,0.25);
  border-radius: 100px;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.nav-link--cta::after { display: none; }
.nav-link--cta:hover { background: rgba(110,231,183,0.1); color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── Mobile Menu ─────────────────────────────────────────── */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(8,8,12,0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  contain: layout style;
}

.mobile-menu.open { opacity: 1; pointer-events: all; }

.mobile-link {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), color 0.25s;
}

.mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* ─── Hero ────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 2.5rem 2.5rem;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  z-index: 0;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  z-index: 2;
  opacity: 0;
  animation: hintFadeIn 1s 2s both, hintBob 2.5s 3s ease-in-out infinite;
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.4s ease;
}
.hero-scroll-hint.hidden { opacity: 0 !important; pointer-events: none; }
@keyframes hintFadeIn { to { opacity: 0.6; } }
@keyframes hintBob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.4rem;
  background: rgba(110,231,183,0.08);
  border: 1px solid rgba(110,231,183,0.25);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s var(--ease) both;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(110,231,183,0.1);
}

.hero-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(110,231,183,0.12), transparent);
  animation: badgeShine 3s ease-in-out 1s infinite;
}

@keyframes badgeShine {
  0% { left: -100%; }
  100% { left: 200%; }
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.7s var(--ease) 0.08s both;
  text-shadow: 0 2px 40px rgba(0,0,0,0.3);
}

.hero-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text-dim);
  max-width: 580px;
  margin-bottom: 2rem;
  animation: fadeInUp 0.7s var(--ease) 0.15s both;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  animation: fadeInUp 0.7s var(--ease) 0.22s both;
  flex-wrap: wrap;
}

/* ─── Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  border: none;
  position: relative;
}

.btn:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.08s;
}

.btn-primary {
  background: var(--accent);
  color: #08080c;
}

.btn-primary:hover {
  background: #5dd9a8;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(110,231,183,0.25), 0 0 0 1px rgba(110,231,183,0.15);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-lg { padding: 1rem 2.2rem; font-size: 1rem; }

/* ─── Sections ────────────────────────────────────────────── */

.section {
  padding: 4.5rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section--dark {
  max-width: 100%;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--dark > * { max-width: 1200px; margin: 0 auto; }

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  transition: letter-spacing 0.4s var(--ease);
}

.section-header:hover .section-label {
  letter-spacing: 0.25em;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ─── Filter Bar ──────────────────────────────────────────── */

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.55rem 1.3rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filter-btn:hover { border-color: var(--border-hover); color: var(--text); background: rgba(255,255,255,0.05); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }

.filter-btn:active { transform: scale(0.95) translateY(0); transition-duration: 0.08s; }

.filter-btn.active {
  background: linear-gradient(135deg, rgba(110,231,183,0.15) 0%, rgba(129,140,248,0.08) 100%);
  border-color: rgba(110,231,183,0.4);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(110,231,183,0.15), inset 0 1px 0 rgba(255,255,255,0.1);
  transform: translateY(-1px);
}
.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  font-size: 0.62rem;
  font-weight: 600;
  background: rgba(255,255,255,0.06);
  border-radius: 20px;
  margin-left: 0.35rem;
  padding: 0 0.3rem;
  color: var(--text-muted);
  transition: background 0.3s ease, color 0.3s ease;
}
.filter-btn.active .filter-count {
  background: rgba(110,231,183,0.15);
  color: var(--accent);
}

/* ─── Project Grid — Avant-Garde ──────────────────────────── */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

/* Featured cards span 2 columns */
.project-card--featured { grid-column: span 2; }
@media (max-width: 768px) { .project-card--featured { grid-column: span 1; } }

/* ─── Category Dividers (Value Flow) ──────────────────── */
.grid-category-divider {
  grid-column: 1 / -1;
  padding: 2.5rem 0 1rem;
  animation: fadeInUp 0.6s var(--ease) both;
}
.grid-category-divider:first-child { padding-top: 0.5rem; }
.gcd-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--border) 0%, rgba(255,255,255,0.08) 50%, var(--border) 100%);
  margin-bottom: 1.5rem;
}
.grid-category-divider:first-child .gcd-line { display: none; }
.gcd-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.gcd-icon {
  font-size: 1.1rem;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  flex-shrink: 0;
}
.gcd-text { flex: 1; min-width: 0; }
.gcd-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.gcd-tagline {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.gcd-count {
  font-size: 0.72rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.25rem 0.7rem;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 500;
}
.gcd-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
  max-width: 600px;
  margin: 0;
}
@media (max-width: 768px) {
  .grid-category-divider { padding: 2rem 0 0.75rem; }
  .gcd-title { font-size: 1rem; }
  .gcd-desc { font-size: 0.8rem; }
  .gcd-count { display: none; }
}

.project-card {
  --scroll-scale: 0.97;
  --scroll-opacity: 0.7;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transform: scale(var(--scroll-scale));
  opacity: var(--scroll-opacity);
  transition: transform 0.5s cubic-bezier(.16,1,.3,1), border-color 0.45s var(--ease), box-shadow 0.55s var(--ease), background 0.45s var(--ease), opacity 0.5s cubic-bezier(.16,1,.3,1);
  animation: fadeInUp 0.6s var(--ease) both;
  contain: layout style;
  will-change: transform, opacity;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, var(--card-accent, transparent) 0%, transparent 50%, var(--card-accent, transparent) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
  z-index: 2;
}

.project-card:hover::before { opacity: 0.7; }

.project-card:hover {
  --scroll-scale: 1;
  --scroll-opacity: 1;
  border-color: transparent;
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    0 32px 80px rgba(0,0,0,0.5),
    0 0 60px var(--card-glow, rgba(110,231,183,0.12)),
    0 0 0 1px rgba(255,255,255,0.06),
    inset 0 1px 0 rgba(255,255,255,0.04);
  background: var(--bg-card-hover);
}

.project-card:hover .card-preview {
  transform: scale(1.04) translateY(-3px);
}

.project-card:hover .card-preview::after {
  opacity: 1;
}


.card-preview {
  position: relative;
  height: 240px;
  overflow: hidden;
  transition: transform 0.6s var(--ease);
}

.card-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,12,0.6) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.project-card--featured .card-preview { height: 300px; }

.card-preview canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Web Design cards — visual distinction */
.project-card[data-category="Web Design"] {
  border-color: rgba(255,255,255,0.06);
  background: linear-gradient(145deg, var(--bg-card), rgba(20,20,28,1));
}

.project-card[data-category="Web Design"]::after {
  content: 'LIVE SITE';
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  background: rgba(255,255,255,0.08);
  color: var(--card-accent, var(--text-dim));
  border: 1px solid rgba(255,255,255,0.1);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.project-card[data-category="Web Design"]:hover::after {
  background: var(--card-accent, var(--accent));
  color: #000;
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 50%);
  pointer-events: none;
}


.card-content {
  padding: 1.2rem 1.5rem 1.5rem;
  position: relative;
  transition: transform 0.35s var(--ease);
}

.project-card:hover .card-content {
  transform: translateY(-2px);
}

.project-card:active {
  transform: translateY(-4px) scale(0.985);
  transition-duration: 0.1s;
}

.card-category {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.card-category::before {
  content: '';
  width: 16px;
  height: 1.5px;
  background: currentColor;
  display: inline-block;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.project-card--featured .card-title { font-size: 1.8rem; }

.card-desc {
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.card-tech {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.tech-tag {
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  font-size: 0.62rem;
  font-weight: 500;
  font-family: var(--mono);
  background: rgba(255,255,255,0.03);
  color: var(--text-dim);
  border: 1px solid var(--border);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}

.project-card:hover .tech-tag {
  border-color: var(--border-hover);
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.project-card:hover .tech-tag:nth-child(1) { transition-delay: 0.02s; }
.project-card:hover .tech-tag:nth-child(2) { transition-delay: 0.04s; }
.project-card:hover .tech-tag:nth-child(3) { transition-delay: 0.06s; }
.project-card:hover .tech-tag:nth-child(4) { transition-delay: 0.08s; }

.card-arrow {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  opacity: 0;
  transform: translate(-6px, 6px) scale(0.8);
  transition: opacity 0.3s var(--ease-bounce), transform 0.3s var(--ease-bounce), background 0.3s var(--ease-bounce), border-color 0.3s var(--ease-bounce), color 0.3s var(--ease-bounce), box-shadow 0.3s var(--ease-bounce);
}

.project-card:hover .card-arrow {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  background: var(--card-accent, rgba(110,231,183,0.12));
  border-color: var(--card-accent, rgba(110,231,183,0.2));
  color: #fff;
}

/* ─── Demo Website Preview (in modal) ─────────────────────── */

.demo-site {
  width: 100%;
  font-family: var(--font);
}

.demo-site * { box-sizing: border-box; margin: 0; padding: 0; }
.demo-site a { text-decoration: none; color: inherit; }

/* Scroll-reveal system */
.ds-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger children inside visible sections */
.ds-visible .ds-stat { transition-delay: calc(var(--i, 0) * 0.08s); }
.ds-visible .ds-feature-card { transition-delay: calc(var(--i, 0) * 0.06s); }
.ds-visible .ds-testimonial { transition-delay: calc(var(--i, 0) * 0.1s); }


@keyframes dsFadeUp {
  from { opacity: 0; transform: translate3d(0, 24px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes dsShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes dsPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes dsFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes dsGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Nav ── */
.ds-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  z-index: 5;
  background: rgba(8,8,12,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s ease-out, box-shadow 0.15s ease-out, padding 0.15s ease-out;
}

.ds-nav.scrolled {
  background: rgba(8,8,12,0.96);
  box-shadow: 0 2px 20px rgba(0,0,0,0.35);
  padding: 0.55rem 2rem;
}

.ds-nav-logo {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ds-nav.scrolled .ds-nav-logo {
  font-size: 0.95rem;
}

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

.ds-nav-links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.7;
  transition: opacity 0.25s;
}

.ds-nav-links a:hover { opacity: 1; }

.ds-nav-cta {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), padding 0.15s ease-out, font-size 0.15s ease-out;
}

.ds-nav-cta:hover { transform: translateY(-1px); }

.ds-nav.scrolled .ds-nav-cta {
  padding: 0.4rem 1rem;
  font-size: 0.65rem;
}

.ds-nav.scrolled .ds-nav-links {
  gap: 1.4rem;
}

/* ── Hero ── */
.ds-hero {
  padding: 5rem 2.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 360px;
  position: relative;
  overflow: hidden;
}

.ds-hero-content { max-width: 640px; position: relative; z-index: 1; }

.ds-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1.2rem;
  animation: dsFadeUp 0.8s var(--ease) both;
}

.ds-hero-sub {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.7;
  margin-bottom: 2rem;
  animation: dsFadeUp 0.8s var(--ease) 0.12s both;
}

.ds-hero-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: dsFadeUp 0.8s var(--ease) 0.24s both;
}

/* ── Buttons ── */
.ds-btn {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.75rem 1.8rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
  letter-spacing: 0.01em;
}

.ds-btn:hover { transform: translateY(-2px); }

.ds-btn-lg { padding: 0.9rem 2.4rem; font-size: 0.85rem; }

.ds-btn-secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: inherit;
}

.ds-btn-secondary:hover { border-color: rgba(255,255,255,0.5); }

/* ── Stats ── */
.ds-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ds-stat {
  padding: 2rem 1.2rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
  animation: dsFadeUp 0.6s var(--ease) both;
  transition: background 0.4s var(--ease), transform 0.3s var(--ease);
}

.ds-stat:hover {
  background: rgba(255,255,255,0.04);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.ds-stat:nth-child(1) { animation-delay: 0.1s; }
.ds-stat:nth-child(2) { animation-delay: 0.2s; }
.ds-stat:nth-child(3) { animation-delay: 0.3s; }
.ds-stat:nth-child(4) { animation-delay: 0.4s; border-right: none; }

.ds-stat-num {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.35rem;
  background: linear-gradient(135deg, var(--accent) 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ds-stat-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  opacity: 0.55;
  color: var(--text-dim);
}

/* ── Section Headers ── */
.ds-section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.ds-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
  animation: dsFadeUp 0.7s var(--ease) both;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.ds-section-sub {
  font-size: 0.88rem;
  opacity: 0.6;
  animation: dsFadeUp 0.7s var(--ease) 0.1s both;
  line-height: 1.6;
}

/* ── Features ── */
.ds-features {
  padding: 3.5rem 2rem;
}

.ds-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
}

.ds-feature-card {
  padding: 2.2rem 1.6rem;
  text-align: center;
  transition: transform 0.5s var(--ease), background 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
  position: relative;
  overflow: hidden;
  animation: dsFadeUp 0.6s var(--ease) both;
  border: 1px solid transparent;
  border-radius: 16px;
  background: rgba(255,255,255,0.01);
}

.ds-feature-card:nth-child(1) { animation-delay: 0.1s; }
.ds-feature-card:nth-child(2) { animation-delay: 0.15s; }
.ds-feature-card:nth-child(3) { animation-delay: 0.2s; }
.ds-feature-card:nth-child(4) { animation-delay: 0.25s; }
.ds-feature-card:nth-child(5) { animation-delay: 0.3s; }
.ds-feature-card:nth-child(6) { animation-delay: 0.35s; }

.ds-feature-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 20px 48px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.08), inset 0 1px 0 rgba(255,255,255,0.04); background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.06); }

.ds-feature-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1;
  opacity: 0.85;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}

.ds-feature-card:hover .ds-feature-icon { transform: scale(1.15); opacity: 1; }


.ds-feature-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: transform 0.3s var(--ease);
}

.ds-feature-card:hover h3 { transform: translateY(-1px); color: #fff; }

.ds-feature-card p {
  font-size: 0.75rem;
  line-height: 1.6;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.ds-feature-card:hover p { opacity: 0.85; }

/* ── Testimonials ── */
.ds-testimonials {
  padding: 3.5rem 2rem;
}

.ds-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.ds-testimonial {
  padding: 2rem;
  border-radius: 18px;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.5s var(--ease);
  animation: dsFadeUp 0.6s var(--ease) both;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
}

.ds-testimonial:nth-child(1) { animation-delay: 0.15s; }
.ds-testimonial:nth-child(2) { animation-delay: 0.25s; }
.ds-testimonial:nth-child(3) { animation-delay: 0.35s; }

.ds-testimonial:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 16px 48px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); }

.ds-testimonial-quote {
  font-size: 0.85rem;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 1.4rem;
  opacity: 0.9;
  position: relative;
  padding-left: 0.3rem;
}

.ds-testimonial-quote::before {
  content: '\201C';
  position: absolute;
  left: -0.1rem;
  top: -0.3rem;
  font-size: 1.8rem;
  opacity: 0.15;
  font-style: normal;
  line-height: 1;
}

.ds-testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.ds-testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(110,231,183,0.2) 0%, rgba(129,140,248,0.15) 100%);
  color: #6ee7b7;
  border: 1px solid rgba(255,255,255,0.1);
}

.ds-testimonial-name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.ds-testimonial-role {
  font-size: 0.65rem;
  opacity: 0.5;
}

/* ── Process ── */
.ds-process {
  padding: 3.5rem 2rem;
}

.ds-process-steps {
  display: flex;
  justify-content: center;
  gap: 0;
  align-items: flex-start;
  max-width: 700px;
  margin: 0 auto;
}

.ds-process-step {
  flex: 1;
  text-align: center;
  padding: 1.8rem 1.2rem;
  position: relative;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
  border-radius: 16px;
  background: rgba(255,255,255,0.01);
}

.ds-process-step:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.ds-process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 1rem;
  border: 2px solid rgba(255,255,255,0.2);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease), background 0.5s var(--ease);
  background: linear-gradient(135deg, rgba(110,231,183,0.15) 0%, rgba(129,140,248,0.1) 100%);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.ds-process-step:hover .ds-process-num {
  transform: scale(1.15);
  box-shadow: 0 8px 28px rgba(110,231,183,0.25), 0 4px 20px rgba(255,255,255,0.08);
  border-color: rgba(110,231,183,0.5);
}

.ds-process-step h3 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.ds-process-step p {
  font-size: 0.72rem;
  line-height: 1.6;
  opacity: 0.6;
}

.ds-process-arrow {
  position: absolute;
  right: -8px;
  top: 38px;
  font-size: 1.2rem;
  opacity: 0.25;
}

/* ── Pricing ── */
.ds-pricing {
  padding: 3.5rem 2rem;
}

.ds-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 780px;
  margin: 0 auto;
}

.ds-pricing-card {
  padding: 2.2rem 1.6rem;
  border-radius: 18px;
  text-align: center;
  position: relative;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.5s var(--ease);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}

.ds-pricing-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 48px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
}

.ds-pricing-card--featured {
  border-color: rgba(110,231,183,0.3);
  background: linear-gradient(135deg, rgba(110,231,183,0.08) 0%, rgba(129,140,248,0.05) 100%);
  transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(110,231,183,0.15), inset 0 1px 0 rgba(255,255,255,0.06);
}

.ds-pricing-card--featured:hover {
  transform: scale(1.05) translateY(-10px);
  box-shadow: 0 24px 56px rgba(0,0,0,0.3), 0 0 0 1px rgba(110,231,183,0.2), inset 0 1px 0 rgba(255,255,255,0.08);
  border-color: rgba(110,231,183,0.4);
}

.ds-pricing-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.8rem;
  border-radius: 100px;
  white-space: nowrap;
}

.ds-pricing-name {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.ds-pricing-price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.ds-pricing-period {
  font-size: 0.65rem;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

.ds-pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 1.5rem;
}

.ds-pricing-features li {
  font-size: 0.72rem;
  padding: 0.35rem 0;
  opacity: 0.7;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.ds-pricing-features li:last-child { border-bottom: none; }

.ds-btn-block {
  width: 100%;
  text-align: center;
}

/* ── CTA Banner ── */
.ds-cta-banner {
  padding: 4rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ds-cta-banner h2 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
  animation: dsFadeUp 0.6s var(--ease) both;
}

.ds-cta-banner p {
  font-size: 0.85rem;
  opacity: 0.7;
  max-width: 480px;
  margin: 0 auto 1.8rem;
  line-height: 1.6;
  animation: dsFadeUp 0.6s var(--ease) 0.1s both;
}

.ds-cta-banner .ds-btn {
  animation: dsFadeUp 0.6s var(--ease) 0.2s both;
}

/* ── Footer ── */
.ds-footer {
  padding: 0;
  font-size: 0.75rem;
}

.ds-footer-top {
  display: flex;
  justify-content: space-between;
  padding: 2.5rem 2rem 2rem;
  gap: 2rem;
}

.ds-footer-logo {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.ds-footer-tagline {
  font-size: 0.7rem;
  opacity: 0.4;
}

.ds-footer-cols {
  display: flex;
  gap: 2.5rem;
}

.ds-footer-col h4 {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
  opacity: 0.5;
}

.ds-footer-col a {
  display: block;
  font-size: 0.72rem;
  opacity: 0.6;
  padding: 0.2rem 0;
  transition: opacity 0.2s;
}

.ds-footer-col a:hover { opacity: 1; }

.ds-footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
  font-size: 0.6rem;
  opacity: 0.3;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ═══════════════════════════════════════════════════════════
   BRAND THEMES
   ═══════════════════════════════════════════════════════════ */

/* ── Aether — organic luxury ── */
.demo-site--aether { background: linear-gradient(160deg, #1a1510, #0d0b08); color: #f5ead6; }
.demo-site--aether .ds-nav { background: rgba(13,11,8,0.85); border-color: rgba(212,175,55,0.08); }
.demo-site--aether .ds-nav-logo { font-family: Georgia, serif; font-weight: 400; letter-spacing: 0.15em; color: #D4AF37; }
.demo-site--aether .ds-nav-cta { background: #D4AF37; color: #0d0b08; }
.demo-site--aether .ds-nav-cta:hover { background: #e8c84a; }
.demo-site--aether .ds-hero { background: radial-gradient(ellipse at 30% 40%, rgba(212,175,55,0.12) 0%, transparent 60%); }
.demo-site--aether .ds-hero-title { font-family: Georgia, serif; font-weight: 400; letter-spacing: 0.02em; }
.demo-site--aether .ds-btn-primary { background: #D4AF37; color: #0d0b08; }
.demo-site--aether .ds-btn-primary:hover { background: #e8c84a; box-shadow: 0 8px 32px rgba(212,175,55,0.25); }
.demo-site--aether .ds-btn-secondary { border-color: rgba(212,175,55,0.3); color: #D4AF37; }
.demo-site--aether .ds-btn-secondary:hover { border-color: #D4AF37; }
.demo-site--aether .ds-stats { border-color: rgba(212,175,55,0.08); }
.demo-site--aether .ds-stat { border-color: rgba(212,175,55,0.08); }
.demo-site--aether .ds-stat-num { color: #D4AF37; font-family: Georgia, serif; }
.demo-site--aether .ds-section-title { font-family: Georgia, serif; font-weight: 400; }
.demo-site--aether .ds-feature-card { border-right: 1px solid rgba(212,175,55,0.06); }
.demo-site--aether .ds-feature-card:nth-child(3n) { border-right: none; }
.demo-site--aether .ds-feature-card:hover { background: rgba(212,175,55,0.04); }
.demo-site--aether .ds-feature-card h3 { color: #D4AF37; font-family: Georgia, serif; font-weight: 400; letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.72rem; }
.demo-site--aether .ds-testimonial { background: rgba(212,175,55,0.04); border: 1px solid rgba(212,175,55,0.06); }
.demo-site--aether .ds-testimonial:hover { border-color: rgba(212,175,55,0.15); box-shadow: 0 8px 32px rgba(212,175,55,0.06); }
.demo-site--aether .ds-testimonial-quote { font-family: Georgia, serif; }
.demo-site--aether .ds-testimonial-avatar { background: rgba(212,175,55,0.15); color: #D4AF37; }
.demo-site--aether .ds-cta-banner { background: radial-gradient(ellipse at center, rgba(212,175,55,0.08) 0%, transparent 70%); }
.demo-site--aether .ds-cta-banner h2 { font-family: Georgia, serif; font-weight: 400; }
.demo-site--aether .ds-footer { border-top: 1px solid rgba(212,175,55,0.06); }
.demo-site--aether .ds-footer-logo { font-family: Georgia, serif; font-weight: 400; letter-spacing: 0.15em; color: #D4AF37; }
.demo-site--aether .ds-footer-bottom { border-color: rgba(212,175,55,0.06); }

/* ── Volt — neo-brutalist ── */
.demo-site--volt { background: #000; color: #fff; }
.demo-site--volt .ds-nav { background: rgba(0,0,0,0.9); border-color: rgba(0,102,255,0.15); }
.demo-site--volt .ds-nav-logo { font-weight: 900; letter-spacing: -0.03em; }
.demo-site--volt .ds-nav-cta { background: #0066FF; color: #fff; border-radius: 0; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.demo-site--volt .ds-nav-cta:hover { background: #3385ff; }
.demo-site--volt .ds-hero { background: linear-gradient(135deg, #000 50%, #0066FF 100%); text-align: left; }
.demo-site--volt .ds-hero-content { max-width: 100%; }
.demo-site--volt .ds-hero-title { font-size: clamp(2.5rem, 6vw, 4.5rem); text-transform: uppercase; letter-spacing: -0.04em; line-height: 0.95; text-align: left; }
.demo-site--volt .ds-hero-sub { text-align: left; font-weight: 500; }
.demo-site--volt .ds-hero-actions { justify-content: flex-start; }
.demo-site--volt .ds-btn-primary { background: #0066FF; color: #fff; border-radius: 0; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.demo-site--volt .ds-btn-primary:hover { background: #3385ff; box-shadow: 0 8px 32px rgba(0,102,255,0.3); }
.demo-site--volt .ds-btn-secondary { border-color: #0066FF; color: #0066FF; border-radius: 0; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.demo-site--volt .ds-stats { background: #0066FF; border: none; }
.demo-site--volt .ds-stat { border-color: rgba(0,0,0,0.15); }
.demo-site--volt .ds-stat-num { font-weight: 900; }
.demo-site--volt .ds-section-title { text-transform: uppercase; letter-spacing: 0.05em; }
.demo-site--volt .ds-features-grid { gap: 0; }
.demo-site--volt .ds-feature-card { border: 1px solid rgba(0,102,255,0.1); }
.demo-site--volt .ds-feature-card:hover { background: rgba(0,102,255,0.08); border-color: rgba(0,102,255,0.3); }
.demo-site--volt .ds-feature-card h3 { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; color: #0066FF; }
.demo-site--volt .ds-testimonial { background: rgba(0,102,255,0.06); border: 1px solid rgba(0,102,255,0.1); border-radius: 0; }
.demo-site--volt .ds-testimonial:hover { border-color: #0066FF; }
.demo-site--volt .ds-testimonial-avatar { background: #0066FF; color: #000; font-weight: 900; }
.demo-site--volt .ds-cta-banner { background: #0066FF; }
.demo-site--volt .ds-cta-banner h2 { text-transform: uppercase; letter-spacing: 0.03em; }
.demo-site--volt .ds-cta-banner .ds-btn-primary { background: #000; color: #fff; }
.demo-site--volt .ds-cta-banner .ds-btn-primary:hover { background: #111; }
.demo-site--volt .ds-footer { border-top: 2px solid #0066FF; }
.demo-site--volt .ds-footer-logo { font-weight: 900; }
.demo-site--volt .ds-footer-col h4 { color: #0066FF; }
.demo-site--volt .ds-footer-bottom { border-color: rgba(0,102,255,0.15); }

/* ── Bloom — editorial minimal ── */
.demo-site--bloom { background: #f5f2ed; color: #2d2a26; }
.demo-site--bloom .ds-nav { background: rgba(245,242,237,0.92); border-color: rgba(0,0,0,0.06); }
.demo-site--bloom .ds-nav-logo { font-family: Georgia, serif; font-weight: 400; font-size: 1.2rem; }
.demo-site--bloom .ds-nav-links a { color: #2d2a26; }
.demo-site--bloom .ds-nav-cta { background: #9CAF88; color: #fff; }
.demo-site--bloom .ds-nav-cta:hover { background: #8a9e76; }
.demo-site--bloom .ds-hero { background: linear-gradient(to bottom, #f5f2ed, #e8e2d8); }
.demo-site--bloom .ds-hero-title { font-family: Georgia, serif; font-weight: 400; color: #2d2a26; }
.demo-site--bloom .ds-btn-primary { background: #9CAF88; color: #fff; }
.demo-site--bloom .ds-btn-primary:hover { background: #8a9e76; box-shadow: 0 8px 32px rgba(156,175,136,0.25); }
.demo-site--bloom .ds-btn-secondary { border-color: rgba(45,42,38,0.2); color: #2d2a26; }
.demo-site--bloom .ds-btn-secondary:hover { border-color: #9CAF88; color: #9CAF88; }
.demo-site--bloom .ds-stats { background: #fff; border-color: rgba(0,0,0,0.06); }
.demo-site--bloom .ds-stat { border-color: rgba(0,0,0,0.06); }
.demo-site--bloom .ds-stat-num {
  color: #9CAF88; font-family: Georgia, serif;
  font-size: 2.2rem; font-weight: 400; letter-spacing: -0.02em;
  -webkit-text-fill-color: #9CAF88; background: none;
}
.demo-site--bloom .ds-stat-label {
  font-size: 0.72rem; font-weight: 500; opacity: 0.75;
  color: #5a5550; letter-spacing: 0.06em;
}
.demo-site--bloom .ds-section-title { font-family: Georgia, serif; font-weight: 400; color: #2d2a26; }
.demo-site--bloom .ds-feature-card { background: #fff; border: 1px solid rgba(0,0,0,0.06); margin: 0.4rem; border-radius: 12px; }
.demo-site--bloom .ds-feature-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.06); border-color: rgba(156,175,136,0.3); }
.demo-site--bloom .ds-feature-card h3 { color: #9CAF88; }
.demo-site--bloom .ds-features-grid { gap: 0; }
.demo-site--bloom .ds-testimonial { background: #fff; border: 1px solid rgba(0,0,0,0.06); }
.demo-site--bloom .ds-testimonial:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.06); border-color: rgba(156,175,136,0.2); }
.demo-site--bloom .ds-testimonial-quote { color: #2d2a26; font-family: Georgia, serif; }
.demo-site--bloom .ds-testimonial-avatar { background: #9CAF88; color: #fff; }
.demo-site--bloom .ds-testimonial-name { color: #2d2a26; }
.demo-site--bloom .ds-cta-banner { background: #e8e2d8; }
.demo-site--bloom .ds-cta-banner h2 { font-family: Georgia, serif; font-weight: 400; color: #2d2a26; }
.demo-site--bloom .ds-cta-banner p { color: #2d2a26; }
.demo-site--bloom .ds-footer { background: #2d2a26; color: #f5ead6; border-top: none; }
.demo-site--bloom .ds-footer-logo { font-family: Georgia, serif; font-weight: 400; }
.demo-site--bloom .ds-footer-col h4 { color: #9CAF88; }
.demo-site--bloom .ds-footer-bottom { border-color: rgba(245,234,214,0.1); }

/* ── Prism — maximalist playful ── */
.demo-site--prism { background: #0a0a0f; color: #fff; }
.demo-site--prism .ds-nav { background: rgba(10,10,15,0.9); border-color: rgba(255,255,255,0.06); }
.demo-site--prism .ds-nav-logo { font-weight: 900; background: linear-gradient(135deg, #FF1493, #8B5CF6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.demo-site--prism .ds-nav-cta { background: linear-gradient(135deg, #FF1493, #8B5CF6); color: #fff; border: none; }
.demo-site--prism .ds-nav-cta:hover { box-shadow: 0 4px 20px rgba(139,92,246,0.4); }
.demo-site--prism .ds-hero { background: linear-gradient(135deg, #FF1493 0%, #8B5CF6 50%, #06B6D4 100%); position: relative; overflow: hidden; }
.demo-site--prism .ds-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.08) 50%, transparent 70%); background-size: 200% 100%; animation: dsShimmer 3s ease infinite; pointer-events: none; }
.demo-site--prism .ds-hero-title { font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; }
.demo-site--prism .ds-btn-primary { background: linear-gradient(135deg, #FF1493, #8B5CF6); color: #fff; }
.demo-site--prism .ds-btn-primary:hover { box-shadow: 0 8px 32px rgba(139,92,246,0.4); }
.demo-site--prism .ds-btn-secondary { border-color: rgba(255,255,255,0.3); }
.demo-site--prism .ds-stats { border-color: rgba(255,255,255,0.06); }
.demo-site--prism .ds-stat { border-color: rgba(255,255,255,0.06); }
.demo-site--prism .ds-stat-num { background: linear-gradient(135deg, #FF1493, #8B5CF6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.demo-site--prism .ds-section-title { background: linear-gradient(135deg, #FF1493, #8B5CF6, #06B6D4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.demo-site--prism .ds-feature-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); }
.demo-site--prism .ds-feature-card:hover { background: rgba(255,255,255,0.06); border-color: rgba(139,92,246,0.3); box-shadow: 0 8px 32px rgba(139,92,246,0.1); }
.demo-site--prism .ds-feature-card h3 { background: linear-gradient(135deg, #FF1493, #8B5CF6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.demo-site--prism .ds-testimonial { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); }
.demo-site--prism .ds-testimonial:hover { border-color: rgba(139,92,246,0.3); box-shadow: 0 8px 32px rgba(139,92,246,0.08); }
.demo-site--prism .ds-testimonial-avatar { background: linear-gradient(135deg, #FF1493, #8B5CF6); color: #fff; }
.demo-site--prism .ds-cta-banner { background: linear-gradient(135deg, rgba(255,20,147,0.15), rgba(139,92,246,0.15), rgba(6,182,212,0.15)); }
.demo-site--prism .ds-cta-banner h2 { font-weight: 900; text-transform: uppercase; }
.demo-site--prism .ds-footer { border-top: 1px solid rgba(255,255,255,0.06); }
.demo-site--prism .ds-footer-logo { background: linear-gradient(135deg, #FF1493, #8B5CF6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 900; }
.demo-site--prism .ds-footer-col h4 { background: linear-gradient(135deg, #FF1493, #8B5CF6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.demo-site--prism .ds-footer-bottom { border-color: rgba(255,255,255,0.06); }

/* ── Brand: Aether — process/pricing ── */
.demo-site--aether .ds-process-num { border-color: rgba(212,175,55,0.3); color: #D4AF37; font-family: Georgia, serif; }
.demo-site--aether .ds-process-step h3 { font-family: Georgia, serif; font-weight: 400; }
.demo-site--aether .ds-pricing-card { border-color: rgba(212,175,55,0.08); }
.demo-site--aether .ds-pricing-card--featured { border-color: rgba(212,175,55,0.25); background: rgba(212,175,55,0.04); }
.demo-site--aether .ds-pricing-badge { background: #D4AF37; color: #0d0b08; }
.demo-site--aether .ds-pricing-price { color: #D4AF37; font-family: Georgia, serif; }
.demo-site--aether .ds-pricing-name { font-family: Georgia, serif; font-weight: 400; }
.demo-site--aether .ds-pricing-features li { border-color: rgba(212,175,55,0.06); }

/* ── Brand: Volt — process/pricing ── */
.demo-site--volt .ds-process-num { border-color: #0066FF; color: #0066FF; border-radius: 0; }
.demo-site--volt .ds-process-step h3 { text-transform: uppercase; letter-spacing: 0.06em; }
.demo-site--volt .ds-process-arrow { color: #0066FF; }
.demo-site--volt .ds-pricing-card { border-radius: 0; border-color: rgba(0,102,255,0.1); }
.demo-site--volt .ds-pricing-card--featured { border-color: #0066FF; background: rgba(0,102,255,0.06); }
.demo-site--volt .ds-pricing-badge { background: #0066FF; color: #fff; border-radius: 0; }
.demo-site--volt .ds-pricing-price { font-weight: 900; }
.demo-site--volt .ds-pricing-name { text-transform: uppercase; letter-spacing: 0.06em; }
.demo-site--volt .ds-pricing-features li { border-color: rgba(0,102,255,0.08); }

/* ── Brand: Bloom — process/pricing ── */
.demo-site--bloom .ds-process { background: #fff; }
.demo-site--bloom .ds-process-num { border-color: #9CAF88; color: #9CAF88; }
.demo-site--bloom .ds-process-step h3 { color: #2d2a26; }
.demo-site--bloom .ds-pricing-card { background: #fff; border-color: rgba(0,0,0,0.06); }
.demo-site--bloom .ds-pricing-card--featured { border-color: #9CAF88; box-shadow: 0 8px 32px rgba(156,175,136,0.12); }
.demo-site--bloom .ds-pricing-badge { background: #9CAF88; color: #fff; }
.demo-site--bloom .ds-pricing-price { color: #9CAF88; font-family: Georgia, serif; }
.demo-site--bloom .ds-pricing-features li { border-color: rgba(0,0,0,0.06); color: #2d2a26; }

/* ── Brand: Prism — process/pricing ── */
.demo-site--prism .ds-process-num { border-color: rgba(139,92,246,0.4); background: linear-gradient(135deg, rgba(255,20,147,0.1), rgba(139,92,246,0.1)); color: #fff; }
.demo-site--prism .ds-process-step h3 { background: linear-gradient(135deg, #FF1493, #8B5CF6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.demo-site--prism .ds-pricing-card { border-color: rgba(255,255,255,0.06); background: rgba(255,255,255,0.02); }
.demo-site--prism .ds-pricing-card--featured { border-color: rgba(139,92,246,0.3); background: rgba(139,92,246,0.06); }
.demo-site--prism .ds-pricing-badge { background: linear-gradient(135deg, #FF1493, #8B5CF6); color: #fff; }
.demo-site--prism .ds-pricing-price { background: linear-gradient(135deg, #FF1493, #8B5CF6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.demo-site--prism .ds-pricing-features li { border-color: rgba(255,255,255,0.04); }

/* ── Forge — dark corporate structured ── */
.demo-site--forge { background: #090b10; color: #e2e4e9; }
.demo-site--forge .ds-nav { background: rgba(9,11,16,0.92); border-color: rgba(59,130,246,0.08); }
.demo-site--forge .ds-nav-logo { font-weight: 900; letter-spacing: 0.12em; font-size: 1rem; color: #e2e4e9; }
.demo-site--forge .ds-nav-cta { background: #3B82F6; color: #fff; border-radius: 6px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.65rem; }
.demo-site--forge .ds-nav-cta:hover { background: #2563eb; box-shadow: 0 4px 20px rgba(59,130,246,0.3); }
.demo-site--forge .ds-hero { background: linear-gradient(160deg, #090b10 40%, #0f172a 100%); text-align: left; border-bottom: 1px solid rgba(59,130,246,0.08); position: relative; overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; }
.demo-site--forge .ds-hero.ds-hero--img { background-size: cover; background-position: center 30%; }
.demo-site--forge .ds-hero.ds-hero--img::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #090b10 0%, rgba(9,11,16,0.7) 40%, rgba(9,11,16,0.3) 100%); z-index: 0; }
.demo-site--forge .ds-hero.ds-hero--img .ds-hero-content { position: relative; z-index: 1; }
.demo-site--forge .ds-hero-content { max-width: 100%; }
.demo-site--forge .ds-hero-title { text-align: left; font-weight: 800; letter-spacing: -0.03em; }
.demo-site--forge .ds-hero-sub { text-align: left; color: rgba(226,228,233,0.55); }
.demo-site--forge .ds-hero-actions { justify-content: flex-start; }
.demo-site--forge .ds-btn-primary { background: #3B82F6; color: #fff; border-radius: 6px; font-weight: 700; letter-spacing: 0.02em; }
.demo-site--forge .ds-btn-primary:hover { background: #2563eb; box-shadow: 0 8px 32px rgba(59,130,246,0.25); }
.demo-site--forge .ds-btn-secondary { border-color: rgba(59,130,246,0.25); color: #3B82F6; border-radius: 6px; font-weight: 600; }
.demo-site--forge .ds-btn-secondary:hover { border-color: #3B82F6; background: rgba(59,130,246,0.06); }
.demo-site--forge .ds-stats { background: rgba(59,130,246,0.04); border-color: rgba(59,130,246,0.08); }
.demo-site--forge .ds-stat { border-color: rgba(59,130,246,0.08); }
.demo-site--forge .ds-stat-num { color: #3B82F6; font-weight: 900; }
.demo-site--forge .ds-section-title { font-weight: 800; letter-spacing: -0.01em; }
.demo-site--forge .ds-features-grid { gap: 1px; }
.demo-site--forge .ds-feature-card { border: 1px solid rgba(59,130,246,0.06); background: rgba(255,255,255,0.015); }
.demo-site--forge .ds-feature-card:hover { background: rgba(59,130,246,0.05); border-color: rgba(59,130,246,0.2); }
.demo-site--forge .ds-feature-card h3 { color: #3B82F6; font-weight: 700; letter-spacing: 0.02em; font-size: 0.8rem; }
.demo-site--forge .ds-testimonial { background: rgba(255,255,255,0.02); border: 1px solid rgba(59,130,246,0.06); border-radius: 12px; }
.demo-site--forge .ds-testimonial:hover { border-color: rgba(59,130,246,0.2); box-shadow: 0 8px 32px rgba(59,130,246,0.06); }
.demo-site--forge .ds-testimonial-avatar { background: #3B82F6; color: #fff; font-weight: 800; border-radius: 8px; }
.demo-site--forge .ds-testimonial-quote { color: rgba(226,228,233,0.8); }
.demo-site--forge .ds-cta-banner { background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(37,99,235,0.06)); border-top: 1px solid rgba(59,130,246,0.08); border-bottom: 1px solid rgba(59,130,246,0.08); }
.demo-site--forge .ds-cta-banner h2 { font-weight: 800; }
.demo-site--forge .ds-footer { border-top: 1px solid rgba(59,130,246,0.08); }
.demo-site--forge .ds-footer-logo { font-weight: 900; letter-spacing: 0.12em; }
.demo-site--forge .ds-footer-col h4 { color: #3B82F6; }
.demo-site--forge .ds-footer-bottom { border-color: rgba(59,130,246,0.06); }
.demo-site--forge .ds-process-num { border-color: rgba(59,130,246,0.3); color: #3B82F6; border-radius: 8px; font-weight: 800; }
.demo-site--forge .ds-process-step:hover .ds-process-num { background: rgba(59,130,246,0.08); }
.demo-site--forge .ds-process-step h3 { font-weight: 700; }
.demo-site--forge .ds-process-arrow { color: #3B82F6; opacity: 0.4; }
.demo-site--forge .ds-pricing-card { border-color: rgba(59,130,246,0.06); border-radius: 12px; background: rgba(255,255,255,0.015); }
.demo-site--forge .ds-pricing-card--featured { border-color: rgba(59,130,246,0.25); background: rgba(59,130,246,0.04); }
.demo-site--forge .ds-pricing-badge { background: #3B82F6; color: #fff; border-radius: 6px; }
.demo-site--forge .ds-pricing-price { color: #3B82F6; font-weight: 900; }
.demo-site--forge .ds-pricing-name { font-weight: 700; letter-spacing: 0.02em; }
.demo-site--forge .ds-pricing-features li { border-color: rgba(59,130,246,0.06); }

/* ── Atelier (hitoba-style — avant-garde workspace design portfolio) ── */
.atelier-site {
  width: 100%; min-height: 100%;
  background: #fff; color: #1a1a1a;
  font-family: 'Inter', sans-serif;
  position: relative; z-index: 1;
  --at-serif: 'DM Serif Display', Georgia, serif;
  --at-sans: 'Inter', -apple-system, sans-serif;
  --at-pad: clamp(1.8rem, 4vw, 3.2rem);
}
.atelier-site * { box-sizing: border-box; margin: 0; padding: 0; }
.atelier-site a { text-decoration: none; color: inherit; }
.atelier-site button { font-family: inherit; cursor: pointer; }

/* Nav — hides on scroll down, shows on scroll up */
.atelier-nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem var(--at-pad);
  background: transparent;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), background 0.5s, box-shadow 0.5s;
}
.atelier-nav.nav-solid {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.atelier-nav.nav-hidden { transform: translateY(-110%); }
.atelier-nav-logo {
  font-weight: 500; letter-spacing: 0.28em; font-size: 0.7rem;
  color: #fff; text-transform: uppercase; transition: color 0.5s;
}
.atelier-nav.nav-solid .atelier-nav-logo { color: #1a1a1a; }
.atelier-nav-links { display: flex; gap: 2.2rem; align-items: center; }
.atelier-nav-links a {
  font-size: 0.62rem; font-weight: 400; letter-spacing: 0.08em;
  color: #fff; text-transform: uppercase; transition: color 0.3s, letter-spacing 0.4s;
  position: relative;
}
.atelier-nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: currentColor;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.atelier-nav-links a:hover::after { width: 100%; }
.atelier-nav-links a:hover { letter-spacing: 0.12em; }
.atelier-nav.nav-solid .atelier-nav-links a { color: #666; }
.atelier-nav.nav-solid .atelier-nav-links a:hover { color: #1a1a1a; }
.atelier-nav-cta {
  font-size: 0.58rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.65rem 1.6rem;
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.atelier-nav-cta:hover { background: #fff; color: #1a1a1a; border-color: #fff; }
.atelier-nav.nav-solid .atelier-nav-cta { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.atelier-nav.nav-solid .atelier-nav-cta:hover { background: #333; border-color: #333; }

/* ── Hero — sticky full-screen, zoom-out-to-frame on scroll ── */
.atelier-hero-wrap { position: relative; }
.atelier-hero {
  position: sticky; top: 0; left: 0;
  width: 100%; height: 100vh;
  overflow: visible; background: #fff;
  z-index: 1;
}
.atelier-hero-spacer { position: relative; z-index: 0; pointer-events: none; }

/* The shrinking frame */
.atelier-hero-frame {
  position: absolute; inset: 0;
  overflow: hidden; will-change: top, left, right, bottom;
  background: #0a0a0a;
  transition: border-radius 0.3s ease;
}
/* Slides */
.atelier-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.atelier-slide.active { opacity: 1; }
.atelier-slide-bg {
  position: absolute; inset: -20px;
  background-size: cover; background-position: center;
  will-change: transform;
}
/* Ken Burns slow drift while active */
.atelier-slide.active .atelier-slide-bg {
  animation: atelierDrift 12s ease-in-out infinite alternate;
}
@keyframes atelierDrift {
  0% { transform: scale(1.06) translate(0, 0); }
  100% { transform: scale(1.08) translate(-8px, -4px); }
}
/* Cinematic vignette overlay */
.atelier-slide-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(0,0,0,0.45) 0%, transparent 65%),
    radial-gradient(ellipse at 50% 0%, rgba(0,0,0,0.15) 0%, transparent 50%),
    linear-gradient(to top, rgba(0,0,0,0.25) 0%, transparent 40%);
}

/* ── On-photo UI — fades away on scroll ── */
.atelier-frame-ui {
  position: absolute; bottom: 2rem; left: 2.5rem; right: 2.5rem;
  z-index: 5; display: flex; justify-content: space-between; align-items: flex-end;
  will-change: opacity; transition: opacity 0.3s ease;
}
.atelier-frame-ui-center {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
}
.atelier-frame-arrow {
  animation: atelierArrowBob 2.5s ease-in-out infinite;
}
@keyframes atelierArrowBob {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(5px); opacity: 0.9; }
}
/* "See Detail" — bottom left */
.atelier-frame-detail {
  font-size: 0.5rem; font-weight: 400; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
  display: flex; align-items: center; gap: 0.5rem;
  transition: color 0.3s;
}
.atelier-frame-detail:hover { color: rgba(255,255,255,0.8); }
.atelier-frame-detail::before {
  content: ''; width: 12px; height: 1px; background: rgba(255,255,255,0.3);
}
/* Counter — bottom right */
.atelier-hero-counter {
  display: flex; align-items: baseline; gap: 0.15rem;
  letter-spacing: 0.1em;
}
.atelier-hero-counter .current {
  font-family: var(--at-serif); font-size: 1.4rem; font-weight: 400;
  color: rgba(255,255,255,0.8);
}
.atelier-hero-counter .sep {
  width: 16px; height: 1px; background: rgba(255,255,255,0.2);
  display: inline-block; margin: 0 0.4rem; vertical-align: middle;
}
.atelier-hero-counter .total {
  font-size: 0.55rem; color: rgba(255,255,255,0.25); font-weight: 300;
}
/* Thin progress bar — bottom of frame */
.atelier-hero-progress {
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px; z-index: 5;
  background: rgba(255,255,255,0.1);
  will-change: opacity;
}
.atelier-hero-bar {
  height: 100%; width: 0%;
  background: rgba(255,255,255,0.7);
  transition: width 0.05s linear;
}

/* ── Hero info — revealed in the white border below frame ── */
.atelier-hero-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  z-index: 2; padding: 0 var(--at-pad);
  display: flex; justify-content: space-between; align-items: flex-end;
  will-change: opacity, transform;
}
.atelier-hero-info-left { flex: 1; }
.atelier-hero-info-cat {
  font-size: 0.5rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: #aaa; margin-bottom: 0.5rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.atelier-hero-info-cat::before {
  content: ''; width: 16px; height: 1px; background: #ccc;
}
.atelier-hero-info-title {
  font-family: var(--at-serif);
  font-size: clamp(1.4rem, 3.2vw, 2.2rem); font-weight: 400;
  letter-spacing: -0.01em; line-height: 1.1; color: #1a1a1a;
  margin: 0 0 0.5rem;
}
.atelier-hero-info-meta {
  font-size: 0.6rem; font-weight: 400; letter-spacing: 0.06em;
  color: #aaa; display: flex; gap: 0.4rem; align-items: center;
}
.atelier-hero-info-meta span { display: flex; align-items: center; gap: 0.4rem; }
.atelier-hero-info-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #ccc; flex-shrink: 0; }
.atelier-hero-info-right { display: flex; align-items: center; gap: 1.5rem; }
.atelier-hero-info-link {
  font-size: 0.55rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: #1a1a1a;
  display: flex; align-items: center; gap: 0.6rem;
  transition: gap 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.atelier-hero-info-link:hover { gap: 1rem; }
.atelier-hero-info-link-arrow {
  width: 24px; height: 1px; background: #1a1a1a; position: relative;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.atelier-hero-info-link:hover .atelier-hero-info-link-arrow { width: 36px; }
.atelier-hero-info-link-arrow::after {
  content: ''; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px; border-right: 1px solid #1a1a1a;
  border-top: 1px solid #1a1a1a; transform: rotate(45deg);
}

/* ── Project cards — staggered reveal, hover overlays ── */
.atelier-project-list { padding: 0; }
.atelier-project-card {
  padding: var(--at-pad); cursor: pointer;
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.atelier-project-card.visible { opacity: 1; transform: translateY(0); }
.atelier-project-card-frame {
  width: 100%; aspect-ratio: 16/9; overflow: hidden;
  background: #f0efed; position: relative;
}
.atelier-project-card-photo {
  width: 100%; height: 100%;
  background-size: cover; background-position: center;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.atelier-project-card:hover .atelier-project-card-photo { transform: scale(1.05); }
/* Hover overlay */
.atelier-project-card-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: rgba(0,0,0,0.35);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.atelier-project-card:hover .atelier-project-card-overlay { opacity: 1; }
.atelier-project-card-overlay-text {
  font-size: 0.6rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: #fff;
  padding: 0.7rem 1.8rem; border: 1px solid rgba(255,255,255,0.5);
  transform: translateY(8px); transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.atelier-project-card:hover .atelier-project-card-overlay-text { transform: translateY(0); }
/* Card details */
.atelier-project-card-details {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 1.2rem 0 0;
}
.atelier-project-card-cat {
  font-size: 0.48rem; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: #bbb; margin-bottom: 0.4rem;
}
.atelier-project-card-title {
  font-family: var(--at-serif);
  font-size: clamp(1.1rem, 2.2vw, 1.6rem); font-weight: 400;
  letter-spacing: -0.01em; color: #1a1a1a; margin: 0 0 0.35rem;
}
.atelier-project-card-meta {
  font-size: 0.58rem; font-weight: 400; letter-spacing: 0.04em; color: #aaa;
}
.atelier-project-card-num {
  font-family: var(--at-serif);
  font-size: 1.1rem; font-weight: 400; color: #e0e0e0;
  line-height: 1;
}

/* ── Thin divider between project cards ── */
.atelier-project-divider {
  height: 1px; margin: 0 var(--at-pad);
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.06) 20%, rgba(0,0,0,0.06) 80%, transparent);
}

/* ── Sections — fade-up reveal ── */
.atelier-section {
  padding: 5rem var(--at-pad);
  opacity: 0; transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.atelier-section.visible { opacity: 1; transform: translateY(0); }

/* ── About — editorial layout with large statement number ── */
.atelier-about {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: start; border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 5rem;
}
.atelier-about-label {
  font-size: 0.5rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: #aaa; margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.atelier-about-label::before { content: ''; width: 16px; height: 1px; background: #ccc; }
.atelier-about-title {
  font-family: var(--at-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 400;
  letter-spacing: -0.02em; line-height: 1.15; color: #1a1a1a;
}
.atelier-about-stat {
  font-family: var(--at-serif);
  font-size: clamp(3rem, 7vw, 5rem); font-weight: 400;
  color: #f0efed; line-height: 0.9; margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}
.atelier-about-text {
  font-size: 0.85rem; font-weight: 350; color: #666;
  line-height: 1.85; max-width: 440px;
}
.atelier-about-link {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-top: 1.8rem;
  font-size: 0.55rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: #1a1a1a;
  transition: gap 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.atelier-about-link:hover { gap: 1rem; }
.atelier-about-link-arrow {
  width: 20px; height: 1px; background: #1a1a1a; position: relative;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.atelier-about-link:hover .atelier-about-link-arrow { width: 32px; }
.atelier-about-link-arrow::after {
  content: ''; position: absolute; right: 0; top: -3px;
  width: 6px; height: 6px; border-right: 1px solid #1a1a1a;
  border-top: 1px solid #1a1a1a; transform: rotate(45deg);
}

/* ── Contact CTA — cinematic ── */
.atelier-cta {
  text-align: center; padding: 6rem var(--at-pad);
  background: #f7f6f4; border-top: 1px solid rgba(0,0,0,0.04);
  position: relative;
}
.atelier-cta::before {
  content: 'ATELIER'; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--at-serif); font-size: clamp(4rem, 12vw, 8rem);
  color: rgba(0,0,0,0.02); letter-spacing: 0.1em; pointer-events: none;
  white-space: nowrap;
}
.atelier-cta h2 {
  font-family: var(--at-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 400;
  color: #1a1a1a; margin: 0 0 0.8rem;
}
.atelier-cta p { font-size: 0.82rem; color: #999; margin: 0 0 2rem; font-weight: 350; line-height: 1.7; }
.atelier-cta-btn {
  display: inline-block; padding: 1rem 3rem;
  background: #1a1a1a; color: #fff; border: none;
  font-size: 0.58rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.atelier-cta-btn:hover { background: #333; letter-spacing: 0.18em; padding: 1rem 3.4rem; }

/* ── Footer — refined 3-column ── */
.atelier-footer {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 4rem; align-items: start;
  padding: 3.5rem var(--at-pad) 2.5rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.atelier-footer-brand { }
.atelier-footer-logo {
  font-weight: 500; letter-spacing: 0.22em; font-size: 0.65rem;
  text-transform: uppercase; color: #1a1a1a; margin-bottom: 0.8rem;
}
.atelier-footer-tagline {
  font-size: 0.72rem; font-weight: 350; color: #999; line-height: 1.6;
  max-width: 260px;
}
.atelier-footer-col h4 {
  font-size: 0.5rem; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: #aaa; margin-bottom: 1rem;
}
.atelier-footer-col a {
  display: block; font-size: 0.7rem; color: #666; margin-bottom: 0.6rem;
  transition: color 0.3s;
}
.atelier-footer-col a:hover { color: #1a1a1a; }
.atelier-footer-bottom {
  grid-column: 1 / -1; padding-top: 2rem; margin-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.04);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.55rem; color: #ccc; letter-spacing: 0.04em;
}
.atelier-footer-bottom a { color: #aaa; }
.atelier-footer-bottom a:hover { color: #1a1a1a; }

/* ── Gallery (Aether) ── */
.ds-gallery { padding: 3.5rem 2rem; }
.ds-gallery-scroll {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 0 1.5rem;
  scrollbar-width: none;
}
.ds-gallery-scroll::-webkit-scrollbar { display: none; }
.ds-gallery-item {
  flex: 0 0 260px;
  scroll-snap-align: start;
}
.ds-gallery-img {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.ds-gallery-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}
.ds-gallery-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.3));
}
.ds-gallery-item:hover .ds-gallery-img {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.ds-gallery-label {
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0.8rem 0 0.2rem;
}
.ds-gallery-caption {
  font-size: 0.7rem;
  opacity: 0.45;
  line-height: 1.5;
}
.demo-site--aether .ds-gallery-img {
  background: linear-gradient(160deg, rgba(212,175,55,0.12) 0%, rgba(212,175,55,0.02) 100%);
  border-color: rgba(212,175,55,0.1);
}
.demo-site--aether .ds-gallery-label { font-family: Georgia, serif; font-weight: 400; color: #D4AF37; }

/* ── Specs Table (Volt) ── */
.ds-specs { padding: 3.5rem 2rem; }
.ds-specs-table {
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
}
.ds-specs-header {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ds-specs-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s;
}
.ds-specs-row:last-child { border-bottom: none; }
.ds-specs-row:hover { background: rgba(255,255,255,0.02); }
.ds-specs-cell {
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  font-weight: 500;
}
.ds-specs-label-cell {
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
}
.ds-specs-model {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
}
.ds-specs-model--featured { color: #0066FF; }
.ds-specs-cell--featured { font-weight: 700; text-align: center; }
.ds-specs-cell:not(.ds-specs-label-cell) { text-align: center; }
.demo-site--volt .ds-specs-table { border-color: rgba(0,102,255,0.15); border-radius: 0; }
.demo-site--volt .ds-specs-header { background: rgba(0,102,255,0.06); border-color: rgba(0,102,255,0.15); }
.demo-site--volt .ds-specs-row { border-color: rgba(0,102,255,0.06); }
.demo-site--volt .ds-specs-row:hover { background: rgba(0,102,255,0.04); }
.demo-site--volt .ds-specs-cell--featured { color: #0066FF; }

/* ── Editorial (Bloom) ── */
.ds-editorial { padding: 0; }
.ds-editorial-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
}
.ds-editorial-block--reverse { direction: rtl; }
.ds-editorial-block--reverse > * { direction: ltr; }
.ds-editorial-visual {
  position: relative;
  overflow: hidden;
}
.ds-editorial-img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  position: relative;
}
.ds-editorial-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ds-editorial-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.03) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: dsShimmer 4s ease infinite;
}
.ds-editorial-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2.5rem;
}
.ds-editorial-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.4;
  margin-bottom: 0.8rem;
}
.ds-editorial-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.ds-editorial-body {
  font-size: 0.82rem;
  line-height: 1.75;
  opacity: 0.65;
  margin-bottom: 1.5rem;
}
.ds-editorial-stat { display: flex; align-items: baseline; gap: 0.5rem; }
.ds-editorial-stat-num { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.ds-editorial-stat-label { font-size: 0.7rem; opacity: 0.4; text-transform: uppercase; letter-spacing: 0.06em; }
.demo-site--bloom .ds-editorial-img {
  background: linear-gradient(135deg, #e8e2d8, #d4cdc2);
}
.demo-site--bloom .ds-editorial-title { font-family: Georgia, serif; font-weight: 400; color: #2d2a26; }
.demo-site--bloom .ds-editorial-body { color: rgba(45,42,38,0.65); }
.demo-site--bloom .ds-editorial-stat-num { color: #9CAF88; font-family: Georgia, serif; }
.demo-site--bloom .ds-editorial-label { color: #9CAF88; opacity: 1; }

/* ── Portfolio Grid (Prism) ── */
.ds-portfolio { padding: 3.5rem 2rem; }
.ds-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 780px;
  margin: 0 auto;
}
.ds-portfolio-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
  cursor: default;
}
.ds-portfolio-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
  border-color: rgba(255,255,255,0.12);
}
.ds-portfolio-thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  position: relative;
  overflow: hidden;
}
.ds-portfolio-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.ds-portfolio-item:hover .ds-portfolio-thumb img {
  transform: scale(1.05);
}
.ds-portfolio-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.04));
}
.ds-portfolio-info { padding: 0.8rem 1rem 0.4rem; }
.ds-portfolio-client { font-size: 0.82rem; font-weight: 700; margin: 0; }
.ds-portfolio-type { font-size: 0.65rem; opacity: 0.4; }
.ds-portfolio-result {
  display: block;
  padding: 0 1rem 0.8rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.demo-site--prism .ds-portfolio-thumb {
  background: linear-gradient(135deg, rgba(255,20,147,0.08), rgba(139,92,246,0.08), rgba(6,182,212,0.08));
}
.demo-site--prism .ds-portfolio-item:hover {
  border-color: rgba(139,92,246,0.3);
  box-shadow: 0 16px 48px rgba(139,92,246,0.1);
}
.demo-site--prism .ds-portfolio-result {
  background: linear-gradient(135deg, #FF1493, #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Timeline (Forge) ── */
.ds-timeline { padding: 3.5rem 2rem; }
.ds-timeline-track {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  padding-left: 32px;
}
.ds-timeline-track::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
}
.ds-timeline-item {
  position: relative;
  padding: 0 0 2rem 2rem;
}
.ds-timeline-item:last-child { padding-bottom: 0; }
.ds-timeline-marker {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.ds-timeline-item:hover .ds-timeline-marker {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 12px rgba(255,255,255,0.08);
}
.ds-timeline-content {
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.ds-timeline-item:hover .ds-timeline-content {
  transform: translateX(4px);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.ds-timeline-year {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.4;
}
.ds-timeline-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0.3rem 0 0.15rem;
}
.ds-timeline-location {
  font-size: 0.68rem;
  opacity: 0.4;
}
.ds-timeline-detail {
  font-size: 0.72rem;
  opacity: 0.55;
  margin-top: 0.5rem;
  line-height: 1.5;
}
.demo-site--forge .ds-timeline-track::before { background: linear-gradient(180deg, rgba(59,130,246,0.2), rgba(59,130,246,0.02)); }
.demo-site--forge .ds-timeline-marker { border-color: rgba(59,130,246,0.3); }
.demo-site--forge .ds-timeline-item:hover .ds-timeline-marker {
  border-color: #3B82F6;
  background: rgba(59,130,246,0.15);
  box-shadow: 0 0 12px rgba(59,130,246,0.2);
}
.demo-site--forge .ds-timeline-content { border-color: rgba(59,130,246,0.06); }
.demo-site--forge .ds-timeline-item:hover .ds-timeline-content { border-color: rgba(59,130,246,0.2); box-shadow: 0 8px 32px rgba(59,130,246,0.06); }
.demo-site--forge .ds-timeline-year { color: #3B82F6; opacity: 1; }
.demo-site--forge .ds-timeline-title { color: #e2e4e9; }

/* (Atelier now uses fully custom layout — no generic overrides needed) */

/* ── Forge: Timeline Images ── */
.ds-timeline-img {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, rgba(59,130,246,0.06), rgba(59,130,246,0.02));
  margin-bottom: 0.75rem;
}
.ds-timeline-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.ds-timeline-item:hover .ds-timeline-img img { transform: scale(1.04); }
.ds-timeline-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(9,11,16,0.4));
  pointer-events: none;
}

/* ── Forge: Showcase ── */
.ds-showcase { padding: 3.5rem 2rem; }
.ds-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.ds-showcase-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(59,130,246,0.06);
  background: rgba(255,255,255,0.015);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.ds-showcase-card:hover {
  border-color: rgba(59,130,246,0.2);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 40px rgba(59,130,246,0.06);
}
.ds-showcase-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, rgba(59,130,246,0.06), rgba(59,130,246,0.02));
}
.ds-showcase-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.ds-showcase-card:hover .ds-showcase-img img { transform: scale(1.06); }
.ds-showcase-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(9,11,16,0.3));
  pointer-events: none;
}
.ds-showcase-body { padding: 1.25rem 1.5rem 1.5rem; }
.ds-showcase-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #e2e4e9;
  margin: 0 0 0.5rem;
  letter-spacing: 0.01em;
}
.ds-showcase-desc {
  font-size: 0.72rem;
  color: rgba(226,228,233,0.5);
  line-height: 1.6;
  margin: 0;
}

/* ── Forge: Team Section ── */
.ds-team { padding: 0 2rem; }
.ds-team-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(59,130,246,0.08);
  min-height: 360px;
}
.ds-team-img {
  position: relative;
  overflow: hidden;
}
.ds-team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ds-team-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, #090b10);
  pointer-events: none;
}
.ds-team-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 3rem;
  background: rgba(255,255,255,0.01);
}
.ds-team-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #3B82F6;
  margin-bottom: 0.75rem;
}
.ds-team-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: #e2e4e9;
}
.ds-team-desc {
  font-size: 0.78rem;
  color: rgba(226,228,233,0.5);
  line-height: 1.7;
  margin: 0 0 1.5rem;
}
.ds-team-stats {
  display: flex;
  gap: 2rem;
  border-top: 1px solid rgba(59,130,246,0.08);
  padding-top: 1.25rem;
}
.ds-team-stat { display: flex; flex-direction: column; gap: 0.1rem; }
.ds-team-stat-num { font-size: 1.2rem; font-weight: 800; color: #3B82F6; letter-spacing: -0.02em; }
.ds-team-stat-label { font-size: 0.6rem; color: rgba(226,228,233,0.35); text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Demo Site Responsive ── */
@media (max-width: 768px) {
  .ds-nav-links { display: none; }
  .ds-hero { padding: 3rem 1.5rem 2.5rem; min-height: 280px; }
  .ds-hero-title { font-size: 1.8rem; }
  .ds-stats { grid-template-columns: repeat(2, 1fr); }
  .ds-stat:nth-child(2) { border-right: none; }
  .ds-features-grid { grid-template-columns: 1fr; }
  .ds-feature-card { border-right: none !important; }
  .ds-testimonials-grid { grid-template-columns: 1fr; }
  .ds-process-steps { flex-direction: column; align-items: center; }
  .ds-process-arrow { display: none; }
  .ds-pricing-grid { grid-template-columns: 1fr; max-width: 320px; }
  .ds-pricing-card--featured { transform: none; }
  .ds-pricing-card--featured:hover { transform: translateY(-4px); }
  .ds-footer-top { flex-direction: column; }
  .ds-footer-cols { flex-wrap: wrap; gap: 1.5rem; }
  .ds-cta-banner { padding: 3rem 1.5rem; }
  .ds-cta-banner h2 { font-size: 1.4rem; }
  .ds-editorial-block { grid-template-columns: 1fr; }
  .ds-editorial-block--reverse { direction: ltr; }
  .ds-editorial-img { min-height: 200px; }
  .ds-editorial-text { padding: 2rem 1.5rem; }
  .ds-portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .ds-gallery-item { flex: 0 0 200px; }
  .ds-specs-table { max-width: 100%; }
  .ds-specs-cell { padding: 0.6rem 0.5rem; font-size: 0.72rem; }
  .ds-timeline-track { padding-left: 24px; }
  .ds-showcase-grid { grid-template-columns: 1fr; }
  .ds-team-split { grid-template-columns: 1fr; }
  .ds-team-img { max-height: 220px; }
  .ds-team-img::after { background: linear-gradient(180deg, transparent 40%, #090b10); }
  .ds-team-text { padding: 1.5rem; }
  .ds-team-title { font-size: 1.2rem; }
  .ds-team-stats { gap: 1.25rem; }
}

/* ─── Modal ───────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: scale(0.96) translateY(16px);
  transition: transform 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
  box-shadow: 0 40px 120px rgba(0,0,0,0.5), 0 0 1px rgba(255,255,255,0.1);
}

.modal::-webkit-scrollbar { width: 5px; }
.modal::-webkit-scrollbar-track { background: transparent; }
.modal::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }
.modal::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 210;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(8,8,12,0.95);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, opacity 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}

.modal-close:hover { background: rgba(255,255,255,0.1); transform: scale(1.1); }
.modal-close:active { transform: scale(0.95); }

.modal-header {
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-elevated);
  transition: padding 0.3s ease, box-shadow 0.3s ease;
  will-change: padding;
}

.modal-header.compact {
  padding: 0.75rem 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.modal-category {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  transition: font-size 0.25s ease-out, margin 0.25s ease-out;
}

.modal-header.compact .modal-category {
  font-size: 0.58rem;
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.5rem 0;
  transition: font-size 0.25s ease-out, margin 0.25s ease-out;
}

.modal-header.compact .modal-title {
  font-size: 1.05rem;
  margin: 0.15rem 0 0;
}

.modal-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 0.8rem;
  overflow: hidden;
  max-height: 100px;
  transition: opacity 0.2s ease-out, max-height 0.25s ease-out, margin 0.25s ease-out;
}

.modal-header.compact .modal-desc {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
}

.modal-tech {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  max-height: 60px;
  overflow: hidden;
  transition: opacity 0.2s ease-out, max-height 0.25s ease-out;
}

.modal-header.compact .modal-tech {
  max-height: 0;
  opacity: 0;
}

.modal-body {
  position: relative;
  background: #060609;
  min-height: 300px;
}

.modal-body canvas {
  width: 100%;
  height: 100%;
  display: block;
  min-height: 400px;
}

/* ─── Code Snippets ───────────────────────────────────────── */

.snippets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.snippet-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
}

.snippet-card:hover {
  border-color: rgba(129,140,248,0.2);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.2), 0 0 24px rgba(129,140,248,0.04);
}

.snippet-header {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.snippet-title {
  font-size: 0.85rem;
  font-weight: 600;
}

.snippet-lang {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: rgba(129,140,248,0.1);
  color: var(--accent2);
  border: 1px solid rgba(129,140,248,0.15);
}

.snippet-code {
  padding: 1.2rem;
  overflow-x: auto;
}

.snippet-code pre {
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--text-dim);
  white-space: pre;
  tab-size: 2;
}

.snippet-code .kw { color: #c792ea; }
.snippet-code .fn { color: #82aaff; }
.snippet-code .str { color: #c3e88d; }
.snippet-code .num { color: #f78c6c; }
.snippet-code .cm { color: rgba(255,255,255,0.2); font-style: italic; }
.snippet-code .op { color: #89ddff; }
.snippet-code .prop { color: #f07178; }

.snippet-footer {
  padding: 0.8rem 1.2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.snippet-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.snippet-link {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, letter-spacing 0.2s;
  text-decoration: none;
}

.snippet-link:hover {
  opacity: 1;
  letter-spacing: 0.02em;
}

/* ─── About ───────────────────────────────────────────────── */

.about-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-intro {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.about-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-dim), rgba(110,231,183,0.15));
  border: 1px solid rgba(110,231,183,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.about-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.about-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.about-role {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin: 0.15rem 0 0;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: 1.2rem;
}

.about-text p:last-child { margin-bottom: 0; }

.about-text em { color: var(--accent); font-style: normal; font-weight: 600; }

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.about-stat { display: flex; flex-direction: column; gap: 0.15rem; }
.about-stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.about-stat-label {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.about-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.about-social {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.about-social:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

.about-social svg { flex-shrink: 0; }

.about-right {
  position: sticky;
  top: 6rem;
}

.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  cursor: default;
}

.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(110,231,183,0.08);
}

/* ─── Section Dividers ────────────────────────────────────── */

#snippets::before,
#about::before {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110,231,183,0.15), transparent);
  margin: 0 auto 2.5rem;
}

/* ─── Contact ─────────────────────────────────────────────── */

#contact {
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110,231,183,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.contact-content {
  text-align: center;
  padding: 3rem 0;
  position: relative;
  z-index: 1;
}

.contact-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.75rem 0 1rem;
  line-height: 1.15;
}

.contact-sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-socials {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.contact-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.contact-social-link {
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.contact-social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(110,231,183,0.1);
}

.contact-social-link svg { flex-shrink: 0; }

/* ─── Footer ──────────────────────────────────────────────── */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  transition: border-color 0.3s;
}

.footer:hover { border-top-color: rgba(255,255,255,0.1); }

.footer-credit strong { color: var(--accent); font-weight: 700; transition: color 0.2s; letter-spacing: 0.02em; }
.footer-credit:hover strong { color: var(--text); }

/* ─── Back to Top ─────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(8,8,12,0.95);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.25s ease, color 0.25s ease;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── Animations ──────────────────────────────────────────── */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ─── Scroll Reveal ───────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

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

/* ─── Responsive ──────────────────────────────────────────── */

@media (max-width: 768px) {
  .cursor-glow { display: none; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav { padding: 0.8rem 1.2rem; }
  .nav.scrolled { padding: 0.6rem 1.2rem; }
  .hero { padding: 5.5rem 1.2rem 3rem; min-height: auto; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
  .hero-scroll-hint { position: relative; bottom: auto; left: auto; transform: none; margin-top: 2rem; }
  .hero-content { max-width: 100%; display: flex; flex-direction: column; align-items: center; }
  .hero-sub { font-size: 0.92rem; }
  .hero-actions { flex-direction: column; gap: 0.7rem; width: 100%; }
  .btn { justify-content: center; width: 100%; }
  .section { padding: 2.5rem 1rem; }
  .section--dark { padding: 2.5rem 1rem; }
  .section-header { margin-bottom: 1.5rem; }
  .section-sub { font-size: 0.88rem; }
  .filter-bar { gap: 0.35rem; margin-bottom: 1.5rem; overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; padding: 0.35rem 0.25rem 0.5rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn { padding: 0.4rem 0.9rem; font-size: 0.72rem; white-space: nowrap; flex-shrink: 0; }
  .project-grid { grid-template-columns: 1fr; gap: 1rem; }
  .project-card { animation-duration: 0.4s; }
  .project-card:hover { transform: none; box-shadow: none; }
  .card-preview { height: 200px; }
  .project-card--featured .card-preview { height: 220px; }
  .card-content { padding: 1rem 1.2rem 1.2rem; }
  .card-title { font-size: 1.2rem; }
  .project-card--featured .card-title { font-size: 1.3rem; }
  .card-desc { font-size: 0.78rem; margin-bottom: 0.7rem; }
  .card-arrow { display: none; }
  .snippets-grid { grid-template-columns: 1fr; gap: 1rem; }
  .snippet-code { padding: 0.8rem; }
  .snippet-code pre { font-size: 0.68rem; }
  .about-content { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-right { position: static; }
  .about-text p { font-size: 0.92rem; }
  .about-stats { gap: 1.5rem; }
  .about-links { flex-wrap: wrap; }
  .contact-content { padding: 2rem 0; }
  .contact-socials { gap: 0.5rem; }
  .contact-title { font-size: 1.8rem; }
  .contact-sub { font-size: 0.92rem; margin-bottom: 1.5rem; }
  .footer { flex-direction: column; gap: 0.4rem; text-align: center; padding: 1.2rem 1rem; font-size: 0.65rem; }
  /* Modal — full screen on mobile */
  .modal-overlay { padding: 0; align-items: stretch; }
  .modal { max-width: 100%; max-height: 100vh; border-radius: 0; height: 100vh; }
  .modal-close { top: 0.6rem; right: 0.6rem; width: 32px; height: 32px; font-size: 1rem; }
  .modal-header { padding: 1rem 1rem 0.8rem; }
  .modal-title { font-size: 1.3rem; }
  .modal-header.compact .modal-title { font-size: 0.95rem; }
  .modal-desc { font-size: 0.82rem; margin-bottom: 0.6rem; }
  .modal-tech { gap: 0.3rem; }
  .modal-tech .tech-tag { font-size: 0.58rem; padding: 0.2rem 0.5rem; }
  .modal-body { min-height: 300px; }
  .modal-body canvas { min-height: 280px; }
}

@media (max-width: 480px) {
  .hero { padding: 5rem 1rem 2.5rem; }
  .hero-title { font-size: 1.8rem; }
  .hero-badge { font-size: 0.65rem; padding: 0.3rem 0.8rem; margin-bottom: 1rem; }
  .hero-scroll-hint { margin-top: 1.5rem; }
  .section-title { font-size: 1.4rem; }
  .card-preview { height: 170px; }
  .project-card--featured .card-preview { height: 190px; }
  .modal-header { padding: 0.8rem 0.8rem 0.6rem; }
  .modal-title { font-size: 1.1rem; }
  .modal-header.compact .modal-title { font-size: 0.85rem; }
  .contact-title { font-size: 1.5rem; }
}

/* ─── Reduced Motion ──────────────────────────────────────── */

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

/* ─── SHOW CODE Toggle (skeleton-watch reveal) ────────────── */

.card-show-code-btn {
  position: absolute;
  bottom: 1.2rem;
  right: 1.2rem;
  z-index: 6;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(8,8,12,0.92);
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
}

.project-card:hover .card-show-code-btn {
  opacity: 1;
  transform: translateY(0);
}

.card-show-code-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(110,231,183,0.08);
}

.card-show-code-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(110,231,183,0.12);
  opacity: 1;
  transform: translateY(0);
}

/* Code reveal panel — skeleton watch mechanism */
.card-code-panel {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: rgba(4,4,8,0.98);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transition: opacity 0.22s cubic-bezier(0.16,1,0.3,1), clip-path 0.32s cubic-bezier(0.16,1,0.3,1);
  border-radius: inherit;
}

.card-code-panel.visible {
  opacity: 1;
  pointer-events: all;
  clip-path: inset(0 0 0% 0);
}

.card-code-inner {
  height: 100%;
  overflow-y: auto;
  padding: 1.6rem 1.6rem 3rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(110,231,183,0.15) transparent;
  position: relative;
}

.card-code-inner::-webkit-scrollbar { width: 3px; }
.card-code-inner::-webkit-scrollbar-track { background: transparent; }
.card-code-inner::-webkit-scrollbar-thumb { background: rgba(110,231,183,0.15); border-radius: 3px; }

/* Crown jewel — iridescent filigree top border */
.card-code-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--accent) 25%, var(--accent2) 50%, var(--accent) 75%, transparent 95%);
  opacity: 0.85;
  z-index: 2;
}

/* Micro-engraved side rails */
.card-code-panel.visible .card-code-inner::before {
  content: '';
  position: absolute;
  top: 1rem; bottom: 3rem; left: 0; width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(110,231,183,0.08) 20%, rgba(129,140,248,0.06) 80%, transparent);
}

.card-code-lang {
  font-family: var(--mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.6;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-code-lang::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.8;
  animation: pulse 2s ease infinite;
}

.card-code-panel pre {
  font-family: var(--mono);
  font-size: 0.66rem;
  line-height: 1.7;
  color: rgba(232,228,220,0.82);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  tab-size: 2;
  position: relative;
}

/* Syntax tokens — refined Material Night Owl */
.card-code-panel .kw   { color: #c792ea; }
.card-code-panel .fn   { color: #82aaff; }
.card-code-panel .str  { color: #c3e88d; }
.card-code-panel .num  { color: #f78c6c; }
.card-code-panel .cm   { color: rgba(255,255,255,0.22); font-style: italic; }
.card-code-panel .op   { color: #89ddff; }
.card-code-panel .prop { color: #ffcb6b; }

/* Close button — watchmaker's crown */
.card-code-close-btn {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.6rem;
  background: linear-gradient(to top, rgba(4,4,8,0.98), rgba(4,4,8,0.85), transparent);
  border: none;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  text-align: center;
  transition: color 0.2s ease;
  z-index: 3;
}

.card-code-close-btn:hover {
  color: var(--accent);
}

/* Scanning light — the escapement mechanism */
@keyframes scanLine {
  0%   { top: -10%;  opacity: 0; }
  10%  { opacity: 0.5; }
  90%  { opacity: 0.1; }
  100% { top: 110%; opacity: 0; }
}

.card-code-panel.visible::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(110,231,183,0.03), rgba(129,140,248,0.02), transparent);
  animation: scanLine 3.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

/* ─── Digital Art Cards ───────────────────────────────────── */

.project-card--art[data-category="Digital Art"]::after {
  content: 'GENERATIVE';
  position: absolute;
  top: 12px; right: 12px; z-index: 5;
  font-size: 0.52rem; font-weight: 700; letter-spacing: 0.12em;
  padding: 0.22rem 0.55rem; border-radius: 100px;
  background: rgba(129,140,248,0.12); color: var(--accent2);
  border: 1px solid rgba(129,140,248,0.2);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.project-card--art:hover[data-category="Digital Art"]::after {
  background: var(--accent2);
  color: #fff;
  border-color: transparent;
}

/* ─── Tickers Dashboard ───────────────────────────────────── */

#tickers-dashboard {
  padding: 4.5rem 0;
  max-width: 100%;
  background: linear-gradient(180deg, var(--bg) 0%, #080810 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.tickers-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.tickers-header { text-align: center; margin-bottom: 2.5rem; }

.ticker-strip-wrap {
  position: relative; overflow: hidden; margin-bottom: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.04);
  background: rgba(255,255,255,0.015);
}

.ticker-strip-wrap::before, .ticker-strip-wrap::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}

.ticker-strip-wrap::before { left: 0; background: linear-gradient(to right, rgba(8,8,12,1), transparent); }
.ticker-strip-wrap::after  { right: 0; background: linear-gradient(to left,  rgba(8,8,12,1), transparent); }

.ticker-strip {
  display: flex; gap: 0; white-space: nowrap; padding: 0.75rem 0;
}

.ticker-item {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.04);
  min-width: 140px;
}

.ticker-symbol { font-family: var(--mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; color: var(--text); }
.ticker-price  { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.ticker-change { font-family: var(--mono); font-size: 0.64rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.ticker-change.up   { color: #10b981; }
.ticker-change.down { color: #f87171; }

.tickers-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem; margin-top: 2rem;
}

.ticker-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 1.2rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  cursor: default;
}

.ticker-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.12); box-shadow: 0 12px 32px rgba(0,0,0,0.3); }
.ticker-card-symbol { font-family: var(--mono); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 0.3rem; }
.ticker-card-name   { font-size: 0.78rem; font-weight: 600; margin-bottom: 0.6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker-card-price  { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-bottom: 0.3rem; }
.ticker-card-change { font-family: var(--mono); font-size: 0.7rem; font-weight: 600; margin-bottom: 0.8rem; }
.ticker-sparkline   { width: 100%; height: 40px; display: block; }

/* ─── Stats Dashboard ─────────────────────────────────────── */

#stats-dashboard { padding: 4.5rem 2.5rem; max-width: 1200px; margin: 0 auto; }

/* ─── Polymarket-style Chart ─────────────────────────────── */

.pm-chart-wrap {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.pm-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.pm-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
}

.pm-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: default;
}

.pm-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pm-legend-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.01em;
}

.pm-legend-pct {
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pm-range-tabs {
  display: flex;
  gap: 3px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 3px;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
}

.pm-range-btn {
  position: relative;
  padding: 0.4rem 0.75rem;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: rgba(255,255,255,0.35);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.25s ease, background 0.3s ease, box-shadow 0.3s ease, transform 0.15s ease;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pm-range-btn:hover {
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.05);
}
.pm-range-btn:active { transform: scale(0.95); }
.pm-range-btn.active {
  background: linear-gradient(135deg, rgba(110,231,183,0.12), rgba(129,140,248,0.12));
  color: #fff;
  box-shadow: 0 0 12px rgba(110,231,183,0.08), inset 0 1px 0 rgba(255,255,255,0.06);
  border: 1px solid rgba(110,231,183,0.15);
  margin: -1px;
}

.pm-chart-container {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0,0,0,0.2);
}

.pm-chart-container canvas {
  display: block;
  width: 100%;
  cursor: crosshair;
}

.pm-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(12,12,20,0.95);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 10;
  min-width: 160px;
  backdrop-filter: blur(12px);
}

.pm-tt-date {
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pm-tt-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0;
}

.pm-tt-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pm-tt-label {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.5);
  flex: 1;
}

.pm-tt-val {
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pm-crosshair {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.1);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 5;
}

.pm-volume-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.8rem;
  padding: 0.5rem 0.2rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.pm-vol-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pm-vol-value {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  font-variant-numeric: tabular-nums;
}

/* Legacy chart-card classes kept for compat */
.chart-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; padding: 1.4rem;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  contain: layout style;
}

.chart-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.1); box-shadow: 0 16px 40px rgba(0,0,0,0.25); }
.chart-card--wide { grid-column: span 2; }
.chart-card-title { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.3rem; }
.chart-card-value { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 0.15rem; font-variant-numeric: tabular-nums; }
.chart-card-sub   { font-size: 0.68rem; color: var(--text-dim); margin-bottom: 1rem; }
.chart-canvas     { width: 100%; display: block; border-radius: 8px; }

.chart-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem; margin-bottom: 1.25rem;
}

@media (max-width: 900px) { .chart-kpi-grid { grid-template-columns: repeat(2, 1fr); } }

.kpi-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 1.2rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.kpi-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.1); }
.kpi-label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.4rem; }
.kpi-value { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; margin-bottom: 0.2rem; }
.kpi-delta { font-family: var(--mono); font-size: 0.62rem; font-weight: 600; }
.kpi-delta.up   { color: #10b981; }
.kpi-delta.down { color: #f87171; }

/* ─── Maze Explorer Modal ─────────────────────────────────── */

.maze-modal-wrap { width: 100%; background: #08080c; font-family: var(--font); }

.maze-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 0; min-height: 540px;
}

@media (max-width: 768px) { .maze-layout { grid-template-columns: 1fr; } }

.maze-canvas-col {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 2rem; gap: 1.2rem;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.maze-canvas-wrap {
  position: relative; width: 100%; max-width: 480px; aspect-ratio: 1;
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(129,140,248,0.12);
  box-shadow: 0 0 40px rgba(129,140,248,0.06);
}

#mazePortfolioCanvas { width: 100%; height: 100%; display: block; }

.maze-controls {
  display: flex; gap: 0.6rem; flex-wrap: wrap;
  justify-content: center; width: 100%; max-width: 480px;
}

.maze-btn {
  padding: 0.55rem 1.2rem; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text); font-family: var(--mono);
  font-size: 0.7rem; font-weight: 600; cursor: pointer; letter-spacing: 0.04em;
  transition: border-color 0.25s, background 0.25s, color 0.25s, transform 0.25s;
}

.maze-btn:hover:not(:disabled) { border-color: var(--accent2); color: var(--accent2); background: rgba(129,140,248,0.08); transform: translateY(-2px); }
.maze-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.maze-btn--primary { border-color: rgba(129,140,248,0.3); background: rgba(129,140,248,0.08); color: var(--accent2); }
.maze-btn--icon { padding: 0.55rem 0.7rem; display: flex; align-items: center; justify-content: center; }
.maze-btn--icon.active { border-color: rgba(129,140,248,0.4); background: rgba(129,140,248,0.12); color: var(--accent2); }
.maze-btn--icon svg { display: block; }

.maze-size-wrap { display: flex; align-items: center; gap: 0.8rem; width: 100%; max-width: 480px; }
.maze-size-wrap label { font-size: 0.65rem; font-weight: 600; color: var(--text-dim); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.maze-size-wrap input[type=range] { flex: 1; -webkit-appearance: none; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.08); outline: none; }
.maze-size-wrap input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--accent2); cursor: pointer; box-shadow: 0 0 8px rgba(129,140,248,0.4); }
.maze-size-label { font-family: var(--mono); font-size: 0.72rem; color: var(--accent2); min-width: 42px; text-align: right; }

.maze-algo-col {
  padding: 1.8rem 1.6rem; overflow-y: auto;
  display: flex; flex-direction: column; gap: 1.4rem;
}

.maze-algo-title   { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent2); margin-bottom: 0.5rem; }
.maze-algo-heading { font-size: 1rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.3rem; }
.maze-algo-desc    { font-size: 0.75rem; color: var(--text-dim); line-height: 1.65; }

.maze-stats-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.maze-stat {
  background: rgba(129,140,248,0.06);
  border: 1px solid rgba(129,140,248,0.12);
  border-radius: 10px; padding: 0.7rem 1rem; min-width: 80px; text-align: center;
}

.maze-stat-val { font-family: var(--mono); font-size: 1.1rem; font-weight: 800; color: var(--accent2); display: block; font-variant-numeric: tabular-nums; }
.maze-stat-lbl { font-size: 0.58rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-top: 0.2rem; }

/* Animated complexity formula cards */
.maze-formula-block {
  background: rgba(129,140,248,0.04);
  border: 1px solid rgba(129,140,248,0.1);
  border-left: 3px solid var(--accent2);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.2rem;
}

.maze-formula-label { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent2); opacity: 0.7; margin-bottom: 0.4rem; }

.maze-formula {
  font-family: var(--mono); font-size: 1rem; font-weight: 700; color: #fff;
  margin-bottom: 0.3rem; display: flex; align-items: baseline; gap: 0.3rem; flex-wrap: wrap;
}

.maze-formula .big-O { font-size: 1.3rem; color: var(--accent2); }
.maze-formula .formula-part { opacity: 0; transform: translateY(6px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.maze-formula .formula-part.show { opacity: 1; transform: translateY(0); }
.maze-formula-desc { font-size: 0.7rem; color: var(--text-dim); line-height: 1.5; }

/* Stack / Queue bars */
.maze-struct-viz { display: flex; flex-direction: column; gap: 0.5rem; }
.maze-struct-title { font-family: var(--mono); font-size: 0.62rem; color: var(--text-dim); letter-spacing: 0.08em; }
.maze-struct-bar-wrap { display: flex; gap: 2px; height: 28px; align-items: flex-end; overflow: hidden; }
.maze-struct-cell { flex: 1; min-width: 8px; max-width: 20px; border-radius: 3px 3px 0 0; transition: height 0.3s var(--ease), background 0.3s; background: rgba(129,140,248,0.3); }
.maze-struct-cell.active { background: var(--accent2); box-shadow: 0 0 8px rgba(129,140,248,0.5); }
.maze-struct-counter { font-family: var(--mono); font-size: 0.58rem; color: var(--text-dim); letter-spacing: 0.04em; margin-top: 0.1rem; }

/* State indicator */
.maze-state-indicator { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.04em; text-align: center; min-height: 1.2em; transition: color 0.3s; }
.maze-state-idle { color: var(--text-dim); }

/* Control row */
.maze-control-row { display: flex; gap: 1.2rem; width: 100%; max-width: 480px; flex-wrap: wrap; }
.maze-control-row .maze-size-wrap { flex: 1; min-width: 140px; }

/* Algo code panel */
.maze-code-preview { background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; overflow: hidden; }
.maze-code-header  { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.04); background: rgba(255,255,255,0.02); }
.maze-code-tabs    { display: flex; gap: 0; }
.maze-code-tab     { padding: 0.25rem 0.8rem; font-family: var(--mono); font-size: 0.58rem; font-weight: 600; color: var(--text-dim); background: none; border: none; cursor: pointer; border-radius: 4px; transition: background 0.2s, color 0.2s; }
.maze-code-tab.active { background: rgba(129,140,248,0.15); color: var(--accent2); }
.maze-code-body    { padding: 1rem; font-family: var(--mono); font-size: 0.62rem; line-height: 1.7; color: rgba(232,228,220,0.8); max-height: 180px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(129,140,248,0.2) transparent; }
.maze-code-body .kw  { color: #c792ea; }
.maze-code-body .fn  { color: #82aaff; }
.maze-code-body .cm  { color: rgba(255,255,255,0.3); font-style: italic; }
.maze-code-body .num { color: #f78c6c; }
.maze-code-body .str { color: #c3e88d; }
.maze-code-line-hl   { background: rgba(129,140,248,0.1); border-left: 2px solid var(--accent2); margin: 0 -1rem; padding: 0 1rem 0 0.8rem; display: block; }

/* ─── Card Footer Row + SHOW CODE inline button ───────────── */

/* ─── Iframe Demo Wrap ─────────────────────────────────────── */
.iframe-demo-wrap { width: 100%; min-height: 600px; background: #08080c; contain: layout style; }
.iframe-demo-wrap iframe { width: 100%; height: 600px; border: none; display: block; }
@media (min-height: 800px) { .iframe-demo-wrap iframe { height: 75vh; } }

/* ─── Splat Pipeline Steps ────────────────────────────────── */
.splat-pipeline {
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.8rem 0; flex-wrap: wrap;
}
.splat-step {
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  padding: 0.5rem 0.6rem; border-radius: 8px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  opacity: 0.35; transition: opacity 0.4s, border-color 0.4s, background 0.4s;
}
.splat-step--active {
  opacity: 1; border-color: rgba(110,231,183,0.25); background: rgba(110,231,183,0.05);
}
.splat-step-icon { font-size: 1.1rem; }
.splat-step-label { font-family: var(--mono); font-size: 0.52rem; font-weight: 600; letter-spacing: 0.08em; color: var(--text-dim); white-space: nowrap; }
.splat-step-arrow { color: rgba(255,255,255,0.15); font-family: var(--mono); font-size: 0.7rem; }
.splat-viewer-wrap { min-height: 300px; }
.splat-loading {
  position: absolute; inset: 0; z-index: 5; display: grid; place-items: center;
  background: #0c0c14; transition: opacity 0.4s;
}
.splat-loading-inner { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; font-family: var(--mono); font-size: 0.65rem; color: var(--text-dim); letter-spacing: 0.06em; }
.splat-loading-spinner {
  width: 28px; height: 28px; border: 2px solid rgba(129,140,248,0.15);
  border-top-color: var(--accent2); border-radius: 50%;
  animation: splatSpin 0.8s linear infinite;
}
@keyframes splatSpin { to { transform: rotate(360deg); } }

.card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.4rem 1.2rem;
  margin-top: -0.2rem;
}

.card-show-code-btn--inline {
  margin-top: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.4);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
  opacity: 1 !important;
  transform: none !important;
  white-space: nowrap;
}

.card-show-code-btn--inline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(110,231,183,0.08);
}

.card-show-code-btn--inline.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(110,231,183,0.12);
}

/* Close button inside code panel */
.card-code-close-btn {
  display: block;
  margin-top: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.35);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.card-code-close-btn:hover {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.7);
}

/* ─── Wide Modal (for dashboards) ────────────────────────── */

.modal--wide {
  max-width: 1280px;
  width: 96vw;
}

.dashboard-modal-wrap {
  width: 100%;
  position: relative;
  background: #05050a;
  min-height: 400px;
}

/* Override ticker dashboard padding in modal context */
.dashboard-modal-wrap #tickers-dashboard {
  border-top: none;
  border-bottom: none;
}

/* Override stats dashboard in modal */
.dashboard-modal-wrap #stats-dashboard {
  padding: 2.5rem;
}

.dashboard-modal-wrap #stats-dashboard .section-header {
  opacity: 1;
  transform: none;
}

.dashboard-modal-wrap .pm-chart-wrap {
  border-color: rgba(255,255,255,0.08);
}

/* ─── Data Viz card featured styling ─────────────────────── */

.project-card[data-category="Data Viz"] .card-preview {
  background: linear-gradient(135deg, rgba(16,185,129,0.06), rgba(129,140,248,0.06));
}

/* ─── Extra responsive polish ────────────────────────────── */

@media (max-width: 1100px) {
  .modal--wide {
    max-width: 96vw;
  }
}

@media (max-width: 768px) {
  .modal--wide {
    max-width: 100vw;
    width: 100vw;
    border-radius: 0;
  }

  .dashboard-modal-wrap #tickers-dashboard {
    padding: 1.5rem 0 2rem;
  }

  .dashboard-modal-wrap .ldash-inner {
    padding: 0 1rem;
  }

  .dashboard-modal-wrap .ldash-kpi-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .dashboard-modal-wrap .ldash-split {
    grid-template-columns: 1fr;
  }

  .dashboard-modal-wrap .ldash-time-panel {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1rem;
  }

  .dashboard-modal-wrap .ldash-clock {
    font-size: 1.8rem;
  }

  .dashboard-modal-wrap #stats-dashboard {
    padding: 1.5rem 1rem;
  }

  .dashboard-modal-wrap .pm-chart-wrap {
    padding: 1rem;
  }

  .dashboard-modal-wrap .pm-chart-header {
    flex-direction: column;
    gap: 0.6rem;
  }

  .dashboard-modal-wrap .pm-legend {
    gap: 0.4rem 0.8rem;
  }

  .dashboard-modal-wrap .chart-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .dashboard-modal-wrap .ldash-kpi-row {
    grid-template-columns: 1fr;
  }

  .dashboard-modal-wrap .ldash-section-title {
    font-size: 1.3rem;
  }

  .dashboard-modal-wrap .ldash-kpi-val {
    font-size: 1.3rem;
  }

  .dashboard-modal-wrap .chart-kpi-grid {
    grid-template-columns: 1fr;
  }

  /* Hero responsive refinements */
  .hero-sub {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.6rem;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  /* Better card padding on small screens */
  .card-content {
    padding: 1rem;
  }

  .card-desc {
    font-size: 0.78rem;
  }

  /* Contact section */
  .contact-title {
    font-size: 1.6rem;
  }
}

/* ─── Reveal animations ──────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

/* ─── Performance Containment ────────────────────────────── */

.project-card { contain: layout style; }
.card-preview { contain: strict; }
.modal-overlay { contain: layout style; }
.filter-bar { contain: layout style; }
.about-content { contain: layout style; }
.contact-content { contain: layout style; }
.grid-category-divider { contain: layout style; }

/* Nav — cross-browser fallback for backdrop-filter */
@supports not (backdrop-filter: blur(1px)) {
  .nav { background: rgba(8,8,12,0.97); }
  .nav.scrolled { background: rgba(8,8,12,0.99); }
}

/* ─── Premium Micro-interactions ─────────────────────────── */

/* Subtle focus ring for keyboard nav — accessibility */
.btn:focus-visible,
.filter-btn:focus-visible,
.nav-link:focus-visible,
.card-show-code-btn--inline:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Apple-quality selection highlight */
::selection { background: rgba(110,231,183,0.18); color: #fff; }

/* Smoother scrollbar across the page */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}

html::-webkit-scrollbar { width: 6px; }
html::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
html::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }

/* ─── Print styles ───────────────────────────────────────── */

@media print {
  .cursor-glow, .nav, .mobile-menu, .hero-canvas, .modal-overlay, .card-code-panel { display: none !important; }
  body { background: #fff; color: #111; }
  .section, .section--dark { background: #fff; color: #111; }
}
