/* ==========================================================================
   QUIBY.ME // CINEMATIC OBSIDIAN & LIQUID LIGHT MOTION STYLESHEET
   ========================================================================== */

:root {
  --bg: #060609;
  --surface: #0e0f14;
  --surface-2: #151720;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f3ef;
  --text-muted: #9496a1;
  --text-dim: #5e616e;

  --accent: #e5dec9;
  --accent-2: #8b5cf6;
  --green: #22c55e;
  --amber: #f59e0b;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: "Onest", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   MAGNETIC CUSTOM CURSOR & AMBIENT BACKGROUND
   -------------------------------------------------------------------------- */
.cursor-ring,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  margin-left: -18px;
  margin-top: -18px;
  border-radius: 50%;
  border: 1px solid rgba(245, 243, 239, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    width 0.28s var(--ease-expo),
    height 0.28s var(--ease-expo),
    margin 0.28s var(--ease-expo),
    border-color 0.28s ease,
    background-color 0.28s ease,
    opacity 0.25s ease;
  backdrop-filter: blur(2px);
}

.cursor-ring.is-hover {
  width: 52px;
  height: 52px;
  margin-left: -26px;
  margin-top: -26px;
  border-color: var(--accent);
  background-color: color-mix(in srgb, var(--accent) 12%, transparent);
}

.cursor-ring.is-portal {
  width: 92px;
  height: 92px;
  margin-left: -46px;
  margin-top: -46px;
  border-color: var(--accent);
  background-color: color-mix(in srgb, var(--accent) 18%, rgba(6, 6, 9, 0.72));
}

.cursor-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cursor-ring.is-portal .cursor-label {
  opacity: 1;
}

.cursor-dot {
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--text);
}

@media (hover: none), (pointer: coarse) {
  .cursor-ring,
  .cursor-dot {
    display: none !important;
  }
}

#ambientCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: radial-gradient(rgba(255, 255, 255, 0.8) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
}

/* --------------------------------------------------------------------------
   FLOATING TOP NAVIGATION
   -------------------------------------------------------------------------- */
.top-bar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1320px, calc(100vw - 32px));
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}

.top-bar > * {
  pointer-events: auto;
}

.brand-pill,
.domain-status-pill,
.quick-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(14, 15, 20, 0.72);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand-pill {
  transition: border-color 0.25s ease, transform 0.25s var(--ease-expo);
}
.brand-pill:hover {
  border-color: var(--border-strong);
}

.brand-orb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 14px rgba(245, 243, 239, 0.65);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.brand-name {
  font-family: "Unbounded", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.domain-status-pill {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulseDot 2.4s ease-in-out infinite;
}

@keyframes pulseDot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.8);
  }
}

.quick-nav {
  padding: 5px;
  gap: 4px;
}

.quick-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.25s var(--ease-expo);
}

.quick-nav-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.quick-nav-btn.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-strong);
}

.nav-sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  opacity: 0.65;
}

.nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   HOME STAGE & EDITORIAL INTRO
   -------------------------------------------------------------------------- */
.home-stage {
  position: relative;
  z-index: 2;
  width: min(1320px, calc(100vw - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 104px 0 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  transition:
    opacity 0.45s var(--ease-expo),
    transform 0.45s var(--ease-expo),
    filter 0.45s var(--ease-expo);
}

.home-stage.is-leaving {
  opacity: 0;
  transform: scale(0.97) translateY(-16px);
  filter: blur(6px);
  pointer-events: none;
}

.intro-block {
  max-width: 820px;
  animation: fadeUpIn 0.85s var(--ease-expo) both;
}

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

.intro-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.eyebrow-line {
  width: 24px;
  height: 1px;
  background: var(--text-muted);
}

.intro-title {
  margin: 0 0 14px;
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.title-highlight {
  background: linear-gradient(90deg, #f5f3ef 0%, #c084fc 50%, #f59e0b 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmerWord 8s linear infinite;
}

@keyframes shimmerWord {
  to {
    background-position: 200% center;
  }
}

.intro-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(0.98rem, 1.3vw, 1.12rem);
  max-width: 58ch;
}

/* --------------------------------------------------------------------------
   SPLIT-STAGE ACCORDION PROJECT PORTALS
   -------------------------------------------------------------------------- */
.portal-stage {
  display: flex;
  gap: 20px;
  min-height: 490px;
  align-items: stretch;
  perspective: 1400px;
}

.portal-card {
  position: relative;
  flex: 1 1 50%;
  min-width: 0;
  border-radius: 26px;
  padding: 28px;
  background: linear-gradient(
    165deg,
    rgba(22, 24, 34, 0.86) 0%,
    rgba(10, 11, 15, 0.94) 100%
  );
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition:
    flex-grow 0.65s var(--ease-expo),
    border-color 0.35s ease,
    box-shadow 0.55s var(--ease-expo),
    transform 0.18s ease-out;
  animation: fadeUpIn 0.9s var(--ease-expo) both;
}

.portal-card:nth-child(2) {
  animation-delay: 0.1s;
}

.portal-stage:hover .portal-card {
  flex-grow: 0.86;
}

.portal-stage .portal-card:hover {
  flex-grow: 1.24;
  border-color: color-mix(in srgb, var(--card-accent) 60%, rgba(255, 255, 255, 0.2));
  box-shadow:
    0 30px 90px -20px color-mix(in srgb, var(--card-accent) 32%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Specular pointer glare */
.portal-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in srgb, var(--card-accent) 16%, transparent),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portal-card:hover .portal-glare {
  opacity: 1;
}

/* Vertical Kinetic Screenshot Stream in Card Background */
.portal-stream {
  position: absolute;
  top: -15%;
  right: -4%;
  width: 56%;
  height: 130%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  opacity: 0.14;
  transform: rotate(-10deg) scale(1.02);
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(135deg, transparent 10%, #000 55%, transparent 98%);
  -webkit-mask-image: linear-gradient(135deg, transparent 10%, #000 55%, transparent 98%);
  transition: opacity 0.55s var(--ease-expo), transform 0.65s var(--ease-expo);
}

.portal-card:hover .portal-stream {
  opacity: 0.28;
  transform: rotate(-8deg) scale(1.06);
}

.stream-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stream-col-up {
  animation: streamUp 26s linear infinite;
}

.stream-col-down {
  animation: streamDown 32s linear infinite;
}

.stream-shot {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  aspect-ratio: 16 / 10;
  background: #0b0c10;
}

.stream-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes streamUp {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

@keyframes streamDown {
  from {
    transform: translateY(-50%);
  }
  to {
    transform: translateY(0);
  }
}

/* Card Foreground Content */
.portal-top,
.portal-visual-preview,
.portal-bottom {
  position: relative;
  z-index: 2;
}

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

.portal-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-logo-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.portal-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 7px;
}

.portal-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.subdomain-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text);
}

.pill-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.pill-led.is-web {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.pill-led.is-api {
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
}

/* Floating 3D App Screenshot Composition inside Portal */
.portal-visual-preview {
  position: relative;
  height: 196px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 4px 0;
  transform: translateZ(26px);
}

.preview-device {
  position: relative;
  width: min(360px, 92%);
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #090a0e;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.65);
  transition: transform 0.6s var(--ease-expo), border-color 0.35s ease;
}

.portal-card:hover .preview-device {
  transform: translateY(-6px) scale(1.02);
  border-color: color-mix(in srgb, var(--card-accent) 55%, rgba(255, 255, 255, 0.25));
}

.preview-device img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.preview-float-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(6, 6, 9, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--text);
}

.portal-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portal-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.portal-title {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  letter-spacing: -0.02em;
}

.version-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.portal-summary {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 48ch;
}

.portal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.platform-chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.portal-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.portal-open-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.portal-open-cta .cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--card-accent) 20%, rgba(255, 255, 255, 0.06));
  border: 1px solid color-mix(in srgb, var(--card-accent) 55%, transparent);
  transition: transform 0.35s var(--ease-expo), background-color 0.25s ease;
}

.portal-card:hover .portal-open-cta .cta-arrow {
  transform: translateX(4px);
  background: var(--card-accent);
  color: #060609;
}

.portal-direct-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.portal-direct-link:hover {
  background: var(--card-accent);
  border-color: var(--card-accent);
  color: #060609;
}

.portal-api-note {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--amber);
}

.home-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   EXPANDED PRESENTATION STAGE
   -------------------------------------------------------------------------- */
.presentation-stage {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  padding-top: 84px;
  padding-bottom: 80px;
}

.presentation-stage.is-entering .reveal-item {
  opacity: 0;
  transform: translateY(28px);
}

.presentation-stage.is-visible .reveal-item {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.7s var(--ease-expo),
    transform 0.7s var(--ease-expo);
}

.presentation-stage.is-visible .reveal-item:nth-child(1) { transition-delay: 0.03s; }
.presentation-stage.is-visible .reveal-item:nth-child(2) { transition-delay: 0.1s; }
.presentation-stage.is-visible .reveal-item:nth-child(3) { transition-delay: 0.16s; }
.presentation-stage.is-visible .reveal-item:nth-child(4) { transition-delay: 0.22s; }
.presentation-stage.is-visible .reveal-item:nth-child(5) { transition-delay: 0.28s; }
.presentation-stage.is-visible .reveal-item:nth-child(6) { transition-delay: 0.34s; }

.pres-sticky-nav {
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto 28px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(14, 15, 20, 0.76);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-back-btn,
.nav-next-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-back-btn:hover,
.nav-next-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
}

.pres-breadcrumb {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--text-muted);
}

.pres-container {
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* 1. Presentation Hero */
.pres-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.pres-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.pres-logo-frame {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pres-logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.pres-title {
  margin: 0 0 10px;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.pres-tagline {
  margin: 0 0 16px;
  font-size: clamp(1.08rem, 1.5vw, 1.32rem);
  font-weight: 500;
  color: var(--accent);
}

.pres-story {
  margin: 0 0 24px;
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--text-muted);
  max-width: 58ch;
}

.api-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fcd34d;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
}

.api-lock-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.pres-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #060609;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 12px 32px -8px color-mix(in srgb, var(--accent) 65%, transparent);
  transition: transform 0.25s var(--ease-expo), filter 0.2s ease;
}

.cta-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: var(--accent);
}

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

.pres-hero-visual {
  position: relative;
  transform-style: preserve-3d;
}

.visual-glow {
  position: absolute;
  inset: -12%;
  background: radial-gradient(
    circle at 50% 50%,
    color-mix(in srgb, var(--accent) 30%, transparent),
    transparent 68%
  );
  filter: blur(36px);
  z-index: 0;
  pointer-events: none;
}

.visual-frame {
  position: relative;
  z-index: 1;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.65);
}

.visual-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.zoom-chip {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(6, 6, 9, 0.8);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 500;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.zoom-chip:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #060609;
}

/* 2. Key Metrics Strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  padding: 20px;
  border-radius: 18px;
  background: rgba(14, 15, 20, 0.78);
  border: 1px solid var(--border);
  transition: border-color 0.25s ease, transform 0.35s var(--ease-expo);
}

.stat-card:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  transform: translateY(-3px);
}

.stat-value {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.1rem, 1.55vw, 1.45rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* 3. Interactive Screenshot Showcase */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-kicker {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 6px;
}

.section-heading {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.showcase-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.icon-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.icon-circle-btn:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
}

.showcase-counter {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--text-muted);
}

.showcase-layout {
  display: grid;
  grid-template-columns: 1.45fr 0.75fr;
  gap: 18px;
  align-items: stretch;
}

.showcase-stage {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.showcase-stage img {
  width: 100%;
  height: 410px;
  object-fit: cover;
  object-position: top center;
  background: #08090d;
  transition: opacity 0.28s ease, transform 0.45s var(--ease-expo);
}

.showcase-stage.is-switching img {
  opacity: 0.25;
  transform: scale(0.985);
}

.showcase-caption-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: rgba(14, 15, 20, 0.94);
}

.caption-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 3px;
}

.caption-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.zoom-inline-btn {
  flex-shrink: 0;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.zoom-inline-btn:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
}

.showcase-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.showcase-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(14, 15, 20, 0.72);
  text-align: left;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s var(--ease-expo);
}

.showcase-tab:hover {
  border-color: var(--border-strong);
  transform: translateX(3px);
}

.showcase-tab.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 11%, rgba(14, 15, 20, 0.92));
}

.tab-thumb {
  width: 78px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.tab-meta-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.tab-meta-num {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--text-muted);
}

/* 4. Capabilities Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  position: relative;
  padding: 22px;
  border-radius: 20px;
  background: rgba(14, 15, 20, 0.78);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.35s var(--ease-expo), border-color 0.3s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    260px circle at var(--fx, 50%) var(--fy, 50%),
    color-mix(in srgb, var(--accent) 14%, transparent),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-code {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 10px;
}

.feature-title {
  margin: 0 0 8px;
  font-family: "Unbounded", sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.3;
}

.feature-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.58;
}

/* 5. Architecture Pipeline */
.architecture-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.arch-node {
  position: relative;
  padding: 18px;
  border-radius: 16px;
  background: rgba(14, 15, 20, 0.76);
  border: 1px solid var(--border);
}

.arch-step {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--accent);
  margin-bottom: 8px;
}

.arch-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
}

/* 6. Next Project Portal */
.next-portal-card {
  width: 100%;
  text-align: left;
  padding: 28px 32px;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(22, 24, 34, 0.88),
    rgba(10, 11, 16, 0.96)
  );
  border: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.3s ease, transform 0.4s var(--ease-expo);
}

.next-portal-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.next-portal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.next-portal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.next-portal-title {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 700;
}

.next-portal-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: transform 0.35s var(--ease-expo), background-color 0.25s ease;
}

.next-portal-card:hover .next-portal-arrow {
  transform: translateX(6px);
  background: var(--accent);
  border-color: var(--accent);
  color: #060609;
}

/* --------------------------------------------------------------------------
   LIGHTBOX MODAL
   -------------------------------------------------------------------------- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 7, 0.88);
  backdrop-filter: blur(12px);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fadeUpIn 0.3s var(--ease-expo);
}

.lightbox-close {
  align-self: flex-end;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-strong);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.lightbox-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #060609;
}

.lightbox-content img {
  max-height: 78vh;
  width: auto;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   RESPONSIVE & REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (max-width: 1040px) {
  .domain-status-pill {
    display: none;
  }
  .pres-hero,
  .showcase-layout {
    grid-template-columns: 1fr;
  }
  .stats-strip,
  .architecture-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .portal-stage {
    flex-direction: column;
    min-height: auto;
  }
  .portal-card {
    flex: none !important;
  }
  .quick-nav {
    display: none;
  }
  .pres-sticky-nav {
    flex-wrap: wrap;
  }
  .pres-breadcrumb {
    order: 3;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .home-stage {
    padding-top: 86px;
  }
  .portal-card {
    padding: 20px;
  }
  .stats-strip,
  .features-grid,
  .architecture-track {
    grid-template-columns: 1fr;
  }
  .showcase-stage img {
    height: 240px;
  }
  .showcase-caption-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .home-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

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