/* ==========================================================================
   NHEU — Apple Minimalist Portfolio Design System
   Minimalism, SF Pro Typography, Obsidian Dark Surfaces, Real Web Captures
   ========================================================================== */

:root {
  /* Apple Obsidian Color System */
  --bg-pitch: #000000;
  --bg-deep: #060608;
  --bg-surface: #0c0c0e;
  --bg-surface-elevated: #141418;
  --bg-card: rgba(18, 18, 22, 0.7);
  --bg-card-hover: rgba(28, 28, 34, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-focus: rgba(255, 255, 255, 0.35);

  /* Typography Colors */
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --text-tertiary: #515154;
  --text-accent: #2997ff;

  /* Accents */
  --accent-blue: #0071e3;
  --accent-cyan: #2997ff;
  --accent-emerald: #30d158;
  --accent-amber: #ff9f0a;
  --accent-purple: #bf5af2;

  /* Fonts */
  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Depth */
  --shadow-window: 0 30px 60px -15px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --shadow-window-hover: 0 40px 80px -20px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.18);
  --shadow-pill: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);

  /* Transitions */
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-apple);
  --transition-smooth: 0.38s var(--ease-apple);
}

/* Base Reset & Smooth Scroll */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-pitch);
  overscroll-behavior: none;
  overscroll-behavior-y: none;
}

body {
  font-family: var(--font-system);
  background-color: var(--bg-pitch);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overscroll-behavior: none;
  overscroll-behavior-y: none;
}

/* Ambient Radial Glow */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    radial-gradient(1000px 500px at 50% -10%, rgba(41, 151, 255, 0.07) 0%, transparent 60%),
    radial-gradient(800px 400px at 85% 60%, rgba(191, 90, 242, 0.04) 0%, transparent 55%),
    radial-gradient(700px 400px at 15% 90%, rgba(48, 209, 88, 0.03) 0%, transparent 60%);
}

.container {
  width: min(1280px, 90%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Apple Floating Island Navigation Bar
   ========================================================================== */
.floating-nav {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: min(960px, 94%);
}

.nav-island {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem 0.55rem 1.15rem;
  background: rgba(18, 18, 22, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-pill);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.nav-island:hover {
  border-color: var(--border-medium);
  background: rgba(22, 22, 28, 0.82);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px rgba(48, 209, 88, 0.7);
  position: relative;
}

.brand-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(48, 209, 88, 0.4);
  animation: pulse-ring 2.5s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.brand-name {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.brand-counter {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-weight: 500;
}

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

.nav-pill-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-pill-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-pill-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.nav-search-trigger {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-left: 0.35rem;
}

.nav-search-trigger:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.kbd-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.1rem 0.35rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--text-primary);
}

/* Apple Language Switcher (Català | Castellano | English) */
.nav-lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 2px;
  gap: 2px;
  margin-left: 0.35rem;
}

.lang-pill-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-system);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.24rem 0.55rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1;
}

.lang-pill-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.lang-pill-btn.active {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  font-weight: 700;
}

.modal-body-nofoto {
  padding: 2.2rem 2rem 2rem;
}

/* ==========================================================================
   Hero Section: Apple-Style Two-Stage Cinematic Scroll Presentation
   Stage 1: Iconic Brand Reveal (NHEU de primeras)
   Stage 2: Manifesto & Statement (revelado al desplazar)
   Stage 3: Flujo continuo hacia #catalogo
   ========================================================================== */
.hero-scrub-container {
  position: relative;
  z-index: 2;
  height: 160vh;
  width: 100%;
  margin: 0;
  padding: 0;
}

.hero-sticky-viewport {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Background Video Container: Fixed Full-Viewport Canvas (Eliminates hard edge / black line) */
.hero-video-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  /* Feathered bottom edge so the video softly dissolves into the ambient obsidian darkness */
  -webkit-mask-image: linear-gradient(to bottom, 
    #000000 0%, 
    #000000 55%, 
    rgba(0, 0, 0, 0.95) 70%, 
    rgba(0, 0, 0, 0.6) 82%, 
    rgba(0, 0, 0, 0.2) 92%, 
    transparent 100%
  );
  mask-image: linear-gradient(to bottom, 
    #000000 0%, 
    #000000 55%, 
    rgba(0, 0, 0, 0.95) 70%, 
    rgba(0, 0, 0, 0.6) 82%, 
    rgba(0, 0, 0, 0.2) 92%, 
    transparent 100%
  );
  will-change: transform, opacity;
  transition: opacity 0.35s ease-out;
}

.hero-video-media {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  transform: translate(-50%, -50%);
  filter: brightness(0.72) contrast(1.08) saturate(1.1);
  pointer-events: none;
  will-change: transform;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 90% 65% at 50% 45%, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.52) 100%),
    linear-gradient(180deg, 
      rgba(0, 0, 0, 0.6) 0%, 
      rgba(0, 0, 0, 0.12) 35%, 
      rgba(0, 0, 0, 0.3) 65%, 
      rgba(6, 6, 8, 0.85) 85%, 
      var(--bg-pitch) 100%
    );
  pointer-events: none;
}

/* Stage 1: Brand Center Box (Visible de primeras: solo NHEU) */
.hero-brand-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 90%;
  max-width: 820px;
  will-change: transform, opacity;
  transition: opacity 0.12s ease-out, transform 0.12s ease-out;
  z-index: 5;
}

.hero-scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  padding: 0.45rem 1.15rem;
  background: rgba(18, 18, 22, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: floatHint 2.4s ease-in-out infinite;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.hero-scroll-hint svg {
  animation: bounceHint 2.4s ease-in-out infinite;
  color: var(--accent-blue);
}

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

@keyframes bounceHint {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

/* Stage 2: Statement Presentation (Revealed smoothly on scroll) */
.hero-statement-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 40px));
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 90%;
  max-width: 960px;
  padding: 1.5rem;
  box-sizing: border-box;
  will-change: transform, opacity, filter;
  transition: opacity 0.12s ease-out, transform 0.12s ease-out, filter 0.12s ease-out;
  z-index: 6;
}

.hero-brand-title {
  font-size: clamp(4.5rem, 11vw, 8.5rem);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 0.95;
  background: linear-gradient(180deg, #ffffff 40%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 0.5rem 0;
  user-select: none;
  filter: drop-shadow(0 4px 30px rgba(0, 0, 0, 0.8));
}

.hero-brand-tagline {
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 1.25rem;
  max-width: 900px;
}

.text-gradient {
  background: linear-gradient(180deg, #ffffff 30%, #86868b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.35vw, 1.15rem);
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.55;
  margin-bottom: 1.75rem;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.btn-apple-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.65rem;
  background: #ffffff;
  color: #000000;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

.btn-apple-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-apple-primary svg {
  transition: transform var(--transition-fast);
}

.btn-apple-primary:hover svg {
  transform: translateY(2px);
}

.btn-apple-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.92rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.btn-apple-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--border-medium);
}

.hero-floating-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.hero-stat-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
}

.hero-stat-badge strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ==========================================================================
   Personal Bento Section (Sobre Mí & Enfoque de Desarrollo)
   ========================================================================== */
.personal-bio-section {
  padding: 6rem 0;
  position: relative;
}

.personal-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.personal-bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.personal-bento-card:hover {
  border-color: var(--border-medium);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.col-7 { grid-column: span 7; }
.col-5 { grid-column: span 5; }
.col-4 { grid-column: span 4; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

.bio-greeting {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
  display: block;
}

.bio-title {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.15rem;
  line-height: 1.2;
}

.bio-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.skills-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.skill-pill {
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
}

.metric-big-number {
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
  display: block;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* ==========================================================================
   Section 1: Apple Kinetic Manifesto (Illumination on Scroll)
   ========================================================================== */
.manifesto-section {
  padding: 9rem 0 7rem;
  position: relative;
  z-index: 2;
}

.manifesto-container {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.manifesto-phrase {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.25;
  margin-bottom: 2.75rem;
  color: #ffffff;
  opacity: 0.18;
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
  will-change: opacity, transform;
}

.manifesto-phrase.active {
  text-shadow: 0 0 50px rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   Section 2: Apple Pinned Spotlight Stage (Scroll Discovery)
   ========================================================================== */
.pinned-spotlight-section {
  position: relative;
  height: 340vh;
}

.pinned-stage-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2rem 0;
}

.stage-inner {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 3.5rem;
  align-items: center;
  width: min(1200px, 92%);
  margin: 0 auto;
}

.stage-narrative {
  display: flex;
  flex-direction: column;
}

.stage-step-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stage-number {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-cyan);
  padding: 0.25rem 0.6rem;
  background: rgba(41, 151, 255, 0.1);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(41, 151, 255, 0.2);
}

.stage-category {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.stage-text-group {
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.stage-text-group.transitioning {
  opacity: 0.2;
  transform: translateY(8px);
}

.stage-title {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.stage-subtitle {
  font-size: 1.15rem;
  color: var(--accent-cyan);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.stage-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 460px;
}

.stage-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.stage-stat-item {
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.stage-stat-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  display: block;
}

.stage-stat-lbl {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stage-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Stage Visual (Safari Window with REAL Screenshot) */
.stage-visual {
  position: relative;
}

.stage-window-frame {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-window);
  overflow: hidden;
  transition: box-shadow var(--transition-smooth);
}

.stage-screen-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  background-color: #030712;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Pinned Progress Navigation Indicator */
.stage-progress-nav {
  position: absolute;
  right: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  z-index: 10;
}

.stage-track-line {
  width: 2px;
  height: 120px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1px;
  position: relative;
  overflow: hidden;
}

.stage-fill-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: #ffffff;
  transition: height 0.1s linear;
}

.stage-dots {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stage-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-fast);
}

.stage-dot:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.3);
}

.stage-dot.active {
  background: #ffffff;
  transform: scale(1.5);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Section 3: Horizontal Project Showcase Reel
   ========================================================================== */
.reel-section {
  padding: 6rem 0;
  overflow: hidden;
  position: relative;
}

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.5rem;
}

.section-heading {
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

.reel-container {
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 1rem 0;
}

.reel-container::-webkit-scrollbar {
  display: none;
}

.reel-track {
  display: flex;
  gap: 1.5rem;
  padding: 0 5%;
  width: max-content;
  transition: transform 0.1s linear;
}

.reel-card {
  width: 340px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.reel-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-window-hover);
}

.reel-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #09090b;
}

.reel-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-apple);
}

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

.reel-info {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.reel-pill {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.reel-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.reel-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 1rem;
}

.reel-cta {
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   Section 4: Complete Projects Archive (Grid & List View)
   ========================================================================== */
.catalog-section {
  position: relative;
  z-index: 2;
  margin-top: -6vh; /* Sube la sección de proyectos para que aparezca antes y sin vacíos */
  padding: 2rem 0 6rem;
  /* Seamless atmospheric fade: cloud mist gently blends into deep obsidian dark without any hard line */
  background: linear-gradient(180deg, 
    rgba(6, 6, 8, 0) 0%, 
    rgba(6, 6, 8, 0.4) 140px, 
    rgba(6, 6, 8, 0.82) 320px, 
    rgba(6, 6, 8, 0.96) 520px, 
    var(--bg-pitch) 720px
  );
}

.catalog-header {
  margin-bottom: 2.5rem;
}

.catalog-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.25rem;
  padding: 0.65rem 1rem;
  background: rgba(18, 18, 22, 0.65);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.search-input-wrap {
  position: relative;
  width: 220px;
  flex-shrink: 0;
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.45rem 2rem 0.45rem 2.2rem;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--text-accent);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.2);
}

.search-clear {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.2rem;
  display: flex;
}

.filter-pills-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.filter-pills-row::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.filter-pill {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.filter-pill.active {
  color: #000000;
  background: #ffffff;
  font-weight: 600;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.results-counter {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.view-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
}

.view-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all var(--transition-fast);
}

.view-btn.active {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Catalog Grid of macOS Window Cards */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

.project-window-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

.project-window-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(400px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(255, 255, 255, 0.06), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.project-window-card:hover::before {
  opacity: 1;
}

.project-window-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-window-hover);
}

/* macOS Safari Minimalist Titlebar */
.window-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.6rem 0.95rem;
  background: rgba(18, 18, 22, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  user-select: none;
  min-height: 40px;
  box-sizing: border-box;
}

.window-traffic-lights {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.window-traffic-lights .light {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  opacity: 0.85;
  transition: opacity var(--transition-fast);
}

.project-window-card:hover .window-traffic-lights .light {
  opacity: 1;
}

.window-traffic-lights .light.red {
  background: #ff5f57;
  box-shadow: 0 0 5px rgba(255, 95, 87, 0.4);
}

.window-traffic-lights .light.yellow {
  background: #febc2e;
  box-shadow: 0 0 5px rgba(254, 188, 46, 0.4);
}

.window-traffic-lights .light.green {
  background: #28c840;
  box-shadow: 0 0 5px rgba(40, 200, 64, 0.4);
}

.window-address-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.22rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  flex: 1 1 auto;
  min-width: 0;
  max-width: 62%;
  overflow: hidden;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.project-window-card:hover .window-address-pill {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text-primary);
}

.window-address-pill svg {
  flex-shrink: 0;
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
}

.project-window-card:hover .window-address-pill svg {
  color: var(--accent-cyan);
}

.address-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: -0.01em;
}

.window-tag-badge {
  font-size: 0.66rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.01em;
}

.window-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #030712;
}

.window-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-apple);
}

.project-window-card:hover .window-screen-img {
  transform: scale(1.03);
}

.window-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.project-window-card:hover .window-hover-overlay {
  opacity: 1;
}

.overlay-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.15rem;
  background: #ffffff;
  color: #000000;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.card-meta {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.title-with-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-emoji {
  font-size: 1.15rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.badge-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px rgba(48, 209, 88, 0.6);
}

.card-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 1rem;
}

.card-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.4rem;
}

.tag-chip {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.card-actions-bar {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.btn-card-launch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-card-launch:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.btn-card-details {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-full);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.btn-card-details:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* Catalog List View */
.catalog-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.project-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.project-row:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-medium);
}

.row-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.row-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.row-icon {
  font-size: 1.35rem;
}

.row-title {
  font-size: 1rem;
  font-weight: 700;
}

.row-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.row-center {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.badge-pill {
  font-size: 0.75rem;
  padding: 0.2rem 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}

.row-tags {
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-pill-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  background: #ffffff;
  color: #000000;
  border-radius: var(--radius-full);
  text-decoration: none;
}

.btn-pill-details {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.35rem 0.75rem;
}

.empty-results {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Section 5: Apple Bento Stack & Engineering Philosophy
   ========================================================================== */
.bento-section {
  padding: 6rem 0 8rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.bento-item:hover {
  border-color: var(--border-medium);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

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

.bento-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
}

.bento-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.bento-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Section 6: Apple Project Sheet / Modal
   ========================================================================== */
.apple-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-apple);
}

.apple-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-sheet {
  background: #0f0f13;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.95);
  width: min(880px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.35s var(--ease-apple);
}

.apple-modal.open .modal-sheet {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background-color var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.modal-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(18, 18, 22, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-nav-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--border-medium);
}

.modal-prev { left: -3.5rem; }
.modal-next { right: -3.5rem; }

.modal-screen-wrap {
  width: 100%;
  aspect-ratio: 16 / 9.5;
  background: #030712;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

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

.modal-body {
  padding: 2.25rem;
}

.modal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-icon {
  font-size: 1.6rem;
}

.modal-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.modal-category-badge {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}

.modal-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.stat-box {
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.stat-v {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  display: block;
  letter-spacing: -0.02em;
}

.stat-l {
  font-size: 0.74rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.modal-desc {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.modal-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.modal-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.feat-bullet {
  color: var(--accent-emerald);
  font-weight: 700;
}

.modal-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 2.25rem;
}

.modal-tag-chip {
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.modal-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.btn-launch-large {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.75rem;
  background: #ffffff;
  color: #000000;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.btn-launch-large:hover {
  transform: scale(1.03);
}

.modal-kbd-hint {
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

/* ==========================================================================
   Section 7: Minimalist Personal Footer
   ========================================================================== */
.site-footer {
  padding: 5rem 0 3.5rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-pitch);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.footer-personal {
  max-width: 400px;
}

.footer-brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  line-height: 1.5;
}

.footer-contact-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn-footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.15rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-footer-contact:hover {
  background: #ffffff;
  color: #000000;
}

.footer-links-group {
  display: flex;
  gap: 3rem;
}

.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-link {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1100px) {
  .catalog-toolbar {
    flex-wrap: wrap;
    gap: 0.85rem;
  }
  .toolbar-left {
    width: 100%;
    flex: 1 1 100%;
  }
  .filter-pills-row {
    flex: 1;
  }
  .toolbar-right {
    width: 100%;
    justify-content: space-between;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
}

@media (max-width: 1024px) {
  .stage-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .stage-progress-nav {
    display: none;
  }
  .col-7, .col-5, .col-4, .col-8, .bento-col-8, .bento-col-4, .bento-col-6 {
    grid-column: span 12;
  }
  .modal-nav-arrow {
    display: none;
  }
}

@media (max-width: 768px) {
  /* Navigation Bar Mobile iOS Style */
  .floating-nav {
    width: calc(100% - 1.25rem);
    top: max(0.6rem, env(safe-area-inset-top, 0.6rem));
  }
  .nav-island {
    padding: 0.35rem 0.65rem;
    gap: 0.4rem;
  }
  .brand-counter {
    display: none;
  }
  .nav-links {
    display: none;
  }
  .nav-lang-switcher {
    padding: 1px;
    gap: 1px;
    margin-left: auto;
    margin-right: 0.2rem;
  }
  .lang-pill-btn {
    font-size: 0.68rem;
    padding: 0.2rem 0.45rem;
  }
  .nav-search-trigger {
    padding: 0.35rem 0.55rem;
    gap: 0.25rem;
  }
  .nav-search-trigger #nav-search-label,
  .kbd-badge {
    display: none;
  }

  /* Hero Section Mobile Optimization */
  .hero-scrub-container {
    height: 140vh;
  }
  .hero-brand-stage {
    width: 95%;
  }
  .hero-brand-title {
    font-size: clamp(3rem, 15vw, 4.5rem);
    letter-spacing: -0.03em;
  }
  .hero-brand-tagline {
    font-size: 0.92rem;
    margin-top: 0.4rem;
  }
  .hero-scroll-hint {
    margin-top: 1.25rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.72rem;
  }
  .hero-statement-stage {
    padding: 0.75rem 0.5rem;
    width: 95%;
  }
  .eyebrow-pill {
    font-size: 0.65rem;
    padding: 0.25rem 0.65rem;
    margin-bottom: 0.65rem;
    max-width: 100%;
  }
  .hero-headline {
    font-size: clamp(1.45rem, 6.2vw, 1.95rem);
    line-height: 1.2;
    margin-bottom: 0.65rem;
  }
  .hero-subtitle {
    font-size: 0.82rem;
    line-height: 1.45;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-ctas {
    width: 100%;
    margin-bottom: 1rem;
  }
  .btn-apple-primary {
    width: 100%;
    justify-content: center;
    font-size: 0.84rem;
    padding: 0.65rem 1.15rem;
  }
  .hero-floating-badges {
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
  }
  .hero-stat-badge {
    width: 100%;
    justify-content: center;
    font-size: 0.74rem;
    padding: 0.32rem 0.6rem;
  }

  /* Catalog Section Mobile Layout */
  .catalog-section {
    padding: 3.5rem 0 4rem;
  }
  .catalog-header {
    margin-bottom: 1.5rem;
  }
  .section-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
  }
  .section-heading {
    font-size: 1.65rem;
    letter-spacing: -0.02em;
  }
  .catalog-toolbar {
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }
  .toolbar-left, .toolbar-right {
    width: 100%;
  }
  .toolbar-right {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.25rem;
  }
  .search-input-wrap {
    width: 100%;
  }
  .search-input {
    font-size: 0.84rem;
    padding: 0.55rem 2rem 0.55rem 2.25rem;
    height: 42px;
  }
  .filter-pills-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.4rem;
    padding: 0.25rem 0 0.5rem;
    width: 100%;
  }
  .filter-pills-row::-webkit-scrollbar {
    display: none;
  }
  .filter-pill {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.74rem;
    padding: 0.35rem 0.7rem;
  }

  /* Cards Grid Mobile */
  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .project-window-card {
    border-radius: var(--radius-md);
  }
  .window-chrome {
    padding: 0.45rem 0.7rem;
    gap: 0.5rem;
  }
  .window-address-pill {
    max-width: 68%;
  }
  .card-meta {
    padding: 1rem 1.15rem;
  }
  .card-title {
    font-size: 1.15rem;
  }
  .card-subtitle {
    font-size: 0.84rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
  }
  .card-tag-cloud {
    gap: 0.25rem;
    margin-bottom: 0.85rem;
  }
  .tag-chip {
    font-size: 0.68rem;
    padding: 0.15rem 0.45rem;
  }
  .card-actions-bar {
    gap: 0.5rem;
  }
  .btn-card-launch, .btn-card-details {
    padding: 0.45rem 0.8rem;
    font-size: 0.78rem;
    min-height: 38px;
  }

  /* Modal Mobile: Apple Native Bottom Sheet */
  .apple-modal {
    padding: 0;
    align-items: flex-end;
  }
  .modal-sheet {
    width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    border-radius: 24px 24px 0 0;
    border-bottom: none;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1);
  }
  .apple-modal.open .modal-sheet {
    transform: translateY(0);
  }
  .modal-screen-wrap {
    aspect-ratio: 16 / 9;
  }
  .modal-body {
    padding: 1.25rem 1.15rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  }
  .modal-title {
    font-size: 1.35rem;
  }
  .modal-subtitle {
    font-size: 0.88rem;
    margin-bottom: 1rem;
  }
  .modal-desc {
    font-size: 0.86rem;
    line-height: 1.45;
    margin-bottom: 1.25rem;
  }
  .modal-footer-bar {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }
  .btn-launch-large {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.88rem;
  }
  .modal-kbd-hint {
    text-align: center;
    font-size: 0.72rem;
  }
}

@media (max-width: 480px) {
  .window-tag-badge {
    display: none;
  }
  .window-address-pill {
    max-width: 82%;
  }
}

/* Official project logos scale with their icon container. */
.project-logo {
  width: 1em;
  height: 1em;
  object-fit: contain;
  vertical-align: middle;
}

.nav-github {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-left: 0.4rem;
  border-radius: 50%;
  color: var(--text-secondary, #aaa);
  transition: color 160ms, background-color 160ms;
}
.nav-github:hover, .nav-github:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.nav-github:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
