/* ==========================================================================
   PORTFOLIO DESIGN SYSTEM // PLAYFUL LIGHT BLUE & INTERACTIVE
   Inspired by wodniack.dev // Canvas Physics, Clean Modern Editorial
   ========================================================================== */

:root, body.light-theme {
  /* Color Palette: Clean Light Backgrounds with Vibrant Electric Blue */
  --bg-deep: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #FFFFFF;
  --border-subtle: rgba(226, 232, 240, 0.9);
  --border-bright: rgba(59, 130, 246, 0.35);
  --border-glow: rgba(37, 99, 235, 0.5);

  --blue-primary: #2563EB;
  --blue-vivid: #1D4ED8;
  --blue-electric: #1E40AF;
  --blue-cyan: #0284C7;
  --blue-sky: #0EA5E9;
  --blue-ice: #E0F2FE;
  --blue-tint: #EFF6FF;
  --blue-indigo: #4F46E5;

  --text-main: #0F172A;
  --text-muted: #334155;
  --text-dim: #64748B;
  --text-blue: #1D4ED8;

  /* Fonts */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing & Radii */
  --nav-height: 4.5rem;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 9999px;
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px -4px rgba(37, 99, 235, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 16px 36px -6px rgba(37, 99, 235, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 22px 45px -8px rgba(37, 99, 235, 0.16), 0 6px 16px -3px rgba(15, 23, 42, 0.05);
}

/* ==========================================================================
   RESET & BASE (REGULAR NATIVE MOUSE)
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 1.5rem);
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  background-color: var(--bg-deep);
  color: var(--text-main);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
  /* Regular native mouse cursor */
  cursor: default;
}

a, button, input, [role="button"] {
  cursor: pointer;
}

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

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

/* Container */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================================================
   CANVAS & AMBIENT PASTEL GLOWS
   ========================================================================== */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.65;
  transition: opacity 1s ease;
}

.glow-1 {
  top: -100px;
  left: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(191, 219, 254, 0.45) 0%, rgba(248, 250, 252, 0) 70%);
}

.glow-2 {
  top: 35%;
  right: -100px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(186, 230, 253, 0.4) 0%, rgba(248, 250, 252, 0) 70%);
}

.glow-3 {
  bottom: 5%;
  left: 5%;
  width: 750px;
  height: 750px;
  background: radial-gradient(circle, rgba(224, 242, 254, 0.5) 0%, rgba(248, 250, 252, 0) 70%);
}

/* Scroll progress line */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-primary), var(--blue-cyan));
  z-index: 1000;
  width: 0%;
  transition: width 0.1s linear;
}

/* ==========================================================================
   SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.header-inner {
  max-width: 1180px;
  height: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-spring), border-color 0.25s ease, box-shadow 0.25s ease;
}

.logo-badge:hover {
  transform: translateY(-1px);
  border-color: var(--blue-primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.logo-symbol {
  color: var(--blue-primary);
  font-size: 0.95rem;
}

.status-ticker {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem;
  background: var(--blue-tint);
  border: 1px solid rgba(191, 219, 254, 0.7);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--blue-vivid);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  animation: pulse-dot 2s infinite ease-in-out;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-item {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-item:hover {
  color: var(--blue-primary);
  background-color: var(--blue-tint);
}

.nav-btn {
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-vivid));
  color: #FFFFFF !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s ease;
}

.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  background: linear-gradient(135deg, var(--blue-vivid), var(--blue-electric));
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px;
  box-shadow: var(--shadow-sm);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem 2rem;
  display: none;
  flex-direction: column;
  gap: 1rem;
  z-index: 99;
  box-shadow: var(--shadow-lg);
}

.mobile-drawer.is-open {
  display: flex;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  transition: background 0.2s ease;
}

.mobile-link:hover {
  background: var(--blue-tint);
  color: var(--blue-primary);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding-top: calc(var(--nav-height) + 4.5rem);
  padding-bottom: 4.5rem;
  z-index: 1;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 980px;
}

.hero-pill-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.pill-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1rem;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.pill-chip.interactive-btn {
  background: var(--blue-tint);
  border-color: rgba(191, 219, 254, 0.8);
  color: var(--blue-vivid);
  font-weight: 600;
}

.pill-chip.interactive-btn:hover {
  background: #DBEAFE;
  border-color: var(--blue-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.chip-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--blue-cyan);
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.5);
  animation: pulse-dot 1.8s infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--text-main);
  margin-bottom: 1.6rem;
  max-width: 900px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 740px;
  margin-bottom: 2.2rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.65rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.25s var(--ease-spring);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-vivid) 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.38);
  background: linear-gradient(135deg, var(--blue-vivid) 0%, var(--blue-electric) 100%);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--blue-tint);
  border-color: var(--blue-primary);
  color: var(--blue-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Canvas Spot Interaction Hint */
.canvas-spot-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--blue-vivid);
  background: rgba(239, 246, 255, 0.85);
  border: 1px dashed rgba(147, 197, 253, 0.8);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 2.5rem;
}

.spot-icon {
  color: var(--blue-primary);
}

.digital-ribbon {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dim);
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  max-width: 100%;
  white-space: nowrap;
}

/* ==========================================================================
   SECTIONS COMMON STYLES
   ========================================================================= */
.section {
  position: relative;
  padding: 4.5rem 0;
  z-index: 1;
}

.section-header {
  margin-bottom: 3rem;
  max-width: 720px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-primary);
  margin-bottom: 0.65rem;
  background: var(--blue-tint);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(191, 219, 254, 0.7);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 0.85rem;
}

.section-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ==========================================================================
   ABOUT / PROFILE CARD
   ========================================================================== */
.about-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease-spring), border-color 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--shadow-hover);
}

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.avatar-wrapper {
  position: relative;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #FFFFFF;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
  position: relative;
  z-index: 2;
}

.avatar-ring {
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border-radius: 50%;
  border: 2px dashed rgba(59, 130, 246, 0.4);
  animation: rotate-ring 25s linear infinite;
  z-index: 1;
}

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

.avatar-sparkle {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 1.25rem;
  color: var(--blue-cyan);
  z-index: 3;
  animation: float-sparkle 3s ease-in-out infinite;
}

@keyframes float-sparkle {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.15); }
}

.avatar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--blue-tint);
  border: 1px solid rgba(191, 219, 254, 0.8);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--blue-vivid);
  font-weight: 500;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--blue-cyan);
  box-shadow: 0 0 6px var(--blue-cyan);
}

.about-content {
  display: flex;
  flex-direction: column;
}

.about-content .section-heading {
  font-size: 1.85rem;
  margin-bottom: 1.2rem;
}

.about-content .section-desc {
  margin-bottom: 1rem;
}

.about-meta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.meta-val {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
}

.social-links-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1rem;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s var(--ease-spring);
}

.social-chip:hover {
  background: var(--blue-tint);
  border-color: var(--blue-primary);
  color: var(--blue-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   VALUES GRID
   ========================================================================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.value-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-spring), border-color 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.value-icon-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.value-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-primary);
}

.value-emoji {
  font-size: 1.75rem;
}

.value-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.value-text {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.value-tag-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mini-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--blue-tint);
  border: 1px solid rgba(191, 219, 254, 0.8);
  color: var(--blue-vivid);
  font-weight: 500;
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-spring), border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.project-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-vivid);
  background: var(--blue-tint);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(191, 219, 254, 0.8);
}

.pulse-green, .pulse-blue, .pulse-purple {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.pulse-green { background: #10B981; box-shadow: 0 0 6px #10B981; }
.pulse-blue { background: #2563EB; box-shadow: 0 0 6px #2563EB; }
.pulse-purple { background: #8B5CF6; box-shadow: 0 0 6px #8B5CF6; }

.project-year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.project-body.with-media {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: center;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.025em;
  margin-bottom: 0.35rem;
}

.project-tagline {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--blue-primary);
  margin-bottom: 1rem;
}

.project-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.project-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.project-tags span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
}

.project-link-row {
  margin-top: 0.5rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--blue-primary);
  transition: transform 0.2s var(--ease-spring), color 0.2s ease;
}

.link-arrow:hover {
  color: var(--blue-vivid);
  transform: translateX(3px);
}

.project-media-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.media-thumb-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-spring), border-color 0.25s ease, box-shadow 0.25s ease;
}

.media-thumb-card:hover {
  transform: scale(1.02);
  border-color: var(--blue-primary);
  box-shadow: var(--shadow-md);
}

.project-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.media-thumb-card:hover .project-img {
  transform: scale(1.04);
}

.media-caption {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  padding: 0.5rem 0.75rem;
  background: #FFFFFF;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   PRESS & ARTICLES SECTION (4 CARDS GRID)
   ========================================================================== */
.press-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.press-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-spring), border-color 0.3s ease, box-shadow 0.3s ease;
}

.press-card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.press-card.featured-press {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: var(--shadow-md);
}

.press-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.press-thumb-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #F1F5F9;
}

.press-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.press-card:hover .press-thumb {
  transform: scale(1.05);
}

.press-badge-award {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
}

.press-badge-award.highlight {
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-vivid));
  color: #FFFFFF;
  border: none;
}

.press-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.press-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.press-outlet {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.press-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.press-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
}

.press-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.press-tag-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.press-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue-primary);
  margin-top: auto;
  transition: transform 0.2s var(--ease-spring), color 0.2s ease;
}

.press-card:hover .press-read-more {
  color: var(--blue-vivid);
  transform: translateX(4px);
}

/* ==========================================================================
   CONTACT / FOOTER SECTION
   ========================================================================== */
.contact-section {
  padding-bottom: 4rem;
}

.contact-box {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem 2.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  text-align: center;
}

.contact-sparkle {
  position: absolute;
  top: 1.75rem;
  right: 2rem;
  font-size: 1.5rem;
  color: var(--blue-primary);
  animation: float-sparkle 3s infinite;
}

.contact-box .section-tag {
  margin-bottom: 1rem;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-main);
  max-width: 680px;
  margin: 0 auto 1rem;
  line-height: 1.25;
}

.contact-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 2.25rem;
  line-height: 1.6;
}

.contact-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-dots {
  color: var(--blue-cyan);
}

.back-to-top {
  color: var(--blue-primary);
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s var(--ease-spring);
}

.back-to-top:hover {
  color: var(--blue-vivid);
  transform: translateY(-2px);
}

/* ==========================================================================
   SCROLL REVEAL (Safe Opacity Fallback)
   ========================================================================== */
.reveal {
  opacity: 1;
  transform: translateY(0);
}

.js-motion .reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s var(--ease-spring), transform 0.5s var(--ease-spring);
}

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

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .about-visual {
    margin: 0 auto;
  }

  .about-meta-row {
    grid-template-columns: 1fr;
  }

  .social-links-row {
    justify-content: center;
  }

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

@media (max-width: 768px) {
  :root {
    --nav-height: 4rem;
  }

  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  .container {
    padding: 0 1.25rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .header-inner {
    padding: 0 1.25rem;
  }

  .nav-links, .status-ticker {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-section {
    padding-top: calc(var(--nav-height) + 1.5rem);
    padding-bottom: 2.5rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .hero-container {
    width: 100%;
    max-width: 100%;
  }

  .hero-pill-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
  }

  .pill-chip {
    max-width: 100%;
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.6rem);
    line-height: 1.15;
    word-break: break-word;
    max-width: 100%;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .canvas-spot-hint {
    font-size: 0.72rem;
    width: 100%;
    box-sizing: border-box;
    white-space: normal;
    text-align: center;
    justify-content: center;
    margin-bottom: 1.75rem;
  }

  .digital-ribbon {
    width: 100%;
    max-width: 100%;
    font-size: 0.65rem;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .section {
    padding: 2.75rem 0;
  }

  .section-header {
    margin-bottom: 1.75rem;
  }

  .section-heading {
    font-size: clamp(1.6rem, 6vw, 2.1rem);
    line-height: 1.2;
    word-break: break-word;
  }

  .section-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .about-card, .contact-box {
    padding: 1.75rem 1.25rem;
    width: 100%;
    box-sizing: border-box;
  }

  .avatar-wrapper {
    width: 150px;
    height: 150px;
  }

  .about-content .section-heading {
    font-size: 1.5rem;
  }

  .about-meta-row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 1rem 0;
  }

  .social-links-row {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }

  .social-chip {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    word-break: break-all;
  }

  .values-grid, .press-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .value-card, .project-card, .press-card {
    padding: 1.5rem 1.25rem;
    width: 100%;
    box-sizing: border-box;
  }

  .project-body.with-media {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-title {
    font-size: 1.5rem;
  }

  .project-tagline {
    font-size: 0.95rem;
  }

  .project-desc {
    font-size: 0.92rem;
  }

  .project-media-col {
    width: 100%;
  }

  .media-thumb-card {
    width: 100%;
  }

  .press-content {
    padding: 1.25rem 0.5rem;
  }

  .press-title {
    font-size: 1.15rem;
  }

  .press-excerpt {
    font-size: 0.9rem;
  }

  .contact-title {
    font-size: clamp(1.65rem, 6.5vw, 2.2rem);
  }

  .contact-desc {
    font-size: 0.98rem;
    margin-bottom: 2rem;
  }

  .contact-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
