@font-face {
  font-family: 'Breton';
  src: url('../assets/fonts/Breton.woff2') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'other';
  src: url('../assets/fonts/Machine.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: block;
  unicode-range: U+0020, U+0030-0033, U+0035-0039, U+0041-005A, U+0061-007A;
}

@font-face {
  font-family: 'Switzer';
  src: url('../assets/fonts/Switzer-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

.font-machine {
  font-family: 'other', monospace, sans-serif;
  letter-spacing: 0.08em;
}

.other-accent {
  font-family: 'other', sans-serif;
}

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

html, body {
  width: 100%;
  min-height: 100%;
  background: #0a0a0a;
  color: #f0f0f0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Atmosphere */
.works-bg-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: 
    radial-gradient(ellipse at 50% 15%, rgba(255, 255, 255, 0.04) 0%, transparent 65%),
    radial-gradient(circle at 85% 85%, rgba(255, 30, 0, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, #0a0a0a 0%, #0d0d0d 100%);
  z-index: 0;
}

.works-bg-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.75) 100%);
  z-index: 1;
}

.works-editorial-page {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Back Button */
.works-nav-header {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.5rem, 3.5vw, 2.5rem) clamp(1.5rem, 4.5vw, 3.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-left {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}

.page-title {
  font-family: 'Breton', serif;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #f0f0f0;
  line-height: 1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-title:hover {
  color: #ff1e00;
}

.hud-counter {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

.hud-counter #hud-current {
  color: #ff1e00;
  font-weight: 600;
}

.back-btn {
  text-decoration: none;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.3s ease;
}

.back-btn:hover {
  color: #ffffff;
}

/* Editorial Masthead */
.works-masthead {
  position: relative;
  z-index: 10;
  padding: 1.5rem clamp(1.5rem, 4.5vw, 3.5rem) 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.masthead-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
}

.masthead-tag {
  color: #ff1e00;
}

.masthead-heading {
  font-family: 'Breton', serif;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #f0f0f0;
  line-height: 1.05;
}

.masthead-lead {
  font-family: 'Breton', 'Inter', serif;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.55);
  max-width: 40rem;
  line-height: 1.5;
}

/* =========================================================================
   FLEXCAROUSEL (REACTBITS.DEV) STAGE & CANVAS (DESKTOP)
   ========================================================================= */
.works-carousel-stage {
  position: relative;
  z-index: 20;
  width: 100%;
  height: clamp(480px, 58vh, 700px);
  margin: 0.5rem 0 1rem;
  overflow: hidden;
}

@media (min-width: 901px) {
  html, body {
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }

  .works-editorial-page {
    height: 100vh;
    overflow: hidden;
    justify-content: space-between;
  }

  .works-nav-header {
    padding: 1rem clamp(1.5rem, 4vw, 3.5rem);
  }

  .works-masthead {
    padding: 0.5rem clamp(1.5rem, 4vw, 3.5rem) 0;
  }

  .works-carousel-stage {
    flex: 1;
    height: 100%;
    min-height: 480px;
    margin: 0;
  }

  .works-active-ribbon {
    margin: 0 clamp(1.5rem, 4vw, 3.5rem);
    padding: 0.75rem 1.5rem;
  }

  .works-scroll-hint {
    padding: 0.4rem 0 0.85rem;
  }
}

/* ReactBits FlexCarousel Styles */
.flex-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: contain;
  outline: none;
}

.flex-carousel[data-hover='open'] {
  cursor: pointer;
}

.flex-carousel[data-hover='close'] {
  cursor: default;
}

.flex-carousel[data-dragging] {
  cursor: grabbing;
}

.flex-carousel:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(255, 30, 0, 0.55);
}

/* ReactBits FlexCarousel Captions */
.flex-carousel__caption {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% + var(--flex-carousel-half, 23.5%) * var(--flex-carousel-lift, 1) + 16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  pointer-events: none;
  text-align: center;
  animation: flex-carousel-reveal 900ms ease both;
  z-index: 25;
  transition: opacity 300ms ease;
}

.flex-carousel__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  line-height: 1.35;
  animation: flex-carousel-title 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.flex-carousel__title-text {
  font-family: 'Switzer', -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #f0f0f0;
}

.flex-carousel__subtitle {
  font-family: 'other', monospace, sans-serif;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

.flex-carousel__count {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: 'other', monospace, sans-serif;
  font-size: 12px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.45);
  transition: opacity 400ms ease;
  letter-spacing: 0.08em;
}

.flex-carousel__count[data-hidden] {
  opacity: 0;
}

.flex-carousel__digits {
  display: inline-flex;
}

.flex-carousel__digit {
  display: inline-block;
  height: 1em;
  overflow: hidden;
}

.flex-carousel__reel {
  display: flex;
  flex-direction: column;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.flex-carousel__reel span {
  height: 1em;
  display: block;
}

.flex-carousel__slash {
  opacity: 0.5;
  margin: 0 2px;
}

@keyframes flex-carousel-title {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes flex-carousel-reveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flex-carousel__caption,
  .flex-carousel__title {
    animation: none;
  }

  .flex-carousel__reel {
    transition: none;
  }
}

/* =========================================================================
   VERTICAL EDITORIAL CASE STUDY (UNCONTAINED LUXURY SPREAD)
   ========================================================================= */
.project-case-study {
  display: none;
  position: relative;
  z-index: 50;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 1.5rem clamp(1.5rem, 5vw, 4rem) 8rem;
  background: transparent;
}

.editorial-status-bar {
  display: none;
}

@media (min-width: 901px) {
  html.is-case-study-open {
    height: auto !important;
    min-height: 100% !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    scroll-behavior: auto !important;
  }

  body.is-case-study-open {
    height: auto !important;
    min-height: 100% !important;
    overflow-y: visible !important;
    overflow-x: hidden !important;
  }

  .works-editorial-page.is-case-study-open {
    height: auto !important;
    min-height: 100vh !important;
    overflow-y: visible !important;
    overflow-x: hidden !important;
    justify-content: flex-start !important;
  }

  .works-editorial-page.is-case-study-open .works-carousel-stage,
  .works-editorial-page.is-case-study-open .flex-carousel {
    flex: none !important;
    height: 72vh !important;
    min-height: 440px !important;
    margin-bottom: 0 !important;
    overflow: visible !important;
    overscroll-behavior: auto !important;
    touch-action: auto !important;
  }

  .works-editorial-page.is-case-study-open .works-scroll-hint {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .works-editorial-page.is-case-study-open .project-case-study {
    display: block;
    animation: csFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  /* Floating Minimalist Editorial Utility Bar */
  .works-editorial-page.is-case-study-open .editorial-status-bar {
    position: sticky;
    top: 1.25rem;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1.4rem;
    margin-bottom: 3.5rem;
    background: rgba(14, 14, 14, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
    transition: all 0.3s ease;
  }

  .status-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
  }

  .status-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff1e00;
    box-shadow: 0 0 10px #ff1e00, 0 0 16px #ff1e00;
    animation: pulseDot 2s infinite ease-in-out;
  }

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

  .editorial-close-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
  }

  .editorial-close-btn .close-key {
    color: #ff1e00;
    font-weight: 600;
  }

  .editorial-close-btn:hover {
    color: #ffffff;
    transform: translateY(-1px);
  }

  .editorial-close-btn:hover .close-key {
    color: #ff4d33;
  }
}

/* Editorial Article Spread */
.editorial-article {
  display: flex;
  flex-direction: column;
  gap: 3.75rem;
}

/* Masthead Header */
.editorial-article-header {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 2.25rem;
}

.editorial-kicker {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.55);
}

.editorial-kicker .kicker-tag {
  color: #ff1e00;
  font-weight: 600;
}

.editorial-kicker .kicker-sep {
  opacity: 0.3;
}

.editorial-kicker .kicker-category {
  color: #ffffff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.editorial-headline {
  font-family: 'Breton', serif;
  font-size: clamp(3.2rem, 6.8vw, 6rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 0.96;
  color: #f7f7f7;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}

/* 4-Column Editorial Specification Grid */
.editorial-spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.spec-cell {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.spec-label {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
}

.spec-value {
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #ffffff;
  line-height: 1.38;
}

.spec-value.status-active {
  color: #ff2d12;
  font-weight: 600;
  font-size: 1.15rem;
  text-shadow: 0 0 16px rgba(255, 30, 0, 0.35);
}

/* Editorial Story Sections (Sidebar + Main Column) */
.editorial-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 3.5rem;
}

.editorial-section-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: baseline;
}

.editorial-section-sidebar {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.45);
}

.editorial-section-sidebar .section-num {
  color: #ff1e00;
  font-weight: 600;
  font-size: 0.95rem;
}

.editorial-narrative {
  font-family: 'Switzer', -apple-system, sans-serif;
  font-size: clamp(1.2rem, 1.85vw, 1.65rem);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(245, 245, 245, 0.9);
  letter-spacing: -0.01em;
  max-width: 860px;
}

/* Technology Stack Chips */
.editorial-stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.editorial-chip {
  font-family: 'other', monospace, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  padding: 0.55rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  transition: all 0.25s ease;
}

.editorial-chip:hover {
  background: rgba(255, 30, 0, 0.08);
  border-color: #ff1e00;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 30, 0, 0.2);
}

/* Editorial CTAs / Action Launchers */
.editorial-actions-section {
  border-bottom: none;
  padding-bottom: 1.5rem;
}

.editorial-action-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.editorial-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 2.2rem;
  border-radius: 999px;
  background: #f0f0f0;
  color: #0a0a0a;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.12);
}

.editorial-cta-primary:hover {
  background: #ff1e00;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(255, 30, 0, 0.45);
}

.editorial-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 2.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f0f0f0;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: all 0.3s ease;
}

.editorial-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.editorial-cta-private {
  display: inline-flex;
  align-items: center;
  padding: 0.95rem 1.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  cursor: default;
}

/* Colophon Footnote */
.editorial-colophon {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 2rem;
}

.colophon-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 30, 0, 0.5) 0%, rgba(255, 255, 255, 0.1) 40%, transparent 100%);
}

.colophon-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.colophon-meta {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.4);
}

.colophon-return-btn {
  background: transparent;
  border: none;
  color: #ff1e00;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  transition: all 0.2s ease;
}

.colophon-return-btn:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

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

@media (max-width: 1024px) {
  .editorial-spec-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .editorial-section-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Bottom Hint */
.works-scroll-hint {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.25rem 0 2rem;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
}

.hint-pulse {
  width: 6px;
  height: 6px;
  background: #ff1e00;
  border-radius: 50%;
  box-shadow: 0 0 8px #ff1e00;
  animation: pulseGlow 2s infinite ease-in-out;
}

/* =========================================================================
   FULLSCREEN EDITORIAL DETAIL DRAWER / CASE STUDY MODAL
   ========================================================================= */
.editorial-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2.5rem);
}

.editorial-detail-overlay.is-open {
  display: flex;
  animation: fadeIn 0.3s ease forwards;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.detail-drawer {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  overflow-y: auto;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: clamp(1.5rem, 3vw, 3rem);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(255, 30, 0, 0.08);
}

.detail-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-index-badge {
  font-size: 0.75rem;
  color: #ff1e00;
  letter-spacing: 0.12em;
}

.detail-close-btn {
  appearance: none;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 0.2s;
}

.detail-close-btn:hover {
  color: #fff;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.detail-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.detail-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.detail-project-title {
  font-family: 'Breton', serif;
  font-size: clamp(2.2rem, 3.5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
}

.detail-project-year {
  font-size: 0.8rem;
  color: #ff1e00;
}

.detail-project-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}

.detail-stack-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
}

.detail-section-title {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
}

.detail-stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stack-pill {
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  color: #f0f0f0;
}

.detail-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.btn-action-live,
.btn-action-github {
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.35rem;
  border-radius: 4px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
}

.btn-action-live {
  background: #ff1e00;
  color: #fff;
  border: 1px solid #ff1e00;
  box-shadow: 0 0 16px rgba(255, 30, 0, 0.3);
}

.btn-action-live:hover {
  background: #e01a00;
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(255, 30, 0, 0.5);
}

.btn-action-github {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-action-github:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.btn-action-private {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.35rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.45);
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

/* Drawer Visual Col */
.detail-visual-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-main-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Frame Corner Accents */
.frame-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: #ff1e00;
  pointer-events: none;
}
.frame-corner.tl { top: 8px; left: 8px; border-top: 2px solid; border-left: 2px solid; }
.frame-corner.tr { top: 8px; right: 8px; border-top: 2px solid; border-right: 2px solid; }
.frame-corner.bl { bottom: 8px; left: 8px; border-bottom: 2px solid; border-left: 2px solid; }
.frame-corner.br { bottom: 8px; right: 8px; border-bottom: 2px solid; border-right: 2px solid; }

/* =========================================================================
   MOBILE REGULAR SCROLL VIEW (width <= 900px)
   ========================================================================= */
.mobile-card-list {
  display: none;
}

@media (max-width: 900px) {
  html, body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  /* Hide Desktop WebGL Carousel on Mobile */
  .works-carousel-stage,
  .works-active-ribbon,
  .works-scroll-hint,
  .desktop-only {
    display: none !important;
  }

  /* Show Mobile Regular Card Scroll View */
  .mobile-card-list {
    display: flex !important;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem clamp(1rem, 4vw, 2rem) 4rem;
    width: 100%;
    position: relative;
    z-index: 10;
  }

  .mobile-project-card {
    background: rgba(18, 18, 18, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
  }

  .mobile-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #000;
  }

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

  .mobile-card-body {
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .mobile-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 0.5rem;
  }

  .mobile-card-meta .meta-index {
    color: #ff1e00;
    font-weight: 600;
  }

  .mobile-card-title {
    font-family: 'Breton', serif;
    font-size: 1.75rem;
    color: #fff;
    line-height: 1.15;
  }

  .mobile-card-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
  }

  .mobile-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .mobile-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.5rem;
  }

  .detail-content-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.25); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
