:root {
  --bg: #eef2f9;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.92);
  --text: #1e293b;
  --muted: #64748b;
  --teal: #0d9488;
  --teal-glow: rgba(13, 148, 136, 0.22);
  --rose: #e11d48;
  --rose-soft: rgba(225, 29, 72, 0.1);
  --blue: #2563eb;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --surface: rgba(255, 255, 255, 0.65);
  --surface-strong: rgba(255, 255, 255, 0.85);
  --border-soft: rgba(255, 255, 255, 0.95);
  --shadow-color: rgba(30, 41, 59, 0.08);
  --aurora-a: #f0f5ff;
  --aurora-b: #f5f0ff;
  --orb-opacity: 0.5;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}
@media (prefers-reduced-motion: reduce) {
  .orb, .btn-explore svg { animation: none !important; transition: none !important; }
}
.proto-bar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(238, 242, 249, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.85);
  padding: 10px 16px; font-size: 12px;
  display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: center;
}
.proto-bar a { color: var(--muted); text-decoration: none; font-weight: 500; }
.proto-bar a:hover { color: var(--teal); }
.proto-bar .here { color: var(--text); font-weight: 700; }
.aurora {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: linear-gradient(165deg, var(--aurora-a) 0%, var(--bg) 40%, var(--aurora-b) 100%);
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: var(--orb-opacity);
  animation: drift 18s ease-in-out infinite;
}
.orb-a { width: 420px; height: 420px; background: #93c5fd; top: -80px; left: -60px; }
.orb-b { width: 360px; height: 360px; background: #5eead4; top: 18%; right: -80px; animation-delay: -6s; }
.orb-c { width: 300px; height: 300px; background: #fda4af; bottom: 8%; left: 28%; animation-delay: -12s; opacity: 0.35; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -16px) scale(1.04); }
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0 28px; gap: 16px; flex-wrap: wrap;
}
.nav-brand { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.nav-end { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  border: 1px solid var(--glass-border); background: var(--glass);
  color: var(--muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--teal); }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500;
  padding: 10px 14px; border-radius: 12px;
}
.nav-links a:hover { color: var(--text); background: var(--glass); }
.nav-links .nav-cta {
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #fff; box-shadow: 0 8px 22px var(--teal-glow);
}
.hero-card {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 44px 44px 52px;
  box-shadow: 0 24px 64px rgba(30, 41, 59, 0.07);
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center;
  margin-bottom: 28px;
}
@media (max-width: 900px) { .hero-card { grid-template-columns: 1fr; padding: 28px 22px; } }
.hero-card h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.15rem);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.08;
  margin-bottom: 14px; text-wrap: balance;
}
.hero-card .grad {
  background: linear-gradient(135deg, var(--teal), var(--blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-card .lead { color: var(--muted); font-size: 1.05rem; margin-bottom: 22px; text-wrap: pretty; }
.metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 26px;
}
@media (max-width: 520px) { .metrics { grid-template-columns: 1fr; } }
.metrics div {
  background: rgba(255,255,255,0.65); border-radius: 16px; padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.95);
}
.metrics strong { display: block; font-size: 1.25rem; color: var(--teal); letter-spacing: -0.02em; }
.metrics span { font-size: 11px; color: var(--muted); line-height: 1.35; display: block; margin-top: 2px; }
.btn-explore {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 0 6px 0 22px; height: 52px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,0.95);
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.75));
  color: var(--text); font-weight: 600; font-size: 15px;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(13, 148, 136, 0.15), inset 0 1px 0 #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-explore:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(13, 148, 136, 0.22), inset 0 1px 0 #fff;
}
.btn-explore:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.btn-explore .icon-wrap {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #fff; flex-shrink: 0;
  box-shadow: 0 4px 12px var(--teal-glow);
}
.btn-explore svg { width: 18px; height: 18px; transition: transform 0.2s; }
.btn-explore:hover svg { transform: translateX(2px); }
.device-stack { position: relative; height: 400px; }
.device-stack .phone {
  position: absolute; border-radius: 24px; overflow: hidden;
  border: 3px solid rgba(255,255,255,0.96);
  box-shadow: 0 28px 56px rgba(30, 41, 59, 0.16);
  background: #111;
}
.device-stack .phone img { display: block; width: 100%; height: 100%; object-fit: cover; }
.device-stack .p1 { width: 42%; aspect-ratio: 9/19.5; left: 0; top: 28px; transform: rotate(-7deg); z-index: 1; }
.device-stack .p2 { width: 46%; aspect-ratio: 9/19.5; right: 0; top: 0; z-index: 3; }
.device-stack .p3 { width: 38%; aspect-ratio: 9/19.5; left: 30%; bottom: -8px; transform: rotate(5deg); z-index: 2; }
.dock-glass {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  padding: 18px 20px; margin-bottom: 56px;
  background: var(--glass); backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border); border-radius: 20px;
}
.dock-glass a {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none; color: var(--muted); font-size: 10px; font-weight: 600;
  padding: 8px; border-radius: 14px; transition: background 0.2s, transform 0.2s;
}
.dock-glass a:hover, .dock-glass a.featured { background: rgba(255,255,255,0.85); transform: translateY(-3px); color: var(--text); }
.dock-glass a.featured img { outline: 2px solid var(--teal); outline-offset: 2px; }
.dock-glass img { width: 52px; height: 52px; border-radius: 12px; box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
.section-title {
  text-align: center; font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.section-sub { text-align: center; color: var(--muted); margin-bottom: 32px; max-width: 52ch; margin-left: auto; margin-right: auto; text-wrap: pretty; }
.grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 56px;
}
@media (max-width: 800px) { .grid-3 { grid-template-columns: 1fr; } }
.tile {
  background: var(--glass); backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border); border-radius: 22px;
  overflow: hidden; transition: transform 0.25s, box-shadow 0.25s;
}
.tile:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(13, 148, 136, 0.1); }
.tile.featured { border-color: rgba(13, 148, 136, 0.25); }
.tile-img { height: 176px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.45); }
.tile-img img { max-height: 156px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.tile-body { padding: 18px 20px 22px; }
.tile-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tile-head img { width: 40px; height: 40px; border-radius: 10px; }
.tile-body h3 { font-size: 1rem; font-weight: 700; }
.tile-body p { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.tile-body a { font-size: 13px; font-weight: 600; color: var(--blue); text-decoration: none; }

/* Case study — Motivation */
.case-wrap {
  background: var(--glass); backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border); border-radius: 28px;
  padding: 40px 40px 36px; margin-bottom: 56px;
  box-shadow: 0 24px 56px rgba(30, 41, 59, 0.06);
}
@media (max-width: 700px) { .case-wrap { padding: 26px 20px; } }
.case-header {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start;
  justify-content: space-between; margin-bottom: 28px;
}
.case-intro { max-width: 480px; }
.case-intro .tag {
  display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--rose); background: var(--rose-soft);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 12px;
}
.case-intro .tag.tag-bbva {
  color: var(--blue); background: rgba(37, 99, 235, 0.1);
}
.case-intro h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); letter-spacing: -0.03em; margin-bottom: 10px; }
.case-intro .app-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.case-intro .app-meta img { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.case-intro .app-meta span { font-size: 14px; color: var(--muted); }
.case-intro p { color: var(--muted); font-size: 15px; text-wrap: pretty; }
.stat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; min-width: 260px; flex: 1;
}
@media (min-width: 900px) { .stat-grid { max-width: 340px; } }
.stat-card {
  background: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.95);
  border-radius: 16px; padding: 14px 16px;
}
.stat-card strong { font-size: 1.35rem; color: var(--blue); letter-spacing: -0.02em; display: block; }
.stat-card span { font-size: 11px; color: var(--muted); line-height: 1.35; }
.stat-card.accent strong { color: var(--teal); }
.gallery-block { margin-top: 8px; }
.gallery-block h3 {
  font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 14px;
}
.gallery-feature {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; margin-bottom: 14px;
}
@media (max-width: 768px) { .gallery-feature { grid-template-columns: 1fr; } }
.gallery-feature--solo { grid-template-columns: 1fr; max-width: 300px; margin-left: auto; margin-right: auto; }
.gallery-feature .main-frame {
  border-radius: 20px; overflow: hidden;
  border: 2px solid rgba(255,255,255,0.95);
  box-shadow: 0 20px 48px rgba(30, 41, 59, 0.12);
  background: #0f172a; aspect-ratio: 9/16; max-height: 420px; margin: 0 auto;
}
.gallery-feature .main-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.thumb-col { display: flex; flex-direction: column; gap: 10px; }
.thumb-btn {
  flex: 1; border: 2px solid transparent; border-radius: 14px; overflow: hidden;
  padding: 0; cursor: pointer; background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: border-color 0.15s, transform 0.15s;
}
.thumb-btn:hover { transform: scale(1.02); border-color: var(--teal); }
.thumb-btn[aria-current="true"] { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(37,99,235,0.2); }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 9/16; max-height: 96px; }
.gallery-scroll {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 4px 16px; -webkit-overflow-scrolling: touch;
}
.gallery-scroll::-webkit-scrollbar { height: 6px; }
.gallery-scroll::-webkit-scrollbar-thumb { background: rgba(100,116,139,0.35); border-radius: 99px; }
.scroll-item {
  flex: 0 0 140px; scroll-snap-align: start;
  border-radius: 16px; overflow: hidden;
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow: 0 10px 24px rgba(30, 41, 59, 0.1);
  cursor: pointer; transition: transform 0.2s;
}
.scroll-item:hover { transform: translateY(-4px); }
.scroll-item img { width: 100%; display: block; aspect-ratio: 9/16; object-fit: cover; }
.sources {
  margin-top: 18px; font-size: 11px; color: var(--muted); line-height: 1.5;
  padding-top: 14px; border-top: 1px solid rgba(100,116,139,0.15);
}
.sources a { color: var(--blue); }

/* About */
.about {
  display: grid; grid-template-columns: 280px 1fr; gap: 36px;
  background: var(--glass); backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border); border-radius: 28px;
  padding: 40px; margin-bottom: 72px;
}
@media (max-width: 820px) { .about { grid-template-columns: 1fr; padding: 28px 22px; } }
.about-aside { text-align: center; }
@media (min-width: 821px) { .about-aside { text-align: left; } }
.avatar {
  width: 120px; height: 120px; border-radius: 32px;
  background: linear-gradient(145deg, #5eead4, #93c5fd);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 700; color: #fff;
  margin: 0 auto 16px; box-shadow: 0 16px 40px rgba(13,148,136,0.25);
}
@media (min-width: 821px) { .avatar { margin: 0 0 16px; } }
.about-aside h3 { font-size: 1.25rem; margin-bottom: 4px; }
.about-aside .role { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.about-aside .contact {
  font-size: 14px; display: flex; flex-direction: column; gap: 10px; align-items: center;
}
@media (min-width: 821px) { .about-aside .contact { align-items: flex-start; } }
.about-aside .contact a { color: var(--blue); text-decoration: none; font-weight: 500; }
.about-aside .contact a:hover { text-decoration: underline; }
.about-body h2 { font-size: 1.75rem; letter-spacing: -0.02em; margin-bottom: 16px; }
.about-body p { color: var(--muted); margin-bottom: 14px; text-wrap: pretty; }
.timeline { margin: 24px 0; display: flex; flex-direction: column; gap: 12px; }
.timeline-item {
  display: grid; grid-template-columns: 110px 1fr; gap: 12px; font-size: 14px;
  padding: 12px 14px; background: rgba(255,255,255,0.55); border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.9);
}
@media (max-width: 520px) { .timeline-item { grid-template-columns: 1fr; } }
.timeline-item .when { font-weight: 600; color: var(--teal); font-size: 12px; }
.skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.skills span {
  font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.95); color: var(--text);
}
.theme-aurora footer.site-footer {
  text-align: center; padding: 32px 24px 64px; color: var(--muted); font-size: 13px;
  background: transparent !important;
}
.theme-aurora footer.site-footer a { color: var(--blue); text-decoration: none; font-weight: 500; }
.theme-aurora footer.site-footer a:hover { text-decoration: underline; }
.stat-grid--bbva { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .stat-grid--bbva { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .stat-grid--bbva { grid-template-columns: 1fr; } }

.case-pills-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 16px;
}
.case-pills-row .label {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin-right: 4px;
}
.case-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px 10px 12px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-border);
  text-decoration: none; color: var(--text); font-size: 14px; font-weight: 600;
  box-shadow: 0 6px 20px rgba(30, 41, 59, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.case-pill img { width: 28px; height: 28px; border-radius: 7px; }
.case-pill:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(13, 148, 136, 0.12); }
.case-pill.featured { border-color: rgba(13, 148, 136, 0.35); }

.theme-aurora .loader-wrapper,
.theme-aurora .header-area { display: none !important; }
.theme-aurora .aurora-site { position: relative; z-index: 1; }

.theme-aurora .page-aurora { padding: 24px 0 72px; }
.theme-aurora .page-aurora .page-hero {
  background: var(--glass); backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border); border-radius: 24px;
  padding: 32px 28px; margin-bottom: 32px;
}
.theme-aurora .page-aurora .page-hero.page-hero--title {
  padding: 24px 28px 28px; margin-bottom: 28px;
}
.theme-aurora .breadcrumb-trail {
  margin-bottom: 16px; background: transparent;
}
.theme-aurora .page-aurora h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.03em; margin-bottom: 8px; }
.theme-aurora ol.breadcrumb,
.theme-aurora .breadcrumb {
  list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  font-size: 14px; color: var(--muted);
  padding: 0 !important; margin: 0 !important;
  background: none !important; background-color: transparent !important;
  border-radius: 0 !important;
}
.theme-aurora .breadcrumb li { display: inline-flex; align-items: center; background: transparent; }
.theme-aurora .breadcrumb-item { background: transparent; }
.theme-aurora .breadcrumb-item.active { color: var(--muted); }
.theme-aurora .breadcrumb li + li::before {
  content: "›"; margin-right: 8px; color: rgba(100, 116, 139, 0.45); font-weight: 600;
}
.theme-aurora .breadcrumb a { color: var(--blue); text-decoration: none; font-weight: 500; }
.theme-aurora .breadcrumb a:hover { text-decoration: underline; }

/* App detail page */
.theme-aurora .page-app-detail .app-detail-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem); letter-spacing: -0.03em; margin-bottom: 6px; line-height: 1.15;
}
.theme-aurora .app-detail .case-header { margin-bottom: 8px; }
.theme-aurora .app-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px;
}
.theme-aurora .app-tag {
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.65); border: 1px solid rgba(100, 116, 139, 0.18);
  color: var(--muted);
}
html[data-theme="dark"] .theme-aurora .app-tag {
  background: rgba(15, 23, 42, 0.55); border-color: rgba(148, 163, 184, 0.25);
}
.theme-aurora .app-detail-section {
  margin-top: 28px; padding-top: 28px;
  border-top: 1px solid rgba(100, 116, 139, 0.12);
}
.theme-aurora .app-detail-gallery { margin-top: 32px; padding-top: 28px; border-top: 1px solid rgba(100, 116, 139, 0.12); }
.theme-aurora .app-section-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.theme-aurora .app-section-head h3 {
  font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.08em; margin: 0;
}
.theme-aurora .app-section-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, rgba(147, 197, 253, 0.55), rgba(94, 234, 212, 0.45));
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.1);
  color: var(--teal);
}
.theme-aurora .app-section-icon svg { width: 20px; height: 20px; }
.theme-aurora .app-detail-prose {
  color: var(--muted); font-size: 15px; line-height: 1.65; text-wrap: pretty;
  padding: 20px 22px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(255, 255, 255, 0.92);
}
.theme-aurora .app-detail-gallery .gallery-block h3 { display: none; }
.theme-aurora .app-detail-gallery .gallery-feature .main-frame { max-height: 480px; }
.theme-aurora .page-app-detail .app-single { background: transparent; box-shadow: none; }
.theme-aurora .page-app.aurora-tile {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 20px;
  padding: 20px; height: 100%; transition: transform 0.2s;
}
.theme-aurora .page-app.aurora-tile:hover { transform: translateY(-4px); }
.theme-aurora .nav-toggle {
  display: none; border: 1px solid var(--glass-border); background: var(--glass);
  border-radius: 10px; padding: 8px 12px; font-size: 14px; font-weight: 600; cursor: pointer;
}
@media (max-width: 720px) {
  .theme-aurora .nav-toggle { display: inline-flex; }
  .theme-aurora .nav-end { width: auto; }
  .theme-aurora .nav-links { display: none; width: 100%; flex-direction: column; order: 3; }
  .theme-aurora .nav-links.is-open { display: flex; }
  .theme-aurora .nav { flex-wrap: wrap; }
  .theme-aurora .nav-end { flex: 1; justify-content: flex-end; flex-wrap: wrap; }
}

/* ——— Dark mode (slate, not pure black) ——— */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1a2332;
  --glass: rgba(36, 48, 67, 0.78);
  --glass-border: rgba(71, 85, 105, 0.55);
  --text: #e8eef6;
  --muted: #94a3b8;
  --teal: #2dd4bf;
  --teal-glow: rgba(45, 212, 191, 0.2);
  --rose: #fb7185;
  --rose-soft: rgba(251, 113, 133, 0.12);
  --blue: #60a5fa;
  --surface: rgba(15, 23, 42, 0.55);
  --surface-strong: rgba(30, 41, 59, 0.75);
  --border-soft: rgba(71, 85, 105, 0.65);
  --shadow-color: rgba(0, 0, 0, 0.35);
  --aurora-a: #1e293b;
  --aurora-b: #243047;
  --orb-opacity: 0.22;
}
[data-theme="dark"] .orb-a { background: #1d4ed8; }
[data-theme="dark"] .orb-b { background: #0f766e; }
[data-theme="dark"] .orb-c { background: #9f1239; opacity: 0.18; }
[data-theme="dark"] .hero-card,
[data-theme="dark"] .case-wrap,
[data-theme="dark"] .about,
[data-theme="dark"] .tile,
[data-theme="dark"] .dock-glass,
[data-theme="dark"] .case-pill {
  box-shadow: 0 24px 56px var(--shadow-color);
}
[data-theme="dark"] .metrics div,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .timeline-item,
[data-theme="dark"] .skills span,
[data-theme="dark"] .theme-aurora .app-detail-prose {
  background: var(--surface);
  border-color: var(--border-soft);
}
[data-theme="dark"] .btn-explore {
  background: linear-gradient(135deg, var(--surface-strong), var(--surface));
  border-color: var(--border-soft);
  color: var(--text);
  box-shadow: 0 10px 28px var(--shadow-color), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .btn-explore:hover {
  box-shadow: 0 16px 36px var(--shadow-color), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .tile-img { background: var(--surface); }
[data-theme="dark"] .dock-glass a:hover,
[data-theme="dark"] .dock-glass a.featured { background: var(--surface-strong); }
[data-theme="dark"] .device-stack .phone { border-color: var(--border-soft); }
[data-theme="dark"] .gallery-feature .main-frame { border-color: var(--border-soft); }
[data-theme="dark"] .thumb-btn { background: var(--surface-strong); box-shadow: 0 4px 12px var(--shadow-color); }
[data-theme="dark"] .scroll-item { border-color: var(--border-soft); box-shadow: 0 10px 24px var(--shadow-color); }
[data-theme="dark"] .case-intro .tag.tag-bbva { background: rgba(96, 165, 250, 0.12); }
[data-theme="dark"] .theme-aurora .app-section-icon {
  background: linear-gradient(145deg, rgba(30, 58, 138, 0.5), rgba(15, 118, 110, 0.35));
  border-color: var(--border-soft);
}
[data-theme="dark"] .sources { border-top-color: rgba(148, 163, 184, 0.2); }
[data-theme="dark"] .theme-aurora .app-detail-section,
[data-theme="dark"] .theme-aurora .app-detail-gallery { border-top-color: rgba(148, 163, 184, 0.2); }
[data-theme="dark"] .nav-links .nav-cta { box-shadow: 0 8px 22px var(--teal-glow); }
