/**
 * Krishna Sahoo Portfolio — Taesu's Workshop (Refined)
 * Pixel-matched to design reference.
 */

/* ============================================================
   Section Shell
   ============================================================ */

.workshop-section {
  width: 100%;
  position: relative;
  z-index: 10;
  background-color: var(--bg-light, lab(99.38% 0.15 1.65));
  padding: 5.5rem 0 3.5rem;
  scroll-margin-top: 80px;
  overflow: hidden;
}

/* Subtle dot-matrix texture */
.workshop-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0,0,0,0.045) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
  z-index: 0;
}

/* ── Floating emerald dot particles ── */
.workshop-particle {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0ea271;
  opacity: 0.65;
  pointer-events: none;
  z-index: 1;
  animation: particle-float 4s ease-in-out infinite;
}

@keyframes particle-float {
  0%, 100% { transform: translateY(0)   scale(1);   opacity: 0.65; }
  50%       { transform: translateY(-9px) scale(1.18); opacity: 0.85; }
}

/* ============================================================
   TOP HEADER BLOCK
   ============================================================ */

.workshop-top-header {
  max-width: 840px;
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Eyebrow */
.workshop-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #0ea271;
  margin-bottom: 0.65rem;
}

.workshop-eyebrow-star { font-size: 0.85rem; }

/* Heading */
.workshop-heading {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.08;
  color: #131313;
  letter-spacing: -1.8px;
  margin-bottom: 0.85rem;
}

.workshop-heading em {
  font-style: italic;
  color: #0ea271;
}

/* Subtitle Body */
.workshop-body-top {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.72;
  color: #666666;
  max-width: 660px;
  margin: 0 auto;
}

/* Cursive signature inline */
.workshop-signature {
  display: inline-block;
  font-family: 'Dancing Script', 'Caveat', cursive;
  font-size: 1.45rem;
  font-weight: 600;
  color: #222222;
  margin-left: 8px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* ============================================================
   2-COLUMN MAIN CONTAINER (Constellation Stage + Right Panel)
   ============================================================ */

.workshop-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: calc(70% - 1rem) calc(30% - 1rem);
  gap: 0 2rem;
  align-items: start;
  position: relative;
  z-index: 2;
}

/* ============================================================
   CENTER/LEFT — Constellation Stage (Takes all remaining left space)
   ============================================================ */

.workshop-stage {
  position: relative;
  width: 100%;
  height: 600px;         /* Spacious height for orbit */
  overflow: visible;
  min-width: 0;
}

/* SVG arc lines */
.constellation-arcs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

/* ── Taesu center wrap ── */
.taesu-center-wrap {
  position: absolute;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* JS will set left/top precisely */
  pointer-events: none;
}

/* ── Project Node Cards ── */
.project-node {
  position: absolute;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 16px;
  padding: 13px 14px 12px;
  width: 162px;
  box-shadow:
    0 2px 14px rgba(0,0,0,0.07),
    0 1px 0 rgba(255,255,255,0.95) inset;
  cursor: pointer;
  z-index: 5;
  /* JS positions with left/top; centered on node via transform */
  transform: translate(-50%, -50%);
  transition:
    box-shadow 0.30s cubic-bezier(0.16,1,0.3,1),
    border-color 0.22s ease;
  opacity: 0;
  animation: node-enter 0.55s cubic-bezier(0.16,1,0.3,1) both;
  will-change: transform, box-shadow;
}

.project-node:hover {
  box-shadow:
    0 12px 36px rgba(0,0,0,0.13),
    0 0 0 1.5px rgba(14,162,113,0.28),
    0 0 22px rgba(14,162,113,0.09);
  border-color: rgba(14,162,113,0.22);
  z-index: 8;
}

@keyframes node-enter {
  from { opacity: 0; transform: translate(-50%,-50%) scale(0.72); }
  to   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}

@keyframes node-exit {
  from { opacity: 1; transform: translate(-50%,-50%) scale(1); }
  to   { opacity: 0; transform: translate(-50%,-50%) scale(0.68); }
}

.project-node.exiting {
  animation: node-exit 0.26s ease forwards;
  pointer-events: none;
}

/* Visited Memory Node State ("Taesu Remembers") */
.project-node.visited::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 19px;
  border: 1.5px solid rgba(14, 162, 113, 0.45);
  box-shadow: 0 0 12px rgba(14, 162, 113, 0.22);
  pointer-events: none;
  animation: visited-pulse 3s ease-in-out infinite;
}

@keyframes visited-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 0.95; transform: scale(1.02); }
}

/* ── Floating tech label ABOVE the card ── */
.node-tech-float {
  position: absolute;
  top: -11px;
  right: 10px;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.2px;
  z-index: 2;
  /* Color is set inline by JS */
}

/* ── Icon container ── */
.node-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 9px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.node-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
  display: block;
}

.node-icon-fallback {
  font-size: 1.1rem;
  line-height: 1;
}

/* ── Card text ── */
.node-title {
  font-family: var(--font-display);
  font-size: 0.87rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-subtitle {
  font-size: 0.67rem;
  color: #999;
  line-height: 1.4;
  margin-bottom: 9px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Tech badge (inside card at bottom) ── */
.project-node .node-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  border: 1px solid;
  /* Colors set inline */
}

/* ── Drag hint ── */
.drag-hint {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: #bbb;
  letter-spacing: 0.3px;
  pointer-events: none;
  z-index: 20;
  white-space: nowrap;
}

/* ============================================================
   RIGHT PANEL
   ============================================================ */

.workshop-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 0.25rem;
}

/* Eyebrow */
.workshop-right-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: #0ea271;
  margin-bottom: 0.25rem;
}

/* ── Category Panel card ── */
.category-panel {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 20px;
  padding: 18px 16px 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}

/* Top area: currently-active category */
.category-top-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 18px;
}

/* Active icon — emerald ring border, hexagonal-ish */
.category-active-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  background: rgba(14,162,113,0.07);
  border: 2px solid rgba(14,162,113,0.35);
  box-shadow:
    0 0 0 4px rgba(14,162,113,0.08),
    0 2px 12px rgba(14,162,113,0.15);
  margin-bottom: 7px;
  transition: all 0.25s ease;
}

.category-active-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: #111;
}

/* Bottom row: all category selectors + Taesu center */
.category-bottom-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}

/* Category buttons */
.category-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: rgba(0,0,0,0.02);
  border: 1.5px solid rgba(0,0,0,0.07);
  border-radius: 14px;
  padding: 10px 6px 9px;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  color: #888;
  line-height: 1;
}

.category-btn:hover {
  border-color: rgba(14,162,113,0.3);
  background: rgba(14,162,113,0.04);
  color: #0ea271;
}

.category-btn.active {
  border-color: #0ea271;
  background: rgba(14,162,113,0.07);
  color: #0ea271;
}

.category-btn-icon { font-size: 1.1rem; }

/* Taesu mini face center (category panel decoration) */
.category-taesu-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── About Taesu card ── */
.taesu-about-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 18px;
  padding: 15px 16px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.05);
}

.taesu-about-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.taesu-about-title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: #111;
}

.taesu-about-info-icon {
  font-size: 0.75rem;
  color: #ccc;
  cursor: default;
}

.taesu-about-body {
  font-size: 0.72rem;
  color: #808080;
  line-height: 1.62;
  margin-bottom: 11px;
}

.taesu-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 10px;
  padding: 8px 12px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: #444;
  cursor: pointer;
  width: 100%;
  transition: all 0.22s ease;
}

.taesu-action-btn:hover {
  background: rgba(14,162,113,0.06);
  border-color: rgba(14,162,113,0.28);
  color: #0ea271;
}

.taesu-action-btn-arrow {
  margin-left: auto;
  font-size: 0.72rem;
  opacity: 0.6;
}

/* ── Tips card ── */
.tips-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 16px;
  padding: 13px 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.tips-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.77rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 5px;
}

.tips-text {
  font-size: 0.69rem;
  color: #999;
  line-height: 1.6;
}

/* ============================================================
   STATS BAR
   ============================================================ */

.workshop-stats-bar {
  width: 100%;
  max-width: 1280px;
  margin: 2rem auto 0;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.workshop-stats-inner {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 18px;
  padding: 1.35rem 2.25rem;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding-right: 1.5rem;
  border-right: 1px solid rgba(0,0,0,0.07);
}

.stat-item:last-of-type { border-right: none; }

.stat-icon {
  font-size: 1.1rem;
  color: #0ea271;
  flex-shrink: 0;
  line-height: 1;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: #111;
  line-height: 1;
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 0.67rem;
  color: #bbb;
  font-weight: 500;
  margin-top: 2px;
  line-height: 1;
}

.stat-text-group {
  display: flex;
  flex-direction: column;
}

/* Quote */
.stat-quote {
  flex: 1.4;
  padding-left: 2rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-style: italic;
  color: #888;
  line-height: 1.65;
  position: relative;
}

.stat-quote-open,
.stat-quote-close {
  font-family: Georgia, serif;
  font-size: 2.2rem;
  color: #0ea271;
  opacity: 0.28;
  line-height: 0.5;
  vertical-align: -0.6rem;
}

.stat-quote-open { margin-right: 2px; }
.stat-quote-close { margin-left: 2px; }

/* ── Scroll chevron ── */
.workshop-scroll-hint {
  display: flex;
  justify-content: center;
  margin-top: 1.2rem;
  position: relative;
  z-index: 2;
}

.workshop-scroll-btn {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #aaa;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: all 0.28s ease;
  animation: chevron-bounce 2.4s ease-in-out infinite;
}

.workshop-scroll-btn:hover {
  color: #0ea271;
  border-color: rgba(14,162,113,0.3);
  box-shadow: 0 4px 18px rgba(14,162,113,0.15);
}

@keyframes chevron-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(4px); }
}

/* ============================================================
   Animations — trust pulse etc.
   ============================================================ */

.taesu-ring.trust-pulse {
  animation: ring-pulse 0.85s ease;
}

@keyframes ring-pulse {
  0%   { box-shadow: 0 3px 18px rgba(14,162,113,0.55), 0 0 0 0   rgba(14,162,113,0.5); }
  70%  { box-shadow: 0 3px 18px rgba(14,162,113,0.55), 0 0 0 14px rgba(14,162,113,0); }
  100% { box-shadow: 0 3px 18px rgba(14,162,113,0.55), 0 0 0 0   rgba(14,162,113,0); }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1100px) {
  .workshop-container {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 0 1.5rem;
  }
}

@media (max-width: 900px) {
  .workshop-container {
    grid-template-columns: 1fr;
    gap: 2rem 0;
  }
  .workshop-stage { height: 500px; }
  .workshop-right {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

@media (max-width: 600px) {
  .workshop-container { padding: 0 1rem; }
  .workshop-heading   { font-size: 2.2rem; }
  .workshop-stage     { height: 420px; }
  .workshop-right     { grid-template-columns: 1fr; }
  .workshop-stats-inner {
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.25rem;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 0 0 0.9rem;
    width: 100%;
  }
  .stat-item:last-of-type { border-bottom: none; padding-bottom: 0; }
  .stat-quote { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .workshop-particle,
  .workshop-scroll-btn,
  .taesu-mascot { animation: none !important; }
  .project-node { animation: none !important; opacity: 1; }
}

/* ==========================================================================
   Immersive Project Sheet — Slides up from bottom
   ========================================================================== */

/* Backdrop */
.project-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 8, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  opacity: 0;
  animation: backdropFadeIn 0.38s ease forwards;
  will-change: opacity;
}

.project-sheet-backdrop.closing {
  animation: backdropFadeOut 0.32s ease forwards;
}

/* The sheet itself */
.project-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 91vh;
  z-index: 1001;
  border-radius: 28px 28px 0 0;
  overflow: hidden;
  /* Matching the premium dark metallic gradient background from the hero right-side */
  background: linear-gradient(135deg, rgba(58, 58, 58, 0.96) 0%, rgba(26, 26, 26, 0.98) 100%);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none;
  box-shadow: 0 -24px 80px rgba(0, 0, 0, 0.55), 0 -2px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  animation: sheetSlideUp 0.48s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform;
}

.project-sheet.closing {
  animation: sheetSlideDown 0.36s cubic-bezier(0.4, 0, 1, 1) forwards;
}

/* Drag handle hint at top center */
.sheet-drag-handle {
  width: 38px;
  height: 4px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 2px;
  margin: 12px auto 0;
  flex-shrink: 0;
}

/* Glowing accent stripe */
.sheet-accent-stripe {
  width: 100%;
  height: 2.5px;
  background: linear-gradient(90deg,
      transparent 0%,
      var(--project-accent, #00f2fe) 25%,
      var(--project-accent, #00f2fe) 75%,
      transparent 100%);
  box-shadow: 0 0 32px var(--project-accent, #00f2fe),
    0 0 64px rgba(var(--project-accent-rgb, 0, 242, 254), 0.25);
  flex-shrink: 0;
}

/* Sheet header */
.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  flex-shrink: 0;
  gap: 2rem;
}

.sheet-header-title-area {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sheet-header-title {
  font-family: var(--font-tech);
  font-size: 2.2rem;
  font-weight: 800;
  color: #FAFAFA;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.sheet-header-subtitle {
  font-size: 0.92rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.48);
}

.sheet-header-actions-area {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.sheet-header-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sheet-header-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  font-family: var(--font-tech);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.3px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.sheet-header-link-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.sheet-header-link-btn.btn-primary {
  background: var(--project-accent, #00f2fe);
  color: #0d0d0f;
  border-color: transparent;
}

.sheet-header-link-btn.btn-primary:hover {
  background: transparent;
  color: var(--project-accent, #00f2fe);
  border-color: var(--project-accent, #00f2fe);
  box-shadow: 0 0 16px rgba(var(--project-accent-rgb, 0, 242, 254), 0.25);
}

/* Close button */
.sheet-close-btn {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sheet-close-btn:hover {
  border-color: var(--project-accent, #00f2fe);
  color: var(--project-accent, #00f2fe);
  background: rgba(var(--project-accent-rgb, 0, 242, 254), 0.06);
  box-shadow: 0 0 20px rgba(var(--project-accent-rgb, 0, 242, 254), 0.18);
  transform: scale(1.08) rotate(90deg);
}

/* ==========================================================================
   Sheet Body — Two-column layout with leftward-shifted center line
   ========================================================================== */

.sheet-body {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  /* Shift center line left */
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Scrollable columns */
.sheet-visuals,
.sheet-details {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.sheet-visuals::-webkit-scrollbar,
.sheet-details::-webkit-scrollbar {
  width: 4px;
}

.sheet-visuals::-webkit-scrollbar-track,
.sheet-details::-webkit-scrollbar-track {
  background: transparent;
}

.sheet-visuals::-webkit-scrollbar-thumb,
.sheet-details::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.11);
  border-radius: 2px;
}

/* Left column: Visuals & Meta */
.sheet-visuals {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

/* Image Carousel — Cinematic aspect ratio (compact vertical height) */
.sheet-carousel {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  /* Cinematic, wider and shorter */
  background: #09090e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 44px rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
}

.sheet-carousel-inner {
  width: 100%;
  height: 100%;
  position: relative;
}

.sheet-carousel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.42s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.sheet-carousel-img.active {
  opacity: 1;
  pointer-events: auto;
}

.sheet-carousel-img:hover {
  transform: scale(1.025);
}

.sheet-carousel-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(255, 255, 255, 0.13);
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  letter-spacing: 3px;
}

/* Carousel navigation arrows */
.sheet-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(8, 8, 14, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  font-size: 0.85rem;
  transition: all 0.25s ease;
  backdrop-filter: blur(6px);
}

.sheet-carousel-nav:hover {
  background: var(--project-accent, #00f2fe);
  border-color: var(--project-accent, #00f2fe);
  color: #0d0d0f;
  box-shadow: 0 0 16px var(--project-accent, #00f2fe);
}

.sheet-carousel-nav.prev {
  left: 12px;
}

.sheet-carousel-nav.next {
  right: 12px;
}

/* Carousel dots */
.sheet-carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.sheet-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: all 0.25s ease;
}

.sheet-carousel-dot.active {
  background: var(--project-accent, #00f2fe);
  transform: scale(1.45);
  box-shadow: 0 0 8px var(--project-accent, #00f2fe);
}

/* Left Metadata grouping style */
.sheet-left-meta {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.sheet-meta-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sheet-status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

/* Tech cloud in left column */
.sheet-tech-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.sheet-tech-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sheet-tech-pill {
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 14px;
  border-radius: 20px;
  transition: all 0.22s ease;
}

.sheet-tech-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.14);
}

/* ==========================================================================
   Sheet Right Column: Details & Impact Specifications
   ========================================================================== */

.sheet-details {
  padding: 2.2rem 2.8rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Section label */
.sheet-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

/* Key Metrics Grid Callouts */
.sheet-metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.sheet-metric-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-top: 2.5px solid var(--project-accent, #00f2fe);
  padding: 10px 14px;
  border-radius: 14px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease;
}

.sheet-metric-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.sheet-metric-value {
  font-family: var(--font-tech);
  font-size: 1.3rem;
  font-weight: 800;
  color: #FAFAFA;
  line-height: 1.1;
  margin-bottom: 3px;
}

.sheet-metric-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.48);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* My Role & Contributions Box */
.sheet-role-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid var(--project-accent, #00f2fe);
  padding: 12px 16px;
  border-radius: 14px;
}

.sheet-role-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.sheet-role-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #FFFFFF;
}

.sheet-timeline-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--project-accent, #00f2fe);
  background: rgba(var(--project-accent-rgb, 0, 242, 254), 0.1);
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(var(--project-accent-rgb, 0, 242, 254), 0.2);
  white-space: nowrap;
}

.sheet-role-details {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
  margin: 0;
}

/* Feature list with glowing accent bullets */
.sheet-feature-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.sheet-feature-list li {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.62;
  padding-left: 20px;
  position: relative;
}

.sheet-feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--project-accent, #00f2fe);
  box-shadow: 0 0 10px var(--project-accent, #00f2fe);
}

.sheet-feature-list li strong {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

/* ==========================================================================
   Sheet Animations
   ========================================================================== */

@keyframes backdropFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes backdropFadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes sheetSlideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes sheetSlideDown {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(100%);
  }
}

/* ==========================================================================
   Responsive — Mobile & Tablet
   ========================================================================== */

@media (max-width: 992px) {
  .works-header {
    transform: none !important;
    opacity: 1 !important;
  }

  .works-bento {
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: none !important;
    opacity: 1 !important;
  }

  .work-card-large,
  .work-card-tall,
  .work-card-wide,
  .work-card-compact {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .work-card-large {
    min-height: 400px !important;
    height: auto !important;
  }

  .work-card-tall {
    min-height: 320px !important;
    height: auto !important;
  }

  .work-card-wide {
    min-height: auto !important;
    height: auto !important;
    padding: 2rem !important;
  }

  .wide-card-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .wide-card-right {
    align-items: flex-start;
    width: 100%;
  }

  .wide-card-tech-row {
    justify-content: flex-start;
    max-width: 100%;
  }

  /* Project Sheet: stack columns */
  .sheet-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .sheet-visuals {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    overflow-y: visible;
    max-height: none;
  }

  .sheet-carousel {
    aspect-ratio: 16 / 9;
  }

  .sheet-details {
    padding: 1.5rem;
  }

  .sheet-header {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    flex-wrap: wrap;
  }

  .sheet-header-title-area {
    flex: 1;
    min-width: 0;
  }

  .sheet-header-title {
    font-size: 1.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sheet-header-actions-area {
    flex-shrink: 0;
    gap: 8px;
  }

  .sheet-header-links {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .project-sheet {
    height: 95vh;
    border-radius: 22px 22px 0 0;
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  .works-title {
    font-size: 2.2rem;
  }

  .works-section {
    padding: 5rem 1rem 3rem;
  }
}

@media (max-width: 680px) {
  .work-card-large {
    height: 320px !important;
    min-height: auto !important;
  }

  .large-card-title {
    font-size: 1.6rem;
  }

  .large-card-tagline,
  .wide-card-tagline {
    display: none;
  }

  .works-tabs {
    flex-wrap: wrap;
    border-radius: 18px;
    gap: 4px;
  }

  .works-tab-btn {
    font-size: 0.8rem;
    padding: 8px 16px;
  }

  .works-tab-indicator {
    display: none;
  }

  .works-tab-btn.active {
    background: linear-gradient(135deg, rgba(55, 55, 55, 0.85) 0%, rgba(24, 24, 24, 0.95) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 30px;
    color: #ffffff !important;
  }

  /* Project Sheet — full width on mobile */
  .project-sheet {
    width: 100% !important;
    height: 96vh;
    border-radius: 20px 20px 0 0;
  }

  .sheet-header {
    padding: 0.9rem 1rem;
    gap: 0.6rem;
  }

  .sheet-header-title {
    font-size: 1.15rem;
  }

  .sheet-header-subtitle {
    display: none;
  }

  .sheet-header-link-btn {
    padding: 6px 10px;
    font-size: 0.72rem;
    gap: 4px;
  }

  .sheet-header-link-btn span {
    display: none;
  }

  .sheet-visuals {
    padding: 1rem;
  }

  .sheet-details {
    padding: 1rem;
  }

  .sheet-metrics-row {
    grid-template-columns: 1fr 1fr;
  }

  .sheet-meta-tags {
    display: none;
  }

  .featured-card-inner {
    grid-template-columns: 1fr;
  }

  .case-study-modal {
    grid-template-columns: 1fr;
    inset: 1rem;
    overflow-y: auto;
  }

  .modal-body-grid {
    grid-template-columns: 1fr;
  }

  .modal-top-header {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ── 480px: Extra-small mobile ── */
@media (max-width: 480px) {
  .project-sheet {
    height: 97vh;
    border-radius: 16px 16px 0 0;
  }

  .sheet-header {
    padding: 0.75rem 0.85rem;
  }

  .sheet-header-title {
    font-size: 1rem;
  }

  .sheet-close-btn {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .sheet-carousel {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
  }

  .sheet-visuals {
    padding: 0.75rem;
    gap: 1rem;
  }

  .sheet-details {
    padding: 0.75rem;
    gap: 1.2rem;
  }

  .sheet-metrics-row {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .sheet-metric-value {
    font-size: 1.1rem;
  }

  .sheet-tech-pill {
    font-size: 0.68rem;
    padding: 4px 10px;
  }

  /* Workshop section on tiny screens */
  .workshop-section {
    padding: 4rem 0 2.5rem;
  }

  .workshop-top-header {
    padding: 0 0.75rem;
  }

  .workshop-container {
    padding: 0 0.75rem;
  }

  .workshop-stage {
    height: 340px !important;
  }

  .project-node {
    width: 130px !important;
  }

  .node-title {
    font-size: 0.78rem;
  }
}

/* REDUCED MOTION OVERRIDES */
@media (prefers-reduced-motion: reduce) {

  .project-card-3d-slot,
  .case-study-modal,
  .case-study-backdrop {
    transition: opacity 0.15s ease !important;
    transform: none !important;
  }
}

/* ==========================================================================
   Full-Width Sticky Canvas Memories Section (Surprise Board)
   ========================================================================== */

.memories-section {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 3.5rem;
  margin-bottom: 4.5rem;
  min-height: 520px;
  overflow: hidden;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 18px 36px -12px rgba(0, 0, 0, 0.08), inset 0 -18px 36px -12px rgba(0, 0, 0, 0.08);
}

/* Off-White Hero / Journal Canvas Paper Finish matching website theme */
.memories-canvas-background {
  position: relative;
  width: 100%;
  min-height: 520px;
  background: var(--bg-light, lab(99.38% 0.15 1.65)); /* Clean theme off-white */
  display: flex;
  flex-direction: column;
}

/* SVG Sketch Noise Texture (Matches Hero Body & Journal Card) */
.canvas-texture-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Tactile graph paper / pinboard grid pattern */
.canvas-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(0, 0, 0, 0.07) 1.2px, transparent 1.2px),
    linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 24px 24px, 48px 48px, 48px 48px;
  opacity: 0.85;
  pointer-events: none;
}

/* Neutral soft white ambient spotlight */
.canvas-ambient-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8) 0%, transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(0, 0, 0, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

/* Vignette shadow towards outer edges */
.canvas-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.05) 100%);
  pointer-events: none;
}

/* Inner board container */
.memories-board-container {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Tactile paper pinned title badge */
.memories-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 9px 20px;
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: rotate(-1.5deg);
  margin-bottom: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.memories-header-badge:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.pin-icon {
  font-size: 1.15rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.board-title-text {
  font-family: var(--font-tech);
  font-size: 0.85rem;
  font-weight: 900;
  color: #0F172A;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

/* Dedicated canvas region ready for sticky notes / photos */
.memories-board-canvas {
  position: relative;
  width: 100%;
  min-height: 360px;
  border: 2px dashed rgba(0, 0, 0, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease;
}

/* ============================================================
   SANDBOX ACTIVE STYLES FOR WORKSHOP STAGE
   ============================================================ */
.workshop-stage.sandbox-active .project-node {
  opacity: 0 !important;
  transform: scale(0.4) !important;
  pointer-events: none !important;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.workshop-stage.sandbox-active .constellation-arcs {
  opacity: 0 !important;
  transition: opacity 0.4s ease !important;
}

.workshop-stage.sandbox-active .drag-hint {
  opacity: 0 !important;
  pointer-events: none !important;
}

.workshop-stage.sandbox-active {
  background: radial-gradient(circle at center, rgba(251, 113, 133, 0.04) 0%, rgba(255, 255, 255, 0.3) 70%, transparent 100%);
  border-color: rgba(244, 114, 182, 0.35);
  box-shadow: 0 20px 60px rgba(244, 114, 182, 0.15);
}

.sandbox-return-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(244, 114, 182, 0.45);
  color: #db2777;
  font-family: var(--font-display, sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 24px rgba(244, 114, 182, 0.20);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: translateY(-8px);
  animation: sandbox-btn-in 0.4s ease forwards 0.2s;
}

.sandbox-return-btn:hover {
  background: #db2777;
  color: #ffffff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 30px rgba(219, 39, 119, 0.35);
}

@keyframes sandbox-btn-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sandbox-hint-bar {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(244, 114, 182, 0.25);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  pointer-events: none;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  opacity: 0;
  animation: sandbox-btn-in 0.5s ease forwards 0.3s;
}

.sandbox-hint-bar .hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ec4899;
  animation: taesu-heartbeat 1.5s infinite;
}

