﻿/* ==========================================================================
   STUCKNOT â€” COMPLETE MASTER CSS & ANIMATIONS
   Merged from index.html & style-deferred.css
   ========================================================================== */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  --maroon: #AC0D30;
  --maroon-dark: #890320;
  --maroon-light: #c14a5d;
  --maroon-tint: rgba(172, 13, 48, 0.08);
  --cream: #FEFDFB;
  --cream-warm: #F8F4F0;
  --rose: #E6A8A8;
  --charcoal: #4F4F4D;
  --black: #000000;
  --silver: #D6D6D6;
  --white: #ffffff;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --bg-gradient-start: rgba(30, 2, 10, 0.92);
  --bg-gradient-start-darker: rgba(12, 0, 2, 0.98);
  --bg-gradient-mid: rgba(172, 13, 48, 0.85);
  --bg-gradient-mid-darker: rgba(123, 2, 30, 0.95);
  --bg-gradient-end: rgba(30, 2, 10, 0.92);
  --card-bg: var(--cream);
  --text-dark: var(--black);
  --text-sub: var(--charcoal);
  --text-muted: var(--silver);
  --text-light: rgba(255, 255, 255, 0.92);
  --text-light-sub: rgba(255, 255, 255, 0.82);
  --card-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
  --card-shadow-hover: 0 16px 45px rgba(0, 0, 0, 0.28);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.3s var(--ease-out);
  --transition-fast: 0.2s var(--ease-out);

  /* Spacing Scale */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;

  /* Structural Layout Variables */
  --container-padding-x: 40px;
  --section-gap: 96px;
  --nav-content-gap: 120px;

  /* Typography Scale */
  --text-h1: 64px;
  --text-h2: 42px;
  --text-h3: 24px;
  --text-body-lg: 18px;
  --text-body: 16px;
  --text-small: 13px;
  --text-xs: 11px;
  --text-micro: 9px;

  /* Font Weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-heavy: 800;

  /* Line Heights */
  --lh-heading: 1.1;
  --lh-body: 1.6;
}

@media (max-width: 768px) {
  :root {
    --container-padding-x: 24px;
    --section-gap: 64px;
    --nav-content-gap: 80px;
    --text-h1: 42px;
    --text-h2: 32px;
  }
}

/* ---------- 2. RESET & BODY ---------- */
*,
*:before,
*:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: .3px;
  color: var(--text-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Hide scrollbar but keep scroll functionality */
html,
body {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  background:
    linear-gradient(155deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.035) 0px, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 64px);
  pointer-events: none;
}
html.light-theme body::before {
  background:
    linear-gradient(155deg, #FEFEFA 0%, #F5F5F5 33%, #F8F8FF 66%, #FFFFFF 100%),
    repeating-linear-gradient(115deg, rgba(0, 0, 0, 0.035) 0px, rgba(0, 0, 0, 0.035) 1px, transparent 1px, transparent 64px);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

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

ul {
  list-style: none;
}

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

.section {
  padding: var(--section-gap) 0;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ---------- 3. TYPOGRAPHY ---------- */
.section-eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  font-style: italic;
  color: var(--white);
  opacity: .9;
  display: inline-block;
  margin-bottom: 15px;
  letter-spacing: .4px;
}

.section-heading {
  font-size: var(--text-h2);
  font-weight: var(--weight-semibold);
  line-height: var(--lh-heading);
  margin-bottom: 20px;
  max-width: 22ch;
  color: var(--white);
}

.accent-text {
  font-size: 16px;
  line-height: 1.75;
  font-weight: 300;
  max-width: 560px;
  position: relative;
  color: var(--text-light-sub);
}

/* ---------- 4. BUTTONS ---------- */
.base-button {
  cursor: pointer;
  height: 44px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
  color: var(--white);
  background-color: var(--maroon);
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  justify-content: center;
  border: 1px solid var(--maroon);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  min-width: 130px;
}

.base-button:hover {
  background-color: var(--maroon-dark);
  border-color: var(--maroon-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.base-button.secondary-btn {
  border-color: var(--white);
  color: var(--white);
  background-color: transparent;
}

.base-button.secondary-btn:hover {
  color: var(--white);
  background-color: var(--maroon-dark);
  border-color: var(--maroon-dark);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

html.light-theme .base-button.secondary-btn {
  border-color: var(--theme-text);
  color: var(--theme-text);
}

html.light-theme .base-button.secondary-btn:hover {
  background-color: var(--theme-text);
  color: var(--theme-body-bg);
  border-color: var(--theme-text);
}

.base-button.outline-maroon {
  border-color: var(--maroon);
  color: var(--maroon);
  background: transparent;
}

.base-button.outline-maroon:hover {
  background: var(--maroon);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(172, 13, 48, 0.25);
}

.base-button.btn-white {
  background: var(--cream);
  color: var(--maroon);
  border-color: var(--cream);
}

.base-button.btn-white:hover {
  background: var(--cream-warm);
  box-shadow: 0 6px 25px rgba(254, 253, 251, 0.2);
  transform: translateY(-2px);
}

/* ---------- 5. SCROLL REVEAL & STAGGER ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger-1 {
  transition-delay: .1s;
}

.reveal-stagger-2 {
  transition-delay: .2s;
}

.reveal-stagger-3 {
  transition-delay: .3s;
}

.reveal-stagger-4 {
  transition-delay: .4s;
}

.reveal-stagger-5 {
  transition-delay: .5s;
}

.reveal-stagger-6 {
  transition-delay: .6s;
}

/* ---------- 6. HEADER ---------- */
.header {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1100px;
  z-index: 999;
  padding: 16px 10px;
  border-radius: 50px;
  border: 1px solid transparent;
  transition: padding var(--transition-base), background var(--transition-base), backdrop-filter var(--transition-base), box-shadow var(--transition-base), border var(--transition-base), top var(--transition-base);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 60px;
}

.logo-img {
  background: url(assets/images/logo-svg-white.svg) no-repeat;
  width: 150px;
  display: block;
  height: 42px;
  background-size: 150px;
  transition: margin-left .35s ease, background-size .35s ease, height .35s ease, opacity .25s ease;
  margin-left: -60px;
}

.nav-links {
  display: flex;
  gap: 10px;
}

.nav-links a {
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  opacity: .85;
  padding: 8px 16px;
  border-radius: 30px;
  position: relative;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

.nav-links a.active {
  color: var(--maroon-light);
  opacity: 1;
}

.header-nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 16px;
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  /* Hidden on desktop by default */
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header.scrolled {
  top: 20px;
  padding: 12px 24px;
  background: rgba(15, 10, 12, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(172, 13, 48, 0.2);
  border: 1px solid rgba(172, 13, 48, 0.4);
}

.header.scrolled .logo-img {
  background-size: 120px;
  height: 34px;
  margin-left: 0px;
}

.header.scrolled .nav-links a {
  color: var(--silver);
}

.header.scrolled .nav-links a:hover {
  color: var(--white);
  background: rgba(172, 13, 48, 0.4);
  box-shadow: inset 0 0 0 1px rgba(172, 13, 48, 0.8);
}

.header.scrolled .base-button.secondary-btn {
  border-color: var(--maroon);
  color: var(--white);
  background: var(--maroon);
}

.header.scrolled .base-button.secondary-btn:hover {
  background: var(--rose);
  border-color: var(--rose);
}

/* --- HEADER: Light-Theme Overrides --- */
html.light-theme .logo-img {
  background-image: url(assets/images/logo-svg-red.svg);
}

html.light-theme .nav-links a {
  color: var(--charcoal);
}

html.light-theme .nav-links a:hover {
  color: var(--black);
  background: rgba(0, 0, 0, 0.06);
}

html.light-theme .nav-links a.active {
  color: var(--maroon);
  opacity: 1;
}

html.light-theme .header.scrolled {
  background: rgba(254, 253, 251, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

html.light-theme .header.scrolled .logo-img {
  background-image: url(assets/images/logo-svg-red.svg);
}

html.light-theme .header.scrolled .nav-links a {
  color: var(--charcoal);
}

html.light-theme .header.scrolled .nav-links a:hover {
  color: var(--maroon);
  background: rgba(172, 13, 48, 0.08);
  box-shadow: inset 0 0 0 1px rgba(172, 13, 48, 0.15);
}

html.light-theme .header.scrolled .base-button.secondary-btn {
  border-color: var(--maroon);
  color: var(--white);
  background: var(--maroon);
}

html.light-theme .header.scrolled .base-button.secondary-btn:hover {
  background: var(--maroon-dark);
  border-color: var(--maroon-dark);
}

/* ---------- 7. HERO SECTION ---------- */
.hero-bg {
  padding: 140px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
}

.audience-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  padding: 4px;
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeUp .6s ease forwards;
}

.toggle-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .3px;
  color: rgba(255, 255, 255, 0.75);
  background: transparent;
  border: none;
  border-radius: 24px;
  padding: 9px 20px;
  cursor: pointer;
  transition: all .25s ease;
}

.toggle-btn.active {
  background: var(--white);
  color: var(--maroon);
}

.trust-line {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.trust-line span {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: .3px;
}

.trust-line .divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.3);
}

.hero-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  padding: 0 24px;
}

.hero-content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.hero-text-col {
  flex: 1 1 55%;
  transition: opacity .18s ease;
}

.hero-text-col.fading {
  opacity: 0;
}

.hero-illustration-col {
  flex: 1 1 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding-top: 30px;
}

.hero-eyebrow {
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 22px;
  letter-spacing: .4px;
}

.hero-heading-text {
  color: var(--white);
  font-size: 52px;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 26px;
}

.hero-heading-text .line-2 {
  font-weight: 400;
  opacity: 0.92;
  display: block;
}

.hero-subheading-text {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  max-width: 52ch;
  margin-bottom: 38px;
}

.hero-header-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
  padding: 0 0 40px;
  min-height: 84px;
}

/* ---- Hero Animations ---- */
.hero-anim {
  position: relative;
  width: 420px;
  height: 420px;
}

.hero-anim-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(172, 13, 48, 0.25) 0%, transparent 70%);
  animation: glowPulse 4s ease-in-out infinite;
}

.hero-anim-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  transform: translate(-50%, -50%);
  border: 1.5px dashed rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  animation: slowSpin 30s linear infinite;
}

.orbit-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

.orbit-dot-1 {
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
}

.orbit-dot-2 {
  bottom: 20%;
  right: -5px;
}

.orbit-dot-3 {
  bottom: -5px;
  left: 30%;
}

.hero-float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 14px 16px;
  width: 180px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.card-1 {
  top: 20px;
  right: 0;
  animation: floatCard1 5s ease-in-out infinite;
}

.card-2 {
  bottom: 40px;
  left: 0;
  animation: floatCard2 6s ease-in-out infinite;
}

.float-card-bar {
  display: flex;
  gap: 5px;
  margin-bottom: 12px;
}

.float-card-bar .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.float-card-bar .dot.red {
  background: #ff5f56;
}

.float-card-bar .dot.yellow {
  background: #ffbd2e;
}

.float-card-bar .dot.green {
  background: #27c93f;
}

.float-card-line {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  margin-bottom: 7px;
}

.float-card-line.accent {
  background: rgba(172, 13, 48, 0.5);
}

.float-card-line.w40 {
  width: 40%;
}

.float-card-line.w50 {
  width: 50%;
}

.float-card-line.w60 {
  width: 60%;
}

.float-card-line.w70 {
  width: 70%;
}

.float-card-line.w80 {
  width: 80%;
}

.float-card-line.w85 {
  width: 85%;
}

.float-card-line.w90 {
  width: 90%;
}

.hero-anim-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero-anim-center::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 8px 50px rgba(172, 13, 48, 0.6);
  z-index: -1;
  animation: centerPulseHero 3s ease-in-out infinite;
}

.hero-anim-center svg {
  width: 28px;
  height: 28px;
}

.hero-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  color: var(--maroon);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.badge-1 {
  top: 80px;
  left: -10px;
  animation: floatBadge1 4s ease-in-out infinite;
}

.badge-2 {
  bottom: 80px;
  right: -10px;
  animation: floatBadge2 5s ease-in-out infinite;
}

/* ---- Summarise Details (Cards overlapping Hero) ---- */
.summarise-section {
  max-width: 100%;
  width: 100%;
  position: relative;
  padding: 0 0 120px;
}

.summarise-details {
  width: 100%;
  max-width: 1280px;
  margin: auto;
  position: absolute;
  left: 0;
  right: 0;
  top: -60px;
  padding: 0 24px;
}

#fade-cards {
  transition: opacity .18s ease;
}

#fade-cards.fading {
  opacity: 0;
}

.summarise-details-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.summary-card {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px 24px 28px;
  text-align: left;
  overflow: hidden;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.summary-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 40px rgba(255, 255, 255, 0.03);
}

.summary-card:hover::before {
  opacity: 1;
}

.summary-card-number {
  font-size: 42px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.06);
  position: absolute;
  top: 10px;
  right: 16px;
  line-height: 1;
  pointer-events: none;
  transition: color var(--transition-base);
}

.summary-card:hover .summary-card-number {
  color: rgba(255, 255, 255, 0.15);
}

.summary-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.summary-card:hover .summary-card-icon {
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
}

.summary-card-icon svg {
  width: 22px;
  height: 22px;
}

.summary-card-heading {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: .3px;
  margin-bottom: 8px;
  color: var(--white);
}

.summary-card-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.6;
  font-weight: 300;
}

/* ---------- 8. TECH STACK & PARTNER MARQUEES ---------- */
.tech-section {
  padding: 30px 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-flex-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.tech-text-wrap {
  flex-shrink: 0;
  max-width: 280px;
}

.tech-heading-compact {
  margin-bottom: 0;
  font-size: 24px;
}

.tech-marquee-wrapper,
.partners-marquee-wrapper {
  flex-grow: 1;
  width: auto;
  position: relative;
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.tech-marquee-track {
  display: flex;
  align-items: center;
  gap: 60px;
  animation: tech-marquee-scroll 35s linear infinite;
  padding-left: 60px;
}

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

.tech-icon-img {
  width: 54px;
  height: 84px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  border-radius: 12px;
  opacity: 1;
}

.tech-icon-img:hover {
  transform: scale(1.15) translateY(-4px);
}

.partners-section {
  padding: 60px 0 0 0;
  margin-top: 60px;
  overflow: hidden;
}

.partners-section+.our-story {
  padding-top: 80px;
}

.partners-marquee-track {
  display: flex;
  width: max-content;
  height: 160px;
  align-items: center;
  gap: 80px;
  animation: partners-marquee-scroll 18s linear infinite;
  padding-left: 60px;
  padding-bottom: 20px;
}

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

.partner-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 90px;
  background: var(--cream);
  border-radius: 12px;
  padding: 16px 24px;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.partner-badge:hover {
  transform: scale(1.05) translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.partner-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.partner-badge:hover .partner-logo-img {
  opacity: 1;
}

/* ---------- 9. BENTO BOX / OUR STORY ---------- */
.our-story {
  padding: 160px 0 80px;
  position: relative;
}

.our-story-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}

.bento-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px;
  overflow: hidden;
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.3), transparent 40%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.04), transparent 40%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.bento-card:hover::after {
  opacity: 1;
}

.bento-text {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  padding: 0 40px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento-text::before,
.bento-text::after {
  display: none;
}

.bento-text .section-heading {
  margin-bottom: 24px;
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bento-image {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  padding: 0;
  display: flex;
  transform: perspective(1000px);
  transform-style: preserve-3d;
}

.bento-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.bento-flywheel {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  display: block;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Flywheel */
.flywheel-wrap {
  display: flex;
  align-items: center;
  justify-content: safe center;
  width: 100%;
  height: 100%;
}

.flywheel {
  position: relative;
  width: 340px;
  height: 340px;
}

.flywheel-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: slowSpin 60s linear infinite;
}

.flywheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  z-index: 10;
  animation: centerPulse 4s ease-in-out infinite;
}

.flywheel-center::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  z-index: -1;
  animation: flywheelShadowPulse 4s ease-in-out infinite;
}

.flywheel-center-label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .4px;
  color: var(--maroon);
  line-height: 1.4;
  transition: opacity 0.2s ease;
}

.flywheel-node {
  position: absolute;
  width: 130px;
  text-align: center;
  cursor: pointer;
}

.flywheel-node .node-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.flywheel-node:hover .node-icon {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
  border-color: rgba(255, 255, 255, 0.3);
}

.flywheel-node .node-icon svg {
  width: 20px;
  height: 20px;
}

.flywheel-node .node-label {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--white);
}

.node-top {
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
}

.node-right {
  top: 50%;
  right: -46px;
  transform: translateY(-50%);
}

.node-bottom {
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
}

.node-left {
  top: 50%;
  left: -46px;
  transform: translateY(-50%);
}

/* ---------- 10. FEATURED WORK (HORIZONTAL ACCORDION) ---------- */
.h-accordion-grid {
  display: flex;
  gap: 16px;
  height: 500px;
  margin-top: 24px;
}

.work-card {
  position: relative;
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background: #111;
}

.work-card.active {
  flex: 4;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.work-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
  opacity: 0.7;
}

.work-card.active .work-card-bg {
  transform: scale(1.05);
  opacity: 1;
}

.work-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 10%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
  opacity: 0.8;
  transition: opacity 0.6s ease;
}

.work-card.active .work-card-overlay {
  opacity: 1;
}

.work-card-collapsed {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 40px;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.work-card.active .work-card-collapsed {
  opacity: 0;
  pointer-events: none;
}

.collapsed-title {
  display: none;
  color: var(--white);
  font-weight: 600;
  font-size: 20px;
  white-space: nowrap;
  transform: rotate(-90deg) translateX(50%);
  transform-origin: bottom center;
  letter-spacing: 1px;
}

.work-card-expanded {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.work-card.active .work-card-expanded {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
  pointer-events: auto;
}

.work-card-meta {
  color: var(--rose);
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.work-card-title {
  color: var(--white);
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.2;
}

.work-card-summary {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 24px;
  max-width: 400px;
}

.work-card-link {
  color: var(--white);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.work-card-link:hover svg {
  transform: translateX(4px);
}

.work-card-link svg {
  transition: transform 0.3s ease;
}

/* ---------- 11. PROGRAMS TABS & VISUALS ---------- */
.programs-tabs-container {
  display: flex;
  gap: 60px;
  margin-top: 40px;
}

.programs-tabs-menu {
  flex: 0 0 350px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.program-tab-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
  color: var(--silver);
}

.program-tab-btn:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.1);
}

.program-tab-btn.active {
  background: linear-gradient(175deg, #1a1a19 0%, #2d2d2b 40%, var(--charcoal) 100%);
  border-color: rgba(172, 13, 48, 0.4);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transform: translateX(10px);
  position: relative;
}

.program-tab-btn.active::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 10%;
  bottom: 10%;
  width: 3px;
  background: var(--rose);
  border-radius: 3px;
  box-shadow: 0 0 15px var(--rose);
}

.tab-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(172, 13, 48, 0.1);
  color: var(--rose);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-icon svg {
  width: 20px;
  height: 20px;
}

.tab-label {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.programs-tabs-content {
  flex: 1;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  background: linear-gradient(175deg, #1a1a19 0%, #2d2d2b 40%, var(--charcoal) 100%);
  padding: 60px;
  min-height: 400px;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.6), 0 10px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.programs-tabs-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 100% 0%, rgba(172, 13, 48, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.program-tab-pane {
  position: absolute;
  inset: 0;
  padding: 60px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.program-tab-pane.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pane-content-left {
  flex: 1;
  max-width: 440px;
  display: flex;
  flex-direction: column;
}

.pane-content-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
}

/* Custom Visuals: IDE */
.mock-ide {
  width: 100%;
  max-width: 400px;
  background: rgba(10, 10, 12, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}

.mock-ide-header {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 8px;
}

.mac-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.mac-dot:nth-child(1) {
  background: #ff5f56;
}

.mac-dot:nth-child(2) {
  background: #ffbd2e;
}

.mac-dot:nth-child(3) {
  background: #27c93f;
}

.mock-ide-body {
  padding: 20px;
  color: #a9b7c6;
}

.code-line {
  white-space: pre;
  overflow: hidden;
  border-right: 2px solid transparent;
}

.indent {
  margin-left: 20px;
}

.indent-2 {
  margin-left: 40px;
}

.indent-3 {
  margin-left: 60px;
}

.keyword {
  color: #cc7832;
}

.func {
  color: #ffc66d;
}

.tag {
  color: #e8bf6a;
}

.attr {
  color: #bababa;
}

.string {
  color: #6a8759;
}

.program-tab-pane.active .mock-ide-body .code-line {
  animation: typing 0.5s steps(30, end) backwards;
}

.program-tab-pane.active .mock-ide-body .code-line:nth-child(1) {
  animation-delay: 0.1s;
}

.program-tab-pane.active .mock-ide-body .code-line:nth-child(2) {
  animation-delay: 0.6s;
}

/* ... (animation delays pattern repeats) ... */

/* Custom Visuals: Orbital Graph */
.orbital-graph {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-center {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--maroon);
  border: 2px solid var(--rose);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  z-index: 10;
}

.orbit-center::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 50px rgba(172, 13, 48, 0.8);
  z-index: -1;
}

.program-tab-pane.active .orbit-center {
  animation: pulse-center 3s infinite alternate;
}

.program-tab-pane.active .orbit-center::before {
  animation: orbitShadowPulse 3s infinite alternate;
}

.orbit-ring {
  position: absolute;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

.program-tab-pane.active .orbit-ring {
  animation: spin linear infinite;
}

.ring-1 {
  width: 120px;
  height: 120px;
  animation-duration: 20s;
}

.ring-2 {
  width: 200px;
  height: 200px;
  animation-duration: 35s;
  animation-direction: reverse;
}

.ring-3 {
  width: 280px;
  height: 280px;
  animation-duration: 50s;
}

.orbit-planet {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--rose);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--rose);
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
}

.p2 {
  top: auto;
  bottom: -6px;
  background: #fff;
  box-shadow: 0 0 15px #fff;
}

.p3 {
  top: 50%;
  left: -6px;
  transform: translateY(-50%);
}

.p4 {
  top: 50%;
  left: auto;
  right: -6px;
  transform: translateY(-50%);
  background: var(--cream);
  box-shadow: 0 0 15px var(--cream);
}

/* Custom Visuals: Contrib Matrix */
.contrib-matrix {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  width: 100%;
  max-width: 240px;
}

.contrib-cell {
  aspect-ratio: 1;
  background: var(--maroon);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.program-tab-pane.active .contrib-cell {
  animation: flicker 4s infinite alternate;
}

.contrib-cell:nth-child(3n) {
  animation-delay: 0.2s;
}

.contrib-cell:nth-child(5n) {
  animation-delay: 0.5s;
  background: var(--rose);
}

.contrib-cell:nth-child(7n) {
  animation-delay: 1.2s;
}

.pane-meta {
  color: var(--rose);
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.pane-title {
  color: var(--white);
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 24px;
  line-height: 1;
}

.pane-desc {
  color: var(--silver);
  font-size: 18px;
  line-height: 1.6;
  max-width: 500px;
}

.pane-btn {
  margin-top: 21px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.pane-btn:hover {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

/* ---------- 12. BLOG & OPEN SOURCE CARDS ---------- */
.oss-blog-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  margin-top: 24px;
}

.list-block-heading {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 18px;
  color: var(--white);
  opacity: .9;
}

.blog-card,
.repo-card {
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  color: var(--white);
  border-radius: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.blog-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.blog-card:hover,
.repo-card:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, rgba(172, 13, 48, 0.15), rgba(255, 255, 255, 0.08));
  border-color: rgba(230, 168, 168, 0.3);
  box-shadow: 0 12px 36px rgba(172, 13, 48, 0.2);
}

.blog-card-content {
  flex: 1;
  min-width: 0;
}

.blog-card-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--cream);
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-card-date {
  font-size: 12px;
  color: var(--silver);
}

.blog-card-read-time {
  font-size: 11px;
  font-weight: 500;
  color: var(--rose);
  background: rgba(230, 168, 168, 0.15);
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

.blog-card-arrow {
  font-size: 18px;
  color: var(--rose);
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.blog-card:hover .blog-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

.repo-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 12px;
}

.repo-name {
  font-family: 'Courier New', Courier, monospace;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--cream-warm);
}

.repo-stars-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--rose);
  background: rgba(230, 168, 168, 0.15);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.repo-desc {
  font-size: 13px;
  color: var(--silver);
  font-weight: 300;
  line-height: 1.5;
}

/* ---------- 13. ACHIEVEMENTS PROGRESS STEPPER ---------- */
.progress-stepper {
  position: relative;
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.stepper-cards {
  display: flex;
  gap: 20px;
  position: relative;
}

.stepper-card {
  flex: 1;
  background: rgba(25, 25, 25, 0.4);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  opacity: 0.6;
  transform: translateY(0);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 10px 30px rgba(0, 0, 0, 0.2);
  min-height: 220px;
  overflow: hidden;
}

.stepper-card::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 150px;
  height: 150px;
  background: var(--rose);
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.stepper-card:hover {
  opacity: 0.8;
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 15px 40px rgba(0, 0, 0, 0.3);
}

.stepper-card:hover::before {
  opacity: 0.1;
}

.stepper-card.active {
  opacity: 1;
  transform: translateY(-10px);
  border-color: rgba(172, 13, 48, 0.6);
  background: linear-gradient(175deg, rgba(26, 26, 25, 0.8) 0%, rgba(45, 45, 43, 0.8) 40%, rgba(20, 20, 20, 0.8) 100%);
  box-shadow: inset 0 0 0 1px rgba(172, 13, 48, 0.2), 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(172, 13, 48, 0.15);
}

.stepper-card.active::before {
  opacity: 0.25;
}

.stepper-year {
  font-size: 14px;
  font-weight: 700;
  color: var(--rose);
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS FIXES (PHASE 2 & 3)
   ========================================================================== */
@media (max-width: 900px) {
  .community-hero {
    flex-direction: column;
    text-align: center;
  }
  


  .ritual-step {
    flex-direction: column;
  }

  .work-hero {
    flex-direction: column;
    gap: 40px;
    padding: 60px 0 40px;
  }

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

  .card-wide {
    flex-direction: column;
  }

  .learn-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .learn-filters::-webkit-scrollbar {
    display: none;
  }

  .page-hero-desc {
    font-size: 16px;
  }
}

.stepper-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--white);
  line-height: 1.2;
}

.stepper-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--silver);
  font-weight: 300;
}

.stepper-track-wrap {
  position: relative;
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
}

.stepper-track {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.stepper-progress {
  position: absolute;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--maroon) 0%, var(--rose) 100%);
  border-radius: 2px;
  width: 0%;
  box-shadow: 0 0 10px rgba(172, 13, 48, 0.5);
  z-index: 1;
}

.stepper-markers {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  width: 100%;
}

.stepper-marker {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 40px;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.stepper-marker-dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.3s ease;
  margin-right: -6px;
}

.stepper-marker.active .stepper-marker-dot {
  background: var(--rose);
  transform: scale(1.5);
  box-shadow: 0 0 15px rgba(230, 168, 168, 0.6);
}

/* ---------- 14. TESTIMONIALS ---------- */
.testimonial {
  text-align: center;
}

.testimonial .section-heading {
  margin: 0 auto 40px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: start;
}

.testimonial-card:nth-child(2) {
  margin-top: 40px;
}

.testimonial-card {
  background: linear-gradient(165deg, rgba(25, 25, 25, 0.4) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  color: var(--white);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.4s ease;
  overflow: hidden;
}

.testimonial-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rose), var(--maroon));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 50px rgba(172, 13, 48, 0.15);
  border-color: rgba(230, 168, 168, 0.2);
}

.testimonial-card:hover::after {
  opacity: 1;
}

.testimonial-quote-mark {
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, rgba(230, 168, 168, 0.4), rgba(172, 13, 48, 0.4));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: Georgia, 'Times New Roman', serif;
  user-select: none;
  opacity: 0.5;
}

.testimonial-type {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--cream);
  display: inline-block;
  margin-bottom: 16px;
  align-self: flex-start;
  position: relative;
  z-index: 1;
}

.testimonial-quote {
  font-size: 15px;
  line-height: 1.7;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 24px;
  font-style: italic;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--rose));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(172, 13, 48, 0.4);
}

.testimonial-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--cream-warm);
}

.testimonial-role {
  font-size: 12px;
  color: var(--silver);
  margin-top: 2px;
}

/* ---------- 15. CONTACT & COMMAND CENTER TERMINAL ---------- */
.contact-us {
  padding: 110px 0;
}

.contact-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 100px;
}

.contact-left {
  flex: 1;
  min-width: 300px;
  max-width: 560px;
}

.contact-desc {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
}

.contact-buttons {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.contact-illustration {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 300px;
}

.contact-illustration img {
  max-width: 100%;
  height: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.command-center-visual {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 320px;
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.cc-window {
  width: 100%;
  height: 100%;
  background: rgba(15, 10, 12, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  transform: rotateY(-15deg) rotateX(5deg) translateZ(0);
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.5s ease;
}

.cc-window:hover {
  transform: rotateY(-5deg) rotateX(2deg) translateZ(20px);
}

.cc-header {
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
}

.cc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.cc-dot.close {
  background: #ff5f56;
}

.cc-dot.min {
  background: #ffbd2e;
}

.cc-dot.max {
  background: #27c93f;
}

.cc-body {
  padding: 24px;
  flex: 1;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--silver);
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cc-prompt {
  color: var(--rose);
  margin-right: 8px;
}

.cc-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--white);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 2px;
}

.cc-line {
  white-space: nowrap;
  overflow: hidden;
  animation: typing-cc 1.5s steps(40, end) backwards;
  max-width: 100%;
}

.cc-line.delay-1 {
  animation-delay: 1.5s;
}

.cc-line.delay-2 {
  animation-delay: 3s;
}

.cc-fragment {
  position: absolute;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform-style: preserve-3d;
  animation: float-cc 6s ease-in-out infinite;
}

.frag-1 {
  width: 60px;
  height: 60px;
  top: 10%;
  right: -20px;
  animation-delay: 0s;
}

.frag-2 {
  width: 50px;
  height: 50px;
  bottom: 15%;
  left: -20px;
  animation-delay: -3s;
}

/* ---------- 16. FOOTER ---------- */
.footer {
  padding: 0;
  margin-top: 0;
  background: linear-gradient(175deg, #1a1a19 0%, #2d2d2b 40%, var(--charcoal) 100%);
  position: relative;
  z-index: 10;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--maroon), var(--rose), var(--maroon));
}

.footer::after {
  content: '';
  position: absolute;
  bottom: -200px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(172, 13, 48, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer .logo {
  font-size: 19px;
}

.footer-main {
  padding: 72px 0 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 80px;
  margin-bottom: 0;
}

.footer-brand {
  flex: 0 0 auto;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 32px;
  background-color: rgba(255, 255, 255, 0.02);
}

.footer-brand-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  max-width: 100%;
}

.footer-col-heading {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: var(--rose);
}

.footer-links {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex: 1; /* allow it to take remaining space so columns spread evenly */
  gap: 30px;
  margin-top: 10px; /* visually aligns with SVG padding */
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13.5px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-links a::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 1px;
  background: var(--rose);
  transition: width var(--transition-base);
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer-links a:hover::before {
  width: 12px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  color: rgba(255, 255, 255, 0.7);
}

.footer-social-link:hover {
  background: var(--maroon);
  border-color: var(--maroon);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(172, 13, 48, 0.35);
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
}

.footer-newsletter-desc {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  margin-bottom: 16px;
}

.footer-newsletter-form {
  display: flex;
  gap: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color var(--transition-base);
}

.footer-newsletter-form:focus-within {
  border-color: var(--rose);
}

.footer-newsletter-input {
  flex: 1;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  outline: none;
}

.footer-newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.footer-newsletter-btn {
  padding: 12px 20px;
  background: var(--maroon);
  color: var(--white);
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition-base);
  white-space: nowrap;
}

.footer-newsletter-btn:hover {
  background: var(--maroon-dark);
}

.footer-newsletter-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--rose);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-dark));
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(172, 13, 48, 0.35);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 998;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  box-shadow: 0 8px 28px rgba(172, 13, 48, 0.5);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ---------- 17. CONTACT V2 & V3 ALTERNATIVES ---------- */
.v2-ide {
  background: #0d0d0f;
  min-height: 100vh;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ide-window {
  width: 100%;
  max-width: 1000px;
  background: #151518;
  border: 1px solid #333;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
  font-family: var(--font-mono);
}

.ide-header {
  background: #0a0a0c;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #333;
}

.ide-tabs {
  display: flex;
  gap: 1px;
  margin-left: 30px;
}

.ide-tab {
  background: #151518;
  color: #fff;
  padding: 8px 24px;
  font-size: 13px;
  border-top: 2px solid var(--maroon);
}

.ide-tab.inactive {
  background: #0a0a0c;
  color: #666;
  border-top: 2px solid transparent;
  cursor: pointer;
}

.ide-body {
  display: flex;
  min-height: 450px;
}

.ide-numbers {
  padding: 30px 15px;
  color: #444;
  text-align: right;
  font-size: 15px;
  line-height: 2;
  user-select: none;
  border-right: 1px solid #222;
  background: #111;
}

.ide-code {
  padding: 30px;
  font-size: 15px;
  line-height: 2;
  color: #c9d1d9;
  flex: 1;
}

.token-keyword {
  color: #ff7b72;
}

.token-string {
  color: #a5d6ff;
}

.token-function {
  color: #d2a8ff;
}

.token-comment {
  color: #8b949e;
}

.ide-input-inline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #444;
  color: #a5d6ff;
  font-family: var(--font-mono);
  font-size: 15px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 10px;
  width: 250px;
  outline: none;
}

.ide-input-inline:focus {
  border-color: #a5d6ff;
  background: rgba(165, 214, 255, 0.1);
}

.ide-input-inline::placeholder {
  color: rgba(165, 214, 255, 0.3);
}

.v3-glass {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: linear-gradient(155deg, rgba(30, 2, 10, 0.95), rgba(172, 13, 48, 0.9));
  overflow: hidden;
}

.v3-blob {
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(172, 13, 48, 0.5) 0%, transparent 60%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  filter: blur(50px);
  animation: pulse-blob 8s infinite alternate;
}

@keyframes pulse-blob {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
}

.v3-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  width: 100%;
  max-width: 800px;
  padding: 80px 60px;
  position: relative;
  z-index: 10;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  text-align: center;
}

.v3-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 50px;
}

.v3-opt-btn {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 40px 20px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: inset 0 0 0 1px transparent;
}

.v3-opt-btn:hover {
  background: rgba(172, 13, 48, 0.2);
  border-color: rgba(172, 13, 48, 0.6);
  transform: translateY(-6px);
  box-shadow: inset 0 0 0 1px rgba(172, 13, 48, 0.5), 0 10px 30px rgba(0, 0, 0, 0.2);
}

.v3-icon {
  margin-bottom: 20px;
  color: var(--white);
}

.v3-opt-btn:hover .v3-icon {
  color: var(--maroon-light);
}

/* ---------- 18. ALL KEYFRAMES ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: .6;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
  }
}

@keyframes slowSpin {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes floatCard1 {

  0%,
  100% {
    transform: translateY(0) rotate(2deg);
  }

  50% {
    transform: translateY(-12px) rotate(0deg);
  }
}

@keyframes floatCard2 {

  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

@keyframes centerPulseHero {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes floatBadge1 {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes floatBadge2 {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes tech-marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 20px));
  }
}

@keyframes partners-marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-25% + 5px));
  }
}

@keyframes centerPulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.05);
  }
}

@keyframes flywheelShadowPulse {

  0%,
  100% {
    opacity: 0.72;
  }

  50% {
    opacity: 1;
  }
}

@keyframes typing {
  from {
    max-width: 0;
  }

  to {
    max-width: 100%;
  }
}

@keyframes pulse-center {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}

@keyframes orbitShadowPulse {
  0% {
    opacity: 0.375;
  }

  100% {
    opacity: 1;
  }
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes flicker {

  0%,
  100% {
    opacity: 0.1;
  }

  50% {
    opacity: 0.8;
  }
}

@keyframes typing-cc {
  from {
    clip-path: inset(0 100% 0 0);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@keyframes float-cc {

  0%,
  100% {
    transform: translateY(0) translateZ(40px);
  }

  50% {
    transform: translateY(-15px) translateZ(40px);
  }
}

/* ---------- 19. RESPONSIVE MEDIA QUERIES ---------- */
@media (min-width: 1600px) {
  .container {
    max-width: 1440px;
  }

  .hero-header {
    max-width: 1440px;
  }

  .hero-heading-text {
    font-size: 58px;
  }

  .hero-anim {
    width: 480px;
    height: 480px;
  }
}

@media (min-width: 2560px) {
  .container {
    max-width: 1920px;
  }

  .hero-header {
    max-width: 1920px;
  }

  .hero-heading-text {
    font-size: 64px;
  }

  .hero-subheading-text {
    font-size: 18px;
  }

  .hero-anim {
    width: 540px;
    height: 540px;
  }

  .footer-inner {
    gap: 64px;
  }
}

@media (max-width: 1200px) {
  .hero-content-wrapper {
    gap: 30px;
  }

  .hero-heading-text {
    font-size: 42px;
  }

  .hero-anim {
    width: 340px;
    height: 340px;
  }

  .hero-float-card {
    width: 150px;
    padding: 10px 12px;
  }

  .hero-anim-orbit {
    width: 260px;
    height: 260px;
  }

  .hero-anim-center {
    width: 60px;
    height: 60px;
  }

  .hero-anim-center svg {
    width: 22px;
    height: 22px;
  }

  .tech-icon-img {
    width: 54px;
    height: 54px;
  }

  .logo-img {
    width: 140px;
    height: 38px;
    background-size: 140px;
    margin-left: 0;
  }

  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-card:nth-child(2) {
    margin-top: 0;
  }
}

@media (max-width: 992px) {
  .tech-flex-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .tech-text-wrap {
    max-width: 100%;
  }

  .h-accordion-grid {
    flex-direction: column;
    height: 700px;
  }

  .work-card-collapsed {
    align-items: center;
    padding-bottom: 0;
  }

  .collapsed-title {
    transform: none;
    padding-bottom: 0;
    align-self: center;
    margin-bottom: 0;
  }

  .work-card-expanded {
    padding: 24px;
  }

  .work-card-title {
    font-size: 24px;
  }

  .programs-tabs-container {
    flex-direction: column;
    gap: 24px;
  }

  .programs-tabs-menu {
    flex: auto;
    flex-direction: row;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .programs-tabs-menu::-webkit-scrollbar {
    display: none;
  }

  .program-tab-btn {
    padding: 16px;
    flex: 0 0 85%;
    scroll-snap-align: center;
  }

  .program-tab-btn.active {
    transform: translateY(-4px);
  }

  .programs-tabs-content {
    display: block;
    min-height: auto;
    padding: 0;
  }

  .program-tab-pane {
    position: absolute;
    inset: 0;
    padding: 30px;
    flex-direction: column;
    align-items: flex-start;
  }

  .program-tab-pane.active {
    position: relative;
  }

  .pane-content-right {
    margin-top: 40px;
    width: 100%;
    justify-content: center;
  }

  .mock-ide,
  .contrib-matrix {
    max-width: 100%;
  }

  .progress-stepper {
    margin-top: 40px;
    gap: 20px;
  }

  .stepper-cards {
    flex-direction: column;
    height: auto;
  }

  .stepper-card {
    transform: none !important;
    opacity: 1;
    margin-bottom: 10px;
  }

  .stepper-track-wrap {
    display: none;
  }
}

@media (max-width: 900px) {
  body.menu-open {
    overflow: hidden;
  }

  /* --- MOBILE MENU BACKDROP --- */
  .header::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 999;
  }
  body.menu-open .header::after {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* --- MOBILE MENU DRAWER --- */
  .header-nav-wrapper {
    position: fixed;
    top: 10px;
    right: -100%;
    width: calc(100vw - 20px);
    max-width: 320px;
    height: auto;
    background: #181215;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    flex-direction: column;
    align-items: flex-start;
    padding: 70px 32px 32px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    z-index: 1000;
    box-shadow: -10px 15px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
  }
  
  html.light-theme .header-nav-wrapper {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: -10px 15px 40px rgba(0, 0, 0, 0.1);
  }

  .header-nav-wrapper.open {
    right: 10px;
    opacity: 1;
  }

  /* --- MOBILE MENU BUTTON (HAMBURGER / CLOSE) --- */
  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
    transition: transform 0.3s ease;
  }
  
  body.menu-open .mobile-menu-btn {
    position: fixed;
    top: 36px;
    right: 36px;
  }

  .hamburger-line {
    width: 100%;
    height: 2px;
    background: var(--white);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
  }

  .header.scrolled .hamburger-line {
    background: var(--silver);
  }

  .mobile-menu-btn.active .hamburger-line {
    background: var(--white);
  }
  
  html.light-theme .mobile-menu-btn.active .hamburger-line {
    background: var(--black);
  }

  .mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  html.light-theme .hamburger-line,
  html.light-theme .header.scrolled .hamburger-line {
    background: var(--charcoal);
  }

  /* --- MOBILE NAVIGATION LINKS --- */
  .header .nav-links {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
    width: 100%;
    margin-bottom: 0;
  }

  .header .nav-links a {
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
    opacity: 0.8;
    padding: 4px 0;
    transition: all 0.3s ease;
    text-decoration: none;
  }
  
  html.light-theme .header .nav-links a {
    color: var(--black);
  }

  .header .nav-links a::after {
    display: none;
  }

  .header .nav-links a:hover,
  .header .nav-links a:active,
  html.light-theme .header.scrolled .nav-links a:hover {
    opacity: 1;
    transform: translateX(8px);
    background: transparent;
    box-shadow: none;
    color: var(--white);
  }
  
  html.light-theme .header .nav-links a:hover,
  html.light-theme .header .nav-links a:active {
    color: var(--maroon);
  }

  .header .nav-links a.active,
  html.light-theme .header .nav-links a.active {
    color: var(--maroon);
    opacity: 1;
  }

  /* --- MOBILE CALL TO ACTION --- */
  .header-right {
    width: 100%;
    margin-top: auto;
    justify-content: stretch;
  }

  .header-right .secondary-btn {
    width: 100%;
    border-color: var(--maroon);
    color: var(--maroon);
    font-size: 15px;
    font-weight: 600;
    height: 48px;
    border-radius: 12px;
  }

  .header-right .secondary-btn:hover {
    background: var(--maroon);
    color: var(--white);
  }

  .hero-bg {
    padding: 130px 0 0;
    min-height: 0;
  }

  .hero-content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .hero-text-col {
    flex: 1 1 100%;
  }

  .hero-illustration-col {
    flex: 1 1 100%;
    padding-top: 0;
    align-self: center;
  }

  .hero-anim {
    width: 300px;
    height: 300px;
  }

  .hero-float-card {
    width: 140px;
    padding: 10px 12px;
    font-size: 11px;
  }

  .hero-anim-orbit {
    width: 230px;
    height: 230px;
  }

  .hero-anim-center {
    width: 54px;
    height: 54px;
  }

  .hero-anim-center svg {
    width: 20px;
    height: 20px;
  }

  .hero-badge {
    font-size: 10px;
    padding: 6px 10px;
  }

  .hero-heading-text {
    font-size: 36px;
  }

  .hero-subheading-text {
    max-width: 100%;
  }

  .hero-header-buttons {
    flex-direction: column;
    margin-bottom: 30px;
    padding-bottom: 10px;
    min-height: 114px;
  }

  .hero-header-buttons .base-button {
    width: 100%;
    max-width: 300px;
  }

  .summarise-details {
    position: static;
    margin-top: -70px;
    padding: 0 16px;
  }

  .summarise-section {
    padding: 0 0 40px;
  }

  .summarise-details-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .summary-card {
    padding: 24px 20px 22px;
  }

  .summary-card-number {
    font-size: 34px;
  }

  .our-story-bento {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .bento-text,
  .bento-image,
  .bento-flywheel {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .bento-image {
    height: 300px;
    display: inline-block;
    justify-content: center;
  }

  .bento-text {
    padding: 0 20px;
  }

  .our-story {
    padding: 140px 0 60px;
  }

  .oss-blog-inner {
    grid-template-columns: 1fr;
  }

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

  .testimonial-card:nth-child(2) {
    margin-top: 0;
  }

  .section {
    padding: 80px 0;
  }

  .tech-section {
    padding: 40px 0;
  }

  .section-heading {
    font-size: 30px;
    max-width: 100%;
  }

  .flywheel-wrap {
    display: flex;
  }

  .flywheel {
    transform: scale(0.85);
    transform-origin: center center;
  }

  .bento-flywheel {
    padding: 20px 0;
  }

  .contact-us {
    padding: 70px 0;
  }

  .contact-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-left {
    max-width: 100%;
  }

  .contact-illustration {
    max-width: 100%;
    margin-top: 20px;
  }

  .tech-icon-img {
    width: 46px;
    height: 46px;
  }

  .tech-marquee-track {
    gap: 30px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 40px;
  }
  
  .footer-links {
    flex-wrap: wrap;
    gap: 40px;
  }
  
  .footer-col {
    flex: 1 1 120px;
  }

  .footer-brand-desc {
    max-width: 100%;
  }

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

  .footer-bottom-links {
    justify-content: center;
  }

  .v1-split {
    flex-direction: column;
  }

  .v1-half {
    padding: 60px 24px;
  }

  .ide-numbers {
    display: none;
  }

  .ide-code {
    padding: 20px;
  }

  .v3-card {
    padding: 50px 24px;
  }

  .v3-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .audience-toggle {
    margin-bottom: 20px;
  }

  .logo-img {
    width: 140px;
    height: 38px;
    background-size: 140px;
    margin-left: 0;
  }

  .card-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .command-center-visual {
    perspective: 800px;
    height: 260px;
  }

  .cc-window {
    transform: rotateY(0) rotateX(0);
  }

  .cc-window:hover {
    transform: rotateY(0) rotateX(0);
  }

  .frag-1,
  .frag-2 {
    display: none;
  }
}

@media (max-width: 540px) {
  :root {
    --container-padding-x: 16px;
  }

  .hero-anim {
    width: 240px;
    height: 240px;
  }

  .hero-float-card {
    width: 120px;
    font-size: 9px;
    padding: 8px 10px;
  }

  .hero-float-card .float-card-line {
    height: 4px;
    margin-bottom: 5px;
  }

  .hero-float-card .float-card-bar .dot {
    width: 5px;
    height: 5px;
  }

  .hero-anim-orbit {
    width: 180px;
    height: 180px;
  }

  .hero-anim-center {
    width: 46px;
    height: 46px;
  }

  .hero-anim-center svg {
    width: 18px;
    height: 18px;
  }

  .hero-badge {
    font-size: 9px;
    padding: 5px 8px;
  }

  .hero-header-buttons .base-button {
    width: 100%;
    max-width: 350px;
  }

  .trust-line {
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 8px;
    font-size: 11px;
  }

  .trust-line .divider {
    display: none;
  }

  .logo-img {
    width: 130px;
    height: 36px;
    background-size: 130px;
    margin-left: 0;
  }

  .hero-bg {
    padding: 120px 0 0;
  }

  .hero-header {
    padding: 0 16px;
  }

  .hero-heading-text {
    font-size: 28px;
  }

  .hero-subheading-text {
    font-size: 14px;
  }

  .badge-1 {
    top: 50px;
    left: -5px;
  }

  .badge-2 {
    bottom: 50px;
    right: -5px;
  }

  .orbit-dot {
    width: 6px;
    height: 6px;
  }

  .audience-toggle {
    margin-bottom: 20px;
  }

  .toggle-btn {
    font-size: 12px;
    padding: 7px 14px;
  }

  .summarise-details {
    padding: 0 8px;
    margin-top: -50px;
  }

  .summarise-details-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .summary-card {
    padding: 20px 18px 18px;
  }

  .summary-card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
  }

  .summary-card-icon svg {
    width: 18px;
    height: 18px;
  }

  .summary-card-heading {
    font-size: 14px;
  }

  .summary-card-text {
    font-size: 12px;
  }

  .summary-card-number {
    font-size: 28px;
  }

  .our-story {
    padding: 100px 0 40px;
  }

  .our-story-bento {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bento-text {
    grid-column: 1 / 2;
    padding: 30px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
  }

  .bento-card {
    padding: 24px;
  }

  .bento-image {
    grid-column: 1 / 2;
    height: 200px;
    padding: 0;
  }

  .section {
    padding: 60px 0;
  }

  .section-heading {
    font-size: 26px;
  }

  .section-eyebrow {
    font-size: 11px;
  }

  .blog-card {
    padding: 16px 18px;
    gap: 12px;
  }

  .blog-card-title {
    font-size: 13px;
  }

  .repo-card {
    padding: 16px 18px;
  }

  .repo-name {
    font-size: 12px;
  }

  .testimonial-card {
    padding: 24px 20px;
  }

  .testimonial-quote {
    font-size: 13px;
  }

  .contact-buttons {
    flex-direction: column;
  }

  .contact-buttons .base-button {
    width: 100%;
  }

  .tech-icon-img {
    width: 40px;
    height: 40px;
  }

  .tech-marquee-track {
    gap: 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-social {
    justify-content: flex-start;
  }

  .footer-main {
    padding: 48px 0 30px;
  }

  .footer-newsletter-form {
    flex-direction: column;
  }

  .footer-newsletter-btn {
    padding: 12px;
  }

  .program-tab-pane {
    padding: 28px 16px;
    margin: 10px;
  }

  .pane-title {
    font-size: 28px;
  }

  .orbital-graph {
    transform: scale(0.75);
    transform-origin: center;
  }

  .mock-ide {
    transform: scale(0.85);
    transform-origin: left center;
  }

  .contrib-matrix {
    transform: scale(0.8);
    transform-origin: left center;
  }
}

/* ==========================================================================
   COMMUNITY PAGE & DYNAMIC EDITORIAL THEME
   ========================================================================== */

:root {
  --theme-bg: var(--bg-gradient-start);
  --theme-text: var(--text-light);
  --theme-text-muted: var(--text-light-sub);
  --theme-card-bg: rgba(255, 255, 255, 0.06);
  --theme-card-border: rgba(255, 255, 255, 0.1);
  --theme-card-hover-border: rgba(255, 255, 255, 0.2);
  --theme-highlight: var(--maroon);
}

html.light-theme {
  --theme-bg: var(--cream);
  --theme-text: var(--black);
  --theme-text-muted: var(--charcoal);
  --theme-card-bg: var(--white);
  --theme-card-border: rgba(0, 0, 0, 0.08);
  --theme-card-hover-border: rgba(0, 0, 0, 0.15);
  --theme-highlight: var(--maroon);
}

html.dark-theme {
  --theme-bg: var(--bg-gradient-start);
}

body {
  background: var(--theme-bg);
  color: var(--theme-text);
  transition: background 0.4s ease, color 0.4s ease;
}

html.light-theme body::before {
  /* Hide the old gradient background ONLY in light theme */
  display: none;
}

/* Header Adjustments */
.site-header {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1100px;
  padding: 16px 24px;
  background: transparent;
  border-radius: 50px;
  border: 1px solid transparent;
  z-index: 1000;
  transition: padding var(--transition-base), background var(--transition-base), backdrop-filter var(--transition-base), box-shadow var(--transition-base), border var(--transition-base), top var(--transition-base);
}

.site-header.scrolled {
  top: 20px;
  padding: 12px 24px;
  background: rgba(15, 10, 12, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(172, 13, 48, 0.2);
  border: 1px solid rgba(172, 13, 48, 0.4);
}

html.light-theme .site-header {
  background: transparent;
  border-color: transparent;
}

html.light-theme .site-header.scrolled {
  background: rgba(254, 253, 251, 0.9);
  border: 1px solid var(--theme-card-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo a {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}

.site-logo {
  height: 26px;
  display: block;
  transition: filter var(--transition-base);
}

html.light-theme .site-logo {
  filter: invert(1) brightness(0.15);
}

.header-nav {
  display: flex;
  gap: 32px;
}

.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--theme-text-muted);
  transition: color 0.2s ease;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--theme-text);
}

.header-actions {
  display: flex;
  gap: 24px;
  align-items: center;
}

.btn-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.btn-text:hover {
  opacity: 0.8;
}

.highlight-maroon {
  color: var(--maroon);
}

html.dark-theme .header-actions .highlight-maroon {
  color: var(--white);
}

.theme-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--theme-card-bg);
  border: 1px solid var(--theme-card-border);
  color: var(--theme-text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  background: var(--theme-card-hover-border);
}

/* Community Hero */
.community-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--nav-content-gap);
  padding-bottom: var(--section-gap);
  gap: 60px;
}

.hero-content {
  flex: 1;
  max-width: 500px;
}

.eyebrow-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.page-hero-title {
  font-size: var(--text-h1);
  font-weight: var(--weight-heavy);
  line-height: var(--lh-heading);
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.page-hero-desc {
  font-size: var(--text-body-lg);
  line-height: var(--lh-body);
  color: var(--theme-text-muted);
  margin-bottom: 40px;
}

.btn-solid {
  background: var(--theme-text);
  color: var(--theme-bg);
  padding: 14px 28px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 4px;
  display: inline-block;
  text-transform: uppercase;
}

.hero-image-wrapper {
  flex: 1;
  max-width: 600px;
}

.duotone-image {
  width: 100%;
  height: auto;
  border-radius: 4px;
  filter: sepia(100%) hue-rotate(320deg) saturate(150%) contrast(120%) brightness(80%);
  /* fake duotone */
}

/* Operating Principles */
.line-under {
  border-bottom: 1px solid var(--theme-text);
  padding-bottom: 16px;
  margin-bottom: 40px;
  display: inline-block;
}

.principles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

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

.principle-card {
  padding: 48px;
  border-radius: 4px;
  border: 1px solid var(--theme-card-border);
}

.light-card {
  background: var(--theme-card-bg);
}

.dark-card {
  background: #110005;
  /* Maroon-tinted very dark */
  color: var(--white);
}

html.light-theme .dark-card {
  background: var(--theme-card-bg);
  color: var(--theme-text);
  border: 1px solid var(--theme-card-border);
}
html.light-theme .mandate-badge.dark {
  background: rgba(0, 0, 0, 0.05);
  color: var(--black);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.mandate-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  margin-bottom: 24px;
}

.dark-theme .mandate-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.mandate-badge.dark {
  background: rgba(172, 13, 48, 0.2);
  color: var(--maroon-light);
  border: 1px solid rgba(172, 13, 48, 0.4);
}

.principle-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
}

.principle-text {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.9;
}

/* Rituals */
.rituals-section {
  padding-top: 80px;
  padding-bottom: 120px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--theme-text-muted);
  margin-bottom: 48px;
}

.rituals-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.rituals-list::before {
  content: '';
  position: absolute;
  left: 23px;
  /* Center the 2px border inside the 48px box */
  top: 24px;
  /* Start from the middle of the first box */
  bottom: 24px;
  /* End in the middle of the last box */
  border-left: 2px dashed var(--theme-card-border);
  z-index: -1;
}

.ritual-step {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.ritual-number-box {
  width: 48px;
  height: 48px;
  background: var(--cream);
  border: 2px solid var(--theme-text);
  color: var(--theme-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

html.dark-theme .ritual-number-box {
  background: #1e020a;
}

.ritual-number-box.active-number {
  background: var(--maroon);
  border-color: var(--maroon);
  color: var(--white);
}

.ritual-card {
  flex: 1;
  background: var(--theme-card-bg);
  border: 1px solid var(--theme-card-border);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ritual-card:hover {
  transform: translateX(4px);
  border-color: var(--theme-card-hover-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.ritual-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ritual-icon {
  font-size: 20px;
}

.text-maroon {
  color: var(--maroon);
}

.ritual-title {
  font-size: 20px;
  font-weight: 700;
}

.ritual-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--theme-text-muted);
}

/* Footer overrides for community page */
.site-footer {
  border-top: 1px solid var(--theme-card-border);
  padding: 60px 0;
}



.footer-logo {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
}

.copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-mono);
  white-space: normal;
  word-break: break-word;
}

.footer .logo-img {
  background-image: url(assets/images/logo-svg-white.svg) !important;
  margin-left: 0;
}

@media (max-width: 600px) {
  .footer-bottom {
    padding-bottom: 80px; /* Prevent theme toggle overlap */
  }
}



/* ==========================================================================
   COLLABORATIVE SCENE COMPONENT (HERO)
   ========================================================================== */
.collab-scene-component {
  width: 100%;
  max-width: 520px;
  position: relative;
  z-index: 2;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--theme-card-border);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(15, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

html.light-theme .collab-scene-component {
  background: var(--theme-card-bg);
}

.scene-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.scene-dots {
  display: flex;
  gap: 6px;
}

.scene-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.scene-dots .dot.red {
  background: #ff5f56;
}

.scene-dots .dot.yellow {
  background: #ffbd2e;
}

.scene-dots .dot.green {
  background: #27c93f;
}

.scene-title {
  font-size: 12px;
  color: var(--theme-text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-indicator {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #27c93f;
  border-radius: 50%;
  box-shadow: 0 0 6px #27c93f;
}

.scene-avatars {
  display: flex;
  align-items: center;
}

.scene-avatars .avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--theme-card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  font-family: sans-serif;
}

.avatar.user-1 {
  background: #21c2e0;
  color: #000;
  z-index: 2;
}

.avatar.user-2 {
  background: var(--rose);
  color: #fff;
  z-index: 1;
  margin-left: -6px;
}

.scene-body {
  padding: 24px 24px 40px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: #a9b7c6;
  position: relative;
}

.code-snippet {
  opacity: 0.9;
}

.syntax-keyword {
  color: #cc7832;
}

.syntax-class,
.syntax-func {
  color: #ffc66d;
}

.syntax-type {
  color: #a9b7c6;
}

.syntax-string {
  color: #6a8759;
}

.syntax-comment {
  color: #808080;
}

html.light-theme .scene-body {
  color: #333;
}

html.light-theme .syntax-keyword {
  color: #d73a49;
}

html.light-theme .syntax-class,
html.light-theme .syntax-func {
  color: #6f42c1;
}

html.light-theme .syntax-type {
  color: #005cc5;
}

html.light-theme .syntax-string {
  color: #032f62;
}

html.light-theme .syntax-comment {
  color: #6a737d;
}

.multiplayer-cursor {
  position: absolute;
  z-index: 10;
}

.multiplayer-cursor svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.cursor-label {
  font-family: sans-serif;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 2px;
  margin-left: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cursor-1 {
  top: 155px;
  left: 190px;
  animation: cursorBob1 4s ease-in-out infinite;
}

.cursor-2 {
  top: 195px;
  left: 300px;
  animation: cursorBob2 5s ease-in-out infinite;
  animation-delay: 1s;
}

@keyframes cursorBob1 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(15px, 10px);
  }
}

@keyframes cursorBob2 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-10px, 15px);
  }
}

/* ==========================================================================
   WORK PAGE
   ========================================================================== */
.work-hero {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: var(--nav-content-gap);
  padding-bottom: var(--section-gap);
  gap: 140px;
}

.work-hero-content {
  flex: 1;
  max-width: 600px;
}

.work-hero-content .eyebrow-text {
  font-size: var(--text-xs);
}

.work-hero-content .hero-desc {
  font-size: var(--text-body-lg);
}

.work-hero-actions {
  flex-shrink: 0;
}

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

.case-card {
  background: var(--theme-card-bg);
  border: 1px solid var(--theme-card-border);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.case-card:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0px var(--theme-text);
}

.card-large {
  grid-column: span 2;
}

.card-small {
  grid-column: span 1;
}

.card-wide {
  grid-column: span 3;
  flex-direction: row;
}

@media (max-width: 900px) {
  .case-study-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .card-large,
  .card-small,
  .card-wide {
    grid-column: span 1;
  }
  .card-wide {
    flex-direction: column;
  }
}

.case-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 600px;
  border-bottom: 1px solid var(--theme-card-border);
}

.card-wide .case-image-wrapper {
  flex: 5;
  height: auto;
  border-bottom: none;
  border-left: 1px solid var(--theme-card-border);
}

.case-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.case-card:hover .case-image {
  transform: scale(1.05);
}

.case-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  padding: 4px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

html.dark-theme .case-badge {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.case-content {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-wide .case-content {
  flex: 1;
  justify-content: center;
}

.integration-badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--theme-card-border);
  padding: 2px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.case-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-icon {
  color: var(--maroon);
  font-size: 18px;
}

.case-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--theme-text-muted);
  margin-bottom: 16px;
  border-left: 2px solid var(--maroon);
  padding-left: 12px;
}

.builders-section {
  margin-top: auto;
  border-top: 1px solid var(--theme-card-border);
  padding-top: 12px;
}

.builders-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--theme-text-muted);
  margin-bottom: 8px;
}

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

.builder-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 6px;
  background: var(--theme-card-border);
  border-radius: 2px;
  color: var(--theme-text);
}

.cta-box {
  background: var(--theme-card-bg);
  border: 2px solid var(--theme-text);
  border-top: 8px solid var(--maroon);
  padding: 64px 32px;
  text-align: center;
  margin: 32px 0 64px 0;
  /* Reduced whitespace */
}

.cta-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.cta-desc {
  font-size: 18px;
  color: var(--theme-text-muted);
  max-width: 600px;
  margin: 0 auto 32px auto;
}

.work-btn {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px 32px;
  display: inline-block;
  transition: transform 0.1s, box-shadow 0.1s;
  cursor: pointer;
  border: 1px solid var(--theme-text);
}

.work-btn:active {
  transform: translateY(4px) translateX(4px);
  box-shadow: 0 0 0 transparent;
}

.work-btn-maroon {
  background: var(--maroon);
  color: var(--white);
  box-shadow: 4px 4px 0px var(--theme-text);
}

.work-btn-maroon:hover {
  background: var(--maroon-dark);
}

.work-btn-dark {
  background: var(--theme-text);
  color: var(--cream);
  box-shadow: 4px 4px 0px var(--maroon);
}

html.dark-theme .work-btn-dark {
  color: var(--black);
}

.work-btn-dark:hover {
  opacity: 0.9;
}

/* ==========================================================================
   8. SHARED HERO SECTION
   ========================================================================== */
.page-hero {
  padding-top: var(--nav-content-gap);
  padding-bottom: var(--section-gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.page-hero-content {
  flex: 1;
}

.page-hero-widget {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .page-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .page-hero-widget {
    width: 100%;
    justify-content: center;
  }
}

.learn-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.learn-filter-pill {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid var(--theme-card-border);
  color: var(--theme-text-muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.learn-filter-pill:hover {
  border-color: var(--maroon);
  color: var(--theme-text);
}

.learn-filter-pill.active {
  background: var(--maroon);
  border-color: var(--maroon);
  color: var(--white);
}

html.light-theme .learn-filter-pill.active {
  background: var(--maroon);
  color: var(--white);
}

.learn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: var(--section-gap);
}

@media (max-width: 900px) {
  .learn-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .learn-grid {
    grid-template-columns: 1fr;
  }
}

.learn-card {
  display: flex;
  flex-direction: column;
  background: var(--theme-card-bg);
  border: 1px solid var(--theme-card-border);
  border-radius: 4px;
  padding: 32px 24px 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}

.learn-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}

html.light-theme .learn-card:hover {
  border-color: rgba(0, 0, 0, 0.15);
}

.learn-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.learn-card-category {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--maroon-light);
}

html.light-theme .learn-card-category {
  color: var(--maroon);
}

.learn-card-icon {
  color: var(--theme-text-muted);
  width: 16px;
  height: 16px;
  transition: color 0.2s ease;
}

.learn-card:hover .learn-card-icon {
  color: var(--theme-text);
}

.learn-card-title {
  font-size: var(--text-h3);
  font-weight: var(--weight-bold);
  color: var(--theme-text);
  line-height: var(--lh-heading);
  margin-bottom: 16px;
}

.learn-card-desc {
  font-size: var(--text-small);
  line-height: var(--lh-body);
  color: var(--theme-text-muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 32px;
}

.learn-card-divider {
  height: 1px;
  background: var(--theme-card-border);
  margin-bottom: 16px;
  width: 100%;
}

.learn-card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.learn-card-author-img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--theme-text-muted);
  background: var(--theme-card-border);
  padding: 4px;
}

.learn-card-meta {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  font-weight: var(--weight-bold);
  color: var(--theme-text);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.learn-card-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  font-weight: var(--weight-bold);
  padding: 4px 8px;
  background: var(--theme-body-bg);
  color: var(--theme-text);
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =========================================
   VIRTUAL OS WORKSPACE WIDGET
   ========================================= */

.os-workspace-container {
  --os-bg: #07070a;
  --os-win-bg: #141417;
  --os-win-border: rgba(255, 255, 255, 0.1);
  --os-text: #FEFDFB;
  --os-text-muted: #888;
  --os-header-bg: #0a0b10;

  width: 100%;
  max-width: 520px;
  min-width: 320px;
  height: 460px;
  background: var(--os-bg);
  border: 1px solid var(--os-win-border);
  position: relative;
  font-family: var(--font-mono);
  overflow: hidden;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-md);
}

html.light-theme .os-workspace-container {
  --os-bg: #f8f8f8;
  --os-win-bg: #ffffff;
  --os-win-border: rgba(0, 0, 0, 0.1);
  --os-text: #111111;
  --os-text-muted: #666;
  --os-header-bg: #eaeaea;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.05);
}

.os-workspace-grid {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-image: linear-gradient(var(--os-win-border) 1px, transparent 1px), linear-gradient(90deg, var(--os-win-border) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 0;
  transform: perspective(500px) rotateX(60deg);
  animation: osGridMove 20s linear infinite;
  opacity: 0.5;
}

@keyframes osGridMove {
  0% {
    transform: perspective(500px) rotateX(60deg) translateY(0);
  }

  100% {
    transform: perspective(500px) rotateX(60deg) translateY(30px);
  }
}

.os-win {
  position: absolute;
  background: var(--os-win-bg);
  border: 1px solid var(--os-win-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 5;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  cursor: pointer;
}

.os-win:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.os-win.focused {
  border-color: var(--maroon);
  box-shadow: 0 0 20px rgba(172, 13, 48, 0.4);
}

.os-header {
  height: 24px;
  background: var(--os-header-bg);
  border-bottom: 1px solid var(--os-win-border);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 6px;
  transition: background 0.2s;
}

.os-win.focused .os-header {
  background: var(--os-win-bg);
}

.os-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.os-dot-red {
  background: #ff5f56;
}

.os-dot-yellow {
  background: #ffbd2e;
}

.os-dot-green {
  background: #27c93f;
}

.os-title {
  flex-grow: 1;
  text-align: center;
  color: var(--os-text-muted);
  font-size: 10px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.5px;
}

.os-term-body {
  padding: 10px;
  color: var(--os-text);
  font-size: 11px;
  line-height: 1.6;
  white-space: pre-wrap;
  flex-grow: 1;
  background: var(--os-win-bg);
}

@keyframes osServerLog {

  0%,
  20% {
    content: "[+] Stucknot Engine v2.0 booted.";
  }

  30%,
  50% {
    content: "[+] Stucknot Engine v2.0 booted.\n[REQ] GET /api/core 200 OK";
  }

  60%,
  100% {
    content: "[+] Stucknot Engine v2.0 booted.\n[REQ] GET /api/core 200 OK\n[SYS] WebSockets Active.";
  }
}

.os-term-log::after {
  content: "";
  animation: osServerLog 4s infinite;
  color: var(--os-text);
}

.os-code-body {
  padding: 16px;
  background: var(--os-win-bg);
  font-size: 11px;
  line-height: 1.6;
  flex-grow: 1;
  color: var(--os-text);
}

.os-code-keyword {
  color: #c586c0;
}

.os-code-function {
  color: #dcdcaa;
}

.os-code-string {
  color: #ce9178;
}

.os-code-tag {
  color: #569cd6;
}

.os-code-attr {
  color: #9cdcfe;
}

html.light-theme .os-code-keyword {
  color: #af00db;
}

html.light-theme .os-code-function {
  color: #795e26;
}

html.light-theme .os-code-string {
  color: #a31515;
}

html.light-theme .os-code-tag {
  color: #800000;
}

html.light-theme .os-code-attr {
  color: #ff0000;
}

.os-app-body {
  flex-grow: 1;
  background: var(--os-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.os-app-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--os-win-border) 2px, transparent 2px);
  background-size: 10px 10px;
}

@keyframes osBtnPress {

  0%,
  45% {
    transform: translate(0, 0);
    box-shadow: 6px 6px 0px var(--maroon);
  }

  50%,
  55% {
    transform: translate(6px, 6px);
    box-shadow: 0px 0px 0px var(--maroon);
    background: var(--maroon);
    color: var(--white);
  }

  60%,
  100% {
    transform: translate(0, 0);
    box-shadow: 6px 6px 0px var(--maroon);
    background: var(--os-win-bg);
    color: var(--os-text);
  }
}

.os-brutalist-btn {
  background: var(--os-win-bg);
  color: var(--os-text);
  font-weight: 900;
  font-size: 12px;
  padding: 12px 20px;
  border: 2px solid var(--os-text);
  box-shadow: 6px 6px 0px var(--maroon);
  cursor: pointer;
  animation: osBtnPress 4s infinite;
  z-index: 2;
  text-transform: uppercase;
}
