/* ==========================================================================
   ALEJANDROHA.COM AESTHETIC — DESIGN SYSTEM & STYLESHEET
   Off-White Canvas · Stark Black Text · Vibrant Electric Blue Accents (#0038ff)
   Geometric Typography (Syne & Plus Jakarta Sans) · Kinetic Typo · Full-Screen Footer
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Syne:wght@700;800&display=swap');

:root {
  --bg: #f3f3f3;
  --bg-card: #ffffff;
  --text: #050505;
  --text-muted: #5e5e5e;
  --text-subtle: #8a8a8a;
  --blue: #0038ff;
  --blue-hover: #002bd6;
  --blue-glow: rgba(0, 56, 255, 0.28);
  --blue-light: rgba(0, 56, 255, 0.08);
  --border: #e0e0e0;
  --border-strong: #050505;
  --dark-bg: #050505;
  --dark-card: #111111;
  --dark-border: #222222;
  --font-heading: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-pill: 9999px;
  --radius-card: 12px;
  --container-max: 1320px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
}

::selection {
  background: var(--blue);
  color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 36px;
  width: 100%;
}

@media (max-width: 1024px) {
  .container {
    padding: 0 28px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  background: var(--text);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  z-index: 10000;
  font-weight: 700;
}
.skip-link:focus {
  left: 20px;
}

/* ==========================================================================
   PAGE TRANSITION: DIAGONAL WIPE (ELECTRIC BLUE)
   ========================================================================== */
.page-wipe-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page-wipe-layer {
  position: absolute;
  inset: -20% -20% -20% -20%;
  background: var(--blue);
  transform: skewY(-8deg) translateY(120%);
  transition: transform 0.65s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

.page-wipe-overlay.is-active .page-wipe-layer {
  transform: skewY(-8deg) translateY(0%);
}

.page-wipe-overlay.is-leaving .page-wipe-layer {
  transform: skewY(-8deg) translateY(-120%);
}

/* ==========================================================================
   FLOATING PILL NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 1000;
  pointer-events: none;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: auto;
}

/* Brand pill */
.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.brand-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 56, 255, 0.4);
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
  animation: pulse-dot 2.5s infinite;
}

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

.brand-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-light);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

/* Center Navigation Pill */
.nav-links-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.nav-link-item {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link-item:hover,
.nav-link-item.is-active {
  color: var(--text);
  background: rgba(0, 0, 0, 0.05);
}

.nav-link-item.is-active {
  color: var(--blue);
}

/* Action Pills (Top Right) */
.nav-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Solid Blue Action Pill */
.pill-btn-blue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--blue);
  color: #ffffff !important;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 20px rgba(0, 56, 255, 0.35);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s, box-shadow 0.25s;
  white-space: nowrap;
}

.pill-btn-blue:hover {
  background: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0, 56, 255, 0.45);
}

/* Black Outlined Pill */
.pill-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
  border: 1.5px solid var(--text);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.pill-btn-outline:hover {
  background: var(--text);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.12);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mobile-nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.mobile-nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.mobile-nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Backdrop & Lock */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 998;
}

.mobile-nav-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

body.nav-locked {
  overflow: hidden !important;
  touch-action: none;
}

.mobile-drawer-actions {
  display: none;
}

@media (max-width: 960px) {
  .nav-links-pill {
    position: fixed;
    top: 86px;
    left: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    border: 1.5px solid var(--border-strong);
    gap: 8px;
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(0.98);
    transition: opacity 0.26s cubic-bezier(0.16, 1, 0.3, 1), transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.26s;
    z-index: 999;
  }

  .nav-links-pill.mobile-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .nav-links-pill .nav-link-item {
    font-size: 15.5px;
    font-weight: 700;
    text-align: center;
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
    transition: background 0.2s, color 0.2s;
  }

  .nav-links-pill .nav-link-item:hover,
  .nav-links-pill .nav-link-item.is-active {
    background: var(--blue-light);
    color: var(--blue);
  }

  .mobile-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    width: 100%;
  }

  .mobile-drawer-btn {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
  }

  .mobile-nav-toggle {
    display: flex;
    z-index: 1000;
  }
}

@media (max-width: 768px) {
  .header-resume-btn {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .header-talk-btn {
    display: none !important;
  }
  .site-header {
    top: 14px;
  }
  .brand-pill {
    padding: 8px 14px;
    gap: 8px;
  }
  .brand-title {
    font-size: 14px;
  }
  .brand-tag {
    font-size: 9.5px;
    padding: 2px 7px;
  }
  .nav-links-pill {
    top: 76px;
    left: 14px;
    right: 14px;
    padding: 18px 14px;
    border-radius: 20px;
  }
}

@media (max-width: 360px) {
  .brand-tag {
    display: none;
  }
}

/* ==========================================================================
   BRUTALIST SECTION HEADERS & KINETIC TYPOGRAPHY
   ========================================================================== */
.section {
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .section {
    padding: 110px 0;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 85px 0;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 65px 0;
  }
}

.section-pretitle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 24px;
}

.section-pretitle::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.section-header-brutalist {
  margin-bottom: 70px;
}

@media (max-width: 768px) {
  .section-header-brutalist {
    margin-bottom: 40px;
  }
}

.section-title-huge {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6.8vw, 6.8rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 24px;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

@media (max-width: 1024px) {
  .section-title-huge {
    font-size: clamp(2.3rem, 5.8vw, 4.4rem);
  }
}

@media (max-width: 768px) {
  .section-title-huge {
    font-size: clamp(2.0rem, 7.5vw, 3.4rem);
  }
}

@media (max-width: 480px) {
  .section-title-huge {
    font-size: clamp(1.75rem, 8vw, 2.45rem);
  }
}

.section-title-huge em {
  font-style: normal;
  color: var(--blue);
}

.section-subtitle-editorial {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-muted);
  max-width: 740px;
  line-height: 1.65;
  font-weight: 500;
}

@media (max-width: 768px) {
  .section-subtitle-editorial {
    font-size: 1.05rem;
  }
}

/* Kinetic Typography: Text Scatter & Blur on Scroll */
.kinetic-header {
  overflow: visible;
}

.kinetic-char {
  display: inline-block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease, opacity 0.6s ease;
  will-change: transform, filter, opacity;
}

.kinetic-word {
  display: inline-block;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .kinetic-word {
    white-space: normal;
  }
}

.kinetic-header.is-scrambled .kinetic-char {
  opacity: 0.2;
  filter: blur(12px);
  transform: translate3d(var(--x, 0px), var(--y, 0px), 0) rotate(var(--r, 0deg)) scale(1.15);
}

.kinetic-header.is-in-view .kinetic-char {
  opacity: 1;
  filter: blur(0px);
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
}

/* ==========================================================================
   HERO SECTION (FULL SCREEN VIEWPORT 100VH / 100DVH)
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 130px;
  padding-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Full-Screen Time-Loop Background Reel & Resizability Engine */
.hero-fullscreen-bg-loop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-fullscreen-bg-loop .hero-loop-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.04);
  filter: contrast(1.06) saturate(1.15);
  transition: opacity 1.0s cubic-bezier(0.4, 0, 0.2, 1), transform 4s ease-out;
  will-change: opacity, transform;
}

.hero-fullscreen-bg-loop .hero-loop-slide.is-active {
  opacity: 0.75;
  transform: scale(1.0);
}

.hero-section:hover .hero-fullscreen-bg-loop .hero-loop-slide.is-active {
  opacity: 0.88;
}

/* Vignette overlay for text contrast */
.hero-fullscreen-bg-loop .hero-loop-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(243, 243, 243, 0.92) 0%, rgba(243, 243, 243, 0.70) 44%, rgba(243, 243, 243, 0.12) 75%, rgba(243, 243, 243, 0.25) 100%),
              linear-gradient(180deg, rgba(243, 243, 243, 0.75) 0%, rgba(243, 243, 243, 0) 25%, rgba(243, 243, 243, 0) 75%, rgba(243, 243, 243, 0.8) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-container-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 390px);
  gap: 48px;
  align-items: center;
  margin: auto 0;
  padding: 16px 0 24px;
}

.hero-main {
  max-width: 840px;
  width: 100%;
}

.hero-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--blue);
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 4.8vw, 4.6rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 24px;
  text-shadow: 0 2px 24px rgba(243, 243, 243, 0.95), 0 0 50px rgba(243, 243, 243, 0.9);
}

.hero-word {
  display: block;
  white-space: nowrap;
}

.hero-title em,
.hero-word-accent {
  font-style: normal;
  color: var(--blue);
  position: relative;
}

.hero-lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: #111111;
  line-height: 1.65;
  max-width: 660px;
  margin-bottom: 36px;
  text-shadow: 0 1px 16px rgba(243, 243, 243, 0.95);
}

.hero-lead strong {
  color: var(--text);
  font-weight: 700;
}

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

/* Hero Aside / Focus Card */
.hero-focus-card {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 30px 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.04);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
  margin-top: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.focus-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid var(--text);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.focus-card-header span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

.focus-items-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.focus-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.focus-item:last-child {
  border-bottom: none;
}

.focus-item-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--blue);
  flex-shrink: 0;
}

.focus-item-text {
  font-family: var(--font-heading);
  font-size: clamp(12.5px, 0.95vw, 15px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-transform: uppercase;
  white-space: nowrap;
}

.focus-card-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.focus-card-footer strong {
  color: var(--text);
}

/* Hero Bottom Ticker Banner (Pinned to bottom of 100vh) */
.hero-ticker-bar {
  margin-top: auto;
  padding-top: 18px;
  padding-bottom: 4px;
  border-top: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  text-transform: uppercase;
}

@media (max-width: 1200px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 350px);
    gap: 36px;
  }
  .hero-title {
    font-size: clamp(2.2rem, 4.1vw, 3.8rem);
  }
}

@media (max-width: 1024px) {
  .hero-section {
    padding-top: 110px;
    padding-bottom: 24px;
  }
  .hero-title {
    font-size: clamp(2.05rem, 3.8vw, 3.3rem);
    margin-bottom: 22px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(290px, 330px);
    gap: 30px;
  }
}

@media (max-width: 960px) {
  .hero-section {
    min-height: auto;
    padding-top: 105px;
    padding-bottom: 40px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    margin: 0;
  }
  .hero-title {
    font-size: clamp(2.2rem, 5.8vw, 3.6rem);
  }
  .hero-focus-card {
    min-height: auto;
    margin-top: 0;
    padding: 28px 24px;
    max-width: 500px;
  }
  .hero-ticker-bar {
    margin-top: 36px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(1.95rem, 6.8vw, 2.9rem);
    line-height: 0.94;
    margin-bottom: 20px;
  }
  .hero-lead {
    font-size: 1.02rem;
    line-height: 1.6;
    margin-bottom: 26px;
  }
  .hero-tag-badge {
    margin-bottom: 18px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding-top: 86px;
    padding-bottom: 26px;
  }
  .hero-title {
    font-size: clamp(1.7rem, 7.8vw, 2.3rem);
    letter-spacing: -0.035em;
  }
  .hero-tag-badge {
    font-size: 10.5px;
    padding: 6px 14px;
    letter-spacing: 0.08em;
  }
  .hero-lead {
    font-size: 0.95rem;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .hero-cta-group .pill-btn-blue,
  .hero-cta-group .pill-btn-outline {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    font-size: 13.5px;
  }
  .hero-focus-card {
    padding: 20px 16px;
    border-radius: 14px;
  }
  .focus-item-text {
    font-size: 14px;
    white-space: normal;
  }
}

/* ==========================================================================
   FEATURED PROJECTS — HORIZONTAL CAROUSEL & CARDS
   ========================================================================== */
.featured-section {
  background: #ffffff;
  border-top: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
  overflow: hidden;
}

/* ==========================================================================
   FEATURED SECTION COVER SHOWCASE (ANIMATED VIDEO COVER)
   ========================================================================== */
.section-cover-showcase {
  margin-bottom: 50px;
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid var(--border-strong);
  background: #050505;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-cover-showcase:hover {
  box-shadow: 0 30px 80px rgba(0, 56, 255, 0.18);
}

.section-cover-video-wrapper {
  position: relative;
  width: 100%;
  height: clamp(340px, 46vh, 520px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
}

.section-cover-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.92) contrast(1.04);
  transition: filter 0.4s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-cover-showcase:hover .section-cover-video {
  filter: brightness(1) contrast(1.06);
  transform: scale(1.02);
}

.section-cover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 32px;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.65) 0%, rgba(5, 5, 5, 0.05) 40%, rgba(5, 5, 5, 0.25) 60%, rgba(5, 5, 5, 0.88) 100%);
  pointer-events: none;
  z-index: 2;
}

.cover-overlay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  pointer-events: auto;
}

.cover-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 56, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(0, 56, 255, 0.4);
}

.badge-dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
  animation: pulseDot 1.6s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

.cover-badge-category {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.cover-overlay-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  pointer-events: auto;
}

.cover-info-text {
  max-width: 680px;
}

.cover-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #60a5fa;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.cover-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.8vw, 2.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.cover-controls-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cover-sound-btn,
.cover-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  border: 1.5px solid var(--text);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 9px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.cover-play-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  font-size: 13px;
}

.cover-sound-btn:hover,
.cover-play-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .section-cover-video-wrapper {
    height: 380px;
  }
}

@media (max-width: 768px) {
  .section-cover-showcase {
    margin-bottom: 36px;
    border-radius: 14px;
  }
  .section-cover-video-wrapper {
    height: 270px;
  }
  .section-cover-overlay {
    padding: 16px 18px;
  }
  .cover-title {
    font-size: 1.25rem;
  }
  .cover-sound-btn,
  .cover-play-btn {
    min-height: 44px;
    font-size: 11px;
    padding: 8px 14px;
  }
  .cover-play-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
}

@media (max-width: 480px) {
  .section-cover-showcase {
    margin-bottom: 24px;
    border-radius: 12px;
  }
  .section-cover-video-wrapper {
    height: 210px;
  }
  .cover-title {
    font-size: 1.1rem;
    line-height: 1.2;
  }
  .cover-sound-btn span:last-child {
    display: none;
  }
  .cover-sound-btn {
    padding: 0;
    width: 44px;
    height: 44px;
    min-width: 44px;
    justify-content: center;
    border-radius: 50%;
  }
}

/* Carousel Controls Top Bar */
.carousel-controls-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.carousel-counter {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.carousel-counter-current {
  color: var(--blue);
  font-size: 38px;
  font-family: var(--font-heading);
}

.carousel-nav-arrows {
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel-arrow-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--text);
  background: #ffffff;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.carousel-arrow-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
  transform: scale(1.06);
}

.carousel-arrow-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  background: #ffffff;
  color: var(--text);
  border-color: var(--border);
}

/* Carousel Track Container */
.carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -36px;
  padding: 10px 36px 30px;
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  gap: 32px;
  width: max-content;
}

/* Individual Large Project Showcase Card */
.carousel-card {
  width: clamp(340px, 68vw, 840px);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  flex-shrink: 0;
}

.carousel-card:hover {
  border-color: var(--text);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.card-media-wrapper {
  position: relative;
  height: 380px;
  background: #050505;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-cover-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.95);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}

.card-fallback-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.5s ease;
}

.carousel-card:hover .card-cover-video {
  transform: scale(1.04);
  filter: brightness(1.04) contrast(1.04);
}

.carousel-card:hover .card-fallback-img {
  transform: scale(1.04);
}

.card-video-pill {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  background: rgba(5, 5, 5, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.2s, border-color 0.2s;
}

.carousel-card:hover .card-video-pill {
  background: rgba(0, 56, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.4);
}

.pill-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
  animation: pulseDot 1.6s infinite ease-in-out;
}

.carousel-card:hover .pill-pulse-dot {
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
}

.card-index-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(5, 5, 5, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-content-body {
  padding: 40px 36px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.card-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card-category-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--blue);
  text-transform: uppercase;
}

.card-stars-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.card-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.5vw, 2.3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}

.card-description {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.card-tags-cloud span {
  font-size: 11.5px;
  font-weight: 700;
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

.card-action-pills {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

@media (max-width: 1024px) {
  .card-media-wrapper {
    height: 320px;
  }
  .card-content-body {
    padding: 32px 28px 28px;
  }
}

@media (max-width: 768px) {
  .carousel-viewport {
    margin: 0 -20px;
    padding: 10px 20px 20px;
  }
  .carousel-card {
    width: calc(100vw - 48px);
    max-width: 520px;
  }
  .card-media-wrapper {
    height: 240px;
  }
  .card-content-body {
    padding: 24px 20px;
  }
  .card-heading {
    font-size: 1.45rem;
  }
}

@media (max-width: 480px) {
  .carousel-viewport {
    margin: 0 -16px;
    padding: 10px 16px 20px;
  }
  .carousel-card {
    width: calc(100vw - 32px);
    min-width: 280px;
  }
  .card-media-wrapper {
    height: 200px;
  }
  .card-content-body {
    padding: 20px 16px 18px;
  }
  .card-heading {
    font-size: 1.25rem;
  }
  .card-action-pills {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .card-action-pills a {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }
  .carousel-controls-bar {
    margin-bottom: 24px;
  }
  .carousel-counter {
    font-size: 20px;
  }
  .carousel-counter-current {
    font-size: 30px;
  }
}

/* ==========================================================================
   LIVE PROJECTS & PRODUCTION TOOLS — BENTO GRID & TOAST NOTIFICATION
   ========================================================================== */
.live-projects-section {
  background: var(--bg);
  border-bottom: 1.5px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* Bento Grid System: 12-column desktop grid collapsing to single column on mobile */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* Base Bento Card */
.bento-card {
  background: #ffffff;
  border: 1.5px solid var(--border-strong);
  border-radius: 14px;
  padding: clamp(24px, 3.5vw, 36px);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  justify-content: space-between;
  gap: 22px;
}

/* --- FLAGSHIP CARD: Word to HTML 1.0 (Interactive Hyperlink) --- */
.bento-card--flagship {
  grid-column: span 8;
  border: 2px solid var(--border-strong);
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  background: #ffffff;
  transition: background 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Live Badge with Pulsing Dot */
.bento-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.bento-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1.5px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #065f46;
  transition: all 0.3s ease;
}

.bento-live-badge--secondary {
  background: var(--blue-light);
  border-color: rgba(0, 56, 255, 0.25);
  color: var(--blue);
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: livePulseAnim 1.8s infinite;
  display: inline-block;
  flex-shrink: 0;
}

.live-pulse-dot--blue {
  background: var(--blue);
  box-shadow: 0 0 0 0 rgba(0, 56, 255, 0.7);
  animation: livePulseBlueAnim 1.8s infinite;
}

@keyframes livePulseAnim {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@keyframes livePulseBlueAnim {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 56, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(0, 56, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 56, 255, 0);
  }
}

.bento-link-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
  transition: color 0.3s ease;
}

.bento-domain-label {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bento-arrow-icon {
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.25s ease;
}

.bento-card--flagship:hover .bento-arrow-icon {
  transform: translate(3px, -3px);
}

/* Category & Title */
.bento-category-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

/* Oversized typography for Word to HTML 1.0 */
.bento-project-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 14px;
  transition: color 0.3s ease;
}

.bento-project-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 680px;
  transition: color 0.3s ease;
}

.bento-project-desc code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Interactive Pipeline Preview Graphic */
.bento-interactive-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 10px 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.bento-preview-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  flex: 1;
  min-width: 0;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.preview-format-icon {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: #050505;
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  transition: background 0.3s ease, color 0.3s ease;
}

.preview-format-icon--html {
  background: var(--blue);
}

.preview-format-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.preview-format-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.preview-format-meta {
  font-size: 11px;
  color: var(--text-subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.bento-preview-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--blue);
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.preview-transform-text {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* Footer & Tech Tags */
.bento-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  transition: border-color 0.3s ease;
}

.bento-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bento-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.bento-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--blue);
  color: #ffffff;
  border: 1.5px solid var(--blue);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-btn-arrow {
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.25s ease;
}

/* ==========================================================================
   FLAGSHIP HOVER INVERSION: SOLID PRIMARY BLUE BACKGROUND + WHITE TEXT
   Strictly adhering to user requirements
   ========================================================================== */
.live-card--wordtohtml:hover {
  background: var(--blue) !important;
  color: #ffffff !important;
  border-color: var(--blue) !important;
  box-shadow: 0 24px 60px rgba(0, 56, 255, 0.35);
  transform: translateY(-5px);
}

.live-card--wordtohtml:hover .bento-project-title,
.live-card--wordtohtml:hover .bento-project-desc,
.live-card--wordtohtml:hover .bento-category-tag,
.live-card--wordtohtml:hover .bento-link-indicator,
.live-card--wordtohtml:hover .bento-domain-label,
.live-card--wordtohtml:hover .bento-arrow-icon,
.live-card--wordtohtml:hover .preview-format-name,
.live-card--wordtohtml:hover .preview-format-meta,
.live-card--wordtohtml:hover .preview-transform-text,
.live-card--wordtohtml:hover .bento-live-badge,
.live-card--wordtohtml:hover .live-pulse-label {
  color: #ffffff !important;
}

.live-card--wordtohtml:hover .bento-project-desc code {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

.live-card--wordtohtml:hover .bento-card-footer {
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.live-card--wordtohtml:hover .bento-live-badge {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.live-card--wordtohtml:hover .live-pulse-dot {
  background: #ffffff !important;
  box-shadow: 0 0 10px #ffffff !important;
}

.live-card--wordtohtml:hover .bento-interactive-preview {
  background: rgba(0, 0, 0, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.live-card--wordtohtml:hover .bento-preview-pill {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
}

.live-card--wordtohtml:hover .preview-format-icon {
  background: #ffffff !important;
  color: var(--blue) !important;
}

.live-card--wordtohtml:hover .preview-format-icon--html {
  background: #ffffff !important;
  color: var(--blue) !important;
}

.live-card--wordtohtml:hover .bento-preview-arrow {
  color: #ffffff !important;
}

.live-card--wordtohtml:hover .bento-tag {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
}

.live-card--wordtohtml:hover .bento-cta-btn {
  background: #ffffff !important;
  color: var(--blue) !important;
  border-color: #ffffff !important;
}

/* --- BENTO CARD 2: Sidebar Telemetry --- */
.bento-card--sidebar {
  grid-column: span 4;
  background: #ffffff;
}

.bento-card--sidebar:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.bento-mono-stat {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.bento-sidebar-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 12px;
}

.bento-sidebar-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.bento-telemetry-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 10px;
  text-align: center;
}

.telemetry-metric-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-subtle);
  text-transform: uppercase;
}

.bento-mono-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-subtle);
  letter-spacing: 0.05em;
}

/* --- BENTO CARD 3 & 4: Tertiary & Quaternary --- */
.bento-card--tertiary {
  grid-column: span 6;
}

.bento-card--tertiary:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.bento-icon-symbol {
  font-size: 18px;
}

.bento-tertiary-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 10px;
}

.bento-tertiary-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.bento-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bento-micro-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--blue-light);
  border: 1px solid rgba(0, 56, 255, 0.2);
  color: var(--blue);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.bento-card--quaternary {
  grid-column: span 6;
}

.bento-card--quaternary:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.bento-endpoint-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 16px;
}

.endpoint-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  transition: all 0.2s ease;
}

.endpoint-link:hover {
  background: #050505;
  color: #ffffff;
  border-color: #050505;
}

.endpoint-status {
  font-weight: 700;
  color: #10b981;
}

.endpoint-link:hover .endpoint-status {
  color: #34d399;
}

/* ==========================================================================
   DELAYED SLIDE-IN POPUP (BRUTALIST TOAST NOTIFICATION)
   Fixed bottom-right corner · Slide-in animation · SessionStorage · Sound alert
   ========================================================================== */
.live-tool-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 10000;
  width: 400px;
  max-width: calc(100vw - 40px);
  pointer-events: none;
  transform: translateX(calc(100% + 50px));
  opacity: 0;
  transition: transform 0.48s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s ease;
}

.live-tool-toast.is-visible {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.live-tool-toast.is-dismissed {
  transform: translateX(calc(100% + 50px));
  opacity: 0;
  pointer-events: none;
}

.live-toast-frame {
  background: #050505;
  border: 2px solid var(--blue);
  box-shadow: 6px 6px 0px var(--blue), 0 24px 60px rgba(0, 0, 0, 0.45);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: 0; /* Sharp brutalist edges */
  position: relative;
  color: #ffffff;
}

.live-toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.live-toast-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.live-toast-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8);
  animation: livePulseAnim 1.8s infinite;
  display: inline-block;
  flex-shrink: 0;
}

.live-toast-dismiss-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #ffffff;
  border-radius: 0; /* sharp brutalist */
  cursor: pointer;
  transition: all 0.2s ease;
}

.live-toast-dismiss-btn:hover {
  background: #ffffff;
  color: #050505;
  border-color: #ffffff;
}

.live-toast-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.live-toast-title-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.live-toast-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.live-toast-domain {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #93c5fd;
  letter-spacing: 0.02em;
}

.live-toast-description {
  font-size: 13.5px;
  line-height: 1.55;
  color: #d1d5db;
}

.live-toast-description code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 2px 5px;
}

.live-toast-footer {
  padding-top: 4px;
}

.live-toast-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  background: var(--blue);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid var(--blue);
  border-radius: 0; /* Sharp brutalist edges */
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.live-toast-cta-btn:hover {
  background: #ffffff;
  color: var(--blue);
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 56, 255, 0.4);
}

.live-toast-cta-arrow {
  font-size: 15px;
  font-weight: 800;
  transition: transform 0.25s ease;
}

.live-toast-cta-btn:hover .live-toast-cta-arrow {
  transform: translate(2px, -2px);
}

/* Tablet & Mobile Bento Grid Responsive Breakpoints */
@media (max-width: 1024px) {
  .bento-card--flagship {
    grid-column: span 12;
  }
  .bento-card--sidebar {
    grid-column: span 12;
  }
  .bento-card--tertiary {
    grid-column: span 6;
  }
  .bento-card--quaternary {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .bento-card--flagship,
  .bento-card--sidebar,
  .bento-card--tertiary,
  .bento-card--quaternary {
    grid-column: span 1;
  }
  .bento-interactive-preview {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .bento-preview-arrow {
    flex-direction: row;
    justify-content: center;
  }
  .bento-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .bento-cta-btn {
    width: 100%;
    justify-content: center;
  }
  /* Toast on mobile: bottom-docked with proper viewport margins */
  .live-tool-toast {
    right: 16px;
    left: 16px;
    bottom: 16px;
    width: auto;
    max-width: calc(100vw - 32px);
    transform: translateY(calc(100% + 40px));
  }
  .live-tool-toast.is-visible {
    transform: translateY(0);
  }
  .live-tool-toast.is-dismissed {
    transform: translateY(calc(100% + 40px));
  }
  .live-toast-frame {
    padding: 18px;
    box-shadow: 4px 4px 0px var(--blue), 0 16px 40px rgba(0, 0, 0, 0.4);
  }
}

/* ==========================================================================
   SECONDARY REPOSITORIES GRID
   ========================================================================== */
.secondary-section {
  background: var(--bg);
  border-bottom: 1.5px solid var(--border);
}

.secondary-repos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.repo-card-brutalist {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.repo-card-brutalist:hover {
  transform: translateY(-4px);
  border-color: var(--text);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
}

.repo-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.repo-category-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--blue);
  text-transform: uppercase;
}

.repo-card-title {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 12px;
}

.repo-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.repo-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.repo-card-tags span {
  font-size: 11px;
  font-weight: 600;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.repo-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.repo-link-action {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 13px;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.repo-link-action:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .secondary-repos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .repo-card-brutalist {
    padding: 22px 18px;
  }
  .repo-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .repo-title {
    font-size: 17px;
  }
  .repo-link-action {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .audit-alert-brutalist {
    padding: 20px 18px;
  }
}

/* Audit Alert Box */
.audit-alert-brutalist {
  margin-top: 40px;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-left: 6px solid var(--blue);
  border-radius: 12px;
  padding: 24px 30px;
}

.audit-alert-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.audit-alert-body {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   EXPERIENCE SECTION (BRUTALIST TIMELINE)
   ========================================================================== */
.experience-section {
  background: #ffffff;
  border-bottom: 1.5px solid var(--border);
}

.experience-list {
  display: flex;
  flex-direction: column;
  border-top: 1.5px solid var(--text);
}

.experience-row {
  display: grid;
  grid-template-columns: 200px 1.2fr 1fr 60px;
  gap: 28px;
  padding: 38px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: background-color 0.2s;
}

.experience-row:hover {
  background: rgba(0, 56, 255, 0.02);
}

.exp-year {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: var(--blue);
}

.exp-company-block h3 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 6px;
}

.exp-role-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
}

.exp-details-block p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

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

.exp-tags span {
  font-size: 11px;
  font-weight: 700;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.exp-arrow-icon {
  font-size: 22px;
  color: var(--blue);
  font-weight: 700;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .experience-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px 0;
  }
  .exp-arrow-icon {
    display: none;
  }
}

@media (max-width: 480px) {
  .experience-row {
    padding: 22px 0;
  }
  .exp-period {
    font-size: 11px;
  }
  .exp-role-title {
    font-size: 18px;
  }
}

/* ==========================================================================
   CERTIFICATIONS & RESEARCH SECTION
   ========================================================================== */
.cert-section {
  background: var(--bg);
  border-bottom: 1.5px solid var(--border);
}

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

.cert-card-brutalist {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.cert-card-brutalist:hover {
  transform: translateY(-4px);
  border-color: var(--text);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
}

.cert-card-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 16px;
}

.cert-icon-squircle {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cert-title-container {
  flex-grow: 1;
}

.cert-card-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 6px;
}

.cert-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cert-org-text {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.cert-pill-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  color: var(--blue);
  background: var(--blue-light);
  border: 1px solid rgba(0, 56, 255, 0.25);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.cert-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 14px 0 18px;
}

.cert-skills-headline {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
}

.cert-skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.cert-skills-tags span {
  font-size: 11px;
  font-weight: 600;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.cert-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
}

.cert-verified-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--blue);
}

/* Research Highlight Card */
.research-highlight-card {
  margin-top: 36px;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-left: 6px solid var(--blue);
  border-radius: 14px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.research-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 6px 0 8px;
}

.research-venue {
  font-size: 14px;
  color: var(--text-muted);
}

.research-venue strong {
  color: var(--blue);
}

@media (max-width: 900px) {
  .cert-cards-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .cert-card-brutalist {
    padding: 24px 20px;
  }
  .research-highlight-card {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .cert-card-brutalist {
    padding: 20px 16px;
  }
  .cert-card-title {
    font-size: 17px;
  }
  .research-highlight-card {
    padding: 20px 16px;
  }
  .research-title {
    font-size: 18px;
  }
  .research-meta-split {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .cert-verify-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* ==========================================================================
   ABOUT SECTION & TOOLKIT
   ========================================================================== */
.about-section {
  background: #ffffff;
  border-bottom: 1.5px solid var(--border);
}

.about-split-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.about-copy-column p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.about-copy-column p strong {
  color: var(--text);
}

.about-credentials-box {
  margin-top: 40px;
  padding: 28px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
}

.about-cred-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.about-cred-text {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
}

.about-cred-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  display: block;
}

/* Toolkit */
.toolkit-section {
  background: var(--bg);
  border-bottom: 1.5px solid var(--border);
}

.toolkit-grid-brutalist {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.toolkit-card {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s;
}

.toolkit-card:hover {
  transform: translateY(-4px);
  border-color: var(--text);
}

.toolkit-card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 10px;
}

.toolkit-items-text {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 960px) {
  .about-split-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .toolkit-grid-brutalist {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .toolkit-grid-brutalist {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .about-copy-column p {
    font-size: 15.5px;
    line-height: 1.75;
  }
}

/* ==========================================================================
   HIGH-IMPACT DARK FOOTER (FULL-SCREEN MASSIVE TYPOGRAPHY)
   ========================================================================== */
.site-footer-brutalist {
  background: var(--dark-bg);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  padding: 140px 0 60px;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Floating background ghost typography */
.footer-ghost-typo {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: clamp(6rem, 16vw, 18rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.035);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.footer-inner-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 80px;
}

.footer-hero-cta {
  max-width: 1050px;
}

.footer-pretitle {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.footer-massive-headline {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7.8vw, 7.8rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 40px;
}

.footer-massive-headline em {
  font-style: normal;
  color: var(--blue);
}

.footer-lead-text {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: #a0a0a0;
  max-width: 650px;
  line-height: 1.7;
  margin-bottom: 44px;
}

.footer-action-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-giant-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 42px;
  background: var(--blue);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(0, 56, 255, 0.45);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s, box-shadow 0.25s;
}

.footer-giant-btn:hover {
  background: var(--blue-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 40px rgba(0, 56, 255, 0.55);
}

/* Footer Link Columns in Brackets */
.footer-meta-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-top: 60px;
  border-top: 1px solid var(--dark-border);
}

.footer-nav-col-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #888888;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link-item {
  font-size: 15px;
  font-weight: 600;
  color: #cccccc;
  transition: color 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 12px;
  color: #777777;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  padding: 8px 16px;
  background: #181818;
  border-radius: var(--radius-pill);
  transition: background-color 0.2s, color 0.2s;
}

.footer-back-to-top-btn:hover {
  background: var(--blue);
  color: #ffffff;
}

@media (max-width: 900px) {
  .site-footer-brutalist {
    padding: 100px 0 40px;
    min-height: auto;
  }
  .footer-inner-content {
    gap: 60px;
  }
  .footer-meta-nav-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .footer-ghost-typo {
    display: none;
  }
  .footer-massive-headline {
    font-size: clamp(2.0rem, 7.5vw, 3.4rem);
    margin-bottom: 28px;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .footer-lead-text {
    font-size: 1.05rem;
    margin-bottom: 32px;
  }
}

@media (max-width: 600px) {
  .site-footer-brutalist {
    padding: 80px 0 30px;
  }
  .footer-action-row {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .footer-giant-btn,
  .footer-outline-btn {
    width: 100%;
    min-height: 52px;
    justify-content: center;
    font-size: 14px;
    padding: 16px 24px;
  }
  .footer-meta-nav-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .footer-massive-headline {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }
  .footer-meta-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .footer-back-to-top-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* ==========================================================================
   CASE STUDY SPECIFIC STYLES (MATCHING ALEJANDROHA AESTHETIC)
   ========================================================================== */
.case-study-page {
  background-color: var(--bg);
}

.cs-hero {
  padding-top: 170px;
  padding-bottom: 60px;
  border-bottom: 1.5px solid var(--border);
}

.cs-breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.cs-header-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 50px;
  align-items: start;
}

.cs-title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 24px;
}

.cs-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

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

.cs-badge-verified {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-light);
  border: 1px solid rgba(0, 56, 255, 0.25);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
}

.cs-meta-card {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 30px;
}

.cs-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}

.cs-meta-row:last-child {
  border-bottom: none;
}

.cs-meta-row span {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 12px;
}

.cs-meta-row strong {
  color: var(--text);
  font-weight: 700;
  text-align: right;
}

.cs-media-section {
  padding: 50px 0 20px;
}

.cs-figure {
  margin: 0;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05);
}

.cs-figure img,
.cs-figure svg {
  width: 100%;
  height: auto;
  display: block;
}

.cs-figure figcaption {
  padding: 16px 24px;
  background: #ffffff;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.cs-figure figcaption code {
  font-family: var(--font-mono);
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--blue);
  font-weight: 700;
}

.cs-layout-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  align-items: start;
}

.cs-nav-sticky {
  position: sticky;
  top: 110px;
  background: #ffffff;
  padding: 24px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
}

.cs-side-heading {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--blue);
  margin-bottom: 16px;
}

.cs-toc {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cs-toc a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}

.cs-toc a:hover {
  color: var(--blue);
}

.cs-body {
  max-width: 820px;
}

.cs-block {
  margin-bottom: 60px;
  padding-bottom: 50px;
  border-bottom: 1.5px solid var(--border);
}

.cs-block:last-child {
  border-bottom: none;
}

.cs-block h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 24px;
}

.cs-block p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.cs-block ul {
  margin: 0 0 24px 20px;
}

.cs-block li {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.cs-diagram-box {
  background: var(--dark-bg);
  border-radius: 14px;
  padding: 32px;
  color: #ffffff;
  margin: 32px 0;
}

.cs-diagram-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 22px;
}

.cs-flow-diagram {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.cs-flow-step {
  background: #111111;
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  padding: 16px 18px;
  min-width: 145px;
  flex: 1;
}

.cs-step-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 6px;
}

.cs-flow-step h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.cs-flow-step p {
  margin: 0;
  font-size: 11.5px;
  color: #999999;
  line-height: 1.5;
}

.cs-flow-arrow {
  color: var(--blue);
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
}

.cs-diagram-subflow {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--dark-border);
  display: flex;
  align-items: center;
  gap: 16px;
}

.cs-subflow-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  background: var(--blue);
  color: #ffffff;
  border-radius: var(--radius-pill);
}

.cs-diagram-subflow p {
  margin: 0;
  font-size: 13px;
  color: #cccccc;
}

.cs-code-wrapper {
  background: var(--dark-bg);
  border-radius: 12px;
  overflow: hidden;
  margin: 28px 0;
  border: 1.5px solid var(--dark-border);
}

.cs-code-header {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px;
  background: #111111;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #888888;
  border-bottom: 1px solid var(--dark-border);
}

.cs-code-wrapper pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
}

.cs-code-wrapper code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: #e5e5e5;
}

.cs-feature-table {
  overflow-x: auto;
  margin: 28px 0;
}

.cs-feature-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.cs-feature-table th {
  background: var(--bg);
  padding: 14px 18px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--border);
}

.cs-feature-table td {
  padding: 14px 18px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  line-height: 1.6;
}

.cs-card-callout {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-left: 6px solid var(--blue);
  padding: 26px 30px;
  border-radius: 12px;
  margin: 28px 0;
}

.cs-card-callout h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
}

.cs-bottom-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1.5px solid var(--border);
  flex-wrap: wrap;
}

@media (max-width: 960px) {
  .cs-header-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .cs-layout-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .cs-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .cs-hero {
    padding-top: 120px;
    padding-bottom: 40px;
  }
  .cs-title {
    font-size: clamp(1.8rem, 5.5vw, 2.6rem);
  }
  .cs-subtitle {
    font-size: 1.05rem;
  }
  .cs-meta-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .cs-hero {
    padding-top: 96px;
    padding-bottom: 30px;
  }
  .cs-title {
    font-size: clamp(1.5rem, 6vw, 2.1rem);
  }
  .cs-meta-strip {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 16px;
  }
  .cs-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .cs-actions a {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }
  .cs-card-callout {
    padding: 20px 16px;
  }
  .cs-bottom-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .cs-bottom-nav a {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }
}

/* ==========================================================================
   LARGE DESKTOP MONITORS (1440PX+)
   ========================================================================== */
@media (min-width: 1441px) {
  :root {
    --container-max: 1440px;
  }
  .hero-main {
    max-width: 920px;
  }
  .carousel-card {
    width: 820px;
  }
}

/* ==========================================================================
   TOUCH TARGET OPTIMIZATION (MINIMUM 44X44PX TARGETS)
   ========================================================================== */
@media (pointer: coarse), (max-width: 768px) {
  button,
  .pill-btn-blue,
  .pill-btn-outline,
  .pill-btn-white,
  .carousel-arrow-btn,
  .mobile-nav-toggle,
  .cover-play-btn,
  .cover-sound-btn,
  .card-play-btn,
  .card-sound-btn,
  .footer-back-to-top-btn,
  .repo-link-action,
  .cert-verify-btn,
  .nav-link-item {
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .cover-play-btn,
  .cover-sound-btn {
    min-width: 44px;
  }
  .carousel-arrow-btn {
    min-width: 44px;
    min-height: 44px;
  }
}


