:root {
  --bg-cream: #f8f4fc;
  --bg-white: #ffffff;
  --bg-footer: #f2ecf9;

  --ink-primary: #1f1633;
  --ink-secondary: #51426b;
  --ink-muted: #7b6c94;

  --lavender: #7c3aed;
  --lavender-soft: #ede9fe;
  --lavender-mid: #c4b5fd;
  --rose: #db2777;
  --sky: #2563eb;
  --mint: #059669;
  --amber: #d97706;

  --border-hairline: rgba(31, 22, 51, 0.1);
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-serif: "Fraunces", Georgia, serif;
  --font-script: "Caveat", cursive;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-primary);
  background: var(--bg-cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.hidden {
  display: none !important;
}

/* Fullscreen ambient butterflies + banknote confetti canvas */
#fxCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 60;
}

/* ==================== TACTILE STAMP ENTRY RITUAL (KONICA + PRANAV) ==================== */
.entry-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #fcfaff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.entry-overlay.stamped-exit {
  opacity: 0;
  transform: translateY(-28px) scale(1.03);
  pointer-events: none;
}

.entry-top-meta {
  position: absolute;
  top: 22px;
  left: 28px;
  right: 28px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.entry-swatch {
  position: relative;
  width: min(320px, 86vw);
  padding: 28px 24px 24px;
  border-radius: 16px;
  background: #f3edff;
  border: 1.5px solid #dfd3fb;
  box-shadow: 0 20px 50px rgba(88, 28, 135, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.entry-swatch:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(124, 58, 237, 0.14);
}

.swatch-eyes {
  display: flex;
  gap: 8px;
}

.eye-socket {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #2d1b4e;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.eye-socket.sm {
  width: 16px;
  height: 16px;
}

.eye-pupil {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1f1633;
  transition: transform 0.08s ease-out;
}

.eye-socket.sm .eye-pupil {
  width: 6px;
  height: 6px;
}

.swatch-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: #2d1b4e;
}

.swatch-stamp-box {
  width: 148px;
  height: 112px;
  border: 1.5px dashed #a78bfa;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
  display: grid;
  place-items: center;
  position: relative;
}

.stamp-hint {
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: #7c3aed;
}

.stamp-print {
  font-size: 3.4rem;
  color: #6d28d9;
  animation: stampLand 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes stampLand {
  0% { transform: scale(2.2) rotate(-14deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.swatch-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.entry-wooden-stamp {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f5efe6;
  border: 1px solid #e2d5c3;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #5c4632;
}

.stamp-flower {
  color: #7c3aed;
  font-size: 1.1rem;
}

/* ==================== FLOATING TRANSLUCENT NAVIGATION ==================== */
.floating-nav {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 24px;
  pointer-events: none;
}

.floating-nav > * {
  pointer-events: auto;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-hairline);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lavender);
}

.nav-center-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-monogram {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(250, 246, 255, 0.9);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-hairline);
  display: grid;
  place-items: center;
  text-decoration: none;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink-primary);
  box-shadow: 0 4px 14px rgba(31, 22, 51, 0.06);
}

.nav-pill-bar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(250, 246, 255, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-hairline);
  box-shadow: 0 6px 20px rgba(31, 22, 51, 0.06);
}

.nav-link {
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-secondary);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--lavender);
  background: radial-gradient(circle, rgba(167, 139, 250, 0.22) 0%, rgba(167, 139, 250, 0) 75%);
  font-weight: 600;
}

/* Pranav Dynamic Tracking-Eye Island */
.nav-eye-island {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #1f1633;
  color: #f7f0ff;
  box-shadow: 0 8px 22px rgba(31, 22, 51, 0.2);
}

.island-eyes {
  display: flex;
  gap: 4px;
}

.island-hint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #ddd6fe;
}

.scroll-ring {
  width: 20px;
  height: 20px;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 2.5;
}

.ring-fg {
  fill: none;
  stroke: #fde047;
  stroke-width: 2.5;
  stroke-dasharray: 56.55;
  stroke-dashoffset: 56.55;
  stroke-linecap: round;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-action-pill {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.26);
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.8rem;
  font-weight: 600;
  color: #4c1d95;
  transition: transform 0.15s ease;
}

.nav-action-pill:hover { transform: translateY(-1px); }

.nav-clock {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.72);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-hairline);
}

/* ==================== 1. HERO DRAFTING-GRID DESK ==================== */
.hero-section {
  position: relative;
  min-height: 92vh;
  padding: 108px 24px 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-cream);
  background-image:
    linear-gradient(to right, rgba(124, 58, 237, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(124, 58, 237, 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  overflow: hidden;
}

.hero-watermark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(2.1rem, 6.2vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: rgba(124, 58, 237, 0.05);
  pointer-events: none;
  user-select: none;
  transition: opacity 0.35s ease;
}

.hero-section.clean-mode .hero-watermark {
  opacity: 0.15;
}

.hero-center {
  position: relative;
  z-index: 4;
  max-width: 720px;
  text-align: center;
}

.hero-badge-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  flex-wrap: wrap;
  justify-content: center;
}

.domain-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid #d8b4fe;
}

.coord-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-muted);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border-hairline);
}

.hero-headline {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(2.15rem, 5vw, 3.65rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

/* Pranav Figma-style bounding box + perched sprite */
.figma-box {
  position: relative;
  display: inline-block;
  padding: 2px 12px;
  margin: 0 4px;
  border: 1.5px solid #3b82f6;
  background: rgba(239, 246, 255, 0.65);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.84em;
  color: #1e3a8a;
  vertical-align: baseline;
}

.figma-box::before,
.figma-box::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background: #ffffff;
  border: 1.5px solid #3b82f6;
}

.figma-box::before { top: -4px; left: -4px; }
.figma-box::after { bottom: -4px; right: -4px; }

.pixel-sprite {
  position: absolute;
  top: -22px;
  left: 14px;
  font-size: 1.05rem;
  animation: spriteFloat 2.8s ease-in-out infinite;
}

@keyframes spriteFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-4px) rotate(6deg); }
}

.figma-dim {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  padding: 1px 6px;
  border-radius: 4px;
  background: #3b82f6;
  color: #ffffff;
  white-space: nowrap;
}

/* Konica ink-bleed blur + Pranav highlight */
.ink-bleed-word {
  position: relative;
  display: inline-block;
  font-style: italic;
  color: #5b21b6;
  padding: 0 8px;
  background: linear-gradient(120deg, rgba(254, 240, 138, 0.72), rgba(221, 214, 254, 0.75));
  border-radius: 8px;
  text-shadow: 0 0 14px rgba(124, 58, 237, 0.35);
}

.hero-sub {
  margin: 0 auto 26px;
  max-width: 600px;
  font-size: 0.98rem;
  color: var(--ink-secondary);
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  background: #2d1b4e;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 10px 24px rgba(45, 27, 78, 0.18);
  transition: transform 0.18s ease, background 0.2s ease;
}

.btn-primary-pill:hover {
  transform: translateY(-2px);
  background: #4c1d95;
}

.btn-soft-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-hairline);
  background: #ffffff;
  text-decoration: none;
  color: var(--ink-primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.18s ease, border-color 0.2s ease;
}

.btn-soft-pill:hover {
  transform: translateY(-2px);
  border-color: var(--lavender);
}

/* Interactive Desk Props (Chaos vs Clean Mode) */
.desk-arena {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.desk-prop {
  position: absolute;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  box-shadow: 0 10px 28px rgba(31, 22, 51, 0.09);
  transition:
    left 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.desk-prop:hover {
  transform: scale(1.08) rotate(-2deg) !important;
  box-shadow: 0 16px 36px rgba(124, 58, 237, 0.18);
  z-index: 6;
}

.prop-emoji {
  font-size: 1.25rem;
}

.prop-letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.92rem;
}

.prop-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.desk-mode-toggle {
  position: relative;
  z-index: 5;
  margin-top: 34px;
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  box-shadow: 0 8px 24px rgba(31, 22, 51, 0.08);
}

.mode-btn {
  border: none;
  background: transparent;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.mode-btn.active {
  background: #ede9fe;
  color: #5b21b6;
}

/* ==================== TORN-PAPER DIVIDERS ==================== */
.torn-divider {
  width: 100%;
  height: 26px;
  background-repeat: repeat-x;
  background-size: 48px 26px;
}

.torn-to-white {
  background-color: var(--bg-cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 26' preserveAspectRatio='none'%3E%3Cpath d='M0,26 L0,12 L6,15 L12,7 L18,14 L24,5 L30,13 L36,8 L42,16 L48,10 L48,26 Z' fill='%23ffffff'/%3E%3C/svg%3E");
}

.torn-to-cream {
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 26' preserveAspectRatio='none'%3E%3Cpath d='M0,26 L0,14 L7,8 L14,16 L21,6 L28,14 L35,9 L42,15 L48,11 L48,26 Z' fill='%23f2ecf9'/%3E%3C/svg%3E");
}

/* ==================== 2. CASE STUDIES (2x2 PASTEL GRID + ARCHIVE) ==================== */
.work-section {
  background: var(--bg-white);
  padding: 64px 24px 72px;
}

.section-container {
  max-width: 1080px;
  margin: 0 auto;
}

.section-head {
  margin-bottom: 32px;
}

.section-head.center {
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.section-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--lavender);
}

.hand-script {
  font-family: var(--font-script);
  font-size: 1.25em;
  color: #6d28d9;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  border-radius: 26px;
  padding: 26px;
  border: 1px solid rgba(31, 22, 51, 0.07);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
  overflow: hidden;
  min-height: 360px;
}

.case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(31, 22, 51, 0.1);
}

.theme-lavender { background: #f4eeff; }
.theme-rose { background: #fff0f6; }
.theme-sky { background: #eef6ff; }
.theme-mint { background: #ecfdf5; }

.case-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.case-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.case-metric-hero {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink-primary);
  margin: 0 0 6px;
}

.case-title {
  margin: 0 0 4px;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.case-org {
  margin: 0 0 16px;
  font-size: 0.84rem;
  color: var(--ink-secondary);
}

/* Visual Mockup Strip inside Case Card (no walls of text!) */
.case-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0 18px;
}

.mockup-frame {
  width: 100%;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(31, 22, 51, 0.08);
  padding: 14px 16px;
  box-shadow: 0 10px 26px rgba(31, 22, 51, 0.06);
  transform: rotate(-1deg);
  transition: transform 0.3s ease;
}

.case-card:hover .mockup-frame {
  transform: rotate(0deg) scale(1.02);
}

.mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-secondary);
  padding: 4px 0;
}

.mock-pill {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: #f3edff;
  color: #5b21b6;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-right: 52px;
}

.case-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink-secondary);
  border: 1px solid rgba(31, 22, 51, 0.08);
}

/* Smriti signature bottom-right circular arrow notch */
.case-arrow-btn {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(31, 22, 51, 0.1);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(31, 22, 51, 0.08);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.case-card:hover .case-arrow-btn {
  transform: scale(1.1);
  background: #2d1b4e;
  color: #ffffff;
}

/* Archive Highlights Strip */
.archive-head {
  margin-top: 44px;
  margin-bottom: 14px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.archive-pill-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  padding: 16px 18px;
  border-radius: 18px;
  background: #faf8ff;
  border: 1px solid var(--border-hairline);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.archive-pill-card:hover {
  transform: translateY(-3px);
  border-color: var(--lavender);
}

.archive-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #6d28d9;
  font-weight: 600;
}

.archive-title {
  margin: 3px 0 2px;
  font-weight: 700;
  font-size: 0.96rem;
}

.archive-org {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* ==================== 3. INTERACTIVE 2-PAGE JOURNAL (SMRITI + PRANAV) ==================== */
.journal-section {
  background: var(--bg-white);
  padding: 48px 24px 68px;
}

.journal-closed-wrap {
  display: flex;
  justify-content: center;
}

.journal-cover {
  position: relative;
  width: min(300px, 85vw);
  height: 390px;
  border: none;
  border-radius: 10px 22px 22px 10px;
  background: linear-gradient(155deg, #3b1d5e, #25113d);
  box-shadow: 0 24px 60px rgba(37, 17, 61, 0.28);
  display: flex;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.journal-cover:hover {
  transform: translateY(-6px) rotate(-1.5deg);
}

.journal-spine {
  width: 24px;
  background: linear-gradient(90deg, #1b0c2e, #4c2778, #2c1547);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.journal-cover-face {
  flex: 1;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #f5efff;
}

.journal-wax-seal {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f9a8d4, #be185d);
  color: #fff1f2;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  box-shadow: 0 6px 18px rgba(190, 24, 93, 0.45);
  margin-bottom: 18px;
}

.journal-cover-title {
  font-family: var(--font-script);
  font-size: 2.35rem;
  line-height: 1.05;
  margin-bottom: 10px;
}

.journal-cover-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #ddd6fe;
  margin-bottom: 22px;
}

.journal-tap-pill {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.78rem;
  font-weight: 600;
}

/* Open 2-Page Dotted Spread */
.journal-spread {
  position: relative;
  background: #2e194a;
  padding: 16px;
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(31, 22, 51, 0.18);
  animation: spreadOpen 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes spreadOpen {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.journal-close-pill {
  position: absolute;
  top: -14px;
  right: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-hairline);
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.spread-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.notebook-page {
  background-color: #fcfbff;
  background-image: radial-gradient(#d8ccf2 1.2px, transparent 1.2px);
  background-size: 18px 18px;
  padding: 26px;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-left {
  border-radius: 14px 4px 4px 14px;
  box-shadow: inset -14px 0 24px rgba(46, 25, 74, 0.08);
}

.page-right {
  border-radius: 4px 14px 14px 4px;
  box-shadow: inset 14px 0 24px rgba(46, 25, 74, 0.08);
}

.page-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--lavender);
}

.page-heading {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
}

.path-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.path-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(124, 58, 237, 0.18);
  font-size: 0.84rem;
}

.path-role { font-weight: 600; }
.path-org { color: var(--ink-muted); font-size: 0.78rem; }
.path-period { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-muted); text-align: right; white-space: nowrap; }

.sticky-note {
  position: relative;
  margin-top: auto;
  padding: 14px 16px;
  background: #fef9c3;
  border-radius: 4px 12px 12px 12px;
  box-shadow: 0 8px 20px rgba(31, 22, 51, 0.1);
  transform: rotate(-1.2deg);
  font-size: 0.84rem;
}

.sticky-tape {
  position: absolute;
  top: -8px;
  left: 24px;
  width: 56px;
  height: 16px;
  background: rgba(216, 180, 254, 0.55);
  transform: rotate(-4deg);
}

.sticky-note p { margin: 4px 0 0; color: #5c4b18; }

.cert-cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cert-item {
  padding: 11px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(124, 58, 237, 0.16);
}

.cert-title { font-weight: 700; font-size: 0.88rem; }
.cert-meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-muted); margin-top: 2px; }

.page-quote {
  margin-top: auto;
  font-family: var(--font-script);
  font-size: 1.45rem;
  line-height: 1.25;
  color: #5b21b6;
}

/* ==================== 4. COMPLETE SKILLS MATRIX (GRID PAPER BOX) ==================== */
.skills-section {
  background: var(--bg-white);
  padding: 12px 24px 72px;
}

.skills-paper-box {
  border-radius: 28px;
  padding: 32px;
  background-color: #faf7ff;
  background-image:
    linear-gradient(to right, rgba(124, 58, 237, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(124, 58, 237, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  border: 1px solid #e6dbfc;
}

.skills-box-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.skills-hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.skills-matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.skill-cat-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid var(--border-hairline);
  border-left: 4px solid var(--cat-accent, #7c3aed);
}

.skill-cat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.skill-cat-title {
  margin: 0;
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--cat-accent, #4c1d95);
}

.skill-cat-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-muted);
}

.skill-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-chip-btn {
  border: 1px solid var(--border-hairline);
  background: #fbfaff;
  color: var(--ink-primary);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.skill-chip-btn:hover {
  transform: translateY(-2px);
  border-color: var(--cat-accent);
  background: #f3edff;
}

/* ==================== FOOTER ==================== */
.editorial-footer {
  background: var(--bg-footer);
  padding: 28px 24px 40px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a,
.footer-link-btn {
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-secondary);
}

.footer-links a:hover,
.footer-link-btn:hover {
  color: var(--lavender);
}

.footer-credit {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* ==================== CASE STUDY / FRIEND MODAL ==================== */
.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 22, 51, 0.45);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  box-shadow: 0 30px 80px rgba(31, 22, 51, 0.22);
  padding: 28px;
  animation: modalUp 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes modalUp {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-hairline);
  background: #faf7ff;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
}

.modal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.modal-stat-cell {
  padding: 12px;
  border-radius: 14px;
  background: #f8f5ff;
  border: 1px solid #ece3ff;
  text-align: center;
}

.modal-stat-val {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 600;
  color: #4c1d95;
}

.modal-stat-key {
  font-size: 0.74rem;
  color: var(--ink-muted);
}

.modal-highlights {
  margin: 12px 0 18px;
  padding-left: 18px;
  color: var(--ink-secondary);
  font-size: 0.92rem;
}

.modal-highlights li + li { margin-top: 6px; }

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  z-index: 70;
  padding: 9px 18px;
  border-radius: 999px;
  background: #2d1b4e;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==================== RESPONSIVE MOBILE + TABLET ==================== */
@media (max-width: 900px) {
  .floating-nav { padding: 0 12px; }
  .nav-left, .nav-eye-island, .nav-clock { display: none; }
  .case-grid, .archive-grid, .spread-grid, .skills-matrix-grid { grid-template-columns: 1fr; }
  .page-left { border-radius: 14px 14px 4px 4px; }
  .page-right { border-radius: 4px 4px 14px 14px; }

  .desk-arena {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 22px;
  }
  .desk-prop {
    position: static !important;
    transform: none !important;
  }
}

@media (max-width: 560px) {
  .nav-link { padding: 6px 10px; font-size: 0.78rem; }
  .modal-stats { grid-template-columns: 1fr; }
  .skills-paper-box { padding: 20px; }
}
