/* Zevyr Creative AI — 60-30-10 Editorial Daylight & Studio Slate Design System */

:root {
  /* Editorial Daylight (Apple / Stripe High-Contrast Studio) */
  --bg-canvas: #f8fafc;
  --bg-surface: #ffffff;
  --bg-elevated: #f1f5f9;
  --bg-well: #eef2f6;
  --border-hairline: #e2e8f0;
  --border-hairline-strong: #cbd5e1;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --cobalt: #2563eb;
  --cobalt-hover: #1d4ed8;
  --cobalt-tint: #eff6ff;
  --cobalt-border: #bfdbfe;

  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.05), 0 1px 2px -1px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 45px -10px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
  --shadow-theater: 0 25px 60px -12px rgba(15, 23, 42, 0.22), 0 12px 24px -6px rgba(15, 23, 42, 0.12);
}

.dark {
  /* Studio Slate (Comfort Dark: Never Pitch-Black #000000) */
  --bg-canvas: #131722;
  --bg-surface: #1a2030;
  --bg-elevated: #242c40;
  --bg-well: #0c0f17;
  --border-hairline: rgba(255, 255, 255, 0.09);
  --border-hairline-strong: rgba(255, 255, 255, 0.18);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --cobalt: #3b82f6;
  --cobalt-hover: #2563eb;
  --cobalt-tint: rgba(37, 99, 235, 0.15);
  --cobalt-border: rgba(37, 99, 235, 0.35);

  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 45px -10px rgba(0, 0, 0, 0.5);
  --shadow-theater: 0 25px 60px -12px rgba(0, 0, 0, 0.7);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: background-color 0.2s ease, color 0.2s ease;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--border-hairline-strong);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Typography Helpers */
.font-mono {
  font-family: "JetBrains Mono", monospace;
}

.tracking-tighter {
  letter-spacing: -0.04em;
}

.tracking-tight {
  letter-spacing: -0.02em;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1152px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 1280px) {
  .container {
    max-width: 1360px;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1440px;
  }
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  height: 3.5rem;
  background-color: rgba(var(--bg-surface), 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background-color: var(--cobalt);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: var(--shadow-sm);
}

.brand-logo-img {
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 0.5rem;
  object-fit: contain;
  box-shadow: var(--shadow-sm);
  display: block;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.brand-wrap:hover .brand-logo-img {
  transform: scale(1.04);
}

.brand-title {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-badge {
  font-size: 0.625rem;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  background-color: rgb(37 99 235 / 22%);
  color: var(--cobalt);
  border: 1px solid rgb(37 99 235 / 0%);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--cobalt);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.btn-icon {
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-icon:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.btn-cobalt {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background-color: var(--cobalt);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4375rem 0.875rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.btn-cobalt:hover {
  background-color: var(--cobalt-hover);
}

.btn-cobalt:active {
  transform: scale(0.97);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--border-hairline);
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

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

/* Hero Section */
.hero-section {
  padding-top: 2.5rem;
  padding-bottom: 2rem;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3125rem 0.875rem;
  border-radius: 9999px;
  background-color: var(--cobalt-tint);
  border: 1px solid rgb(37 99 235 / 0%);
  color: var(--cobalt);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.hero-title-accent {
  color: var(--cobalt);
}

.hero-subtitle {
  font-size: clamp(0.875rem, 2vw, 1.0625rem);
  color: var(--text-secondary);
  max-width: 42rem;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

/* Video Theater Section */
.theater-section {
  padding-bottom: 5rem;
}

.theater-top-bar {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
  gap: 0.625rem;
}

@media (min-width: 640px) {
  .theater-top-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.segmented-toggle {
  display: flex;
  width: 100%;
  padding: 0.25rem;
  border-radius: 0.75rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
  .segmented-toggle {
    width: auto;
    display: inline-flex;
  }
}

.seg-btn {
  flex: 1 1 0%;
  min-width: 0;
  padding: 0.5rem 0.625rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  text-align: center;
  transition: all 0.15s ease;
  user-select: none;
}

.seg-btn.active {
  background-color: var(--cobalt);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.seg-name {
  font-weight: 700;
  white-space: nowrap;
}

.seg-meta {
  font-size: 0.6875rem;
  color: inherit;
  opacity: 0.85;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .seg-btn {
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.5rem 0.25rem;
    font-size: 0.75rem;
  }

  .seg-meta {
    font-size: 0.625rem;
    font-family: "JetBrains Mono", monospace;
    opacity: 0.75;
  }
}

#copy-reel-btn {
  width: 100%;
  justify-content: center;
  padding: 0.5rem 0.875rem;
}

@media (min-width: 640px) {
  #copy-reel-btn {
    width: auto;
    padding: 0.375rem 0.75rem;
  }
}

.theater-bezel {
  padding: 0.625rem;
  border-radius: 1rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-theater);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 640px) {
  .theater-bezel {
    padding: 0.875rem;
    border-radius: 1.25rem;
  }
}

.video-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Suppress native video download menus */
video::-internal-media-controls-download-button {
  display: none !important;
}

video::-webkit-media-controls-enclosure {
  overflow: hidden;
}

.chapter-bar {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.75rem;
}

@media (min-width: 640px) {
  .chapter-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.chapter-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.chapter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.chapter-pill {
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  font-size: 0.6875rem;
  font-family: "JetBrains Mono", monospace;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chapter-pill:hover {
  background-color: var(--cobalt-tint);
  border-color: var(--cobalt-border);
  color: var(--cobalt);
}

.theater-subtext {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 0 0.25rem;
}

@media (min-width: 640px) {
  .theater-subtext {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Infinite Creator Profile Marquee */
.creator-marquee-shell {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  width: 100%;
  overflow: hidden;
}

.creator-marquee-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0 0.25rem;
}

.creator-marquee-label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  color: var(--cobalt);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.creator-marquee-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: var(--cobalt);
}

.creator-marquee-hint {
  font-size: 0.625rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.creator-marquee-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0.375rem 0;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.creator-marquee-track {
  display: flex;
  width: max-content;
  gap: 0.875rem;
  will-change: transform;
  user-select: none;
}

.creator-marquee-group {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-shrink: 0;
}

/* Individual Marquee Profile Card */
.marquee-profile-card {
  width: 320px;
  flex-shrink: 0;
  border-radius: 0.875rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  padding: 0.625rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.marquee-profile-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.marquee-card-discord:hover {
  border-color: #5865f2;
}

.marquee-card-facebook:hover {
  border-color: #1877f2;
}

.marquee-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.marquee-card-identity {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-width: 0;
}

.marquee-platform-icon {
  width: 22px;
  height: 22px;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.marquee-platform-icon.discord-icon {
  background-color: #5865f2;
  color: #ffffff;
}

.marquee-platform-icon.facebook-icon {
  background-color: #1877f2;
  color: #ffffff;
}

.marquee-card-name {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  white-space: nowrap;
}

.marquee-card-handle {
  font-size: 0.6875rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.marquee-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.1875rem 0.5rem;
  border-radius: 9999px;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.marquee-card-discord:hover .marquee-card-cta {
  background-color: #5865f2;
  border-color: #5865f2;
  color: #ffffff;
}

.marquee-card-facebook:hover .marquee-card-cta {
  background-color: #1877f2;
  border-color: #1877f2;
  color: #ffffff;
}

.marquee-card-img-well {
  height: 94px;
  width: 100%;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: #111214;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.marquee-img-discord {
  width: calc(100% + 6px);
  margin-left: -3px;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  transition: transform 0.35s ease;
}

.marquee-img-facebook {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.35s ease;
}

.marquee-profile-card:hover .marquee-img-discord,
.marquee-profile-card:hover .marquee-img-facebook {
  transform: scale(1.03);
}

/* Workflow Walkthrough Section */
.walkthrough-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  border-top: 1px solid var(--border-hairline);
}

.section-tag {
  font-size: 0.75rem;
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  color: var(--cobalt);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.375rem;
}

.section-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.section-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 36rem;
  margin-bottom: 3rem;
}

.walkthrough-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1200px) {
  .walkthrough-grid {
    grid-template-columns: 5fr 7fr;
  }
}

.stage-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.stage-card-btn {
  text-align: left;
  padding: 1rem;
  border-radius: 0.75rem;
  background-color: rgba(var(--bg-surface), 0.5);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.stage-card-btn:hover {
  background-color: var(--bg-surface);
  border-color: var(--border-hairline-strong);
}

.stage-card-btn.active {
  background-color: var(--bg-surface);
  border-color: var(--cobalt);
  box-shadow: var(--shadow-card);
}

.stage-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.375rem;
}

.stage-badge {
  font-size: 0.625rem;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  background-color: var(--bg-canvas);
  color: var(--text-muted);
  border: 1px solid var(--border-hairline);
}

.stage-card-btn.active .stage-badge {
  background-color: var(--cobalt);
  color: #ffffff;
  border-color: var(--cobalt);
}

.stage-sidebar-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.stage-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.stage-card-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.stage-card-details {
  display: none;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-hairline);
}

.stage-card-btn.active .stage-card-details {
  display: block;
}

.stage-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
  font-size: 0.6875rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.stage-highlight-check {
  color: var(--cobalt);
  font-weight: 700;
}

.sticky-viewport-wrap {
  position: relative;
}

@media (min-width: 1024px) {
  .sticky-viewport-wrap {
    position: sticky;
    top: 5rem;
  }
}

.viewport-bezel {
  padding: 0.625rem;
  border-radius: 1rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 640px) {
  .viewport-bezel {
    padding: 0.875rem;
    border-radius: 1.25rem;
  }
}

.viewport-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: #000000;
  cursor: zoom-in;
}

.viewport-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.viewport-canvas:hover .viewport-img {
  transform: scale(1.01);
}

.viewport-hover-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  opacity: 0;
  background-color: rgba(var(--bg-surface), 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-hairline);
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.viewport-canvas:hover .viewport-hover-badge {
  opacity: 1;
}

.viewport-quote-box {
  margin-top: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.viewport-quote-title {
  font-weight: 600;
  color: var(--cobalt);
}

/* Bento Gallery Grid Section */
.gallery-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  border-top: 1px solid var(--border-hairline);
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.bento-card {
  border-radius: 1rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-card);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--cobalt-border);
}

.bento-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bento-badge-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bento-sidebar-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.bento-actions {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.bento-action-btn {
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bento-action-btn:hover {
  background: var(--bg-elevated);
  color: var(--cobalt);
  border-color: var(--cobalt-border);
}

.bento-media-well {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.625rem;
  overflow: hidden;
  background-color: #0b0e17;
  border: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bento-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease;
}

.bento-card:hover .bento-img {
  transform: scale(1.02);
}

.bento-hover-pill {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  opacity: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3125rem 0.625rem;
  border-radius: 0.375rem;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 500;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.bento-card:hover .bento-hover-pill {
  opacity: 1;
}

.bento-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bento-title {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.bento-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-direction: column;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-header {
  padding: 0.75rem 1.25rem;
  background-color: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  font-size: 0.75rem;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lightbox-btn {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: all 0.15s ease;
}

.lightbox-btn:hover {
  background-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.lightbox-viewport {
  position: relative;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: auto;
  user-select: none;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background-color: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lightbox-nav-btn:hover {
  background-color: rgba(15, 23, 42, 1);
  border-color: rgba(255, 255, 255, 0.35);
}

.lightbox-nav-btn.prev {
  left: 1rem;
}

.lightbox-nav-btn.next {
  right: 1rem;
}

.lightbox-img {
  max-height: 80vh;
  width: auto;
  object-fit: contain;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease;
}

.lightbox-footer {
  padding: 0.75rem 1.25rem;
  background-color: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #94a3b8;
  font-size: 0.75rem;
}

/* Page Shell & Responsive Sidebar Layout */
.page-shell {
  width: 100%;
  padding-bottom: 4rem;
}

.page-layout {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

@media (min-width: 1024px) {
  .page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 2.5rem;
    align-items: start;
  }
}

@media (min-width: 1280px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 3.5rem;
  }
}

.main-stream {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Sidebar Stream: Sticky on Desktop, Default End-of-Post on Mobile */
.sidebar-stream {
  min-width: 0;
}

@media (min-width: 1024px) {
  .sidebar-stream {
    padding-top: 2.5rem;
  }
}

@media (max-width: 1023px) {
  .sidebar-stream {
    width: 100%;
    border-top: 1px solid var(--border-hairline);
    padding-top: 3.5rem;
    margin-top: 0.5rem;
  }
}

.sidebar-sticky-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .sidebar-sticky-panel {
    position: sticky;
    top: 5rem;
  }
}

@media (max-width: 1023px) {
  .sidebar-sticky-panel {
    position: static;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Portfolio Card Container */
.portfolio-card {
  position: relative;
  border-radius: 1.25rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-card);
  padding: 1.125rem 1.25rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.portfolio-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--cobalt-border);
}

.portfolio-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.portfolio-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  color: var(--cobalt);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portfolio-eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 9999px;
  background-color: var(--cobalt);
}

.portfolio-channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  width: fit-content;
  transition: all 0.15s ease;
}

.portfolio-channel-badge svg {
  color: #5865f2;
  flex-shrink: 0;
}

.portfolio-card:hover .portfolio-channel-badge {
  border-color: var(--cobalt-border);
  color: var(--text-primary);
}

.portfolio-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.portfolio-heading {
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  line-height: 1.25;
}

.portfolio-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Portfolio Channel Segmented Toggle (Discord ↔ Facebook) */
.portfolio-channel-toggle {
  display: flex;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  padding: 0.1875rem;
  border-radius: 0.625rem;
  gap: 0.25rem;
}

.channel-toggle-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.375rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.channel-toggle-btn.active {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-hairline);
}

.channel-toggle-btn:hover:not(.active) {
  color: var(--text-primary);
}

.channel-chip {
  font-size: 0.625rem;
  font-family: "JetBrains Mono", monospace;
  color: var(--text-muted);
  padding: 0.0625rem 0.3125rem;
  border-radius: 0.25rem;
  background-color: var(--bg-well);
  border: 1px solid var(--border-hairline);
}

.channel-toggle-btn.active .channel-chip {
  color: var(--cobalt);
  border-color: var(--cobalt-border);
}

.channel-view {
  display: none;
  flex-direction: column;
  gap: 0.875rem;
}

.channel-view.active {
  display: flex;
}

/* Embedded Discord / Facebook Profile Frame */
.discord-card-frame {
  position: relative;
  border-radius: 0.875rem;
  background-color: #111214;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-sm);
  padding: 0;
  overflow: hidden;
  width: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.discord-card-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.25);
  border-color: #5865f2;
}

.facebook-card-frame:hover {
  box-shadow: 0 8px 24px rgba(24, 119, 242, 0.25);
  border-color: #1877f2;
}

.discord-card-img-wrap {
  position: relative;
  max-height: 235px;
  overflow: hidden;
  background-color: #111214;
}

.facebook-card-img-wrap {
  max-height: 180px;
}

.discord-card-img {
  margin-left: -3px;
  width: calc(100% + 6px);
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top;
}

.facebook-card-img {
  margin-left: 0;
  width: 100%;
  height: auto;
}

.discord-verified-pill {
  position: absolute;
  bottom: 0.625rem;
  right: 0.625rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background-color: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.meta-blue-check-svg {
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* 2-Column Bento Quick-Copy Grid */
.portfolio-copy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 0.5rem;
}

.meta-pill-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.125rem;
  padding: 0.4375rem 0.625rem;
  border-radius: 0.625rem;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.meta-pill-copy:hover {
  background-color: var(--bg-elevated);
  border-color: var(--cobalt-border);
  color: var(--cobalt);
}

.meta-pill-label {
  font-size: 0.5625rem;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  line-height: 1;
}

.meta-pill-val {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  font-size: 0.75rem;
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.meta-pill-copy:hover .meta-pill-val {
  color: var(--cobalt);
}

/* Primary Direct Message CTA */
.btn-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #5865f2;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.6875rem 1.125rem;
  border-radius: 0.625rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.35);
  transition: all 0.15s ease;
  width: 100%;
}

.btn-discord:hover {
  background-color: #4752c4;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.45);
}

.btn-facebook {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #1877f2;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.6875rem 1.125rem;
  border-radius: 0.625rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.35);
  transition: all 0.15s ease;
  width: 100%;
}

.btn-facebook:hover {
  background-color: #0d6efd;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.45);
}

/* Footer */
.site-footer {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--border-hairline);
  background-color: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.75rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
  }
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--cobalt);
}
