/* ==========================================================================
   SHIVAM SINGH — UI/UX & PRODUCT DESIGN PORTFOLIO
   Design System, Neo-Editorial & Playful Brutalist Design Language
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,400;0,500;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap");

/* --------------------------------------------------------------------------
   01. DESIGN TOKENS & VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Core Palette - Light Theme */
  --bg-primary: #fff8ee;
  --bg-secondary: #f4efe6;
  --bg-card: #ffffff;
  --bg-subtle: #eae4d9;
  
  --ink: #171515;
  --text-main: #171515;
  --text-body: #3c3834;
  --text-muted: #6b665f;
  --text-inverse: #fff8ee;

  /* Accent Color System */
  --accent-coral: #ff5c97;
  --accent-yellow: #f8e547;
  --accent-sky: #62b0ff;
  --accent-purple: #795fff;
  --accent-mint: #4ee0b5;
  --accent-orange: #ff7d45;
  --accent-lavender: #e9e4ff;
  --accent-navy: #151829;
  --accent-red: #ff4b4b;

  /* Lines, Borders & Elevation */
  --border-color: #171515;
  --border-width: 2px;
  --border-thick: 3px;
  --border-subtle: rgba(23, 21, 21, 0.15);
  
  --shadow-sm: 3px 4px 0 var(--ink);
  --shadow-md: 6px 7px 0 var(--ink);
  --shadow-lg: 10px 12px 0 var(--ink);
  --shadow-xl: 14px 16px 0 var(--ink);
  --shadow-hover: 12px 14px 0 var(--ink);
  
  /* Typography */
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "DM Mono", "JetBrains Mono", monospace;

  /* Layout & Sizing */
  --max-width: 1240px;
  --header-height: 68px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-pill: 9999px;

  /* Transitions */
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.18s ease;
  --transition-base: 0.28s var(--ease-smooth);
}

/* Dark Theme / Cyber-Editorial Mode */
[data-theme="dark"] {
  --bg-primary: #121318;
  --bg-secondary: #1a1c24;
  --bg-card: #20232e;
  --bg-subtle: #292d3b;

  --ink: #fff8ee;
  --text-main: #f5f1eb;
  --text-body: #cfc8be;
  --text-muted: #9e988e;
  --text-inverse: #121318;

  --border-color: #f5f1eb;
  --border-subtle: rgba(245, 241, 235, 0.2);

  --shadow-sm: 3px 4px 0 var(--accent-coral);
  --shadow-md: 6px 7px 0 rgba(255, 92, 151, 0.85);
  --shadow-lg: 9px 11px 0 rgba(98, 176, 255, 0.85);
  --shadow-xl: 12px 14px 0 rgba(248, 229, 71, 0.85);
  --shadow-hover: 10px 12px 0 var(--accent-yellow);

  --accent-lavender: #312b54;
  --accent-navy: #0e101a;
}

/* --------------------------------------------------------------------------
   02. RESET & GLOBAL STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-base), color var(--transition-fast);
}

/* Subtle Neo-Brutalist Dot Grid Background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.09;
  background-image: radial-gradient(var(--text-main) 0.75px, transparent 0.75px);
  background-size: 18px 18px;
  z-index: -1;
  transition: opacity var(--transition-fast);
}

[data-theme="dark"] body::before {
  opacity: 0.15;
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* Container & Wrappers */
.container, .wrap {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

/* Selection */
::selection {
  background: var(--accent-coral);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   03. TYPOGRAPHY & BADGES
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.05em;
  color: var(--text-main);
}

.eyebrow, .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

.highlight {
  display: inline-block;
  border: var(--border-width) solid var(--border-color);
  padding: 0.05em 0.3em;
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: transform var(--transition-fast);
}

.highlight.pink { background: var(--accent-coral); color: #ffffff; transform: rotate(-1.5deg); }
.highlight.yellow { background: var(--accent-yellow); color: #171515; transform: rotate(1.8deg); }
.highlight.mint { background: var(--accent-mint); color: #171515; transform: rotate(-1deg); }
.highlight.sky { background: var(--accent-sky); color: #171515; transform: rotate(1deg); }
.highlight.purple { background: var(--accent-purple); color: #ffffff; transform: rotate(-2deg); }

.scribble {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.scribble::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: 6px;
  height: 16px;
  background: var(--accent-coral);
  z-index: -1;
  transform: rotate(-1.5deg);
  border-radius: 4px;
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   04. CUSTOM CURSOR
   -------------------------------------------------------------------------- */
.cursor, .cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s, background-color 0.2s, border-color 0.2s;
}

.cursor {
  width: 8px;
  height: 8px;
  background: var(--text-main);
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 2px solid var(--text-main);
  background: transparent;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.05em;
  transition: width 0.25s var(--ease-elastic), height 0.25s var(--ease-elastic), transform 0.1s linear, background-color 0.2s;
}

.cursor-ring.is-hover {
  width: 58px;
  height: 58px;
  background: rgba(255, 92, 151, 0.2);
  border-color: var(--accent-coral);
}

.cursor-ring.is-view {
  width: 72px;
  height: 72px;
  background: var(--accent-yellow);
  border-color: var(--border-color);
  color: var(--ink);
}

.cursor-ring.is-zoom {
  width: 64px;
  height: 64px;
  background: var(--accent-mint);
  border-color: var(--border-color);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   05. NAVIGATION BAR & CONTROLS
   -------------------------------------------------------------------------- */
.nav-wrapper {
  position: sticky;
  top: 16px;
  z-index: 500;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 16px auto 0;
  transition: transform 0.4s var(--ease-smooth);
}

.nav-wrapper.nav-hidden {
  transform: translateY(-150%);
}

.nav {
  height: var(--header-height);
  padding: 0 16px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-pill);
  background: rgba(255, 248, 238, 0.92);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

[data-theme="dark"] .nav {
  background: rgba(26, 28, 36, 0.92);
}

.logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.06em;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
}

.logo-star {
  display: inline-block;
  color: var(--accent-coral);
  font-size: 20px;
  animation: spin 10s linear infinite;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-transform: lowercase;
}

.navlinks a {
  position: relative;
  padding: 8px 4px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.navlinks a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 2px;
  background: var(--accent-coral);
  transition: right 0.24s var(--ease-smooth);
}

.navlinks a:hover,
.navlinks a.active {
  color: var(--text-main);
}

.navlinks a:hover::after,
.navlinks a.active::after {
  right: 0;
}

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

/* Theme Switcher Button */
.theme-toggle {
  width: auto;
  height: 36px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-main);
  box-shadow: none;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--text-main);
  color: var(--text-inverse);
}

.navbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--text-main);
  color: var(--text-inverse);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.navbtn:hover {
  transform: translateY(-2px);
  background: var(--accent-coral);
  color: #ffffff;
  border-color: var(--border-color);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: var(--border-width) solid var(--border-color);
  border-radius: 50%;
  background: var(--text-main);
  color: var(--text-inverse);
  place-items: center;
  font-size: 18px;
  box-shadow: var(--shadow-sm);
}

/* Reading Progress Bar for Case Studies */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-yellow), var(--accent-coral), var(--accent-purple));
  z-index: 1000;
  transition: width 0.08s linear;
}

/* --------------------------------------------------------------------------
   06. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  padding: 60px 0 70px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-badge-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-pill);
  background: var(--accent-mint);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00aa6c;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(0, 170, 108, 0.7);
  animation: pulse 1.8s infinite;
}

.hero-title {
  font-size: clamp(42px, 5vw, 84px);
  line-height: 0.88;
  letter-spacing: -0.07em;
  margin-bottom: 28px;
}

.hero-description {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.55;
  color: var(--text-body);
  max-width: 580px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent-coral);
  color: #ffffff;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  background: var(--accent-orange);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg-card);
  color: var(--text-main);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 14px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.btn-secondary:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  background: var(--accent-yellow);
  color: var(--ink);
}

/* Hero Visual & Interactive Portrait Card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
}

.portrait-frame-card {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 4 / 5;
  border: var(--border-thick) solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-secondary);
  box-shadow: var(--shadow-xl);
  transform: rotate(3deg);
  transition: transform 0.4s var(--ease-elastic), box-shadow 0.4s var(--ease-elastic);
  z-index: 3;
}

.portrait-frame-card:hover {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 18px 20px 0 var(--accent-coral);
}

.portrait-frame-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating Badges & Stickers */
.sticker {
  position: absolute;
  z-index: 5;
  border: var(--border-width) solid var(--border-color);
  box-shadow: var(--shadow-md);
  font-family: var(--font-mono);
  font-weight: 700;
  text-align: center;
  pointer-events: auto;
  transition: transform 0.3s var(--ease-elastic);
}

.sticker:hover {
  transform: scale(1.1) rotate(5deg) !important;
}

.sticker-wave {
  top: 8%;
  right: -5%;
  background: var(--accent-coral);
  color: #fff;
  padding: 14px 18px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  transform: rotate(12deg);
}

.sticker-role {
  bottom: 6%;
  left: -8%;
  background: var(--accent-yellow);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 11px;
  line-height: 1.25;
  transform: rotate(-8deg);
}

.sticker-role span {
  font-size: 13px;
  font-weight: 800;
  display: block;
}

.sticker-iit {
  top: 14%;
  left: -6%;
  background: var(--accent-sky);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  transform: rotate(-10deg);
}

/* Decorative Background Geometric Elements */
.hero-orb {
  position: absolute;
  border: var(--border-width) solid var(--border-color);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

.orb-1 {
  width: 380px;
  height: 380px;
  right: -40px;
  top: -20px;
  background: var(--accent-yellow);
  opacity: 0.9;
}

.orb-2 {
  width: 220px;
  height: 220px;
  right: 35%;
  bottom: -60px;
  background: var(--accent-mint);
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   07. INFINITE MARQUEE TICKER
   -------------------------------------------------------------------------- */
.ticker-container {
  border-block: var(--border-width) solid var(--border-color);
  background: var(--accent-yellow);
  color: var(--ink);
  overflow: hidden;
  position: relative;
  z-index: 10;
}

[data-theme="dark"] .ticker-container {
  background: var(--accent-coral);
  color: #ffffff;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 32px;
  padding: 14px 0;
  animation: marquee 26s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-item span.star {
  font-size: 16px;
  color: var(--accent-coral);
}

[data-theme="dark"] .ticker-item span.star {
  color: var(--accent-yellow);
}

/* --------------------------------------------------------------------------
   08. SECTION LAYOUTS & HEADINGS
   -------------------------------------------------------------------------- */
.section, .process-section, .contact-section {
  padding: 40px 0;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero { background-color: var(--bg-primary); }
#work { background-color: var(--bg-secondary); }
#process { background-color: var(--bg-subtle); }
#about { background-color: var(--bg-card); }
#play { background-color: var(--bg-primary); }
#experience { background-color: var(--bg-secondary); }
#contact { background-color: var(--bg-subtle); }

.section-header {
  margin-bottom: 52px;
}

.section-header.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-end;
}

.section-title {
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 0.9;
  letter-spacing: -0.065em;
  margin-top: 14px;
}

.section-lead {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 540px;
}

/* --------------------------------------------------------------------------
   09. WORK / PROJECT SHOWCASE
   -------------------------------------------------------------------------- */
.work-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-btn {
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  background: var(--bg-card);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--text-main);
  color: var(--text-inverse);
  transform: translateY(-2px);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}

.project-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  transition: transform var(--transition-base);
  text-decoration: none;
}

.project-art {
  height: 360px;
  position: relative;
  overflow: hidden;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  isolation: isolate;
  transition: transform 0.32s var(--ease-elastic), box-shadow 0.32s var(--ease-elastic);
}

.project-card:hover .project-art {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

/* Project Card Palette Accents */
.art-orange { background: var(--accent-orange); }
.art-lilac { background: #bbaaff; }
.art-mint { background: var(--accent-mint); }
.art-yellow { background: var(--accent-yellow); }

.project-tag-pill {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 8;
  padding: 6px 12px;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-pill);
  background: rgba(255, 248, 238, 0.94);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.art-badge-stamp {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 8;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  text-align: center;
  border: var(--border-width) solid var(--border-color);
  border-radius: 50%;
  background: var(--accent-yellow);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  box-shadow: var(--shadow-sm);
  transform: rotate(8deg);
}

.project-media-frame {
  position: absolute;
  inset: 16% 10% 12% 10%;
  border: var(--border-thick) solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 8px 10px 0 rgba(23, 21, 21, 0.25);
  z-index: 3;
  transform: rotate(-2deg);
  transition: transform 0.4s var(--ease-elastic);
}

.project-card:hover .project-media-frame {
  transform: rotate(0deg) scale(1.03);
}

.project-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fabrik-frame { transform: rotate(2.5deg); }
.drowsy-frame { transform: rotate(-2.5deg); }
.portfolio-frame { transform: rotate(2deg); }

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 4px 4px;
}

.project-category {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.project-meta h3 {
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin: 6px 0 10px;
}

.project-meta p {
  font-size: 14.5px;
  color: var(--text-body);
  line-height: 1.5;
}

.arrow-circle-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: var(--border-width) solid var(--border-color);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.project-card:hover .arrow-circle-btn {
  transform: rotate(45deg) scale(1.1);
  background: var(--accent-coral);
  color: #ffffff;
}

.all-projects-banner {
  margin-top: 48px;
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--accent-yellow);
  color: var(--ink);
  box-shadow: var(--shadow-md);
}

.all-projects-banner strong {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   10. BENTO ABOUT SECTION
   -------------------------------------------------------------------------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.bento-card {
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.bento-main {
  grid-column: span 7;
  background: var(--accent-lavender);
  color: var(--text-main);
}

[data-theme="dark"] .bento-main {
  background: var(--bg-card);
}

.bento-main h3 {
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 0.95;
  margin: 12px 0 18px;
}

.bento-main p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
}

.bento-stat {
  grid-column: span 5;
  background: var(--accent-yellow);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-stat .stat-number {
  font-family: var(--font-display);
  font-size: clamp(48px, 5.5vw, 76px);
  font-weight: 700;
  line-height: 0.9;
}

.bento-stat p {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  margin-top: 14px;
}

.bento-col-4 {
  grid-column: span 4;
}

.bento-col-8 {
  grid-column: span 8;
}

.bento-col-6 {
  grid-column: span 6;
}

.bento-card h4 {
  font-size: 22px;
  margin: 8px 0 14px;
}

.bento-card p {
  font-size: 14.5px;
  color: var(--text-body);
  line-height: 1.55;
}

.bento-card ul {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bento-card li {
  font-size: 14px;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 10px;
}

.bento-card li::before {
  content: "✦";
  color: var(--accent-coral);
  font-size: 12px;
}

.bento-art-card {
  grid-column: span 12;
  background: var(--accent-mint);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bento-art-card img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   11. INTERACTIVE PROCESS FLOW
   -------------------------------------------------------------------------- */
.process-section {
  background: var(--accent-navy);
  color: #fff8ee;
  border-block: var(--border-width) solid var(--border-color);
  padding: 120px 0;
}

.process-section h2 {
  color: #ffffff;
}

.process-section .eyebrow {
  color: var(--accent-yellow);
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 36px;
}

.process-step-card {
  border: var(--border-width) solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 22px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: flex-start;
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.process-step-card:hover,
.process-step-card.active {
  transform: translateX(8px);
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-yellow);
}

.step-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: var(--border-width) solid var(--ink);
  border-radius: 50%;
  background: var(--accent-yellow);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 2px 3px 0 var(--ink);
}

.step-info h3 {
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 6px;
}

.step-info p {
  color: #c9cedd;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
}

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

.step-tag {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-mint);
  background: rgba(0, 0, 0, 0.2);
}

.process-visual-box {
  border: var(--border-thick) solid var(--border-color);
  border-radius: var(--radius-xl);
  background: var(--accent-yellow);
  padding: 32px;
  box-shadow: var(--shadow-xl);
  transform: rotate(1.5deg);
  overflow: hidden;
  transition: transform 0.4s var(--ease-elastic);
}

.process-visual-box:hover {
  transform: rotate(0deg) scale(1.02);
}

/* --------------------------------------------------------------------------
   12. PLAYGROUND SECTION & MINI INTERACTIVES
   -------------------------------------------------------------------------- */
.play-section {
  background: var(--bg-secondary);
  border-bottom: var(--border-width) solid var(--border-color);
}

.play-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.play-card {
  position: relative;
  min-height: 340px;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  transition: transform 0.3s var(--ease-elastic), box-shadow 0.3s var(--ease-elastic);
}

.play-card:hover {
  transform: translateY(-8px) rotate(-0.5deg);
  box-shadow: var(--shadow-hover);
}

.play-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.play-card-top {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.play-card-bottom {
  position: relative;
  z-index: 3;
}

.play-badge {
  padding: 6px 12px;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.play-arrow-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: var(--border-width) solid var(--border-color);
  border-radius: 50%;
  background: var(--accent-yellow);
  color: var(--ink);
  font-size: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.play-card:hover .play-arrow-btn {
  transform: rotate(45deg) scale(1.1);
  background: var(--accent-coral);
  color: #ffffff;
}

.play-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--ink);
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.4);
}

.play-desc {
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 600;
  margin-top: 8px;
  max-width: 240px;
}

/* --------------------------------------------------------------------------
   13. EXPERIENCE & TIMELINE
   -------------------------------------------------------------------------- */
.exp-timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 40px;
}

.exp-card {
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.exp-card:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-hover);
}

.exp-period {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.exp-badge {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  background: var(--accent-mint);
  color: var(--ink);
  font-size: 10px;
  width: fit-content;
}

.exp-main h3 {
  font-size: 26px;
  margin-bottom: 4px;
}

.exp-company {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-coral);
}

.exp-desc {
  font-size: 14.5px;
  color: var(--text-body);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   14. TOOLKIT & SKILLS FILTER
   -------------------------------------------------------------------------- */
.toolkit-box {
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-xl);
  background: var(--accent-lavender);
  color: var(--text-main);
  padding: 44px;
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .toolkit-box {
  background: var(--bg-card);
}

.toolkit-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 32px;
}

.skill-category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  background: var(--bg-card);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease-elastic), background-color 0.2s, color 0.2s;
  cursor: default;
}

.skill-chip:hover {
  transform: translateY(-4px) rotate(-1.5deg);
  box-shadow: var(--shadow-md);
  background: var(--accent-yellow);
  color: var(--ink);
}

.skill-chip.highlight-coral { background: var(--accent-coral); color: #ffffff; }
.skill-chip.highlight-sky { background: var(--accent-sky); color: var(--ink); }
.skill-chip.highlight-mint { background: var(--accent-mint); color: var(--ink); }

/* --------------------------------------------------------------------------
   15. HIGH-IMPACT CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact-section {
  padding: 140px 0 100px;
  background: var(--accent-navy);
  color: #ffffff;
  border-top: var(--border-thick) solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.contact-inner {
  position: relative;
  z-index: 3;
}

.contact-title {
  font-size: clamp(58px, 9vw, 136px);
  line-height: 0.82;
  letter-spacing: -0.08em;
  color: #ffffff;
  margin: 18px 0 28px;
  max-width: 960px;
}

.contact-title span {
  display: inline-block;
  background: var(--accent-coral);
  color: #ffffff;
  border: var(--border-width) solid var(--border-color);
  padding: 0.05em 0.3em;
  border-radius: var(--radius-md);
  transform: rotate(-2deg);
}

.contact-lead {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  color: #c8cede;
  max-width: 560px;
  margin-bottom: 38px;
}

.email-copy-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.email-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 32px;
  border: var(--border-thick) solid #ffffff;
  border-radius: var(--radius-pill);
  background: var(--accent-yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: -0.04em;
  box-shadow: 8px 9px 0 #ffffff;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.email-pill-btn:hover {
  transform: translateY(-4px);
  background: var(--accent-coral);
  color: #ffffff;
  box-shadow: 12px 13px 0 #ffffff;
}

.copy-hint-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.social-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: var(--border-width) solid #ffffff;
  color: #ffffff;
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  transition: transform var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}

.social-pill:hover {
  transform: translateY(-3px) rotate(-1.5deg);
  background: var(--accent-mint);
  color: var(--ink);
  border-color: var(--accent-mint);
}

/* Background Animated Shapes for Contact */
.contact-shape-1 {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: var(--accent-purple);
  border: var(--border-width) solid var(--border-color);
  right: -160px;
  bottom: -220px;
  z-index: 1;
  opacity: 0.85;
}

.contact-shape-2 {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--accent-sky);
  border: var(--border-width) solid var(--border-color);
  left: -80px;
  top: -80px;
  z-index: 1;
}

.contact-star-deco {
  position: absolute;
  right: 12%;
  top: 18%;
  z-index: 2;
  font-size: 64px;
  color: var(--accent-coral);
  animation: spin 12s linear infinite;
}

/* --------------------------------------------------------------------------
   16. FOOTER
   -------------------------------------------------------------------------- */
footer {
  border-top: var(--border-width) solid var(--border-color);
  background: var(--bg-primary);
  padding: 36px 0;
  transition: background-color var(--transition-base);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.back-to-top-btn:hover {
  transform: translateY(-2px);
  background: var(--accent-yellow);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   17. CASE STUDY TEMPLATE & DETAIL PAGES
   -------------------------------------------------------------------------- */
.case-page {
  background: var(--bg-primary);
}

.case-hero {
  position: relative;
  padding: 90px 0 54px;
  overflow: hidden;
}

.case-hero-inner {
  position: relative;
  z-index: 3;
}

.case-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  background: var(--bg-card);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  transition: transform var(--transition-fast);
}

.case-back-link:hover {
  transform: translateX(-4px);
  background: var(--accent-yellow);
  color: var(--ink);
}

.case-hero h1 {
  font-size: clamp(52px, 7.5vw, 108px);
  line-height: 0.88;
  letter-spacing: -0.07em;
  margin-bottom: 22px;
  max-width: 920px;
}

.case-hero .case-lead {
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.55;
  color: var(--text-body);
  max-width: 740px;
}

.case-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.case-chip {
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  background: var(--accent-yellow);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.case-chip.chip-pink { background: var(--accent-coral); color: #fff; }
.case-chip.chip-sky { background: var(--accent-sky); color: var(--ink); }
.case-chip.chip-mint { background: var(--accent-mint); color: var(--ink); }

.case-hero-art {
  position: absolute;
  right: 0;
  top: 60px;
  width: 320px;
  height: 320px;
  border: var(--border-thick) solid var(--border-color);
  border-radius: var(--radius-xl);
  background: var(--accent-yellow);
  transform: rotate(7deg);
  box-shadow: var(--shadow-xl);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.case-hero-art .symbol {
  font-family: var(--font-display);
  font-size: 140px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
}

.case-canvas {
  padding: 40px 0 110px;
}

.case-intro-card {
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  padding: 42px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.case-intro-card h2 {
  font-size: clamp(36px, 4.2vw, 62px);
  line-height: 0.95;
  margin: 10px 0 18px;
}

.case-intro-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  max-width: 820px;
}

.case-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.case-stat-box {
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  background: var(--bg-secondary);
  box-shadow: var(--shadow-sm);
}

.case-stat-box b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 0.95;
  color: var(--text-main);
}

.case-stat-box span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 6px;
  display: block;
}

.case-blocks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.case-block {
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 34px;
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast);
}

.case-block.wide {
  grid-column: 1 / -1;
}

.case-block.yellow { background: var(--accent-yellow); color: var(--ink); }
.case-block.pink { background: var(--accent-coral); color: #ffffff; }
.case-block.mint { background: var(--accent-mint); color: var(--ink); }
.case-block.lavender { background: var(--accent-lavender); color: var(--text-main); }
.case-block.navy { background: var(--accent-navy); color: #ffffff; }

.case-block h2 {
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 0.95;
  margin: 8px 0 16px;
}

.case-block h3 {
  font-size: 20px;
  margin: 18px 0 8px;
}

.case-block p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 14px;
  color: var(--text-body);
}

.case-block.pink p,
.case-block.navy p {
  color: #e2e6f2;
}

.case-block.yellow p,
.case-block.mint p {
  color: #242220;
}

.case-block ul {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-block li {
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.case-block li::before {
  content: "→";
  font-weight: 700;
}

.case-figure-card {
  margin-top: 24px;
  border: var(--border-thick) solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  position: relative;
  cursor: zoom-in;
}

.case-figure-card img {
  width: 100%;
  max-height: 600px;
  object-fit: contain;
  background: #ffffff;
}

.case-figure-card figcaption {
  padding: 12px 18px;
  border-top: var(--border-width) solid var(--border-color);
  background: var(--bg-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.case-figure-card figcaption::after {
  content: "Click to expand 🔍";
  font-weight: 700;
  color: var(--accent-coral);
}

.case-next-nav {
  margin-top: 36px;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px 36px;
  background: var(--accent-yellow);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.case-next-nav strong {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
}

.case-next-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #ffffff;
  border: var(--border-width) solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.case-next-nav a:hover {
  transform: translateY(-2px);
  background: var(--accent-coral);
  border-color: var(--accent-coral);
}

/* --------------------------------------------------------------------------
   18. INTERACTIVE LIGHTBOX MODAL
   -------------------------------------------------------------------------- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(18, 19, 24, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-smooth);
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close-btn {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 48px;
  height: 48px;
  border: var(--border-width) solid #ffffff;
  border-radius: 50%;
  background: var(--accent-coral);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  box-shadow: 3px 4px 0 #ffffff;
  transition: transform var(--transition-fast);
  z-index: 10;
}

.lightbox-close-btn:hover {
  transform: scale(1.1) rotate(90deg);
}

.lightbox-content {
  max-width: 92vw;
  max-height: 84vh;
  border: var(--border-thick) solid #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 12px 14px 0 var(--accent-coral);
  background: #ffffff;
  animation: zoomIn 0.3s var(--ease-elastic);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-caption {
  padding: 12px 20px;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

/* --------------------------------------------------------------------------
   19. TOAST NOTIFICATION
   -------------------------------------------------------------------------- */
.toast-notice {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  border: var(--border-thick) solid var(--border-color);
  border-radius: var(--radius-pill);
  background: var(--accent-yellow);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease-elastic), opacity 0.3s;
}

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

/* --------------------------------------------------------------------------
   20. DEDICATED PLAYGROUND PAGE STYLES
   -------------------------------------------------------------------------- */
.playground-page {
  background: var(--bg-primary);
  min-height: 100vh;
}

.play-sandbox-container {
  padding: 30px 0 100px;
}

.play-sandbox-card {
  border: var(--border-thick) solid var(--border-color);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  padding: 36px;
  box-shadow: var(--shadow-xl);
  margin-bottom: 30px;
}

.play-control-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 24px;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  margin-bottom: 28px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-group label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.control-group input[type="range"] {
  width: 100%;
  accent-color: var(--accent-coral);
  cursor: pointer;
}

.control-group select,
.control-group input[type="text"] {
  padding: 8px 12px;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 12px;
}

.interactive-type-stage {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  background: var(--bg-card);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.04);
  text-align: center;
  overflow: hidden;
}

.interactive-type-text {
  outline: none;
  word-break: break-word;
  transition: all 0.1s ease;
}

/* Micro-interaction test stage */
.interactions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.interaction-item {
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  min-height: 200px;
}

.interaction-item h4 {
  font-size: 16px;
  font-family: var(--font-mono);
}

/* Spring button */
.spring-btn {
  padding: 14px 28px;
  border: var(--border-thick) solid var(--border-color);
  border-radius: var(--radius-pill);
  background: var(--accent-coral);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease-elastic), box-shadow 0.3s var(--ease-elastic);
}

.spring-btn:active {
  transform: scale(0.9) translateY(4px);
  box-shadow: var(--shadow-sm);
}

/* Neo Switch */
.neo-switch {
  position: relative;
  width: 72px;
  height: 38px;
  border: var(--border-thick) solid var(--border-color);
  border-radius: var(--radius-pill);
  background: var(--bg-secondary);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.25s;
}

.neo-switch.active {
  background: var(--accent-mint);
}

.neo-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border: var(--border-width) solid var(--border-color);
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.3s var(--ease-elastic);
}

.neo-switch.active .neo-switch-thumb {
  transform: translateX(34px);
  background: var(--accent-yellow);
}

/* Ripple Canvas */
.canvas-holder {
  width: 100%;
  height: 420px;
  border: var(--border-thick) solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #11131a;
  position: relative;
}

.canvas-holder canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* --------------------------------------------------------------------------
   21. ANIMATIONS & KEYFRAMES
   -------------------------------------------------------------------------- */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 170, 108, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(0, 170, 108, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 170, 108, 0); }
}

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--ease-smooth), transform 0.75s var(--ease-smooth);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   22. RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero-visual {
    min-height: 420px;
  }

  .portrait-frame-card {
    width: 290px;
  }

  .project-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-card:nth-child(3) {
    grid-column: 1 / -1;
  }

  .bento-main { grid-column: span 12; }
  .bento-stat { grid-column: span 12; }
  .bento-col-4 { grid-column: span 6; }
  .bento-col-8 { grid-column: span 6; }
  .bento-col-6 { grid-column: span 12; }

  .exp-card {
    grid-template-columns: 150px 1fr;
  }

  .exp-desc {
    grid-column: 2;
  }
}

@media (max-width: 900px) {
  .cursor, .cursor-ring {
    display: none !important;
  }

  body {
    cursor: auto !important;
  }

  .navlinks {
    display: none;
    position: absolute;
    top: calc(var(--header-height) + 12px);
    left: 0;
    right: 0;
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    box-shadow: var(--shadow-lg);
  }

  [data-theme="dark"] .navlinks {
    background: var(--bg-secondary);
  }

  .navlinks.open {
    display: flex;
    animation: zoomIn 0.25s var(--ease-elastic);
  }

  .navlinks a {
    padding: 12px 16px;
    font-size: 15px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
  }

  .menu-toggle {
    display: grid;
  }

  .section-header.split,
  .process-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .play-grid {
    grid-template-columns: 1fr;
  }

  .case-hero-art {
    display: none;
  }

  .case-blocks-grid {
    grid-template-columns: 1fr;
  }

  .case-stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container, .wrap {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .hero {
    padding: 40px 0 60px;
  }

  .hero-title {
    font-size: clamp(44px, 14vw, 68px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
  }

  .sticker-wave {
    right: 0;
    top: 0;
  }

  .sticker-role {
    left: 0;
    bottom: -10px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card:nth-child(3) {
    grid-column: auto;
  }

  .project-art {
    height: 380px;
  }

  .bento-col-4, .bento-col-8 {
    grid-column: span 12;
  }

  .bento-card {
    padding: 24px;
  }

  .exp-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px;
  }

  .exp-desc {
    grid-column: auto;
  }

  .toolkit-box {
    padding: 24px;
  }

  .toolkit-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .email-pill-btn {
    font-size: 20px;
    padding: 14px 22px;
    width: 100%;
    justify-content: center;
  }

  .all-projects-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .case-intro-card {
    padding: 24px;
  }

  .case-next-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
